From 9ff43ead4e979efc61c29bce26695a803bcf8cdc Mon Sep 17 00:00:00 2001 From: Chung Shing Hin Date: Tue, 2 Jul 2024 12:48:27 +0800 Subject: [PATCH 01/19] extension: Embed in CodeUI --- Code.xcodeproj/project.pbxproj | 26 +++++++++++ .../xcshareddata/xcschemes/extension.xcscheme | 44 ++++++++++--------- NodeExtension/NodeRunner/NodeRunner.mm | 2 - 3 files changed, 50 insertions(+), 22 deletions(-) diff --git a/Code.xcodeproj/project.pbxproj b/Code.xcodeproj/project.pbxproj index 8a67e37d4..d0e29a2ba 100644 --- a/Code.xcodeproj/project.pbxproj +++ b/Code.xcodeproj/project.pbxproj @@ -754,6 +754,7 @@ 94E6CC862807502A00939E4F /* ActivityBarItemView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94E6CC842807502A00939E4F /* ActivityBarItemView.swift */; }; 94E6CC882807632B00939E4F /* biometricType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94E6CC872807632B00939E4F /* biometricType.swift */; }; 94E6CC892807632B00939E4F /* biometricType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94E6CC872807632B00939E4F /* biometricType.swift */; }; + 94EDC7B42C2DCBF600C86F56 /* extension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 94369AFC25E3B933008419A0 /* extension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; 94F2FEA526A2D45C007EBC6D /* freetype.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 94F2FEA326A2D44D007EBC6D /* freetype.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 94F2FEA726A2D89A007EBC6D /* network_ios.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 94B7C4AB25F5518700F1EF4E /* network_ios.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 94F2FEA926A2EB0E007EBC6D /* convertCArguments.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94F2FEA826A2EB0E007EBC6D /* convertCArguments.swift */; }; @@ -903,6 +904,13 @@ remoteGlobalIDString = 94369AFB25E3B933008419A0; remoteInfo = extension; }; + 94EDC7B52C2DCBF600C86F56 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 944EEBE82563C381009D77FE /* Project object */; + proxyType = 1; + remoteGlobalIDString = 94369AFB25E3B933008419A0; + remoteInfo = extension; + }; 9FE3E296298A14BC00F63DD0 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 944EEBE82563C381009D77FE /* Project object */; @@ -1351,6 +1359,17 @@ name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; }; + 94EDC7B72C2DCBF600C86F56 /* Embed Foundation Extensions */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 13; + files = ( + 94EDC7B42C2DCBF600C86F56 /* extension.appex in Embed Foundation Extensions */, + ); + name = "Embed Foundation Extensions"; + runOnlyForDeploymentPostprocessing = 0; + }; 9FE3E29D298A163200F63DD0 /* Embed Frameworks */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; @@ -3165,10 +3184,12 @@ 9419698E280316C7008AAEB2 /* Frameworks */, 9419699A280316C7008AAEB2 /* Resources */, 941969AA280316C7008AAEB2 /* Embed Frameworks */, + 94EDC7B72C2DCBF600C86F56 /* Embed Foundation Extensions */, ); buildRules = ( ); dependencies = ( + 94EDC7B62C2DCBF600C86F56 /* PBXTargetDependency */, ); name = CodeUI; packageProductDependencies = ( @@ -3873,6 +3894,11 @@ target = 94369AFB25E3B933008419A0 /* extension */; targetProxy = 94369B0525E3B933008419A0 /* PBXContainerItemProxy */; }; + 94EDC7B62C2DCBF600C86F56 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 94369AFB25E3B933008419A0 /* extension */; + targetProxy = 94EDC7B52C2DCBF600C86F56 /* PBXContainerItemProxy */; + }; 9FE3E297298A14BC00F63DD0 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 9419692E280316C7008AAEB2 /* CodeUI */; diff --git a/Code.xcodeproj/xcshareddata/xcschemes/extension.xcscheme b/Code.xcodeproj/xcshareddata/xcschemes/extension.xcscheme index 5a8e4ec6e..d9c56488a 100644 --- a/Code.xcodeproj/xcshareddata/xcschemes/extension.xcscheme +++ b/Code.xcodeproj/xcshareddata/xcschemes/extension.xcscheme @@ -22,11 +22,11 @@ + buildForTesting = "NO" + buildForRunning = "NO" + buildForProfiling = "NO" + buildForArchiving = "NO" + buildForAnalyzing = "NO"> + + + + - - - - - + - + diff --git a/NodeExtension/NodeRunner/NodeRunner.mm b/NodeExtension/NodeRunner/NodeRunner.mm index 4395113c1..9a61640a2 100644 --- a/NodeExtension/NodeRunner/NodeRunner.mm +++ b/NodeExtension/NodeRunner/NodeRunner.mm @@ -47,10 +47,8 @@ + (void) startEngineWithArguments:(NSArray*)arguments current_args_position+=strlen(current_args_position)+1; } - #if !TARGET_IPHONE_SIMULATOR //Start node, with argc and argv. node_start(argument_count,argv); - #endif free(args_buffer); } @end From 36091310bff47dc6bfefeff65038caca100453d1 Mon Sep 17 00:00:00 2001 From: Chung Shing Hin Date: Tue, 2 Jul 2024 12:48:38 +0800 Subject: [PATCH 02/19] extension: Remove unused code --- NodeExtension/ActionRequestHandler.swift | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/NodeExtension/ActionRequestHandler.swift b/NodeExtension/ActionRequestHandler.swift index c61177d70..a3a5d9eb0 100644 --- a/NodeExtension/ActionRequestHandler.swift +++ b/NodeExtension/ActionRequestHandler.swift @@ -267,8 +267,6 @@ class JavaLauncher { class ActionRequestHandler: NSObject, NSExtensionRequestHandling { - var extensionContext: NSExtensionContext? - func beginRequest(with context: NSExtensionContext) { atexit { @@ -288,8 +286,6 @@ class ActionRequestHandler: NSObject, NSExtensionRequestHandling { let injectionJSPath = Bundle.main.path(forResource: "injection", ofType: "js")! setenv("NODE_OPTIONS", "--jitless --require \"\(injectionJSPath)\"", 1) - // Do not call super in an Action extension with no user interface - self.extensionContext = context let notificationName = "com.thebaselab.code.node.stop" as CFString let notificationCenter = CFNotificationCenterGetDarwinNotifyCenter() @@ -312,7 +308,7 @@ class ActionRequestHandler: NSObject, NSExtensionRequestHandling { output.openConsolePipe() guard let item = context.inputItems.first as? NSExtensionItem else { - self.extensionContext!.completeRequest(returningItems: [], completionHandler: nil) + context.completeRequest(returningItems: [], completionHandler: nil) return } @@ -348,11 +344,10 @@ class ActionRequestHandler: NSObject, NSExtensionRequestHandling { break } - self.extensionContext!.completeRequest(returningItems: [], completionHandler: nil) + context.completeRequest(returningItems: [], completionHandler: nil) DispatchQueue.main.asyncAfter(deadline: .now() + 1) { output.closeConsolePipe() - self.extensionContext = nil exit(0) } From dcf4ea36322d8b997f42704fc606d0226e7f0b37 Mon Sep 17 00:00:00 2001 From: Chung Shing Hin Date: Thu, 1 Aug 2024 13:14:16 +0800 Subject: [PATCH 03/19] SwiftWS --- SwiftWS/.gitignore | 7 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + .../xcshareddata/xcschemes/SwiftWS.xcscheme | 91 ++++++++++ SwiftWS/Package.resolved | 52 ++++++ SwiftWS/Package.swift | 38 +++++ SwiftWS/README.md | 3 + SwiftWS/Sources/SwiftWS/Handlers.swift | 142 ++++++++++++++++ SwiftWS/Sources/SwiftWS/SwiftWS.swift | 156 ++++++++++++++++++ SwiftWS/Tests/SwiftWSTests/SwiftWSTests.swift | 36 ++++ 9 files changed, 533 insertions(+) create mode 100644 SwiftWS/.gitignore create mode 100644 SwiftWS/.swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 SwiftWS/.swiftpm/xcode/xcshareddata/xcschemes/SwiftWS.xcscheme create mode 100644 SwiftWS/Package.resolved create mode 100644 SwiftWS/Package.swift create mode 100644 SwiftWS/README.md create mode 100644 SwiftWS/Sources/SwiftWS/Handlers.swift create mode 100644 SwiftWS/Sources/SwiftWS/SwiftWS.swift create mode 100644 SwiftWS/Tests/SwiftWSTests/SwiftWSTests.swift diff --git a/SwiftWS/.gitignore b/SwiftWS/.gitignore new file mode 100644 index 000000000..bb460e7be --- /dev/null +++ b/SwiftWS/.gitignore @@ -0,0 +1,7 @@ +.DS_Store +/.build +/Packages +/*.xcodeproj +xcuserdata/ +DerivedData/ +.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata diff --git a/SwiftWS/.swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/SwiftWS/.swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 000000000..18d981003 --- /dev/null +++ b/SwiftWS/.swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/SwiftWS/.swiftpm/xcode/xcshareddata/xcschemes/SwiftWS.xcscheme b/SwiftWS/.swiftpm/xcode/xcshareddata/xcschemes/SwiftWS.xcscheme new file mode 100644 index 000000000..45f870b78 --- /dev/null +++ b/SwiftWS/.swiftpm/xcode/xcshareddata/xcschemes/SwiftWS.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SwiftWS/Package.resolved b/SwiftWS/Package.resolved new file mode 100644 index 000000000..8c9ac068b --- /dev/null +++ b/SwiftWS/Package.resolved @@ -0,0 +1,52 @@ +{ + "object": { + "pins": [ + { + "package": "swift-atomics", + "repositoryURL": "https://github.com/apple/swift-atomics.git", + "state": { + "branch": null, + "revision": "cd142fd2f64be2100422d658e7411e39489da985", + "version": "1.2.0" + } + }, + { + "package": "swift-collections", + "repositoryURL": "https://github.com/apple/swift-collections.git", + "state": { + "branch": null, + "revision": "ee97538f5b81ae89698fd95938896dec5217b148", + "version": "1.1.1" + } + }, + { + "package": "swift-nio", + "repositoryURL": "https://github.com/apple/swift-nio.git", + "state": { + "branch": null, + "revision": "fc79798d5a150d61361a27ce0c51169b889e23de", + "version": "2.68.0" + } + }, + { + "package": "swift-nio-transport-services", + "repositoryURL": "https://github.com/apple/swift-nio-transport-services", + "state": { + "branch": null, + "revision": "38ac8221dd20674682148d6451367f89c2652980", + "version": "1.21.0" + } + }, + { + "package": "swift-system", + "repositoryURL": "https://github.com/apple/swift-system.git", + "state": { + "branch": null, + "revision": "6a9e38e7bd22a3b8ba80bddf395623cf68f57807", + "version": "1.3.1" + } + } + ] + }, + "version": 1 +} diff --git a/SwiftWS/Package.swift b/SwiftWS/Package.swift new file mode 100644 index 000000000..0cf3d99bc --- /dev/null +++ b/SwiftWS/Package.swift @@ -0,0 +1,38 @@ +// swift-tools-version:5.3 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "SwiftWS", + platforms: [ + .iOS(.v12), + .macOS(.v10_14) + ], + products: [ + // Products define the executables and libraries a package produces, and make them visible to other packages. + .library( + name: "SwiftWS", + targets: ["SwiftWS"]), + ], + dependencies: [ + // Dependencies declare other packages that this package depends on. + .package(url: "https://github.com/apple/swift-nio.git", from: "2.19.0"), + .package(url: "https://github.com/apple/swift-nio-transport-services", from: "1.10.0") + ], + targets: [ + // Targets are the basic building blocks of a package. A target can define a module or a test suite. + // Targets can depend on other targets in this package, and on products in packages this package depends on. + .target( + name: "SwiftWS", + dependencies: [ + .product(name: "NIO", package: "swift-nio"), + .product(name: "NIOHTTP1", package: "swift-nio"), + .product(name: "NIOWebSocket", package: "swift-nio"), + .product(name: "NIOTransportServices", package: "swift-nio-transport-services") + ]), + .testTarget( + name: "SwiftWSTests", + dependencies: ["SwiftWS"]), + ] +) diff --git a/SwiftWS/README.md b/SwiftWS/README.md new file mode 100644 index 000000000..7fd91e546 --- /dev/null +++ b/SwiftWS/README.md @@ -0,0 +1,3 @@ +# SwiftWS + +A description of this package. diff --git a/SwiftWS/Sources/SwiftWS/Handlers.swift b/SwiftWS/Sources/SwiftWS/Handlers.swift new file mode 100644 index 000000000..f5fda85cc --- /dev/null +++ b/SwiftWS/Sources/SwiftWS/Handlers.swift @@ -0,0 +1,142 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the SwiftNIO open source project +// +// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Licensed under Apache License v2.0 +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of SwiftNIO project authors +// +// SPDX-License-Identifier: Apache-2.0 +// +//===----------------------------------------------------------------------===// + + +import NIO +import NIOHTTP1 +import NIOWebSocket +import NIOTransportServices +import Network +import Foundation + +final class WebSocketTimeHandler: ChannelInboundHandler { + + private var ws: SwiftWS.WebSocket + + init(_ ws: SwiftWS.WebSocket){ + self.ws = ws + } + + typealias InboundIn = WebSocketFrame + typealias OutboundOut = WebSocketFrame + + private var awaitingClose: Bool = false + + public func handlerAdded(context: ChannelHandlerContext) { + self.checkForMessage(context: context) + } + + public func channelRead(context: ChannelHandlerContext, data: NIOAny) { + let frame = self.unwrapInboundIn(data) + + switch frame.opcode { + case .connectionClose: + ws.onCloseAction?(.init(wasClean: true, code: 0, reason: "Close event received", target: ws)) + self.receivedClose(context: context, frame: frame) + case .ping: + self.pong(context: context, frame: frame) + case .text: + var data = frame.unmaskedData + let text = data.readString(length: data.readableBytes) ?? "" + ws.onMessageAction?(.init(data: text, type: "", target: ws)) + case .binary, .continuation, .pong: + // We ignore these frames. + break + default: + // Unknown frames are errors. + ws.onCloseAction?(.init(wasClean: false, code: 0, reason: "Unknown frames errors", target: ws)) + self.closeOnError(context: context) + } + } + + public func channelReadComplete(context: ChannelHandlerContext) { + context.flush() + } + + private func checkForMessage(context: ChannelHandlerContext) { + guard context.channel.isActive else { return } + + // We can't send if we sent a close message. + guard !self.awaitingClose else { return } + + if ws.isClosing { + var buffer = context.channel.allocator.buffer(capacity: 2) + buffer.writeInteger(UInt16(ws.closeCode)) + buffer.writeString(ws.closeReason) + let closeFrame = WebSocketFrame(fin: true, opcode: .connectionClose, data: buffer) + _ = context.writeAndFlush(self.wrapOutboundOut(closeFrame)) + awaitingClose = true + return + } + // We can't really check for error here, but it's also not the purpose of the + // example so let's not worry about it. + if !ws.messageStack.isEmpty{ + for message in ws.messageStack { + let buffer = context.channel.allocator.buffer(string: message) + let frame = WebSocketFrame(fin: true, opcode: .text, data: buffer) + context.write(self.wrapOutboundOut(frame)) + .whenFailure { (_: Error) in + context.close(promise: nil) + } + } + ws.messageStack.removeAll() + context.flush() + } + + context.eventLoop.scheduleTask(in: .milliseconds(100), { self.checkForMessage(context: context) }) + } + + private func receivedClose(context: ChannelHandlerContext, frame: WebSocketFrame) { + // Handle a received close frame. In websockets, we're just going to send the close + // frame and then close, unless we already sent our own close frame. + if awaitingClose { + // Cool, we started the close and were waiting for the user. We're done. + context.close(promise: nil) + } else { + // This is an unsolicited close. We're going to send a response frame and + // then, when we've sent it, close up shop. We should send back the close code the remote + // peer sent us, unless they didn't send one at all. + var data = frame.unmaskedData + let closeDataCode = data.readSlice(length: 2) ?? ByteBuffer() + let closeFrame = WebSocketFrame(fin: true, opcode: .connectionClose, data: closeDataCode) + _ = context.write(self.wrapOutboundOut(closeFrame)).map { () in + context.close(promise: nil) + } + } + } + + private func pong(context: ChannelHandlerContext, frame: WebSocketFrame) { + var frameData = frame.data + let maskingKey = frame.maskKey + + if let maskingKey = maskingKey { + frameData.webSocketUnmask(maskingKey) + } + + let responseFrame = WebSocketFrame(fin: true, opcode: .pong, data: frameData) + context.write(self.wrapOutboundOut(responseFrame), promise: nil) + } + + private func closeOnError(context: ChannelHandlerContext) { + // We have hit an error, we want to close. We do that by sending a close frame and then + // shutting down the write side of the connection. + var data = context.channel.allocator.buffer(capacity: 2) + data.write(webSocketErrorCode: .protocolError) + let frame = WebSocketFrame(fin: true, opcode: .connectionClose, data: data) + context.write(self.wrapOutboundOut(frame)).whenComplete { (_: Result) in + context.close(mode: .output, promise: nil) + } + awaitingClose = true + } +} diff --git a/SwiftWS/Sources/SwiftWS/SwiftWS.swift b/SwiftWS/Sources/SwiftWS/SwiftWS.swift new file mode 100644 index 000000000..c1fdcd946 --- /dev/null +++ b/SwiftWS/Sources/SwiftWS/SwiftWS.swift @@ -0,0 +1,156 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the SwiftNIO open source project +// +// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors +// Licensed under Apache License v2.0 +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of SwiftNIO project authors +// +// SPDX-License-Identifier: Apache-2.0 +// +//===----------------------------------------------------------------------===// + + +import NIO +import NIOHTTP1 +import NIOWebSocket +import NIOTransportServices +import Network +import Foundation + +extension SwiftWS.WebSocket { + public struct MessageEvent { + public let data: String + public let type: String + public let target: SwiftWS.WebSocket + } + + public struct CloseEvent { + public let wasClean: Bool + public let code: Int + public let reason: String + public let target: SwiftWS.WebSocket + } +} + +extension SwiftWS { + public class WebSocket { + internal var messageStack: [String] = [] + + internal var onMessageAction: ((WebSocket.MessageEvent) -> Void)? + internal var onCloseAction: ((WebSocket.CloseEvent) -> Void)? + + internal var isClosing: Bool = false + internal var closeCode: Int = 0 + internal var closeReason: String = "" + + public func onMessage(_ action: @escaping ((WebSocket.MessageEvent) -> Void)){ + self.onMessageAction = action + } + + public func onClose(_ action: @escaping ((WebSocket.CloseEvent) -> Void)){ + self.onCloseAction = action + } + + public func send(_ data: String, _ cb: ((NSError?) -> Void)? = nil){ + messageStack.append(data) + } + + public func close(code: Int, reason: String){ + self.closeCode = code + self.closeReason = reason + self.isClosing = true + } + } + + public struct LaunchOptions { + var port: Int + + public init(port: Int){ + self.port = port + } + } +} + +open class SwiftWS { + + public typealias onConnectionActionBlock = ((WebSocket, HTTPRequestHead) -> Void) + public typealias ShouldUpgradeBlock = ((HTTPRequestHead) -> Bool) + + private var queue: DispatchQueue + + private var channel: Channel? + private var launchOptions: LaunchOptions + private var onConnectionAction: onConnectionActionBlock? + public var shouldUpgrade: ShouldUpgradeBlock = {_ in true} + + public init(port: Int, queue: DispatchQueue = DispatchQueue.global(qos: .utility)){ + self.launchOptions = LaunchOptions(port: port) + self.queue = queue + + queue.async { + self.startWS() + } + } + + public func onConnection(_ action: @escaping onConnectionActionBlock){ + self.onConnectionAction = action + } + + public func close(){ + try? channel?.close().wait() + print("Server closed") + } + + private func startWS(){ + let group = NIOTSEventLoopGroup() + + defer { + try! group.syncShutdownGracefully() + } + + let upgrader = NIOWebSocketServerUpgrader( + shouldUpgrade: { (channel: Channel, head: HTTPRequestHead) in + if self.shouldUpgrade(head) { + channel.eventLoop.makeSucceededFuture(HTTPHeaders()) + }else { + channel.eventLoop.makeSucceededFuture(nil) + } + }, upgradePipelineHandler: { (channel: Channel, head: HTTPRequestHead) in + let ws = WebSocket.init() + self.onConnectionAction?(ws, head) + return channel.pipeline.addHandler(WebSocketTimeHandler(ws)) + }) + + let bootstrap = NIOTSListenerBootstrap(group: group) + .serverChannelOption(ChannelOptions.socketOption(.so_reuseaddr), value: 1) + .childChannelInitializer { channel in + let config: NIOHTTPServerUpgradeConfiguration = ( + upgraders: [ upgrader ], + completionHandler: { _ in} + ) + return channel.pipeline.configureHTTPServerPipeline(withServerUpgrade: config) + } + .childChannelOption(ChannelOptions.socketOption(.so_reuseaddr), value: 1) + + do { + channel = try { () -> Channel in + return try bootstrap.bind(host: "127.0.0.1", port: launchOptions.port).wait() + }() + }catch { + print(error) + } + + guard let localAddress = channel?.localAddress else { + fatalError("Address was unable to bind. Please check that the socket was not closed or that the address family was understood.") + } + print("Server started and listening on \(localAddress)") + + // This will never unblock as we don't close the ServerChannel + try? channel?.closeFuture.wait() + + print("Server closed") + } +} diff --git a/SwiftWS/Tests/SwiftWSTests/SwiftWSTests.swift b/SwiftWS/Tests/SwiftWSTests/SwiftWSTests.swift new file mode 100644 index 000000000..bf61f556c --- /dev/null +++ b/SwiftWS/Tests/SwiftWSTests/SwiftWSTests.swift @@ -0,0 +1,36 @@ +import XCTest +@testable import SwiftWS + +final class SwiftWSTests: XCTestCase { + func testExample() { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct + // results. + let expectation = XCTestExpectation(description: "") + + let wss = SwiftWS(port: 8888) + +// wss.shouldUpgrade = { head in +// return head.uri.starts(with: "/websocket") +// } +// + wss.onConnection { ws, head in + if !head.uri.starts(with: "/websocket") { + ws.close(code: 3000, reason: "wrong url") + return + } + ws.send(head.uri) + + ws.onMessage { event in + print(event.data) + ws.send("Received: \(event.data)") + } + ws.onClose { event in + print("WS Closed, Reason: \(event.reason)") + } + } + + wait(for: [expectation], timeout: 120.0) + + } +} From b1764a267ae0631364c7482719fbc3c016d7dc6c Mon Sep 17 00:00:00 2001 From: Chung Shing Hin Date: Thu, 1 Aug 2024 13:30:38 +0800 Subject: [PATCH 04/19] Use websocket to communicate with extension #1104 --- Code.xcodeproj/project.pbxproj | 67 ++- .../xcshareddata/swiftpm/Package.resolved | 45 ++ CodeApp/CodeApp.swift | 1 + CodeApp/Managers/AppExtensionService.swift | 96 +++++ CodeApp/Managers/Executor.swift | 11 - CodeApp/Types/Shared/AppExtensionError.swift | 33 ++ CodeApp/Utilities/node.swift | 95 +---- NodeExtension/ActionRequestHandler.swift | 392 ++++-------------- NodeExtension/Java.swift | 140 +++++++ NodeExtension/Node.swift | 29 ++ NodeExtension/OutputListener.swift | 80 ++++ 11 files changed, 585 insertions(+), 404 deletions(-) create mode 100644 CodeApp/Managers/AppExtensionService.swift create mode 100644 CodeApp/Types/Shared/AppExtensionError.swift create mode 100644 NodeExtension/Java.swift create mode 100644 NodeExtension/Node.swift create mode 100644 NodeExtension/OutputListener.swift diff --git a/Code.xcodeproj/project.pbxproj b/Code.xcodeproj/project.pbxproj index d0e29a2ba..4d599ac70 100644 --- a/Code.xcodeproj/project.pbxproj +++ b/Code.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 54; + objectVersion = 60; objects = { /* Begin PBXBuildFile section */ @@ -530,6 +530,8 @@ 945D4F582B50F55800DE0DBA /* VimKeyBufferLabel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 945D4F572B50F55800DE0DBA /* VimKeyBufferLabel.swift */; }; 945D4F592B50F55800DE0DBA /* VimKeyBufferLabel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 945D4F572B50F55800DE0DBA /* VimKeyBufferLabel.swift */; }; 9469AC9C26A33D52003F569F /* php.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9469AC9A26A33D19003F569F /* php.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + 946C677D2C33BEE200100F3F /* SwiftWS in Frameworks */ = {isa = PBXBuildFile; productRef = 946C677C2C33BEE200100F3F /* SwiftWS */; }; + 946C67832C33C03400100F3F /* SwiftWS in Frameworks */ = {isa = PBXBuildFile; productRef = 946C67822C33C03400100F3F /* SwiftWS */; }; 946DAB9E2BBD2F9600E73257 /* TreeSitterJavaScriptRunestone in Frameworks */ = {isa = PBXBuildFile; productRef = 946DAB9D2BBD2F9600E73257 /* TreeSitterJavaScriptRunestone */; }; 946DABA42BBD98BB00E73257 /* TreeSitterPythonRunestone in Frameworks */ = {isa = PBXBuildFile; productRef = 946DABA32BBD98BB00E73257 /* TreeSitterPythonRunestone */; }; 946DABA82BBD997800E73257 /* TreeSitterCRunestone in Frameworks */ = {isa = PBXBuildFile; productRef = 946DABA72BBD997800E73257 /* TreeSitterCRunestone */; }; @@ -642,6 +644,14 @@ 949B3CBB25DBCCDC00BC83B5 /* MonacoIntellisenseExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 949B3CBA25DBCCDB00BC83B5 /* MonacoIntellisenseExtension.swift */; }; 949B3CC525DEA89B00BC83B5 /* String+toCString.swift in Sources */ = {isa = PBXBuildFile; fileRef = 949B3CC425DEA89A00BC83B5 /* String+toCString.swift */; }; 949B3CC725DEAAA700BC83B5 /* node.swift in Sources */ = {isa = PBXBuildFile; fileRef = 949B3CC625DEAAA600BC83B5 /* node.swift */; }; + 949D787F2C33C4EB006D7480 /* Java.swift in Sources */ = {isa = PBXBuildFile; fileRef = 949D787E2C33C4EB006D7480 /* Java.swift */; }; + 949D78812C33C51E006D7480 /* OutputListener.swift in Sources */ = {isa = PBXBuildFile; fileRef = 949D78802C33C51E006D7480 /* OutputListener.swift */; }; + 949D78832C33C563006D7480 /* Node.swift in Sources */ = {isa = PBXBuildFile; fileRef = 949D78822C33C563006D7480 /* Node.swift */; }; + 949D78862C33DA72006D7480 /* AppExtensionService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 949D78842C33DA48006D7480 /* AppExtensionService.swift */; }; + 949D78872C33DA72006D7480 /* AppExtensionService.swift in Sources */ = {isa = PBXBuildFile; fileRef = 949D78842C33DA48006D7480 /* AppExtensionService.swift */; }; + 949D788A2C33DC3F006D7480 /* AppExtensionError.swift in Sources */ = {isa = PBXBuildFile; fileRef = 949D78892C33DC3F006D7480 /* AppExtensionError.swift */; }; + 949D788B2C33DC3F006D7480 /* AppExtensionError.swift in Sources */ = {isa = PBXBuildFile; fileRef = 949D78892C33DC3F006D7480 /* AppExtensionError.swift */; }; + 949D788C2C33DC3F006D7480 /* AppExtensionError.swift in Sources */ = {isa = PBXBuildFile; fileRef = 949D78892C33DC3F006D7480 /* AppExtensionError.swift */; }; 949E4025263563AC002C1997 /* harfbuzz.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 94D7DED42631D16C00FA0760 /* harfbuzz.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 949E402E263563AF002C1997 /* libpng.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 94D7DEC02631D0CA00FA0760 /* libpng.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 94A045EE280480E800182275 /* RemoteListSection.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94A045ED280480E800182275 /* RemoteListSection.swift */; }; @@ -763,6 +773,7 @@ 94F52709259F9B7800337306 /* KeychainItemAccessibility.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94F52708259F9B7800337306 /* KeychainItemAccessibility.swift */; }; 94F6B510280EFD07000DBAE2 /* FileDisplayName.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94F6B50F280EFD07000DBAE2 /* FileDisplayName.swift */; }; 94F6B511280EFD07000DBAE2 /* FileDisplayName.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94F6B50F280EFD07000DBAE2 /* FileDisplayName.swift */; }; + 94F88FD92C5B4F3400326AD0 /* SwiftWS in Frameworks */ = {isa = PBXBuildFile; productRef = 94F88FD82C5B4F3400326AD0 /* SwiftWS */; }; 94FA8977292FB86700163800 /* PDFViewerExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94FA8975292FB86700163800 /* PDFViewerExtension.swift */; }; 94FA8978292FB86700163800 /* PDFViewerExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94FA8975292FB86700163800 /* PDFViewerExtension.swift */; }; 94FC220B257F7D2A00B85D1B /* SourceControlEntry.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94FC220A257F7D2900B85D1B /* SourceControlEntry.swift */; }; @@ -1825,6 +1836,11 @@ 949B3CBA25DBCCDB00BC83B5 /* MonacoIntellisenseExtension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MonacoIntellisenseExtension.swift; sourceTree = ""; }; 949B3CC425DEA89A00BC83B5 /* String+toCString.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "String+toCString.swift"; sourceTree = ""; }; 949B3CC625DEAAA600BC83B5 /* node.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = node.swift; sourceTree = ""; }; + 949D787E2C33C4EB006D7480 /* Java.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Java.swift; sourceTree = ""; }; + 949D78802C33C51E006D7480 /* OutputListener.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OutputListener.swift; sourceTree = ""; }; + 949D78822C33C563006D7480 /* Node.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Node.swift; sourceTree = ""; }; + 949D78842C33DA48006D7480 /* AppExtensionService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppExtensionService.swift; sourceTree = ""; }; + 949D78892C33DC3F006D7480 /* AppExtensionError.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppExtensionError.swift; sourceTree = ""; }; 94A045ED280480E800182275 /* RemoteListSection.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RemoteListSection.swift; sourceTree = ""; }; 94A045F02804816000182275 /* RemoteCreateSection.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RemoteCreateSection.swift; sourceTree = ""; }; 94A045F3280481A900182275 /* RemoteTypeLabel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RemoteTypeLabel.swift; sourceTree = ""; }; @@ -2052,6 +2068,9 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 946C67832C33C03400100F3F /* SwiftWS in Frameworks */, + 946C677D2C33BEE200100F3F /* SwiftWS in Frameworks */, + 94F88FD92C5B4F3400326AD0 /* SwiftWS in Frameworks */, 945AEA3827ECCB5F00BA193E /* NodeMobile.xcframework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; @@ -2149,6 +2168,9 @@ 94369B1025E3DDDA008419A0 /* NodeRunner */, 94369AFE25E3B933008419A0 /* Media.xcassets */, 94369B0025E3B933008419A0 /* ActionRequestHandler.swift */, + 949D787E2C33C4EB006D7480 /* Java.swift */, + 949D78822C33C563006D7480 /* Node.swift */, + 949D78802C33C51E006D7480 /* OutputListener.swift */, 94369B0425E3B933008419A0 /* Info.plist */, ); path = NodeExtension; @@ -2343,6 +2365,14 @@ path = Local; sourceTree = ""; }; + 949D78882C33DC29006D7480 /* Shared */ = { + isa = PBXGroup; + children = ( + 949D78892C33DC3F006D7480 /* AppExtensionError.swift */, + ); + path = Shared; + sourceTree = ""; + }; 94A4438725A390C3006643FF /* KeychainWrapper */ = { isa = PBXGroup; children = ( @@ -2984,6 +3014,7 @@ 9F3C2DF5291CCE6900BFF14C /* Types */ = { isa = PBXGroup; children = ( + 949D78882C33DC29006D7480 /* Shared */, 9F3C2DF6291CCE9A00BFF14C /* Remote.swift */, 9FC03E732920CF1700DECD1B /* Notification.swift */, 9F3C2DE92918E19B00BFF14C /* Theme.swift */, @@ -3098,6 +3129,7 @@ 9FA122782A8B6C9700E7B417 /* ActivityBarManager.swift */, 9F062FE52B58D40D006210AA /* FileTreeViewController.swift */, 9434C3EE2BA2CCBB00EB1CF6 /* WASMService.swift */, + 949D78842C33DA48006D7480 /* AppExtensionService.swift */, ); path = Managers; sourceTree = ""; @@ -3256,6 +3288,11 @@ dependencies = ( ); name = extension; + packageProductDependencies = ( + 946C677C2C33BEE200100F3F /* SwiftWS */, + 946C67822C33C03400100F3F /* SwiftWS */, + 94F88FD82C5B4F3400326AD0 /* SwiftWS */, + ); productName = extension; productReference = 94369AFC25E3B933008419A0 /* extension.appex */; productType = "com.apple.product-type.app-extension"; @@ -3402,6 +3439,7 @@ 9F6BD94E2B46900400E2F8BC /* XCRemoteSwiftPackageReference "GCDWebServer" */, 94FD17002BAED26A003E1545 /* XCRemoteSwiftPackageReference "Runestone" */, 946DAB982BBD2F9600E73257 /* XCRemoteSwiftPackageReference "treesitterlanguages" */, + 94F88FD72C5B4F3400326AD0 /* XCLocalSwiftPackageReference "SwiftWS" */, ); productRefGroup = 944EEBF12563C381009D77FE /* Products */; projectDirPath = ""; @@ -3613,6 +3651,7 @@ 9419696A280316C7008AAEB2 /* openFilesApp.swift in Sources */, 9419696B280316C7008AAEB2 /* View+If.swift in Sources */, 9419696C280316C7008AAEB2 /* WorkSpaceStorage.swift in Sources */, + 949D788B2C33DC3F006D7480 /* AppExtensionError.swift in Sources */, 94A045EF280480E800182275 /* RemoteListSection.swift in Sources */, 9419696D280316C7008AAEB2 /* DirectoryFolderMonitor.swift in Sources */, 94795C462931489C0057C12F /* ActivityBar.swift in Sources */, @@ -3653,6 +3692,7 @@ 9474D2922B6B454900CCC530 /* EditorImplementation.swift in Sources */, 9F062FE42B58D3F4006210AA /* FileTreeView.swift in Sources */, 94A045F22804816000182275 /* RemoteCreateSection.swift in Sources */, + 949D78862C33DA72006D7480 /* AppExtensionService.swift in Sources */, 9FAE4994292D153F00B1B962 /* VideoViewerExtension.swift in Sources */, 944112A2282181E500A8F1D7 /* SFTPTerminalServiceProvider.swift in Sources */, 94196980280316C7008AAEB2 /* URL+relativePath.swift in Sources */, @@ -3700,9 +3740,13 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + 949D788C2C33DC3F006D7480 /* AppExtensionError.swift in Sources */, 94369B0125E3B933008419A0 /* ActionRequestHandler.swift in Sources */, 947313142BDFB80D004A9960 /* ExtensionCommunicationHelper.swift in Sources */, 94369B1325E3DE02008419A0 /* NodeRunner.mm in Sources */, + 949D78832C33C563006D7480 /* Node.swift in Sources */, + 949D787F2C33C4EB006D7480 /* Java.swift in Sources */, + 949D78812C33C51E006D7480 /* OutputListener.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -3795,6 +3839,7 @@ 94A777DC257B8C99008FE7B2 /* openFilesApp.swift in Sources */, 94B3DDFA260526D200C4F2B1 /* View+If.swift in Sources */, 94A777A2257ABDC3008FE7B2 /* WorkSpaceStorage.swift in Sources */, + 949D788A2C33DC3F006D7480 /* AppExtensionError.swift in Sources */, 94A045EE280480E800182275 /* RemoteListSection.swift in Sources */, 94A777A8257ABEBE008FE7B2 /* DirectoryFolderMonitor.swift in Sources */, 94795C452931489C0057C12F /* ActivityBar.swift in Sources */, @@ -3835,6 +3880,7 @@ 9474D2912B6B454900CCC530 /* EditorImplementation.swift in Sources */, 9F062FE32B58D3F4006210AA /* FileTreeView.swift in Sources */, 94A045F12804816000182275 /* RemoteCreateSection.swift in Sources */, + 949D78872C33DA72006D7480 /* AppExtensionService.swift in Sources */, 9FAE4993292D153F00B1B962 /* VideoViewerExtension.swift in Sources */, 944112A1282181E500A8F1D7 /* SFTPTerminalServiceProvider.swift in Sources */, 949B3CB925DADCB900BC83B5 /* URL+relativePath.swift in Sources */, @@ -4400,6 +4446,13 @@ }; /* End XCConfigurationList section */ +/* Begin XCLocalSwiftPackageReference section */ + 94F88FD72C5B4F3400326AD0 /* XCLocalSwiftPackageReference "SwiftWS" */ = { + isa = XCLocalSwiftPackageReference; + relativePath = SwiftWS; + }; +/* End XCLocalSwiftPackageReference section */ + /* Begin XCRemoteSwiftPackageReference section */ 94196932280316C7008AAEB2 /* XCRemoteSwiftPackageReference "ZIPFoundation" */ = { isa = XCRemoteSwiftPackageReference; @@ -4516,6 +4569,14 @@ isa = XCSwiftPackageProductDependency; productName = SwiftGit2; }; + 946C677C2C33BEE200100F3F /* SwiftWS */ = { + isa = XCSwiftPackageProductDependency; + productName = SwiftWS; + }; + 946C67822C33C03400100F3F /* SwiftWS */ = { + isa = XCSwiftPackageProductDependency; + productName = SwiftWS; + }; 946DAB9D2BBD2F9600E73257 /* TreeSitterJavaScriptRunestone */ = { isa = XCSwiftPackageProductDependency; package = 946DAB982BBD2F9600E73257 /* XCRemoteSwiftPackageReference "treesitterlanguages" */; @@ -4920,6 +4981,10 @@ isa = XCSwiftPackageProductDependency; productName = SwiftGit2; }; + 94F88FD82C5B4F3400326AD0 /* SwiftWS */ = { + isa = XCSwiftPackageProductDependency; + productName = SwiftWS; + }; 94FD17012BAED26A003E1545 /* Runestone */ = { isa = XCSwiftPackageProductDependency; package = 94FD17002BAED26A003E1545 /* XCRemoteSwiftPackageReference "Runestone" */; diff --git a/Code.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Code.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index e9cb4004e..6235d1a76 100644 --- a/Code.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/Code.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -91,6 +91,51 @@ "version": "0.5.1" } }, + { + "package": "swift-atomics", + "repositoryURL": "https://github.com/apple/swift-atomics.git", + "state": { + "branch": null, + "revision": "cd142fd2f64be2100422d658e7411e39489da985", + "version": "1.2.0" + } + }, + { + "package": "swift-collections", + "repositoryURL": "https://github.com/apple/swift-collections.git", + "state": { + "branch": null, + "revision": "3d2dc41a01f9e49d84f0a3925fb858bed64f702d", + "version": "1.1.2" + } + }, + { + "package": "swift-nio", + "repositoryURL": "https://github.com/apple/swift-nio.git", + "state": { + "branch": null, + "revision": "e4abde8be0e49dc7d66e6eed651254accdcd9533", + "version": "2.69.0" + } + }, + { + "package": "swift-nio-transport-services", + "repositoryURL": "https://github.com/apple/swift-nio-transport-services", + "state": { + "branch": null, + "revision": "38ac8221dd20674682148d6451367f89c2652980", + "version": "1.21.0" + } + }, + { + "package": "swift-system", + "repositoryURL": "https://github.com/apple/swift-system.git", + "state": { + "branch": null, + "revision": "d2ba781702a1d8285419c15ee62fd734a9437ff5", + "version": "1.3.2" + } + }, { "package": "TreeSitter", "repositoryURL": "https://github.com/tree-sitter/tree-sitter", diff --git a/CodeApp/CodeApp.swift b/CodeApp/CodeApp.swift index d97fcba54..5250502c0 100644 --- a/CodeApp/CodeApp.swift +++ b/CodeApp/CodeApp.swift @@ -37,6 +37,7 @@ private func setup() { wasmWebView.loadWorker() initializeEnvironment() Repository.initialize_libgit2() + AppExtensionService.shared.startServer() } private func versionNumberIncreased() -> Bool { diff --git a/CodeApp/Managers/AppExtensionService.swift b/CodeApp/Managers/AppExtensionService.swift new file mode 100644 index 000000000..6e89494c5 --- /dev/null +++ b/CodeApp/Managers/AppExtensionService.swift @@ -0,0 +1,96 @@ +// +// AppExtensionService.swift +// Code App +// +// Created by Ken Chung on 02/07/2024. +// + +import Dynamic +import Foundation +import ios_system + +class AppExtensionService: NSObject { + static let PORT = 50002 + static let shared = AppExtensionService() + private var task: URLSessionWebSocketTask? = nil + + func startServer() { + let BLE: AnyClass = (NSClassFromString("TlNFeHRlbnNpb24=".base64Decoded()!)!) + let ext = Dynamic(BLE).extensionWithIdentifier("thebaselab.VS-Code.extension", error: nil) + let frameworkDir = Bundle.main.privateFrameworksPath! + let frameworkDirBookmark = try! URL(fileURLWithPath: frameworkDir).bookmarkData() + let item = NSExtensionItem() + item.userInfo = [ + "frameworksDirectoryBookmark": frameworkDirBookmark, + "port": AppExtensionService.PORT, + ] + ext.setRequestInterruptionBlock( + { uuid in + print("Extension server crashed, attempting to restart") + self.startServer() + } as RequestInterruptionBlock) + + ext.beginExtensionRequestWithInputItems( + [item], + completion: { uuid in + let pid = ext.pid(forRequestIdentifier: uuid) + if let uuid = uuid { + print("Started extension request: \(uuid). Extension PID is \(pid)") + } + print("Extension server listening on 127.0.0.1:\(AppExtensionService.PORT)") + } as RequestBeginBlock) + } + func terminate() { + self.task?.cancel() + } + + func call( + args: [String], + t_stdin: UnsafeMutablePointer, + t_stdout: UnsafeMutablePointer + ) async throws { + defer { + self.task = nil + signal(SIGINT, SIG_DFL) + } + + let signalCallback: sig_t = { signal in + AppExtensionService.shared.terminate() + } + signal(SIGINT, signalCallback) + + let task = URLSession.shared.webSocketTask( + with: URL(string: "ws://127.0.0.1:\(String(AppExtensionService.PORT))/websocket")!) + self.task = task + task.resume() + + let handle = FileHandle(fileDescriptor: fileno(t_stdin), closeOnDealloc: false) + handle.readabilityHandler = { fileHandle in + if let str = String(data: fileHandle.availableData, encoding: .utf8) { + Task { + try await task.send(.string(str)) + print("Sending -> \(str)") + } + } + } + + let frame = ExecutionRequestFrame( + args: args, + workingDirectoryBookmark: try? URL( + fileURLWithPath: FileManager.default.currentDirectoryPath + ).bookmarkData() + ) + try await task.send(.string(frame.stringRepresentation)) + print("Sending -> \(frame.stringRepresentation)") + + while let message = try? await task.receive() { + switch message { + case .string(let text): + print("Receiving <- \(text)") + fputs(text, t_stdout) + default: + continue + } + } + } +} diff --git a/CodeApp/Managers/Executor.swift b/CodeApp/Managers/Executor.swift index 42a9b39bc..b056e8d37 100644 --- a/CodeApp/Managers/Executor.swift +++ b/CodeApp/Managers/Executor.swift @@ -86,13 +86,6 @@ class Executor { } func kill() { - if nodeUUID != nil { - let notificationName = CFNotificationName( - "com.thebaselab.code.node.stop" as CFString) - let notificationCenter = CFNotificationCenterGetDarwinNotifyCenter() - CFNotificationCenterPostNotification( - notificationCenter, notificationName, nil, nil, false) - } if javascriptRunning { javascriptRunning = false return @@ -117,10 +110,6 @@ class Executor { ios_switchSession(persistentIdentifier.toCString()) - if nodeUUID != nil { - ExtensionCommunicationHelper.writeToStdin(data: input + "\n") - } - stdin_file_input?.write(data) if state == .running { diff --git a/CodeApp/Types/Shared/AppExtensionError.swift b/CodeApp/Types/Shared/AppExtensionError.swift new file mode 100644 index 000000000..9968ecbb9 --- /dev/null +++ b/CodeApp/Types/Shared/AppExtensionError.swift @@ -0,0 +1,33 @@ +// +// AppExtensionError.swift +// Code +// +// Created by Ken Chung on 02/07/2024. +// + +import Foundation + +struct ExecutionRequestFrame: Codable { + var args: [String] + var workingDirectoryBookmark: Data? + + var stringRepresentation: String { + do { + let data = try JSONEncoder().encode(self) + return String(data: data, encoding: .utf8) ?? "{}" + } catch { + return "{}" + } + } +} + +enum AppExtensionError: String { + case missingServerConfiguration = "Missing server configuration" + case serverAlreadyStarted = "Server already started" +} + +extension AppExtensionError: LocalizedError { + var errorDescription: String? { + self.rawValue + } +} diff --git a/CodeApp/Utilities/node.swift b/CodeApp/Utilities/node.swift index 6fc63274a..95ff95fc2 100644 --- a/CodeApp/Utilities/node.swift +++ b/CodeApp/Utilities/node.swift @@ -11,97 +11,38 @@ import JavaScriptCore import MobileCoreServices import ios_system -var nodeUUID: UUID? = nil -var nodeStdoutWatcher: FolderMonitor? - typealias RequestCancellationBlock = @convention(block) (_ uuid: UUID?, _ error: Error?) -> Void typealias RequestInterruptionBlock = @convention(block) (_ uuid: UUID?) -> Void typealias RequestCompletionBlock = @convention(block) (_ uuid: UUID?, _ extensionItems: [Any]?) -> Void typealias RequestBeginBlock = @convention(block) (_ uuid: UUID?) -> Void -func launchCommandInExtension(args: [String]?) -> Int32 { +private var thread_stdin_copy: UnsafeMutablePointer? = nil +private var thread_stdout_copy: UnsafeMutablePointer? = nil +private var thread_stderr_copy: UnsafeMutablePointer? = nil +func launchCommandInExtension(args: [String]?) -> Int32 { guard let args else { return 1 } - var ended = false + thread_stdin_copy = thread_stdin + thread_stdout_copy = thread_stdout - // We use a private API here to launch an extension programatically - let BLE: AnyClass = (NSClassFromString("TlNFeHRlbnNpb24=".base64Decoded()!)!) - let ext = Dynamic(BLE).extensionWithIdentifier("thebaselab.VS-Code.extension", error: nil) - - ext.setRequestCancellationBlock( - { uuid, error in - if let uuid = uuid, let error = error { - print("Request \(uuid) cancelled. \(error)") - ended = true - } - } as RequestCancellationBlock) - - ext.setRequestInterruptionBlock( - { uuid in - if let uuid = uuid { - print("Request \(uuid) interrupted.") - DispatchQueue.main.asyncAfter(deadline: .now() + 0.2) { - ended = true - } - } - } as RequestInterruptionBlock) - - ext.setRequestCompletionBlock( - { uuid, extensionItems in - if let uuid = uuid { - print( - "Request \(uuid) completed. Extension items: \(String(describing: extensionItems))" - ) - } - - if let item = extensionItems?.first as? NSExtensionItem { - if let data = item.userInfo?["result"] as? String { - let nc = NotificationCenter.default - nc.post( - name: Notification.Name("node.stdout"), object: nil, - userInfo: ["content": data]) - } - } + setvbuf(thread_stdout_copy, nil, _IONBF, 0) + setvbuf(thread_stdin_copy, nil, _IONBF, 0) - DispatchQueue.main.asyncAfter(deadline: .now() + 0.2) { - ended = true - } - } as RequestCompletionBlock) - - let workingDir = FileManager.default.currentDirectoryPath - guard let workingDirBookmark = try? URL(fileURLWithPath: workingDir).bookmarkData() else { - return 0 - } - let frameworkDir = Bundle.main.privateFrameworksPath! - guard let frameworkDirBookmark = try? URL(fileURLWithPath: frameworkDir).bookmarkData() else { - return 0 - } - - let item = NSExtensionItem() - - item.userInfo = [ - "workingDirectoryBookmark": workingDirBookmark, - "frameworksDirectoryBookmark": frameworkDirBookmark, - "args": args, - ] - - ext.beginExtensionRequestWithInputItems( - [item], - completion: { uuid in - let pid = ext.pid(forRequestIdentifier: uuid) - if let uuid = uuid { - nodeUUID = uuid - print("Started extension request: \(uuid). Extension PID is \(pid)") - } - } as RequestBeginBlock) - - while ended != true { - sleep(UInt32(1)) + let sema = DispatchSemaphore(value: 0) + Task { + do { + try await AppExtensionService.shared.call( + args: args, t_stdin: thread_stdin_copy!, t_stdout: thread_stdout_copy!) + } catch { + print("WSError", error) + } + sema.signal() } + sema.wait() refreshNodeCommands() diff --git a/NodeExtension/ActionRequestHandler.swift b/NodeExtension/ActionRequestHandler.swift index a3a5d9eb0..5f04fcc4e 100644 --- a/NodeExtension/ActionRequestHandler.swift +++ b/NodeExtension/ActionRequestHandler.swift @@ -5,352 +5,114 @@ // Created by Ken Chung on 22/2/2021. // -import UIKit -import MobileCoreServices +import CoreServices +import SwiftWS -let sharedURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: "group.com.thebaselab.code")! - -class OutputListener { - /// consumes the messages on STDOUT - let inputPipe = Pipe() - - /// outputs messages back to STDOUT - let outputPipe = Pipe() - - /// consumes the messages on STDERR - let inputErrorPipe = Pipe() - - /// outputs messages back to STDOUT - let outputErrorPipe = Pipe() - - let stdinPipe = Pipe() - - let stdoutFileDescriptor = FileHandle.standardOutput.fileDescriptor - let stderrFileDescriptor = FileHandle.standardError.fileDescriptor - let stdinFileDescriptor = FileHandle.standardInput.fileDescriptor - - let coordinator = NSFileCoordinator(filePresenter: nil) - - func writeToSharedFile(data: Data){ - - guard let string = String(data: data, encoding: String.Encoding.utf8) else { return } - - ExtensionCommunicationHelper.writeToStdout(data: string) - } - - init(context: NSExtensionContext) { - // Set up a read handler which fires when data is written to our inputPipe - inputPipe.fileHandleForReading.readabilityHandler = { [weak self] fileHandle in - guard let strongSelf = self else { return } - - let data = fileHandle.availableData - strongSelf.writeToSharedFile(data: data) - // Write input back to stdout - strongSelf.outputPipe.fileHandleForWriting.write(data) - } - - inputErrorPipe.fileHandleForReading.readabilityHandler = { [weak self] fileHandle in - guard let strongSelf = self else { return } - - let data = fileHandle.availableData - strongSelf.writeToSharedFile(data: data) - // Write input back to stdout - strongSelf.outputErrorPipe.fileHandleForWriting.write(data) - } - - setupStdinNotificationObserver() - } - - @objc private func onAppGroupStdinWrite(_ notification: Notification) { - guard let content = notification.userInfo?["content"] as? String else { +class BinaryExecutor { + let listener = OutputListener() + + func executeBinary( + args: [String], + workingDirectory: URL, + sharedFrameworksDirectory: URL, + ws: SwiftWS.WebSocket + ){ + guard let executable = args.first else { return } - if let data = content.data(using: .utf8) { - stdinPipe.fileHandleForWriting.write(data) - } - } - - private func setupStdinNotificationObserver() { - let notificationName = "com.thebaselab.code.node.stdin" as CFString - let notificationCenter = CFNotificationCenterGetDarwinNotifyCenter() - CFNotificationCenterAddObserver( - notificationCenter, nil, - { - ( - center: CFNotificationCenter?, - observer: UnsafeMutableRawPointer?, - name: CFNotificationName?, - object: UnsafeRawPointer?, - userInfo: CFDictionary? - ) in - - let sharedURL = FileManager.default.containerURL( - forSecurityApplicationGroupIdentifier: "group.com.thebaselab.code")! - let stdoutURL = sharedURL.appendingPathComponent("stdin") - - guard let data = try? Data(contentsOf: stdoutURL), - let str = String(data: data, encoding: .utf8) - else { - return - } - - NotificationCenter.default.post( - name: Notification.Name("appgroup.stdin"), object: nil, userInfo: ["content": str]) - }, - notificationName, - nil, - CFNotificationSuspensionBehavior.deliverImmediately) - - NotificationCenter.default.addObserver( - self, selector: #selector(onAppGroupStdinWrite), name: Notification.Name("appgroup.stdin"), - object: nil) - } - - /// Sets up the "tee" of piped output, intercepting stdout then passing it through. - func openConsolePipe() { - // Copy STDOUT file descriptor to outputPipe for writing strings back to STDOUT - dup2(stdoutFileDescriptor, outputPipe.fileHandleForWriting.fileDescriptor) - dup2(stderrFileDescriptor, outputErrorPipe.fileHandleForWriting.fileDescriptor) - - // Intercept STDOUT with inputPipe - dup2(inputPipe.fileHandleForWriting.fileDescriptor, stdoutFileDescriptor) - dup2(inputErrorPipe.fileHandleForWriting.fileDescriptor, stderrFileDescriptor) - - dup2(stdinPipe.fileHandleForReading.fileDescriptor, stdinFileDescriptor) - } - - /// Tears down the "tee" of piped output. - func closeConsolePipe() { - // Restore stdout - freopen("/dev/stdout", "a", stdout) - freopen("/dev/stderr", "a", stdout) - - [inputPipe.fileHandleForReading, outputPipe.fileHandleForWriting].forEach { file in - file.closeFile() - } - } - -} - -// Java attempts to re-run main() on first run: -// https://github.com/PojavLauncherTeam/openjdk-multiarch-jdk8u/blob/99f3f8bf37150677058ab00b76f9b17a1ab23a70/jdk/src/macosx/bin/java_md_macosx.c#L311 -@_cdecl("main") -public func JavaEntrance(argc: Int32, argv: UnsafeMutablePointer?>?) -> Int32 { - JavaLauncher.shared.launchJava( - args: JavaLauncher.shared.lastArgs, - frameworkDirectory: JavaLauncher.shared.lastFrameworkDir, - currentDirectory: JavaLauncher.shared.lastCurrentDirectory - ) - return 0 -} - -class JavaLauncher { - static let shared = JavaLauncher() - - var lastFrameworkDir: URL! - var lastCurrentDirectory: URL! - var lastArgs: [String] = [] - var javaString: NSString = "java" - var openJDKString: NSString = "openjdk" - var versionStringFull: NSString = "1.8.0-internal" - var versionString: NSString = "1.8.0" - static let javaHome = "\(Bundle.main.resourcePath!)/java-8-openjdk" - let defaultArgs = [ - "\(javaHome)/bin/java", - "-XstartOnFirstThread", - "-Djava.library.path=\(Bundle.main.bundlePath)/Frameworks", - "-Djna.boot.library.path=\(Bundle.main.bundlePath)/Frameworks", - "-Dorg.lwjgl.glfw.checkThread0=false", - "-Dorg.lwjgl.system.allocator=system", - "-Dlog4j2.formatMsgNoLookups=true", - "-XX:+UnlockExperimentalVMOptions", - "-XX:+DisablePrimordialThreadGuardPages", - "-Djava.awt.headless=false", - "-XX:-UseCompressedClassPointers", - "-jre-restrict-search" - ] - - typealias JLI_Launch = @convention(c) ( - Int32, - UnsafeMutablePointer?>?, - Int32, - UnsafeMutablePointer?>?, - Int32, - UnsafeMutablePointer?>?, - UnsafeMutablePointer?, - UnsafeMutablePointer?, - UnsafeMutablePointer?, - UnsafeMutablePointer?, - Int32, - Int32, - Int32, - Int32 - ) -> CInt - - func launchJava(args: [String], frameworkDirectory: URL, currentDirectory: URL){ - lastFrameworkDir = frameworkDirectory - lastCurrentDirectory = currentDirectory - lastArgs = args - - let libjlipath = "\(frameworkDirectory.path)/libjli.framework/libjli" - setenv("JAVA_HOME", JavaLauncher.javaHome, 1) - setenv("INTERNAL_JLI_PATH", libjlipath, 1) - setenv("HACK_IGNORE_START_ON_FIRST_THREAD", "1", 1) - -// For debug: -// setenv("_JAVA_LAUNCHER_DEBUG", "1", 1) - - for lib in ["libffi.8", "libjvm", "libverify", "libjava", "libnet"]{ - let handle = dlopen("\(frameworkDirectory.path)/\(lib).framework/\(lib)", RTLD_GLOBAL) - if (handle == nil) { - if let error = dlerror(), - let str = String(validatingUTF8: error) { - print(str) + DispatchQueue.main.sync { + FileManager.default.changeCurrentDirectoryPath(workingDirectory.path) + + self.listener.openConsolePipe() + self.listener.onStdout = { text in + DispatchQueue.global(qos: .utility).async { + ws.send(text) } - fatalError() } } - let libjli = dlopen(libjlipath, RTLD_GLOBAL) - if (libjli == nil){ - if let error = dlerror(), - let str = String(validatingUTF8: error) { - print(str) + DispatchQueue.global(qos: .default).async { + switch executable { + case "java", "javac": + JavaLauncher.shared.launchJava(args: args, frameworkDirectory: sharedFrameworksDirectory, currentDirectory: workingDirectory) + case "node": + NodeLauncher.shared.launchNode(args: args) + default: + break } - return + + self.listener.onStdout = nil + self.listener.closeConsolePipe() + + usleep(200000) + ws.close(code: 1000, reason: "finished") } - - let pJLI_Launch = dlsym(libjli, "JLI_Launch") - let f = unsafeBitCast(pJLI_Launch, to: JLI_Launch.self) - - let realArgs = { - if args.first == "java" { - return (defaultArgs + args.dropFirst()) - }else if args.first == "javac" { - return ( - defaultArgs + - ["-cp", - "\(Bundle.main.resourcePath!)/tools.jar:\(currentDirectory.path)", - "com.sun.tools.javac.Main" - ] - + args.dropFirst() - ) - }else { - return defaultArgs - } - }() - var cargs = realArgs.map{strdup($0) } - - let javaStringPtr = UnsafeMutablePointer(mutating: javaString.utf8String) - let openJDKStringPtr = UnsafeMutablePointer(mutating: openJDKString.utf8String) - let versionStringFullPtr = UnsafeMutablePointer(mutating: versionStringFull.utf8String) - let versionStringPtr = UnsafeMutablePointer(mutating: versionString.utf8String) - - let result = f( - Int32(cargs.count), &cargs, - 0, nil, - 0, nil, - versionStringFullPtr, - versionStringPtr, - javaStringPtr, - openJDKStringPtr, - 0, - 1, - 0, - 1 - ) - dlclose(libjli) } - } class ActionRequestHandler: NSObject, NSExtensionRequestHandling { + var wss: SwiftWS? = nil + let queue = DispatchQueue(label: "extension.wss") + var executing: Bool = false + func beginRequest(with context: NSExtensionContext) { - - atexit { - // Allow stdout to properly print before exit - fflush(stdout) - usleep(200000) // 0.2 seconds - } - - setenv("npm_config_prefix", sharedURL.appendingPathComponent("lib").path, 1) - setenv("npm_config_cache", FileManager.default.urls(for: .cachesDirectory, in: .userDomainMask).first!.path, 1) - setenv("npm_config_userconfig", FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first!.appendingPathComponent(".npmrc").path, 1) - setenv("COREPACK_HOME", sharedURL.appendingPathComponent("corepack").path, 1) - setenv("TMPDIR", FileManager.default.temporaryDirectory.path, 1) - setenv("YARN_CACHE_FOLDER", FileManager.default.temporaryDirectory.path, 1) - setenv("HOME", sharedURL.path, 1) - setenv("FORCE_COLOR", "3", 1) - - let injectionJSPath = Bundle.main.path(forResource: "injection", ofType: "js")! - setenv("NODE_OPTIONS", "--jitless --require \"\(injectionJSPath)\"", 1) - - let notificationName = "com.thebaselab.code.node.stop" as CFString - let notificationCenter = CFNotificationCenterGetDarwinNotifyCenter() - - CFNotificationCenterAddObserver(notificationCenter, nil, - { ( - center: CFNotificationCenter?, - observer: UnsafeMutableRawPointer?, - name: CFNotificationName?, - object: UnsafeRawPointer?, - userInfo: CFDictionary? - ) in - exit(0) - }, - notificationName, - nil, - CFNotificationSuspensionBehavior.deliverImmediately) - - let output = OutputListener(context: context) - output.openConsolePipe() - - guard let item = context.inputItems.first as? NSExtensionItem else { - context.completeRequest(returningItems: [], completionHandler: nil) + guard wss == nil else { + context.cancelRequest(withError: AppExtensionError.serverAlreadyStarted) return } var isStale = false - - guard let data = item.userInfo?["workingDirectoryBookmark"] as? Data else { + guard let item = context.inputItems.first as? NSExtensionItem, + let serverPort = item.userInfo?["port"] as? Int, + let frameworkDirectoryBookmarkData = item.userInfo?["frameworksDirectoryBookmark"] as? Data, + let frameworkDirectoryURL = try? URL(resolvingBookmarkData: frameworkDirectoryBookmarkData, bookmarkDataIsStale: &isStale), + frameworkDirectoryURL.startAccessingSecurityScopedResource() + else { + context.cancelRequest(withError: AppExtensionError.missingServerConfiguration) return } - let url = try! URL(resolvingBookmarkData: data, bookmarkDataIsStale: &isStale) - _ = url.startAccessingSecurityScopedResource() - FileManager.default.changeCurrentDirectoryPath(url.path) - guard let frameworkDirdata = item.userInfo?["frameworksDirectoryBookmark"] as? Data else { - return - } - let frameworkDirURL = try! URL(resolvingBookmarkData: frameworkDirdata, bookmarkDataIsStale: &isStale) - _ = frameworkDirURL.startAccessingSecurityScopedResource() + let wss = SwiftWS(port: serverPort, queue: queue) + self.wss = wss - guard let args = item.userInfo?["args"] as? [String], - let executable = args.first - else { - return - } + let binaryExecutor = BinaryExecutor() - DispatchQueue.global(qos: .default).async { + wss.onConnection { ws, head in - switch executable { - case "java", "javac": - JavaLauncher.shared.launchJava(args: args, frameworkDirectory: frameworkDirURL, currentDirectory: url) - case "node": - NodeRunner.startEngine(withArguments: args) - default: - break + if self.executing { + ws.close(code: 5000, reason: "server busy") } - context.completeRequest(returningItems: [], completionHandler: nil) + ws.onMessage { message in + if self.executing { + binaryExecutor.listener.write(text: message.data) + }else { + let jsonData = message.data.data(using: .utf8)! + guard let request: ExecutionRequestFrame = try? JSONDecoder().decode(ExecutionRequestFrame.self, from: jsonData) else { + ws.send("malformed message") + return + } + + self.executing = true + + var workingDirectoryUrl: URL = URL(fileURLWithPath: FileManager.default.currentDirectoryPath) + + if let workingDirectoryBookmark = request.workingDirectoryBookmark, + let workingDirectoryURL = try? URL(resolvingBookmarkData: workingDirectoryBookmark, bookmarkDataIsStale: &isStale), + workingDirectoryUrl.startAccessingSecurityScopedResource() { + workingDirectoryUrl = workingDirectoryURL + } + + binaryExecutor.executeBinary(args: request.args, workingDirectory: workingDirectoryUrl, sharedFrameworksDirectory: frameworkDirectoryURL, ws: message.target) + } + } - DispatchQueue.main.asyncAfter(deadline: .now() + 1) { - output.closeConsolePipe() + ws.onClose { _ in + wss.close() exit(0) } - } } } diff --git a/NodeExtension/Java.swift b/NodeExtension/Java.swift new file mode 100644 index 000000000..acdc1a931 --- /dev/null +++ b/NodeExtension/Java.swift @@ -0,0 +1,140 @@ +// +// Java.swift +// extension +// +// Created by Ken Chung on 02/07/2024. +// + +import Foundation + +// Java attempts to re-run main() on first run: +// https://github.com/PojavLauncherTeam/openjdk-multiarch-jdk8u/blob/99f3f8bf37150677058ab00b76f9b17a1ab23a70/jdk/src/macosx/bin/java_md_macosx.c#L311 +@_cdecl("main") +public func JavaEntrance(argc: Int32, argv: UnsafeMutablePointer?>?) -> Int32 { + JavaLauncher.shared.launchJava( + args: JavaLauncher.shared.lastArgs, + frameworkDirectory: JavaLauncher.shared.lastFrameworkDir, + currentDirectory: JavaLauncher.shared.lastCurrentDirectory + ) + return 0 +} + +class JavaLauncher { + static let shared = JavaLauncher() + + var lastFrameworkDir: URL! + var lastCurrentDirectory: URL! + var lastArgs: [String] = [] + var javaString: NSString = "java" + var openJDKString: NSString = "openjdk" + var versionStringFull: NSString = "1.8.0-internal" + var versionString: NSString = "1.8.0" + static let javaHome = "\(Bundle.main.resourcePath!)/java-8-openjdk" + let defaultArgs = [ + "\(javaHome)/bin/java", + "-XstartOnFirstThread", + "-Djava.library.path=\(Bundle.main.bundlePath)/Frameworks", + "-Djna.boot.library.path=\(Bundle.main.bundlePath)/Frameworks", + "-Dorg.lwjgl.glfw.checkThread0=false", + "-Dorg.lwjgl.system.allocator=system", + "-Dlog4j2.formatMsgNoLookups=true", + "-XX:+UnlockExperimentalVMOptions", + "-XX:+DisablePrimordialThreadGuardPages", + "-Djava.awt.headless=false", + "-XX:-UseCompressedClassPointers", + "-jre-restrict-search" + ] + + typealias JLI_Launch = @convention(c) ( + Int32, + UnsafeMutablePointer?>?, + Int32, + UnsafeMutablePointer?>?, + Int32, + UnsafeMutablePointer?>?, + UnsafeMutablePointer?, + UnsafeMutablePointer?, + UnsafeMutablePointer?, + UnsafeMutablePointer?, + Int32, + Int32, + Int32, + Int32 + ) -> CInt + + func launchJava(args: [String], frameworkDirectory: URL, currentDirectory: URL){ + lastFrameworkDir = frameworkDirectory + lastCurrentDirectory = currentDirectory + lastArgs = args + + let libjlipath = "\(frameworkDirectory.path)/libjli.framework/libjli" + setenv("JAVA_HOME", JavaLauncher.javaHome, 1) + setenv("INTERNAL_JLI_PATH", libjlipath, 1) + setenv("HACK_IGNORE_START_ON_FIRST_THREAD", "1", 1) + +// For debug: +// setenv("_JAVA_LAUNCHER_DEBUG", "1", 1) + + for lib in ["libffi.8", "libjvm", "libverify", "libjava", "libnet"]{ + let handle = dlopen("\(frameworkDirectory.path)/\(lib).framework/\(lib)", RTLD_GLOBAL) + if (handle == nil) { + if let error = dlerror(), + let str = String(validatingUTF8: error) { + print(str) + } + fatalError() + } + } + + let libjli = dlopen(libjlipath, RTLD_GLOBAL) + if (libjli == nil){ + if let error = dlerror(), + let str = String(validatingUTF8: error) { + print(str) + } + return + } + + let pJLI_Launch = dlsym(libjli, "JLI_Launch") + let f = unsafeBitCast(pJLI_Launch, to: JLI_Launch.self) + + let realArgs = { + if args.first == "java" { + return (defaultArgs + args.dropFirst()) + }else if args.first == "javac" { + return ( + defaultArgs + + ["-cp", + "\(Bundle.main.resourcePath!)/tools.jar:\(currentDirectory.path)", + "com.sun.tools.javac.Main" + ] + + args.dropFirst() + ) + }else { + return defaultArgs + } + }() + var cargs = realArgs.map{strdup($0) } + + let javaStringPtr = UnsafeMutablePointer(mutating: javaString.utf8String) + let openJDKStringPtr = UnsafeMutablePointer(mutating: openJDKString.utf8String) + let versionStringFullPtr = UnsafeMutablePointer(mutating: versionStringFull.utf8String) + let versionStringPtr = UnsafeMutablePointer(mutating: versionString.utf8String) + + let result = f( + Int32(cargs.count), &cargs, + 0, nil, + 0, nil, + versionStringFullPtr, + versionStringPtr, + javaStringPtr, + openJDKStringPtr, + 0, + 1, + 0, + 1 + ) + dlclose(libjli) + } + +} diff --git a/NodeExtension/Node.swift b/NodeExtension/Node.swift new file mode 100644 index 000000000..71f63971a --- /dev/null +++ b/NodeExtension/Node.swift @@ -0,0 +1,29 @@ +// +// Node.swift +// extension +// +// Created by Ken Chung on 02/07/2024. +// + +import Foundation + +let sharedURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: "group.com.thebaselab.code")! + +class NodeLauncher { + static let shared = NodeLauncher() + + func launchNode(args: [String]){ + setenv("npm_config_prefix", sharedURL.appendingPathComponent("lib").path, 1) + setenv("npm_config_cache", FileManager.default.urls(for: .cachesDirectory, in: .userDomainMask).first!.path, 1) + setenv("npm_config_userconfig", FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first!.appendingPathComponent(".npmrc").path, 1) + setenv("COREPACK_HOME", sharedURL.appendingPathComponent("corepack").path, 1) + setenv("TMPDIR", FileManager.default.temporaryDirectory.path, 1) + setenv("YARN_CACHE_FOLDER", FileManager.default.temporaryDirectory.path, 1) + setenv("HOME", sharedURL.path, 1) + setenv("FORCE_COLOR", "3", 1) + let injectionJSPath = Bundle.main.path(forResource: "injection", ofType: "js")! + setenv("NODE_OPTIONS", "--jitless --require \"\(injectionJSPath)\"", 1) + + NodeRunner.startEngine(withArguments: args) + } +} diff --git a/NodeExtension/OutputListener.swift b/NodeExtension/OutputListener.swift new file mode 100644 index 000000000..2ab9d7e32 --- /dev/null +++ b/NodeExtension/OutputListener.swift @@ -0,0 +1,80 @@ +// +// OutputListener.swift +// extension +// +// Created by Ken Chung on 02/07/2024. +// + +import Foundation + +class OutputListener { + private let inputPipe = Pipe() + private let outputPipe = Pipe() + private let inputErrorPipe = Pipe() + private let outputErrorPipe = Pipe() + private let stdinPipe = Pipe() + private let stdoutFileDescriptor = FileHandle.standardOutput.fileDescriptor + private let stderrFileDescriptor = FileHandle.standardError.fileDescriptor + private let stdinFileDescriptor = FileHandle.standardInput.fileDescriptor + private let coordinator = NSFileCoordinator(filePresenter: nil) + + public var onStdout: ((String) -> Void)? = nil + + init() { + // Set up a read handler which fires when data is written to our inputPipe + inputPipe.fileHandleForReading.readabilityHandler = { [weak self] fileHandle in + guard let strongSelf = self else { return } + let availableData = fileHandle.availableData + if let str = String(data: availableData, encoding: String.Encoding.utf8) { + strongSelf.onStdout?(str) + } + // Write input back to stdout + strongSelf.outputPipe.fileHandleForWriting.write(availableData) + } + + inputErrorPipe.fileHandleForReading.readabilityHandler = { [weak self] fileHandle in + guard let strongSelf = self else { return } + let availableData = fileHandle.availableData + if let str = String(data: availableData, encoding: String.Encoding.utf8) { + strongSelf.onStdout?(str) + } + // Write input back to stdout + strongSelf.outputErrorPipe.fileHandleForWriting.write(availableData) + } + } + + deinit { + NSLog("OutputListener deinit") + } + + public func write(text: String){ + if let data = text.data(using: .utf8) { + stdinPipe.fileHandleForWriting.write(data) + } + } + + /// Sets up the "tee" of piped output, intercepting stdout then passing it through. + public func openConsolePipe() { + // Copy STDOUT file descriptor to outputPipe for writing strings back to STDOUT + dup2(stdoutFileDescriptor, outputPipe.fileHandleForWriting.fileDescriptor) + dup2(stderrFileDescriptor, outputErrorPipe.fileHandleForWriting.fileDescriptor) + + // Intercept STDOUT with inputPipe + dup2(inputPipe.fileHandleForWriting.fileDescriptor, STDOUT_FILENO) + dup2(inputErrorPipe.fileHandleForWriting.fileDescriptor, STDERR_FILENO) + + dup2(stdinPipe.fileHandleForReading.fileDescriptor, stdinFileDescriptor) + } + + /// Tears down the "tee" of piped output. + public func closeConsolePipe() { + // Restore stdout + freopen("/dev/stdout", "a", stdout) + freopen("/dev/stderr", "a", stdout) + + [inputPipe.fileHandleForReading, outputPipe.fileHandleForWriting].forEach { file in + file.closeFile() + } + } + +} From 61a8aa21a6e37327dd5095636e92c5fb47725fbb Mon Sep 17 00:00:00 2001 From: Chung Shing Hin Date: Wed, 7 Aug 2024 18:33:39 +0800 Subject: [PATCH 05/19] vim: fix missing label --- Extensions/MonacoEditor/Views/VimModeLabel.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Extensions/MonacoEditor/Views/VimModeLabel.swift b/Extensions/MonacoEditor/Views/VimModeLabel.swift index 68d7a0721..f601ed41a 100644 --- a/Extensions/MonacoEditor/Views/VimModeLabel.swift +++ b/Extensions/MonacoEditor/Views/VimModeLabel.swift @@ -10,10 +10,11 @@ import SwiftUI struct VimModeLabel: View { @EnvironmentObject var App: MainApp @State var mode = "--NORMAL--" - @AppStorage("editor.vim.enabled") var editorVimEnabled: Bool = false + @AppStorage("editorOptions") var editorOptions: CodableWrapper = .init( + value: EditorOptions()) var body: some View { - Text(editorVimEnabled ? mode : "") + Text(editorOptions.value.vimEnabled ? mode : "") .onReceive( NotificationCenter.default.publisher( for: Notification.Name("vim.mode.change"), From fd5adc36891dde28a9d7fee05b8c684798dd9771 Mon Sep 17 00:00:00 2001 From: Chung Shing Hin Date: Wed, 7 Aug 2024 19:33:47 +0800 Subject: [PATCH 06/19] Use monaco-code --- Code.xcodeproj/project.pbxproj | 12 ++++--- CodeApp/CodeApp.swift | 1 + .../MonacoImplementation.swift | 32 +++++++++++++----- Fonts/FiraCode-Regular.ttf | Bin 0 -> 289624 bytes 4 files changed, 33 insertions(+), 12 deletions(-) create mode 100644 Fonts/FiraCode-Regular.ttf diff --git a/Code.xcodeproj/project.pbxproj b/Code.xcodeproj/project.pbxproj index 4d599ac70..2ff47652c 100644 --- a/Code.xcodeproj/project.pbxproj +++ b/Code.xcodeproj/project.pbxproj @@ -774,6 +774,8 @@ 94F6B510280EFD07000DBAE2 /* FileDisplayName.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94F6B50F280EFD07000DBAE2 /* FileDisplayName.swift */; }; 94F6B511280EFD07000DBAE2 /* FileDisplayName.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94F6B50F280EFD07000DBAE2 /* FileDisplayName.swift */; }; 94F88FD92C5B4F3400326AD0 /* SwiftWS in Frameworks */ = {isa = PBXBuildFile; productRef = 94F88FD82C5B4F3400326AD0 /* SwiftWS */; }; + 94F88FDB2C628AA800326AD0 /* FiraCode-Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 94F88FDA2C628AA800326AD0 /* FiraCode-Regular.ttf */; }; + 94F88FDD2C628AB200326AD0 /* FiraCode-Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 94F88FDC2C628AB200326AD0 /* FiraCode-Regular.ttf */; }; 94FA8977292FB86700163800 /* PDFViewerExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94FA8975292FB86700163800 /* PDFViewerExtension.swift */; }; 94FA8978292FB86700163800 /* PDFViewerExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94FA8975292FB86700163800 /* PDFViewerExtension.swift */; }; 94FC220B257F7D2A00B85D1B /* SourceControlEntry.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94FC220A257F7D2900B85D1B /* SourceControlEntry.swift */; }; @@ -787,8 +789,6 @@ 94FF3372284348F1003DE5DD /* KBWebViewBase.m in Sources */ = {isa = PBXBuildFile; fileRef = 94FF3370284348F1003DE5DD /* KBWebViewBase.m */; }; 94FF337428435158003DE5DD /* SettingsFontPicker.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94FF337328435158003DE5DD /* SettingsFontPicker.swift */; }; 94FF337528435158003DE5DD /* SettingsFontPicker.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94FF337328435158003DE5DD /* SettingsFontPicker.swift */; }; - 94FF33892843744C003DE5DD /* FiraCode-Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 94FF33882843744C003DE5DD /* FiraCode-Regular.ttf */; }; - 94FF338A2843744C003DE5DD /* FiraCode-Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 94FF33882843744C003DE5DD /* FiraCode-Regular.ttf */; }; 9F046C322922203E00BDE4E9 /* ToolbarManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9F046C312922203E00BDE4E9 /* ToolbarManager.swift */; }; 9F046C332922203E00BDE4E9 /* ToolbarManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9F046C312922203E00BDE4E9 /* ToolbarManager.swift */; }; 9F046C3529222D8E00BDE4E9 /* ExtensionManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9F046C3429222D8E00BDE4E9 /* ExtensionManager.swift */; }; @@ -1942,6 +1942,8 @@ 94F52708259F9B7800337306 /* KeychainItemAccessibility.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KeychainItemAccessibility.swift; sourceTree = ""; }; 94F5270E25A37E8D00337306 /* .gitignore */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = .gitignore; sourceTree = ""; }; 94F6B50F280EFD07000DBAE2 /* FileDisplayName.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FileDisplayName.swift; sourceTree = ""; }; + 94F88FDA2C628AA800326AD0 /* FiraCode-Regular.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; name = "FiraCode-Regular.ttf"; path = "Fonts/FiraCode-Regular.ttf"; sourceTree = ""; }; + 94F88FDC2C628AB200326AD0 /* FiraCode-Regular.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; name = "FiraCode-Regular.ttf"; path = "Fonts/FiraCode-Regular.ttf"; sourceTree = ""; }; 94FA8975292FB86700163800 /* PDFViewerExtension.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PDFViewerExtension.swift; sourceTree = ""; }; 94FC220A257F7D2900B85D1B /* SourceControlEntry.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SourceControlEntry.swift; sourceTree = ""; }; 94FD17032BAED290003E1545 /* RunestoneImplementation.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunestoneImplementation.swift; sourceTree = ""; }; @@ -2206,6 +2208,8 @@ 944EEBE72563C381009D77FE = { isa = PBXGroup; children = ( + 94F88FDA2C628AA800326AD0 /* FiraCode-Regular.ttf */, + 94F88FDC2C628AB200326AD0 /* FiraCode-Regular.ttf */, 9434C3F12BA345A700EB1CF6 /* PrivacyInfo.xcprivacy */, 94FF338728437438003DE5DD /* Fonts */, 94B99D9527D4A622005B5E3A /* Packages */, @@ -3466,7 +3470,6 @@ 9419699F280316C7008AAEB2 /* cacert.pem in Resources */, 9434C3F32BA4BC4800EB1CF6 /* PrivacyInfo.xcprivacy in Resources */, 941969A0280316C7008AAEB2 /* commandDictionary.plist in Resources */, - 94FF338A2843744C003DE5DD /* FiraCode-Regular.ttf in Resources */, 941969A1280316C7008AAEB2 /* ClangLib in Resources */, 941969A2280316C7008AAEB2 /* Settings.bundle in Resources */, 941969A3280316C7008AAEB2 /* extraCommandsDictionary.plist in Resources */, @@ -3474,6 +3477,7 @@ 941969A6280316C7008AAEB2 /* terminal.bundle in Resources */, 941969A7280316C7008AAEB2 /* LaunchScreen.storyboard in Resources */, 941969A8280316C7008AAEB2 /* Assets.xcassets in Resources */, + 94F88FDB2C628AA800326AD0 /* FiraCode-Regular.ttf in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -3505,10 +3509,10 @@ 948D12002583F20D008F877A /* extraCommandsDictionary.plist in Resources */, 94369B4A25EAB262008419A0 /* npm.bundle in Resources */, 94B3D6DE25F77AFE00C4F2B1 /* Library in Resources */, - 94FF33892843744C003DE5DD /* FiraCode-Regular.ttf in Resources */, 948D127C2583F734008F877A /* terminal.bundle in Resources */, 94A56835257CC60E008A6530 /* LaunchScreen.storyboard in Resources */, 944EEBF82563C386009D77FE /* Assets.xcassets in Resources */, + 94F88FDD2C628AB200326AD0 /* FiraCode-Regular.ttf in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/CodeApp/CodeApp.swift b/CodeApp/CodeApp.swift index 5250502c0..63d247dd0 100644 --- a/CodeApp/CodeApp.swift +++ b/CodeApp/CodeApp.swift @@ -13,6 +13,7 @@ import ios_system struct CodeApp: App { @StateObject var themeManager = ThemeManager() let wasmService = WASMService() + let editorService = EditorService() init() { setup() diff --git a/CodeApp/Managers/EditorImplementation/MonacoImplementation.swift b/CodeApp/Managers/EditorImplementation/MonacoImplementation.swift index 8bf10b436..ac38ada98 100644 --- a/CodeApp/Managers/EditorImplementation/MonacoImplementation.swift +++ b/CodeApp/Managers/EditorImplementation/MonacoImplementation.swift @@ -6,9 +6,28 @@ // import Foundation +import GCDWebServers import GameController import SwiftUI +class EditorService { + static let PORT = 20234 + private let webServer = GCDWebServer() + + init() { + let basePath = "/" + let directoryPath = + Bundle.main.path(forResource: "monaco-textmate", ofType: "bundle")! + "/" + webServer.addGETHandler( + forBasePath: "/", directoryPath: directoryPath, indexFilename: "index.html", + cacheAge: 10, allowRangeRequests: true) + try? webServer.start(options: [ + GCDWebServerOption_AutomaticallySuspendInBackground: true, + GCDWebServerOption_Port: EditorService.PORT, + ]) + } +} + extension WKWebView { @MainActor @discardableResult @@ -50,7 +69,7 @@ class MonacoImplementation: NSObject { monacoWebView.isOpaque = false monacoWebView.scrollView.bounces = false monacoWebView.customUserAgent = - "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) CodeApp" + "Mozilla/5.0 (Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) CodeApp" monacoWebView.contentMode = .scaleToFill if !monacoWebView.isMessageHandlerAdded { @@ -59,10 +78,9 @@ class MonacoImplementation: NSObject { monacoWebView.isMessageHandlerAdded = true } - let monacoPath = Bundle.main.path(forResource: "monaco-textmate", ofType: "bundle") - monacoWebView.loadFileURL( - URL(fileURLWithPath: monacoPath!).appendingPathComponent("index.html"), - allowingReadAccessTo: URL(fileURLWithPath: monacoPath!)) + let request = URLRequest( + url: URL(string: "http://localhost:\(String(EditorService.PORT))/index.html")!) + monacoWebView.load(request) } private func setupEditor() async { @@ -304,11 +322,9 @@ extension MonacoImplementation: EditorImplementation { func setVSTheme(theme: Theme) async { var theme = theme - let themeName = theme.name.replacingOccurrences(of: " ", with: "").replacingOccurrences( - of: "[^A-Za-z0-9]+", with: "", options: [.regularExpression]) if let base64 = theme.jsonString.base64Encoded() { _ = try? await monacoWebView.evaluateJavaScriptAsync( - "applyBase64AsTheme('\(base64)', '\(themeName)', \(theme.isDark))") + "applyBase64AsTheme('\(base64)')") } } diff --git a/Fonts/FiraCode-Regular.ttf b/Fonts/FiraCode-Regular.ttf new file mode 100644 index 0000000000000000000000000000000000000000..bd736851948d2d76483b434113e2d9ee35554446 GIT binary patch literal 289624 zcmdqK3A~QQ`v*KT_so4i=iwa38p7ERap*WW)`V=?vuDemWI2{3Ns=TJO}mb|Nh_q=lA)%=RV(=xv!bIW}mrcx#tm52vH1* z7RgOJUEKn2Qs^5yKo7NO+N^o0!{z3Jlm(n=(V=~(T7TXGH%_t;Ny}Pv>e6J&^(W5= zk-Afe{yW-tx;$rcrTb?Jao244?>k_4zq|v-x@X}12O+K+KVaP08n7^hDUNg&w+o*e!#fy6o|@LcBFZsMC7Lpnd~ORUh%F za9$b)``jTQsPSeX-k0J%eaP^!O=$T4FZue+2$RJ$v zh*<#jgaLmy?1rHhcER6m;5LAIor|1z2fB#Acc(X1INo$`I?OY?*-+77Dj%^EREu-~qRc9wr7~ zKYGxOV(_qjV@HV02{()wA_h;m<(6B-V9`{B8#iyAESfg%(G2QUjXRUtk<`|Wdq8d5 zz75n4ZOBc>_HChdW;dNX5(VuLfBE?wH^gvwztJ~}gyA<1zY(z%K9zJO9Jmb^-cg}c zg}&@d3gml*fk=_8Fi9?li>8QuCHSKHS&8dsWv-vSxn@p5&3sPG6VIc5uH^c;p6lmM zuAd)r{X9hVQ+AibTFs zwNx&oS}K=QErkozQn{LHsa!*~6h2T(<-1f%#oS<>g70q$ zYVs`VZB2Pj<*F9Sq1vlTqTcparBz?mUu96eRh6jTs>`U}s_Im4RWsDvIjXsus~&=D z)Lzv|J*l>;K5CoOQB8C@eXak-dp&eeI$TJZBc154R^I4GYZHhjj zJ;77Z&Bfp1x&}{Zt9`<&Lc7Yf@;2dZwEv8cm_~;tg(ii!hdM`}@OE#gmlv8Ec`5`Z zZ(OKd@PxP1<4v(osB&QPro>I7hiuDN2n~xq8e+B9Nfd-CNivri~J`gjwA zC*uA*pFTa73Ud(mNQz_A9!X7vXNB@H{-bG%P2b;8XL-RhJz|Dtr6q&s%t9?gEu*Dp^RIjbu6uo>bjnju z*M}-o%_KUz$d0-Q<-*Ov(2P)nP!r-9YDabfKQ{LW^+jw3hlW{Ss8Qq5dZxn9?D9=R z^FVD1ePL)xXgQlJgjNT&$+iaT@1Im#Dxu9(%Au_`FG4%02Z`njl|=L{u7ovPTC7cI zAK8Qs(i3&hv}2(Yp&vrOgwDpPxKLa|)HZaU&H24x)a5^$;>yM)$7NpVCN3*3C$3K1 zh`6!VF0Nr*)3{b~9fCd!>FyQRKW<3Wh3~EawR~kNz3}$9)6lb#w?l1t25Q`d^Yb`7 zG;T7v3d*B=<+#)3V@jXg+cL7XgWlt&S$=Ud;}*p&4X4Jfh+7-CF>XuTw(^yuPu!fi z`RCim?Tp(Uw>NHo+@ZMRaVO(WBc3`O4kw07h0BFg!$?zr~$9-!5D;Trb=x z+&tVS+%eoe+$TIRJoLP0Vt7h;dU#fNZg>I5JTE*h9778)4lg5m?DKc_g+w9u0=tIP zhXCuto5HUkU*0Y^4{uPz?}tAQ9|#`_e;qy*J`?_fe3ysRBd<68pbjKeRWNTr?ak^j zQstM1q~V^rJk5flWVIEm zR~eG6hxul>cU(5tW_2#BV_AKM!#d9DaE{gWZ0<>BIgaC8pD6O2dk1*7))k;mW;d-_ zU8^Dcsmg3_$ZC5|MKM-eGNmPRzJbldS?y+3rnfc|z@Z0IdN8Fes|{IwiR1YqtGBUw zAFEwh?aJ!Yto9*Qd}qc$eanm$GXFs{1m+-ui=nFP4 zWi`jG2iuaYj&$oIpAVC&s=8M}twgG9!<0epMy9_AHOs7l`YO|_v#&SVJdu6f%)TCF z%6JZ?5A$!#>O!U`u&TgNMXV;0DxYR^FXqsVIo!&Wxy+##bNGzQv@P?w)qMal>28LyN;SV4 z+g``Mu4SIjvH5=HS%`V|X3EXXvorJT$2rgxD$RI!?t+<1Y0Q7msuFnDn2#;+XJj4l z{&(}32gMZ3VIC7RF`HQ_=8APUgkN?E8>(mE#495q!#bX zuq-D&kqt2mKf$w{Vwi;wlf^O986iv1EL@i4`OOtPziEcq%X-;TZor(S9nW$)@+_w- z&vLr)EN1}Ea)$6M=LVkT4CPtQXrARv=UL7?p5@HvSA6HC0XJ+nBesknhl32Qwthb>#ar*TD=4a~*jIbDbOHVRfUrQ65zz)JS;@^PVyC zxEiO%$#2vIHC3LVIgtFB=0Nfno&)g=9`mOs)fSbYUQw@M&h&=UQ)SWYN4<{OPk*)D z8R#5RJ9!S&jORctcn;K(=RjBU9H1+m@>zyv< z0W-(xW)_$Q&b2&S>cO+6o;+LX#j~Z}JX^wwkPt;Cqm+w5pTC5*+&(7!;D z5%A?B;UxTA1Vu(9%#7a=KPk`?Cd1vo0P#)0TEY1sJ{HligE;(?p3oJ%fcUBLGcLgF z_<8^2_kUv-zYt-@AOWjf7sa83nF;6Ne-rNi)Gw7?;D_QDnE$Pwkco6%1SqRk@k`>D z$FGjx@Nap=Z>I1QT1A08+-gBQ66z#0ycpPSKJ0<`9abkZ;opXxu;03kKL#E#xM-On zpW=5RedpodhV{R77rzJL|4Se*8(s|Y`w|*n3>V8^qQxJ)IJoTnd=Bale7=-2$R4QL4oa2Jab7xQPsN@)7eVFo-oeDpu8$HuwrKl{J1ys6)b z@<}-K_x@wcDmI=}=0TdNT?BCo+_PO)ly5=~+@p=0?=FZ3)BhnKg0QUng7J^#5txH` z1n;EB@(9de!P?mwt?y0n~w#fjDgR`BOUoC)ft}{}WLB{|QJNrSD&1FWmhP5Ss`8 z7v_uQ_5Yi2sIUIlI1ab}18|wg%E+f}y@MJiJ8=80Ac~ZNT_ONI;T&{LZlkm!<%(3o zTPgtmY_0}260^&7P#-3uKXrh-*f5!m)-b8j{mV)Fo2Z)Ei=Qk^zz zMx5b(2C4ELR#Eps=}95V=hbp#_d|I=48LJqVz@a^>ACRj1sdJ!Q z%araED|tPe?;=&&_-<-P}^n2O-9hmb!-B9A`Jf$SjMqy4-SOHyEqn@>{07#O7ONMa+bEsAu6mUtxvC zxt~c>=S?z z44fYz_o_Ron2n?45u<<;e1KCqsF`9K?LD8jL+;@H5$`F4D@4nSpvgsOvF_Tzp7Oj0 z!Zp0g)ScCrSiOwZE>Iopa3>(fs3p7-)}7bz24FRmVvT)zvm@@1-KRGVX`kLSq%SOw)&FAH)&7fNU;bYVJNsXT4atD}mwNvn_ig{KXKUK8->|WA z!2nX14Cpszkjfh{V0fMyH(*?Lbu|fUj+zR!hMEDjrkV}4mYN4OS1p8ETP=ZFM=gh1 zSFIi}u6nlG0JXZ>3^hk>g<3=HfLc@Sf?7-MftsuKL9MM0Lan2YL9MG!3>cS_t$u)7 zUHt+zN1cUQ!%Bow88tILT1!I++8;)yQ_TpjLNspyoJr296jx z+-W#?biV;k(;+wCFwkj-(}}~J&aC!ewJ)oKSsljeXjaFwI*HY(tj-v5)9}&G?2*u% zc_T*;9N{b+gB){~j=5pPU}wdcG1=9fwNP`MjZkYiTcFl-wnMGuybU$i*#otUdUfVRZtlx3W5s)k&;QW_1dyID?4zSV{G6Hs8Z4OQdoZo9}1UO2rS5Ss18} zFN=`>AxtgD>Lsj}X7y55OR~yRDW5NtEDuUZEySxBtJEV%$TCy|3PG+Rt_@gaSz2Df z=7wZ1uau4WjU+xLuaYd0%jW#nQnq3{lH0XxE8EL!WG9$i*+q84>B63}x4e#A_%)3r zRLL?bc8ukNP9=9%$0da-7aCn?aiJdyohw|pa4S6h3$G}=tMI9K6<;S|b;9cSJ@I>> zo`E?hVQj)I=v%PfbGk_LB0Y*6E3u)(h9bWtP9{BZR?%>Y4MocpodI=W(IZ9A7Hd+h zSF!D6S8Px5i6w`X99DcriG)(sN>wXSuEa9Xx0UPz>V#6spfxCUuxhnZXD{iI*8h@W zmz+sIkba=FD!sJQ%t|v$uP>8bX=a%wWk*+@R(V?4$(N>9o_1-?OLtV6cj=*WZPNOe z>r-xbxs&A^l|9Ou&l!Nq?$<`lU}JgKI#4B1~tbgcTI*F`mU6kwHDM` zkkTY&MV$k64y0^KO-`+br%CGU)J3W5Q-4bUr=-tK-;Ma3 z$jHuUm9aQueP*%Dtjw92%QF9{Sfb+CinA&ns`y8xNr>r!O2;alyR7MDeJYPfOy^b! zS4pojy~?~QOS39xHO-olwX|w-)oN86RGm_FVbvp5&sJ+!ZOG-#FYkW&qRZD_{!4aZ zcGv8@>}}Zxs#mMtvigGR8>;`2QzB<@&g7guIVWr6)M!&I|&28)-dJcOIS% z_1t=;>rJk=p#FmT%NbkhA8XX3(ey@(8*OUzexqL+7jB%|xK869jfXVe+<0G;4o!wO zIc1-#_BTJ#LbNE=qE3skE!wo`3w3&nWi3v&IN4IPY>uZ#%f)y$wEUyxA6F+_{R*Bv zttzz2YE`dQyH=-Khgz3vosOpto;Ixqx1QX3TkAt@RGU(5+O!$mW=@-BZBDjz+jeg| zy6xPyZ?`?xu57!S?S{6S+HP~Zz3mg)XSE;EerEe^?GJTG?a-*hxDK;B?C5alnhAK` z@7Mv)l8#3@{?;k6Q>9LAI^}hm+i7Q~k2@Xfbh>l6bGgpdI=AdRy7S!5`#YcNQn*WU zm#$s%x-99kp=)Z_23KB40kN zA+)|N;xl=ZxC1k`DRLZo+^Oh~??!)omn?$buqgV&;^+}e%2M(Y^nTaN(&!z_%1dQA z*K8wKRKR=5R z(#4)-2tW2&j@T4@)*yEO@zEh&ShvtEb%HLU6Lm3NT$j)#bt!#`ZlycvE&65spq{H= z)m!yzdYj&^Uw3cNoAmqo1HDI|(BB$qlyQtU@0k_mQ?ti>Xx=q1o4w{Ev)_DX-ZJl- zkM&6NjrqpC$sOzt)AP*hZjLw2d&qm(d&%44z3jc>ZS`LBwt27PoZ}nb4)0CxJM@3e zP=-{JMes<>5K}>Gg2%xK+Yg!u|!YMw}~h99r_OOw7ys0E0*hddY*Vjuh1*R3cW+`6f5;X z{e@Vq|J3KiT2s+f6dO#A$q~<+)~2=CXl^tk#0zGW87*EiH)9>(WpkUkO}uLEGIxos zW`>y|UNdXV8nMm1W8M+3qlDfQ+ufROE%AnXwR^RA)4jpHLF{zLxMRgz-d)~Z;vG5} zD|Ydh0`KDF$#St9r?pp$_q?^jyTgXPEEwAjm60IEoz6_tv*(V)N%ELQ_e|sDmyt&bEktd-r4LN zan3krHP&Si-c6_xn`L=fN!CE9!(<-D+6s_(YRW5NN$2BK(>IXBBZD*WJ`oRT#iC5 z#CI?9YK-h%Fq)5$qv4{J>>#_!UNE)Bc;8L-hN+Fs3z*u)#rKGE9go(2WAH?K1pAuYrw40_LFsGT@z-5ULZwR z(Y1uquJ(l1aXPFE>3F;s)mIBw_tDqs5qgXsuh$7r57LA6o%$jDq+YLIft#WFIrtf_ z@6t>42AKNmv3i<*UW8ElZ$+)2rytWBQG(zRVUaLPs ztS0Mw^rL!_{#YN;$6&WmKdwK~NA;J8(H;7@KB<2M->>v{CL8(`{k8rHHjn6U^choK zD72^dg+}{(2QBCuQBwENJ<$$pm@#IoxydXsPnxCXDYMKxZI+v7&OaV zeUrW$t$dgnZf-UAm__CZ@LOxv;iHF9B3Vz=GfhoX%jBXz7-~kCk!G|RXU3ZeW}=yF z?ljZPbhF+(XEvDU%|`Qr*<@Zco6SpRi+S0--W`pQ`ho9lW|DcuylS?Z*UUEay4h~t zFgwhfW+(dY-R=-~3`*--{gS!e++prEAGkx&TR3Khd!suJrSKSf5aqqtEpK7o@(#~NMmXO&r=0JdADkbZ)6P$5y+1p@ zpyr-Mt?jJ`>KpVhJzC$QZ`U*QY}ArB^t*bW{#5VRpXmeobCY2*&E<&wN%Om#=~i?r zyIF2kH^*)1j_`0AF^~W-M=PSUbX8pq{cyIfu5)w^T~pUWO*o32FXci?5E^m$1p+zv zi!gB$g~6{f z+W8cHJqEf>3A<^5F*b-ReJiNtO^~GkP_e3x(R&75*clZ@4_eDcuL(QT0KE5Vd{Kv| zF%XF(;zem{8=)zT-i76j&ROR#=Nx)F1cLs|LEmLC8qp{~qqjh;uwN77tCdJ)Y34m& zemSPUMEm~=E&iK8j&TQ{C!4%_5$Oc-h#rM;{0)rLZ|a?~H4~%tS^bwj=hniAIu|49 za*UwQdaJ!PG=^dX-QYd%ZS-Ei*F@jO#0>ca*>n)TiaZUfhEy{UBj}GYF3LfkxdSIX zNs7G-(rSOmrvv36Zh3_uBQ=3k)DyDLe8@Q;iLYfLv;!(no4Zu{#jw6krC1NGk-|V( z>ziT1nO~U87NC&}ftC75In}5G3YQbwF!_tvaP6};4SkLQPxjHI58@GZT>>!(Oa&@VO;X1|MU= zGg5<4U#NbgbVMjKk9s%Gc}kz<8l;r!6lyZp6dOCDkcs%By&_$-XKC~4eEzf(8MFiI zyE=tfvK)oTDWP!v5dE^RejfiZLEV7+2>&{xIR;e!sVwWDSBaEmgkw-I(1ZAO-^QVa zpC0Q&ptTY`nsc=xF_3k_h<^~Os&O3qggJQBl^xL^VQj?Me+#&sG$)asOqa@sYLDZN zhU9_~2WGT5a7aKqt<3T4j&~ZJXq=*)q_FATzF9r6!x+KtY`km3jkU3E>)3cl{MLnu zT%wn&(IEdSj<<_`FCBHgC02R!D4Zsf8LG)-m}mtOKAMaWPLmPzL@2#L>D8o{0s(GR zPUoD?aL4O{pwuT$IgLO;*%LscaglhX3e_YPD$(#AIngLaP2BuzI7S}IJ{@`96g$a- z1-|(gGIv=7evESG36(n!D!t3}S71Ml5!gej%NOJypS~z#BxAFVBAl@BBUzGP0%y*HxMl&Pum)+4c>?0eHdyt3mcIw>+Z@u5HPwr~8dAj|Iq%_-m_c(dUK@l}YOqc@m54xQb^_D}J) zf5&%U2w%BlF&nWyg=kGN!q;1NbjtxJ<}~$vX3dn?DbqSemtvhOAJ*nmsnY-dZ~z62z^m9cA^?0Ej`3gF#$XcV0$?* zf*E}cKZpY!YMH@%)Yis}`oO>rvm-o~E(Gc;zmYxBXzwC$OYi8(n1WhYJsEByxtQ1h zZ(;0(6&P3aK=Q2zVy;Dhl!q|$TTo*HTdCK>Uc!z-=*q6G9ldu06}17Y4&;hBksE8m zXj+8UBG&8cIX(%f`!&%bdY~0g#dlN7v9q=t>s4p4R#lGjr2%*Vs=<1wep_s?SU3$9 z)58>1el$`f8_a^MSy0K9(_nJ>K8ck;odD_ts6 zKU4oqVr7_^SN)y!cM4hm5Z)+HuBABC-vI2g0Ii4bcau={H`Pba3L0)WVIL^X`U}w~ zMoV)pmnO9mJNnk+dMEWT_)vZca(R-uV0rrQj$76569V_PY=bxQZOs&i-dvX;&AFpA z;?1!ls^qtzR`iL)R~0#p65pWnqH)IFD%C*0-+*0|Pu~LR=moBv4)j%YmXFgxW`2v- zOKTgG4&S{WC!WU&j1`;`wxf9Wi^dVLQCK^pcqnim7L9AsRUB8;2(;`{7}I^(6ulXS zU*_nLIr2t*Sq^g^5XmW$N`ssl01kG>WL;6aqj;fh6m5iD9b@i@hAt)|T$*cjh6~%r zMma$mxFAk}WJ__f622`x>U$}i!OSO!L6qjlfckqgnOC9F1Aqh8abjWvd5L3F^CDb^ z*cj@KF=@3lo9nmuF(6t@XjpR`?T;>S5j(m-miznA(2glT%$b;M?E#nkvGLQ6c6GP6C14A-f3gQ?qlW|el2T+S{4aK-wxl3R{AIq4uw|z zf;VeJ{PSRkQ3-3sGG+c{T{i zn_DniX3XdWGrvi!c1K5}(HvLnl0v1{f|Aqg*p-dRXpRrJxVq@UVMo1=jhhsZxe@Ng zL$3-~XI>#Wn%4_QBvSkztwTIjqH znpWfBE~Y1h+3yKs(>FedmEZ6284uql#fl^nKee@UxsUSSDo(yIRGRIf=F_Z?{-{@g znct{AQ0Ws@pbklX!wiw%Z)3XkN%oU`ml(k+miFgultx+M1Z>Vv>kQCPlQqd{94eXl zO<~8=j)}w-G3GZb=LxLJk!$Od?59LStuO^;5y@eS@A;vMeDVu5A3ix$Hq#sJ1Kr^B z5|CBsWDaT_`w+NejYDPE6zVkJB~piZV30@j=0YO0{-QDI4@wAe3uAmq#R(>9CtvSLIVA3c>8x9q0=rU{Zo?z~fX_FqzbRLfIl4;a`2W2eN z-p1NSH0Nz@@M>D|REitVyC}u<-A5iE8f>~bB<{t&Gg5eRx53d-_mN#O5KN1dFAcf=C zpqMqk$0BX88d?mk080HC_z)+By)H6Ky}tmRTu@k#u^LIC$!5Or1wQ{d9kH-xiWevS|=TdS+v1iYBb_S^Iy#p6U)&QS5V1?Vp&iM&wblnD-zw0Q#$f` z2F>#^8)TOhI&z+4A;iV*NlhWEoMq5E+*Ua$RF#vLq;uTp9sGb|0CA#vF^s~kf?Th%jcI~c2g&VP z3sBdb&clvBSBYs7&t`YQ*0M#7>`7PSK5ya>aC3pR7h9;`UBCB zW0Ca;`)+6PHoWIJTl>6BmY68rR)P{Z$zk(D9cMnjB|DQGQO;G9eW{$>=1O%hA&yt%+=6BE1Fh(EX| zBhH*6^osO{lHpx6YsQWmhw|EaVcl%QLQfbCOI6&CoUci{C23nwlH1Y3?MQ<@4853L zpEEow)mXn7LuH9Jh}mZlGERum=!3RHEstkY7;Q0n!W~=&qY|wnmPOxL6Mb(R#0>e4 zC(4CJDYRIo1vYktyPzw|KT0uC$^1H0;)QrI-BSEA%sh^qxfQXF)Qxa8_=`wsF?st2 zpcEbEPt%l#PYXwt`2dtHH>8zlICn|A&W)K zR>l)J=Vkj1TBD&9S&E-W+;6|2?*N@7oc+-G6mqU#9Q7`Bzepm-C2+J>*7~k(*kWyN?x1m#gwq`5W2%KVxls%{GPUb}8>+LaN z#Yiog`>8~19-%`34`6y6flLg=zWlg0#?hXVXHh(wc+O z?ZflJy30??umWlMyE2Nd)J0eAg7vwNE=U(q3Z`qaO;_y7T*0~>Q%0Xqx}0UvoP-1% zq=m*iAwD^e|1>`>qyJS}-u1cBs$*c5FcIfZp%yG7q7+QabWo^nzZ+9V{Xr|R>f*Kp zMM9-NxX1ZLGE1DTwEP6_?;{&>LzDwPJp{c(>^?O@!HkF9Me0P_E>Ji;m2Ou>cy*3e zHo-Gyb@HGM!(Y4mA{s{84C2YQ2r+FUR%;{NC1e=Xcb=OoUYGE>pI;7#!GUs%Bsofp z5JVvpBnY_yxwKCAkMfNjp`B{ncTrzRJuUrN6Zt<1Gx)}=2NK2SODz#=;X^^8-ZDn= zDGsUmyi&0IgT6Odd5q=!r602Gm5)clk;S&gmO`=h`1&uBLzqQS4z;A&Q0j4BTfj;i z>M5mx+P!TXzS)l2Ot-1D{lV98O}Y2HAEv-p3k6cCpVv2m0(tfy`h%$N6EXb($AoJG zg&4ceYgfO8IB{NBV>lk?~-^3?gQ2>2*LqMzNsNOj*d)HaKlD8E2k(mXk=o zIWpUy7txHPGWku!jE8_TPyYM?epKSJ#AW=>=c5zt`lArP!=0la!U^~x9BwhZH-I~e z0oh6YkPVAg0u!mG3Gs&?dI!9bd!kUkLi4d8=Jwo*_MEfz1vM+0HGawdMi1 zp&E+w`H>j(73=Zs4{=1BlGM*qo3a1OKaE`muXHm=3G|1lI14^cJdBmhC&WtFU-(79 zuV$WkIN*rY7|A>MU=EXmuLVLlB`j%;>2G*m^n^J4_;KW&5o-UqPzCv7<0v@HLJ>F3 zVQ<~g$_s^Rkb5B=5@8(=UWLd%VEYnVW9*xYFTW8}X=g;1hSrVzE(^NS@915qDNFG6 z%3{1NflBoyo6p5f$M@i?@%5p?SBceRQ+yeeC#T`JMApjfxL5ZiB8%U$QB80U&QLW8 zzwoh4ZC1O~L3|q(b}I0fQ9Yay&J<^%v)0++eC(XS7d)l$%|b)XbtD089#9E0%k1J> zB5}_eqs(UeuIL^0CSfR4uA8*FRR;Cb`HfO6aqQ0%duqTQKwFJKYS;}AS;F}%( z9)`Y#!B;E%4GO+J;jc{abqRc{xUQ-c{I>xpmwld??8!3NB`lL$2ID33CAZz>2_fUQ z!;W&#cT2zg6So?+tIMF5i@5C}UlB5XwUDJx#kgG#+I+0N%`d$#>Q-gSIVk=^aJwzW z?L^St#yRY_OLNOZ+K^f~7_Jrq^VlV?3d)X%K^ACJVrUH!QZ>*<#L&=3s_~%ph@m0% zh0cN&lX}!du5YE$_BfT)9%-dcg(}h5U%G;y+i{%#NPp?D1zd;OT{W>)$Pk_3Bo5Xc zQW2VF5ph=&Ukk{>(+jvm|5SLaMc@wgHxFs|dnKP=FHlxk`0gYm9eK$lpPOwzxd_o; zslr#4RA17;yF>vus6n!Cgo1WKwT0Yzb-)j~cu6HrM`6$q)Fowwx}@wSwncJF_K@2i z;(||GD80TrZyvr(npf&1)2zFu$Ze#!)V^4Eh0u={np$dm)E&3>-Eg7<@Rf~Tf!^o^^Ex=_$eL=9erfvT-^+b4NnzEHZ#KuuasCKd z6z`5$$zKJdtWX!WM%)CglH6#FY*j=*Nv$9Em;pilqHdCJwsF}1j!1Y-BfMx`l**|% z!Z7&ubsZMJHmK*(8|_kG<9oG`Q$(aVMV->(G73R0j`*w=<5Nd`qRz5UhkYiqpOrDO z!k9!~wu7SZt?f#V5!VOVT_i(lNX8k;%{a4-L5IJ8mi+xQ<$!~)-{H@`>-M@mXtV=I zUsU9BTqp-9EhSlpiQh`GPGhdMy@YsMGuxLY6`!_1fqXEP3-D_N3Z(|{-AS|)naHa?py0bT*rWrrwn}a+1^u=@7@^QO zfzn{N7zY#4pUbb=buv`iv*6LC$PZ|@Kgiu|lM=YbY)Z<_F|J2j*BFN|7Rkj0UDFOM z?Rc|t>IYTiJ;f?=}eJi-_2Nj`py@Y=s+q6BU{9*|@inlSLw+!jou*!rx6G zUXb74=N^(mvkyMR2~5z1%pesA0W<@LEBL0lLBJVb7|Tp>PAATM`i(dbmE$hpT#n~KI}uQEZ*!b)As67Bh;~E0I&rZNwjcu&bZicj3RupZ9_(<% zavlxNIHeGmN1XA^KXbOFhQjSGFNqMt!(GPoS9{PcYai52BvK;DVzI1*;-QI_D7xv3F z#q&WsuKB0sz%?2}Yr>=jG@{#BXS428WObiz)6j!_Bc7B7d)~Mnbh=wq@{AOz0FxR_ zLkq&J-twdtqv)0d+lsJmL2DP}wic-X@lO?0=D}MD<{G@Yq7v+A?}5Umo!V;nUaUJ- zA7*iA=uP+p=^o-BYeQ9Zj{@6KNE?yD9#E}q5a-2sCkRRVHdbbu>BqS)-W}p$R{OEe z0}ua%qO1p7I)B4`0MbcmB|h~@1*i{zbfVY5H^t>$+B=M-Ej1tI6?rR>e>mpN%|D8_ zV8uSDmvq+7gG@eIn{Pa3>D#lc1g>lkS!vw*aLWaw_i9q5E@w21Vn32i))C@7x9{A^D9? z76$D=Lh7d2QSYhIs&k+dKY^P|h(czGn_&V<5EgRRyw9$2(}f%Jiyucxy%5ECl+RBvB_@9EDDwgA zXumn;B;!SP3WpWouVTKC2*PS@!{VM9A5miYt?>Ef{40JmhEsZ3Gmq5z|=yR+_}f0-1#3BV-SsGu6dnK81L0kVJ`zGwvJ9lawaRDB1S!3e@Uq-}>OGi>)MBE2}D^iYnBv>xE zn4p%vEh;wrr~5x5<)LufXB|i|b-=$f#y@;F$+vM8 z{M~N4jZ5M#k#$h%9xlo?jhIZs`$OJCP#^XlhWe8CCdU_C(C1RT?IYx%z(n>W4MkD~ zY4TsBDe*t1D9SMv^TpD*ovJMEp(=+vrz+rnsbt(G^|Ag0cOI2Q+#P#o4CJiHtvitz z(RflAZ;Ed~3%C*$YjvQ{!0m37GFvJ{r=3d|Hip|jWn1yVV<;Hmoj-ITP-uVSY>Z7Yx-HDV|LZ-!1wv+`Kd*hF7wPH@`>j3B)ad?g+XC5H4}c7u?0e zM7MrT#NA$e^B3J*2Oe}IRuB%AWF5Rkr59>*BrAQ4`=+S>q?@N&x+F0KdFbLRWcYyO zcJcmA@>(C~nY;}y14)P_J*EVCNs`bSb{#zzrbS1b;-o%_dW^}yBAfs6cE3MD`@=21 zhz}@1tT5+*v@*(%lii!EgL4hUgGNI_5Ad=5c~hjZ71}?=!=d$9tg(_y8a;wh>kgPn zLOOp0uyiX|RfU_Fv>^Q5ppeuQwV@pDOT5fKjt4wK3po`o(JNx@+j6#)m@u&aIFiD^ zs%q?QLl;PX{>hLx5I^#5=fXl#-VuNFX-v12SpMrY`ZVzG9W(!x7m@r1`dlr4d!IqU zuxRwAu+~SyB1&vn>-Bt4=-gIxu3b>7wsHTQ{K*+miQi8?7fXrd_mh5v`Qg5@n7T>z zn`$-n&cRtZ;%Dbe{qGC{`rv+T6BhLajNFfakzP!BQqlY)-Ay3pgzMt)Eg0&9ZR!Qd&x??5ba#2@Il9S{d{2s}rsy6mox2QMO zTk3PHs26sMI3=8lPOj6$Y3AJQ-0sY9W;(N-C!A-n_xhG|7^7gCuBWfU?H`wyFeSnj z?y9h;!cR$FQjw&RN#&C&CS94-EU9f$x1?*6dM5Qwx-IGMqzy^ilRixPEb05CGfC%? zL&=4b%O+PyPEF2C&Q7kE+%&mWa$fQ+$+suplRPVVRq~qT&B-sPsFe7W;whz4%BGZ0 zNli&lsg}|?rBBLrDfgy4lCmP@xs)$bPT(5VBB{kvOQv3uS~j&pYL(R5sjXA{rw&TJ zH+5m^nlzE-rX{A8PD@FvlvX8edfL5d&!)YXo|!Q>j4w03&G;4fD<@~x&TNp`D6>gs-^>A-gEMceSiIt>iceJhrs7W(^Q(B( z>SxCvatJn5`();VuGKR~`n*Y$N%J%e+0GII8Gl1K_AB_@?lN=~Yj)F`QC zQU^b0uS=SoG(Bl!(vGB$lRi&6o%Bnxhny{zTrN48bGELZvtyGdBu`GB!8!Y4Bxg&e zl!@eQr<5+p*%>LbQ=Um#n{qJa7;;vn7Ui5RgPg6HS~InAYTwj>sZ)@%OOUgQb2d3G z9XWe9a`w@*-Sm?u84qPF&RA6-XLn@0m9abHql`~8zRLJMGZ8tPomn@Mvx72+B4_iE zvtL*Iq2ie;rdqx1!iU76#fR3O63E&9l(QP`#CaL{E1WT;o|}Poj?*Ce8+wC25BK0r z!Tpkr^_7;AUkSf?;N@cs&A*i>f8kd5zYde>`-9(OE&A{_A&w0>y8YOwqi-F~|e)bfguLj$o`j{Cr@0IQj66cpq{2#=}Do4?aBLaKFQ}=fr=9;qu_02TvXR;^4u9 zpB>zP@a2Oq9o&5I@q-DU=Y1g$jDYPDa=3R-#Sbgiu2{LuLDSYu_w3pU*5c%7oP89| z24^$WR{}UYdB?>D0o8fmIp};1{WOtC#mN!$llTr%=w*ge;)0voC*noWd-Ts858L%# z*vs@9d9Az=-e|J(CV8_w>K9}FJj|NC*+lT>24rtmU+XhzG z<3_?=-uvDj*dVVxq!8-45Y!NAMaT_R4rPT9BU~}Lkksg3+}ybNaZBQs!3HJ#_kVF~ z;bKGFrVCwQ=Wv+L*SF*QgO*qg30;4;&&8I;TIIn`M;eIrmqe4XKs$}phuY#=Ct|N{A6mI%e+;l zvb;(E>DJIYOcn11Q`OC;+eW=LZX;7k-|TJDRpmI`30Ys)(G76(GuE6j{)90O#o^>o zQQTfw25WZZvD#J@qf9n#s&0leZ!IAaUL#t&m2fA}jr{u&L&YtS8^06x1M-lQ?Vjv`E2MaF^n4=M1qLv+ifH zw!9WA%4@LR_Z)Vg*Na-1)6~GsrW$U2t%=)StK$aPES%J;jdlIH_-5n{Q6FD1T!Fh^ z8{ihNhS+7h5_6a)xO1l|&bnWP-L&^abMc{Qhm+1%`{)qR4_n7y%deP~iHsklbUE`^joQ}A2x|7q{>7u)+hcPq0Tdmcd)jG9a zJ*S>m8=V%kqwchI+BxkZ6|}-l)mJ;Mot91;^_tTQzcjv0y^h}*?}OhP@2R#pUDeA@ zH}#6sUA^jDtF}5loW4#!r@u2mz2OWrA+^I91bJhpGuXKvQpels9qb6-DObu{<&$!W zd`d2pPs_#f3AtR}E2qnca8B%I+_HU(oFFI5J8;|fT{t^-H+E>}$%o}5az5_Hd{jP; z8@L~nOYz(8E9iIGRUB^LPEe!LK6eDsApBjSS!Mj23 zS3~7z_;vXMY8ZZVez-iSM#wMlJM)KB9)5RzlsuwFK^R&&yatrdm$aolz*xFVWzjrxCwUhn$C<`OYKG0_RbjMSRRzq|T_H z)i3H-^_%)#{h|JJ_Bo$A`<>661J36dF~4xqoeao)6`e}XWw_(LiZjL;>x^@5f@D3~ znT#9YKf!5-kJLWz9_O$(-J9<{=se`ib>=w_I*+Tb)Ys}qbz1%8-Rs@w-S4b)Ryof) zt066}aa_l9v}3%P7(Zt_Z{Sqqn;5ex^*1zjN^w0WN{hR*9)HU_=czdTb-7YQ1(mI#x z(TbP((R}ZGZ5o(|%{=!u_h$DN_g43Icd|Rl9q&$XCz^hyuX~3(#hvBe>&|rVGuOI} z-LQL|n~RIR3cK1(c8%M^O)}?P*S*4R=vFjm-7DR`=1;e++r~|GFEM|(70h4eSGTNN z-7Rl^ar?Pd+&DMIz1*$lc6WQaX>PjP&Ta2r>Xvh_b$hwp+&*q^caZtbE$t3)3%UJW z$5n2IE8Q}tySd7}-^?`kx(RN)JKJ1mdYK-kk4ZCK-KK66_bRuA+stk5mT-%?#oexM zXSa)6)J=4Yn0&XB+tIzo3^2XT_2vOH$Fwu;%{3;~Tw&5pH#5*IFr7^kbHABonwplT zmATrqFoVoPrh{n=8S6pQ(R4Ch%zfq&Gut#XSK?O+2b<<*u6xpJ;C|;_?e+DVc>TPq zyx!iGULUWKd(^ApRrTt-UwYNODqcPJn0K=`%4_K!_ipk=dd=Mv-fdo-na{n~5i4f3+R%H9y~8n3SVjo02A?2Yk;dpCF;y=LxLUI*`b z?^bV^ceyv->+Id=we<#iwY<^ZP_GkYvhH54cdb|3&3AwDJTK(_>Hg^c;GXeZ&$xfM zzq-G;KfAxVzq{w$Q||ZfY0vSr`=JG^dQSFelL)9deD=k@Te z@S1v!y*gemZ-Cd(YvHbRpLCbHPr1w7r`_f5GwuraId{Fg&Ry%SaaX&~x*OcB?rZKg zca?j{J?wtr9&tZ#54zjkJ?`u74);xWr~8(>3*Y{~<9_Jwbw6_Vxu3fG-Ot>Q-A}xV zUM24`FVlU)E9aH>DtJlmyY6oHJ@sPWK=xqh0nn>jU_D1bK4D-LML^DC=o!$nfx3{*zk^=S z0z2~pQVRp$fzS=C46LKk&8rMv@xUww5{WC2N4Kq9q3cMPcqixdFm zSyLY+pf~eT8hUe}1weU5c|o9bU+sg^+R8^Rbjo)^9iWX5N=I9u9nc7%@*oi34n8_T zzXs?CbOGp{&;#h~qaSp#BMb&;cG3;N+z@gZ-6SX=U0Xlo?>3;Pg+2himxZ1Uo$?*P zT9|+=$G{Cf0+JX*zYD#u1tfF<>D_|Ls6RmEIS-(+Av^{Q^6><8ir@9XN??eObSjI0gMCA3s4K z2T(qp1I7cWvr^`;H-nq)7wD*4CYA|yo0_NWx{SbV zfMHHRf6~I7hQ8Fod<*?43qx^RW?^bWf7-%a27S4Ow+i|*7N#=v6&8}xM|lnCKcSO5 zz^wuOSqn}1No5I`D$v(hcrQR-YhkKFr*Z<^Z0PHO=fJZXbSg8zBY)3ZxQ(E1v@p~z zh!=nx>FKTlhDZ8~7Ml2Pwvbc~FInib(6?CV`p{pt&~>1{Vxb#Af7JprHzBtAaG}5E zLqXr>gUXcZ6M@QfyAK2X4IgpPDPIVMfH!>@D5N8pn6Hj0p9gN zY1|FG2T+}P-$zO4ANXhneUFbe&_DFi5<1myLMz}SAJ;(t*hg#VpIBfMnuWA=TFdzzqPkc>?M^W~COLp?~4yJLrde+z&Chnieud%>t0hakKux@~j zW(%w!(ANwMtR>LbCJd}9(02w5tS{ih3k$3?&=(pE+VjG^oPpH``p$uYbqE|LwZMu5 z4!BxiZGz6=GsI%(6doXwp;H(D^;NQj1=cX=+&P2#LP>l9tZUehMZk~xJXzX;WENS* zg8Dg0{sF9i(79y>^`o+!1<5Qp|I4604(EdzB-h~FE`$0)nQTF_jHECC>i=Y_1<5-y z&4T(!N&W$nZzP2QP@gEt9Y8XWBwhgZm$H%t)?$PtJAnEvN&W$>&(Qfy2K93?%YtMg zS=EC2P)Y9q)^UWq+=BW-nQei!9bD{eLH)7Ju^^dCQWyaBsgnEySOcPyi45u^Wv&Iu zTR2-trvl=Kde%q8ntP`@bY9Uz&D&RY|xU&OvUgXA*W5#n8;ozSneAel@yvY@^b z=kpjOqsb-~)St?$EJ!YsO)aP&mCYZoFAlZ(7 zyOe*w^aS+279<18eiqd4;v5fyWH_9g5)@PqXqSya+n3lhLY?6>W}3J3zGGu59(WSGK)d7Ax=>-s6UpYEl5U` zV=SmYmSZhQ1|->tA)$}6AX!h|?8AdT-hyO4d5Z!h<1&z(Bv<1oIs*DAVhpMav$=d2t3mWTG zZ3~iv)QcA0F6f&rymz2)vGC9a@%04*=a+;++a`F=L4V7_TMvDog|`9vrxxC`(Dz$- z&qM#r!lN(`Sa=(uQyKtoE#`7as)M}u9)+$fyhYGq;UI6kCD2_9Z!vU~2fXC{t&qg+kdmvw-_SM|nB3 zeYAl70D!zy^PxWpJOeY}P`<2$`32~!fYm@-V2uyTCkmU;3ZU>%Z=5XPZ6D2{qs}p| zhQ7;3Yv}L#XbF9{k2cWXvrwqR&ilXzKrdhquov;!2K^)8W1tW4iI1MpQCA66#~svF zMpx*ls|58j^v`^BgO0jNP_IBoJ!N!yt}G_1k3g?zA?HJ{ z1Y8C;3!qoFkdH&JVj&kn&$5t@L9c2dmqM=wTn@j_K+gthAP+t0HGx_%Q`~cbx-e7R z>se6$O7l;B73k%lHwBu(OmS>(p%5pH_Crt<$Ckj=FjE{`Stx`}Yj6ZbaY6kiD2iiS z3q^5h2ebzr@z5QBYhW%09sLDCQC!eR{6CC+2Vhji_V=Az)00i_$!1dsp(i19mfjMI z)PR&wq>1#7^j<}(f+ARm3IP;BK@?B~?1K1w*n97lvX}37=Im}3#P|Pv@5kAkojZ5t z%$b=pXU@zL)KJh~3>EdE@q(Z>0PO=ne^u0t{D69Ye5QI2V5p5iZ)MQDp$}xxJfov8 z5mdB?KA54BT%pqhu?Mt*p*8~@$`E@&hcVRVpu-uW3UmZRZ2@{4L+k?`$xvH@j$(-Y zpraY88*~gqU|iA1GSpU}w=={OpyL>7YtTCw;z`i)3>EFCPhj9qBk7CLC!&tjo|72j zDbUFb6>Y3fVTePZQyD6?`80+&3`)8VsAzkA217gzI+LN2F05pT6`-paG>7Y}87lg) zzJ{T$2VKihsZXzCsCR?j#UNWlr*wcC21?%nWM}9b7-|IQMg}4u6@3#!jRf7y5YK>a zVW`ko#MeoPBcS&%RMOvj8R97DHiim4*0(dnv!K-90JRkKeug*(O8pa1Nyi^xi043e zGSsf1G#&xsdC&(LYBx~ow}3bf`Y=Q74*Cc~oB-X;P;UXPWQZ3)A7!XLK_6p?7eOCq zsMK%vFvKZP(p^C94O+zzFM;l3sMMcGF9C5H^Z-Nc3;F~@oB<`B1Jr(?q-TIQ3re~L zsO6xfPk?wC^e{t3|I|ru0PzYawGE(Bf2H;S#H*mx27r1iD9IfVuY;1T0d){4$rliB zfRaoBbucK&5i%2Rf}Uik6`&+9K%4_583F20P?8HE&V!OH0CgBB)gKUVgHoLVbvP*1 z6A%|bscwKe0+i|lh<8A#4uEnj7DhHsB0i|~X;yqA$AE1r}rF;SLJ}Bh{sJDaC^MLpOl%4_9aiEkA z5FdilcYt~aDE$qHk3hXp$K&(I3_S zhB_JaYlfibzG0|SK)+=O%HunRIu-PLhM@d@V5rkTe`E;C`zMAv9rR}g&MzzaFAQ}C z=&uYx@BEFS&IJ9PA?W>oFw|L~e==xor2oZG!$JRM2rA#uQ1d(pjR1! z%I;yPl&8%QRF7*6buR30g&|NULon2NpejS4eul2xX{?LBkjVvN2G9g1Q7Wf*~L$Ba)#m1&v||$jops)McR2 z44lzdj2MQx95j|8AWI{Tp{@XpX9&pENMNWdK@%AQGB%PJ>MGD=2CY$z6o$GQG?hW? zRU?g|t^rMF(E8QLV5nx;|T_>+cTbI(0V@OAcNNM8B`{K*8drY85))4Y2X>W>m5*%-BEmg8}wNQ`B5^C zF)V7M=NPn(%y^z*Q9X_`EGqj6hP45d>JMm}Kwn^J8$n-WXq!P_VrZ29G($uEGtK~K zQJ$|rscoP~>Mx+^R|E@vKjU?VwFdMJh6R~sya}Agdmjg-x&h=H$oLO~`~ewMH^`p+ zHyIa!_wZQ<{eWR%48gtL5*EgXjE@)=wbjSKXGnhv^mE_~e101AONK`EqjCcp>X7j@ z0KL`{K)(gP!)Nq|jPDs*6zC7YkEj>v)lUqIWc4e9dYo(%OT0juyq%zP@2CeHdqZwo;WySy~JK0s4 z@eF+~DC$Na+bA;;NWy2lJ2ROL?`8G2XK)H;@pjixBqh#hXXf2gl zk70HKrF2b@59*QGmO*Rc%+3s2V`NTX&^kMF3NRDtDUVqUvkNHtD8Zz9pq~;<)Ial1 z0CghUCvzS{P#*Jv72s3-NM3+R?_9+&A(u?(4Z$Q?LN7C+J7mvg?qL{c<4ouu!9bg5 zKEp7e+nGlg2HHRK7{mA(;V&vfgMK-~85(rUiMAjZjX?2kf(Bi4qCNzp8E6uKHqfAd zPRO31eFq9T6KI}sW;3+!LF+J#rl386UMN50?d%No9MU%-SuIJYuPw4w7JhKV+F zJ_Sn`++C%8FQEOLxxcSivCM5hJbz!pwF5MKuM;6iFR_5Od%(e>hUeZC|4AS zNx~csinbt_tw1$~83L*^Ovon7V3-X-O@@iK$bwD~%rH>s8NsCIf*B_IK^El&n3P8- z!|V@A&j4lyD0F~e*q{*%lim}_FwsU?4u;tR6#bWA=7B;-2uQAEB`}Ojph*nlDk$`Y zV73HJXPCvH^n3yMC7?wN6Y|WW?*QWpDAgG-%Rng|V3vZCyZ{rz%xcXr>HTdO#%0j9 z43pm3j$wE}+cS*6Kszu@Dq}~6Ss%0$!%PG1%rO20?ZPlCK&h;Ni8^G_-+)Q7AIdPD zpwz~ISr>E!!$hCRTF5Z_fkMv+<^a&ez!H3Rfi4A>;d58e<-iJjP61uXFiDqIG0a;* zw=>Lfpt~4mU(g2`bfP2cA%-~+^kIfc<$8o+{0+LBVJ3oBGR$G1k21_q(8m}i)%9_P zse$fcm@4RAhM5Ce#V`dZ#wvmd9YHlE$PRVk8G-?sxR4jYXalM<%ypm!!&nUpr6U-S zfh&q(b_Yed2?omM%4C=kplA<*30-$(Gfa#tE|ia8ps%@d83yF(f_@T={-8A&24v_e zU>ImG7uttFw!8~%L@@e*Qkek54Z4kCwgp8Sx$Z+5T7%xtFgt+m03HCp9q3Mm84J1# zco2N_Hy7HDU{d}M1CQV{##7gBhKWAvLVFQRk_Xz0U`B$Xy$HrN(8n1j#$y-Si(uXY ziuNLyJwRV)7{fr{U>MLDh)u#635vGNR*~m=Pz})Wxhtr_Fpy6++J`{vo@|R@GzSf0 z(7Go(m|;LyvqKohaL`bOaW7~X!$5tr(S8I2GR#K15)9}@HtI<*)`Ft`1fwk|!{`JGSrZJjMK;DWf-wR#o?&bP#rQ%nx`RT$2u3SV=rO@41I0K(FfbQo zqpxPC;xlBMoyIVFgJL`)7;8W?7{)!I&{cwQ7bx_UV6+1z*#SmNQ0N)KXaP#H1B}~1 za~MW@&|HSGQBlB_Fuw;ydl9T=pen=s0TgXVupoyVonZ|DH5eA;oP#zbSQVgXM}pM` z6zxc`pc^@8M}mcN=Aa!3)*w){Bf)Zmq8$n5XP{_9f>j8LHY8ZJLD7Z;t0^ejkYIiR ziZ&!z^+C~w1giiP?MSeifT9fv=I5YjLxMFO6zxc`CW4|32^RDr2W?0&zXU}a60E79 zXhVWE9u)0Ju-b#7JqhNwplDNqbtfp=lVD8%MVk_=I-qDzf;9^i?MbkTK+&EAYZ|DF zVU>brGtBQm(Rc)F4rngJx&t(iVbuby!LVk6<}<7YpfwrR6i|{8V08hdX8`kSP?9xZ zbp@re0@eu7x(urxs23LHM{)!|DdwkYU{hTEeg< zgEnGV<3QIK@CVT}c)_W@QJD78Ic4F~POu&92dLx432v=hS`1KOEk^#mok z0~Ya08CE|~$``OmHq-`yRSrt>0xXgf)eSJOfs(8N^EXhE3-Y!sP%1ZIUIFdRFnrdmI+Gl11tlyKf}BXI)GvR1$ryP{1bE_!~6qu5HJ|;{Tp-$!?ZzZ zj2H_3kD$XC=C7b6yAgPo26`LA^ni{8pi`CrrM3smtDq!DzzPAS_5iG4P-;s6RabII zZzkaLT+oROi|R`40azph(lfv!*-T+rRKKYV3uVoj#;{PIoaqdU{TSfnGf z7#8Ui=^0=(0-eLKNM?63ERq4053pK*&SO}lNAnrxWlb|aZ<`bZ+ z80G=c)eLh#=o*H(4|FZVtO8xfF!zGq#V`+ot_L>YUB^K;GR!@on}8kQKLz>#fO1)( zp!6N`Fh2&Rd;#+#P`~I!+Z<$Wrq17=qn79o_n2Po&$Y@VZH$RCU744P<|H}=BuFZ0RI7>^7}9F9zG*o z4!sX`GT#NIdVYe>l$PrDIqH=M`US(v1^o*64*UerpBUyT(4T?dz)uCG{`MF0c}-Dr zqkw44*N|r}WJE9`K7XNk+wg1# z=onxuKBK?n#V`!CMcxDe{Y3v5bSJ~y1^PAc4fuUPQU1JNP-f^w-md`aVnQGDP?x-G z_`F$B3Jiw10n`L6@S#(6nlNaut4>pfj<%{7281Jjv>jfpe5^q}=RqF;@P6w*p!?T@-9`6 zPfm`nG~0D++ATEHOo>TxMYS5;Z1j{!`%g-mQBZ)2DXNkWc`h?5Q2P)}mRTV}S5bEz zUU*#@rKoD7GE@(@OLcYNzbGR(r9e0}7p|Uifoj7%AKme|IR2qHe#mpbIQ^*@Z0|HG zF7Lo`(vOin?$eO@Td``cBET@M=b=1)zWIlr|AHOBx6=Il6JS@Tf5*>%ma_BbpW^2~ z7sxjc`}r^V_;xYX*UPu8XDC|RpU)tF`WJoaNj~PEe*P)qE9y1$8U1<4EmDbAnz|cB zq?BfGa0W}$Y2lWXI0;Bq-C&O%c0g=Y ze~z>BZxd7O-6KU`JIyW=T{f_Q*Vwh!*hy<}SobTGoy#I+j9vq?;CW>}sHU7i8B0*c zSS1a*UDsX9A#@F;)D+#&^pPkSX{TxDs>;-1cI$DTYojLCvMrkRp&#?EeWQ;zrlYh) z?)p$WB_>*jSP@@=&lNf(-=YkK)+!*^mReV#B*aBU;3kMPk!A$P7l;P&2^I>LWtwrZ z@$o2UNrH(El&uyQMQ5w8E<1EfMXUAQCLW(U{<*1>w>0eE^5qSc_OJKv6k*2nwyh_Y z)E)cR`PcrwqkZj3&C4GYEx!6%G~Y?OA{r`L>Jd;pLmw zX$)G`=}EUa{Rv-ss<(N`&p)Ot#sjLd8|~Kv?H8sbVZ#cysQKGV)BNpK!+RqFbMW2Uv#&f|cLs)E9utP+y-|u&DRkEhvQ$+U!cfIXsIfK}(!Wk+pv!n~4Jfd~ zksTbI<}Zt@xRA?Z;H$z0Ezl0KT>5Y>)B5#XD!ZlqqAZgvows1>yrt@`RJIjM?JyMV zaVnzSfaECUVv*cqAt%#1`4P*P#u}6x`*_|D!Z7r~imsy$ z&?Tx(W34N`4OK#^S2`>j;~Z2Q2@97I*tV)py85ve5v!lK>#egBRv8s*`JM6|Qa2L8 z!1#sDNy21Ptfqaw3J?1}4>%R6^aqR+$Em#RAshOmM zQerNL)4~-9sh-dGXa#W)So&(uHkKFKWB_!%7=1ilY2$W>h2nmI1fl7vxH3#DrKwdj zcwnkP8PMCI=oKb9eoF=2Jta9QF+Mgj9A}i%MY@G9Z)7QsqG&m7qU+0^9~E8Lpv2+K zb2>~@o&1OW!Qh8pAHVF09;0VJJp9QCM-Hx@W&aW<-W+&7K@1Zko)95V^egK;Zt|Ev zFW7I}f3_A6-Q}53*iOn=mQ}W)3l%l37hvF!>?L2$QOrL9qfPQXFH+qgOXgQL4@fWj zH}j7XAF?1l4wm|v=caqUU_B@!bwTrmiQY!DF46_+C3Mn(5g7j#I<#9ofA8I^2JKbX zcqSVao+E1e%R7*s?s7q#7xIl!5@>D;3$`>PRL7mR2BsujDJVkJkwL;V{d2pbB*4}{ z`WR|T`CmBAO>r)~joyf!TwECE1cbBLsqfiY<@vK}=gulMq{`D#4e|V`&s%cUq=IOd zmwbxjT*7K2fyaKt#3$+vHk6G^e>}5scXs$Cb zHjz-Nim0s9feBBy#FAJ3+rv(H!1LvqGkSF6b=QO_=)M z1Jk3ap0Yl29H5R>ZRbe7)FI~k>>N%{{hj$zF1~zZe`mhW&f$Ehzcc?BL{|M?>hH|= z**~0~>>uX81_mlD)OmaNhN$UhJYTBrchN)UstY|UJn>R)=g?P?ALP?WzUOFd zdXErTJLvWC9z)K!iX!W$4$;snSs@L@a5(hf!~*Jr80jLb)G4t>#g!)8WWMw1d8r39 zSily$hLQBzHE+I?@ILT`X&q^NO$k0A#M9TV?Jp*gQyP>B@8&e9`_YzOK9|Y+tYz&L z<(?t@v}cHXS|~k`rVh#-uGDhphXe;%WI0h=Vd3=8N`x!nadBJ;E3X6<$w@G%GNF?? z9;p%?yV&E@sj+Hehlx|v$34eiop8xcK=r8KV(8K_+F<6b<1UB^v2Z;LUV(uNtuWuv zaaBvBGL;(y>0^~xM|?a_4lypRj#{F*wD@?eZ(K2jF)?~h*WCpMhPtn-F5#9PJ?Fu$ zzkYOq77*$iL(V){<7%5BGqr)_(0j(R{2q5g4;)-A1& zA^J0hXXAZP+*micSmf?jTzo@CcP#2UKD)K6b>W+;#1Sfi4OO)J)DD++yH zbEM`r;@@<&N^vVu(lWouqb-l3-Xidzr@U4kG z(3|tn8~XLxlU?@5b?@hP`4*d@K_r(7m>#r>3&vD$R#>n>8k=2Hy6jIt(uOxA4S|GP zl*#9+m#OApEJ4sIf`cviEO6sa*AzGXD2ZIqhKisdrGlReSS;aH|9Gmr+?|n}BoI54 zl%1R%7vqSEj0nZBX;51wio`H(0W8ep;}ftB!1`DI>&k>`Qxix9cSNaTcjtEMsyI8T zq>UvC?bq~<&DD6%KxdmAyU&FSv!>0OHh0=&V|x6WHlOcV^TdxG)`WzsFN$(8ajpHQ z{W|`4RhXgy{s)%<^}Vk!zV^rX8Vc*h<<9haVgfx0(k{d@-Qkkn7+5M;>cLEFpj!dU z^8PD+-oC#|4Ea-}9qF}U;OXN-Huu(!>^#}e7DmPE?~R#T;yGBfh~EkSo8DK>9SOAZ z#6|sXb!Zd+!gr`<5q-if_(;^uU>c_BErzUhBE9Wa-SEt5NR(_9OUJrRk`3 zmQvH5huH-4ie;)wCu+%?4L>!#!;gg)vaqiF*Fk9B{p%|m9L^uJefs?uCryb20^U~Nm{W-I-9*$*CifO?bsct3qqUePu*NUxg+RHKJ4!tIC~aT#)B2EgEv1G#CnFuUf}F(Rtg3*pvFZ|ji!P^5j(3~Lgmue-#p z!xO}v(+`cjwbzt3-AX3*Z9TY?tHy{8cZ_^sK#$Uit(pxV*{pZR+>C)(&!8T%yt3Z? zQGSd=QCvUfQ@xpgGSth5{{{8)^G{z2OiyzJr$6CKFYT`C^hYT@yZMOG=E5#(bA6a%m|~-n%#)$uqau|^UR*oKOBN&7u}+KqOfJVIVaVL=K_bZh zd$0QJGO=RQCVToaPh0g_*$-ryrR`aP+)V4F*Js`x`i{ClubF?^+dsNPuLJo9P&5%m=P| zd)oB#tF#BN_PuZW_WQI)(P!m5WS_lFmeuF?mwaizG2dsuaeC^T%s+vrsPA)nvfr5R zv)?#9*>BAE*>B7z`;GZN`;GG<`;GZ832*-Je?b<0{xh!zyw{@r08am+FFnal+Vjl! zt&=fp;;!Hd1-?gjG|d2V;fS7r7S}LE=EyCRLfrT{WuIMm&@McBO5c8Y2c8gE(JK0G zd+~@c2_~vBQ zhKDcQ_b@G@^vEl}U}ZB%SFhOmF0Pk+mu#0wU{u?5%qRIX{{+4z`Afd^M=;+fe@;*G zXTFp_>e2#rnS{E8Dw*!I&>#bsfMN|wrKg3uG$Ep+qvb+925WS=Ovl_f>@@w#$+PxM zap<)DsQvI!u^$WepHzousV7Oj!*jR#Ar(j{b&>x9!Qczi&J7pc>=(L3L=|Jzdo&sBSVZDT^6+7P1Hf@$*R*%s*iT@TDx6|18;T z{`4dZ=07KGIiajWS)C}W^q~f0wtyF%PK$co&d?Clh<0E|O}yTV91IA>w(jo#=8th=+u`;oXW}3-TbaEce^iDqi zOko%)oD331s&aQE-kzW&phw2!xPmNfaq)=8+e8@Qd_%E1tfH)L--6l&^SZCDy3$Ab zveA(q?Aj{UF+0w=ZH4xd*Q-tSx$=OwK5@$U>iWP@Mvcw&!5{dUR$qM*$;Zq7PH#nM zwvZJ`z3wYbyP*cuPH{?{tbk?FK7|~T11dl>)pfc*sXec_*%(-*RWO}hf)nL{sB zGO$zI!QD0qTAGNN%VnupQlVA!QcP;}<2Hsau(9dgeQQ-_Vk^KmVK_5$vorIZ`8lra zdz4(${)^$zYtySy3bTkccGax|hhfu_;s*8W6xA)t&&$e8 zOG$`xM1};JhEiM9j*xaATpYB__V3sJtKuXyY?y#p31@DuklG_3$<5V99DGRkd>Juj zOp^iiyEa?Wd(4KCmWzh3e)!_~{)77#_it6F%_{elnQ0k|2lekCE@o-n?4n+G-O-~> zn_>0C!u3M?`=3klo~*2yGr4Y)K|@FPePY8y`}*85G&yx%M)u(DJqE4X^6Vpf?GaNe zMvNSMYw;ARSKJm--!_5)eREJ7smfWjQ4QlFT##wXY#t39DflUAO%F$yh*}Dlfzmm} z?dRd5Z032#x&*maKvu2F49H(pkTZ~Mad%4fH;{N^@7EaH@NKy}A|^U9J~}NXEjl;L zr1{SuOCr5TE=NfWOt&b=&4Nc(Ol*8l|20+J2On8}cvRSi${!c6{kz}Nn)!EX8%ujG z|Lfr$m)0&GXPk<=yyeyNV*6;f=g*d%sD45@jQRyb2a}W%caZ}%iiX2PPHfn}^R6IU zm0`?K1TET8Hlf7D$Zh&0kwn|{Ilg`Q++1Ei^3EMrkLttSRy4V#-N}LXeK2Lphxeb| za?6Tk%lGe}RhWNA)3(e0c=-Oy>t{_E^xB)}kD(~&Ke8-lKKjWPybf*9?}S-8)1WP%CNs;QfAzBmZuTt6!=QZ`F2mj%(?BPdV}AI`s}mJ& z2T3g@S%;?=cgLeCJF}W3Pkq! zb3$K#%N{L5y;nd~zY!GeCNO@)CsT5j3m5iBI? z)ydCGNs7U436^&ym=LfP#7<4xUxPcrTfq1Pd}j$P_59HrD6QzZtHI=UIsG=ZST$nK zle?!~xNGhkv!|VybldhOsmq6K7Y8-1@PUd>cXqvh&YIo&@JAC}5sPE$Iyd&4Kii&W ze^U9^vdQn?zwv|F9b3XMdA2{#D$Y5loSDN&(ak5oPSxa^yaURm3G;m zib*xh?_k^8WvwOUr}n;%CB3q zF5aD&6PsO-6+#g&zUHzb5blMUwZ!t8Z*t#(W|Nz?UjJz$M&;CN*{E%FdgHuF3s0Z_ z;$K>_LuT!=_O9B65lhXWNj>ksB~sM<_8$!^6nHxHUg&cP$}o2b%wh!wG4`9g>`#Y8 zQcUtk!*QkI=V0NZ#IiwYLZe}09WqFwKWRsBbU-rsUAa3>AefAt{NZ7tus&#$CCKY^ zk|ASpaaea@$w+|?aB6BLy;rtqSU9=a2Vz9Dy|?npl@V3O#q^Xrc)Jp#Wgwv zn-v!AVPLFKRo@PUVaV3SW?u?6ME>Pbyw=oJb7Wu^)en}tW12K}w`km^Nt^s4S4>Vx zc2;O`I(|78?dgpu#b82h%)zD@(=ZSha>N`N>iE03sKnc48#Xk^P$yHXxJY*vwcS#F z_^qSG9h`|7&3ZgHrgEr#>F3ImJ-61IJFV)0<+nY%V*Zo^W1gF{!s2u@4W5ukp;v(PLLG zoboI6V<}gY`tcswzYii1xtdS?nE3~;lEr7xg~QkFTk*Z%VA=R zrv~1;wzA)#X1DiAtu!upp1!5mLw9>L_0r(J4ZGL$2;&9$zC7>yQWZq##AvX$MQKX1 zYIer#Vj2SGj0_)@(>&Qz(sP0*Qx|f?ai8X?E?Z#57=k zdP9ly$Cut6{Sag>Wne9UYz{yq6st2FGoldthm-hJ>=$J7S zVJ7{iYQIKp+B7O|+xDo)zxu6cXP+`d+SV^@*RHUBTRZ0Js3l9Zm?daeS!O*Ay-vnh zX>f>Q4r?l76nwrHi1o%OHh#y4zP$A`Uyh`MEC*U^K7~gy_jqFim`^&({Dar=NoSdV zAdoNT80PN@K;5eOauovEwgA3R&I=93)Y=2lOQz~grom08J2X3iQ#Ce#M+6qYZcVYuaTFV zlkJLege8P0aEpcC&|-*34QM@>eOBJ}u~uSYal3ZK4coR=+vA^x!2PSfUfp2u;pz6w z=RKbvJy6}Q0qxs;{i`eMEXo$xWB?Fr;&SqGG5psMmV#(_zgqbU{(y$ViVm>i{WaH*Zi;%(}4R_jnUJvdfI zOOZb|SaqR1b1JowcCPC9z;jugGcI1vHBQ<6>|D<={3;imym;^1*tbCbc<&2%pJ`Rn zJ{{hR@kt+vI@0gdVgD6_A{wF;+i_4^?$KB-!Ht2F_$DHtkj}u0D4{^Umu7dpo}Hz} zeTWyIw^J(hG~4Alt`>{0uY87Fg)&3>@lIjw-d%bjy)HcNN%68p$;|r=?#CFE>b z`>q`kmAt|gl{6&#(ipTq!fB2m5|P$17`1sFLuouO!ryv|(~vy9`^m^(f8WPP{(IF> z&q&VSGg8i&)iOy^y15-mG&%<(u1rxwFs%5@GW>Qr2U6c4nHXruKLm5gk&u%kx9$_H z8@!hkibkWm7SrLc00-=<4(IG+;ydl!xUF`HUq+(5_qYXWt0kVDBz9#4bfXLGX_qp@ z9qder4=1}3HW>Mj<7xVYwP*&RW5cgPyM1!cG8w@nJXzt}AnE$@eOc~K5V&0m5yuI! z(TEKRhQ|t9_}&RAUT#LxtWT3ZAK}4=LU^cPRN-H3UV}l+wkI~OJE-8k#K!e+E!eg= zq+o2fW@C~HZr2NI&7FDmXZ4R^{hGG9`nr$mX|tO5Y*q@M8xBw!gaFF5a?`RPQ)O%ZM)LxxXkF_kV4tMONTEb#M`mMrjbmAkC=3q~B7&MTM$S-{<${Moni$?zyiP## z>a>h?-ZH#dY;x-rcZIb&K43e^s(T9m;^lxA%wWIw^IUUv~a4+0j_avcp+7 zIo6#;-~2}Uo|s<=Eu?;GNCQ@|=68U5a z2}>=f?g_D=kyvufFF)jR#MY*cnB$+7DSpUn$ohn!ebaX3$d>H})Jo{uLz=YEl;>gL zHr}*y6#=mm-{@&5XE?kkwcRzV1K+UR@oFi2gOL&B9gIkd zOv0KhT!izqNDEEVl_kSV;PCaWK62ImAALUR-%U7*fzI?@UcyHgiyz}oh zqSoKLF0ESe^7*&UzI^T+ghw)zWsv%c8Ox`yem>c0%s+^4tJ6~(G5 zda}ouUv(XSnV-METR?hgn{fKWlpbT`2Kx$r3p^ET-b_XA!a!O|PIfxnfez^pprEuH z0|>8^BLxuF$h~O*A=wxZrVJpIYdV%_LQF1Baph?=E2;ep>z1zRHD(foTU@Wx>Rw}~ zkc3wj6@8!nZBc{o)3cXD(80gvUv*#I17U~!UGrKi&*KpI%CqNJRMl25oAzxhs%m+H z%(GH1R39n#_fbFZIN_H&=``1$by~Z21-kM&bR}DjPNUa zHz~q`LN(f@Fer$y6%1HRJHB0t2K94ugi>5ozobD)t(rOYa_eQL!yz6O8jPdv*&>_m zQt86D$zFqZu}dR&z;ZVipJ}&2TU2$QCOp4Jj2P9pPlK{%^LyQ~xkm21X;U|MY`=N> zoVl*-MRt#&J$nuv+O@klLVFB%=pE#~LQ1_D@5aKIiUAYgScl9e4lJL#?6q_6o;>== zxmR@BTadO5Y%S_9v~MuR?TC+ygjs`0R#!`LO2*f{6Dbr=slcfj50Yl>|- z`X2V*^sAP!4T4Yb389RgbKN2w32-rc$U;EKJY zE7wIdd7x2W+9K$(Xt7?%djzxWkT~Pih93Qv(H24T4rj1gfWCj0>H_;P3aiy-?#6Mk zC=`Bj6m3}=g|9nDA}khXGW-kcfB_-ek(A&_jZV$YG7w@f95kH<6p(y}zQT!#GYhO9@rBT|xsGz9O-a6>ZjX&m(m8i(Gz zl2j`&inb&hKNaKWKLqXj8iI~RcvE70Oj>MOScsv+qZjQ9Zz?HtbH z;gwgj2d{4!v97Yo);?<=E4}r}J@%#F`YtNSpQ{(PZ!`IF(>OJ;M;BBIp7~{Vg*~dm z>zEhHdDuNUdJ)Esqg?U`_-I8e{AOxtxKOdx6nPy(bio8n!D*TBtl^OFB#K4z%^2`P zDi)UTmem-6wVa=m(;*P$UlU?GQRc;Iyt9lqQO%_q%OoaM^Wa2)6SLl24UjOJDAYPHKwT&Wwsj(%r>ma^c|!nNTc_V$nMN9@)M zkQv4nDF->`e8yu=^FTh0>CAu9$Hy82a`W;ntMb}pJU}sj-)P@KH)>KOEctrR0VJl=v&b!YyQKECauI{Nufd*dTz-2>7e z@TG^15}3Zy8y|Tb^MJ<59u)-eOPP8j;*JH+v9wQ$c-hFOS+nhlKBc}G4Hm!TzcJ1qC_3SudM&$+L z;sf(K4{qPKZc&#G1D1@Kvf~z4*5tU9(PPVomzIs}*0@{KhVEK9T^lakcI9Qg;O+OI zPdgx^a3d4?j@YgQ1Plur&(+RUb#*W=mtoZULMdF17)J~?a8nC%>Xd~)#oC^Qp0)jMO^qjA_PskpY3^>4 zflWG5ic<)BXH1+3PQf}(Mt1u=Vu-2tl_D*LVq^%|8_2k>DAKh^#fiiJt}oL2@B0cR z`rD6G7fd8Bc#n(r-U9nuDjal^%l0dD@JAFC`)|sl$~<1T&XY?|N`rk_$d1#%|L`?dP1Nv?&z`WSv@U8c3(bGKfqi!A6RIi&LC`QAp_zf$$s#AnsD|nT3$}!3D4Y;-K%eD zPf;CY{<3YZp;Fat!+dH3=KI<}@?{$^-`575p4x!Ql)pL_lEfi>a@B_x zITq3h&lrVql1N0|<6?>Z`03yOI&SX~i(j`t#_!kvV$TrE?Rd{?0_}plXWQj^G4hU7 za@{VhqL48i80&PSuqoy^nNIo%5uuXbuY_e@Y_H9k_|&T8adSJRHnQ(Ji15pr5dQmP zpO_l4G`jQTTOg`o+I_OE<-15u*o_R76Z0V_FW)C8$tO8^`93*uddSJk_sQus^t~@o zmw$OG{tG`K{!{3EmOF&Y9T&)_ax>qz7tHD5 zBlhy;-Y)D##Bb=$VH3nDPGz_|HV)1VoSJ}rjzJv9^)RM;twtHb0rMO)RjS`QmvMb5 zcyp=@*^!o_Gw@r4a3sX1CdWGyoVoc?riI|0LPtOZop*7PUsFag$-_O zRZZ=^e0#gwH;ijAGNa3ceoHs~TLYh%{@CqUw$~b&*(67Zy(=dCkG3W`&|a!Ylx^+X zOO^5=d(X@F?WHmwd#S{id#MlJbT5_DQGell!C3eK2z#lINa9hyb^6E26k2flfl2awlvd{rj(l=Iq0S%F_0`~|X3 z%=gZpbeoU1L)MA;-Z4p_18N(jo-*G%Cf&TO$bTZzH=}q@Zyl<<@9hl!aPr}J`QG_c zq}s&+b;kY@(qn&V1(h`t&+MfACGRtGu0$Wa0(pEW<&-Z|%Y8nK?UD~U@fmcVofsf2 zK7(%20$IlUepqRrB8h2R<-P%)*SbrYalXF&N#ZY-GGo4Pf0FpSq|BJ_+n*%(cN@Tng$KR|xECFRHb0Qvp14*t54&T;wx`5_d>omMp(w5a^ubLw*iA$AtZQ@7~u9lB|H8f%yzic(=BsB-uKq_!2~pQ2hCa zLrd%RDX3j@KEmhiV-W3E{%sp|6*eqUS1t$1n9H$`%HijejG2G%IzGvm`3C~|QpU{R z6Ue`@p8otv#+<$?Fujy9^AG#@*f)l}6iD|E#sAbZyQ|AeGUjIv(KEhr&N$^C=M;fD z-+Y`iPF-$loWd9}5BlEQ!d{=~ge0_5tnndD9#bh?2T~uTOmDc~O0Z z_Vg$XMxaV6(zR>!EbsMspS{UmpJ;&mA4IuB72Gxz8iWh*RAG^23H|U@AudLxaR+;M zE(c#7q21cyugaAj&sEX}ou^Q}jrQeUlG}24?gWkb$kR};FO8)aSagq+PaHRnWP2)U zD-<$ulgQ9scwXx+<~^^6eMw6nXG*EiBxc} zPb6JLLOO)4So8+}Ua+@njyOk*ZsFc2NQ}G*f&0HyzkrQj&(lj-v3zp-1!b`yw_qCY z5z>R~b!{YB-T}kCFRF*$Q5`wtkLrP<9bd9UKe_~ZCi9cB8{pNm;(zEFrHPdNkJB7M zU%H|HDZjusfpS51NJFwKWId*5~#_JNOKnY z@{Np*c}>>mOgpX*e1+KK!Pw{B%L(Aa=SY0^IiBgo>G8Dog`AIg&2@&3iplZeH|<+J z6=RP1BtobgpgKYz>Nrn`5~0l-YyVf|;UD|$v7(mzM^C-(Px&qKIS=`gA3R>Ulg;|D zmQ17NA~96V6P)vj(0n>Z?!X;DQ-iAV(ZZT>WmZqfUA(J zN0uy6PcEi5^TtKVawI9m?gkVX<&S$pC=`sZz7!Ef64TUf{|J5hM-c)dl5Q6IbX_?< ztPXv8lzc=Svs3Y}c1v;@soDRh-4b~04}c`x9D4j6?4)d^t-DpWGd(3S zE-F04(sB0)d3HmB^&pfgNX)0!NyR;G*t>;;00X%zD>EZ4H8}~cD*De66>i~*wL(6^ z8~86D=MDH*>$L08Ps<5$Cp)}-oESAdmlP;@4c_CK6d&( zxd4EVi~L-HfceEfFY4n_Y(kd(ZGcMgmWZ-lmgZzT@L39IAi$egEe&?_@#%=S267`OhY zH(XSEMXK@%;Sb{WMs=%d+xkWA+7;DrOFDivjAH+=x8X!YC2sXe78q&;BHg672WL&` zo>#)SA(*99M{iX!ILGzl^LKBJc~B{F{X>7}+xaORjr;+u?ASnGvbmk%!^)FBg^7BZi5fJEz z36n}4xUJ(~J>6U@)(7nNw2~V@SJSUo3GEfpD%O5{vFB6TVVNX%gfef`2kP@ebW?xV zh8d4wiv#DCbEwB-2v@><`*!$4=ReTn>FWeUaiLGZavv=}3G7=z*}J8K zI{7t4B+!?-=q5Mi=)gq?E>%)uM2s2AQx7V5UBH~Wbxg%NXS3S3B(Ixq=8rWV8CPMa ziY@)SHFMb+>ch9xuY)01d6n!3v}uM?6W%=B(v1^nN-DM+YYGE5H3|c}*1{+a#SU8+ zTzlu;Da2ivXw%U+mjzSI9HtnCoC>nfqpNKzA9gx(Tl9!;u(ou??yp{%I%-hO`5o)@+xFX()pG~*Xf{6Y z*Q-Ao7dI`mr_`<$IxeWBQRC+8r!QUItXIc`q^ViSc1icnWo6BZJe{||5Yv?7_y_3` zPnV2)QgJ@O6bkn2U_c`>8y7Pf`Y@O!zM7<@L?N~Gt z2X@|b&&~(7UTHzagN*`@jJ!h|5&h67j>~Os(A|RxN<&=7g_gh#>bO4&^%zVMDVT&2 z;ztHlii()8z#F7+k5v#Yny|m=yF&`sqx)}=(q3_Rj#XU}87qF-ZtoIPUV3TpraniE zio5I?CokUrY)@PgG05|JojFtPnT@we`$^t;jXQwD!4Lwm26`)$&3B(8@42EtzQtAb z3RE5d(pyD)*6uYbwqC)_*;tp$=jpBmF$?+Ot_7-jD7dld24r6$kuBZjCI6GxB48~hCt8`g zR&1Zzd-kkWKgP388@j~fQa@NCu5GpN!DB*s4Es=B@Q!SytGf%`f{w`_x{0Z<6n6Bw1zIV!74KRRIkcpH|7yG8AB+>=6d`uX@T0vwY`fi&lF0NlaU{Gzn2VUyK zh}H6OtzoNdTx)peoblV+?A1iP=VZHm(+^(QVV8UFG!*BT-qowr^Assfa;I*eowf64 zZrx0Jt3c+XQFgi?9V;%fVYHs`?8_Boa+!qyC0r5&L8a(j;~kD34o5tE`soG5g)P+R z65QpF{b0>i-&r633MXob(+$qv`9--k(u&k4Zd;jF;AvJXZKc-J-khG8li#$q+GlZf^{A!ni^lKvl{f9LpPGbDMf!UMuS~&xG$xKx`v0c;oW%kpFsHt`mvNSFmM@iqTD=FitR!scLdrFc#%xp~b~wI}QKA7!9Er z3H6Akx_8#$hu{5U&ug>prJH`$|EkOB(qV}i zo;>2AC@4dFtPLCEezDqQBNx;}5HPO4&|_odrVHKEflIM)xg0iKOlSapdeCgt0mBXSH%4;cuv!U1I_N$!ip9qL5^DXsFHG*bplhEkgXVqz z;N6${kL~g7_?-uyUio|Mxw7TG_spHVr)=nLUl`K|>>Sg3cBjywZg-EJ{o=&i1`TOn zx@Ezt*&FH(>wd=_9h;Bp4Ic;UvK#Wmy`G3=LqCrsmEhZKlFMM&%kd1!qLe6HIBH-V zBhgVfEw+6y%|(}p-FvL?VDbA$dtyTE2#i)8XC2&Brk}wLr_bCktie~>pv~nwEFEpU z6q%XU5BQhbp83@F%;!6Ha4$Uc_L!xk(`J!v>WsrBJEAl+gf=8`4jXNa$rxcWxU<6; zM&S;!#Z43I+6ZhFM`T50rKQqk+6nPdksNp%64>M9F$Gaw6Rc4X3qiF}dro>ZY-(KJ z_8kVsPY&DT`N&(lgWHz1T}U-FgC~zqYE@FwDrx-WOMg|@_e#FqUF7=e47nbITyg&{ z_V#gt1Xni7oqY)0djobdmg7=IrG8>l6qmI?7fCVYok42Ij;g9%;*n?Vdg9M>>MGAv zyz5!Dtp|!IWhe8O>< z+q=tx?kzXawUQV;c(1*tUShpQZF@H?bvAF*Fc}xf;<}|*?NQI$S05YKC1*iu+l4=# zQ3oL}v}1GBb+YW!?&@}xf7g(I4@7^#eXHp69b_40yF)gXf*1;LymJ5)&NpdQ?_=P~ z8i)mFCg?VBZK(e8m4;LnneSJ4FYb~=zCGpN^1dJW9!$X~S9g3rSbkq2-&>4wEXR9q zj42?wEtP=<$thO*+XL!Ne|mlLsD*v<+SyGGik0FvTn}bVx^GbQs>nv8 z`)XfaU8zlz@0RbPd%(m-yxX*1z{VZfKFQZ!(l;C1u%4$==^0l z7)&6=QMu~g%RkxQJ@&ol=S%7X+crJ&$RnG!8QZ2r+h^=|aV_WR(3vws5IeZBMXYxZMT9|}5jlu@VH_SU z!;PR{zEK00Bg+UQ>7A^OF!Du+Iz-Hx1$W$2w0Cd$j&U;&j(~z+S-Gfvp?VJnkHS_> zhaaA;(#nGF627P}#(P6arxA*&_kwJcWO-oK7-C}AI>o@k2;X~u;Q(Gk8mMRjqbY1R z-6B7GWf~kFb@jJ+W}*;S2WWFfx8&c0;mr$ek^3F>^7G9!>A%5d5;Kn>Ft$+-k>NgZR^fy+f zT`lIfJm|H2eDAqZ4@LCKhT6m{8%Ve#Sd)CRcXOAabGvv+gF zm^Utov=u*ZvlohuUwwJ&hCaRTHY#lO>_-p0&<`pw!*j6y!kJ^{l|XD>{lk_15%7Cr zodEMt$lC{lbPN3zWq>g=1kFa1eN<#9&e6p3w}m}7PN z0TB!*Y=0L={W$l^pSJy-{kmSX-*asJhBaGI6y@TpAHTY3xITJbPUSlS0sbo?p? z=A=Zq2Ec-a?~tXfSpOQp=bQJg0TLqMcVRTw%K!j zRoDOg+ko}GdU=Ji^M$_p*{z=GoUy*EwraQmgStHmE;&W_$KGSU7X% zLe?XU&a%AGh?mE0;8;x~*iD7&h5Sm=Ob-h3H)CuJf~VtRQe#u;u6?rJavbbgYACHF z+$~E@NWB}Ac453Uj?`0s{xRjkUB~Rt9(zory^@*PZ%%6z&vQ|nICtNXTht?-_VkyU z>*?otQ`DL>ecN=5Z}MI@IbV>oUMQ0>KMaRmm#MUIyU7KBu|UMb`k>$LzzFBRm%)TK zz^v1CG=gDd8Zhf9G?y-4fVq(=GQDPrC50B2J!x2&xs{Rx|g@#+EY@S&-S26&rF=WwZW||U)#9H{{5a^BHWnX&ONrU-mT~MuRrwZ=+3n#HW}#u-5!*; z7s^Y&HIhnNkemcN6gw((;nM$QgF?QTJ0ikxq&Zcja$yxmlmef*_XgY;?Cq(3n=|=u zTo(NHwdEgo9o=Eukb@_~J-gIF5zjp|WqXSuUEeXL+m-f1_7;0xMYrLtTK_GA?-s_p z-3v#y#e_lg@aq@@={Fg0k5~2IH~9?+++j(-#ej4TsXea!1-%(3^&EFG(M9~xa1x+) zu%_Va8eP4i!J{_T-gt~OJBI8zxzej%P6c>n@JkI%qV4BP)(kqhziRl*fz$JG08>j6U@yXh`9bKNe`dfD)L%uJ5DdZfZxRlA>peii5RZP_K>JkK3(cwyHgk=fr zwg@4ehxxuVaw$p|mM9hExUK)m%(<%G@tMJ zkJ_W*i*rx>XXV1xtCv!n+rP**m$nfkiOb6AeiVvm!|(=21YLhZ)0%I!?XxyAlngi@ z>$>>bK<^rwmMZcrxZfiOy|%WNudKKSz@4W?1{;)tvA%4q;&QMVJK87|jmgv`{)Z9E>O={bq$K8V~rlx03 z7~XAjMPb{d$^y5mUeA)k(#Lu=cD1ONlIzYhD%!tmUwGkj`{(InM-0DxvWWcV1yS&B z`w8FJe?EBVT>n9{#mjc1>BDnIJiGN_5&q41(rZ{(`UKP^2L6G@?uJlYY;&Pk(Z%R6 zRf5PJj5*e_%ps(`SYF{Cq?CC2A)RR4{f+-Zux`PWip!et(=zy8l5C>Rq*Aqn@+i=+OnQzW&zs7Y3{;nm={>oh0Ax7}Fj`U&~ge z;m$W4sSIDDU!HRNDA&Jy@brMFB6bPeruYjreVmXcnT+m zG9fKuQ?oMRv(7?gqO-_JAkQTz&@+^@Zu8wGwUt>~A@~v;}yW9Td zr+o5jRR2CeJ2qF$P4Cdirxhf5T^90w>!;&9Grf+f? zP88xUOtPpHB{6}{R#QvMUrr*oz7s>M6iq@2!nv!Vh)C^vA*`mUPh6C@>2#F)4sP=6OcKvy2Nd+VW=11`sWx}7i? zvmp*6(Yg_()0NKo(gf77XhfueE{37|%H8s0wQH6mx^6T_Qy8wCk_1gU%uCp_1Y;Ck z7}8@43m0QyEK1M{JKMiaw0|kRJbmu`2OrzE_uegUi$^?Fn#=A~{Lz;apP#aMM3?rK zqxXOQA8FqK5Y?6SKli;U^gaw7hTg1z*c~gPD2f$3Sg`ks4HZF(y_aBDY-o%ni8akc z)1&E$CfO9TscW)nGME4F-1lY}(CmKy@7pZGTrTgO+s-}bciQ`d_W%A>+Uh~$rh9sp zmTW34V*l8 znjRJxgmX%iZirVlX&2iQ=|~g?1@R&eS1L}oXwSV6jldp(N{a|6s!fo>e3jG% z+9}=w_-j{r!6nx2Vc3jON!`P>U+SIH+B`%xfrk_2cV`#)d4XO*kKtA5@E1Uy z!Em^)ly#&05z^DFoA6mcLNnmQhd{F%&Qz>sj>W}HDZH|RfVn7ihk-Ii_k1|w1a-O) z4=W8+RZ;R_#RyvfxsI9`1-2frULR6iMX+JOUtRx-nEfqZ)A%)rdDi9*T02ih!*|QN=%rZ|_v|lslL`B7k+;;79hqdp_UJe*M(U@^$Tj8u-heHmV z*j(1{6K1L5Yxo&n!z)*#Y)w=A=g;r+cktg&*6)e}OG{yIN8rT6PtM(-H4A{Q`x4Gf zpazk!^>{20FPIez$Ubgx8mp?muJHFEzCys912ij)g*YM&pjiPuKL(zCan$ON){jSM zpC-gvptM-K9*C_1MvJv0n+0lA{(^6y_X_CU270|nqpio~bVRI9gA`_C6)p(jhe##t z82=NnxFbL($a4hgHjOV2O>ThG338NoVqZhE1c!qT3tN^QvUaAoYF%)T+Xn`dQXUrhrbG#c0H7ytRxdz4aNGn4;9Zi9sy=a~aq7xmWULGZG zRN=}d`)amst@-lH18n(aK9s#7AWLods%zI)p}3?9ThjcS@P4|3JSb}d@JS&*;TKxW z1hFgSI@c?&R)+6o0EZWoPnGM`7j`Xw@?Y#gB`dwc`?GiN(9Dyfd`0T2K&14p<5+9l zy}SVHJO$kNE0qcFs3&`NQaE1Lj`Hr@!`iX2@9<-lIH}D8R|%ub3V&^mjuHM` zs9UHG)NXWgtg$7mQYgpZ%s;7-isHvwN_HJt0((@~sLm-%vbqc(q`mR5EeO05n{;xW zwbRa>&4TCp2X2$z?%$`EbtLGm$L&b6AqPencJ0KG_pLhjjv$*dAq0aV)J*|>0o^IM zuYJBHO-7xswi0}|2{I~VSu&B)8EB+dYQbb(at!I}Sqbq}Tn9!18J;ZITPhOFmZpj|7Y4j6ER`THz3^4YQD_KkXOTPc6oyJ>#<;P$gydrH3J4)z_&oNms+d@kpaqJD65 z4eU;YPbl?+Bm7|>35P0zEdXx?;K@Y<0BGe2xOJ3xx}m?4DgZr`zc88lk106ZYJf|V z1({3alPNF7^s8N*q>=V8x0AQ*Y09+$*Yu z7%CkM1aak|E7bxc0xP8oCJ$dCxdVrXYAOI%SSa45eg+RhEP$fJIarTjoOZMvduTiq zHdJpphPFfeH-*Vh^13s;?gpQ%6ky=XXw<<15so5Gue^_Gm*JLC>qqc;_L>r7#DJAD64ENQti*Bg zZn6OvhsZ4G1KT4D$`5N~*d31VsqZ&Pq|hWJnEobOL;@7Zzd zLbbQot$TRI5l#;O{dZM*@R02E_^e<@9{ zvZ87L8D48Q8)%EmLsuwvv;{%yU_ zB*5h-9NP$a^PHSv?5HW4r%mIL?j7P3b4OAu z_xD~A77y#g;+1;#6`cvPll81S;e2vMot!$DAS?CPEQaOo&2AHSjP zsZ;Hb2tuAE`HhIl=|!c%tXsN}X$g7{112yXygo*gtN}7h*@E;TaK#A47L$oA>@&rA z2x6`xYJaM@YpY z0|I3&LuPvi6u7xAcxm~w|Bz&BKRIW0zmc<>4M;yQ{|(Mvi&sl;%-ifC`M4I#eY#AD zPmSpoGvOwS*ok9$+$S~o+{a_vm?t*tk5us%R?2E0@Q2L%YoY%z#NJ?Bc*z?WC!*;H zh6caFrv`W_kOJ)vVLyk*i_Ly6)+tw;jCBgtbh5OEcNp+dtsdFe5wnZm>cC(MuuTX@ zAoPatYMJz;Fkuja4{CHw9Arz{yL7&Zr-Apwyl;nr(`ebEypNuGi4A*(Z@hY{s<_Y0 zsLs*2|JR-R9!mrm*t#d+qYJ#Ht;8mKZ&RgpJ;($Fao9&?pwC~^($dTWdk8uVuspl> zk4-(TXYOz{4+BYhm<(ftQJ%a`Y-VW~-O6^Y>As5JY+-8Ax~ttbEftoN@%=I8>4yn| zj-!y9h!^;4I$Jv0{CB{Y0O5ioK=2j}|53LcHC3yUQQ4ot?CR*YV>d&PM}+i^t^TMg zC))jUWG|bv_*X2sC z2IRkli-s_CgbqLtAz2aW3RIm3av}_=z`m-iwv31^QSM%qqv3A@HE<_4!8b|V z4YVUrV>b+NUD)-G%mO1oMYs_s7eUlXzfjE(3g{F%hrT%r6u z48Fv(a>28*!Lv;800UOzij-ayXa=zc5-B-ROL@3-2oq3GB|L5e144oW!UDr$Vj_JF zI0D3{>a8#-Ej8YvR;otVvXw7@$Xvi-9bKN^l-zU+&8Xe)6WyLql-CE${QCQ9E5P2 zISQCYC<`TX6ol}4@iWSfPpP@Gq|~j~bB6ZXG;i15t*alf%hm&OJntHH?2VC&?)qo< znA)P_p4BTBtYpssh3cDsX7-8~rin4ped?@7jWpHY=msq<#;UZ_9F!bc(J-@qq>RUBz83e2((f^2x>-v$=fS9$P^k73Ku{WH;zSdCODUf z#k4CMKDclUl#H#VPrBK^QEg$atJ>ivt#sX9b!5BFx=6q0ks8A+|M#DM`u*WnX87|@ z{wK)9xa#Sr#a8J@yRaMT-^X|lVd>ER9U?k_YMo&KweWkzcZKFj@m;xLRGz1_(>y8d zmmS*;^X=`|XDI!J3?}Aphw}dKm3Cp*7wuI_yO>wfZ*sM;+CpXAw25ZrLFk(vW6M{%}P(4_{v8%9po2E02>Kp4XP6PP~9nQ)2} zS6i2sOBTHHitsgM?fHufs%(Cit88wetF7nwZ{Xyx*MVN*<3Xg48+|<8z|m}EW7mVd zY4sBFiYZbW3{?uHBu5FiP?JBf6)z8Wk+DCB1vR{1(i{bUqEH^)cZPEL_G+L4G{1zh za$`yyC>8bO>J(6(c8N7M;v+LgYQgZui?^>zj+T9ZiQ;Bc-)P1SljCYeCJZ3d2OhSzg zs1W3HZ72dMsK{<0bsqQ>Jbqzm(~<2Jr_3C|G_lbUiRQ#mSW`XR1WDxauJ99z1`{Ot zskW)O6rt%t+KJQ0QJOl1P?njqZpgiR!)sOFLpb+HFII7wu>_^eLHpUzO{n~v9pIxZ&Gy3mf-)S^Tm@4?F|(|41#d3 zBJ$EeWk0>R1;}X}+gO&-SGW@3M8v~M)IZ)F4X+Uht7&8uBsmN}P!VE-udowRTm2A_ z>2mt|Er<4=Id>72cDL?W*EF|F>cEzI?Mba}#DRhphdb|;veztHUp%+`r7N4BO6J!l z49+;YtIMKJZI^bv^4+wuwX7fBtjH#VK#S1fOmqZAWGn142$E6sH^`B;)90YWfm~IX z6gnJP6coDY2SGQ}4k`=n$xHdCtmT$NyY}*}YzT-&k>J*fE~gUs!Zj2K=1oBk=y9q0 zO88Mm(@u;a9f-l>lcWczB&-OuXhx%>unEW{-QphgjrET-k+H)hyjhUO>yaggVipC_ zQm>yeJ~%Nd+^f0dHcMS^-Oz0#79743?HQle!+%jokCI<*Nx6+yyZW@emHXc2wL3(>*{kFpjMJdxFrqd<9{4LPm8!}sSODAr^2rSVTNa7o+@Op`{Y`i3DXF_V z7zo<`?4d{(ht$rvb3CaQh^ml;0%LmKvCcyMWl(SmOO{u9_LSi zrNaG{%*eoTgvMXLxs}v1X=$vO@0L&a^1?xVI?U*y*B;mDdN0|MnY(qElqnVM*ilKsLr=IXoO0nwc4&GMp ztF2;Y0y0Z6C`<$M2<%L$G=lOf=}PHnX?f{CCgk@yK4{YQpqug;Tc-aB=Omu;27U z!|5!9sd`K(;Q@sG*>6ZkO-f1iBQBVrKykG|sM0mK{$QANRI41-m&T62(nY%_qsxB8 z|5sIMK$|nAs2813U$c@FOqQb< z#Cj28K!^4%w&Kp4NBQ@x?b+YIKgL?UJ2wjFF{8=2pv0&MFKC{>N^aI7Yq&Jtx?B2; zeZxb=VQiwDSKK3z__Vt~k2mfqXvc6kLs}$;7vNq7uA`SJ)JUfpt&jx)UeE;(TaCY; zPq1$=8JHt|jAm!Z;kd{M^))Ez%k04`UdYnv@ayJaDaW&ABLrmzAtt zMY5z?zaD2CaRd154Em1>J!rN#^Jnq79OLmLK20u6#Cn`iJ`ZZ9P&XfSeHRAv2Cnbv zap|V?6xn2mgUwdb?1KyZ`Jc0X-GBMx53)W!;@}AX$DWy0clqmUXRiN-{NaHR{erWB zNr%+X#nK7(G-f9K!vu2xrRfAR4j~4T*d&OKwh0w+jEF!YMJ!B0h1w{XMNDLDvfUeY zFCs@oBr1|}gD87-2<=C4d&CZJzjVXVWqoHwb&CQ#Qkc`X=5n-`;}v3kH#YIeQfs`h zlNezqd8;bJIt(sH_Io4^V>pO0#Gn=dy!K^XH01I?NIn4&(lG>h73eTvSeF#T z5+zY!kSyV)gX+xsFmlqt6Jk^wk77Hlw=xm@M!WeDml zv*k@~?6NCYmc8!iOe9f;28s`Wo)${TPpA)IXb3XEav@OafK%#=Fq62Lq#`f{aygj@ z8O&yI5DdW_3s0v=KVg9+(F^%8ar^;^x76y8LLM?01T*l0bnUQV*+;5YPANT8!^Zr^ zLaqO(D(Nt2)5w>u4(}wNpM5f&|9mHgGhN|U+1U};mEdmi{ zUd-U+iPZ*$K;;pqUes{4orTd%taiQ&P(3U+IbTDQ@No-r53>6Rxq`PkF1kasSqjCK zkztLz;%gCLrsx!>s_N~UKyHR0y39XtYsr%BgjvaT-vGmT8FLwmy_KLDVi|~lO?Mw= zK=xbgLl0(vJ7j^EtAzNy0UCFAHd+*#2LtGBT9c$w>mqV;r(bJ_@l~Jl?@zFotbfrs zHIp$;@<$4Se3n3128QOOV_>{lu#UTE3@(HhqK2DrOd_id6cGT@8r>KLK8ucugl95@ z8gEm87uoI8Q_>(2z*vZU&txsM1=g8yI+Mn?f7iceS%$(q(MYzk`qK25qSm&1>6{v23f^Y;2#^)BqmWwqyy9sa4@kjwTOa( zpQLw`m|bwhRcDa%dbQd*FK2$HN9ytECvVSwwRqXB1)Y!X>N9-=4_~(^b79Y=;|CsS zt@~t^xpz|7po3e6Osdm-e(bx#rOf5+k6H8QS_LP!sO@(3^-hO(Uf(lnme?Ejz)up8 zZ_x`fMT`d3q&?t{3am>4(oQboDhh;?At~sVk_J=F2IPYz&dC1|f&#(8KEdv;u&ThV z#FnnaKq`_R@d-)|U=lCDT$u6=JVxsN;{9QT%&qX|B0f9kTz>n3%|D#DWEp?%i;|Ll zg_bY1DeH=J=7$A;JH5=J_4M*9(d+pe-A4}YQTy@0VSV}rfzdJI&wf_nX%>Ju zD8%I?a3eUsNapIxm!-Q#>%G7JV(+hJ&#mRJQBAhjd9M69o*S!y&Jj(SYhXmv6DW#J zBEc{t!688v>_Q%EoQc)M#>K$dTQ$y*G^bwM6cucjMv!aM7CYR+`*o?pxT8MTs(P z=nV~PkA4F@3;ob8YM5gFArWfJFcu?4>Ubfy12_vbaK{+okUlQXK$29GJNdW@BR~Ej zmQ6QJLw7XdgOdBqw~qY!+3}}mZku`K@MpiCcylWIf%{T{Ek2N)6kh?>SE&u;fR3pc zhl|Ly58pWWGNP!IhQVJ)V~#+q1_ZiB)&RjSWEI4S0@I6*5Sp>V1c#2c)tQS%^jwm)^!@VPANT6l>)Zlx>0j?iQ-<~!*spoh z@$I^GT0UmztRO@CNxf%m&l=ipYFeksxhE9bZ-NU`u5nLIw8iWJ2VoeWNqt6&DC}GU z|Im-z1&kstm_a6jwSw+uNR~*a@=djy3%9&h?dHrbQRW`@L&3G4wTDrY%x}WW9pxdU zLx^|iov^M@XRvd5`-1|%%pp*zo zg&`TFv4pTN#TE?i47W>4mkC34umzQw@JnoPkv4<+Ht2v@3=u?Z_JEW^F~o?y`1>GY zGD$TUc#5~wzCjEzd$PE^`#d)T@B8XOFBf+4b)9>C2=T)O@cNBqKUBV#QoD@iX7T5( zPxin&AtG2V^c zn~CpAh6x*UL}%fOT^~nm3nG(itNHu@_qdLudt}74YZ~Q-%27z+x{?3$^xe|IaZ^og zraiZp9ml(%QEG?dT_Ud3*F}$@3Q~rl!!{=2=y>EPTFaey%j#~;<=;<)oZ?2t2BT&wVQcDN?@iX!HBKQo|ch^&%JB()) z=CcjvQ@n@f&7Lgw(f2TtKmomJ+xYR)YQ9_>T3I_o-dIWJP~@7m%SrCzsbnumbAi2sUwoM_RPrW3A8G{ zBYUDnMqIQdIkT??W#YLu9rb?>9r>edCigQ+tWA2^A4d-TzNUGrudUR3AIzjc=9m5Z1HS+ ztTgdd2n1v7gK&H<6QUf6b8y?puJx&6u6vj(Q4arcdMv((<~-1R7tcjD4EW6w&B9q6 zZu0-1vC?-zdy?{&Do65dL!ficKN5GEt0u}4feTG4A(t+!0=D27tPf2OiF)1&C*J&m#G?T$Z}cz{zm7HA z;-pnWlr1q33I2!PJam2F+-D~6acu5upHE&h1Dxet?*6IE_VvL}&3W6rm9u7Jx|ZPG zsdzWVNShpEq$epc(s)0dqHLqH$4HyJOpRltnSyc>zCkR3u5v{O3CVc-r+?qNFF$?2 z`eAmTW$RXefa3=*UO%O*CU3&qj459@9#et2=mL7Wf*xD0B-pwd#z`yFt?EP#b0vBI z=QwHh)snkRyY$0K{>eirWyAV@MZLCyl=FwKmF@2??_SAU@HR2yMlT*mbQpj~?*knH zkQETigSzt&6%Z+%`Dl!E1BwvKgBZ6!bC4N-8sJSfI7+510AKtQ zOV{qW8)7YEI(H07ZDMvZNv)#e=PjEL0#6)1f9WZCJOA#)y~^QnvrHYPU*E-!@TRZhk9yAlvF>5%it{4kqkZ9o=Z73+F>~kLK_SA~LtGf5id~VRbyYuGW)uyy=Kebunk?Pf# zjx}jEwPVN9e;=;;3zO+cYY5Sb?1q{^>_d2oQ_VSK!6T~_OhENndO&ME-heO#H9{Je zAA5wf4RL^H3Qk5k%vDNw5rlFn`N4NHKHQssJu_#;_L6Eh?!kWctXk1~UFUuoFQ8K1 z2frPDSZV1nW6ZHjt4|zk(sFvc4w&D6Vcn@_vtDyf+#%vK<@#3ZU)%Djt96>u@4Dy* z{YFMDcYFrwj#;09`+p|%3_nf8e~M4W5GmxC7~LcB$svgL05UG(lhIH3!ck}38A^Pz zzmXw#fHA^9g5+T}(%p~w+2WJM#SD;(z){Gb0>uE_rLYj0T{_q2K+(e8eRU;Aj+D68 zoSK@IIb%+*0hpRkdEKGkD~j%}<;mEAT|anO{_5M;KK|tTTerm6CSk0v;%pFa#o3_6 zLm@j{vhZ}5#PX4O1b3V&L^WiwNFG4vH^o<2|AnL@Q|cm--)_>wOZT2*E35g}U$DS` z+?~B}D!VrL))V`otnA!X^V}jWChzvv_`)1JL1$YcF+pfct?^=CSGK3X@Dx|SlEJv+q-@SYS)g&D%we! zyf2YViSGd~>tQ{>0Y8gPLe>9|QtZu45(M3ZRA%E|p{6kV7e< z_^k5^_etkh46N)js6~Fq1&h2{1)rl|H?`BqWSs+7wtXCo*cD-g$prpCof?5(uS7vO5zm=EY=kmCVMcER80f>6NgD9 zfxgQ-hzgqpyR*A{em(5=eXZSA+`vwP5R{g1KH=-7e3r|Y}=77M_J`te6%!( zO&u|UZ?T?WZ}VpKg_fS6qX+1C8Fc*jnBS299`j4H^EWZSJr1)K?@2G+nSX2V=FB~r zTlVd{FZrG2D6Ga?+ey2{TOmwee1SZKMoXIgi1~HXC&4}?Vt$cxkRsw?b-^KF{~_i# zM8y0yZ4mPtjZ0Mx`8C@@e#x*cKy|WB$Z1*pSA_ib`=gToRsC%BfzjFgDBEv6Be&q4 zwj6wM>h-15<|Oy;txp>G!w&;5{PEe0Bjcv~c=sMRymt{Bwtgkwv36%cX>WJe;JC1a z%oyTH1E3qu5$NMMOl#dU5Drwaa9;S!4aYXSydg zuPp#g;+^_Z;7eG2=&^_Q;2UgQb+Er)0$=ik2V%TthQ%cS*@j4Jw8ioUkt{u0=<5{6 zOBw!vA8Byyg5g9Gm0&aILf0nP47vL#y~yPcolvJcEK~$y#fQZQ1yU3&O4WKYPt`X^ zNIhUVVoiJ@SJ=XLC8qdNiF=Es%vjT*W7&*pr5!r0Sr)K!uetZtvn4A}KAT}()IYsd zzy9som{3ad<&~HR3fuje&tX5`diT9sw?4RY6O-H=`qxv~|AAy7 zt;b5S5{=_`vHxA2!I=~t5}w%<#cPL6DdZh@LnGJ}S1my^1f9Ne_`45I)&M#^cjSX7 zrxk`~+;|Ln$_El0ED%(z(^SOp0zbt%k)x^J@HA$T_RMY2ybUya5xz_Q;{q3h0|i{_ zlqf@mmm&PomKuyQ7%G-V3VO5yWP(0NkgQc{MOY69oJ=JMSQ)(+dzJ7w5y$H)-i!I5 z`;^`cokIs3sG?HhO0vD0;40O~Dee{Va^%YpF=RmK5Gn+e?)b1#ty$O^{w!PiG=Hk~ zs9|6XL%;r-Rr6r$EA0O7zjJtGg9bnb+Ofb|gr5Z}ZEAbLs{u}#P9)44(7^yX#L3By zm*Le){H`+=2sZ`>t4JH^LLvbX(oMGOHGZhNx~i(0CBg#$aG{i@0EF5ZC2twOD&bmz z(|O|EU|7&JksSt^xTxv{%o$n<4(*_g5+lQ$gity)F9JGxC>w+v8A)=0GEI?eL%f#qWwy*|t87O8ie56-kw(Y?%$_G;iq#J`G^tX7-9V|5yEs z%9(&sFs92GlY-HZZ(PHe*#81I(pWH(mI4qwSfOHq4r6Ey{)Nh7nn?1T#g)!NAxL$@hkL~*?_6yCVmpF^XZQtX^p`?*#mDdeQ}N=N~MyQaxE{U3G1FaCo7w@%6WEzsPcT^z2_YaR2K0 zw>u?`Z7ucayfQms>xf>1M~eM*5wW|#XfaOM1f!rcM`LtaZv!q93a^7o3Q-&m;~J?5 zvw~TeKxRm?1(~&ou8WI_j4=9oxM`AD62%$dTJgy~H?x;0tU+a9FbVSWoA7X2+$ z>cW|$FhrP3fh}YI61M#KI9*(Swo~E=1~!P(&8`eRz?aJxfHw=A4q$U-?H}~)Igk}P z;MqOd|4pYp(@W|H$E2@^KO2ST;Nm=*t1C^pK|DX)Q~zkQVNR9~_4$UAt+lcn-n z@s>HI92gVopJFcZL9bE^2p*4+qrnnwR}e8n(yx@)z~PZzV~#>Bukd+P?jF|cI;$^+ z8dFpen&DUvl@Asd;)`MrQ7rEu@ji;>#pDQlS4lsp9%cuWw;@ARa9(g=HJ(>Hs4~== z{ZKmW^CMe#Tv>>n#l^M12*j6Zw&7iQc$bNEUPzn`V|gdre8I`F*DQ*idNBXr~m zfpvcs!s3140lpe!)%F4KfDML!pj?BaL2jMoVA1gYT|}t z)ptDuNUnqtPV9$0WukLeGwhN`#{A0)CBv zQ-acvb^uHpX$D9^!3T=WCEc44H-m_alGsbSBlCJsYMs;e$mmyp@F-c;B6O-xK!LB@ z)boq3z9TU{Z%TzL`^ms=pQ}!an%uk#^SCE1&g+n$oEqCTW@7mVOZfLc2RHX-A5_<{ z!JrKCr4jMB7!%~nQD{K?Eew&=uGHLlNz!X>*zh)OnXpp>d$rrWnC3nBdAy4=684|t zZy)dC5vD<$-+zg}MKU-F{P2FSx|9W<=kJ&A+P_kbGi{eKZXRr!yghr7w{t(ZgDsyXm*^Xj#s6=kejD+~D423|aQxFwz4A`=z8e-g$D2nzmxh*R`+ zg-3S7*jsu(GBRkjA+|&UAc-n|c^i?>tUl}(R(5D|b{l(&ulD%r((d^Q2Ceqo(N~et zB5Yr;yO)oD)>Ui=7}}p+WQ~_T7=O!dXvdDg*%E$$be4o4AbdW4!24|N0{bqfIWeep zmg{~6-?<`e+gn6G;Tt5*qPOVxo$$4h$X0=5Y$@1h;hL@%3)QgpgVc+iX46neUGvh%-{|iz^*r=O-X9;l_C4P5 zy4%{)?A6`+W}KZ-fja_d!q-SC(S@OLp8UljW)thY7_yTK*4dU}7pF`o z`FO+6NbxzdD`^nWu+vo85~%kAnOwkViVYTYZY?8bqM&VuJHYe z?Qis**nQiyimHQ8)UciGw{@$y=H`u6FHRjkYYq!-)3QJ+6 zc<(RZC@lF8U@GPOEbGgYpFR%B1nW{yFX36B7jO`@3tO2ON2=2PZ>3$S9gq1?eJE`6 zp|sO{L@WLAFFi-`xhS=_pUGC*g8~khb z#{yQv$Fto$X90I2Zx7lVs0)v?^%3NhC(uB#vlNH;u_i{-Qpt&>M=m&7pBx3>YMD~# zqI!mm5GxrvrX8iEWbOzVQ(;V|Y0)e(-W(nn;Nt~oGKRr^Cc^P;(4@)R)Hp;>IIF}V z7pvU^2YM$PGI?XK{@V&NM@Jp&+PZmWf=+i_s~@y2Z)kaRo5D8-^=>t)d1Q9GL1Rs8 z{(W%Y!}aZ(NqIeH#>GMNQ}9*# zftn4b`WRd70o6vH6hxB3T$nf?rh1lX%r&kW0 zJT`abfhVSKh`E^CzWed*7zt?Ji95InXcjTGYAmol23UoFFcJy{wg~~CmfR1#{Xs8L z>+2XzD=4IxE*O5kVojzjS-FxQVx!*ve9^4e4pfAW;I(XLu}aF!^)dWSp+oM(GnvMf z_6TT+CA^(tX$ixFCBY$<7Bt`&1U(>@)-TpSs$ncGN$dohI0PSyXj%_BCnKV1WRP2g zQ8?;4^@w7GuWiwk72yc(4eQbB?*&v?wvAqP>b9kr{Pa71dd)&QE_JB zXomEm@L*WH@KEo(jtl$sU7NeDWPbiFAGR{%h57IQUJ5^pZf&PFYtsM8bzfd>%Hm77 zF2Tb5nP2s#`?BC$j`!HCUQqmqMJu$t|I z%Bq{;iulL`O2;-l&(FyH{P^WDecMm%u9Z*9+QKWrPal=~R90HA&Yjxh=;mH?+qPcN z_xx8=6nc(87VL((OVli~ct(I2Gfc|Jz(Sg;lKv|Od=SadW(ybtVeRBdU{hK_b{^(3 zLV`^vR_UiH`p+GeY+#9+gqT?Wm?&{znIS4d@qcjiXsHJw9iU0Mv+L{p*Nq$JUWAkO z7dy+|T|8)6hY^crT$wxLZg#((r}`~exp-dVpV)0Tf_aW zuR}3zFD0|d{1=6NBfVwN&dIrGtGITO_) zDG_my5;%;E6f%*Hn^ekE=@&*ol1A#SeySM|y=0Z6!U#x82l7tF1jhIQ(}ky_$e2b9 z1+`vH%AiHyJ9)Yy%&--*{i`mm!sp_L9px@BpL)RDpLx$|XxV_id2y$=dnC?m+aWJG zF*l`IPD-XWrS1;9!kP68_Rfxv=XXrw-bUR^%R3KTlheccy`^XNQ`_$X&y{f>Am2LX z#Ehtk=9)j1AtG0oP6_}752qk3@lB!fYd zrz|R6!+EY`4MG++u;wI8Ufak2iICdOeUv{}9C~11qnu^+dEA06>5u%e8&jQ>FwHJ5 zBCt24&m(^c4j!Hm9~G(5G)anYp3potCNeH64nsBrhKe@FdEkPDi;yDXm|Lm1Qv-jr zxF}i0p;BO!C0O0{-P|$b&(CL}tt}@{$jo|AzkE#A#4cGWC#LOxIbiG!scP6%7gnOT z9!ruZuAMrcJsn?JFm6kZzk)+us!nX0pE%&>YkZ=7s`?BY%BTIhW&Gr4gie9lyx$0& z_X{ECML{QAOEz@mUnG9}20oKr%#W~H4;*3S+=GDW>5fw+Ea&9UQ2=&Feo^%y0>W<| zO1(Wqph37bOmc5j-=1)$=TpnCTshhEOm2O^z`EH}=RL(A&YUv4P%#T4-uegC)|9MK zoGHytSLJ2R?lRF@WH zaT*kR>Jxu(g8ucK;O~r28|q~Zo6RiN7IPi*Ut_K*c8JW5jbg45v-STGb8R1(6v}U$ zIKkSUe4GtUMU)^T{GB0<^!A)CsVEGb`fa{I~CrI8~B zU&r2*5c@V%8wq}5goIgU35f6o0ugHtko8&*6dH!^k>!Pe05vyyv^@+P5PAtV2%-W= z5y5E&SIxKG!to8e35x^uC8erC*IeK}8WCd&{L04qr!e1Qj(Oov}e;OEdm1$@A@_4 z!CCJ@?gEawx&Kh>s^6O)EMj{mS**Wx$bbpHZYm!lFwbBW^F+2+fq5e5k4`4fJDZ%Z zXxB6haUFw1RkH?O0ojNs_pQ%_hQLFzGehnt^b_mT$F8R`a@w!vE!lnw+*ZQ-01k^# z6xu_Jp;F6r-$4&~LC6QOkc|dd`ceEg!n*!GemmsR`0YdlaR2Y(w?R0<0>NiejLl5Z z!T!!cY*XHzmb-VH`{?Mo=5vaJ`1p|4e@^gnHijm$_wo=Kz|NaGOgXoft%LQgT6|I9 z(zo2ChHsyj_?Me5PVbKB&?C6Z5b&)XkMRXyI-^Mg4)l}^PWlGH+jJi}MsLHv3>H|8 zPL1ByXd-EFh)h@XFK=Ujw;SnS2uznqdcy&M-B_)SYKF@R#m^u}z^vC7WJP9m@vAJV zZr3_kvJ|fiwGIhkZ6OA0AAA6}uJ3|JgY2`$zS~y?Jh}7isZsfUY(?!1-k0JZQm+(b_yb3c~yXCTn7Q&Q#h7%K()U%65DF00$XTM ziwU0-z+*~9z7OnHe0~m})5T|Z`phVwNoV>j>Im1@HNl?Ov{CMUZ&C^330BgK!59xVFPUe`qFBnKMV%uPefN@g`{~bw4Ax-VB1t8GdCpsoJ zO78@?pi#CygTRJSWdYJc9CR1$fZ3l{SARZR`S;?snwo99kJW5j$S1H}k0k4R7nK#F z`A7T*{v)d6M1H&hq+u+$*Bj)0eFwCQdKpxS0{4Ckd|nD2Pp@fv9xMe%SD9FM5*n0hd$C8AZroVwz#q3-x#N~xx06#XAldf@_J%gax(r)fsD*B@H&XhBB@yayTX zF=v)WbJ!UjWDSr6#O_0!g~O4nX1qc~1Z;qi29YNWeHcpO(OQ!nETEVKNPw15dl$5W zr;BXxYFBcO3vxoZo<`&3>V)JmS_6FJm7U;BI|1G`@I)40S~;-xw5+#|l7nhj>hkvP zwI1KU-@4=ALCm4Zc_?yGWi+InVUqFtZ$P`fW+>)#6F!GwEN+PBcX6XP;+?jMHA4Ip zuncxB4GOqO0>eOj=#z$xwf|b~n|r|x!SqR%4NCI z+JU_;E#N^LH%Z}A$d*kUk{xL32O5z39P^C@z~^T8yh40lDCQg9Zz8{#QZsb2GT&xs zaWIAJ4H`XC8Br`VY_XGEFyZ2eC6N01_&(U_$RtD^X>$bGs*45(1(=iyqZo*vx0@5p zv#2o&BZ#Oms-Xh8X}(Hr7++YjDe~o1?Ss0Xj{k^I2CHK*%Zc~x%ww?FDM z{NGLo4mdFckN(bF-KzNK^2xhzTymDfYd?3s{QA99Vyw2Dgti)^!5Ay{Jh*RXi?hkY z6$%Ja=P5(>AfvY?UburMP$;hlfvZ%Jhnlel#65^_8;$-tCyJp&9xlS4{Z0566w}WV z^4w^u-=A=1&FPxs6=%NxofWySc)bV?CE6`DUUJ{sb6zL5B4Nm1&vC1fFQbJX37Sy9 z7W`uHg&;lNW+Ny-&u|_{uWKq|;gIzN+g@xDBl#*|P1xA_KD5VunQ)x+_9P%lgY<+3 zCx|B~;o|3G!nR34J_|3@oT5~(2FPM*t$fnFBx&fr!zD}jsGpXXFyH(4nQ!^hfAKL( zR~^-UjcLB~BY)6gMP+B^^(pJmrt&TP^r!rnZj~!KFpnQuGDyUpQuy~u*xm3MqF@Q% zLG5)fU~IuUY6t(McI&UAop5bu(N27m+V_d}ZGuNp|0K2jWzk*(J#v8Pk8>yb-xKZN zJ=n|CpY}362R;;dFIHdaFP&D~?^3(M11UGCcz%7(QgJ3kJ3R;OPWXngdwSN5VG8Nl=%gz7=aiKx;fMn+uS9y~L4K5j^=d>q|(B(@xEVa|zGy2|6d^ z`L3G&%JYM9(!e8_u83e1l{+9pR+pf|jtsK@mYRy|yNFU_pxEvfh2sUOL6PO~U6T3T zo!ZEq{GRqEFP8kQKeEDy>G%W8$x*QubhnnE0rd#^bg>_OAm{YCKq=t`$7%xon$mg* z#9LfrN}B&B#Ii5}WPJzEvUQ-t??J(CCLvMzOBFwEuc_I-=UB~lKAo-bf0iXb|2FG#@hrdg?p1#0s);YtcDCPhKk(0)nbvD7 zAE@nv`7~>gg9L|#BFcr{js-!?m6t@v0iMs`F0pZxMh|`uxtl(Mt|fR`ylrwHT`o5a3<0`O;;{l>os&$&n% zRHTl$CE`THfBW{!gko7vQYvE4{%)Gvy?a04jV zlacsm%64hAb^mtjR`K2xyq9DNSK_lS&Int^0Bw90J@9H-!e$oC%tQIvwoVG4#ZLC| z_Mz9NusEs&C&w{*`zKjPCEv5}oIAoi2k;7Q^)smY*4BChK+@;6#A77H;pU2W%iuW^ zEFO>wm^TCh_SC%cPaoGV4*w zo{MBy#-MGhuwK0}Z%1(#_-U3XSectU^jexbxEu5ewzxZdWW80Oj9e8IkkHPNlwnc< zGa*~Z$|YiBSLAJu?bhIz;2@}M=HnMBIF=HV#K1o=DqC%{BDYZA_;w-uvon0~b=LFU zw)00vwhGXGA?sRpwC=S2AbHFEtXb^->XELl;K3ncEa1)3^B~Y**lvZG1AZgMNW50G zgV!4H>jtv(-{rk-3PUG>{pb!!^f7s_NdRpmNef)Qu#?^UqwznGA>DK0I{-EkH zWpFy=+Uxg%&IWQe=2s(wDf^$i93JVV+R0W+8 zBsEYHQbec%&QO>rp&Q_*><^@qYgxq~RByi3X;`c6bLL&0k$-+k--9_h!=6Kd*lqmK zH~jg7xgBOV=`sC}*KhwmrCIu{F5Sd@s`H2afV-Y~8g^+GT31;XQzbn1v~`t|HX7qm z=|?|!cTm5&!pHVgWRX?qw*&nQhBbU$U28l|Vo%q#rl;XqN}pnTpK?C4u8rEKjnbzM z9wN|5C)xW{SU;<4LVcvC>zb&2XpcMgskDCZNT2?V`mE(XkMtQM`b@FEYaI`Nqz|M| zyla-d&wA@${E|WszogRRF8a)|_u0TTjr#z_qvw#!geAwh+{!b>Iw*5e-@cvCs&Ci- zTX`mAqZhbx4n%*-cTe+-_8as#np<9q=jYkmiy`IKx6``3Ci*vQr?q(9vAr%_Jcs5V znk$~K_OA=Ex4+q-y}!Nvtp@F5L_5vx+YQ>?L_5tVG+~G5yNh<3Lqy~_w1aBMvPAzL zWnWpp75fUi)V8mL-09e--1bt>f&UNs(Absdth3H<+^6o0=tJvH_b2v)RmjSZ$nM)!*?l4UJBxX!Qs-f7 z<1y9^Yt*OQIPCn@G@puYv(*ZpL)?dr zb)N0ked1gk#eO3UNjwwtU#wXv`Y#miwBNoJ>tbskW^ezeV>?e1?KGd?HE3^ZZ~wkQ z`v80U4-MMKiguc-9~-nY(N6R8lViKJPPEgU{Os6Xw@>JDL_dBaK5V_xcn{Pa6Mg9H zD}BnXFA6?PXG-P6{Icjn<5K!mSeHJscIO)PskF{~q)%a^K5MP*9_fRX0!Bt-SKhVm zG3O4eias;W%DMYktb1b}c)Rswu}=hk zC-^X)3BF|G!%92xVWnN=!*x#!otftUh&uo8iurfA2kT~uJ~aPIpK@zu<9m=(tpVT@ z_C6K0zleErxCeQ9qdt|7=`*=epS9McN1jvIsLwiUo5p?W`iMR>ZyD;mEf(`u(x`pA z72FT!ZWqquFu|{?#XOW-&p$E`BrC1Z(L9_``wV?#A7b6nhxVb;r?U3T#`}k|yrK{7 zAEnQ_+Gif=gWD2)Xm2QeHq=%;vNu|YJ~T#fTfvh@i?O&iYTvHl9SWu=_6D9wdqanB zxQi8BgZ75fe#1$$*U`N&K+MT$G2S)SJCB^rx#%-cSFDMZPD5QV7|N~dADI)<^OU`z zJg1`e*T&=JtsC{Jd`zFojr!R3hU1-x^V{HEw!Pulr&FUo>#a>1&n@rRsLuv#i^hHG z`iMT5e-%I4YE}1Gqjq(V0W&GBr%mwiVzFKqMLW)*jKn_n(2L^Y$W=u+k-<$x@p+;O2#l8;GN zyHD_-<+)G2I<#iP)OpjVw3swHGNjK$ZOZyfEYPWFeC53rJ7SLRD6PNlIFuNy3y& zz(67?cJ&HVa$;O%gZ&IKrI5a9<{UK7yn09e` zPFYUI#zmRSZp}SXQvF`j2^SU|f3{|t-=u=g6%)VLeK@FU#-z2`u7>2?t+R@+7fj?K zCf(;Re#%GI9xB+p?!b{1OV=)j(9Sf2F_vN4G{lhUpF-~OmdJ4jhZma9^jJwE4bI2M zB%eOPvycwAfnTv9Ff;kKwZ`5iRd=r)`IRyq2H8j5#U= zk4-~-cr>g|##TL^aq0Op}~wGQ!>*&7vDBy8>?ulayIeoMTk? zHN^;^OiQe^Wb*FrgSsu~KBS=8#35^*%ANVnmaVsE4&InMb@13@sp}W+C@b6Ec8%_% zj%~)J#$xGvh zdz>qszjgJT3z@^S9_(EC`ogm1(`U?nZtl2G`VZ=MAbU~i;we|z7XyY4ozf|FX4`>T znoLKUFXvXo)Ib zl}Hv)A0Ss~7(xIR0c=c@tyt{fPZAR;6aHX=@veR~NSn8#qduB+oIZ29);-{T{>c_g z`HX_ieRuEcK4f-M{=o8Qkp?E|+u*75;`tpoE6jd|fA(-?{`@{M=1!yf&N`W~FgZUf zwrN6WvuQ_5%8|$*{G_X^77`YS*aRP>``DjB@DuR!18D&sI7m_!mY^3UFH{HPEg%%& zU&K08rs56Dq*PM>3&JT;`4PG2oHeL&rBxsmBV5}kdp?j|^6r5@F+dCWV@TI`t*bWm z&1pAvNJw>*&l8?ua<}W+ltY^y&NONhrWSV;DUYNVC!gu;A3QU5a4yZc8Xtmv?*WT> z$m8Qfuu-Tl&#TAiTc%L)(@OYOG;MjKH@WZ)qQ^S>a%Rf_xIU=XV!8K>uv;-tV8(+{5R%8 z^STu0(+_rikyq6PhAY&0pmZnr9hn!C9Dyh#B2vv0>8fX}x{1@+=X{SJ`y;PU;_##< zQR{oIJ0Y)MSNl!h&VJsDeWUiSr#X={r|_;kZ7MKcqsC%!hwB5tZEQw3oY?jv?K-?u zwZ_+P%_Oo{xVpKy8QqLX3@&ydgUh^N_)G>2udJE8aUJi-VmpuS*mlUm_Iz%KNZ;z< z0BveMFW|SjcJe59%dxN;c7M!A!>kLWV+Bu9KCL|5StE7#!24hWfP!TF#0Hm*h+=4}KmiP6;7HW1fTCL4*Z;?T|MFAd1)zOPSF<%$^({C>_|nUP&xvS4%9C!XjrdP>&J znb+56cN#mrNrxHT7rmnUs7?Fv$;k!d#!ueSt1xrQqCN?+J;r1aUuZg^cWP=>bib)j z%*rhq)Xd4$bzi}CNzwk^o2u5LJvTPF=h)MYSc?Nm~DhxtzV-Pk$!OMq49z|C0lE#1a=CF$u zr>9hZ`1-n;L!MY!hRCrm_+MN8+Odec8s(Rmo_Vdl_d5T*_|D4=@C5CXSCQW-9CXEK zVlD77B}0PAAM%^9i{(i~5$z1TAF(*%95zIwP2z@ba3_F=K0Wimph1?oLkDddnzCla zxb=Ou@9i~oR@{_=SifZk^!U|%%VXHURd){7BTFPnIab~f$kF(gYi_w+}p@+UZG}*S?62`V;#yka7h1V_zEK zv#9~YWpWl>SN8o_FEwC20yP0q;JV7*Ys7OYYoJKLF8`Ysj>$?Kk=QhPea8A@!!joh z2=2ZEf!3AQId%>#6}p>B0u)D)H!zREpv9y?-e-{;K%4`cnFQ~paDCrcvZXPyyNZY^ zd(ba#dnr!-CLpBZqXqlkuAZKkQ9jHRq75zPb-ONoH{;|f>0@i^%;_0t_s?L?JFsqD zvDc?zPX%FD^|Clem_*QuO&x&K1et)b_p!IgOT-6DmL&Wal%&jP#BzlMsYiI-jPq~!N$zjlFCMjfIQQ{=>y`JfV@j}w zQ~7XhhPDOvpZ+OlAtU2HATErg197Y=?2XkzYQ{iaQq!8TemMq&?P2!O|}qZd6QfjpwR4$zTtPu!M$CEF;q+I|#OhxPS0͹< z2yZFxj<7*Xh;_oUz;(pn;8G$TTeLVSIOs$`@P|KD?S6iE^@5#9vX$qNU%g;D^V(F* z`JQ|HdsNyovfXa8PK}p#Tjwra?Je)6v8lNlp~)cMkU7E`M~NY)n{4tH(NW!oT}|7KX+)y?AzK))pl_n#B(gl zb2=;iMZ0*8(tZ-n^nB4So};vvs_o(~qUVUa2=u7W5pye^Pl{uGyU>+Id$Q6_#}m&N zx`t?PuC(VV?Lr0??Jbpd2oSV(KmoP>kd56n?Vf^Qs|XR~O93xmN&~9O!7%QU983&x z2>lN7orY!So`-jpEKa(=QRLtf!Y`W>lt}jZ>Tshrt<~A;j+=Or^x}ej-S9^-IL|Y| zKip}*lA6G>oSkrM*;EE31?o#_An{O28kb@=>abCDk@{}oEeB-F3wVcW{$txt@}g32 zw@UWcr$$|C=7i^717AwRbB*u;aPxCR6eXVQZojz6jSyTMceDZ)2sc9|Vke1M1fVYb zDbfVcK_TB{O4cE~t?0t0GKlQjQCDa7+>N9bZRd@2@pj?J?!*1YU&)k*)c)G9tN-$d zEvwpJ{$PA9VP7J@u>25wE0}T>z^z60LRcb1KR5y)NKvuR3O!FThT?D_nv4Qygts)Y zD4pH*NvgZbuWePM-6tOG-KX>Pfg5UeZOAR`lrwby#2p{ZDZFcH(`IUH+?Ct!y&M-e zr9;cIzfK%~P(=Ge&3BCbn-B8H?wMQrvE_HNCa|Y#KPHQw*gxn;bfX_E9m4Lp>Ct|4 zpJE+DF+NX>5T~Ak;ItAXLF^K7t>y_m3OUHVgb6y>JD73np$ z&tHO0vZkVJ&6=_`B4YhR{y`XDYGm6(S>!zgu9w}q{r1gU@4RzU%yk7HD1W703Dijc zl%Ik>5N}slNn@b`B4#U;Sd!Zv8@Ye{g!R2U?JOO$IcNLco}(vqoRgEYZCL-2<$Rp&+LmY#)mfTg|&Xj2V*X1 z?;$1(N+l30(gZTedrQ`kmy)6nNqwWtF?N>+GbxSO;N%cwRGe(~nzK9e^VP=>u{$Q7 zIiepMo;egrvfyYFAD~@vbZO|VKBKGq z&M)WNc__a+`HMIE85gmpr+2R6;nJn)dA0M2t|johNyYwaszJpqnz!qbn(Rc)p6#U1vb&m=g>P9MwRH2^Nxt&bw$_OL-TXh@wySx_ z6u-b8IZsB<8xgg1%i2lAoMjE=`|yDtMY2pP@RZKsPVlRYgR2m^Zy@;~(@lZ{5%5hF z?yHA4NrFjfk(@|UjIXx>J}4@_68dduWlOb*>y&O%ajx`+bRowuRM=4=E-(`5*p#K| zqjwHX3m>&*;P{u;AADi(u0LS2!*b(U3xBqw)Oyy?J0y7Gc&s= ztWeEyg;8J&rD2f7Isjvskl+k%y;LzR1<6?1jx^sz&nLf0gU_6m0dKGsdtzbFo&r;BP~a zr;0LkL}-#GTdqOc>M%TqSh1&;=$O%-qFQCioxjvfK+sUq8i{ z+S@L7DU1)LFi7G=ye3ox2%OTfw?F;q+JU$3PJeDWU%sk%nN+o6#mXYxyS%eI|K{EU z{ATC`6M&xGCMT zDJ{Jz>sc0d9@qR zszbm5xp=9on{LIhyQ}}H%4*sN#h>O%&b%WDXtUobWQA|f-uo(qwmT*eihM8_51sXJ z@H&6ub&osA;-03XyO)mcypc|>@F-_zZzR)wEza@d4{UZ<|DuR3#r9*0`MbpX3;h~- z0g0nWk|e~k5*d&VI>z#Ne3S^Dg*qFX9IbG4BMGg_P0axJfRQKx6<{`E4h855(20#5 zShcF6XvyYTtjZ%{)X0<7AH4P9r>PTn7Ytti|G0Y-_^68PU;Ng+x3}z_&c1iHPJo0! zR
NkT}%P6C7^2!sH#?;s-kz9Y=2ptuaKpor+`sH3>e;%~-L$7OUJ$Ni`CMn^|6 z>6`aGb?@!&Y!IB^d!P6JI}^IQ>Q>#VQ>RXyI%{^u+GYE2q3AsO^EWS^ed>euEinn< zfzij$;(l*o{>uOQVD2*~8b(x}oKQa~IHa}|u+h$SU@7M_kfauz51GfpKU}}l4gnVq zIJRKe+|(-6#!bSY0ip9)3%`hU*7g)+6xc`@uNrJ|)N_ruy|l|cA(tIZIAnS@H4Fb`m=&V{;* zQQ%?T9;3*;WJm}XYx;i@(kS7Ok-)-9X*Ygw>79=z-#q~A+$VRvX*7*d>J2Y+{3scb zLCLr7%#9siOP0A0Hgq)OeYEErfM;QXU4SQOG&33D$b@W}h!7_u;v$6uK*U-K%g%ub z{>^0Kh=2_g5sq|-_6WO;g02TyAg>S4RxyB%KImeIKMpm)O4B1{X*m7%A3pi7>5oCq z!pfDW&zu%3_AQxu>y}+x#M?>0qDx#p-o88Zlzh=GZUHP+{=XW0n#%w03<5}dDc`-* zyS&)_{GLm_m+vK6j=LYv^ZQ5@=q@jH_p|?hd6z%tE1&f}qP6K-r>{?{ ziPooUoxVn?CR(GebvoQrO|IWCR-fM!(tG*duX-=v zx6r$s=Bf6xztp>&a7rzID8aj&)>bV)tCg#FVj91CC*BFe3|jB*<+~sCE~oLU&+qxV z_wv2J>Aid(ogeQ0Y5ZzG`$_%oE~hn8%MWxZr}a_G4;sCnr}?Vo54pU{X})Ut*)HX@ zmTLJ4?{Ya;D~C;3Cjj9dkKPaV1fJJwd#%5@*Loek*c<4!XM0aQ!MSI>4sYxc!23$| z1otb|6a0JD>+6910(keV*VhAkrq_CXU9fMkEP&@7F`gJeg z4I>^}54D`&p+3Lojo!=mKGb{pz6|ejnz!1|{!Z_5ny*@ZK=Cf8d8*|Hzwj<6{8P&x zqGR1XPQn|t{A`zUf`?juqDwi^aJBqV?{ZGV)$)r}4$-^{hp)gRaOs1v*=ZxLHkBD= z2hMB~ii1V3K9>mYob(X530g!mF5|dwActZTRHxu6AR&OOl_}i>v9X=k<54(6we|W8 zQfXR)4D!JA2i6mFLZ$k5;~8 ze;({~4$demQ;y=FjI6SUI93=@Z|Wnl&y{#Ix28NLF)Lzz;{2-o zvCfp--1#+1!QiqoLRPjoqqH;wn5*2`V`+khWDU;DtC*EFq(1j<<)xC0!6hYwGfMPN z`EVs9HwJ4x)+OZjdX5qipr2CC2RAsw~*c~AM?-}hd=uiCquXrS89 z{y6V)qG@V5ky20pMAOvrvsyXV#Tse+#VEn}$EweFFW;^4+p4~Ro_DIxYxC`1uFqF3 zr+KN*>+|hiuFto7xjtXDoaU?cqt90@Cz`L8ABe@U08h1?Xuev0P_^aM$_YMdxeg!o zd4i8xuER$yCz`L8(^2N>pJ={X{-}33r}=6*Ej!VCwI7}4XA5hbzC`nxH?2?TO6z?n zWeO+sT-e0j_T#(>ea{CFTq!1o=zL6eOf~{6Ig%5-DZTGiD1BcFPj=z+3K-3BdJjsj z93^s&{Uq+~rU>nW-YYZv(2xGV1eYsNds`ohV6k(a^6!eh8Z_7|bROcz*FB)p8_Dkz zC|>xY)Bh2|U!8s)`Y&p9e{c`#?M?RseMODvn_ED~)6F{3AJU^)SEAobL+7==3gmv^ zpg}6ZA2ednh?1g${G6e^ll-7-B>CZeEytg7Yepo4@GnSQ0K#8}2r*p=Ke!ZN?e6Z& za}~1x%RZ2o(*ae#N%U|e*3CozyO-` zqK9g^P7l>`qK9g^P7l>`qK9g^P7l>`qK9g^P7l>`qK9g^P7leShVmV%<+w!%n^gEv zIhRY&^SFcIU#+&+`kQ;L*Wrsh7|xrX?LGAb=brUCym1G^d3&XLg8P-~3I09n^>x4< z4CipqdVM``2gCW)vtC~p+`({8^{m(7jXPLZ_^{o|4k@kkJjpuBZ&58J@kL~m0e{arpM2+s;mycF%% z;UHUWXo0^qW%5lyj6&GcS$W(l$mS9F#3-8D$Y6r23k%dVrcG!%OsLHqgp7{x{Eo3F z`&f|uiloZqny(r)L%&0*K%q!Lh6Tu>=?5c=RQ@YZUOn~jBhy`%*=O}$bYK;QRUU+v}Du7_qmB?OJ+#n#0gyuiHMSVSROg->5w-iaq_- z%IlQ!>s`L=veG_p=^(|F(gvvL{>V|75we=#1Qz1sf)Eh|QJA4`;DTo`*LW0GAq|k* zO0aMirSVJ%3HJAewwnxcj9!k(hz*GesK%kHSF)xh5q0O}(M5$Ly1FJ`9$j2K+OT?L z`O^Hs!R=34M`tYacqh9GZ+~}$w7&cu08)ZRM2{5^h`Rx_Qy3uxx&{GR&ydFfY0p}H zEj~~WGSgK4#l&-gnOI#=ke^?WEeKJ~`~v*~gDKRUHOS8xJCITA3+;d8#7=P&#E&RN zr1BYMtYi_&l$BEIN(xOR?sqMNJN_?SOXbS;$LS9+`~}7YpFG&M1`-TmZU|K%vZBD! z3le8Ug@=8(VJclHgeEdZ8{!dAF=sAp4ugkYX^pczgmlbuH$2{!GbG}qLjx(2L;Md zCBR;R@}MEx0`5l`39d(wgfqibGC_tRh=J9GgoK2Lga;=jV(w-mMVNxfI|-4+>_cTn z@p*xX28;?gNt!PCx?Nu!ax$fXz4gGQ_s~a%+T_N ztJ5Hkkj3_ka+UJ8DJv3{*u*s$F2*}uxktVO{^emp0&LSWC~L{U0m(`6aZ!=T3jtX@ z%poyqDB%$eg4B{0`CBBU3Vgz*vK2p5tNk&rsTVC0_slt{~zNy-|oK&7xDERmxl z#?OMhGw-;FPgif86+^BK&OrHj@Dc?7l_|5hEDV0TDzfa9}lW4GCwdwj2ioWeOJS z-~agI_v!D(!%6J!vY#g_jb*Dg9Y)-NgUWr%y~+XPKAy^^uq8W`e<`niyajPpT)+Nw zbH~|w7C^Ymgr@-;U%m4rCKC%NP6>8>GoAv;$G-@Nf&f+qOXR>5#80wY z4UQD#obv7Xm`zkJRk5ER*|lqzocQb-r9BP(!Z1R52Xl`mt#4!mU=9N)0y*KlHgOf! z;xO`-2@CN{y<&ITJCXg!m0orNJ)uRVM1D}Jw7gm@~jIPEW_j;AjEcVM;>ys(6p}HwaI(P zk(-}x9kZ@#{DFowe?G9{qq?OCO*1u?2J@eL?lXlbx z80!wtU;WIY`sNv_~S}8~p;W5D$O^{iUa%Eag78p7rOe7h#0hJK}&?YT@ z+U?52tZtq3P*KOv*bcn!=VXTk9N`&YB+xJ*q?#%WB-tQs!XtDzwBb$0CPef$77$X4 zq?In??~fPagHw`W0Bp8^9wUqo&mySV;{tFh+_;!1$tt}X>H45-Y3Z3iEdS&F4bP98 zxBj7>C(4(ODw$b~;0oK7T6@%oukLjg4VKl0C)|>j<^^`(po5pip(C zxe{75@j-K^Hk~ZnUD-CNuS%2Nnvkf~A zZ`rclusYqbtWbHqV^)3Bvqw(6v*I2$`1c>NagVz;Eu8xKJ5StkFL8uSc)s&1=^Mb? zD8xFWj96Ya7DFb5jmnHs{6x_b0n-D9jTp*)f14QTS|<&*Wyz24y$O$j_G|$xG60Jh zShM7jT~emqim?3Z=H{5qDG!}L@ZYE%I4C1sw!kw0q*=A%!5m3Q$9=jeXINO6fdWP8 zTah?An94#kkHwR|+pv7c?JHhCbmR|DAY`1LQE94E6kcz zdcwVrWZ0P}ljVpuxjZek22RHWam3#~nEZ(H#jhRDFt*dD_~g9h56@lmo1@!SHSQ~s zw(nB@X;`WJL2><2`QW*&xtnqizjtTV^tKmvANftIl6P`{^TdC>+?D2s3rUnq!_2fC zn>cbn^Rb*lyqo4Hu-eE7qWbZ%5lN9rHmhH_f4EBf)u`oNX+MvONt@40lI=MIHXS*# z>88VnHV><=9+qES-Nzw-tQB9g05+5jVFAj>v3dD5HTiiYC=|WUt8lWT^c+%M228{C z9w?>F?0!h;1MM-mehdmjfy_@oJ1eBGyzVXDXKFZXES=7hE?}iFRRB1WZUGxOmb)Qr zkB@LfI=lydB?v=Tpzm~UiPB>to0A+tL5`$kM_{0%ACr2sOoig=C6T6c-y2&i5;*I#vQUDBv31b0SmL#Dt(oYowa! zT3rNg)J4e6nMUqB0IM$I7hvS5TC$7vNB_EU;|E97e*4_v*^z{Pe+Gbj2Ux_=PLGOo^A5x| z5I0Q}oS$w;Z9o>ioO7UHP40-)8s|_dd+`m$n}5}sxZ$m?dDnltjogHLQcxNG%;8)wxIxo%Zu{j|9YFqRuS!==ArECa|hI?VyT0alSR zr85BEK${tEH=OrX83?dU{ANkGCn9PjqGrd(#zeu{$sew011Kv8!d?+-dB|*c&cSQU z>02J2c68C!GfVz>Xx;C|ww3L#KXClS&iNr@mYvwNV(R8m^^=~I*UdaJb>*puz`IVZ zczog1=`9t`n>TJ#_NYU=hfB#{Cpk*#@#5bMy; z%{fp~$!?s(4KKfZ8*`mxNB4nqcsNw7P!4QS-ePI1q=$<-jd8Lnd>2k*un+G=xZclOF#Oz`D_+~X z<>}hil6_6vZau!ZZ2Hh0^4#r8TWrK%U)uJYW%adlhnJl`aq0%J54YeYKY@P$S=9Ik zB=qT(e^8hE|2F?{u`^Wq956Q$PY=!k`~$WPxitV2yd9!3Yq&s%NGAA&hQj#Qo-2K> z`2CFi-L*!ZdsBN>j(m7ezjz6LKyY3Hsc1MaVfvrpCFU=?3NO)mw8)#6$UD4z=8pOS z)wgW9A}IEjI^A7n(`cXE7eWH=Hc+iA^2P((cgyRPHx;WZQT0&e5GpNvATxOetiau0~w&B^IK`BxL-8N73y#CHEE||A$}7-=zVUGZW$h! zph-9qk?$JOi}mc@o^!*VKqrSPx{nMGinqqA=ZBUfg`BavpC7cl=rRLK9im$}UBDKK z^+!ISV?_OT^3fSHj!x$PHsn`T<>ysa%IkJ0?N8D%vWpp?)Q^!nU#zcx;jX(bO;LVb zm76zaOkOVBG`!9}%)yz~=Yi)v;42(>?g95X$g2#F&S(8Ru0ZA=kKFYCD!fg3{egE$ zMn*|-M#fd9beL^?@a(2dXCK^%xoJ5qk(X!5|6g#3C1IcJ5%+_CiWXk1KIa2_2pf() zToO3nq|+vtN|2F7k1DV!s0!+>O3i;p1{Qs^3h%8-Z57#D6}_uxUue+4|9gx=-Zgj5u2IJ)R*ji7VQkezRzB^-j2S1U&A55mw3}zF zXr8-h-qKdAF=LQ{Np^8F=skR8aSgbWIN)qXGb&pQucn^ z?0a1s(FZJ_q;-ICINc|0!B9V#aiow;2b&lvs(E*K4!tEitReawxDbcjJyTUX5X?nt z9e(r%Hpl9E^VEaoCBud^XUtjm(55}?iL#cKvbAk3OKJyY30It>&M2iIv! z0mG7vi#*&nWTZS1B{H0$<&Nov8&hRCxC3bG-uE*YvxWeDKcn_Tn9%n#YCnV$eLti2 zL%7lRGt|!&s?mjtElvbJPfUnKka^N!5QsD$)6HUnVE5!OHH#dvZS5Xs-Q>x493FqF zbjILCg|$_cqZ)Xn1lmhrhG`~%7>r!CEOj!k#u3>Z3SQtF`kg!PtF}UiZ9^!D-N7Y^l zGp_omhj?7|QBF**`jnfvIDL?mI5;smk@B~u=pmc4hvxEZP*B*I?4fzILD$}W!?>fx z(|-RyL`ov(%LaA<^>0_mQ^>#&&LX8 zWWHoEh%BV9P7G)S#hu1-7_oUtSO^IvIDC=v0jfl~?`Lq&(>Lc;`r(_i&u7$r_~z{M z8Ff5-bN2ZR_2cY&xadOLoPp6%32{-$(L~biCZg$}fn5cOs_z)0nkTwNiBe#B{RQ)& zwlSrPM%8VpJ9$Ud(Io{dv)^fM3LZUiR8=|q-u{9kV?aYi<-B3f9jL!~dUTxf^@QxH z!v`0DL_=oX`L(o^)A~ebJna!pe#qH>+7H-`2!{kAqRA~p6w~*yd}X0HG_a6;uo`~3 zxDQ5SU5{~kp9H!2ADtFQbf79j{Qvd=n>JuTnszv;w{VrGRl`>S`61}^mUB8F2J z@(IP0r$2D`=6fdBlsHeW+j?A?Q9V7cpuDQ0oMo+QUUT=j2KL#AGGkPA+4SqLpIQJZ z?Woc*&9kcPDOPKeJ<^e)JU1}inp{4SOy03?Qaits4gkJ3=s0mJ4+l}gv5cripy^du zAv&g^gNIYA*nkg659yXVJ~RZxJ}xvaCB=aCOMyQ)7iemT1iEjqL1|5gEqDdC_`xSq zv#%RD`}m~Y;+WJaoV=cq|FtzmW3qElzht(={EWYgo1#IPBWp+CzTlAS^K zjwEH7w1@d2Ic$I+AYF&$VFA%#H|oCG?0~XSvSWxQIZ&@>-t{@CU&q@A^;+*h|2uiT zwb%L-wBN;WHI;*Vt-RQQP>sqhm&^1x60K(ZTVsqhm&pnCSW_<_4V2leX= zi%<{v^-}K;U&lR=>H)uA>Qm5umths^0l!}A^U;1Se?Q>YOMRNVf51j6JceGcl^@%98i-o8t{1O4yh^#s43^(kn-%Ru-~@atKhkM?W% z`w4zM>(ku*6a08R;O7}%nb;~VM2Mbp$rE+F5Te3hD7J!l@vL*6C!z^%0K7zvuTOQ(|=w1M} z-V+3)z;idSP$m<8H=y2F8owVX=gQ>F67d7=o}e7$z2p4o`~mXeC$#<(g$WNEXODDN z=x>ROg>8gP@uHxb6O6FofZkF-`YI^vR12M{AcayBsGtN%q&+@5k|N6RONt2tdDtk7 zw0Q<&qbLjDUUIu$G!z=*GUX+jcbfC)M(xfqqO@RW^Psuw&fd7E+rX8oUalaR%NL#B z$}eei8OpXgWAu4s!Dec(8T=?xZ5X4YAQCcY9I3+s(hX+V)P_MDWTOER8TIfLpdgiH zsRf)dG>;nl)33*e@yF?&+ONme-iayd*W+sM#2@wRakY11mHPEK_1?cH(XqxrMfv&i z?6RpOM~?{e9qKofV}K7Zz-#qY*ADk#-sgSipDM<_Na*n5+TCTnUVYZ*(beZzH^lhx ziWec`mpUKn{MH~E7I90N5$u99J~|2+G1Ob~aAuL62>oD5WG3^Vfxs7|h9;S43rQVo z^})XuvuuHr2hhe0v;qDTjzCij$NUy>%w@=hq%zCb(rOrQMM!fkt<-lB?p#YN^<9KQ z*V0OT7h%%1w4!%iQvjPvn9|~5`FS~6ndy$05wRmkVBxDOz_XutKK@nS@}7YMUK{^)7=$z)iD)dc(i7Bh@@%yJuaf@(01F2*}At%b^bpkWGwL+XD1YsY%42_V zLUQOnqavA)WhgWHBr$_2kwmQ836+E6$Y3!oqk{_Z%?M>IK4wcR*hZtt$LM`dX?eoR zcw%}Iw&hY=qsg$T|BZ+7#&lf$gvRQd36Fk4WA)91PCucs`ewqapU{}z{8QTDr5cU} z8^`nj_=0EO-#^Wq?FO_bk+mEF;nT)WX zG@=7_do(y9tQs|9xU;OZq`0tv_`aTJJ}h(kr8S}R{z^N@_bNQzE~4Yx`=I0f;sbi_ zD&n7>z`pw4unM}EVAv^t<4mA)KNwmVF$lXU9lI$CyD1X8$*3x6R55O@wxu9q^mnUl zV6z2fcaPoWfvd(D>nDuHW#E)K7r zyG0u3#j7g`oEPm42W24yICzW3k0uL)*=7$%nhake7~PAA3XB~Dwm_GYKJdyY1mcO(ssnJsgFjKaYEOh<-ip;Trn&xQ9>Z*W(_}pkI%3UZ7u3dQShS)D#3K zOHUb`I+#LCBJRKEy5@aV>yP@0#i;D&eMF{al-ECIa;u_F-R@RJSu3E58qtmGRCZiR zGllD&;1B$`6ZjEDIuBulnCeU*ZEjpFlD%?$ZUHm-#Nh6d#C**~AX_F4OG4pJ;u+^0g`F7P39lRpS8@Sx~6^$My3YkIy%XS9qcl4pDQ2}P4E5!gH6P7rL>v3O}+aL~i zU&b{(xq4}(E7g^r@?5^J^pxkaeWj;7m+LD%<+)5>=_!7BzS0Ap%QEyW`MDVb?eU?= z;e=~43H!Z7y?F`c2 zR=V}K-O1USeyVc~ogaa&y{g@5MhJC61M6_c_HwV8SWz@M-C!~6hhG+5Kwx>=CYW%6 zF=-bV5Vo!t7|5udc0~`aZgFTw6POA7naS z7mL1@!m|MSg#uBK>!;L?EqCVSbiGRWs$OH)a+SCSjAp5-WbyRjaks-{3zEgEii*ad zk;Nm(WUFT6&4&rsi*#FsDTM3mwrRLN!pl~nKNk(9zZ(G39Yg20*aN@R&h|W^To}v# z?2PDox{of*OpGzWBVVIuiSVTZ>)-z zbR#e?PTwE9T^*JCJe&KAzJ|{4fV)pZ$40tv^_)&|B9=XbOcsiQuAkJp zJzK1PQj=Jd5{!Y{>~T{UB@!ccJ+5@u{N3y1#Cy7oqn*g z5@bJe`Ovv87~#U~0D^t8l%|N)B+%BK2Q^yL_cL7#hp*TVQI4ziLj> zaJY|ZkKu3tW*a3$!Luqk*hKDK;qKM*)}QC*!z*Yhdw0{)u13OtP!5Uvm;cHzWu&)d z@coO(XT@!M1)mkwcC3qSl|%Jmf$a+F#rHMaq4(XkJs#T}s$Zqmdu(6sW$lthnl2dS z)gsxdol#CmK9YjpZ7}9xY@yOFwHh}P_jn!=9T214#K_xSYHd>%vBPc3;~yqTTh~e3 zk~^-W_EmU(B%ZI3r+E2#h#lv|bZMOUB(}Oq7~pikni*U<{HJKkgG(n9`Z`(0t=1$% znt{h8s}ZhLHuz+dU-ne-^5tgnvY37t|DjDs6?<8FLbBuL3tMTJFH<-ZDE<*(1?L<> zsle+E+@K`3f|QW0pFtR(lw?mzN;aCX(U49fDUm{gP_&&~dnweQJd=Vnd`;}6_4T7$ zCyg6C*jZRr(6LdvuBf`SrnI_k!r08x78no=TUl3JR}!Bdf0)Im#o_BL0Jft+`AV!Z z?m^6w0pu?a`vU`9s!bG~v@dHMSlz=M$Kikv(E!JQ^fZb;8fpthLKz{IrTUP+8zv9S zL+uEltVvWrA?PUvP%ilr*^n-Q0@EnpiRrFCFPhCJwYE)|eLekHa%V%@O*?knlqS}n zmM$GP?%C{|q0HF0!Dd^zO=)f{-;%py1KTvRX~_1hnIqZ04L4=|Fw1mO5M4VvBgIPS zcTI@4frt}`or6h$wMNz;xDu+SL^2H1F?ut?GMRnN6mG&Km=G4h48K%^6~n|I1d4c}P>2*5=+hM7C;IrrApE^3!hTo~xDYSVo0yVu?h(1fm2zaI6w$>fw%xX!fAq`mUbfr>Ie?<^YPl1KHR|(o(9;L z%xl=*Q;Zc`lRh5*)@1WeK0d z%=W+VIY_Q*)Lr0l7}AhurOG*){Fx~V14Q#M?}h#eX1yj%D!#^IFeC4P+(I)-kZT8| z$03&t>{D_EC^;YSHW+<(3Ux|M1Mp zg$t_gt(ZT*a_5|in@iVBeccsTSW{D2P*Wq#DXgt6EEqf1u)2ORX%IH`eAC)YTQ_*Xp0Zk)J6)6Mw`y`U}XjsQMMFbh1IElQ3gubqH%^ z68xFJ#nI*f@G*qy8y1 zj+i-f#E9l**RtWw&BI4FH35%*k8upaI2`h9y%tSz5^F8V5j|A2A>%Fd#5jF2Nj1?gI6PLez0za@eR(1 zm>54l6*A-vMIp&-$%#H7?p6~K=i)w0$3dgd8b;E|$)C?O|#}3yFqq1Q&%L;013x?Iz4eR!aL5l2;*iVS0 zg%Je`gPiHK>`fGvtDuI%N;8>7&;>yac#a3bb&+ARlq9JDQfZ&~u=RLI3sJXWAZjfg zbEI3^kGcsL!9ziABK8&D<&YO@=hH%M&l-Ms1LIiF$Dy7*1BDvr7?q^?g4tv&swTkf zZ}czLIg8|16g-C@3CkE#o95vA2Y_r(Bj-x<2jxbz1{`w-<-lY5T1x&?Y#y|2| zja+|!Qk$8)t;-ay4kkyZOBQ=O6#H$ME>&ulE>#emMveipGTg`w&|+ zT=^3|`J{li%1ZG)>0?gk#;f7}L-}q;A|dQ{Y<3FARYEpoDizSmvHz#))sl!Y+x$QU z)NqP@Pyt(#O`JjpF%bKvsOKZ3k82C^>+13gYL(=Uh0;;lN5XmVPJh$*4n!g9jq9Lf z!lgCf=)rS9Uj}6&F&tf44Nt7IURaGT+ihxZ>_zo8FcpLwlB)&#?uP#Z{1So}fROew ziM}>qdvEiR=4<=U6?qLab8kP~AAXB#OaG@CMGf1!K!9W>tZiys>`ljFD4j1P)s}pB0Q7UfDFd8;7}hdU&sF zrXY799s~T9D4tn@kSt`;%?mh<407P4VPMD%o5*}#GQx)07g-^}P{0M4;7AGm07ih1 zN6t<#*QTb}?Xkf0K?72yHaFn9ux8S@`IAQDOl7}-Y{n!_his=2WGGmZ z-2|($9q@K@*b`EQ@-(iv9vcM_Cobh%v}U5>kWBBuNfiN>Jm=9&mkmfj!F36VKCrxpSy=hjAhw`w0Qg zOY-i{X_%WC{)gwXFl4M@v+ImB&SVxGhFdx(qRwQvMR*XObgs+?Q$HGf5#3{On+-5} zq#n4YSPE(agZw4zwI)9w(QGc_;tmLwu?HdJK&zf&4lC&syu=(yxk#IbKV8IuAeDCM zn3s6to7t0Fx{EVFdxt8YNt2BSA-BmCh6)p%;}BKVJO=7_Rt4b< zKEatA1b*p?;`0FEZ9?WolPLz-nt5D{w6vkfE0UI(mN_6@mD;GX8ml$JO5&Q3V8rcB z6&+yhxXh;OWbApt$cihaNOtVGe3}@$x9RBv_4ogy(Dkt{z3DPNcCp~=v-Jz_n4jx< zw1|CS3+$N3rz<}7N9B({Zk(})B|oJLa=d5#JR7usM)MQD`**%FYT^2&*J&~xg2C6) z4&x5YzgTbztDP$>%o@zbhB3HN`UVPZFdej-gRN~LK}b)7%_5tnR%|uMEas@)BFtCCTmW4+ut}+Tc?>|~@WmMhd?PDrbfC8S72hMTJ1Lrtr!4TQs?C0Ma9OS_$gkNQW0fE=ibshr2P%9nj z-7qU50k;O&^(7=FBqiFhyLuN2h7k*E?E}4Z8Kz{na^za#I@LQoMD`uTgHzgnC=zQs z1P+T&#lqfZEsiDmr@WfxtIk>O04;aj@gfQc&KMXN&?E!|xTT@d&H_-!z~F$u)_!-Q2~r!JsVd+AH5}o65E+uCN>?B< zDRy|X(|*L~#6D>a`R?~Gun@HP)MK698ob%WQ`RgX7&w_ftn;m zX=G2jzAtZTDjzj-rV1DFb$-`YrRt5&X+dU@;@?X)QEIh@1bR~(fRZ)Asf(`Qg3Ts3 z1tTCl(I8pYMe1_A+{^C4q02?;Nw(~(oi_~6h%+v(x!Cb`pUB`+4<0%9uc?1UK=9ql zU@xJ17d)VS)3F2>Q#ymRdsz{p?p6y=Ri6vR&MCoaGa-O&vU=~Jz(5PlllD(=XprYn zjj0J^Hk;TKf&+_G3DM3`y|q_&9=4i)i{S4c-@OmMeRxkH$N~|P5K`OV95mc12o z0@Du2AV1OTe8j~jT7qb;%Z^r4UVx_vBDTu_*-bC(7OBqgmx4Ow6~mUx?@s6Hu`UeO z?GFP3l@^XtZygbzrZceH=G~0n7@zq4X62Z4FZjoyLY^?yISJyO05&!=Lo|&E^b=)& zNJ?=(YsFr~|F5G9dsI!3FC>G;CLaU{Fyh?f`xQQ?*|6W&j;rV>or4_3IY?u0FgQp@ z_!TAuPDn&n?_kbM@*Q=ramQDOt6{b9@0h;kINH2#-Lp$YasB6~>lfbEn*V(;pR@SX zd&=#~-`7rp^r83JyWUuYgx_QT_!065gl*+arLqAKft6P0P`Ltk33rT%a9DwSy;G{+ z{%W!D<8r!hbTr_;@ixD2>~8-j78!S_-C4M8F!i=U>)vq_`VsLA+zHiK6$oq|ZsHM1 znae``T_+n|mg(Yi9hJQ2-@3LuprmYIkBZgwj##|o@7g;aMUO^#_pNkK`y@?z3KSQQ7+uQZCPvi|xkhj;>P|2sZ39B>*jN(7{}+q5 zKIXdLb>9W?R!XBHzuaDc4!Xeu_XXtU$!Dgv?Na?tqqY2UbTN%pdmpQi4?w}+;uM}0 z)H|}FMZY5pPbo7Ib2t_+?lt~v9SN0JJ{O?E+O6feumAT*jSte_jPcy0w>1jNW}VHf2(!)nMeZo|@+t82u{ z^*epX6Ktz=QJTl$o8`>lS{ zc!U1#CbJR9L`jEs(XB(9rfSfl1refKc*FOqIJ2W6S2TG&WiZGMluuUImm!Ccm!8bj zO;2XPxC~z0p+`q1UX+E)Rl1JMtsnd0@ZpCw^%!XVv$z*IaW5j>J>UZs4&cJXRsxWq zio7WdnI!aPLBo)@i2fw!14HXesy zf50)|8MFch5n&DRfe>@Z{UjR1@i?1FF_*-jpeh7vnMzG4ST16O(!=C7Vvy^ioylAa zqIZP{5$6hzA;hKEV>o%Ef{>n35Y$XeUiv7DZg1ed&LlE~c2P;t*4psf_6H?0Eb!Yi zuWi>Jh_%-8^=9me&OzeG(j>tOdgyPU*gcea0qKA!#1{kzqF9wMDt|`F%-r0WB{T9z zC9tx#6FVp6)g3>-ZvFY=U75onH!X$d|M|Mz$t&uRW;l zv;n{me}sYp`bs1m3iJ(-U?m0rcLYN)n!0MNv%DXs5gRGt7~)SD8@e{-8J~?N=&jR| zlM@msqnFCTsR979V)117f*w1l$Nq%%Pi}T-7u_~~^RkQj?o@KmOUur8{HyD4_ns{z z(=_Ffwr%sdp&DR;Tm+XuCTQ={`9biQ?F2m&0}TEWHjRWWW(=|fO7Q+i1PNLfKgh>$ z&u3az;soE?&=8uFnX5y!#K7*1WdZ(XZh+;b6b;stqD-HI_UWC;n(K63-`_87zP~+< z{&gMhqWyGj=kwW0|E_W~_ZXju^}V9pQkD0)<(6*21P-mfL<*c+^AahLHj)1Nlv^qv zv5XSsX14y?WtZysX-)c&yZ+?ygLBqIm0iaVOE}^{j}@``$`)OS)MExL4k;XZSd?|+ zpTR4ta^wHA}~vAIRE~R9ki&kMs72l#$G^la<|SL+k>mAL3E&aCJLp6)r6v% zqDz7q21r#^`R}*0Xk|D1{XW+{;=^prW@wS$J^aOCF?~4N^8PQO|DULn_kNMClkfgQ z<$ZR8lCf88a#efYtwdl97=8ujNALF~D_8KqP{&K8KjAlAFZ)TdXd!C=9@&|Aeb3vZ z+c$T4g)w-z+B^1MdolF=>v;d17Y+3Fk)$z52L_$TRbZ%QI8tFqUiU7)9W2Imi}=*u zj>n}_0OTv%@n+AAE`K=!Z`R(a%_*ERuX(-mYPJsHm|+iF2YR_a+ujGE{8e1wD%~U1 zbj;{J9u*Q|$2K>dxou0JBnkwEtHavl^>#4*;fXYBuNSs|xr2j2hq~)S6%2%1bm#6& z1EBkLjy5aDjvV1QiFTLz-|j7~oiMw~i!r(KJ4Nvo!&i`;K|%=IW1u6#)QDLT;a2c%1^GjQz&%5QE|gi!lF4WsYfs?z zEv726ErWG4q7PH3L1;O&lN;9&vM7oXp%hMq^dvQzj9g3(8&nO*CIS`-a;$I!hV}Xd zlM$XuhZr$PNgYsOAUdr6>wzN|5}gUH7aeP2Z+L9^z=@6#&XvRTpVhm{?%e;-fN_qw zM;vS77TmQocUI=`%57!(&nd@8D)Hh5YiLVlAxySIg1&N;&Z4j53R1+9Sl7|;_%)UJ zMK?{04*gEa*sK*G#|cSk}yOUb>rh zJ^oX01Y=l&!ENh9nLO$2N)i@2+XDPWc?{TTp(@zdY60WzV>aSa3f+B3pv@oo7Da5~ zsrq+OfbBG{4Wdw&kU&}K-L>X6U z2m^lv!2;+q{`Aicu6LEEF|kir$v!1dw1ccD?|-HIYOiZ`M}^<~j*51(`pJ-6_d_@3 zrd`c8=(APl3!7D87w(iNK}(UT%o(pyQJAHYxgTABfp17TOU86O1hLl*>nfJ1uI`qp zT%YR_Zj(iM2XwWURUNhAGS^Z6UARqJXgJTyxsKX!S=CV+F88XVew*v4zr>v*LdbOv zMbtO9mReJ)3n4(4v7rpcz8-cQ2*m0ltQ1HZVnqqr)?k_ip#gKGq~xb)n(N<(+#SMh zpR9~wk4;vZ@k5z4gJQ#d+5^-55MZIz9#vJ zP1j#zzJ2Jgxylpg;-jia%Zg5R*i1B9F?R4wT4MJ=+`P}ka4 zV+fX;7cD(C)fnIsbat%^yCdEaWSn|i$H*e_6I1qvRg2f>o7)#~-mP~hi_G4%fvg%H z7cPS`Dz_?iyL~t`9$YjEEO-gNGM{r_nJb+$GI=lavmigtLC4-@Nz`6XeTYArENy~Kil z!kx2CeBvr+tTy)wIZ;eIbcpWN+E|dw=VjWtfSHOGVau`^h3nYgDG4eJ&?C!~=^{G=zd2C07^jSy5$&<=IPoCuC zeMwv^ea>O>LRXkTE|7q_gS_s=?sa{`lEYxFe2%w!xktN~*xSId1z3X@ddeYO_lX~~ z*Hk$~FFt3lp#D2v4>?5ldcgX!W*ZXhk-4a*9F$5=6|{3xjnkj5U;im2=&;DpZ7{a7 zFgE2QFY!3x^>p-i(RdK*TjTivBgt@bGDY~+1yhP8k!T}`Un|(zt}os^73s{B7hrMsAA`Sb>{?l^E<{!QDUu zK;~3p3$7+2^usWfOSXo?=z?c{?ZfCIPxH%ikeNmAh81b%^c~x`??^YN!H%LYtBDP| zTh>MxN)QavG3FOwYmz9y-z^H98P7Nau^MN@xY$jQVSP$cNeSnoERBz|hFQacxML}0 zyn$&5EJL`Zh>?>$8Y9@Td>aj#rIXP|n(wA39>2+#Mz(|-g#^r5w`!h0HwrQCfH{Y< zdG5mPi{>g@F|4gIqf6P(x2*^cxnU#wdC6$vE7=mwhQma8ZL|}+i{BXb3dNwtHX?U1 zN`dTl7h9rQQfPi+cn1AdYqC$?A6T#6?}=UdgS37uAi`T`wy{zhGc9y^y5(A%@+8@tuefchmxIkv|-{llyNvzTGz!D3m#Z-bRAXO)LP?)N{!k(R&09|AE;k4f&QNfg#3P`40dHZeU;~46 z=CG<@cJ?y+mJL!~SNzx@B%QBwjYHC2k{`0u;>U*HX!66JzMik3{ySbz^1~kW*tf64 zrfUOe!dt?Znr!k*O*T0lbr*Tv+uiH1pWcHV)N-_Yr+Xdn_C4S&)xF!JZb_#B_CD39 z`%90yYScM--Fw~Z^fd&nf1krsTNnKPE3K&T7mXiDr2P%E_I~c~L?IFTJBDY|A)~6E z%!JM_fP0X7VHbiW$Bo-}Y;;H=;0}7{1iH9e(we1WtgnN2s*u0zf(xgVf5<_`?W&a{ zP8}`bOIM;4VT}mloNprBF+*W5Cu4^vi=50RXUjoH73I?6#g~|P^fBexZ+7kahB+TI zbZq`udF_D*mDfJGY0q)y$68)_g*7wZ<0@|6j`v#e-U|62-s6E4fK^#u|U|qwyx-yy|3rl6cpI%ZrEg<~v&Es>ImQI>f8dH#^{DLiposlTKs~na7 z#QTh<9TnxrF`oWGzx;O9gzGEyoD#-;&)n`Zyl=OY4FC20^pdiMz%Y6ddkEjB287YyM2*H2RoqSt%lSHq*)o4U-BFsuxdp*I;$luVvn601&zP9IUY zTUaDpnmSIW^}XeQ8qem?KuR+lDJM*C{Q-*{$xc zG{LpPA}ODbPxG(W#wO*@R_6ZkF_TJDgKvn zuO&#o63wn3=#R$tzwq*vC7jTw(>N>jD0ah;qw$#q0*0FPXJFhyWYaKB9&&qV^ z&xUs(VQF>-5-9-EFmY@M4CvrlMcXohP!rC@m=vtC$p(Nt>WavFHjGM1+KX&MUKMag zVgfm)lc~DdD8#dP&6@xgDkKsMg)}9}N@0c}Da*Cuz6uSc_+i!cWd%bU)2CK3DfAy@ zJFhPu)iCJHnR^WHM8~WTx7O62*xK>fZI3U`T4S%gak;c$>(QIe5X{)!QUlpyAUDGA z)Zfa#C0{{dfu`Td=j5r+YL*i6RP}rpE<#Ubk+b17lY`Y@!aJRxNq5O)2nl}E&ujv_ z69qabl0}Ek_o&_m^fa-@utz6naoLEt1>tI1W(RU*BNu?4Qik z_tJkAsvgYIL5%P$6O&(DT1 z3ZK>_cv@!D*u@u}4~=&MOmD}uyqxsn z0mX4Kp=n`Inn8LP5>DHU+l3lUp(c~v;m9TDBiQz1lZA&mbhad)3b`MeN!^r5i4IdP z{L~B}Ioxvz;SMOsi2mIK#y2!S9K9LBA@}FJPQF7oz6ei2HaC^WNHS^O)DDL@ZN}kA zQE@p_6lKcL_~^-pmGzDUQ^DNgR9jMNOjJ;q^j3IiP*ikEVsL8d+yZlg>(ThZgX5Dj zGMJQ@iRjT;S&sw_^c_9YCtdkl&R%1zJtD>@DtcgiWJp?~_`v?80k)`^^ynDBxCnc! zakrc|Zg+jw!mN48H{YB*4`1qck5kT6rzb2LkQx>il_2NYqOI}q)@WOvoDdZjmYO&> zA-&osBgsBwh#fE0KJO}yD+~xIj4OU?(v<9)#4!KpEPG^VY@oHa)*2Wa8fnjp2ntKA z$(}+ue1~wq94I5i8uo>+Fx*+n&00wMgB{(zD#7$*1>lamF-$OlbAtIm& z&FNDP>^LkfQvc)}Sg~wX9oTSH?e^Y4vh}n`W+KAeJjX|mcHqmfSf;7?FyVF!bga|u z1yujn9)s}H2BFKO_<+7u9+Vc5u+lRa@8R@59(NoOAAxKUOvQ)A+=LL3X0EVNSIJ`_ z(u+Ywpck;925}FNX#jh<>ljs-X`}49hPBRWH_UkK6~Z20P!5hi{0r=-FlHD~^>Y>Z z>S17HYpkP_4mlla6m^9`T8jUAgIj}hiZ|TcaWn!f@HZjc;$MJWuvYp7zv2J@LPy$PGRZ3y!{N+^vxwBdu)lw=2*10 zvT`k8AZjp(Lj<`zp~*QT9UhFhHz16WA;}~P#%Kf{VDKIav%%xpEShBGmNX#BKXP>A zu1R=gB4kv>LBZvZuEKEf1+!>a?4 z_Dl}2eMz}6!Eit);K21WkGN|nM{{jnFcNpBj*L59d3vbd`|tZ@o~%4sR?|Gb2%n+x zMwDdTUU_@mC`VTFx^>OX8#c&sZ_2TucU9hAI$`Fx!dokEAK>?wzxWNfz4BH(G;^Hu z_R70LW92uM*ETgbZ`|12ya`~ytp)cG=>%v|1XM0t9}9+og^7XzQB?1ApaJH&j1>Rd z5n`5-90*1P1tE0}G;sKA=C}262zW%#BDeXbt3TY}#Lb)u32~9hQOO>Eav_36_;@qg zfE9p5cXO552DNfC&f=7Y!&7fv@$9qB&px~Iwkd}ibRgtSI?%B8jP;&zue~~qmX_bXpW5RaHBRFn2|suBceGnz=QfC#0>0i zMA6uQ#4L2*HHtug73D{y4zvcDX^G*e??}yeFn$>)y2&pHbPHz=qr>5i`{FA0Kv=zx zWRaD(k{nYHH#8iYf+=J*q_8Y;(9oA3( zWkUUAR&I6Aj0t-& zursmIsOeTC*6)9H$^2V@1_AL<2Cwga?8@021mluDKk+DY3J2Gdb(y6?E&ppfzUDBK* z^JmRM^Z~r%50LYGfOok4jv!O0XFHWO3R=0|cfBqS;?KduMji*9l~D+H!ej`9Srsp! zH>mL>NC{F{HcMjJ;y||ML8bWD%B8c<$ftiiC1Dnj(*>~S50|dRS!I7fCC@FwjpC#<9}S!YT|T=V);X&vHqY__*%#1KF3E zJtzH=zsp~ES$o4Y%!=L`{IDSD9cynu$D&~Ctd@_!?`9}0;tyf zMr=bpp9=1OphqGpiV-|y4i7I1v=T}UwK>^LC@jb>%PGqkh`4f5p*9>mL)lOt9;z=+ z!a@O`GsXNQ_3X_J;tPhjp2Y41=R&JZER7>C*-diu@~x?2{w;6psEQf9ac$}JVNuL% zD_=P7`fbJk^~C5+lTw|IvK*g;Y4`1(_0gtg#Ey#GIcMbb(c=gD6&hAIo__tG>pPV5 zcNb4@NzQC2TK!*JnV~Z-!}ajOr33C_VfP=n{M7u)B}-P$acz3(*GHakPK-tN5P$>l zSO9t8dc#Uk;4GoSIT8kDB8!FYHY-?!dD&R*okPa!To6hz7kOe;J@^q524^@@!b3qy z{UPj3X31tXT%j)Pq$%4&ldKvba&XLO;tN1PV*vBT%!bnw=VV`BJ-==El2PKI^KtX< zTyg6Qji*oSY@2Z}TlK@d%_T)Q%z1FKVP)a88HEMQ>Py<3TU{SGrj)GtRqHJ;#v2pv zYHT<*-BsIiu%dGFxcRW{i^sgeF|X0W1YsuRyN$Uy*!Chz$J}O4hzka{A&o`QEI%K( zrTTK~d|WnKOaa(<@ii2-!5vhR360YyPaI!YRpBfhmOnHr$sUVHG1`IoC(1t0bsH+;$$d%@?p@_rXct?csH#lox^_qz7GfhT?D{@N=X z-<;PIq8@M$T<7$LF#AjgHTL;rrCx3T%?K1yok>P$D`eQafdX$Q41;P^cY;YqF}|IoWc<&;R!GyWU&0{KH=uS}yyC8E?4!voPs%w&47tB^MW}c=~$h zO6hIv+Zo6^%4j+nk>wCgvi(+3oeC>=U}Mt*r2&0PX5ybN0S2H+Qu z9IvyvRZ;^IPRd!yqS1hyuAp0-N8&d(is@u9(#-<~yAW9RxOvzUtU*l3&CVQ@mYPs# zFN_QiinqpFOhOHm&aZd6V)cCY29ZIdT6J(~cV6IHP>>zyr!B zXU?#w2OeNiXJ+sH$H9YN?%n(4!Gr(UyWinxPKa5*Z|jXI_Lk&f&pol>%oNb%M)tlu zUW3UXV8!(uDzj3U5q`JeoQ#suAR)e$;H%ze{g~{JTds_Ym<6#jEx1+yhrDmInHefz zaH+`2%u!>oBn+|-@&=DrmRk~v5_mY0^aKwv5#dP=u#wjAq)|OrY{P~Y9Uw)yj?ZUx-k1c#)>xqJ84;GabIt_2^{&b)Eh(! zgso;1k#gfy`ZP+=U`a-aEOQXZoa`#Y!mJi!>_AwcN-z>4see*f2q~76ut#A9j4j(1 zw+;qaqH)HS}-m;Q!6td&fm}rT^pi+%m(^hc+E_rO zE20h-R0I(VU>6NyH(*Otuwc+w5o;`|x|+l!CTh&4*G;cxvuT^nwokIjZZ>Tbm6^-; z{hWKJfN0!&KCj;&zZjU|)>EGIoTt8@+AQazVo64AhMFNBao!*vxzYKSn5C`TW~ol{ zhmS1?ej|509ZZ@cmg^OiNpuMVa*R1fqeg>=8oLg+TO4OEPux3w`re7-_s*EHcl_`r zONJLOTBLkDdixEv+eeSyF?Y_k(W|D8mF^PR_3W9a=byh)Kom4GXTWv z;IHJo0||fRZN*fIckefhz4$*yL_-1B^gQBGP9PqoSO${Svx1$DJw|a)uqqeJQ(ec@ z(vBSV2%c?IGC0nsQOR)FX=*ziEG6nl6;86-SnG@?ugckiYi{_C6T`#6|Qr-3* z-~)fFS85zjCq=K}$1+>tv`;dJGWJu=LAl>S*+<^k-gNMw^t~fcX}$E6VHo{52b^;D zGYq@jfN^PRW5 z^JQqX=5II2h!V%(XbAW;Mec@Pe(0d|XxCPDX`$%64edLF_9^gpmDzofFDb%J;BFmC zy}C$2A60+i7%e!gji=WIXcT$p5z`h*38I9b#z#!e^ln9$7GSDDd%2*!GCs$8&N8u{ z>x-48K8NB5q`7~;q0Ctz{;vH&`c3063J(DHvveVHhHSc5yc=UdM zsIW~#R852mOzJO0Twe}02dx+{B~=D^;IgdMWu%q@MpnQ{th>6d_vqJM{Swlu=}|=7 zXa^;fxc=j{Z*-I`z8ZBveytnsuISx)Y^OSHr}_*l+R2XXWTWsbQRt1hfSt-}@N6r2 zeR{-3$g)8Jb~GiTbI}iOGD%zy^#qnO*vUxrp~{E|NR?$y8lEm*M|5?y3#Tf5CnhH4`Yr>2V2&i!LuxZ}>;gLPY9%AQ^D)$^ym z+7cPQ?jPr0TqIWZJ*=!=|9+GDqw}Xe*>zKw9bWb3dgf?)fBo2rNX+6o z$j6tX0n>@gYpD7e=`G&ZPPW@JGLn-51EHp6WdMY)ch980$$bM80}}~S5XMDBOR<1J zH--esGbHmuI+v25$6{#$QxMkqT(h?uITZd9X=~fEtcIGl71_()`1oTVX7n+v`}7Y! zetztM!ajWp2lY;SLXA*XfA`wPS8n|7)s3&zM*;QYHq+E?cUL$^D>dykep~<0C_Xyn z_&vw(!T-nGZ`r<`^nN>gP2MQA!fFrza@Onzk#74zfyaK(Rl9#!_Ne(-hc~GEkq6L< zu|g;hA+1FcTV}$IAPkA8o=PwvLRx|W(ZV_QEmxeGYzM={6LaL-Ek7T>Jei{S|jSK9^e7p0fA(Xs|zWgLS1`Lk?ET9C+X$lJ^ea-;jEhFZ+e4<4s_BRcBU2F z_5)U_(+P9aNs)(6T;?U_GB`;dI>B?khYjh1{v4MLsnTOZ>UuX`&V*F)O?j)5kKIzo z-a(fEJStX;S+#1mnq8~pt3C~^OKlwCt1}(+`@t%IZ@JN&3ph*nazlD|9m=WU@-6tEi zK7>z_%`g0oebPhw+HVn`*sI>VUmA;L-1}q6frWkHBbt+Z%t<33OHcdUwm<2+|DvDI z%PX(?oNxZC=PbPHbH4qro>P0(=luKno&%fI67?-$Hr<7_l?^?_ZXcAJli3#)TTyt$ z1Xdgj4oSvKnlVjBjA928)hW^vg(1p~5#Z@oa9Hu#l{l&lr}LnM{xH z;KOxcz@NGCBCLv>q34^k%@H!gc82w+4j(_iY>Bu?8t;rrLjj?|=l(us%x&w(HoUlY zbLG~y8&=-AuIQm>D(+sh`6gymHw;@=yjA`&aOtGt+3D<7YEd@^w8+S&@_NSixmcl<>e zt9$?nAx=mIm(Lf9;DeqZOcmw`i-ZPYE&ALl+$P*9?6hyo%}Vc`6dy?z@qzGht-f(y zjU4QE$B_ejTeog%TD8EJ1NmF^RsTibSm+A_*A%2I9&QY%3^t5doI3F4g17q5w5Cr=9QLp}?!E2F6Vj7r zNT%M?vcjX`ERlz{FUc!H*0&TLo<048Pzb15Lz~4od&^Lk!z_{N8$(;{VHQ@QUS`qZ zHC6qGI{T?_8G1IgsGC%WQk2(wdNv;Psv*EQd~r&_nr#I)4@_M=Lh&=O7VFIZ^Bx|S zILR3`qj>n4x)sU?tKL=riI#r-?y6Pqvhbs~v#@tpjZ<5t(BLV@M+2|t_>`b9iOm?) zHo%r}vp9 zWZ?Q?qqh%9${qXI+?Jb?4e!r=Y;1H|$dK)CtF7Xgd#0Gf7z;B`xo3>Xa>ln6MlLCh zv<3CZC|we{hVL&dhP@`e!+Cb3+qYovW?yhKR`9?;H>V#`_X%EIduSw7FvGClJ z_zUy-KkoM=UEg~IW5+ukugae*ME9Ui|m662O?@AD+9UB08U7> zCiEaVJUoPO%?X8FOo5CFK}$~s3kyXq7?kmBmk&QYj63i(4}L0l;R6#}bKk>DXfP@% z;6?}Y)ZBelP8Ci*^{rGflVzu*s=d{ZaB!u93zVae2P~UBe!=+qrpEg53o0fr z3wZQV9I3#O#wI#ay(~b@WYhgC?N2;jROzqUXG}VCwsHpkpHZoP^#l&F>FPcHl|>qD zbzojz<@3_hJ;pWHniuGU;~>Axf-h5sDHn+NCW8!*LkUK$Q;J>~JXmlwP*5}fC02^Q z?ca(9wMD!r=c!rFgW^0EiGE+1t3Cj`J6;`LX5-K!k|QJ zMW+##VlbGh5SBu5m?lGcU?5Fqpe4|f11~qUUq7;{G76=JFE$$=*|a?;p|D?WE}?Hi zUaVFhbpEJ5h|i55uyG&Ul%K9XnV!!cR8O;UhV{-<&iBN=?0vPx`G%O|IQ><6et!B_ z6YnNDeU{K)8K(^8c2#)Y>D8Ju+f0RAAjr9h2(c3eSoQ;5PGm&I^Cplj1aTA)Tp>X~ zevto3Prv*j{g&=je^h^L0jL1|V*V}akIY{gnxEeOG@X`*rssdDe$N88sy}&M1_P3) zeyO+1SBMaL*;ApoxPrhJ^L?wFzV8)h6cek$OP_WHR*?OoN-kNf_Tzd?Ks9qN$9pk&L$`3@#Unc_U!;Ae?&a;eqp*}XL_OZw&OR_6!}f(C{a=C)KArarxzBcGxOrZMDwPO z1wyH^QU0F$mNMWIuN3BD7+Qq=!b$t_i6aK(rl-V(!}zdi?eax8Oe;0|`t98=hM1*N zq`6ppA`Ibj7z}a(YLXe@NR1AP3W!vIRpeI}jHC|V7yv~0n&$zJmxWXbAt7v*z(Ux# zEt_vzHLtF^s>q(%PjkAo?%ce8%l`FEt6FYqxp7I|%6Thi&8V7NJr}|8Bkh$%l>_qo z4apqR%a)K~&Cne(oT_8>&c_6_r>$9S#5+C*=wu( z!L}V-SH4&M4jC_xBJQIGZ+hCU$9=HJviV?$x3>sLFYE4ZJ!>=R)sRxW<9(+!kafqCZZqE~Tm?Uri zWOjD0%T>v*3eV2he3Gdkas?S^^ai$+@7!3Lhp#Lbzzj`v1SiD5@?&`$<#hLBKI`r=-UqekJf=Ta zJ^q=RM6b{erBTXn+Vjw0f60M?~HH@cV zve<8k$x>#sLNzy|qiDl|G-eRY44_I{;1%aCBt>NN{Q$Ir;xf5bc?+#NXRGs+IPtCg zbXKgMR-4oowpx5o`4o$CZhF3YOq?iI;qN>Y<{0ds(Bb-~jO;0Ipd*i;`tmJJ~nNDs&CLD3N=9+#-k3XbdrO(D+EIbsh>k6UaVAZx)SjsSAn<2o->$ zI;uvpFXazB@KYPrfE{Wu`*sKW0qfI|1OyHZgV>F4%!MABxcdR3$!2aL>%WMXJUDE2@qWd@cYnf-KBT*X4yV-Z0GhE74? z+&qd__j3Jo3B^HGVXgYtUTJ;Asm^05gX3A;TIc7=lYXCl|3xQ|+?@;5-=+77*&8`9 zLH*qVv8H72UiD2cuw2n`gJ6=Ye|^0&K*Z7NI{HYr^~zMyIT%3x4|ZRz?2KBjjyWra zouc_X>s2=`mNYO=k#tYaFWDLp=^1m40&04Lc&nJRqWg9^Z`a!8bI`>IexZe8fQLC? zVi9vvh8TuA#4r>qd4e8?a)}{sWB`thRB|b<%n6r=j6DkElti^^7>^l-S?-$|>iwkFq~8;L^aZU#Pw%y#u>`8n^2YvKOFO1*&*O zM@7K2<0InzNl@!}zycz35T)3HyCi`iRV4DlNENUKB}YY2y#z%4BR0OX-QE%ot41n}-}5_lpE{-+dwtQv-C6cQUSc23 z3Gk7}o-bXTh`tw~?*@3c?E)+&1q1T3(^8X@+-?ms#cN#KtC5RvyX*C8pyS;Pk?z`X zuD!Nv14aKjt{kZU&c}g~U>{#?@VuNI8c#@>uR0N9rTx%M&B#T9^6iesT&=S%Ew z>~l2%xR|qr$*>$E22NR`Jrgl)5!erp;@C)KsW?yYsG)HsDBvrfH>_G`(%S!?)=E$GZZX@U5v#21;Fm4 z+6Vl8=DuIA2;&Iv{2Whhm@A&xrB2L9_5x~l#IhhD&Rx-O$RsE9e2OY$vCOy6jb}d6 zWM=doS|l1w)j^`40ceWg%SOp}KBCl&hnzw9BCWLZd=o>sOh$U|o+(L5G|~tJp;)THK!c|79xRfhlnl)_gtX-6 z21?qLXo(>Sm3{=e6T&&9N;%R3%}AsQ!O(z^g*hLRA{4yI_)vrzbWaf~&?A^Yk~q*c;}F(F zP1N)*RORYzo@Bf!ZlX>e{l<>39eE|8^c_<^uT&=)NgAw8IeOwf@!FrWp_fh;%<>}4 z^Ay%YtA7_$FaZ0A3D$m?W6?~h)Yl}MN&@_0=s>t9k%H$E`N~VWoFz)}JYX`Yfr{+e zsFofn--1b;@9*mqNKqofWbK>4YRKlx1V)u&=!I!eGi8%FneGCenB;5TV^6=z+Fh7O-qR=H&CnCzS}V;5IWS^|>g-#o{NI(KoJ z9=ilIJ$6h^_85Gdw79%9n}4HY;)ImEoIw8`VV%e})jumYRU_NH;=F<}1KcEB?4ov! z=C$8M*P>%2bnBaye}l*R6Y>tlt;3VZ&7z`!tZL9c<_=ygAct2WR#Sl{tjJ2a$z<|3 z`G>$H8cch*1a*l)Tt&!_HN2N}cl%}afco88wt7E{l?~9j#T9C*Sl@mVhiyP@QAEsr3REMo!DBY(dX% zeDJO=c8)Ee=N#1E?Rw6yiFKgoZ0hnHk6rQlV-((oO~Hx$u#s|ueA=ZOVvM@$?@eyI zWl=Z%?Z$42=Pd8|TDqj%%z~tE|udKUKNb)ym2+p9-hm@V9y=wR-c{XKHKDe7)KAx#Zcl@#EW`U7~-oTYIbtLpzK-5r~8YT{goQi6I*Rqu2YIm?cSA;zH0pg*1@7;L+{o>%W zYtEcmbCy4MDKkk$$c~gKdVv%|#4X^1qbH)c1g^nu%nNlfvMd&#ex(hSuw(GZG=vqTiBeP3w@ppN=N3za(l8|+bV!)NpX)WpKG%G1IKLFAFN4=h0@gCS{Mk>cV>yy{<$wkeX6Bs|(s)$A3f@ljF zIVvQ5a-d4?4iI<|9c&Q>V=Oi)w{hGWCR+E4R_CAgJO3m;DSqt?-|GwzVQt2kiUA$k zvyEgE!Zsrys1p7+C~%!O1zfBLd6U$t>(=5u{ISXj{zyXu_PWB3TnHm4pf8?q>7aCs zw;$P)0xUl;`V)u=0o}0{gAXQ(ychU{#{yYS@L0enDfk5WP{oUIF3ql#3#`&LxVG1{QA;P@rS+Q*NC;a!~JeQl4eo++3VftF1?!j zN{FDe7jrYV{!*VVFLl4L)5{DzhS{s{_g&F`@mr98iV5tLO9HG$v;?iA z+RTtifOaJa{uX~dVg*TI0qzA9NDGMOfc{}9Ac)XE%s9T!k!l=w(9eO(H%fD8U=AF> z484b%OwQK~4ec*dfvCP1As7=q<3sgb;3-D^If)ubqP`3w0ELi5gt-x`kar^?JiZYx9~JZH2g2iE9q@`bo5=je^ad%-3|M<;+(i^~tm7&>Oy_!^DLBVj^lW7}j0d zum^M4@lUo8_J^A}zsseB02DKL@7Q3_;HL0NIKLPzOkj9j_3o8v|tVDuPK)Lpv zBHzpwsx4y@xuy*=A;p^=_9)WMe&RbRS-sT1$`?G!@?J~7G*&=lK<`3b#|yA0;a!MI z6iWQzN*_)1DGF8i5O`L+cu#GP>Y23L~5GTZ;)I$<}OeoXDXsoFbXj7-A zVG=Ax`9-xveZ8?UGA|v0j&Cno^+w~s=hIQJ}NV*zga*{b2nD~4ZhNt ziSGGOu>47%M4D0wxRE%TwzjKyZIOp282k)=$Z7>&F(Uz9 z)n9#mEt@Ib+{QL8P=ABcS7-{`2zz3oPUi}cTcI~1;u5(>tTYUCPy&QHARJst?r|=1 zhZj^Qzs^Jts!-#I{u^0*ugsLopDPI|nZ4A%xac30;$=3{R|0PfUk5(e-;mqti{KrQ zrNxIY2tw={O~w!Cm-v8_k|a53n6Xq?A{u^KZ83ChQ!D$USmnG|O=@JXtGQaUw6)Rx zwH)qRmTn5}rd^Ju`dU#m-8ukcL=6knRw~A*niC!X8Wux$OhXLpvOq8glGptEfkzLw7m>9G1c1zXiIoJSMxuPpb?WbLF!-DO&4B^5 zS}n9rX|q61pr_?t#Njik-K^dTz9AoNp97x4W_hifZ@V^-WFM^I-Pk`yDrY^ik9M5T z$w=jl_i^Dr`dp1v9`Qcz^_=rvkL%BQ)cd&CbIy4m=QK<0DOMiWWLJ{q^>-F4zjYmR zjBp=&%yrD`-lx2e@%I-iPr8nI-TQ=gjK_U6i^G&)f#N<8cg%h6KqM=cPU;s1PBL?)24G97iy%B(4!9ceVk)O(t6H6$27DBVSW@h%g}$2pn2^ zGet=n$@M_VR|JD-&?6$@m!OH+25^x ztK!|ZHP0>G(>!a=_#;cF&x!qgj_TkX4M)Nh?Yc2TjzsScOVDD{}g zvBKTEAB0RH7ox2kCI{TCt+T(p=lV`Fa)2b|mi|fuV`|JNC+MMc)MmA|v+u-k6)%hpY z6W@HR-hVbSZd1SLze8jUd4-L;wDk*hw)(HBzq@~-G~n31>vm_@qu7f9z`u3o3x5}1 zmB~k*EmYelMWA$sXu{4f0WnTNZ$w~?z`hO{6>ew38&D8xG9M03h7+~e^TZlR%dsF> zKn|q$0n$=@baqU3s5#KzAQR|-FOg+e{}F}?S)kn>Wqqm--@2~QRTg#PZQC~ta@9b+ z>KXB_Vb#O5YN*4jhiP?C)!{g%6-&hztspAMPmmFxw-E7pnyy7UGh%4HG01-#kqod(=M*|f>#RsH7{72^phK>*zB2EFgYszTqzT zBu3kdL!n6IAwkg+VGyLA*mMA^2fhajks`xfEwLIfwjO0?>Cv37Jaa@Ht*MvGw^PN=;0!Gj88kxl0V&t;dHr&N+| zrXJ!3x|^MqoX7`ZI2-Q6dAo)i=$ia4eWi`B%NP+6SSXi2HBEG$=)T(>X6M~{xBGV* ztcG_!!E!Bn+nJpvntxCatAAHJ@u?G+ z;Fd_3_NgEbWCFN zM3sCWR`?rbq2<@_#O_AuI~{L`e9%$m{H#k;_U=V%U_;m2LOuUK_A#`tr#{Q2y1$M0 z+iRSI1X#(u`fb2SD*_U~khjBkeb~wM5-3!@On0bwkGgNCQHO~cyF2f&`hug3#$Lis zL2u`y|ED(R_iY$|!xiIC^2ZH&jR$SkO+pL22)xjPkE|dk*awwHs_@}sn#n6Y_?Ui; z4C0y{G6a((!t_tx=nti5f4WI}R`k(6JGIF^4iMNovBxm(g7NT> z&OQh35X;4gm~~F#;wI7yaBxVwy!grgcYYOVm!lqUcMOtV@ZveHKK|eMRg6CRJHUr9 zj;L)-JoA6yS22EmF#&!RkDVYI@d%krvWH|QhWR3#3jiu)BQX8{+eQ!@L&()Jwpd%B zzYxu$JJ|^STiby6{B_y{oU^aj7Qlq})iVaa*ClKJcyXJuvfzDgtixnuuLGi zi5oDl#Dkq|4@k83Otq#Zru9uy0300(^9;mO7sx8N<4~b9n`Xqxw|T?VJ^V;^2P~*$*y$ zc<4}El-*P^x-s+Y_S;%EA3V6Z1p8oHVnJjG zM^+t4%$&b5HiQxIb&`-oFbFbXP;2vobPiZYz<1qRfyE8gWOgNXkbo$jx#{u2b<6kF zKD4Ov{&kyozB}xOAxCF(cqX39@%m)LUFwB^sRI@)4psYG>yE9Sd19Ga{UeJr)el{2 zpX4L#1N)fCCP=k zNhTnh*&I$LAM^|6AqR`t%EF!hWQ)#qY;D@SIlrN5dO=oM#gI`$$K{GulCR^ZTCw2L z8gb&W`yRPx+TrQh>Yv5@(|I?oYQ7QCFiaQ;+&#eGgM-bmPlZ!~$O!p#1|<@EnOq9w zXI~BY5=I#UhNKM-SJhCEIft?57PBEnC^0EWSOFYMJc0SUvWJiZY-6^7PQc+tDPO&KA_%Z8jAc1gtAeUmO8=LS3)p_gvJ?-1B_@^VnTEzZm}T9GsTKu z{-*do`KYdf3M*!7mdsPtQH2Ztl5#`QO0F6uC9OMf-~b!=GmE?R+rvBAEcMO@9=Ltx z{z((}Oh5L`ii4ZPzr6j?Jug-rT=C5}Y&VM5FIbn4HZlRxIdU&Pc95JS8B!u(sZ&t9 zuYqd8k=TJW7X^_PMAg)G1oN4=F~)@YTqeOpS`1Qk!w4uK(HvssPyx9#dXPb&#wO*X zsai!H*p!plQ-9iZyW;$}s6-yx@o9v#NPXs}9{1g;+;xa;dsjUqX6#t8b4B%pjmvX4 ztvK{ZPve_#+ ze`B%g-yT-K1TfE+|4`RG&B}aOnNs5%zw-VS>R(yhiu+fJ4>~uCH`6>?cWT$}$2=69vWa7*Q6DmddYc&w@;i`d{l|{9WvU0Ov ztmxCrmeM0GDlv}=_vYV6)D>UtggDFblU$dSo;a{~p{*h>zkgw`L8;^WtGCdhK7(xI z^4*6j$RI3YOazR{evC;PRjc!iNOBTT0j1JtCXXhb?j8^_{`rqZ+Xmn;z3KqmG1sR4#QF_Uce8!A+5~1&-yO^r ztBd6QiRnqG@~Zb8pZ(hx#I!<{Xp32e-&i%E&}9OmBjmM^^{+Q}kuZT=v5OL0scvnR z*Qy0=>OeUTM6yOWD(A?X;VmStyw)2mz=N_gal$bx{CVVf^ z{Kb-$(KCOPcH=c|@J3Sh4dvid_KjX#H3~!<6&nSP=b0lP4$MJ$MgJX9675O*b=vbH zv^i~Uh(&H?;c}upj*T?Tf`M~}9X?fxgOwgrX1L>EPq22$C`}a&@+$PrwO+NpB?wdO zRo=ZL&g~{j>YWKTRc^rmiWoUA@Zqvy#KloZ;}YT^g>>z%-?h7Y&2`AT3{k2ZvQv}v zfH=hWMze6~5$R1~B)p7X@$;e|?0(06zC`7Sq3ACYlGu&%4(St;1J59E3ityyW~mu0 z_bp^ME<`yYn(sS0=Aa(TE_jea1!M%v47sFOqF(WrqTE6|ZR{s5AOO&Y znt2I3fKXc`gj7p5ttJI_4zb~>7w0~C?DePW9^K!1hEuxuQM9wD%{e4mJV7+y{#Q=- z_oFREye+WXxmx0id+fd$=%?%TMk-Ziw&L~Ju=Llnfh-K~W}DPWc>BM)dpE{lAaLD} zWBvZGV^6gfxVOwC>U^Mhz&W3Ow60&={Z*TKQSUP5C{uV?E|N2eU)p=otYM-E^F|XX zx>zf%fZ(^niwm44f)heNfjdpy4Xca(NKMVW`K?B=)OmJvQ)Q5JljGK)%Er<3cjH?( zi}g*fuWBCNP~2SHFsyl%=2JlR`EY4JXer{l-cJHnm-lO+4f^ZV>37t!eD&2)3qzSx zl|vVdqQ7eIm@d}W9-Y!$Rn%Nm**xVacqXDlrA?T1Nif?3iCE#VLD@2%@yc*r3I%t4*}l#mCep_gY^p`5~tLW<92TrFLFish!7LE_A{j`M<3d z4HxN8qyf=SCp;1GDaeh|Imluog-Fj@rF93IE8=^GA8DsX6v3gGchZWk40`8r=$*pB zy*3a|Wex0YHB(<)d>i3Q3hxI^QOz0f$wG1jx%i}~HXDZiuv#r1GQNYA)YskzHYJGK zphK5-48F+m!^sH1fS1KrTuPEmfQbU?W4sLK*wiEKrD2qg6(hmZ+~gdyO#AX$TUa+yf5 zs&ewA9%B{_$;++=pzPgu7>-BAHb#VuAN|t-(}F#%c!cPueka}K^ChBrlI>QgTs*Ii z-aubaq%WkXM& zFE9VOX>Dleid)(*NzUOjGh6!27_L}&Kb$9}yA7Ms(iD3ljSB%MgK=Y|G`kE^jI@q~ znt4aU0S?ATC{Mb3$*x079y4s-G<@2{5ylg1w&dcf@IpyUhq zMxbEB$*R@9#=~f@H{&OeFjM)43oVhh0k1uuW#?PPK$g3^ZtIWg--oa%>bk9Uo9+dN zVi(>StbPx1_o5gR?d-sI=yXK0uUvbgv+*k$AK~eaInwuNdpbpvBwAx6qaiFbK=Q#n z#>I+;5_AR8#R%m=C0>N`2=FEOKxBingu5vy2p*GNMW5bb+35nnUV8V62v1GoeFz|E zKCR`sXfiYgx5`8@QV=F!f8|-^NnDGN{;1|v*HyfCX^8p?n>oC&D$S)rjhWl4x^7BZ zfrTqqKE}apka}bY8`P#g7R~xXS5PDEg}q3F$c-MIp1pAF|KS zKw7tv4>1u#j{-q3Fi?_sNldh891YJ4D$|4O5WX$h^g8FCK#4;7NlKDd%_X#FurKW_mNyibA%t>6I*^#Cw zxTNTcf);BU9U(!YH=0#8iBAm6NwrC2jABpj8T1p2iBn%@GtN4{5%U{%E}pS>B6@an zoEYnTmi=qZj0Y#8CusGCx@K{8GxcO`bmQqdh(~oB#FKR=dpP%1qgI!j1_ufY?en6e z!pxYH1YZ+Y2kfM;;4=W4(N7xesS0R^~3>_bi<;kR77!3lc z{5;N2F<^ho%}(!=lGG#45*`#_RD^+SpjO?+as?4`3nnK+8+H{b^+=8Q|&S+_sd;?nnR$=SA|MAu)r`e?RHbe}Lc3uc5 z#9tNprl%u%5#5fit7;4#>tpILC4UTLC1+!l&rJC zpx)a`_S6tRLwp|#)FYkYP)vOm@1zC}YGp86+9c3&zSa0<%c)Hl_NfQi`Tfj!RxC|T z{e0u^=Whf#tAA&iEF!R?V9)5r${_XVzB9v^wYk07(QII=iqu2>-`xO$7TK_+R_8;* z8j9Pser2Lx^U<$ZI68XLo?s&`1LKQW3SKE-bs8vn2$A)CKLBE@p9z#M!OVr~2poWu z9Qlf&JUKZ&F1crN&qQlnQhbs%6I~1K>5n}Debd5pvuTw=7v%gVi>nAWRMCaTk`KHQ zOa7ZJZ`U=UD=gyEjpufJvX9-U4&8?}27RTMZ5*jEZ2EpRFt99t4LUca;H`D&5vwm! z-$5_in~ma6&}JO!hN4A@Z_}P}0ei+Dv1i0kh9hQ4-zAL90FMHyP=Ve2(*B@>KJp!o z_P8te2aWf*dewP97^2Q*FHNtj{DTU{---M0{(3i?8m&HqPi=pz5}M`7@^FFMlLP#* zb|h50vV>tS^tFR9R>}+jF(MZgYX=gUR~a8BAdU-y3fYsXZW_??G#cu{9NgUDa8|i> z+T8ipAt^w;;eaPOTiV(lK!)Yn+8uMXNW(_nAG4Fiw)A)y8OcE;?BQw*djs zKBdu5BwCIPtyoY!YRF>Fbn20bdSE^wVFK(A%bdh3t&Vpph$OTpsjpX%2-C?!3IqNh z?MPi{L*3${i@#19!DhV-2HuqQK#fO`N!hR3_;U%7N zNPCw(MCY2MD~3YOfnCH7(Tr8A8-}o_)fn)}v#qV43|7DBRxsm2855d?!*aSj40e*S z8r~|()POo6N0Z4yRO{2QUV;2d>-!5aMS4|y z3f%dcx%j%oF1_lE7oR$KkoX=GE(7f9QR!v0-EaorDp`G)g*?*mxuGP3R5t%V|8e~< zy}Zcv$D)h4R}#JuYJh{=$n8ThWF;d@D1&<(QVV7SbA<^ZQw_Fx7(@|mDJvDI6a+iB zRw31&=O|-~_XEDP=KO)j2bwe7`;b0!y`e6}>i*^B{qe)@b;h%L{SUdZEPp_0>45w) zwP4pS_0h3;1Io(>wgA2vduHa|lO5aCmF)9#)Av89I<~S)ZR&fum)gGC z&H81j#3-3?S{RCAfX5)|8_ri3Z*|1I#o8UA}6`ywwmXE0^r__|S>?}LO=i2)o zeXglcL9X;Lu-U}tr#OA&V*q7S$E;zWoWl719+UjBJQDA?-rOG|F=~fNq|u8KpLN=Y ziyNHlB*hsok5r#JqrR~PL5IPPPbe~v&k^47(SQ98xc1R*K0W(}JJ*RDhCA)z=k$)P z>Oa+;Ea!}~mB;>pMg`DlHmA`W#+*(^1c$ZD>cl3f3@kJ0W^BU%$}~Z=ifaYqG(ray zR0r_7VzNDg=l^#}vN!2T_FyO24*}z6%@yxu3F_x}tDmz3_B>jct$wgWeU;_!V7(nP zb>9#h1l{}r*gE@B6oAM2ZcTu- z_wzU$e6MPO4+ZMFXMc2WjaPLG6}x?8o&9Cf1Kce{;&K0cO=wnI`VY{=ap0pO$Op@fl535$$uN?_y2jYYHEvB8?bhnIk-X_j6+@R;0Aoyv)-%2*=~YlAVp*)_lyO7udlJg>NXs8ADnLM`ogB(CqLK_o z8fkN|bnA^Rg@w%v7w_qxwR5@ty>(#HgnH+{cI_&tD2%ZTm>|aSFa0MD*(I|DXO=8| zWZtHYOAcz^nm3MGIdY5Ip>|X>jmTI!P8!EQNX)>#lC8GOjj%ICK^9M^zJ_2L`ozZp zi;ApEr_!^;OIi76|e&ykp6=@ZT$mpO$6CSj7C20Ooj_UxT9>NMRJ^@zf|maTzZA8jA~)D|pC9T?H0XAI&?Md$hrK$Se6b{(FyM8N_X_Z#;KMaw_aanps^f=v?{F5b z3(s!zET&(#pNiE@Z?0~eu$`<0ZL8mu8&|*CxBf^3J`YOb* z7?+T*r)G4qymvB)dl}(9rtwSvbQ|LhVX%>Vd;_9EWsX0t3=RWD$Pp_H)kb zDA!$sYw!_#G~+h5GB7CQge!~HHnsR^^-LQ!`jdv2S}(mW?ap$1YY5@be^{-SIzZR) zLbknMoDUiw2!jW7i_j3Hc#eil$QWuiYc_ge2nF8Z+W6$i-de;b79wU+V?;J`4j5ro zhdqwAC$sc&O6VQIv2wjeaLjMvNIZ^VW1Z&Y4wrs?ZWWKecRHTK~N21of?O z!Xv;|>p)&=gpfq2G1gGf5zk^n%`NPv#6vKJU?JcyLJe`DibxBf z*^?rZQf&$?!wAaxbZ3fk2AK+T46ivttwSwDHu?vawY%<_P4!PNpL=S4&7Qvg>ZeYY zP_wCJ$?980`$naH*n8>&s^iFy+vopo+oqS6Oc{28#SeG>^d@Cj{FA$i_69Zi!}eaaafq zs)!h>Z1MOFFYcu z*GWhSOuiD{yW-FHR4+QVw7>Y|<$o$+e`A#_V$-x)zkTB;T<`Itzz;vv3{hMe;n#TsV$_gAPC4S&d4u)_${N4U8?-l29{F|N zpuK@I%dhhWdc*Zzi-+sk=Sfu1Dm+Y)^K<(R%pBN@7p#hj3hNQxBfw7%RYLtqRkJ|b z@GjQlPCv(5zy^A)bJBN<9A)#F-;9kTMr@oheN%Dqrs)I6j~i47G%S8 znyauTqQPT&3wen69#8RTvCxv@<0$5gfSoz@1Q`M)+3XuE`Iuy%`6zk~3esY1{SbYo z)KD-FhG=AQ|NOK*2|WUEZft4s_>tp>49XwTe?(TlK6z<*smVQhC-e>r@sAFO*0kD? zE?TXgp-(au1}PQg9c&6pcDa;ZtJile44fDrzZ4-2l!&R1Zq1TCdzRE6I8a}a9+H=r zlNS<_CqCY<{lhF)uypUs^-lZM{09e)XQU>snjaHMY4v>*|X7jLXR`PsbJf>!M*p z=2Pr}`mr=jcoIIxBZAP4Pja#No-|B8tDV2XCn*cZur~xEFq^Q~lCZuht_rC^Sl&=- z*nB^OFN9iH5BL|@4=@KXAfU=XBn^L`Udb6L89m}6lcM0;@wWt6v>_+xNN>Y|_n1P_ z>2|E8%~UF*e_5IHWBp5i{Zrhpf00Lz&FepIT>reWu21K?u5YeSjLA9SR`HU2J7TM} zSmR7cK1K38$X!v_6G?(Nmej71B-*@VmxmiZ6d$fw7KmRE!t^MX!P2{q4Dlp9P|cHD zCr)auMkI?`wSmirOVNgPXv0XuSTFtxyOCSp88zm#32Y@2f`Gv4u^D2^^p*sGSaB5@ zVY1y1OyBJThnRq!0w$)%4vFV?!4`iX#w1AnPUrhUp7(3}g!De&4}!gqvp~KdY({&{ z-pAeh;z&b?_i^m)QTp>kJ0IuInTh9wd5)tW_q$_Eenng&8z>nZmpjEJx?+{Wg+zM~ zj0T2}41b+5`Dk9L7P(i15?{~SymmXMT4Yl7?uiq3({$p=WM`fVdU}KBIUshOT=+oX z0!%tQZ0^MjB+#_;)&9?KzIVEk)nfb?zI4 zQ>|~hL7E5@Y5^kkuh}<*L!&|{{6`w^7^bN6K?ca9o9mR%K zw@#YaI=T6#*BuvKy`!;)c(g^HEBC-olWI?bhTkbbi6mV>Y2iZHso?`6d7bA(Vttgz zv1&o9w4<%f(GECAZLDTOn_r8us`45WN!Zt6l+GCrK?0&!g%S3lZeKA>$uO(x-eMr@ zlAp~F!XoVT_<+5hqLqYlt*R>dZ0Nrbf0xHNn;dPSRvY(4A+9WmM<-g@w$`kJzil}G z;bL`h7<*-OtNj7h%!;gwc09O@SuZ92VH^9$F80n&Ho&HSbNLSWg4%DFiijMNm|MZm z6W#nAG4|XZjKwe?Q3!|$lElgUizopO9e-D7jQmO#u6sD$tomx~T&&iav-%$wyMFo# zc6}wArnWvU-0Y4~FA;9BZ}eE*65TQC0}FtcGO}3o^)r-`FyM}ZCHq@|$MPl^d=RZJ zn4rI*Ksyq`eSQ4!r^&ZQ@HP2XWb>f);Y00%`{!kqWS4XoxE^#3Q$eca8} zBe|~{%6`=o*BRfwDY0)NJmPQ}yG(wZ7F@BTlye;<*zJRSjV8qhDxh==VexlfE1*-x z({`cUa*L{ucTk_7S5P0%xS$=T032vvt7>g!uXuPd1^4j)KM#-pKZqmJIKGSPyW)sE zb^lMoNJ4h4P=WeMziAwHVC%83dvx|MO|ngL~EZOr=29< zQodXuKL9(CZs*ra*fmS%9iyd4$CvU0YV>_-^gUD<4ewit>(g=lNJE{6kKp(k_9r<< zc@?tQC2)wL6bA}i>Y=VS0RQhB#5<3ajD{?1GpX8nF;%zIpmub}EAl8{l}MP)7-6#A zSHcQrrQkCqV@@YRc7T9@v@|l=M3)gHmsA5yI!1y563*>7#0I>NPqrgTO#xU$aEv*| z&m;#aK|F&M60x_G=DqZ#buG?<<`ol`Et^oaY?XM=gyqX8R5h$rZnIxrYF7rW-n@DJ zwzV79JDy*?xn=#Y9upU94rW4kL2vVfi8-3b!&Q?4R<{-Ae9iW%dmC}B_N zoe~GQdN;z=uSGXF<=JVjzPUaHxf3pXAIQ-Y?BhU@FeDN1x*n{L)Of)lB9jElF(!Dj zTSrEmWLlaA#-5gumeDu8XP=&k1pBYS*kObsz_(wPKXchw>*J zk!Q;fa2t7<=dFSU`xqYLXA>tUj8%nV!M6fV70|Z%1pZ}N-_i-fvoN? zOJPUS98a0pq4e1ZW(HK3kSRCIKcHvuW``&i_>1% zE1kz7(;QCY5Q;g zWJ7D6@WIrwqNKto`QPnlGm7Gvt)9x+*Q+1L+xrm)OgH^UN3p-*7tsOrpAHbG6iYZQ zbfN=GGD5X9ei3U=b|fbcj{nzMsuSDvZ>eP6Z;RWY=4aBQ5F5R7Bk7GR>h*lfakK*kah8dt<^`i#POVflU@>+Q%WQ2_# z837ZJgX5cUoN7?Q8$mt@idaH?IHjWEunrzZ-WUpBqAKZ*PjUkI$nUDS3>@7dpc2lB;F*JTA0M6L_s0Q zW`-G_mIWnY1IIcQ>N9@_<$rT~SQ6A1m;Di_`eM<^5mecG#QuHtk1bj9Sp5m-MaiU| zC|*%qynOiKCBLn&|LtP+B)bRuMJC?A3hy6jX!i6U$Ke~1M=OUQt8IonH^U>Vd2;6v zBrnJ-aZQk6vwT{a@hs1-W3KEv_*Xh!#4~2Vze0IS=$jAU60nYly2y|Z%OZ7*1`p`t z(8-9yF*DB|KtG1EDGxX=q4B=zaVDK^e_lPt?!onFUmc#k63<5ayxZMTE3B3OB>xS^ zw|b6)w%!%iDr0aQUQ~PUB&wFmAk0uAIc9+nA8EaL#m@CKNA%)@Y+)?lLiS0DIOA4| zaPL|y;qref)syPc@vqfCyL`p7%a%R6V#S+Bs;iH@xnji|N24U&NfSd{Sp2<|*i5Q{`ENXK|Xf}3d z=eG+xbAH?^KAFy#B7}h&aITEO_x%4?|gtW9j zE*Arv^t2ESY3McnPI#w6LDs~KKyM`oQ|8N`96^ZB1KkmUlOGIzJ#$D3H{B3%)5~*^ zVwMj>mo=P;D4Xs)<(xW<=K-7Dt=eK;OKKmJK;(dmH1GU|$ z&&cF68xRCc(j~SksSb=1eMYqqd{Tx1qYU5B5UMLdz#M`<^K+MSNAIoF3I*yAV@cxW z^n5m+zjHj^S)!i)fHkqE4|oCh1gh*VeU8%Y?T=Gk_bbOC5Op(QL&7)+B|%_>WJn@S z7bdLEd$TzrMPGzuQ{{7EHUU)LjF@lnAPs?Yp7RvD%*)5CPEmeMy%SUOA*SX|lyqw1 zh2xnWk7q)vxKZ9J{}Yx&JqHsc2i}V0wzq28o9xY6aU;7_uP$M2TKvN~@j1C&$$}o_ zi@kiHy*~yG!4FthC{==81&CsxAqxJ(2ZH|$FpbEtzGx*%facEQEqpjTr!iv+j9e-B z@s7E`q#aYINq5t4B@6KvpQtHfz2DZYTX~zkXx5Gh1oVO@=Yc%=680v~&UEQbkGMAGp8C1r8t&49V)6X*-u}9gw?q$j!KfxI-)!pF8l}F|DYdG)6x1n>Jj{5ur4osJrk$ga2b z0AmXSOUXzB9ZQsjz)BEXL`z&`NbbR^ZZQ!8Kq%+W=^1gk0^-4}=Lf@>u zS-sMGrBgI_5-@TC{1G)1&*HV>RC+8o_8?1kUqFw8e0i~oB&e3yud_)+2v=}6H#?j* z^9?JW1E*X$@8MPE_mLcJQNOx{{Ykan!Xm;m6W$M5_3*>x%fdcj^THa&s{6y1mG2$f z5cV3e*5?|g-99HgHn9gQo#H&|JTjG)#t)3X;r40b%c0B0mMsf=e_#2s(BJ<)Y#BMz zF>Y@G1N<~$mm3ax?*}+(mQgR@*Xsq(bLe*#AOHW@dlSH{igW*e=Dch6?aiJ*LN=DL zgd~I|K-gCyEJ{#R&?qRV2&mX1qN1XrqN1frYuc+V?M0hftki2OwX~(Tw52U|X=&wF zT)MX6BjgnQ^6Ug`U@BToAc`V05Q( zLB}E1Zjbudcq9Fw842mxxtMj=sGgie>Ot4a7Kvma(zCARnJX9CZT)+CX@1*R^UBly zaaZ^X{lHzv3d@Q-7xXR6{Lq)szP$a?Ir`qBQF-|zi^6N>S`S+f&kNr(Y;516!DU*u zTXf>hBR%paOZF|W$Ss2=ju=^(qVM^B4MfN@w=%87s6J_(Z?CYg2B<3bJic-zH_MN$ ztcx+5Ke+7$-QN9b4ccXwXGu=~5J%fa!))(3nVG;5uHM_`^z^Juse5HcLoN1*G-ecg zvWx2~iuL<8vwmnTdf{%v#uwUmeQB!4KXq!`ClwB#exN7Mu{k(J2d=s1nohj>a*w=9 zmz@+$B)}@OTL8l;XmF-kgz#?aJhw{N%%bO}ZbT{!o!Cy#G$Ty*-2%3NeQ&3CO87c6 z(sVD7K*Yk=buGu17~0S)92w7G&6oR<^5WP**&BHr71MHlgDu*N*dibrnGcPuIIWU9 zx==XM*pUmNk(*MgFzuuHLt*c{D;aaSG|@?koFY*(v*peM8JCKFh=YPiV-b=H77t3Hxv4y(6@4^vxCyEh%ids|O7h7X4iYmUJ?Vaa{( z`(RK#Oc)mWn(*j`A$ad$v=c^Gwr%iij)WnC(}%H|PBx0TIkXY{^kF=kKPg4&bHfn) z^kKZMCr)4_(G5fJ(}(dL`S@V4CK86=rw?Nr;51<@*5b}EOoRu%BTkqzE!#jarfe1W z6rO^{477%aqE{K(ywH`W3?pT$D>41&T!3iGN!xaBd*4e%m>0t1I)$;CPMeO{Vdxy@ z{nLkezdgNE7|-U@hVg7}+t4YDH}AAzym=?zh=ef)BhI93WAfw8lX`oabV{gu(E>8O z7QOcrWh&((LL>GD`pKd%dE+eM-C)s=v({`LO zEs}Q=LpNI7yci0in*_V$#SM?$YCC<&+-b{J+EqJMp_zU)A`gx=C%OqZz?_f_-C+jv z)?&gq#$dGHY*Z}Hwd}ZTE_k05p7zX#)8*r2qZGTFk724=XyR^1*T%HHM&6f^K!uWZ zkZM(@#<0h9lA5Mwu|0PIBcSsb(_hRi!%B81tX0=xQ|d<64{ld?se9S4`~~%hdQ|-z z*7yEheM@~uJ){0ZJx}pt(of9#bwvj6N*uV~q`0G{%1Yc+&-B{?`;0?#BckbXLEBnQG7Q$Ed3h3iSV!Z2U<5RQ+82iZfv^ zsXwS!)oYwMdPn_LeW*TGCshY3dw~15Q*;K?>iN1a6Au-7kRFP$z&Z{aj@Og)G(Aht z)eH0@eI6HRU96YumHH~ZR$r$-uWz(vFSab*=WIu2 zo%=1@2^Sk);uHT8*7YYuxqe(%{JGDr>uq&pqz4Bf6rtdMk!BGO`9q)Lyp8=7eQSsC z6h%Tgf#r=GGU~^Evj3h+h8YebMfLUUh?@~-pBefBvG+>ON>qsd|PCr)MP43D!V zOAd&YIO`u))9N2RxNzZvKU%$d|APw_Jh`AF30OVPMXY|B{A;s48Ice6QV zqL;A;#8iS87& zEPrA}#KZq%Xe)^DO%@|AGm8;1ro=+}fW zEEOnh;;}fxs)ydhsADrUF-PQ_;bXCuLwq7oSfwh+EI0*YM4*aU;Oov91jRbhn-syd zPV!SAD~m#d41`#S=_=e><>kN`Q=OumiB>0FY#(VD(TxuMu3Hk_<+=Tsk!H6JGnyI6 zs!-SQz1Xnxm?22C?z(mMD=b$F{lXR>dfVQGz=0B3I#a@LvOC2F`bHcAx>zg%&Ng>2gpez!Kc ztW-p0@SxJ+Wy52;S9@!DcX4rv7l{eD`$~)hPo9p@iyqm@}ch60yj<*GG zW1Gj^bRMqAkvFE^O1{Ra`3-Yfnq)ymauz+#$h?w|eY@SVSW|6ha`edRaW&(*XVpFk z^{KK-#eos_8M7Y6u7_-o%`GX(%_%MY6xnYn&9MUsAENb1&Uu!IbxKN=l^CyY6B)-8 z{zlfwrMx?x(Y3c`$T3Cb=uh_HMB?+L#o1F&X=1dXmy$IX=6ctiJYW^v`0EWDetqM{ zU*B-UuQ$%$GN1n!Y?(KYmh9vK@5n}8Mm)5*-xlxy?dW+{f$2LESs7J<}>6!c1AY6nnY!$5_k4!XC4BmQ-TrICm1sCuJsOrl(5s z*m<;*XBUlAacfK5^UcDSMw=&2ma!3d%;l8f&H^brbZ9648K<@@kdmAb=l69|kfPbH z8E4tT=G2##h+b{9v=z2i?da>|)$ABzaZJ|oqnTVL#W4?}u(DGUDmCZh-990bL+?6Q zU2m~P*(!+XWO?P}$_ET- ztY~c_K+7Q7nwJquHCsqT*)V*G^24rHqIe0vZCwQ(xb}PPIn%C|h(-5dD+YTPg#*U2 zuAOt@v2!fhH+h8y=!?W>&x`kJ4_HiNVh_;3L0nMjIS0M+)N5#-bJ~AmHxrS(lfP4kvD+M*5z+c9bJ*rIB05`7d(c>2 zz^c7z+D!no+#gEJ$x| z>{yQ3Wu>>z2^>0E-{NaF@pOFDmSgRT(1YNe%2tn51XdF{ov^E={e4g3KNI~6Tby{T zRo1Q;dffUXCO4$rDJL3ZB3gvQ z4sVA3_L0EI)qt+aVndyi(f6TIVkfuoZJ{KgCBKIMk$dxq*=$q9F&0P=jn0P+wJCw( zT2ls+YdbcH%P9jBm%WxHvmcO&<8DMJTb>>llr$asbvt<*0xM$Bk&0Ud3AWTkbZH60Rum$4ybl;wqmKJX*dxek(&ve7{ zsGWTHB;v+K`Yszcd$E&mGfa-uS-}>prmfLOO*RbQOm0kGJk#M_oEp$jE>a@Qx8p)bn>{L~6=_fn?xf@bMZn$O6DIaOqITg+p zA2zI-yKhy`>!dcz48!a=9dUBY8h%NC$B0dKzRKOL4Dq>5ak*GU=zQCZ-;a5*1i#$h z%g{m0)0=&-hIYFhBpGSJq-fxu|9DGyUzGNakMuz!Taw<$hFZ}n*&J#HhwQ4wBoSp6 z(?0f=oXD>&VxH-3Pg+m42+snC{@F$&ZWv}{!CGa~GV+Dp8d*-4W|9U{mSv>-2*$bzAx1 zi^q#f!p9zt{qw$CW1lH~nlu{H^0}?w5fb@iHZ6#e9n+V{+1da89T=YJdQJEqVvjVj zwq%ixKIrtt(Q-DEcrp#Z#yHa@NXG1=Nxhacx#2(l(z`!JfgIIq+TS-t;`g3BBHe_O zr>G3mf_Su%VYc5XkztR=zA;G-eE2+bdr8bN&hFXh*XFc%=94wg?v{Th2DXRy!9c&6 zf2S>o$yHEes3<()rYv)(libu7 z@STSwPt~Mjgz_BH6(294+c; zM~R(v(@hJvo!qu4udO3dH>KT5!(PI94NXZtb{o^AV7t>FKt-gpQp~X|Pf1Aj1pWTt zBJ&XRb7!JI=%1UOZi_&AcDh&%&PYs4H1~{k7KT(?7!ZTloZBT~1*MgXVS(LA7^yJw z;qbvO8HX26KTcaK^9LSI0#NA~(e%)^_tKRknT}LSt0F3z^^_x$re{JNqk3P0?8(Nm zxg>?`*$OJIThV)JvxwbpaP^v#^>&j>o{YRp{kC~;$}~YN`O%wusNUp*zE`p#du(yo zWXm)TyKGI#CU{LB#l(P2+PGJW*n(s$V&46xhDAi$>0garVsyF$S(%XzLs}Cb$zeX< z=fl7Y`SH0X`9v{EGxuO+O2g~c8MnUJnz5svz>O7-ejMqOXf~wxMnT4j;Zo;5iMU-B zwLR%Hx6;!|pTw2ac3bQANs2y+sCwx#x<+hzj7WbWBO&Q7xbo1%VUNvReM&e_r$^*o z_BnMqQi=cAxFuf05*Z|zo=7-NMGb5hJ~(3z!v~wkCSu#BjF>%?S*>nSIvn;sYxwJo zJM0mlQ*Ow6hG-V?aTa3?nq(O%1^u=piVKgK`Ge&WyI4(j|H&<;+B7$AF-Dp06lX*@ zr9e%gN;5$r@Gmxftml}EQtkemMuDC4QXI1K;IR-RPDODL3wHKOgu}e3(jY7}Y_uIS zP_jFAqobm^Lqp8mN7pqgsRs6%6?^6w+PiZLo##tF^*ljZ%sfHNs6KWcCWAe5rY%0z zI(4j3fF2hC`pGJQEEmbr%MfPucK>e8fB|cMw|n=CR}UC)^^3c&|H9nD!nt3#{`!X+ z3kw?`@{WxCD4tt*dwr}gng*uJ%^a(}&yTZT(y(9(){=(BzAyz}osR59o5{$uiD_PF zu{ktX?7@vrowS6fN4UZf!s%Luafo*3bW;=-&ZXaW=Vv%S&k=JeROLZR)>U+OzMk6 zNKyh8bF8@KiSbsDnww>MJ*x za-EXtcipR^VV^hPg@dMp$aW^avNNk|v$=S=n2jtN*XJPe%w{krYj(!kgH9&NXnQon zE~9tw4`v%@q;Ymo{=QCmms5vnvi5`#2`uC?VX5WfER-f$mk@hYNQ|+yCHbRSl-$W7 zIXef@4o)Nx)8)k_*-S`grd3x6r8?2t8lI`Y`=>vJpMSA^?W?c4@_5aQ`sqKlzhT|| zQh4Uk&NSI4A=5;sOf_djyVAs+P=+XRS%ffDrKAX5DQPKb9N&xcViU|z=89%^W}PQf zBOkgptu|nI`0A_H-7kipei7mvqF#M9Jo80sYkN>X{Zjk7S6_u!Nin?g)59dGRGMwE zSk+hcQ)QgY8zlFN4(eZ4Y8N#nO+nkoTe;58m*?;^$i<|+Ff%!cSh;eQdG+e((M(V~bH}Hh2bO78 zd(u|s3(TCY3G*4|Y%?Qswvk!j*tY#M%`LlqMtHMqJ&>-*%mn|7;$?pSRPp-l{Wfy4 z486l$=8<_Jkz-?;*l82I?qs-*X-j*h*KagmnsALh11wHR*w&AhCm=h_qa0heaF09N=7;rgJQjIsYl(vgOk z@X2#~sy zuKeKDVd{0)w9)KIyK@i7No#5Pa6Wb7G$98$uG1-T=#djVy{9eBE!ky8O)h#ftd<+I zBCI}T#!+@7a?*|6`e2JWsdj39dp&;UMohX<69H$)Zz*5lc9(LtDS_Wn-4L7p&+x*r zzO304WEI%@AaAh+;n2v{5T#whWj3T!L=g)&%z21~8!oF_XD`A@EM4O$>k@~1FS6G4 zwopjWZhp|uxpyQ@OOqz zz0jaz73}DE^3$!ahz=*?oN$p$ayttwlD<6`{i)WcBreZ%J0^F5%87^ZQk?9x6D@;r zqpTn^5T!9R<56k3>|>&_Lp#Qz5~ECIwn(J*qK%2z84E?mcb{fWkJixS*Uqgh>N(@Y zE;P!B?##x_GJunzt#Hwuqx2u|I$ry%>uN3!?D$AWEvNH2gpQ7yHt;~D5Yiqm1 zMW4*}?a@cw_*k2i`FdF^MR4JSS&_l%c8`d=HYw%gE@wpJapuOEuc7Q^9-BHR3mNWU zhcU9f?$@d4%>)PJ$!dZ->2A}<2$Z=9Gp={(lNe~!#FdjQtC%+4l<vK7n#L2DyG|}?S_(y2Fjgs zKJA(@B*=e}HZ4Z5-8RjYn=_GXyBtiLX4dJ1OYXdq8_$`^pG#9z0HG%`k9=Ka;Ss;NK~%(_XM9Dl8RqSVStbN3tC6OkVRUW(D1uYO^QtBsS*RjL>-1 zEb?)QBa3oYjnZN)$3`-0k$GS`EWiQ@oDzFc@-I~^ILk1;6RvycAzk^b!cNK* ztf*2hSV}T=z^x16qTuxQV=eCg(&l{1vWoKC)2XhS70{qBfFVekie2P9Qe$Nrgen^h z$}rJ3ARAM4?GdiD**0{;2i7L}zcZ64GuBEBk9IgbqKr?$A)n0`V=qE<`JOov+|hQl z#r#iHGQVuv_0!j7Swxc^FOIC6bpoX0O!sVAvrU$n51-S;BSNQKwxpbWx9@blE3qI@bVaUf5aUmeq3qLNZ4jA{)fv(&Fwx zv%3&TG1I`Ex+A-JZ+p_t6upMwYh=y+RP(CRM!K6dOq*uX{;YkCv~V^twif8}Inv#_ zx}f2aZEyYz_p`WBOY~z8kvTJu-40y-VNgGA^bOGQ>v7b^FEWz7-Q^l2|9h zV7#K@(=W<)d=yV4Lpf73G$hHq)1JWeBWeAFiHZhqZRlxj*Mk7nl5$%(ia9Q?p z^AK4xic{>Fq7k*sx`hYpZ>n+Y6 zfM`R_*e%*l$3`u6*kr+Ns%_0#T5Eg$KC;djyT3=Mhb1w@GZ>H3-fa(nX@=|#Rc3|D zN#qp#k$w_}aD6tW>14gu%sNKL+?^J7>=LMrj!yI%Y3O7Hwxy*f{)p}-i?Akcvr__J z7rG+UnLjeDsC8?gEt{gh$!eg@duOfL<&W%ZT=I<)*R^8V z+q&#}<;d%ZhHB*1C-N$WhkUFKM0#WuU34VLF5)U>9o3daT3wAQm^TtoD`wucL#qTTMz8{gdVA6V|Sv-FG?bL|RJrw00V}02i60%C@uw zcbtTUpDdNX6q1Y=%wEe=^;agSt9nY=$i7OGx6|rZWW?xKboy0hNg3yQUFfd*mEpUj;&u4` z-`1ZXNmqpuJtMMb^7Oij%$~@+1al{5Qi6$-ZgUc`{iL*S^pmj- zoKa9CO=#DK$8F+jqq85k?Sq$g&*;(>XFd+1hq1|a#z7Q9%>3ei zV~)*4>uL=4h{nWh`oB*(zA|yyQon5Y>fOYa#ojo_{Yds!NO2SsUO6EE;RzBsXEOT=;=Il#qw@OSB>qDMINkSr*b-=!COzh6 zcy7=P_+?v|eai>q>=`n7<0{?ephDzc!i!iow><~X(XesDCk&rEd{XsAEAvWA z^YY8etX3|MFpjCygvG9#%JKT;0f~_P5G%^Gi$fbIahc+!N_5 z^L)jRsrJBE!<2`FT%mytl##l$(m#S*ys*XnswQJzjev-bq}3gT9rSk?}g#p zuU>NDl7;E1P1!@C5t{zs-DSPxpBp=__f%MAPu+68e{NCu`b_cjE6*#|fBA0i;wSgO zy|?&oE)K89k4N|MzV6u;D8Y~1r`2HcS4+8Jia{i8CVRHb0>EPPp!71Mna%5VWmeG1 zL$;>^vjveG^Te*Zd#S9oV9)w%w+O%!inKal3=$ zOP16)Sd8P&EV1X-&&39b9yb?4bs)Q>LJsF!^M;HcH2Tu!KI8qf#ts?T@12(>Rt_0U zz0u>nH+U}e*AsuLsxc`HNKNLX7ipwm>;6pB36#`HI&!&^{*S@q`&_(yOyzjJ_QI>T z`0K|Gshs%Y+a+~F#wLVU_SJVw6QC#el&+*}J#N>C-!&|QIl;4W*+P)&|mY!hJ9oL!9pFO{l?vsNXB)@&f>yeV~ zxN$@3`n^MbhmK8(rkn1)$@7^1yX+t=Rtrt}&R{Po^9fu@&ZYD0yPfS!2VoO~^DESp z%UH1DreNk=ecXG=HNkU@eW>D4aei)Ua$-Ce4`R3^=*n3?=N?7VykYNxdasQznAXl8 z2w1ZdL;=#N}s&pR5?$Fl5-ctkV9z!^5hE4IVLV*|1?vBOVJs zv7v12(6M8O=8T&-)#hE2_ZH8i{=Fs-b4?y5NApmuy}mAafWXU?9OPTfe5K5;`{e$Q zLhMRK$q$@@d=HgIq}gO3VEtzgv}&pS^pVAramtY}d2Ap7d|s2C)iLJXuYbA-Sz zch$Jh)^BTFd0siAZuWRvo<|DX=?nB#(mU|OpIS9+=#UZ9E*e(VRQq`Nr(*|;R1Y5O zy0D-A;c~WPPw$^F;DpPME%yoo0%Y@l!;&A#% z_OIR6z3<0=zAw%5fbUJx*loVQ>V3-kt?yCo4?JN#=-mJJpy_dRgr4YJJ6EOYXY`%5 z;S2nukDmKYXmrz$`k~aVjyd5AYW$j=!SJx=$y~Xg@g{z2=pd&TeTr`z7c|^WH@~ z&k#?Zi6@2A0W7YWEpO>MF5A{fvVA3Gb=jV?XM{hzI{dfUCwenJ9U#5fHO=1@m4(Klkt@d0e9Ul~>dm15HNBS+HhT;=0U5Q)gU| zxi0Yu?*lhqky}4=W_|7zH``_WIqyo(2)`FzJl&ZW@F@*F?ca=^_FYT(HrxA0&!xWe z@%v2IvQfLefAso&=hK!HnfzuNLSt5$(^9Rt96Q&H2EG2auX)b({&ACC9>*z<+gV#N zhO76f216URbf#Hv`93oGN1^`~NB_7bqMzKx_bd56EwIZw&wq;vXYM=oJAUBfYwi23 zpLeW{>L_xuvAL8&33$!IqOhu-E#FBd>q4 z;Ok8b%H-CLXid~wsFyS3>!C2bV_~I5PEdl5no#U z5NSDv)Vr><6Mys-TEF(kGe+)jQZJ0v)RxJB3#qk}j7V*)9(zvRiuQ#)4fZID>FU5@Tzm=)3f)!i=WfhfApOUuPtw~cPscbJ8m>K zX*Bmv%H5MXc~irCtMz$jg`YL)r+eR~uOHO4PIDECx;9#;E6S>A z7xYDqI^}AeH2a_4w->zs{(`5WZKiLLr`h+?8OuX62SW0Ei#AE#dr7Mn|1#Av+~B?a5k*4xESq4+LWs(|788Bbg-bl6 zR1wy`91f!Y>Qr`1q{y*F%qNP1geoZ~sTa#0hh?&{VqRH!TDmtb&u(XH%1i31GqE&g zMu<)!THm;!F@5btiyl~3e`Uppf|^T%CNIKe%SWWnYol+C1&nPkd`*>NLX#Yw#CWUg%q!9^RQO{e#QU z?>r7e-0y#peqlE|h=S<{N2U<$KdJE|4FSmgo<^ z&{tQ7n*;g3Kld^Gti;cxKq$tK=no&y4xc?Z5Zd-7qd%nkUi0h>TuU0QZW?y_girVV z>rWkTxQ>p-0_;E2FieH{7q2X11T4rBech5xpVZ_d4Oz2%p~2S!W1vi?ORO%ry0T z*2zHH*)P3x_E$)EsP8?`E&hL?FEICXT3tbi=&UE4v)1Sd)213d!S~)Rt8&N8oH-_U z)h(1Ze7)ZHV^3}10`mNH=RET**&p(>_@$rzuKUgAIp1dZ>pU0xpW)jx-M%?8j&5k| z>F6gI5Aq|H_gvL{<1OLv0ybiVe_c&JpYVOlL#cJ~bJOPV$pwM3bHYb!@be3Ane~kC z_sl0bZCzZieLjX$m?4U^b*9ZRoxZ5l)~vzfGl~{8*JtEU^!I2-e*Bxy zz3y2oE9uJD>7MU8?zNaE79%H395b2|l3J?1x$>L!JU=E|E~69kS^@86JzV%LV~eSi z$JN(X4;~bIrZ=96zcR;KZnb0hw!%5fTjHGU)vk>|tQ0cX%<_e@Go&5#)l_&GNn$tB-;=XTeK&I}a>tbL(A@p`r85`m(K-7I zN@pxMgKNS4=k8dtWXHKn9y<5jhn6(f>bdckUU~NL@DoX#%IU?h^xH9kN4ZgueXN@WA zmzSyYE?y}f*aF!})+TVX%$kO)rVQe~x%pE^Rx;>WFv{YB%n1Kdg2^6l9FpkuA!Ysq z9iUCSj2p5=-f)mNncG(LCQTgBUux*0vm58koIdfqN#~6nGoohLkp2?}Oo)}d)E*ex zwYGYO3xjPAOYM}gpWO>HL)^=kZtT6iOATH)XvXlGzO{LSM^+E-H?&|x<@DhzZn#~a zhk7)}`o8YNPE<4Ulj99|O1aoHP+MmC{668lF@!2DpjfwYB^UO0liV5>0JNGl6RDq8 zGi~VL!o1M%%;BeyT$g=;48znwwr%pDL>5glh9kN*o9ilUlL#~ca&dS!-flc=MeVeT zIsH?TZ!IaFm{r}kqWR$_;n2VV{d3dH$|@3)?)l!583Qifv52?hFPeLOUY~9(_4+C* zmKGIQ;iR;_%QE^U-B?K;_O9M{n*h7`UA^Zh!Ls9L2BcT)Q+gJrFPud z`Z1$N)l3*MVd&ug)dQ+yB{umCBsL>v)+!*gnPz`xiFCWC>shX>95=2KY}z$sZ1Z=U z$9CgWH_@}+8CN-I+_*uN<3^4h@=6B+^NQ)jeQIGxpSVWf`)Y%}Qg7Ce=_joZCtRv8 z!ACNx_PMxeXb7V1CaN@jpS}ry^Yskw^BJi&ar<{V>lzQ~JE_k}DqTNKX2^dP42yE~_{wVnI~R);HiM z3Cx<+8e#?QUX_@Zo|3pmr6;AOCv8+oS!qdG8&y_9T2{hFm6;Gq$Xuf`Lh+%D_)RK4 zE)*ZPQN>xIIE(wNy;u(4$mDy->)A;C3V8w>S?Z5aiKn6FXmpUvsewDs;B6B zEb5l&5_ODQs=lM1Qje?0xD#z2x8F?TCY(Czf0Y`{taUm6Wg{;+gXAt=Tdk?KwLNr} zs$p5#eJuH3RG4J?IGQ?IIodmxAf*2`?*e=^eNB1A5UZ+gSa}5l2_&<;xFfG-Hx;pV-Vk#l06?Nl0)x)!^BP&dGhATp?a5AeZV6tOk^ZToe zu2WG*j;d>MxT=89fz0f{FcU#l89#-yb=jLs?pb#B&;Ig{Sq^$&&bKFEgEv$h=Fr*W=<_i_24uA9q%NE@@ zbwzE8H*G}U>N)wrgrQjv1@jh_z3ne-9$$Ud{33tR1&gw$e4*Z7ar3PM!@t*W^cm5| z8a**Nn4inJs-P7gLKQ4ePZ=>NKi^+7F%(R0YA#CL?cX&2r_YW}uTBYOj2@gBmp^83 zAecUBQhLze&&pVklQ?v2)*N5|q5VR+3)f5uoqOq7fs$)34;4D^<3P2Rg6 z=r=IY>n#Y49GIS!Q&gV%us8F9YgU&J&x?=iKVbIW>4}~`NmlWeDU0r1IU)XVV8Dfo zODp3q)w%w}%(}j{pUYobHO?A7K68XsGo#qbsEHflA3CLI;u7mXd`e+*{}}^HFZUcQ zxoP&KdzR&w=KHeGTAH7cKd)lY*f9g*M$~5vt4fQXxo8Rp^!#Z^9M_7vx62~%&VR^diZ%6S2p;^=cf&fTkjt@;@XvSlT$L{ zYfAISr)0-vrDTrJ%IMoCJ#R#5@xm(W^7vU*d3{qoL2pX`iu56Q8KWxm;)7-V3sX}D z)#q8+W%0qpev_9j%JAnbm=vE}>sQ6(|a?Q8DUobAtJ2{wHSrSC7f*1MY z;u7mq{ob--tG}F6{HSA9@FU;N>Tg*7uh3PDlBHT@Wz#k|yHcn@GA0cKvZdBg->AWi zNV92v{Sqb!msS}z)-YVk1M8fMxQc?rc?Rdp4$1fX@R3J^O<;Si=wk`t}I&RP*aVdcGx zrfey;lKOZOr|+FTpnqI^-th9(*Ibb4eK@teC?_j@;K)#c*PA%7-vf7fn}TERUV6#> z8HI(F>51AC?@vxnZ@gyI=pB!@OlbCB9+%(OR~|3(0b{BI>60?7+&asjeR0#`<)ixN zPACjreoaZ>tV_=gOH#&IY9rmZE4`a`S`96GvM#H!s)rt;6?)?J~JgNE<0s> zerZj7MoRMBmDi3K=wBZrpdFZ zxhX@dGlMMJC1gmYmdf2{`KY+ec-W zj-Rw3=efkVIR8b|7;mtoGBY^Y8y6Ss=Z_ndQ{UezF7x_RRh;h)y(jof@BQd}8LE)J zyh@E$lNc|Zqp(Cgt}+eFh)f#KowOJX+ ztc-Vtm5U>iJ|de}_G3A9riyC9J2V5Nvb;RIMye{6qrAMXdbsr3RsMc`ynQ{%eb&UM z2jfzLd0CCVKuTY4z15Uh=m`waGXgq0C9cGp6DlfAw;IbbbbiR=o1f?_@|4ASJoAf^ zLm}_hgueb@ZkaxtL)JRJATcAHln{zb_anjyap)BNg50-}m{>YE;0aXuMko7x{)&{e z+M;BZX3IT^X=#bUzPYHPD!Kjl9ew;S#_0D?=)L*{tkL`q)180Of7k8YJM#8~YkSrB zZ$jIjgwD-X9=a6`>^}7W8AkUHp!;X)?-=dh6QliSN3{Q}UbO%J(tpxN^o#nZJ&XgI zS)s{M@%lsk9%BMIeHq8^|L%w&weyG|3DtWidTyo}5y({`Nt;wsc4kucMwOkAnaz+O zf&120tE^CF*6OIPn-hx9*{E{jLOK8H;X!74a%Sh@K{_;k=}c)1ZT#OMQifJvK0T2# z(t?x!J5)A2Dg>q_W-`d?wW$9$DO}6|ry5(a9{oeTPyawar@yYh_AejkUL_^r_%j|rO`G{I7(m^!`Tw&6sHW6D$)3L6O`)v3U`kvtJts1t z+Gy2#`=$hZO&&cU;3*t!mBgiF>%bfms z(rVLED*QfQ5r#!Q<#Cq3DYtJhk-5qT+IRVG3WycMB3Xe>wXNb>nx!>+x0P!tq(Ii+ zJ?75cv_P6JV>&&}SD|&FEDilJAfq}tATnZvp7c#ULZ^=!91MSVoc^Q!6+%K5>P{o`WfQ3DdNfYZw)l^ktC6%a3$COmZn>*&%2P#9~G||f$ z^1@PSTG_-^A>^XVGjy&lPNSLZm#Nd3@+xLcj`Jtg#luIi;%hI%F*2>o%F^Sut{J&z z>yn}K`t&I+?bB!8(Dw8pjrMcnkbh|Zbvf5rQ)^4x2bNY>ms&5D)`kyN^xaWBplR&b zb3E(xFV}3{x+XlFkaLH&ABl#vN{7xR7X8w-*Pa|=Wl7-nxB06d>^~{=%F7v(2aIj> zQ&Q}3Y2W2}3z@Rq{a$Gp;(eE6K9`~LZR@_}7_Cq9|s zXY?j{BQM;-%hnz_KqMwcuux7+sa~$$@fg!3nZ@z8&GVD>{tJoeUV>q(LgJbYZPNmO zilNzxp*ca-H;iJ@jGchKP0rxKn=rD<;2M-R;ftmiR_8HbXWTGJ2Q+N2>H6uqnVu@is2Cy=r z&6G72$6L}o`Ps`Z``(o1ruS~U?LF`3nx`~2PQJM5(n~3mCViRr&%~Lk3LEk;fo%rX zo%TfaiMdbML@5(OCHA7$kO7}7D!t>)yL}^N<3!Wr)2EHxH1+N`?|>7~^et8D{j>LT zDkStK&?FMjVf z*`z@l_FA^}Br^uI(x35e#Xq~dKJF%dlC++5w}9}2S5hXwRHaP%d=43WBU&c%USDQ4 z!M|yN*Q4*r`%qsJ`Iq@exWjCSx<8L6?&Q3LN>)#7cE{!uS znfc=U3H&=bZv+F*3>|NITLtQe;Kp9?btf*@J<0Dg0OuH5)pahSUh!F7dXWY~lHiGegI5WCW<6foFQb7T(_m z=777wm(CE+;qR6nAZb+qasPH2EbH?9d49V%%(Fn^S>Frbhxsmkbj-8-7D#!XAv&a9 z#D@DVzhlu`Jp1tXXb*7XIurML!k6@bt9bYM9`Fm^#X`#PGeZB-+sX|At@=7J7^H)I zzl(J(q6>fyl@JAn_7Tr*?+g%=>QwNh6lOIsBdqy0(Yk=bfMr z80&mL-*KhggFmJXtHl-M0cn4vzPN3R>tEuLZyI>O0wC?qTCfnf?fQMRB_H!!!cB6X zi+K(KX)h&z$cmZ;%E03QIWqo7;tG&0<>pD!6-bzDAo;%?)B&M!8gTP5lxKm^DLj&V zxOox3Lc2g{mH6ddh2uiE@hdb5jllGq!so>fT$=9Yw}cf)K3xbOTwaPRX$vhvU!n87 z3|I0evM6cBgNwj--|-%<F#~n`s=Px-83KMxgFdMs)6us z7GVl(*Tnl0&o=_0X@c`CuH;A3>}&h)n1{O*B!VQq30;n#u5NE(Iw)_UH%xhip(zZV zVal(g6-eHYk&bhDR|`gi1>j_1l7%I_<`49TC?>V?4 zBa;BKYw907HgQNi0{QMj;*jsx07+NU`~#47{&_$?BM`rLfs^1#AaqFm`w|fOUJTN} z=Yh~9Vcj@>#xwjhek85`X-Hm918=xMVF#+v`=|^wH6@Rg~o8RL9w?Jgj<@q;x zeiVod-U0}V?N|fjU&6Tfy#1_8_zo?)#_>xX&~*U0#a@c7&zIx=FZpYiI!?dUaRR&z zsDmA0a1tB=Uj@{&j_=_w1ZW$KKl%zYhW!V$J3Me*d)frQ(w|2lZ==68ZL8h|XixME zbaUG9HgT!%?OSjk;r-Wne$(6f&sRVSpv>B5@t!i#PxJf>-c9kgo|winaqBPOev333 zc>XnQChf+F-w_wQ{dleYPJIVI%Xmk=+m_?^H@qhueF@LJKlvJd$?r*MJNZxEFXjE^ z_#GaDn|XG@`;*_dzkSR*(M2Q=Z8w2J;)0Ggcx2v-OMjw8t|VRZAZfOJ&!)d^AJ52^ z=C_6h`Q|=%ybHg9f+qLbb%nmjGrZtZO@lV%GxDA>P%Qs@eZC)Bkk1Iupz&lo`G7Ac zU*UZQSPaOw`YH4k;ZAVk7MJuRaZ8$luKxJ#`f>9o`O;E%-@zRKRs+h~q8~JM?Eo$~ zWB<%4tA(McOo;br!$ZgRKsPhlc>|h)M=y@Ds$PEYwQMqA%{*;4t8u(aUmiZ?S)~ zjkL8L`r7wWCuUP8c6(d@fqZ?E&ATtcW4;?*K;%&{5D4EJ0BLt1uN@yb@BfY~e64dJ z`E#Egx9v*&Uj&W$d|S{Rrmdq+syFZ_`RV|TfVf0Q48LW&GA8RlwoRVCfeU2Z)v=$r zi}@|-Nm$%A@G-J;5?Wo^ZGWEMeE;}6GPBEj^78Q>@_ZKUhW54|C$A@t@*bX_SZIGg zk;C^L_H!F~I6+yo-Ggam(W5+m!cN@bn4zw+1-;b<^!F zpB)WRdc=?TH?k&m0GiaDpbbz?Mn||2m+~_G{9IhpF>@)R9{{};_w)9%=n2v%nD=>< zhm@np>!aY`fz+`oKtIXle0Et~!Ea>G#4rA6!_*^uqfAZsBepBgE=>8t?@0O*uh1iL zJMYbJ$%DL;_!l|P@=j=xI{qg3#Bs%spw+?eoZsR{;+F98`~W=r5Vsm^cECHMBSN>K ze+2Hofzd$P%BP~VyLm9WPBvG8Z}g!s(7faF8+=jL1T zE|}@K58_fLhJN9Z_!s{2-Q+=da4q;eko+wNA`?=l&ppM}={;>{#1HLdY=71D*@QcdpRQr#w}k5!mbOtBMAMUJ_E;N8 zpVSrd&3za9?7kCMuZa3_--};)@4|iGli%2H5>627ucy5A^iJ|3=;_;Medp39uFw=q zm-{W2Ug>wc`s*4-&9ePSxZeDqE)F;CPA+w#<5?he13Dyrf$K-ob>GE)m$Y0zXX;9r zp2EpHD<;iYKk`2In>=$SU+EM;|Dyi@eg*n~*Brc#J047S+zGhpfc8lAA>%g__j2$X za2=31B+h*BD!3e62QomKgTc6;bDr4;#pzM=o#Vb-KLcI^(gwcv8x54#+`J>Vd~FFUi8zX_}cTR;og3l4#| z9x~rmDht0^gwH0<9OBBse-8e0@SlVK z+$OLZ5MOQ!*b5GUx0K3LAO{Qs)4^u&fl~QFPy|MTM$ih{lqv`TXeyWtmViCrAUFp2 zUdZ=Cz8CVnkne@-qUggr**w+v05}RxC{>gS`hy101U7)}fIRdg?S7 z1pxo0%}SLKwv2enc~_AL_JTv;EyacBAO{e>|8%evtXFElHm)!y{Gc766&wH`C{-B* zd>>3agUQ3-qe=~_0kZ*V4S}{H&^BZ@*ss*kL*OmNFc6UbFyg7gts+bn{;KddJQ3^! z`@k{Krc`wiz;6xd*H(hbN{v_nHUZv^fTp@8a0DDzY9w)tECuyoAy@@AD>aJeQ9O_0 zdGr>g#_)R#{_9C=Eb)&$3Qj0BE*0zt#5a!b6|Hi7$f>*xncfMPMXo1caN^rqtvRs05S260ldPDWo%{9xMdVI%P9B0-$3m zbWG*@)DucggT`t7K?7(4tHBnq8|(*!nSKnkDK&$1W)SBL;+#R8Gg<&?%{T)K!g2t;X+ap09@HHHiRsE#KE3RBGK;uoLW7>Y9466gz@~6G~l|3W$3>?)q(@ zO{wcw0K$E410a8&=XnGCyTJ=W0ROV5a^osM95+6v)TSD+U#XjRf;~W4?l#`tM*6oWf>KZq7J@dVwuC?pm<^f%ac?2s zExVPvV~J9C66Q|6-`T3vUBtO{7}%%O-T1vnuufqf0~}Op8)<{*U{on{V zuGE({DD~x$U?(*g87o(TB%_)(?4wi=vJ>g$gwwTp1O2)B#h-`ELugZ+TGzi~{dZ|+m--zS52 zK^v;scBP&m+>@zbhf?2ywr}C5braYIT9o>B2vjQd6yKhD4iMLOW`jdY?ZMr{yQj(j z)A)ayc)v@SXSOJ{w-M|H$Cdit5^zwdXGem4O8v(|0A0_KpYIod8US72$KUtcl={IY zrJfG~T)eA&#Jz79;Kx4F-S?JKKZM>Nwt@qI-!I_z1>U{DyBB!(qorUyAncEJ0mA<1 zW$=Mg`-9*)rGAW`A0GkG{gXpV{d6-bV=CCA)X(-R^`Fh)xKcmo`$4|_B2lSd7Af^B zzW-`JIIPs6CZ&GOyI&tu>Nl&E`t3TU4&(1IVSYy(FOCG$0sdZG0oH?~-~)vj7C?G0 z?FP{E(m|zOt^t$5LV%xF@be0OULlQF9s_#-Y5%?jv?}!n{2n1cNBDk(w2m|a(mApT z>;U*VasV7>m#+^`~u0y&3{7N*&Ds+m-q+!v47c)PULGxKgiq!A<~;$4Kkg zDuCZ(djY(AU4c?C9q{dS;(dJ&I0%k`Hl^MOfl5I5HVgca?fG71V$x zumM2ZoBP2La9pXkp!2PIuoP?ty8!9D^?_1<2?5gh3u*ji30Mb6<1eJ~m*>D?KpJm* zK>=t0&0q`I4Gsa)c!xCJA&qwyf>mHM*a`N5V@kan1eKr>kjA@P!DHY6cvq?S$isUz zfIPgn8W8_`;SFc0641D z2M3k<8}I%`n7{8;>O*KbPMG6wDfN$SpiQZdwgcRc6Ty0=P7vRTrAqxX2wIf-q#m45 z>LhtQd0eTs=QtS=0y~rn&j!t410bI8Zm=I50r>48&JOa?K^z?m!G5Jx0ocuk>Uz)& zwz9812kcPVlL*!+PFI6{O8a&x?O&yIpg%aFbZ~{zaUswG*ohT~pSVLxGse*ggh?m` z#G9}X5H5iOH3>Vx9&ivG18qtt5=UYsm<*PH^j%!hrnCP9zy5f4g=G{Qm`K2FKrjt2VMprD4iZ;SY4nrV=T>BN@u>SSdIa_ z%c=phK{MC@$bZ&uupb-&$Cb`b1f`%JECj2-X0Q|N0SCb`(57^5Na?&vhW&@ZyNanG zPylMcY|sogfbC#6*bk0?<4PBX0R9RWf^}d!*aHrO<4X4lff}$75Ko_VfV}o0uYI>G zT{Ibx=i((w_e%tCDP2MurKRA2(q%=URq1llFMn6*3c~cqZ~qph2dq|lAp9J7Sm{Aa z0lchi0F4a%y#RlMiEjwuhxP~f8@3Y=Pt|iu4_^TYGklBE)w97-a6;)CzSSI5x^|n= zjCb^i<4V`9QhHPntX6tVqSE!mQ-2JjBhWvNaN`vy0u5j(*aTX@K5$g&1_g>h16T?+ zffle2994RP0!5$!ECriD3)lyaDm_twBG3Sqf=!?W>{ohHDfmF?sUfAOZ&#YJhn`8E zX7A-4rD}6};z~3cHz=ku#R{ZS*2LXJz zv<5)S@@)VfuHfBe&~+K~Ue>Ji8d8M z9~@PB^FbI2 zbNt>wdK>t@5n6AYt@I|s-9&n~@cWkIO5f@Q&~hu^ZrutV0|%Ja3IY7ywgf-}x~#r^ zKY+e13anE4jv}yu={Wq{Nw_=TRr)T{yNmelnhutN9f0(<9#Q)4R;BMD5BClO_}w-e z98~(gO3V;_JR+TM*r35zxv^Ypc#;lN4%g2)Pp8K{ErZS1g$(DQhFzTcCJ?XOQnE(e7OLu z0_5S#A1M835Rl%ZE5H^&+>b)XqwwO<6H2#)z%bAN8bO=VU*X+XwgUY22*Q1JgVO(| zz)nCqk1YYa0pTC71pI#dpweH1zOU5-^6)kC@U?A9e|;fn2AjclrFY?H*IuQ+kqV9~ z{moTM?Dfj=xc?x{=SbuG`27KKKR=Qw$=OQ(kZ?aduJjA|`B4+t3R=J(a0q;$ z^!`?*e@r|-KCJXlh5_RKX|vJ?h~sCZ|DUCRxc`&5fBu-#2Z{IKc5nckQ2G}QfO7c7 zQKf&`AFKv@mHriB4|$dT&2GTA-}3FZeETim4)g8sbU=O%w}N9zzZe3%d$C37mq_C! z-o3nD=~se)^!~74=_928KSz!z{imf$znTadz!vbF;%Y?jn9~2XO6fn7#-E$O38i1d z&uheSjJVK6_3O<_zd?F$^ap%<1AlM4tn{0Ql}1O@f7z_`+x4IkYy-skHu1kr*msEc zog6@zclH3nyth#4_X+b?!u)Ls;N9QeRr>Ed{~bSne@p2P3jpzbh`$dHDt$Zz_YF$zUgV4jch(N}s^riPd1=|JB=<$Jbd@f6p_|%skD~ zG~HWL;Fh#d+BDoHPZlW9EH|aJ&`?@P*qWQ5RX3m*&&YaoKEYCd81-!zX51{)4 zq<`=-bN&VTzmWgG1pxW|8~OjI25<%7b>{qc1>kPxe7FFx4e#WkOds8gv+zZLEaMJ- zGu(NKah_(}McjRZaejb|gMjA%uL0hf2(pcF*~7ROVtfkn z!P<=%F9H0DajegH=~@8NOV0x!ZR&N5W9`JJJ;r!>DWD&)i}C4@nT~vBgaCIlJ`?nr z?=wE@6aey_y%GR>=2ih-Vtn3i#^*!VKFGfUv7+(xsi-8~53AhH31-#7oK}P{VJLow8 z_?Bz{z?Or{0ha<`>%pKe4Fk3TZUF3Jd>LexA&;u_7+*fjc=Za#4-t%q7cm}TfL9rh z!j2gDYUTmJ>w~X$7T`L-%Z%5R0`6tFW&}W9^^XCNS3?^h%lM(N}7pHFT^#3veCaUcgg~A3Y0j9^-4O04;!17++fo zXa@{4e#`>EbBwQB0=S#;Hl(#dciRR4(%WtYz`nLu0q-+@T$XXHS@`kW06GNzKf#76 zjBmJu@r~sG@ScG11cWCd-xD8WyuA$oJKJAlyaV=iAl`xaNeqB;o^%!f`J9CEoO~1j zGN-HnfbUe`r^1d?|HJrckUi}t0Bqcp23*5<=N$m>Czb$q172mk>lDCSjCTvbr2v$# zX9eID#*<+HWRsvJf%i@UAgy;80A0P1?<)l$-@dZ|S-|Uz_s;{Y1)K+X5by@$sRe*G zz(s&vfcF_cy#)aL^rry8H$!Ig6^swu&G;Fh;rx(imH-gPxgj5Wi}5WP#xudhBHAwb2sCk0MA*_b@m3v&q4Y*;5`@Nxv=rv*BL*r1_0a6dzta`LjcI0 ze-Ypf#xH=K7qkKH0KldTR{|~tfcK(#fNg-M7{7QHpa<|E;2p+4xd;HhPa=Lv3*aWk zFI@u20A6SOGU&YQ4#sydKo0Un z1Kw+{1E3B*1)Dy#oAGPGf9*EF%Zz^-`Ft8_*CD*_9mYR{_-D^!{CeoPVG*Dma4+MZ z6M$0y4>Eq^6ae^d1pnvL0OWI1CjfcgbOYcez-x@(%mC1F^9I0K0N8x95dXp}jNc00TcPjPrx?Gj6wm{Bj`1&s0NVif0{+AJ?Ja;S07$z-0HFVl-Hd;! z9*_aN&iI|+xf3#Xg6FPs0C?`Y3Gg!Gch>+e1;EC8)&lNk{L9dTwGjU@_`k9U0R3Ni zpYeMkd+!ne`0l+G@E+s$0l%*Y@F3&&&jVZvc#83_Rsj(I>SOrH4d}~e0LTw#k9_<( zz&niZgr1#{djMs6;5-1*AB4UKhXKzq{!lppat}e@!{B+iAAtDRN&(>c8sfW<=dQB= zkbPtk0D2xlSstwcT*LU+PXVMEe~bZ;jx$RB*z1fxE&#wEzXso`tSwq3b!wJ+}dXGCYT}J&*L~cQgJ1 zWL|*Giwpo8Uc3Tu6995Az5;*^FD(Gn1GWLOjDNcvPz5*&&;!T-ZU8*S_;(foRszmq z{JXa@{xWR)ektQW0R9T{{oxyo{~Y=J>JG+#jkG_70ieIt&iJ1%0^ALFhw-X8QZqc!zxPx!(-Ai!}9{u~bn#X0e>?Mi|b^tz=Vd;|X z<1C`MVj<@UihHcz!LK10*(ogTJVWs!mgZ54m#_o)EfgUaqL_d$#17-LV zkWV1{zw186$PS@4Ql?IH4Q8M;H16OgwS zRim`J{JIsac5P1~Uy@ZpYux0eYj_xZNz}70m(F_-|3j=1-_+K8$0BtzAcK?;v#q-s z8g;%~{=ep>`(t6hDeNKDuspd(&)Sni*QKqMR@grXeIa~7T-S4kZ8i0#`?cjrBkYD& zT}S#W_967GK~rlZi0dA!d5_1pSJon2hZ@nmdQ=3O*G|x&Yjbk%iJ+Hiu&uned;@C| zsO<#w>E7LizdG-&z_lGA(>ASWv*S!WgOL@=)rK8qqbQ3W*Taw)MUJ`$rxEJD(T5SX z4tB5of0E(wYWVljO&Dv~@foDxkM}l^MeKR_vS(rWefUz2fGzj4Yw#l$i}7{W|FVx* zkAn|RvxC^1&J_Hrz!H{pik%Yn9DBhjWiL8YoidF0rR;s&&ML<-^)lSXn#ro1S?nce zHv2aF4t{UoyUrYEt}~Av>I;R@- ziLxJ}rheqaoEpc+x4i1`_4z}cdZz*3r#}o{W(E5boYfwBzePYw<`ggWq=8!nQgmvoYrsd_Vs* zXA?Wd>2wn8Sf|VB#xJ$^I7z41>BBel+wjA1{Z0zs+TYB!Ica#h?alyx-{CBFCcXwc z#BOtj+1YFyef({Bp^dmJH{y)46PyelyZy%*bGER{*onA5w+%Pr&SdTE9Oo14Ja#@i z*E!2M+d0QM*EtVAs&*27TjB!eLgym<&ci9}E&O==qqvE8s&fhZ1HLGGnX|*W+_}QJ z65sv5+PMbbp}iKj@2+z`gYVB?@7&;g&biU~JboA8X6F|CKESQcZTNuZ?f5;5FX2;~ zcj0#f?!mWfzk=ToxX-!Y`6|9-JMQenw`(7C9&#SWFR1Qv9&sLZzK&0CK8_D?egmK3 z{3gDV`=s-f^R)8}zEk_0^Stwd^CG^R`)%ht&Uc-co$oo{cYff!g74`5$oaAJs`C@) zr_RrC5Af&sw(T$RZQWlxzroGG*PY)vzjyxNyn%1+{?Yl9^Oo~x=WXXN>}Gb0^N#Z_ zzQ6l7=RN1|&Oe-gI`2ClIRA3~jT?pkbv|@H;y481`0f?gU#U{~=-Cur#EW?eFU4=s zm+@)5oKNR7_)I>F&*pRZTt1J_=lk#qzJTw`_v8EHBg+f<0lbng;*0r#{2;!BAIz8X zWxR?n=hgfW9_A4q>ej- z^H1_i_@(?ZzJp)Rui#hmtN7LY8vZGME&nvXj(>)KmS4|r;Gg3+^3U^|_|5zl{sn$3 zzm0#9-_GygU*dQ2yZGJw9{y$i6@D+jkKd2q8O`!>zLP(|ALI}5hxym|F8&CAlz*K+ z#vkWT@Ne+l{G0q+{7L>4f0{qTpXJZ-=lKi#Mg9{1HvbO)E`OPSkAI*4fWN|j$bZCt z%wOd{;Xma+zr)|< zf8~GU@A1F$fAD|u_xT6>U;N+vKm5P^L;ew#g$}-W=DNa_u5vwhid*CsyCrU^JJl_7 zr@7_sba#e3)1BqccIUWr-FfbOcOSRHUEuEP?&t3BhTMhj0dA$c$X)Cn=pN)QaSwKv zy35=ucez{b9^!`Gh#PfdZjI}^wQikT?>4xHx`(+d+{4`?+#}tUZll}eHoGlu+--GN zxktIH-J{(#?ppU4_gHtG+vXnUu6K`jH@F+!6WkNscKqVoN$$z+DekH6Y3?Ss(@nTt zZnxXxCf#1Q&+T_p?&+ zx$b%H`R)boh3-Y}#qKBFOWaG{%iJCAkmF`vU)$TR!r`&7ZPrKK-pK(9yUhm%E ze$Kto{k(gVd$W6s`vvz__cr&7?(Oa!?w8y<-Mieo-Fw_GyI*ndb?^{pcbEH!`>6YM_c8Zz_X+nK?r!&+?zh}0-KX5A-Dliq-RIor-51;! z-Iv^NyWerY>%Q!M&;7pp1NRm8hwhKuAG@!*KXHHR{>**N{ki)K_m}Rk++VxDaewQ+ z?*7jGz556E4fjp=kM5t`x77`w#b@?)&Zs?!VlByZB8= z_e1w1!SIX8T(|-sh7(G7Vu~md#iB%%im9SZOcUi|x|ktmidkYdzVtR%%oFqR4nl=k zAodmb3b_c0h2j8FDHe&v;y`hbSRxJAjR zVPb_iTpS^e6e~reXcEn$MZ`s`SS5}UtHse`jaVy=5yy&kqD>qp){EoC2C-3`AWjtR zqC=b{P8O$#Q^jdwljsx)(IvV?55BfG3tteQgI`;j$L8ZgYz12&lA>4iiGGn1r;E)Z zEe6D(7!t$c3^5``MMjK?En=(KCbo++#V5pB;%sq_I9Hq}&KDPm3&lm^V)03FiMUi; zCU%I+#TDX8ah14QTq8aut`(ma*NM-F&x-5C4dQd+M)7%Zlek&jBEBGQ6}O2mirewt z=pF1m@g;F5`#bxGxJ%qE?h#)WUlI3;`^5d?t9YAZT-vo>@@6Yk6F@6+$1|?LUze+*&~y(SN5?={5n8CyA;1Tbvb@_>I!xte)w>cJY8;WjLlz)z z{HJ_hejxuP|1JL`|0_R~AK|y&9mSQagpx|>ud}KmRjf)>shX>~C!^VC9hfT~oB@Y~fFv(Ksn)j?{BI#?}L%T$$G zuBz1`DvX~_h^m;XQNF5Gb*f%9s6*9ZYK1yn9ifg?D^;UvQq8JG#Z{|XrH)do)zNB= zTC0vx$EtOzO&zD!tK-!MwNag*PQ+QsU)Vcr7xp(-vxT@4{~2~2`!u@?JD@wT|G8GR zs}6ONI$52Q#NJU!~OPYO_kK0X3+G z)UY~3ji^zTQDbV0+N!px?dnYR33Zk_Tb-lMRp+Vm)dlK8b&)MQ9qMv* zg}PE*rLI=js86YD)u+{U>ND!I>Uwp9`kcB^eO}$9ZdSLbFQ{A9ZR(5ac6EpPlDbpf zrS4Yus4uIpsC(6Y>VEZAl~vJjy*`nq~dJ+7Wm-%z{NH`TY) zljLvAU^&RzH^|Jb&`o8*sdPV(E{Yd>-y{dkqeyV<^UQ<6; zzfiwazf!+ezfr$cudCmw->W~UH`JTzkLpkAE%j&hw)%^DN4=~5s{W?lQ-4?gQ2$i# zvq#hi>R;;L>Obng>O=JrKKkn5*Y#Xac+yjz=S}g7ykf7!EA^&&W!^Ne+?(#r@Me0m zyxHCy{KnKgZ@#yWSK%%2_VxDj_V+^GLhk^t(p%&$_73z8@|Ji9drQ4#UX{1ptM(4@ z!d}FSdNHrY^SxTH&a3wtyhFXiycOQz-VxrB-b%00Yx0`C7BB9#daJynyw%>(-WqSM zcZ_$ex6W(xj`P-g$9o&Rjot~~iC(+c;hp52?49DB>Ye6o@;beQ*X4D4Jzmo5_4>Si zFXf%?ZT8aMfH&w3dBffr-iSBqWxO$Oi?`L==56=R^giL8<(=)F_*!(Ge zd+%4?v)*&w^WF>Ii{4A#x4rLp-}PShzUO`4`+@h0_e1YT-jBUky`OkL^?v5P=Kb9J zh4)MESKhC^-*~_EUiW_I{oeb7_lEbT_ebwf-do!$J(T03zBMl zH$K>>)|qUkuInEg>`RP{4Wtue8E>7597(~@ji%u0M4RD>`3#Fr>`5g@ zlB20nbz(r>tWOS09(MW^H=uVj_ zV6Tl)r)*MVHrKHUxsFj?j8Uf?Go5nGcFL_bqpkUjiniuDG-AbP z=9)z%s=K#@BP9uwKyhP@iI*qxIt-yK5#&O=Mz4vNQvV{vT5XWxgf^W7jQu9A3@KXD zm&-3&UeJj&Pqftfu9!il<-3!?RZ0i3sVGf4IXY^wl2ooJu@c+I3|Dz-Vo_pcsluWF z4LYJ>FG=M}7AvK0X%b4QZxUCoI5BHY%>-*|3amjqSJ0Zt*3?Y2256x*5Y1UrQ)ms4 zd_99JXHAW@#-Ct~UtkU5IcxmM*7y^x0a|DcM03{oh1LMcTLZ3~HNLf`c7ipv1=b** zv!-^kHMJA10a|DcM03{E7Fq)&Zwn$j5My83|J{M~?NRf6P#A1fO ziCYcz1sV{~X{ayMP@mHPmYjxqtD&Jl1L8Ri4TTySavH#r)6ifvM8bIuIv!|8&MwwWOz(@~KNnZo$Yao4%q_2_mHIlwYEAI#O z+emsENl#;Q(MGH~5~)o0_GuK;tB}pf?(McEn@D35X>1~knn+WV)#L{))kKyxk!8(f zSu^#3W@`CnYLRBD`DSXdW~%vSYM~aAZy`Hc$c`4WqlN5fp%S%F{wMBI*}0s&Ajl6AS18 zPW-W;95ixkDBl{&w}#476O@PeYslUjvbTopsv$dT$iAAuzCb_aUqklP1a<~|0Up#t zkPq4GlYXD_^C=%c&==T8`T1mjEtQ8>?KQQeA3t!em#8(hlz%PhsipjCNlzWg*HJyx zk$fG=*O7b!;SB*!`Wi@I1L1k{!8q0YiicRuFq_K%C zY$8ofq^Zej@`Jgfi7aa(%bJ6bYOa}DpqXmEnQFY5TB?~^w3%wYg-X^!cC?TkEo4Uv z+0jBJYN7mFDBn2A$4Nd;@^O-nlYE@y<0Ky^`Bsu|CHYp8ZzZ`_l4~WoRx9VzobS`x z!4F$GpXNM2Y~_8L^Zc-t_roL~vHAM62Js^#PiqIC)(n1x>OVsA5t665-w)>eda|!R zNT>X14)>!ZA8nn|F_h7}=*_Y*J=~uVP036`u1X9HBuw9qVYL$<9!;f(2E|E8a^pze z(2tl{jbkdgCNVsmz**2hS5JZ;Gsce{-&e~@u|Lngu5Xz=54g9 z+_wId+YD$MP1$T38;VW-nW4d<(NfCMAXAW|i4^G!Z93_<2@sQ7?+o zd={f#6r=epW_wel)y`W8O{*a^qXnU9eS~JzAT+Ir(2O30rnMujcD;a*`0Y9ZIO((N zhe&I^8I1^uZdanfNzTq^z$qU)uK}lg=-92*_RdJFohK2JyqzzBle``Mkyg77iL~1J z5h3Mo=SkosZ|6(kByZ209;Yal+mvO_xQwJSW}q}R@m zkyblDA|!b`4+5w9kCD8c2SF!!+ixPR)=MFzdbZvx(rV{7gk+zc$AFW4HKf0W^xJh% zq}BGHNUL2xMOuB5xAPZp;`hl8yWRpn>9y-H;3Q{P(2-U`>aX0l^~N0QfzXwQB!csLWMQR6cpA($Ya@g zB1S8TSY6$G{aj&WG})6L8%$(yE)7>Zx_zK)C_NX47n!}#_YWjKCf(*lGi{7!+8E8W zF`8*(G}FdtW{%MwB1SWKjArf_?IB{c#*fhq8>6*;jAq&x&9pIE^T%kWjRk$muJz&L zObsA3D-48YrbcL18VJqIiO{S#5Sp1k(rSG@LXx+8EcisTWM8$v;;#?*DF1rOzn=29D=GLw(qm_Q;H1aS{J=?%T>-#eO1CWz-$(Lx#s^O6cIF38 z@^&o*|^w~WdaN_r=UhLij^q@bIPpk`kGnL1# zEs!6T$L^_tQ+e!47QUGBw|f)dl)v4h0H^%zUIjSmw|f?pk9=@lFvn239gpzkq|dHl z;Ik<|yY~Q2>2?nSobt1K5#XfH?nR(47zcKxAFFGe(VZBCZ%qu2ZcnEZU8(NTp*=|n zH5O^{?L-`n*g=ob7#)q+L4wdsXb4TEBBb_N zG+hOu8G;BKY&+?SF*ciswpmBWW*xOQ+nBc5@M)V3pS9UUt<8qf*sNpLX4(>jX~P?) zqq%Ss*=*e>4wK1d>z06%&DL!IrygmSV$q0o3kYqQBi1bdw`Go4w*cIhIbxS~z#EIu z35~t|rKZ!^_-KjlbQCW&MI(foUpIs4&iYvZ>QFyLi_}n}E^jU|jKUd&H?P-~&>FY< zkZ9P>od}Il;jr}qz?+KABk1a0JP9o}`oneAnckwr;7}%+PNoue4N+&tdbG~2I}tX_ z=--ZquY;RxU{2`g5GjENr}UggAMwxVf^O*Q&1}NMQ^Pq+lQt*uysv<`fQTb{lx;%6 zy098b^$i+{8Nwh5%dvP}r7KI6YFw@r4?3Wxh3UmaZUkY zQ=UA_lDja@3WzzhfYUZZP2)6M_MV}wgVo)M(d6`?&^bz}tv7w4DLFDVXi@EP{9t^N zJLujL^{3muo~P9AJ7L&c7hpy^R7C5h(;&1}+Px(fEz9=??F6S8)Cy?4BxgaoyMPsy zJyOW3@iKBv$-$oL(c~G^2^~oF^rVxTQcjf7OkyOX2{hP^F`M#yb0-Y8Jbgw%6H_L$ z3rKm!Sq0QwX4LjJGZLqEoov8t+pdr}Dh_vxKQM=qxrZ=yoJKE!WC6eR{qE1MQ|1gp}vHI1$PU z2&3WJIn;m!lN26i*G+V*pwv%nX;a_&v3LCxI|#N99`aJlkSHvT-j)V!wQ~Y?|mQ_24pV7)<+iH64!l#l5M%v5{mCuIZWa zAGarB(Ri$JYQ8;ty3!@V_=QI>ml2@ExQ7yS3P@9YAQvwpfpqs&ic!1e)l$n?$77Eq zv92*oj9Azni6XSN*4cGjw9an#u^yu`)Wr+Ny!KaxV_xHB`D!r91|@fcI_?UKCKo*V$TOY&NK zasb>e$!lW`MWX{L*pBsNX=-pw4sl1v230SvGNzM4|Bo99YdYD}m+T%I#4~(bgjju@bs+j)CMC>E48WO<;%efiT+EC+qYNE& zCYH5!%-K5BgLQU5L*wPCrG`q2U}OX_3r63(0>Y+3moO_xC?p#3LV__T5{VV*HS7RZ zUbeK6NNq`1GMz3gW{o{#iq_aOr)aFcX)5;cSfvx!Y}`N^NhSJ{>yw$Wk-&^PFv{az*VSTO3%E2+l^|>o-;-x_FNdD-Sfrlv!Q6LIX*3oQ;z~W_ZifW z=&*Zj++#GA4JNm0ZnCRna4gpY%ZAfqqnq>})9YvE&^&Frp%r%Sa#|bZc0F?n2nCy# z86;FdniY@=^(~l0oX}tP(;GwDj?o6UaGyKFBu|)v_nAPNplqs1!U#5{ogQGhz3}Wp z%3i32R+k%I+rzEPC?HJ8wag^sDtS&0oxnBCknP$=do62SVUAXhX0wfD1af~2ZI(d` z)>B&3f=R>)+3r6%agwk#E5GuYYxwQTr_ea;P=k|(3GGurPS}m)+yYXe1}wpH8uC$7 ztON2m)^0hjLTQ`7y^vhk;V@n3J(Avc>(Hp9$%4jS*q<|ku`$v!d61Wl_NRI?tAp`8 z&7kYX0+&>3=KH`+nAP^W-lLK@d>!l~>I|Y5II`)ZV_ldNGI&3QnC9gv6Fu~t(d~oX z{dnRJKe8HoBjUFn#Xe2OI~t8R%f&O|7A*Z!naM?%kEd7}y-wJ}J5AA}02{k-k?ELv z4_7>p8iXS-QQHr7)TU!aJ3{FuYSVRehMo{<#|B@l_iJXtB~roOq<}HEH<_b}1qq~K z{v>i>HGP5#GviMdH|vZ^qQ>a_%DP~u zI(33V@}GHIrcF{bhdTD8YMnocoL4Y!QcA8gn7z!o&%_et*e922?nL&Sn*9QL5Ke6G zg#kGT_h|c2kP?KGTW{YWAqXeb*dF4O4c|Wy3&Ke?I@5TqiB?-byoafF4w!78oo6N( zWf>=1Vm7nH!Xg5M`n@b7G}#t)!US*j z*ulI-$D-8k#=V<#eImVwJ@IVSX~ ziGq_mmPuU@sGZceOrr7edulZ0+p9L?wD+dT6mG8`)?_q0-vPUlSjXcuQTIdhD5bGg z#K%U=g_UU7Ugbha=NC;4c#lSJRj9L<1Q=S|h)3;ZqG;4!rj14$YfFPZiS3;|w~5-P z-q9%SnemQV5$5c^kufYhtQtBvTrikPCG1W*+So7!Z}i{_&0wZDg#%+C>8^Y< zGi*TbD8Wv>L}mb{7-2Puo#B_KYD)a?wU}V+wSuCrXbV zqxNPT==O15)ZP+^M#Ig;_EA^9;PwGLSR+M9(krDTRV6*&j5fARNe&EWwj-f9J=CWc zJ2)OFqUg{F4kzFvMw8uoYbMbb@S?Ep5mCC&9=5k~qcMAb4WaE6F?+8KxGhDDp3}wb zy*8BIwn?~-+J;U>qOsc2k)(d-*jif_Ao}1UnVE`vLS!2XMDQyrFy6O>zQX!woH9Dr-Jj`CWXgh6o24x-HC8mI#5QI$TvLQ=UoaBm#d6vU zbLfOru*Ui#RG7XGmFrLbRCK@;7M$D70asbze(mFk6734BZG3v+Fu^E|_&7ukR`43H zDE~{6WZyj)Qk-p!#SI5nzhNsVN=cm zOPOIPcJ~m-2WD9g4~H;ATgU83i8R#V4NTzXILVk8X{awUB>jYjC=HgP5BP{uYbjkr znf?+|nCG{bVWJUx83wOb)6;HhhlssY6^++Gvsz^z=Jy=(^D z=2vGgGy=EoqRw7E18%#0oxP|FymeX^ULf4OUO#kh)YWV3_35UAPd6R>`dE>!G;_{F z9M%$_?mGDOb+SvJ0^u@Z0hhg074_{!TZHyd#mA|4x|jIj7R}yY__3x#(s0F(xWeJU660z z9Eke%9vVX1^?Z8|4Y+k)zP+yo+;%)J1*jqCRy|pSq}T?@A-vcoEL73v;%& zjG@tXR^Q$ni~9EF80dC}_U+A0;M9req|UcD|Dc&HYK-IY4$k;{aK>Q0fKN|;e3~A8 z`;;Y0FG?Y_f6h92+3r7;Tbp;)n0@KPDQ2LH@6SQ z$6k~MPWIbNb>O#t!>3z2zP$tpIyJhzNDaA0+!51N+cmV!`hmvCzFYfKndI^4^CRYv zdHs-HF7`AJjSOP`A}-QHGoeq@tWVRdPsXU!<>9E(2 zH-#oylNO zQ;^>ro*EEGv={b_Xu5ZR1UlJGm(_fFnoDmPL0@2ZP(JF8wCwWf*#NzD1bb<6v+rwQ z_!Dm5lK@V`+rCc$ej1jv8}aQOXXHzK^zhcV??Zr}hBaNb^XW34Z|}0AJocFcz3&M< zG`wl~K<|ZuPIl2lVV|~2zJ0$0c9NWZuLC&wbh?J>({8}0-GFcJ7K4xSr)MSf-YEJ5 z*=^q|MLCF%*5UMiDEP>o(DOBV3k>{JAN0(H-aAEp)IRhK#;0qqzI|TZ<}eG$!b=hD=&4vDMxmuta*{IYt)~W8u0Y^Bsupp@FU< z^W_2^)4bsry>b_$mxN>V5^#(*Rk3hmk@-4AfrRn$kTl%{p|L+4qnGny^qMd|5)0!| z8BWjj``n{=#+Dhv_9LCxKHZXV7qE{g#++y~cG~)*PSyClfw>t0H4|&x?o;q`hW!YX zL5ofCY?MB6f~WP<3%?m-5~taXf!@y~f ziU&f|9}t>ukI=ZCI9)$QNa=R79}nBz2126S-3D+g2L;-~c%1acNpGC=#;tomx@m8O zX80pCZV#aut_aQWL}=U=!X|g^>Q$bp*Y52?KddYz#MBSNSH7K(KEf9<|8M?1h%ZB4 z#x9cy{650I_!ZA~x%HzrMeL(DKWs+|rG50Kd`;}DX*w10N$HHqpXQ}iF{NM6uE$re zw>a#>bDYu-M}QezywA5t!B5Y!s!*0~Y>#(@LTh%hvg6id)$u2_XKO05OFBAxLpwIM zXZhm9BUA8c!0ztKu8M^Vv#cY_nk!p&qO8rGP0O=RRW{VwyFAOQDi>BRT%L8SLOl<- zvu3lV=IqSoP-kb;IG@$rG``qv&f;f_wuQ2#m54Mada|Nz+fID)8EUc%lM5DV>dvy+ zPSb)AqLocMXF4;HR+(jO?a7Xva~#dNJS(cQ?y~Ic=60Q5c209MF;s+lLfPGIS#jV= zJC`_9o8#T_tctfU%({y^)}P!C=87Hdp=?_lNGm%kLfLv9tMBLtjazP5v;-u=LfNoR z4{OfdZS5h{#*RcNTin*(2}($(73)~7j@5Qnbar%fRG_x9rOn-0w!S^f)@bI1z$?~d z_tUZc)+Bb7vu@3?OR}zxj-EtE)>+okK_%!2^`JbJO&!a#vMLl0WyRtI%H%b-wP(G` zrtFl;CbR%VI+tgasczInsAt^kY6|H@UEB(5zW$q)o$>ChT)Gg6&7mEk9ms1uEEl7O zj%)91t4OTxXs_&8*b&OEJiZ-i6}n!?l;v5kDqGaNY$txA%+&f6pp{LP=q{B_i7fBx z%{tvMBc4(H)7GrI3)y|?a)*NqIx-i#qN~$Jyq*ANJ zSq2lDQS{DGd`D$MH>#;@R-qdt8>)bjft6_5%0!FJV(Q0;XBR;V!nvXq3YF>pU)l7) z)Kccg(L@!M3pF^+wPlroTJ{=y6^679X%BREX zs?Z8Eq7JD-70>Go!TUL#x^pBDW~+7Q4Oe9kS(ZHn12cj#u?k&xuOqWEQD3P&{Qt;- zez`mw4cdCVOvQEA%SM)tOJ{bx9o|v5VyvKgK8~lRD&!l>eQ2|K;(PiFxS_pTtLbdc zgJxcBIij+DyvCWW%UX;2KmqnD(}_`&s9&C~tE!&6VtKaye`7@t?*@AVnuyI=9I6hj z(!K#zyL!itRh6sYi`p>*!u?`us&|~(vrxl_!imkv&IOx*UtMh2#!FdKwxoGkaz}M# zD70b+bRIU5EmUpwWfevPafh;<+PSPeuKfWKlA($R#DQ|3jwbDLi{ZVIKP;$h?aV5) z_QY|Eq2(;I)01fK?7=9+>cXq&0OqNN&G)x4Qt%>@IO61Uraw0IfK;K?6 zfg##AD-2>ZhD3+MR5HmDXiVs7OB>m2&K8E$g0J_RwF65h_Q{hXV2@bq}IX| zusnNYkejJ}YOYSb(wSW3pov$)e^l#QY|YMXZf~o=4%tr{=Jq@#Pk>G}V6U3%5tI@te9FV^*~{n(1i`ig}G{bgYX z*|`c1_|RoRtsDjHuw@H%o9TL?(&VaOHL75?9rjqJV1&=C&emd-AN?`(HBjfwnwhNw z&)TYN1A=38EyhvZp;pYsL2Vsdr8{)?7*zARs-29rBGQJ4qa(*v?Q{%fJtBs3yyjVj zqz#%!M>c969XUbs=*Wpx55OBXBi4=>CV9j@>}1Vw-fHajCrqolGHpp(yMuNq|eyZf>^(?OUF{i zE*(4F*rj8eja@pHHg@UQfU!%*28~@hHiSA}k!!$VgJoAD;S3vXM07+~x@OBZ0UO0! zi>T(w*r?_iGdwy$^K60e;W@2a4Q3>^*{GJ-Zljw0Oz1h>s{DkFYKF6HR5P3n-Xn7Q z&M}zLcdm_U_Va91v!4&iBdop)Y*aH`Xrr3pBJduW(|57KjJ{9WsAj*!Mm77TkUY}r zyUa#4!wwtO43}5!EHO*mtg6^4xEsgr33FLT)3WT8WY%5Owk?>@m+Lteo5APSV`=GJ zh3U?2|Axnz*Yq%Bjgf_tE!D`%(qr*68MRXmoHEao#Y9?<-^@7zU%2028d7P~6Ek;D z-#vAA(QdU8KY36Bw&_hzu$8(0n)V2OZjZH$FLEwD4m*cS+cn$w0nc$M1uaeva}7q*;9`%?e8OH+0tFkM;B+sm6*$09*{kXwY2Dh JVW8mO{{dG|E=m9Z literal 0 HcmV?d00001 From f632482cee501e221d5547aa7135637f63ae72b4 Mon Sep 17 00:00:00 2001 From: Chung Shing Hin Date: Wed, 7 Aug 2024 19:36:03 +0800 Subject: [PATCH 07/19] remove compiled monaco-textmate binaries --- .../monaco-textmate.bundle/355.bundle.js | 1 - .../monaco-textmate.bundle/745.bundle.js | 2 - .../745.bundle.js.LICENSE.txt | 6 - .../monaco-textmate.bundle/77.bundle.js | 2 - .../77.bundle.js.LICENSE.txt | 6 - .../monaco-textmate.bundle/app.bundle.js | 2 - .../app.bundle.js.LICENSE.txt | 8 - .../configurations/bat.json | 29 - .../configurations/c.json | 32 - .../configurations/clojure.json | 26 - .../configurations/coffeescript.json | 33 - .../configurations/cpp.json | 32 - .../configurations/csharp.json | 33 - .../configurations/css.json | 30 - .../configurations/dart.json | 29 - .../configurations/dockerfile.json | 34 - .../configurations/fortran-modern.json | 62 - .../configurations/fortran.json | 62 - .../configurations/fsharp.json | 31 - .../configurations/go.json | 37 - .../configurations/groovy.json | 25 - .../configurations/handlebars.json | 26 - .../configurations/hlsl.json | 23 - .../configurations/html.json | 33 - .../configurations/jade.json | 27 - .../configurations/java.json | 33 - .../configurations/javascript.json | 35 - .../configurations/javascriptreact.json | 27 - .../configurations/json.json | 18 - .../configurations/jsonc.json | 18 - .../configurations/julia.json | 35 - .../configurations/kotlin.json | 34 - .../configurations/less.json | 35 - .../configurations/log.json | 3 - .../configurations/lua.json | 29 - .../configurations/makefile.json | 10 - .../configurations/markdown.json | 48 - .../configurations/matlab.json | 35 - .../configurations/modern.json | 8 - .../configurations/objective-c.json | 25 - .../configurations/objective-cpp.json | 25 - .../configurations/perl.json | 32 - .../configurations/perl6.json | 26 - .../configurations/php.json | 37 - .../configurations/powershell.json | 34 - .../configurations/properties.json | 25 - .../configurations/python.json | 141 - .../configurations/r.json | 24 - .../configurations/razor.json | 22 - .../configurations/ruby.json | 31 - .../configurations/rust.json | 33 - .../configurations/scss.json | 31 - .../configurations/shaderlab.json | 23 - .../configurations/shellscript.json | 32 - .../configurations/sql.json | 27 - .../configurations/svelte.json | 37 - .../configurations/swift.json | 27 - .../configurations/terraform.json | 75 - .../configurations/typescript.json | 36 - .../configurations/typescriptreact.json | 36 - .../configurations/vb.json | 30 - .../configurations/vue.json | 34 - .../configurations/xml.json | 34 - .../configurations/xsl.json | 13 - .../configurations/yaml.json | 35 - .../css.worker.bundle.js | 2 - .../css.worker.bundle.js.LICENSE.txt | 6 - .../editor.worker.bundle.js | 1 - .../monaco-textmate.bundle/editor.worker.js | 1 - .../f6283f7ccaed1249d9ebbcc5a55d5970.ttf | Bin 80340 -> 0 bytes .../fonts/FiraCode-Regular.ttf | Bin 289624 -> 0 bytes .../grammars/JSON.tmLanguage.json | 213 - .../grammars/JSONC.tmLanguage.json | 213 - .../grammars/JavaScript.tmLanguage.json | 5740 ------ .../grammars/JavaScriptReact.tmLanguage.json | 5740 ------ .../grammars/MagicPython.tmLanguage.json | 5335 ----- .../grammars/TypeScript.tmLanguage.json | 5487 ------ .../grammars/TypeScriptReact.tmLanguage.json | 5740 ------ .../grammars/asp-vb-net.tmLanguage.json | 238 - .../grammars/batchfile.tmLanguage.json | 738 - .../grammars/c.tmLanguage.json | 3197 --- .../grammars/clojure.tmLanguage.json | 435 - .../grammars/coffeescript.tmLanguage.json | 1316 -- .../cpp.embedded.macro.tmLanguage.json | 16220 ---------------- .../grammars/cpp.tmLanguage.json | 16220 ---------------- .../grammars/csharp.tmLanguage.json | 4333 ----- .../grammars/cshtml.tmLanguage.json | 341 - .../grammars/css.tmLanguage.json | 1865 -- .../grammars/dart.tmLanguage.json | 438 - .../grammars/docker.tmLanguage.json | 102 - .../grammars/fortran-modern.tmLanguage.json | 226 - .../grammars/fortran.tmLanguage.json | 499 - .../grammars/fsharp.tmLanguage.json | 1797 -- .../grammars/go.tmLanguage.json | 1017 - .../grammars/groovy.tmLanguage.json | 1383 -- .../grammars/handlebars.tmLanguage.json | 852 - .../grammars/hlsl.tmLanguage.json | 217 - .../grammars/html.tmLanguage.json | 2643 --- .../grammars/htmlphp.tmLanguage.json | 189 - .../grammars/ini.tmLanguage.json | 113 - .../grammars/java.tmLanguage.json | 1849 -- .../jsonc.js.injection.tmLanguage.json | 20 - .../jsonc.ts.injection.tmLanguage.json | 20 - .../grammars/julia.tmLanguage.json | 945 - .../grammars/kotlin.tmLanguage.json | 580 - .../grammars/less.tmLanguage.json | 542 - .../grammars/log.tmLanguage.json | 125 - .../grammars/lua.tmLanguage.json | 281 - .../grammars/make.tmLanguage.json | 643 - .../grammars/markdown.tmLanguage.json | 2698 --- .../grammars/matlab-functions.tmLanguage.json | 305 - .../grammars/matlab.tmLanguage.json | 1418 -- .../grammars/objective-c++.tmLanguage.json | 7098 ------- .../grammars/objective-c.tmLanguage.json | 3606 ---- .../grammars/perl.tmLanguage.json | 2539 --- .../grammars/perl6.tmLanguage.json | 315 - .../grammars/php.tmLanguage.json | 3771 ---- .../grammars/platform.tmLanguage.json | 1126 -- .../grammars/powershell.tmLanguage.json | 1007 - .../grammars/pug.tmLanguage.json | 987 - .../grammars/r.tmLanguage.json | 540 - .../grammars/ruby.tmLanguage.json | 2775 --- .../grammars/rust.tmLanguage.json | 692 - .../grammars/sassdoc.tmLanguage.json | 354 - .../grammars/scss.tmLanguage.json | 1879 -- .../grammars/shaderlab.tmLanguage.json | 204 - .../grammars/shell-unix-bash.tmLanguage.json | 1283 -- .../grammars/sql.tmLanguage.json | 519 - .../grammars/svelte.tmLanguage.json | 1084 -- .../grammars/swift.tmLanguage.json | 3218 --- .../grammars/terraform.tmGrammar.json | 809 - .../grammars/vue-generated.json | 1244 -- .../grammars/xml.tmLanguage.json | 387 - .../grammars/xsl.tmLanguage.json | 94 - .../grammars/yaml.tmLanguage.json | 621 - .../html.worker.bundle.js | 2 - .../html.worker.bundle.js.LICENSE.txt | 6 - .../monaco-textmate.bundle/index.html | 701 - .../json.worker.bundle.js | 2 - .../json.worker.bundle.js.LICENSE.txt | 6 - .../node_modules/vscode-oniguruma/LICENSE.txt | 23 - .../node_modules/vscode-oniguruma/NOTICES.txt | 41 - .../node_modules/vscode-oniguruma/README.md | 52 - .../node_modules/vscode-oniguruma/main.d.ts | 59 - .../vscode-oniguruma/package.json | 35 - .../vscode-oniguruma/release/main.js | 1 - .../vscode-oniguruma/release/onig.wasm | Bin 471543 -> 0 bytes .../ts.worker.bundle.js | 7 - .../ts.worker.bundle.js.LICENSE.txt | 14 - 149 files changed, 131308 deletions(-) delete mode 100644 Dependencies/monaco-textmate.bundle/355.bundle.js delete mode 100644 Dependencies/monaco-textmate.bundle/745.bundle.js delete mode 100644 Dependencies/monaco-textmate.bundle/745.bundle.js.LICENSE.txt delete mode 100644 Dependencies/monaco-textmate.bundle/77.bundle.js delete mode 100644 Dependencies/monaco-textmate.bundle/77.bundle.js.LICENSE.txt delete mode 100644 Dependencies/monaco-textmate.bundle/app.bundle.js delete mode 100644 Dependencies/monaco-textmate.bundle/app.bundle.js.LICENSE.txt delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/bat.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/c.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/clojure.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/coffeescript.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/cpp.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/csharp.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/css.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/dart.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/dockerfile.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/fortran-modern.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/fortran.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/fsharp.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/go.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/groovy.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/handlebars.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/hlsl.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/html.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/jade.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/java.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/javascript.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/javascriptreact.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/json.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/jsonc.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/julia.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/kotlin.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/less.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/log.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/lua.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/makefile.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/markdown.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/matlab.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/modern.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/objective-c.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/objective-cpp.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/perl.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/perl6.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/php.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/powershell.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/properties.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/python.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/r.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/razor.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/ruby.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/rust.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/scss.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/shaderlab.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/shellscript.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/sql.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/svelte.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/swift.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/terraform.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/typescript.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/typescriptreact.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/vb.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/vue.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/xml.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/xsl.json delete mode 100644 Dependencies/monaco-textmate.bundle/configurations/yaml.json delete mode 100644 Dependencies/monaco-textmate.bundle/css.worker.bundle.js delete mode 100644 Dependencies/monaco-textmate.bundle/css.worker.bundle.js.LICENSE.txt delete mode 100644 Dependencies/monaco-textmate.bundle/editor.worker.bundle.js delete mode 100644 Dependencies/monaco-textmate.bundle/editor.worker.js delete mode 100644 Dependencies/monaco-textmate.bundle/f6283f7ccaed1249d9ebbcc5a55d5970.ttf delete mode 100644 Dependencies/monaco-textmate.bundle/fonts/FiraCode-Regular.ttf delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/JSON.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/JSONC.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/JavaScript.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/JavaScriptReact.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/MagicPython.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/TypeScript.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/TypeScriptReact.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/asp-vb-net.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/batchfile.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/c.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/clojure.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/coffeescript.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/cpp.embedded.macro.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/cpp.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/csharp.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/cshtml.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/css.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/dart.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/docker.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/fortran-modern.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/fortran.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/fsharp.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/go.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/groovy.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/handlebars.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/hlsl.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/html.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/htmlphp.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/ini.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/java.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/jsonc.js.injection.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/jsonc.ts.injection.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/julia.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/kotlin.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/less.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/log.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/lua.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/make.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/markdown.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/matlab-functions.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/matlab.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/objective-c++.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/objective-c.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/perl.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/perl6.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/php.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/platform.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/powershell.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/pug.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/r.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/ruby.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/rust.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/sassdoc.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/scss.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/shaderlab.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/shell-unix-bash.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/sql.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/svelte.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/swift.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/terraform.tmGrammar.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/vue-generated.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/xml.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/xsl.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/grammars/yaml.tmLanguage.json delete mode 100644 Dependencies/monaco-textmate.bundle/html.worker.bundle.js delete mode 100644 Dependencies/monaco-textmate.bundle/html.worker.bundle.js.LICENSE.txt delete mode 100644 Dependencies/monaco-textmate.bundle/index.html delete mode 100644 Dependencies/monaco-textmate.bundle/json.worker.bundle.js delete mode 100644 Dependencies/monaco-textmate.bundle/json.worker.bundle.js.LICENSE.txt delete mode 100644 Dependencies/monaco-textmate.bundle/node_modules/vscode-oniguruma/LICENSE.txt delete mode 100644 Dependencies/monaco-textmate.bundle/node_modules/vscode-oniguruma/NOTICES.txt delete mode 100644 Dependencies/monaco-textmate.bundle/node_modules/vscode-oniguruma/README.md delete mode 100644 Dependencies/monaco-textmate.bundle/node_modules/vscode-oniguruma/main.d.ts delete mode 100644 Dependencies/monaco-textmate.bundle/node_modules/vscode-oniguruma/package.json delete mode 100644 Dependencies/monaco-textmate.bundle/node_modules/vscode-oniguruma/release/main.js delete mode 100644 Dependencies/monaco-textmate.bundle/node_modules/vscode-oniguruma/release/onig.wasm delete mode 100644 Dependencies/monaco-textmate.bundle/ts.worker.bundle.js delete mode 100644 Dependencies/monaco-textmate.bundle/ts.worker.bundle.js.LICENSE.txt diff --git a/Dependencies/monaco-textmate.bundle/355.bundle.js b/Dependencies/monaco-textmate.bundle/355.bundle.js deleted file mode 100644 index cb810167a..000000000 --- a/Dependencies/monaco-textmate.bundle/355.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmonaco_tm=self.webpackChunkmonaco_tm||[]).push([[355],{59355:(e,t,i)=>{i.r(t),i.d(t,{Adapter:()=>h,CodeActionAdaptor:()=>O,DefinitionAdapter:()=>k,DiagnosticsAdapter:()=>f,DocumentHighlightAdapter:()=>x,FormatAdapter:()=>P,FormatHelper:()=>T,FormatOnTypeAdapter:()=>L,InlayHintsAdapter:()=>M,Kind:()=>D,LibFiles:()=>b,OutlineAdapter:()=>C,QuickInfoAdapter:()=>S,ReferenceAdapter:()=>v,RenameAdapter:()=>N,SignatureHelpAdapter:()=>w,SuggestAdapter:()=>y,WorkerManager:()=>u,flattenDiagnosticMessageText:()=>p,getJavaScriptWorker:()=>E,getTypeScriptWorker:()=>H,setupJavaScript:()=>R,setupTypeScript:()=>K});var s=i(514),r=i(19664),n=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,c=(e,t,i,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of o(t))l.call(e,r)||r===i||n(e,r,{get:()=>t[r],enumerable:!(s=a(t,r))||s.enumerable});return e},d={};c(d,s,"default");var u=class{constructor(e,t){this._modeId=e,this._defaults=t,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker())),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange((()=>this._updateExtraLibs()))}dispose(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _updateExtraLibs(){if(!this._worker)return;const e=++this._updateExtraLibsToken,t=await this._worker.getProxy();this._updateExtraLibsToken===e&&t.updateExtraLibs(this._defaults.getExtraLibs())}_getClient(){return this._client||(this._client=(async()=>(this._worker=d.editor.createWebWorker({moduleId:"vs/language/typescript/tsWorker",label:this._modeId,keepIdleModels:!0,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs(),customWorkerPath:this._defaults.workerOptions.customWorkerPath,inlayHintsOptions:this._defaults.inlayHintsOptions}}),this._defaults.getEagerModelSync()?await this._worker.withSyncedResources(d.editor.getModels().filter((e=>e.getLanguageId()===this._modeId)).map((e=>e.uri))):await this._worker.getProxy()))()),this._client}async getLanguageServiceWorker(...e){const t=await this._getClient();return this._worker&&await this._worker.withSyncedResources(e),t}},g={};function p(e,t,i=0){if("string"==typeof e)return e;if(void 0===e)return"";let s="";if(i){s+=t;for(let e=0;ee.text)).join(""):""}g["lib.d.ts"]=!0,g["lib.decorators.d.ts"]=!0,g["lib.decorators.legacy.d.ts"]=!0,g["lib.dom.asynciterable.d.ts"]=!0,g["lib.dom.d.ts"]=!0,g["lib.dom.iterable.d.ts"]=!0,g["lib.es2015.collection.d.ts"]=!0,g["lib.es2015.core.d.ts"]=!0,g["lib.es2015.d.ts"]=!0,g["lib.es2015.generator.d.ts"]=!0,g["lib.es2015.iterable.d.ts"]=!0,g["lib.es2015.promise.d.ts"]=!0,g["lib.es2015.proxy.d.ts"]=!0,g["lib.es2015.reflect.d.ts"]=!0,g["lib.es2015.symbol.d.ts"]=!0,g["lib.es2015.symbol.wellknown.d.ts"]=!0,g["lib.es2016.array.include.d.ts"]=!0,g["lib.es2016.d.ts"]=!0,g["lib.es2016.full.d.ts"]=!0,g["lib.es2016.intl.d.ts"]=!0,g["lib.es2017.d.ts"]=!0,g["lib.es2017.date.d.ts"]=!0,g["lib.es2017.full.d.ts"]=!0,g["lib.es2017.intl.d.ts"]=!0,g["lib.es2017.object.d.ts"]=!0,g["lib.es2017.sharedmemory.d.ts"]=!0,g["lib.es2017.string.d.ts"]=!0,g["lib.es2017.typedarrays.d.ts"]=!0,g["lib.es2018.asyncgenerator.d.ts"]=!0,g["lib.es2018.asynciterable.d.ts"]=!0,g["lib.es2018.d.ts"]=!0,g["lib.es2018.full.d.ts"]=!0,g["lib.es2018.intl.d.ts"]=!0,g["lib.es2018.promise.d.ts"]=!0,g["lib.es2018.regexp.d.ts"]=!0,g["lib.es2019.array.d.ts"]=!0,g["lib.es2019.d.ts"]=!0,g["lib.es2019.full.d.ts"]=!0,g["lib.es2019.intl.d.ts"]=!0,g["lib.es2019.object.d.ts"]=!0,g["lib.es2019.string.d.ts"]=!0,g["lib.es2019.symbol.d.ts"]=!0,g["lib.es2020.bigint.d.ts"]=!0,g["lib.es2020.d.ts"]=!0,g["lib.es2020.date.d.ts"]=!0,g["lib.es2020.full.d.ts"]=!0,g["lib.es2020.intl.d.ts"]=!0,g["lib.es2020.number.d.ts"]=!0,g["lib.es2020.promise.d.ts"]=!0,g["lib.es2020.sharedmemory.d.ts"]=!0,g["lib.es2020.string.d.ts"]=!0,g["lib.es2020.symbol.wellknown.d.ts"]=!0,g["lib.es2021.d.ts"]=!0,g["lib.es2021.full.d.ts"]=!0,g["lib.es2021.intl.d.ts"]=!0,g["lib.es2021.promise.d.ts"]=!0,g["lib.es2021.string.d.ts"]=!0,g["lib.es2021.weakref.d.ts"]=!0,g["lib.es2022.array.d.ts"]=!0,g["lib.es2022.d.ts"]=!0,g["lib.es2022.error.d.ts"]=!0,g["lib.es2022.full.d.ts"]=!0,g["lib.es2022.intl.d.ts"]=!0,g["lib.es2022.object.d.ts"]=!0,g["lib.es2022.regexp.d.ts"]=!0,g["lib.es2022.sharedmemory.d.ts"]=!0,g["lib.es2022.string.d.ts"]=!0,g["lib.es2023.array.d.ts"]=!0,g["lib.es2023.collection.d.ts"]=!0,g["lib.es2023.d.ts"]=!0,g["lib.es2023.full.d.ts"]=!0,g["lib.es5.d.ts"]=!0,g["lib.es6.d.ts"]=!0,g["lib.esnext.collection.d.ts"]=!0,g["lib.esnext.d.ts"]=!0,g["lib.esnext.decorators.d.ts"]=!0,g["lib.esnext.disposable.d.ts"]=!0,g["lib.esnext.full.d.ts"]=!0,g["lib.esnext.intl.d.ts"]=!0,g["lib.esnext.object.d.ts"]=!0,g["lib.esnext.promise.d.ts"]=!0,g["lib.scripthost.d.ts"]=!0,g["lib.webworker.asynciterable.d.ts"]=!0,g["lib.webworker.d.ts"]=!0,g["lib.webworker.importscripts.d.ts"]=!0,g["lib.webworker.iterable.d.ts"]=!0;var h=class{constructor(e){this._worker=e}_textSpanToRange(e,t){let i=e.getPositionAt(t.start),s=e.getPositionAt(t.start+t.length),{lineNumber:r,column:n}=i,{lineNumber:a,column:o}=s;return{startLineNumber:r,startColumn:n,endLineNumber:a,endColumn:o}}},b=class{constructor(e){this._worker=e,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}isLibFile(e){return!!e&&0===e.path.indexOf("/lib.")&&!!g[e.path.slice(1)]}getOrCreateModel(e){const t=d.Uri.parse(e),i=d.editor.getModel(t);if(i)return i;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return d.editor.createModel(this._libFiles[t.path.slice(1)],"typescript",t);const s=r.IF.getExtraLibs()[e];return s?d.editor.createModel(s.content,"typescript",t):null}_containsLibFile(e){for(let t of e)if(this.isLibFile(t))return!0;return!1}async fetchLibFilesIfNecessary(e){this._containsLibFile(e)&&await this._fetchLibFiles()}_fetchLibFiles(){return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then((e=>e.getLibFiles())).then((e=>{this._hasFetchedLibFiles=!0,this._libFiles=e}))),this._fetchLibFilesPromise}},f=class extends h{constructor(e,t,i,s){super(s),this._libFiles=e,this._defaults=t,this._selector=i,this._disposables=[],this._listener=Object.create(null);const r=e=>{if(e.getLanguageId()!==i)return;const t=()=>{const{onlyVisible:t}=this._defaults.getDiagnosticsOptions();t?e.isAttachedToEditor()&&this._doValidate(e):this._doValidate(e)};let s;const r=e.onDidChangeContent((()=>{clearTimeout(s),s=window.setTimeout(t,500)})),n=e.onDidChangeAttached((()=>{const{onlyVisible:i}=this._defaults.getDiagnosticsOptions();i&&(e.isAttachedToEditor()?t():d.editor.setModelMarkers(e,this._selector,[]))}));this._listener[e.uri.toString()]={dispose(){r.dispose(),n.dispose(),clearTimeout(s)}},t()},n=e=>{d.editor.setModelMarkers(e,this._selector,[]);const t=e.uri.toString();this._listener[t]&&(this._listener[t].dispose(),delete this._listener[t])};this._disposables.push(d.editor.onDidCreateModel((e=>r(e)))),this._disposables.push(d.editor.onWillDisposeModel(n)),this._disposables.push(d.editor.onDidChangeModelLanguage((e=>{n(e.model),r(e.model)}))),this._disposables.push({dispose(){for(const e of d.editor.getModels())n(e)}});const a=()=>{for(const e of d.editor.getModels())n(e),r(e)};this._disposables.push(this._defaults.onDidChange(a)),this._disposables.push(this._defaults.onDidExtraLibsChange(a)),d.editor.getModels().forEach((e=>r(e)))}dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables=[]}async _doValidate(e){const t=await this._worker(e.uri);if(e.isDisposed())return;const i=[],{noSyntaxValidation:s,noSemanticValidation:r,noSuggestionDiagnostics:n}=this._defaults.getDiagnosticsOptions();s||i.push(t.getSyntacticDiagnostics(e.uri.toString())),r||i.push(t.getSemanticDiagnostics(e.uri.toString())),n||i.push(t.getSuggestionDiagnostics(e.uri.toString()));const a=await Promise.all(i);if(!a||e.isDisposed())return;const o=a.reduce(((e,t)=>t.concat(e)),[]).filter((e=>-1===(this._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(e.code))),l=o.map((e=>e.relatedInformation||[])).reduce(((e,t)=>t.concat(e)),[]).map((e=>e.file?d.Uri.parse(e.file.fileName):null));await this._libFiles.fetchLibFilesIfNecessary(l),e.isDisposed()||d.editor.setModelMarkers(e,this._selector,o.map((t=>this._convertDiagnostics(e,t))))}_convertDiagnostics(e,t){const i=t.start||0,s=t.length||1,{lineNumber:r,column:n}=e.getPositionAt(i),{lineNumber:a,column:o}=e.getPositionAt(i+s),l=[];return t.reportsUnnecessary&&l.push(d.MarkerTag.Unnecessary),t.reportsDeprecated&&l.push(d.MarkerTag.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(t.category),startLineNumber:r,startColumn:n,endLineNumber:a,endColumn:o,message:p(t.messageText,"\n"),code:t.code.toString(),tags:l,relatedInformation:this._convertRelatedInformation(e,t.relatedInformation)}}_convertRelatedInformation(e,t){if(!t)return[];const i=[];return t.forEach((t=>{let s=e;if(t.file&&(s=this._libFiles.getOrCreateModel(t.file.fileName)),!s)return;const r=t.start||0,n=t.length||1,{lineNumber:a,column:o}=s.getPositionAt(r),{lineNumber:l,column:c}=s.getPositionAt(r+n);i.push({resource:s.uri,startLineNumber:a,startColumn:o,endLineNumber:l,endColumn:c,message:p(t.messageText,"\n")})})),i}_tsDiagnosticCategoryToMarkerSeverity(e){switch(e){case 1:return d.MarkerSeverity.Error;case 3:return d.MarkerSeverity.Info;case 0:return d.MarkerSeverity.Warning;case 2:return d.MarkerSeverity.Hint}return d.MarkerSeverity.Info}},y=class e extends h{get triggerCharacters(){return["."]}async provideCompletionItems(t,i,s,r){const n=t.getWordUntilPosition(i),a=new d.Range(i.lineNumber,n.startColumn,i.lineNumber,n.endColumn),o=t.uri,l=t.getOffsetAt(i),c=await this._worker(o);if(t.isDisposed())return;const u=await c.getCompletionsAtPosition(o.toString(),l);return u&&!t.isDisposed()?{suggestions:u.entries.map((s=>{let r=a;if(s.replacementSpan){const e=t.getPositionAt(s.replacementSpan.start),i=t.getPositionAt(s.replacementSpan.start+s.replacementSpan.length);r=new d.Range(e.lineNumber,e.column,i.lineNumber,i.column)}const n=[];return void 0!==s.kindModifiers&&-1!==s.kindModifiers.indexOf("deprecated")&&n.push(d.languages.CompletionItemTag.Deprecated),{uri:o,position:i,offset:l,range:r,label:s.name,insertText:s.name,sortText:s.sortText,kind:e.convertKind(s.kind),tags:n}}))}:void 0}async resolveCompletionItem(t,i){const s=t,r=s.uri,n=s.position,a=s.offset,o=await this._worker(r),l=await o.getCompletionEntryDetails(r.toString(),a,s.label);return l?{uri:r,position:n,label:l.name,kind:e.convertKind(l.kind),detail:m(l.displayParts),documentation:{value:e.createDocumentationString(l)}}:s}static convertKind(e){switch(e){case D.primitiveType:case D.keyword:return d.languages.CompletionItemKind.Keyword;case D.variable:case D.localVariable:return d.languages.CompletionItemKind.Variable;case D.memberVariable:case D.memberGetAccessor:case D.memberSetAccessor:return d.languages.CompletionItemKind.Field;case D.function:case D.memberFunction:case D.constructSignature:case D.callSignature:case D.indexSignature:return d.languages.CompletionItemKind.Function;case D.enum:return d.languages.CompletionItemKind.Enum;case D.module:return d.languages.CompletionItemKind.Module;case D.class:return d.languages.CompletionItemKind.Class;case D.interface:return d.languages.CompletionItemKind.Interface;case D.warning:return d.languages.CompletionItemKind.File}return d.languages.CompletionItemKind.Property}static createDocumentationString(e){let t=m(e.documentation);if(e.tags)for(const i of e.tags)t+=`\n\n${_(i)}`;return t}};function _(e){let t=`*@${e.name}*`;if("param"===e.name&&e.text){const[i,...s]=e.text;t+=`\`${i.text}\``,s.length>0&&(t+=` — ${s.map((e=>e.text)).join(" ")}`)}else Array.isArray(e.text)?t+=` — ${e.text.map((e=>e.text)).join(" ")}`:e.text&&(t+=` — ${e.text}`);return t}var w=class e extends h{constructor(){super(...arguments),this.signatureHelpTriggerCharacters=["(",","]}static _toSignatureHelpTriggerReason(e){switch(e.triggerKind){case d.languages.SignatureHelpTriggerKind.TriggerCharacter:return e.triggerCharacter?e.isRetrigger?{kind:"retrigger",triggerCharacter:e.triggerCharacter}:{kind:"characterTyped",triggerCharacter:e.triggerCharacter}:{kind:"invoked"};case d.languages.SignatureHelpTriggerKind.ContentChange:return e.isRetrigger?{kind:"retrigger"}:{kind:"invoked"};case d.languages.SignatureHelpTriggerKind.Invoke:default:return{kind:"invoked"}}}async provideSignatureHelp(t,i,s,r){const n=t.uri,a=t.getOffsetAt(i),o=await this._worker(n);if(t.isDisposed())return;const l=await o.getSignatureHelpItems(n.toString(),a,{triggerReason:e._toSignatureHelpTriggerReason(r)});if(!l||t.isDisposed())return;const c={activeSignature:l.selectedItemIndex,activeParameter:l.argumentIndex,signatures:[]};return l.items.forEach((e=>{const t={label:"",parameters:[]};t.documentation={value:m(e.documentation)},t.label+=m(e.prefixDisplayParts),e.parameters.forEach(((i,s,r)=>{const n=m(i.displayParts),a={label:n,documentation:{value:m(i.documentation)}};t.label+=n,t.parameters.push(a),s_(e))).join(" \n\n"):"",c=m(a.displayParts);return{range:this._textSpanToRange(e,a.textSpan),contents:[{value:"```typescript\n"+c+"\n```\n"},{value:o+(l?"\n\n"+l:"")}]}}},x=class extends h{async provideDocumentHighlights(e,t,i){const s=e.uri,r=e.getOffsetAt(t),n=await this._worker(s);if(e.isDisposed())return;const a=await n.getDocumentHighlights(s.toString(),r,[s.toString()]);return a&&!e.isDisposed()?a.flatMap((t=>t.highlightSpans.map((t=>({range:this._textSpanToRange(e,t.textSpan),kind:"writtenReference"===t.kind?d.languages.DocumentHighlightKind.Write:d.languages.DocumentHighlightKind.Text}))))):void 0}},k=class extends h{constructor(e,t){super(t),this._libFiles=e}async provideDefinition(e,t,i){const s=e.uri,r=e.getOffsetAt(t),n=await this._worker(s);if(e.isDisposed())return;const a=await n.getDefinitionAtPosition(s.toString(),r);if(!a||e.isDisposed())return;if(await this._libFiles.fetchLibFilesIfNecessary(a.map((e=>d.Uri.parse(e.fileName)))),e.isDisposed())return;const o=[];for(let e of a){const t=this._libFiles.getOrCreateModel(e.fileName);t&&o.push({uri:t.uri,range:this._textSpanToRange(t,e.textSpan)})}return o}},v=class extends h{constructor(e,t){super(t),this._libFiles=e}async provideReferences(e,t,i,s){const r=e.uri,n=e.getOffsetAt(t),a=await this._worker(r);if(e.isDisposed())return;const o=await a.getReferencesAtPosition(r.toString(),n);if(!o||e.isDisposed())return;if(await this._libFiles.fetchLibFilesIfNecessary(o.map((e=>d.Uri.parse(e.fileName)))),e.isDisposed())return;const l=[];for(let e of o){const t=this._libFiles.getOrCreateModel(e.fileName);t&&l.push({uri:t.uri,range:this._textSpanToRange(t,e.textSpan)})}return l}},C=class extends h{async provideDocumentSymbols(e,t){const i=e.uri,s=await this._worker(i);if(e.isDisposed())return;const r=await s.getNavigationTree(i.toString());if(!r||e.isDisposed())return;const n=(t,i)=>({name:t.text,detail:"",kind:A[t.kind]||d.languages.SymbolKind.Variable,range:this._textSpanToRange(e,t.spans[0]),selectionRange:this._textSpanToRange(e,t.spans[0]),tags:[],children:t.childItems?.map((e=>n(e,t.text))),containerName:i});return r.childItems?r.childItems.map((e=>n(e))):[]}},D=class{static{this.unknown=""}static{this.keyword="keyword"}static{this.script="script"}static{this.module="module"}static{this.class="class"}static{this.interface="interface"}static{this.type="type"}static{this.enum="enum"}static{this.variable="var"}static{this.localVariable="local var"}static{this.function="function"}static{this.localFunction="local function"}static{this.memberFunction="method"}static{this.memberGetAccessor="getter"}static{this.memberSetAccessor="setter"}static{this.memberVariable="property"}static{this.constructorImplementation="constructor"}static{this.callSignature="call"}static{this.indexSignature="index"}static{this.constructSignature="construct"}static{this.parameter="parameter"}static{this.typeParameter="type parameter"}static{this.primitiveType="primitive type"}static{this.label="label"}static{this.alias="alias"}static{this.const="const"}static{this.let="let"}static{this.warning="warning"}},A=Object.create(null);A[D.module]=d.languages.SymbolKind.Module,A[D.class]=d.languages.SymbolKind.Class,A[D.enum]=d.languages.SymbolKind.Enum,A[D.interface]=d.languages.SymbolKind.Interface,A[D.memberFunction]=d.languages.SymbolKind.Method,A[D.memberVariable]=d.languages.SymbolKind.Property,A[D.memberGetAccessor]=d.languages.SymbolKind.Property,A[D.memberSetAccessor]=d.languages.SymbolKind.Property,A[D.variable]=d.languages.SymbolKind.Variable,A[D.const]=d.languages.SymbolKind.Variable,A[D.localVariable]=d.languages.SymbolKind.Variable,A[D.variable]=d.languages.SymbolKind.Variable,A[D.function]=d.languages.SymbolKind.Function,A[D.localFunction]=d.languages.SymbolKind.Function;var F,I,T=class extends h{static _convertOptions(e){return{ConvertTabsToSpaces:e.insertSpaces,TabSize:e.tabSize,IndentSize:e.tabSize,IndentStyle:2,NewLineCharacter:"\n",InsertSpaceAfterCommaDelimiter:!0,InsertSpaceAfterSemicolonInForStatements:!0,InsertSpaceBeforeAndAfterBinaryOperators:!0,InsertSpaceAfterKeywordsInControlFlowStatements:!0,InsertSpaceAfterFunctionKeywordForAnonymousFunctions:!0,InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,PlaceOpenBraceOnNewLineForControlBlocks:!1,PlaceOpenBraceOnNewLineForFunctions:!1}}_convertTextChanges(e,t){return{text:t.newText,range:this._textSpanToRange(e,t.span)}}},P=class extends T{constructor(){super(...arguments),this.canFormatMultipleRanges=!1}async provideDocumentRangeFormattingEdits(e,t,i,s){const r=e.uri,n=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),a=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),o=await this._worker(r);if(e.isDisposed())return;const l=await o.getFormattingEditsForRange(r.toString(),n,a,T._convertOptions(i));return l&&!e.isDisposed()?l.map((t=>this._convertTextChanges(e,t))):void 0}},L=class extends T{get autoFormatTriggerCharacters(){return[";","}","\n"]}async provideOnTypeFormattingEdits(e,t,i,s,r){const n=e.uri,a=e.getOffsetAt(t),o=await this._worker(n);if(e.isDisposed())return;const l=await o.getFormattingEditsAfterKeystroke(n.toString(),a,i,T._convertOptions(s));return l&&!e.isDisposed()?l.map((t=>this._convertTextChanges(e,t))):void 0}},O=class extends T{async provideCodeActions(e,t,i,s){const r=e.uri,n=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),a=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),o=T._convertOptions(e.getOptions()),l=i.markers.filter((e=>e.code)).map((e=>e.code)).map(Number),c=await this._worker(r);if(e.isDisposed())return;const d=await c.getCodeFixesAtPosition(r.toString(),n,a,l,o);return!d||e.isDisposed()?{actions:[],dispose:()=>{}}:{actions:d.filter((e=>0===e.changes.filter((e=>e.isNewFile)).length)).map((t=>this._tsCodeFixActionToMonacoCodeAction(e,i,t))),dispose:()=>{}}}_tsCodeFixActionToMonacoCodeAction(e,t,i){const s=[];for(const t of i.changes)for(const i of t.textChanges)s.push({resource:e.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(e,i.span),text:i.newText}});return{title:i.description,edit:{edits:s},diagnostics:t.markers,kind:"quickfix"}}},N=class extends h{constructor(e,t){super(t),this._libFiles=e}async provideRenameEdits(e,t,i,s){const r=e.uri,n=r.toString(),a=e.getOffsetAt(t),o=await this._worker(r);if(e.isDisposed())return;const l=await o.getRenameInfo(n,a,{allowRenameOfImportPath:!1});if(!1===l.canRename)return{edits:[],rejectReason:l.localizedErrorMessage};if(void 0!==l.fileToRename)throw new Error("Renaming files is not supported.");const c=await o.findRenameLocations(n,a,!1,!1,!1);if(!c||e.isDisposed())return;const d=[];for(const e of c){const t=this._libFiles.getOrCreateModel(e.fileName);if(!t)throw new Error(`Unknown file ${e.fileName}.`);d.push({resource:t.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(t,e.textSpan),text:i}})}return{edits:d}}},M=class extends h{async provideInlayHints(e,t,i){const s=e.uri,r=s.toString(),n=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),a=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),o=await this._worker(s);return e.isDisposed()?null:{hints:(await o.provideInlayHints(r,n,a)).map((t=>({...t,label:t.text,position:e.getPositionAt(t.position),kind:this._convertHintKind(t.kind)}))),dispose:()=>{}}}_convertHintKind(e){return"Parameter"===e?d.languages.InlayHintKind.Parameter:d.languages.InlayHintKind.Type}};function K(e){I=V(e,"typescript")}function R(e){F=V(e,"javascript")}function E(){return new Promise(((e,t)=>{if(!F)return t("JavaScript not registered!");e(F)}))}function H(){return new Promise(((e,t)=>{if(!I)return t("TypeScript not registered!");e(I)}))}function V(e,t){const i=[],s=[],r=new u(t,e);i.push(r);const n=(...e)=>r.getLanguageServiceWorker(...e),a=new b(n);return function(){const{modeConfiguration:i}=e;j(s),i.completionItems&&s.push(d.languages.registerCompletionItemProvider(t,new y(n))),i.signatureHelp&&s.push(d.languages.registerSignatureHelpProvider(t,new w(n))),i.hovers&&s.push(d.languages.registerHoverProvider(t,new S(n))),i.documentHighlights&&s.push(d.languages.registerDocumentHighlightProvider(t,new x(n))),i.definitions&&s.push(d.languages.registerDefinitionProvider(t,new k(a,n))),i.references&&s.push(d.languages.registerReferenceProvider(t,new v(a,n))),i.documentSymbols&&s.push(d.languages.registerDocumentSymbolProvider(t,new C(n))),i.rename&&s.push(d.languages.registerRenameProvider(t,new N(a,n))),i.documentRangeFormattingEdits&&s.push(d.languages.registerDocumentRangeFormattingEditProvider(t,new P(n))),i.onTypeFormattingEdits&&s.push(d.languages.registerOnTypeFormattingEditProvider(t,new L(n))),i.codeActions&&s.push(d.languages.registerCodeActionProvider(t,new O(n))),i.inlayHints&&s.push(d.languages.registerInlayHintsProvider(t,new M(n))),i.diagnostics&&s.push(new f(a,e,t,n))}(),i.push(function(e){return{dispose:()=>j(e)}}(s)),n}function j(e){for(;e.length;)e.pop().dispose()}}}]); \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/745.bundle.js b/Dependencies/monaco-textmate.bundle/745.bundle.js deleted file mode 100644 index 43d0ad1b1..000000000 --- a/Dependencies/monaco-textmate.bundle/745.bundle.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 745.bundle.js.LICENSE.txt */ -"use strict";(self.webpackChunkmonaco_tm=self.webpackChunkmonaco_tm||[]).push([[745],{52745:(e,t,n)=>{n.r(t),n.d(t,{CompletionAdapter:()=>Ot,DefinitionAdapter:()=>Jt,DiagnosticsAdapter:()=>Ut,DocumentColorAdapter:()=>cn,DocumentFormattingEditProvider:()=>an,DocumentHighlightAdapter:()=>Qt,DocumentLinkAdapter:()=>on,DocumentRangeFormattingEditProvider:()=>sn,DocumentSymbolAdapter:()=>tn,FoldingRangeAdapter:()=>dn,HoverAdapter:()=>$t,ReferenceAdapter:()=>Zt,RenameAdapter:()=>en,SelectionRangeAdapter:()=>ln,WorkerManager:()=>Ft,fromPosition:()=>Kt,fromRange:()=>Wt,setupMode:()=>gn,toRange:()=>Ht,toTextEdit:()=>zt});var r=n(514),i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of a(t))s.call(e,u)||u===n||i(e,u,{get:()=>t[u],enumerable:!(r=o(t,u))||r.enumerable});return e},c={};u(c,r,"default");var d,l,g,f,h,m,p,v,b,_,k,w,y,x,I,E,C,A,S,R,L,T,M,D,P,F,j,N,U,V,O,K,W,H,X,z,$,B,q,Q,G,J,Y,Z,ee,te,ne,re,ie,oe,ae,se,ue,ce,de,le,ge,fe,he,me,pe,ve,be,_e,ke,we,ye,xe,Ie,Ee,Ce,Ae,Se,Re,Le,Te,Me,De,Pe,Fe,je,Ne,Ue,Ve,Oe,Ke,We,He,Xe,ze,$e,Be,qe,Qe,Ge,Je,Ye,Ze,et,tt,nt,rt,it,ot,at,st,ut,ct,dt,lt,gt,ft,ht,mt,pt,vt,bt,_t,kt,wt,yt,xt,It,Et,Ct,At,St,Rt,Lt,Tt,Mt,Dt,Pt,Ft=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((()=>this._checkIfIdle()),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker()))}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){this._worker&&Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=c.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then((e=>{t=e})).then((t=>{if(this._worker)return this._worker.withSyncedResources(e)})).then((e=>t))}};(d||(d={})).is=function(e){return"string"==typeof e},(l||(l={})).is=function(e){return"string"==typeof e},(f=g||(g={})).MIN_VALUE=-2147483648,f.MAX_VALUE=2147483647,f.is=function(e){return"number"==typeof e&&f.MIN_VALUE<=e&&e<=f.MAX_VALUE},(m=h||(h={})).MIN_VALUE=0,m.MAX_VALUE=2147483647,m.is=function(e){return"number"==typeof e&&m.MIN_VALUE<=e&&e<=m.MAX_VALUE},(v=p||(p={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=h.MAX_VALUE),t===Number.MAX_VALUE&&(t=h.MAX_VALUE),{line:e,character:t}},v.is=function(e){let t=e;return jt.objectLiteral(t)&&jt.uinteger(t.line)&&jt.uinteger(t.character)},(_=b||(b={})).create=function(e,t,n,r){if(jt.uinteger(e)&&jt.uinteger(t)&&jt.uinteger(n)&&jt.uinteger(r))return{start:p.create(e,t),end:p.create(n,r)};if(p.is(e)&&p.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)},_.is=function(e){let t=e;return jt.objectLiteral(t)&&p.is(t.start)&&p.is(t.end)},(w=k||(k={})).create=function(e,t){return{uri:e,range:t}},w.is=function(e){let t=e;return jt.objectLiteral(t)&&b.is(t.range)&&(jt.string(t.uri)||jt.undefined(t.uri))},(x=y||(y={})).create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},x.is=function(e){let t=e;return jt.objectLiteral(t)&&b.is(t.targetRange)&&jt.string(t.targetUri)&&b.is(t.targetSelectionRange)&&(b.is(t.originSelectionRange)||jt.undefined(t.originSelectionRange))},(E=I||(I={})).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},E.is=function(e){const t=e;return jt.objectLiteral(t)&&jt.numberRange(t.red,0,1)&&jt.numberRange(t.green,0,1)&&jt.numberRange(t.blue,0,1)&&jt.numberRange(t.alpha,0,1)},(A=C||(C={})).create=function(e,t){return{range:e,color:t}},A.is=function(e){const t=e;return jt.objectLiteral(t)&&b.is(t.range)&&I.is(t.color)},(R=S||(S={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},R.is=function(e){const t=e;return jt.objectLiteral(t)&&jt.string(t.label)&&(jt.undefined(t.textEdit)||z.is(t))&&(jt.undefined(t.additionalTextEdits)||jt.typedArray(t.additionalTextEdits,z.is))},(T=L||(L={})).Comment="comment",T.Imports="imports",T.Region="region",(D=M||(M={})).create=function(e,t,n,r,i,o){const a={startLine:e,endLine:t};return jt.defined(n)&&(a.startCharacter=n),jt.defined(r)&&(a.endCharacter=r),jt.defined(i)&&(a.kind=i),jt.defined(o)&&(a.collapsedText=o),a},D.is=function(e){const t=e;return jt.objectLiteral(t)&&jt.uinteger(t.startLine)&&jt.uinteger(t.startLine)&&(jt.undefined(t.startCharacter)||jt.uinteger(t.startCharacter))&&(jt.undefined(t.endCharacter)||jt.uinteger(t.endCharacter))&&(jt.undefined(t.kind)||jt.string(t.kind))},(F=P||(P={})).create=function(e,t){return{location:e,message:t}},F.is=function(e){let t=e;return jt.defined(t)&&k.is(t.location)&&jt.string(t.message)},(N=j||(j={})).Error=1,N.Warning=2,N.Information=3,N.Hint=4,(V=U||(U={})).Unnecessary=1,V.Deprecated=2,(O||(O={})).is=function(e){const t=e;return jt.objectLiteral(t)&&jt.string(t.href)},(W=K||(K={})).create=function(e,t,n,r,i,o){let a={range:e,message:t};return jt.defined(n)&&(a.severity=n),jt.defined(r)&&(a.code=r),jt.defined(i)&&(a.source=i),jt.defined(o)&&(a.relatedInformation=o),a},W.is=function(e){var t;let n=e;return jt.defined(n)&&b.is(n.range)&&jt.string(n.message)&&(jt.number(n.severity)||jt.undefined(n.severity))&&(jt.integer(n.code)||jt.string(n.code)||jt.undefined(n.code))&&(jt.undefined(n.codeDescription)||jt.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(jt.string(n.source)||jt.undefined(n.source))&&(jt.undefined(n.relatedInformation)||jt.typedArray(n.relatedInformation,P.is))},(X=H||(H={})).create=function(e,t,...n){let r={title:e,command:t};return jt.defined(n)&&n.length>0&&(r.arguments=n),r},X.is=function(e){let t=e;return jt.defined(t)&&jt.string(t.title)&&jt.string(t.command)},($=z||(z={})).replace=function(e,t){return{range:e,newText:t}},$.insert=function(e,t){return{range:{start:e,end:e},newText:t}},$.del=function(e){return{range:e,newText:""}},$.is=function(e){const t=e;return jt.objectLiteral(t)&&jt.string(t.newText)&&b.is(t.range)},(q=B||(B={})).create=function(e,t,n){const r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},q.is=function(e){const t=e;return jt.objectLiteral(t)&&jt.string(t.label)&&(jt.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(jt.string(t.description)||void 0===t.description)},(Q||(Q={})).is=function(e){const t=e;return jt.string(t)},(J=G||(G={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},J.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},J.del=function(e,t){return{range:e,newText:"",annotationId:t}},J.is=function(e){const t=e;return z.is(t)&&(B.is(t.annotationId)||Q.is(t.annotationId))},(Z=Y||(Y={})).create=function(e,t){return{textDocument:e,edits:t}},Z.is=function(e){let t=e;return jt.defined(t)&&le.is(t.textDocument)&&Array.isArray(t.edits)},(te=ee||(ee={})).create=function(e,t,n){let r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},te.is=function(e){let t=e;return t&&"create"===t.kind&&jt.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||jt.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||jt.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Q.is(t.annotationId))},(re=ne||(ne={})).create=function(e,t,n,r){let i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},re.is=function(e){let t=e;return t&&"rename"===t.kind&&jt.string(t.oldUri)&&jt.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||jt.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||jt.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Q.is(t.annotationId))},(oe=ie||(ie={})).create=function(e,t,n){let r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},oe.is=function(e){let t=e;return t&&"delete"===t.kind&&jt.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||jt.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||jt.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||Q.is(t.annotationId))},(ae||(ae={})).is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>jt.string(e.kind)?ee.is(e)||ne.is(e)||ie.is(e):Y.is(e))))},(ue=se||(se={})).create=function(e){return{uri:e}},ue.is=function(e){let t=e;return jt.defined(t)&&jt.string(t.uri)},(de=ce||(ce={})).create=function(e,t){return{uri:e,version:t}},de.is=function(e){let t=e;return jt.defined(t)&&jt.string(t.uri)&&jt.integer(t.version)},(ge=le||(le={})).create=function(e,t){return{uri:e,version:t}},ge.is=function(e){let t=e;return jt.defined(t)&&jt.string(t.uri)&&(null===t.version||jt.integer(t.version))},(he=fe||(fe={})).create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},he.is=function(e){let t=e;return jt.defined(t)&&jt.string(t.uri)&&jt.string(t.languageId)&&jt.integer(t.version)&&jt.string(t.text)},(pe=me||(me={})).PlainText="plaintext",pe.Markdown="markdown",pe.is=function(e){const t=e;return t===pe.PlainText||t===pe.Markdown},(ve||(ve={})).is=function(e){const t=e;return jt.objectLiteral(e)&&me.is(t.kind)&&jt.string(t.value)},(_e=be||(be={})).Text=1,_e.Method=2,_e.Function=3,_e.Constructor=4,_e.Field=5,_e.Variable=6,_e.Class=7,_e.Interface=8,_e.Module=9,_e.Property=10,_e.Unit=11,_e.Value=12,_e.Enum=13,_e.Keyword=14,_e.Snippet=15,_e.Color=16,_e.File=17,_e.Reference=18,_e.Folder=19,_e.EnumMember=20,_e.Constant=21,_e.Struct=22,_e.Event=23,_e.Operator=24,_e.TypeParameter=25,(we=ke||(ke={})).PlainText=1,we.Snippet=2,(ye||(ye={})).Deprecated=1,(Ie=xe||(xe={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},Ie.is=function(e){const t=e;return t&&jt.string(t.newText)&&b.is(t.insert)&&b.is(t.replace)},(Ce=Ee||(Ee={})).asIs=1,Ce.adjustIndentation=2,(Ae||(Ae={})).is=function(e){const t=e;return t&&(jt.string(t.detail)||void 0===t.detail)&&(jt.string(t.description)||void 0===t.description)},(Se||(Se={})).create=function(e){return{label:e}},(Re||(Re={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(Te=Le||(Le={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Te.is=function(e){const t=e;return jt.string(t)||jt.objectLiteral(t)&&jt.string(t.language)&&jt.string(t.value)},(Me||(Me={})).is=function(e){let t=e;return!!t&&jt.objectLiteral(t)&&(ve.is(t.contents)||Le.is(t.contents)||jt.typedArray(t.contents,Le.is))&&(void 0===e.range||b.is(e.range))},(De||(De={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(Pe||(Pe={})).create=function(e,t,...n){let r={label:e};return jt.defined(t)&&(r.documentation=t),jt.defined(n)?r.parameters=n:r.parameters=[],r},(je=Fe||(Fe={})).Text=1,je.Read=2,je.Write=3,(Ne||(Ne={})).create=function(e,t){let n={range:e};return jt.number(t)&&(n.kind=t),n},(Ve=Ue||(Ue={})).File=1,Ve.Module=2,Ve.Namespace=3,Ve.Package=4,Ve.Class=5,Ve.Method=6,Ve.Property=7,Ve.Field=8,Ve.Constructor=9,Ve.Enum=10,Ve.Interface=11,Ve.Function=12,Ve.Variable=13,Ve.Constant=14,Ve.String=15,Ve.Number=16,Ve.Boolean=17,Ve.Array=18,Ve.Object=19,Ve.Key=20,Ve.Null=21,Ve.EnumMember=22,Ve.Struct=23,Ve.Event=24,Ve.Operator=25,Ve.TypeParameter=26,(Oe||(Oe={})).Deprecated=1,(Ke||(Ke={})).create=function(e,t,n,r,i){let o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o},(We||(We={})).create=function(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}},(Xe=He||(He={})).create=function(e,t,n,r,i,o){let a={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a},Xe.is=function(e){let t=e;return t&&jt.string(t.name)&&jt.number(t.kind)&&b.is(t.range)&&b.is(t.selectionRange)&&(void 0===t.detail||jt.string(t.detail))&&(void 0===t.deprecated||jt.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))},($e=ze||(ze={})).Empty="",$e.QuickFix="quickfix",$e.Refactor="refactor",$e.RefactorExtract="refactor.extract",$e.RefactorInline="refactor.inline",$e.RefactorRewrite="refactor.rewrite",$e.Source="source",$e.SourceOrganizeImports="source.organizeImports",$e.SourceFixAll="source.fixAll",(qe=Be||(Be={})).Invoked=1,qe.Automatic=2,(Ge=Qe||(Qe={})).create=function(e,t,n){let r={diagnostics:e};return null!=t&&(r.only=t),null!=n&&(r.triggerKind=n),r},Ge.is=function(e){let t=e;return jt.defined(t)&&jt.typedArray(t.diagnostics,K.is)&&(void 0===t.only||jt.typedArray(t.only,jt.string))&&(void 0===t.triggerKind||t.triggerKind===Be.Invoked||t.triggerKind===Be.Automatic)},(Ye=Je||(Je={})).create=function(e,t,n){let r={title:e},i=!0;return"string"==typeof t?(i=!1,r.kind=t):H.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},Ye.is=function(e){let t=e;return t&&jt.string(t.title)&&(void 0===t.diagnostics||jt.typedArray(t.diagnostics,K.is))&&(void 0===t.kind||jt.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||H.is(t.command))&&(void 0===t.isPreferred||jt.boolean(t.isPreferred))&&(void 0===t.edit||ae.is(t.edit))},(et=Ze||(Ze={})).create=function(e,t){let n={range:e};return jt.defined(t)&&(n.data=t),n},et.is=function(e){let t=e;return jt.defined(t)&&b.is(t.range)&&(jt.undefined(t.command)||H.is(t.command))},(nt=tt||(tt={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},nt.is=function(e){let t=e;return jt.defined(t)&&jt.uinteger(t.tabSize)&&jt.boolean(t.insertSpaces)},(it=rt||(rt={})).create=function(e,t,n){return{range:e,target:t,data:n}},it.is=function(e){let t=e;return jt.defined(t)&&b.is(t.range)&&(jt.undefined(t.target)||jt.string(t.target))},(at=ot||(ot={})).create=function(e,t){return{range:e,parent:t}},at.is=function(e){let t=e;return jt.objectLiteral(t)&&b.is(t.range)&&(void 0===t.parent||at.is(t.parent))},(ut=st||(st={})).namespace="namespace",ut.type="type",ut.class="class",ut.enum="enum",ut.interface="interface",ut.struct="struct",ut.typeParameter="typeParameter",ut.parameter="parameter",ut.variable="variable",ut.property="property",ut.enumMember="enumMember",ut.event="event",ut.function="function",ut.method="method",ut.macro="macro",ut.keyword="keyword",ut.modifier="modifier",ut.comment="comment",ut.string="string",ut.number="number",ut.regexp="regexp",ut.operator="operator",ut.decorator="decorator",(dt=ct||(ct={})).declaration="declaration",dt.definition="definition",dt.readonly="readonly",dt.static="static",dt.deprecated="deprecated",dt.abstract="abstract",dt.async="async",dt.modification="modification",dt.documentation="documentation",dt.defaultLibrary="defaultLibrary",(lt||(lt={})).is=function(e){const t=e;return jt.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])},(ft=gt||(gt={})).create=function(e,t){return{range:e,text:t}},ft.is=function(e){const t=e;return null!=t&&b.is(t.range)&&jt.string(t.text)},(mt=ht||(ht={})).create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},mt.is=function(e){const t=e;return null!=t&&b.is(t.range)&&jt.boolean(t.caseSensitiveLookup)&&(jt.string(t.variableName)||void 0===t.variableName)},(vt=pt||(pt={})).create=function(e,t){return{range:e,expression:t}},vt.is=function(e){const t=e;return null!=t&&b.is(t.range)&&(jt.string(t.expression)||void 0===t.expression)},(_t=bt||(bt={})).create=function(e,t){return{frameId:e,stoppedLocation:t}},_t.is=function(e){const t=e;return jt.defined(t)&&b.is(e.stoppedLocation)},(wt=kt||(kt={})).Type=1,wt.Parameter=2,wt.is=function(e){return 1===e||2===e},(xt=yt||(yt={})).create=function(e){return{value:e}},xt.is=function(e){const t=e;return jt.objectLiteral(t)&&(void 0===t.tooltip||jt.string(t.tooltip)||ve.is(t.tooltip))&&(void 0===t.location||k.is(t.location))&&(void 0===t.command||H.is(t.command))},(Et=It||(It={})).create=function(e,t,n){const r={position:e,label:t};return void 0!==n&&(r.kind=n),r},Et.is=function(e){const t=e;return jt.objectLiteral(t)&&p.is(t.position)&&(jt.string(t.label)||jt.typedArray(t.label,yt.is))&&(void 0===t.kind||kt.is(t.kind))&&void 0===t.textEdits||jt.typedArray(t.textEdits,z.is)&&(void 0===t.tooltip||jt.string(t.tooltip)||ve.is(t.tooltip))&&(void 0===t.paddingLeft||jt.boolean(t.paddingLeft))&&(void 0===t.paddingRight||jt.boolean(t.paddingRight))},(Ct||(Ct={})).createSnippet=function(e){return{kind:"snippet",value:e}},(At||(At={})).create=function(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}},(St||(St={})).create=function(e){return{items:e}},(Lt=Rt||(Rt={})).Invoked=0,Lt.Automatic=1,(Tt||(Tt={})).create=function(e,t){return{range:e,text:t}},(Mt||(Mt={})).create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}},(Dt||(Dt={})).is=function(e){const t=e;return jt.objectLiteral(t)&&l.is(t.uri)&&jt.string(t.name)},function(e){function t(e,n){if(e.length<=1)return e;const r=e.length/2|0,i=e.slice(0,r),o=e.slice(r);t(i,n),t(o,n);let a=0,s=0,u=0;for(;a{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=r.length;for(let t=i.length-1;t>=0;t--){let n=i[t],a=e.offsetAt(n.range.start),s=e.offsetAt(n.range.end);if(!(s<=o))throw new Error("Overlapping edit");r=r.substring(0,a)+n.newText+r.substring(s,r.length),o=a}return r}}(Pt||(Pt={}));var jt,Nt=class{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return p.create(0,e);for(;ne?r=i:n=i+1}let i=n-1;return p.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1{let t,n=e.getLanguageId();n===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent((()=>{window.clearTimeout(t),t=window.setTimeout((()=>this._doValidate(e.uri,n)),500)})),this._doValidate(e.uri,n))},i=e=>{c.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),n=this._listener[t];n&&(n.dispose(),delete this._listener[t])};this._disposables.push(c.editor.onDidCreateModel(r)),this._disposables.push(c.editor.onWillDisposeModel(i)),this._disposables.push(c.editor.onDidChangeModelLanguage((e=>{i(e.model),r(e.model)}))),this._disposables.push(n((e=>{c.editor.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(i(e),r(e))}))}))),this._disposables.push({dispose:()=>{c.editor.getModels().forEach(i);for(let e in this._listener)this._listener[e].dispose()}}),c.editor.getModels().forEach(r)}dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables.length=0}_doValidate(e,t){this._worker(e).then((t=>t.doValidation(e.toString()))).then((n=>{const r=n.map((e=>function(e,t){let n="number"==typeof t.code?String(t.code):t.code;return{severity:Vt(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source}}(0,e)));let i=c.editor.getModel(e);i&&i.getLanguageId()===t&&c.editor.setModelMarkers(i,t,r)})).then(void 0,(e=>{console.error(e)}))}};function Vt(e){switch(e){case j.Error:return c.MarkerSeverity.Error;case j.Warning:return c.MarkerSeverity.Warning;case j.Information:return c.MarkerSeverity.Info;case j.Hint:return c.MarkerSeverity.Hint;default:return c.MarkerSeverity.Info}}var Ot=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doComplete(i.toString(),Kt(t)))).then((n=>{if(!n)return;const r=e.getWordUntilPosition(t),i=new c.Range(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn),o=n.items.map((e=>{const t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(n=e.command,n&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0),range:i,kind:Xt(e.kind)};var n,r;return e.textEdit&&(void 0!==(r=e.textEdit).insert&&void 0!==r.replace?t.range={insert:Ht(e.textEdit.insert),replace:Ht(e.textEdit.replace)}:t.range=Ht(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(zt)),e.insertTextFormat===ke.Snippet&&(t.insertTextRules=c.languages.CompletionItemInsertTextRule.InsertAsSnippet),t}));return{isIncomplete:n.isIncomplete,suggestions:o}}))}};function Kt(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function Wt(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function Ht(e){if(e)return new c.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function Xt(e){const t=c.languages.CompletionItemKind;switch(e){case be.Text:return t.Text;case be.Method:return t.Method;case be.Function:return t.Function;case be.Constructor:return t.Constructor;case be.Field:return t.Field;case be.Variable:return t.Variable;case be.Class:return t.Class;case be.Interface:return t.Interface;case be.Module:return t.Module;case be.Property:return t.Property;case be.Unit:return t.Unit;case be.Value:return t.Value;case be.Enum:return t.Enum;case be.Keyword:return t.Keyword;case be.Snippet:return t.Snippet;case be.Color:return t.Color;case be.File:return t.File;case be.Reference:return t.Reference}return t.Property}function zt(e){if(e)return{range:Ht(e.range),text:e.newText}}var $t=class{constructor(e){this._worker=e}provideHover(e,t,n){let r=e.uri;return this._worker(r).then((e=>e.doHover(r.toString(),Kt(t)))).then((e=>{if(e)return{range:Ht(e.range),contents:qt(e.contents)}}))}};function Bt(e){return"string"==typeof e?{value:e}:(t=e)&&"object"==typeof t&&"string"==typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t}function qt(e){if(e)return Array.isArray(e)?e.map(Bt):[Bt(e)]}var Qt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDocumentHighlights(r.toString(),Kt(t)))).then((e=>{if(e)return e.map((e=>({range:Ht(e.range),kind:Gt(e.kind)})))}))}};function Gt(e){switch(e){case Fe.Read:return c.languages.DocumentHighlightKind.Read;case Fe.Write:return c.languages.DocumentHighlightKind.Write;case Fe.Text:return c.languages.DocumentHighlightKind.Text}return c.languages.DocumentHighlightKind.Text}var Jt=class{constructor(e){this._worker=e}provideDefinition(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDefinition(r.toString(),Kt(t)))).then((e=>{if(e)return[Yt(e)]}))}};function Yt(e){return{uri:c.Uri.parse(e.uri),range:Ht(e.range)}}var Zt=class{constructor(e){this._worker=e}provideReferences(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.findReferences(i.toString(),Kt(t)))).then((e=>{if(e)return e.map(Yt)}))}},en=class{constructor(e){this._worker=e}provideRenameEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doRename(i.toString(),Kt(t),n))).then((e=>function(e){if(!e||!e.changes)return;let t=[];for(let n in e.changes){const r=c.Uri.parse(n);for(let i of e.changes[n])t.push({resource:r,versionId:void 0,textEdit:{range:Ht(i.range),text:i.newText}})}return{edits:t}}(e)))}},tn=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentSymbols(n.toString()))).then((e=>{if(e)return e.map((e=>"children"in e?nn(e):{name:e.name,detail:"",containerName:e.containerName,kind:rn(e.kind),range:Ht(e.location.range),selectionRange:Ht(e.location.range),tags:[]}))}))}};function nn(e){return{name:e.name,detail:e.detail??"",kind:rn(e.kind),range:Ht(e.range),selectionRange:Ht(e.selectionRange),tags:e.tags??[],children:(e.children??[]).map((e=>nn(e)))}}function rn(e){let t=c.languages.SymbolKind;switch(e){case Ue.File:return t.File;case Ue.Module:return t.Module;case Ue.Namespace:return t.Namespace;case Ue.Package:return t.Package;case Ue.Class:return t.Class;case Ue.Method:return t.Method;case Ue.Property:return t.Property;case Ue.Field:return t.Field;case Ue.Constructor:return t.Constructor;case Ue.Enum:return t.Enum;case Ue.Interface:return t.Interface;case Ue.Function:return t.Function;case Ue.Variable:return t.Variable;case Ue.Constant:return t.Constant;case Ue.String:return t.String;case Ue.Number:return t.Number;case Ue.Boolean:return t.Boolean;case Ue.Array:return t.Array}return t.Function}var on=class{constructor(e){this._worker=e}provideLinks(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentLinks(n.toString()))).then((e=>{if(e)return{links:e.map((e=>({range:Ht(e.range),url:e.target})))}}))}},an=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.format(r.toString(),null,un(t)).then((e=>{if(e&&0!==e.length)return e.map(zt)}))))}},sn=class{constructor(e){this._worker=e,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.format(i.toString(),Wt(t),un(n)).then((e=>{if(e&&0!==e.length)return e.map(zt)}))))}};function un(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var cn=class{constructor(e){this._worker=e}provideDocumentColors(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentColors(n.toString()))).then((e=>{if(e)return e.map((e=>({color:e.color,range:Ht(e.range)})))}))}provideColorPresentations(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getColorPresentations(r.toString(),t.color,Wt(t.range)))).then((e=>{if(e)return e.map((e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=zt(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(zt)),t}))}))}},dn=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getFoldingRanges(r.toString(),t))).then((e=>{if(e)return e.map((e=>{const t={start:e.startLine+1,end:e.endLine+1};return void 0!==e.kind&&(t.kind=function(e){switch(e){case L.Comment:return c.languages.FoldingRangeKind.Comment;case L.Imports:return c.languages.FoldingRangeKind.Imports;case L.Region:return c.languages.FoldingRangeKind.Region}}(e.kind)),t}))}))}},ln=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getSelectionRanges(r.toString(),t.map(Kt)))).then((e=>{if(e)return e.map((e=>{const t=[];for(;e;)t.push({range:Ht(e.range)}),e=e.parent;return t}))}))}};function gn(e){const t=[],n=[],r=new Ft(e);t.push(r);const i=(...e)=>r.getLanguageServiceWorker(...e);return function(){const{languageId:t,modeConfiguration:r}=e;hn(n),r.completionItems&&n.push(c.languages.registerCompletionItemProvider(t,new Ot(i,["/","-",":"]))),r.hovers&&n.push(c.languages.registerHoverProvider(t,new $t(i))),r.documentHighlights&&n.push(c.languages.registerDocumentHighlightProvider(t,new Qt(i))),r.definitions&&n.push(c.languages.registerDefinitionProvider(t,new Jt(i))),r.references&&n.push(c.languages.registerReferenceProvider(t,new Zt(i))),r.documentSymbols&&n.push(c.languages.registerDocumentSymbolProvider(t,new tn(i))),r.rename&&n.push(c.languages.registerRenameProvider(t,new en(i))),r.colors&&n.push(c.languages.registerColorProvider(t,new cn(i))),r.foldingRanges&&n.push(c.languages.registerFoldingRangeProvider(t,new dn(i))),r.diagnostics&&n.push(new Ut(t,i,e.onDidChange)),r.selectionRanges&&n.push(c.languages.registerSelectionRangeProvider(t,new ln(i))),r.documentFormattingEdits&&n.push(c.languages.registerDocumentFormattingEditProvider(t,new an(i))),r.documentRangeFormattingEdits&&n.push(c.languages.registerDocumentRangeFormattingEditProvider(t,new sn(i)))}(),t.push(fn(n)),fn(t)}function fn(e){return{dispose:()=>hn(e)}}function hn(e){for(;e.length;)e.pop().dispose()}}}]); \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/745.bundle.js.LICENSE.txt b/Dependencies/monaco-textmate.bundle/745.bundle.js.LICENSE.txt deleted file mode 100644 index b86f87591..000000000 --- a/Dependencies/monaco-textmate.bundle/745.bundle.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.50.0(596bd541599cd083b7d07625521a36aaab18e7c8) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/ diff --git a/Dependencies/monaco-textmate.bundle/77.bundle.js b/Dependencies/monaco-textmate.bundle/77.bundle.js deleted file mode 100644 index b72c70ee0..000000000 --- a/Dependencies/monaco-textmate.bundle/77.bundle.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 77.bundle.js.LICENSE.txt */ -"use strict";(self.webpackChunkmonaco_tm=self.webpackChunkmonaco_tm||[]).push([[77],{72077:(e,t,n)=>{n.r(t),n.d(t,{CompletionAdapter:()=>Ot,DefinitionAdapter:()=>Jt,DiagnosticsAdapter:()=>Ut,DocumentColorAdapter:()=>cn,DocumentFormattingEditProvider:()=>an,DocumentHighlightAdapter:()=>Qt,DocumentLinkAdapter:()=>on,DocumentRangeFormattingEditProvider:()=>sn,DocumentSymbolAdapter:()=>tn,FoldingRangeAdapter:()=>dn,HoverAdapter:()=>$t,ReferenceAdapter:()=>Zt,RenameAdapter:()=>en,SelectionRangeAdapter:()=>ln,WorkerManager:()=>Ft,fromPosition:()=>Wt,fromRange:()=>Ht,setupMode:()=>mn,setupMode1:()=>fn,toRange:()=>Kt,toTextEdit:()=>zt});var r=n(514),i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of a(t))s.call(e,u)||u===n||i(e,u,{get:()=>t[u],enumerable:!(r=o(t,u))||r.enumerable});return e},c={};u(c,r,"default");var d,l,g,f,m,h,p,v,b,k,_,w,y,x,I,E,S,A,C,R,L,T,M,P,D,F,j,N,U,V,O,W,H,K,X,z,$,B,q,Q,G,J,Y,Z,ee,te,ne,re,ie,oe,ae,se,ue,ce,de,le,ge,fe,me,he,pe,ve,be,ke,_e,we,ye,xe,Ie,Ee,Se,Ae,Ce,Re,Le,Te,Me,Pe,De,Fe,je,Ne,Ue,Ve,Oe,We,He,Ke,Xe,ze,$e,Be,qe,Qe,Ge,Je,Ye,Ze,et,tt,nt,rt,it,ot,at,st,ut,ct,dt,lt,gt,ft,mt,ht,pt,vt,bt,kt,_t,wt,yt,xt,It,Et,St,At,Ct,Rt,Lt,Tt,Mt,Pt,Dt,Ft=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((()=>this._checkIfIdle()),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker()))}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){this._worker&&Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=c.editor.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then((e=>{t=e})).then((t=>{if(this._worker)return this._worker.withSyncedResources(e)})).then((e=>t))}};(d||(d={})).is=function(e){return"string"==typeof e},(l||(l={})).is=function(e){return"string"==typeof e},(f=g||(g={})).MIN_VALUE=-2147483648,f.MAX_VALUE=2147483647,f.is=function(e){return"number"==typeof e&&f.MIN_VALUE<=e&&e<=f.MAX_VALUE},(h=m||(m={})).MIN_VALUE=0,h.MAX_VALUE=2147483647,h.is=function(e){return"number"==typeof e&&h.MIN_VALUE<=e&&e<=h.MAX_VALUE},(v=p||(p={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=m.MAX_VALUE),t===Number.MAX_VALUE&&(t=m.MAX_VALUE),{line:e,character:t}},v.is=function(e){let t=e;return jt.objectLiteral(t)&&jt.uinteger(t.line)&&jt.uinteger(t.character)},(k=b||(b={})).create=function(e,t,n,r){if(jt.uinteger(e)&&jt.uinteger(t)&&jt.uinteger(n)&&jt.uinteger(r))return{start:p.create(e,t),end:p.create(n,r)};if(p.is(e)&&p.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)},k.is=function(e){let t=e;return jt.objectLiteral(t)&&p.is(t.start)&&p.is(t.end)},(w=_||(_={})).create=function(e,t){return{uri:e,range:t}},w.is=function(e){let t=e;return jt.objectLiteral(t)&&b.is(t.range)&&(jt.string(t.uri)||jt.undefined(t.uri))},(x=y||(y={})).create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},x.is=function(e){let t=e;return jt.objectLiteral(t)&&b.is(t.targetRange)&&jt.string(t.targetUri)&&b.is(t.targetSelectionRange)&&(b.is(t.originSelectionRange)||jt.undefined(t.originSelectionRange))},(E=I||(I={})).create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},E.is=function(e){const t=e;return jt.objectLiteral(t)&&jt.numberRange(t.red,0,1)&&jt.numberRange(t.green,0,1)&&jt.numberRange(t.blue,0,1)&&jt.numberRange(t.alpha,0,1)},(A=S||(S={})).create=function(e,t){return{range:e,color:t}},A.is=function(e){const t=e;return jt.objectLiteral(t)&&b.is(t.range)&&I.is(t.color)},(R=C||(C={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},R.is=function(e){const t=e;return jt.objectLiteral(t)&&jt.string(t.label)&&(jt.undefined(t.textEdit)||z.is(t))&&(jt.undefined(t.additionalTextEdits)||jt.typedArray(t.additionalTextEdits,z.is))},(T=L||(L={})).Comment="comment",T.Imports="imports",T.Region="region",(P=M||(M={})).create=function(e,t,n,r,i,o){const a={startLine:e,endLine:t};return jt.defined(n)&&(a.startCharacter=n),jt.defined(r)&&(a.endCharacter=r),jt.defined(i)&&(a.kind=i),jt.defined(o)&&(a.collapsedText=o),a},P.is=function(e){const t=e;return jt.objectLiteral(t)&&jt.uinteger(t.startLine)&&jt.uinteger(t.startLine)&&(jt.undefined(t.startCharacter)||jt.uinteger(t.startCharacter))&&(jt.undefined(t.endCharacter)||jt.uinteger(t.endCharacter))&&(jt.undefined(t.kind)||jt.string(t.kind))},(F=D||(D={})).create=function(e,t){return{location:e,message:t}},F.is=function(e){let t=e;return jt.defined(t)&&_.is(t.location)&&jt.string(t.message)},(N=j||(j={})).Error=1,N.Warning=2,N.Information=3,N.Hint=4,(V=U||(U={})).Unnecessary=1,V.Deprecated=2,(O||(O={})).is=function(e){const t=e;return jt.objectLiteral(t)&&jt.string(t.href)},(H=W||(W={})).create=function(e,t,n,r,i,o){let a={range:e,message:t};return jt.defined(n)&&(a.severity=n),jt.defined(r)&&(a.code=r),jt.defined(i)&&(a.source=i),jt.defined(o)&&(a.relatedInformation=o),a},H.is=function(e){var t;let n=e;return jt.defined(n)&&b.is(n.range)&&jt.string(n.message)&&(jt.number(n.severity)||jt.undefined(n.severity))&&(jt.integer(n.code)||jt.string(n.code)||jt.undefined(n.code))&&(jt.undefined(n.codeDescription)||jt.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(jt.string(n.source)||jt.undefined(n.source))&&(jt.undefined(n.relatedInformation)||jt.typedArray(n.relatedInformation,D.is))},(X=K||(K={})).create=function(e,t,...n){let r={title:e,command:t};return jt.defined(n)&&n.length>0&&(r.arguments=n),r},X.is=function(e){let t=e;return jt.defined(t)&&jt.string(t.title)&&jt.string(t.command)},($=z||(z={})).replace=function(e,t){return{range:e,newText:t}},$.insert=function(e,t){return{range:{start:e,end:e},newText:t}},$.del=function(e){return{range:e,newText:""}},$.is=function(e){const t=e;return jt.objectLiteral(t)&&jt.string(t.newText)&&b.is(t.range)},(q=B||(B={})).create=function(e,t,n){const r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},q.is=function(e){const t=e;return jt.objectLiteral(t)&&jt.string(t.label)&&(jt.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(jt.string(t.description)||void 0===t.description)},(Q||(Q={})).is=function(e){const t=e;return jt.string(t)},(J=G||(G={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},J.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},J.del=function(e,t){return{range:e,newText:"",annotationId:t}},J.is=function(e){const t=e;return z.is(t)&&(B.is(t.annotationId)||Q.is(t.annotationId))},(Z=Y||(Y={})).create=function(e,t){return{textDocument:e,edits:t}},Z.is=function(e){let t=e;return jt.defined(t)&&le.is(t.textDocument)&&Array.isArray(t.edits)},(te=ee||(ee={})).create=function(e,t,n){let r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},te.is=function(e){let t=e;return t&&"create"===t.kind&&jt.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||jt.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||jt.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Q.is(t.annotationId))},(re=ne||(ne={})).create=function(e,t,n,r){let i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},re.is=function(e){let t=e;return t&&"rename"===t.kind&&jt.string(t.oldUri)&&jt.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||jt.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||jt.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Q.is(t.annotationId))},(oe=ie||(ie={})).create=function(e,t,n){let r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},oe.is=function(e){let t=e;return t&&"delete"===t.kind&&jt.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||jt.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||jt.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||Q.is(t.annotationId))},(ae||(ae={})).is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>jt.string(e.kind)?ee.is(e)||ne.is(e)||ie.is(e):Y.is(e))))},(ue=se||(se={})).create=function(e){return{uri:e}},ue.is=function(e){let t=e;return jt.defined(t)&&jt.string(t.uri)},(de=ce||(ce={})).create=function(e,t){return{uri:e,version:t}},de.is=function(e){let t=e;return jt.defined(t)&&jt.string(t.uri)&&jt.integer(t.version)},(ge=le||(le={})).create=function(e,t){return{uri:e,version:t}},ge.is=function(e){let t=e;return jt.defined(t)&&jt.string(t.uri)&&(null===t.version||jt.integer(t.version))},(me=fe||(fe={})).create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},me.is=function(e){let t=e;return jt.defined(t)&&jt.string(t.uri)&&jt.string(t.languageId)&&jt.integer(t.version)&&jt.string(t.text)},(pe=he||(he={})).PlainText="plaintext",pe.Markdown="markdown",pe.is=function(e){const t=e;return t===pe.PlainText||t===pe.Markdown},(ve||(ve={})).is=function(e){const t=e;return jt.objectLiteral(e)&&he.is(t.kind)&&jt.string(t.value)},(ke=be||(be={})).Text=1,ke.Method=2,ke.Function=3,ke.Constructor=4,ke.Field=5,ke.Variable=6,ke.Class=7,ke.Interface=8,ke.Module=9,ke.Property=10,ke.Unit=11,ke.Value=12,ke.Enum=13,ke.Keyword=14,ke.Snippet=15,ke.Color=16,ke.File=17,ke.Reference=18,ke.Folder=19,ke.EnumMember=20,ke.Constant=21,ke.Struct=22,ke.Event=23,ke.Operator=24,ke.TypeParameter=25,(we=_e||(_e={})).PlainText=1,we.Snippet=2,(ye||(ye={})).Deprecated=1,(Ie=xe||(xe={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},Ie.is=function(e){const t=e;return t&&jt.string(t.newText)&&b.is(t.insert)&&b.is(t.replace)},(Se=Ee||(Ee={})).asIs=1,Se.adjustIndentation=2,(Ae||(Ae={})).is=function(e){const t=e;return t&&(jt.string(t.detail)||void 0===t.detail)&&(jt.string(t.description)||void 0===t.description)},(Ce||(Ce={})).create=function(e){return{label:e}},(Re||(Re={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(Te=Le||(Le={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Te.is=function(e){const t=e;return jt.string(t)||jt.objectLiteral(t)&&jt.string(t.language)&&jt.string(t.value)},(Me||(Me={})).is=function(e){let t=e;return!!t&&jt.objectLiteral(t)&&(ve.is(t.contents)||Le.is(t.contents)||jt.typedArray(t.contents,Le.is))&&(void 0===e.range||b.is(e.range))},(Pe||(Pe={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(De||(De={})).create=function(e,t,...n){let r={label:e};return jt.defined(t)&&(r.documentation=t),jt.defined(n)?r.parameters=n:r.parameters=[],r},(je=Fe||(Fe={})).Text=1,je.Read=2,je.Write=3,(Ne||(Ne={})).create=function(e,t){let n={range:e};return jt.number(t)&&(n.kind=t),n},(Ve=Ue||(Ue={})).File=1,Ve.Module=2,Ve.Namespace=3,Ve.Package=4,Ve.Class=5,Ve.Method=6,Ve.Property=7,Ve.Field=8,Ve.Constructor=9,Ve.Enum=10,Ve.Interface=11,Ve.Function=12,Ve.Variable=13,Ve.Constant=14,Ve.String=15,Ve.Number=16,Ve.Boolean=17,Ve.Array=18,Ve.Object=19,Ve.Key=20,Ve.Null=21,Ve.EnumMember=22,Ve.Struct=23,Ve.Event=24,Ve.Operator=25,Ve.TypeParameter=26,(Oe||(Oe={})).Deprecated=1,(We||(We={})).create=function(e,t,n,r,i){let o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o},(He||(He={})).create=function(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}},(Xe=Ke||(Ke={})).create=function(e,t,n,r,i,o){let a={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a},Xe.is=function(e){let t=e;return t&&jt.string(t.name)&&jt.number(t.kind)&&b.is(t.range)&&b.is(t.selectionRange)&&(void 0===t.detail||jt.string(t.detail))&&(void 0===t.deprecated||jt.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))},($e=ze||(ze={})).Empty="",$e.QuickFix="quickfix",$e.Refactor="refactor",$e.RefactorExtract="refactor.extract",$e.RefactorInline="refactor.inline",$e.RefactorRewrite="refactor.rewrite",$e.Source="source",$e.SourceOrganizeImports="source.organizeImports",$e.SourceFixAll="source.fixAll",(qe=Be||(Be={})).Invoked=1,qe.Automatic=2,(Ge=Qe||(Qe={})).create=function(e,t,n){let r={diagnostics:e};return null!=t&&(r.only=t),null!=n&&(r.triggerKind=n),r},Ge.is=function(e){let t=e;return jt.defined(t)&&jt.typedArray(t.diagnostics,W.is)&&(void 0===t.only||jt.typedArray(t.only,jt.string))&&(void 0===t.triggerKind||t.triggerKind===Be.Invoked||t.triggerKind===Be.Automatic)},(Ye=Je||(Je={})).create=function(e,t,n){let r={title:e},i=!0;return"string"==typeof t?(i=!1,r.kind=t):K.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},Ye.is=function(e){let t=e;return t&&jt.string(t.title)&&(void 0===t.diagnostics||jt.typedArray(t.diagnostics,W.is))&&(void 0===t.kind||jt.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||K.is(t.command))&&(void 0===t.isPreferred||jt.boolean(t.isPreferred))&&(void 0===t.edit||ae.is(t.edit))},(et=Ze||(Ze={})).create=function(e,t){let n={range:e};return jt.defined(t)&&(n.data=t),n},et.is=function(e){let t=e;return jt.defined(t)&&b.is(t.range)&&(jt.undefined(t.command)||K.is(t.command))},(nt=tt||(tt={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},nt.is=function(e){let t=e;return jt.defined(t)&&jt.uinteger(t.tabSize)&&jt.boolean(t.insertSpaces)},(it=rt||(rt={})).create=function(e,t,n){return{range:e,target:t,data:n}},it.is=function(e){let t=e;return jt.defined(t)&&b.is(t.range)&&(jt.undefined(t.target)||jt.string(t.target))},(at=ot||(ot={})).create=function(e,t){return{range:e,parent:t}},at.is=function(e){let t=e;return jt.objectLiteral(t)&&b.is(t.range)&&(void 0===t.parent||at.is(t.parent))},(ut=st||(st={})).namespace="namespace",ut.type="type",ut.class="class",ut.enum="enum",ut.interface="interface",ut.struct="struct",ut.typeParameter="typeParameter",ut.parameter="parameter",ut.variable="variable",ut.property="property",ut.enumMember="enumMember",ut.event="event",ut.function="function",ut.method="method",ut.macro="macro",ut.keyword="keyword",ut.modifier="modifier",ut.comment="comment",ut.string="string",ut.number="number",ut.regexp="regexp",ut.operator="operator",ut.decorator="decorator",(dt=ct||(ct={})).declaration="declaration",dt.definition="definition",dt.readonly="readonly",dt.static="static",dt.deprecated="deprecated",dt.abstract="abstract",dt.async="async",dt.modification="modification",dt.documentation="documentation",dt.defaultLibrary="defaultLibrary",(lt||(lt={})).is=function(e){const t=e;return jt.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])},(ft=gt||(gt={})).create=function(e,t){return{range:e,text:t}},ft.is=function(e){const t=e;return null!=t&&b.is(t.range)&&jt.string(t.text)},(ht=mt||(mt={})).create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},ht.is=function(e){const t=e;return null!=t&&b.is(t.range)&&jt.boolean(t.caseSensitiveLookup)&&(jt.string(t.variableName)||void 0===t.variableName)},(vt=pt||(pt={})).create=function(e,t){return{range:e,expression:t}},vt.is=function(e){const t=e;return null!=t&&b.is(t.range)&&(jt.string(t.expression)||void 0===t.expression)},(kt=bt||(bt={})).create=function(e,t){return{frameId:e,stoppedLocation:t}},kt.is=function(e){const t=e;return jt.defined(t)&&b.is(e.stoppedLocation)},(wt=_t||(_t={})).Type=1,wt.Parameter=2,wt.is=function(e){return 1===e||2===e},(xt=yt||(yt={})).create=function(e){return{value:e}},xt.is=function(e){const t=e;return jt.objectLiteral(t)&&(void 0===t.tooltip||jt.string(t.tooltip)||ve.is(t.tooltip))&&(void 0===t.location||_.is(t.location))&&(void 0===t.command||K.is(t.command))},(Et=It||(It={})).create=function(e,t,n){const r={position:e,label:t};return void 0!==n&&(r.kind=n),r},Et.is=function(e){const t=e;return jt.objectLiteral(t)&&p.is(t.position)&&(jt.string(t.label)||jt.typedArray(t.label,yt.is))&&(void 0===t.kind||_t.is(t.kind))&&void 0===t.textEdits||jt.typedArray(t.textEdits,z.is)&&(void 0===t.tooltip||jt.string(t.tooltip)||ve.is(t.tooltip))&&(void 0===t.paddingLeft||jt.boolean(t.paddingLeft))&&(void 0===t.paddingRight||jt.boolean(t.paddingRight))},(St||(St={})).createSnippet=function(e){return{kind:"snippet",value:e}},(At||(At={})).create=function(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}},(Ct||(Ct={})).create=function(e){return{items:e}},(Lt=Rt||(Rt={})).Invoked=0,Lt.Automatic=1,(Tt||(Tt={})).create=function(e,t){return{range:e,text:t}},(Mt||(Mt={})).create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}},(Pt||(Pt={})).is=function(e){const t=e;return jt.objectLiteral(t)&&l.is(t.uri)&&jt.string(t.name)},function(e){function t(e,n){if(e.length<=1)return e;const r=e.length/2|0,i=e.slice(0,r),o=e.slice(r);t(i,n),t(o,n);let a=0,s=0,u=0;for(;a{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=r.length;for(let t=i.length-1;t>=0;t--){let n=i[t],a=e.offsetAt(n.range.start),s=e.offsetAt(n.range.end);if(!(s<=o))throw new Error("Overlapping edit");r=r.substring(0,a)+n.newText+r.substring(s,r.length),o=a}return r}}(Dt||(Dt={}));var jt,Nt=class{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return p.create(0,e);for(;ne?r=i:n=i+1}let i=n-1;return p.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1{let t,n=e.getLanguageId();n===this._languageId&&(this._listener[e.uri.toString()]=e.onDidChangeContent((()=>{window.clearTimeout(t),t=window.setTimeout((()=>this._doValidate(e.uri,n)),500)})),this._doValidate(e.uri,n))},i=e=>{c.editor.setModelMarkers(e,this._languageId,[]);let t=e.uri.toString(),n=this._listener[t];n&&(n.dispose(),delete this._listener[t])};this._disposables.push(c.editor.onDidCreateModel(r)),this._disposables.push(c.editor.onWillDisposeModel(i)),this._disposables.push(c.editor.onDidChangeModelLanguage((e=>{i(e.model),r(e.model)}))),this._disposables.push(n((e=>{c.editor.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(i(e),r(e))}))}))),this._disposables.push({dispose:()=>{c.editor.getModels().forEach(i);for(let e in this._listener)this._listener[e].dispose()}}),c.editor.getModels().forEach(r)}dispose(){this._disposables.forEach((e=>e&&e.dispose())),this._disposables.length=0}_doValidate(e,t){this._worker(e).then((t=>t.doValidation(e.toString()))).then((n=>{const r=n.map((e=>function(e,t){let n="number"==typeof t.code?String(t.code):t.code;return{severity:Vt(t.severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message,code:n,source:t.source}}(0,e)));let i=c.editor.getModel(e);i&&i.getLanguageId()===t&&c.editor.setModelMarkers(i,t,r)})).then(void 0,(e=>{console.error(e)}))}};function Vt(e){switch(e){case j.Error:return c.MarkerSeverity.Error;case j.Warning:return c.MarkerSeverity.Warning;case j.Information:return c.MarkerSeverity.Info;case j.Hint:return c.MarkerSeverity.Hint;default:return c.MarkerSeverity.Info}}var Ot=class{constructor(e,t){this._worker=e,this._triggerCharacters=t}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doComplete(i.toString(),Wt(t)))).then((n=>{if(!n)return;const r=e.getWordUntilPosition(t),i=new c.Range(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn),o=n.items.map((e=>{const t={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(n=e.command,n&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0),range:i,kind:Xt(e.kind)};var n,r;return e.textEdit&&(void 0!==(r=e.textEdit).insert&&void 0!==r.replace?t.range={insert:Kt(e.textEdit.insert),replace:Kt(e.textEdit.replace)}:t.range=Kt(e.textEdit.range),t.insertText=e.textEdit.newText),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(zt)),e.insertTextFormat===_e.Snippet&&(t.insertTextRules=c.languages.CompletionItemInsertTextRule.InsertAsSnippet),t}));return{isIncomplete:n.isIncomplete,suggestions:o}}))}};function Wt(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function Ht(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function Kt(e){if(e)return new c.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function Xt(e){const t=c.languages.CompletionItemKind;switch(e){case be.Text:return t.Text;case be.Method:return t.Method;case be.Function:return t.Function;case be.Constructor:return t.Constructor;case be.Field:return t.Field;case be.Variable:return t.Variable;case be.Class:return t.Class;case be.Interface:return t.Interface;case be.Module:return t.Module;case be.Property:return t.Property;case be.Unit:return t.Unit;case be.Value:return t.Value;case be.Enum:return t.Enum;case be.Keyword:return t.Keyword;case be.Snippet:return t.Snippet;case be.Color:return t.Color;case be.File:return t.File;case be.Reference:return t.Reference}return t.Property}function zt(e){if(e)return{range:Kt(e.range),text:e.newText}}var $t=class{constructor(e){this._worker=e}provideHover(e,t,n){let r=e.uri;return this._worker(r).then((e=>e.doHover(r.toString(),Wt(t)))).then((e=>{if(e)return{range:Kt(e.range),contents:qt(e.contents)}}))}};function Bt(e){return"string"==typeof e?{value:e}:(t=e)&&"object"==typeof t&&"string"==typeof t.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var t}function qt(e){if(e)return Array.isArray(e)?e.map(Bt):[Bt(e)]}var Qt=class{constructor(e){this._worker=e}provideDocumentHighlights(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDocumentHighlights(r.toString(),Wt(t)))).then((e=>{if(e)return e.map((e=>({range:Kt(e.range),kind:Gt(e.kind)})))}))}};function Gt(e){switch(e){case Fe.Read:return c.languages.DocumentHighlightKind.Read;case Fe.Write:return c.languages.DocumentHighlightKind.Write;case Fe.Text:return c.languages.DocumentHighlightKind.Text}return c.languages.DocumentHighlightKind.Text}var Jt=class{constructor(e){this._worker=e}provideDefinition(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.findDefinition(r.toString(),Wt(t)))).then((e=>{if(e)return[Yt(e)]}))}};function Yt(e){return{uri:c.Uri.parse(e.uri),range:Kt(e.range)}}var Zt=class{constructor(e){this._worker=e}provideReferences(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.findReferences(i.toString(),Wt(t)))).then((e=>{if(e)return e.map(Yt)}))}},en=class{constructor(e){this._worker=e}provideRenameEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.doRename(i.toString(),Wt(t),n))).then((e=>function(e){if(!e||!e.changes)return;let t=[];for(let n in e.changes){const r=c.Uri.parse(n);for(let i of e.changes[n])t.push({resource:r,versionId:void 0,textEdit:{range:Kt(i.range),text:i.newText}})}return{edits:t}}(e)))}},tn=class{constructor(e){this._worker=e}provideDocumentSymbols(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentSymbols(n.toString()))).then((e=>{if(e)return e.map((e=>"children"in e?nn(e):{name:e.name,detail:"",containerName:e.containerName,kind:rn(e.kind),range:Kt(e.location.range),selectionRange:Kt(e.location.range),tags:[]}))}))}};function nn(e){return{name:e.name,detail:e.detail??"",kind:rn(e.kind),range:Kt(e.range),selectionRange:Kt(e.selectionRange),tags:e.tags??[],children:(e.children??[]).map((e=>nn(e)))}}function rn(e){let t=c.languages.SymbolKind;switch(e){case Ue.File:return t.File;case Ue.Module:return t.Module;case Ue.Namespace:return t.Namespace;case Ue.Package:return t.Package;case Ue.Class:return t.Class;case Ue.Method:return t.Method;case Ue.Property:return t.Property;case Ue.Field:return t.Field;case Ue.Constructor:return t.Constructor;case Ue.Enum:return t.Enum;case Ue.Interface:return t.Interface;case Ue.Function:return t.Function;case Ue.Variable:return t.Variable;case Ue.Constant:return t.Constant;case Ue.String:return t.String;case Ue.Number:return t.Number;case Ue.Boolean:return t.Boolean;case Ue.Array:return t.Array}return t.Function}var on=class{constructor(e){this._worker=e}provideLinks(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentLinks(n.toString()))).then((e=>{if(e)return{links:e.map((e=>({range:Kt(e.range),url:e.target})))}}))}},an=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.format(r.toString(),null,un(t)).then((e=>{if(e&&0!==e.length)return e.map(zt)}))))}},sn=class{constructor(e){this._worker=e,this.canFormatMultipleRanges=!1}provideDocumentRangeFormattingEdits(e,t,n,r){const i=e.uri;return this._worker(i).then((e=>e.format(i.toString(),Ht(t),un(n)).then((e=>{if(e&&0!==e.length)return e.map(zt)}))))}};function un(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var cn=class{constructor(e){this._worker=e}provideDocumentColors(e,t){const n=e.uri;return this._worker(n).then((e=>e.findDocumentColors(n.toString()))).then((e=>{if(e)return e.map((e=>({color:e.color,range:Kt(e.range)})))}))}provideColorPresentations(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getColorPresentations(r.toString(),t.color,Ht(t.range)))).then((e=>{if(e)return e.map((e=>{let t={label:e.label};return e.textEdit&&(t.textEdit=zt(e.textEdit)),e.additionalTextEdits&&(t.additionalTextEdits=e.additionalTextEdits.map(zt)),t}))}))}},dn=class{constructor(e){this._worker=e}provideFoldingRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getFoldingRanges(r.toString(),t))).then((e=>{if(e)return e.map((e=>{const t={start:e.startLine+1,end:e.endLine+1};return void 0!==e.kind&&(t.kind=function(e){switch(e){case L.Comment:return c.languages.FoldingRangeKind.Comment;case L.Imports:return c.languages.FoldingRangeKind.Imports;case L.Region:return c.languages.FoldingRangeKind.Region}}(e.kind)),t}))}))}},ln=class{constructor(e){this._worker=e}provideSelectionRanges(e,t,n){const r=e.uri;return this._worker(r).then((e=>e.getSelectionRanges(r.toString(),t.map(Wt)))).then((e=>{if(e)return e.map((e=>{const t=[];for(;e;)t.push({range:Kt(e.range)}),e=e.parent;return t}))}))}},gn=class extends Ot{constructor(e){super(e,[".",":","<",'"',"=","/"])}};function fn(e){const t=new Ft(e),n=(...e)=>t.getLanguageServiceWorker(...e);let r=e.languageId;c.languages.registerCompletionItemProvider(r,new gn(n)),c.languages.registerHoverProvider(r,new $t(n)),c.languages.registerDocumentHighlightProvider(r,new Qt(n)),c.languages.registerLinkProvider(r,new on(n)),c.languages.registerFoldingRangeProvider(r,new dn(n)),c.languages.registerDocumentSymbolProvider(r,new tn(n)),c.languages.registerSelectionRangeProvider(r,new ln(n)),c.languages.registerRenameProvider(r,new en(n)),"html"===r&&(c.languages.registerDocumentFormattingEditProvider(r,new an(n)),c.languages.registerDocumentRangeFormattingEditProvider(r,new sn(n)))}function mn(e){const t=[],n=[],r=new Ft(e);t.push(r);const i=(...e)=>r.getLanguageServiceWorker(...e);return function(){const{languageId:t,modeConfiguration:r}=e;pn(n),r.completionItems&&n.push(c.languages.registerCompletionItemProvider(t,new gn(i))),r.hovers&&n.push(c.languages.registerHoverProvider(t,new $t(i))),r.documentHighlights&&n.push(c.languages.registerDocumentHighlightProvider(t,new Qt(i))),r.links&&n.push(c.languages.registerLinkProvider(t,new on(i))),r.documentSymbols&&n.push(c.languages.registerDocumentSymbolProvider(t,new tn(i))),r.rename&&n.push(c.languages.registerRenameProvider(t,new en(i))),r.foldingRanges&&n.push(c.languages.registerFoldingRangeProvider(t,new dn(i))),r.selectionRanges&&n.push(c.languages.registerSelectionRangeProvider(t,new ln(i))),r.documentFormattingEdits&&n.push(c.languages.registerDocumentFormattingEditProvider(t,new an(i))),r.documentRangeFormattingEdits&&n.push(c.languages.registerDocumentRangeFormattingEditProvider(t,new sn(i)))}(),t.push(hn(n)),hn(t)}function hn(e){return{dispose:()=>pn(e)}}function pn(e){for(;e.length;)e.pop().dispose()}}}]); \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/77.bundle.js.LICENSE.txt b/Dependencies/monaco-textmate.bundle/77.bundle.js.LICENSE.txt deleted file mode 100644 index b86f87591..000000000 --- a/Dependencies/monaco-textmate.bundle/77.bundle.js.LICENSE.txt +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.50.0(596bd541599cd083b7d07625521a36aaab18e7c8) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/ diff --git a/Dependencies/monaco-textmate.bundle/app.bundle.js b/Dependencies/monaco-textmate.bundle/app.bundle.js deleted file mode 100644 index c85679bce..000000000 --- a/Dependencies/monaco-textmate.bundle/app.bundle.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see app.bundle.js.LICENSE.txt */ -(()=>{var e,t,i={94566:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-action-bar {\n\twhite-space: nowrap;\n\theight: 100%;\n}\n\n.monaco-action-bar .actions-container {\n\tdisplay: flex;\n\tmargin: 0 auto;\n\tpadding: 0;\n\theight: 100%;\n\twidth: 100%;\n\talign-items: center;\n}\n\n.monaco-action-bar.vertical .actions-container {\n\tdisplay: inline-block;\n}\n\n.monaco-action-bar .action-item {\n\tdisplay: block;\n\talign-items: center;\n\tjustify-content: center;\n\tcursor: pointer;\n\tposition: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */\n}\n\n.monaco-action-bar .action-item.disabled {\n\tcursor: default;\n}\n\n.monaco-action-bar .action-item .icon,\n.monaco-action-bar .action-item .codicon {\n\tdisplay: block;\n}\n\n.monaco-action-bar .action-item .codicon {\n\tdisplay: flex;\n\talign-items: center;\n\twidth: 16px;\n\theight: 16px;\n}\n\n.monaco-action-bar .action-label {\n\tdisplay: flex;\n\tfont-size: 11px;\n\tpadding: 3px;\n\tborder-radius: 5px;\n}\n\n.monaco-action-bar .action-item.disabled .action-label,\n.monaco-action-bar .action-item.disabled .action-label::before,\n.monaco-action-bar .action-item.disabled .action-label:hover {\n\tcolor: var(--vscode-disabledForeground);\n}\n\n/* Vertical actions */\n\n.monaco-action-bar.vertical {\n\ttext-align: left;\n}\n\n.monaco-action-bar.vertical .action-item {\n\tdisplay: block;\n}\n\n.monaco-action-bar.vertical .action-label.separator {\n\tdisplay: block;\n\tborder-bottom: 1px solid #bbb;\n\tpadding-top: 1px;\n\tmargin-left: .8em;\n\tmargin-right: .8em;\n}\n\n.monaco-action-bar .action-item .action-label.separator {\n\twidth: 1px;\n\theight: 16px;\n\tmargin: 5px 4px !important;\n\tcursor: default;\n\tmin-width: 1px;\n\tpadding: 0;\n\tbackground-color: #bbb;\n}\n\n.secondary-actions .monaco-action-bar .action-label {\n\tmargin-left: 6px;\n}\n\n/* Action Items */\n.monaco-action-bar .action-item.select-container {\n\toverflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */\n\tflex: 1;\n\tmax-width: 170px;\n\tmin-width: 60px;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin-right: 10px;\n}\n\n.monaco-action-bar .action-item.action-dropdown-item {\n\tdisplay: flex;\n}\n\n.monaco-action-bar .action-item.action-dropdown-item > .action-dropdown-item-separator {\n\tdisplay: flex;\n\talign-items: center;\n\tcursor: default;\n}\n\n.monaco-action-bar .action-item.action-dropdown-item > .action-dropdown-item-separator > div {\n\twidth: 1px;\n}\n",""]);const s=o},35038:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-aria-container {\n\tposition: absolute; /* try to hide from window but not from screen readers */\n\tleft:-999em;\n}",""]);const s=o},18880:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-text-button {\n\tbox-sizing: border-box;\n\tdisplay: flex;\n\twidth: 100%;\n\tpadding: 4px;\n\tborder-radius: 2px;\n\ttext-align: center;\n\tcursor: pointer;\n\tjustify-content: center;\n\talign-items: center;\n\tborder: 1px solid var(--vscode-button-border, transparent);\n\tline-height: 18px;\n}\n\n.monaco-text-button:focus {\n\toutline-offset: 2px !important;\n}\n\n.monaco-text-button:hover {\n\ttext-decoration: none !important;\n}\n\n.monaco-button.disabled:focus,\n.monaco-button.disabled {\n\topacity: 0.4 !important;\n\tcursor: default;\n}\n\n.monaco-text-button .codicon {\n\tmargin: 0 0.2em;\n\tcolor: inherit !important;\n}\n\n.monaco-text-button.monaco-text-button-with-short-label {\n\tflex-direction: row;\n\tflex-wrap: wrap;\n\tpadding: 0 4px;\n\toverflow: hidden;\n\theight: 28px;\n}\n\n.monaco-text-button.monaco-text-button-with-short-label > .monaco-button-label {\n\tflex-basis: 100%;\n}\n\n.monaco-text-button.monaco-text-button-with-short-label > .monaco-button-label-short {\n\tflex-grow: 1;\n\twidth: 0;\n\toverflow: hidden;\n}\n\n.monaco-text-button.monaco-text-button-with-short-label > .monaco-button-label,\n.monaco-text-button.monaco-text-button-with-short-label > .monaco-button-label-short {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tfont-weight: normal;\n\tfont-style: inherit;\n\tpadding: 4px 0;\n}\n\n.monaco-button-dropdown {\n\tdisplay: flex;\n\tcursor: pointer;\n}\n\n.monaco-button-dropdown.disabled {\n\tcursor: default;\n}\n\n.monaco-button-dropdown > .monaco-button:focus {\n\toutline-offset: -1px !important;\n}\n\n.monaco-button-dropdown.disabled > .monaco-button.disabled,\n.monaco-button-dropdown.disabled > .monaco-button.disabled:focus,\n.monaco-button-dropdown.disabled > .monaco-button-dropdown-separator {\n\topacity: 0.4 !important;\n}\n\n.monaco-button-dropdown > .monaco-button.monaco-text-button {\n\tborder-right-width: 0 !important;\n}\n\n.monaco-button-dropdown .monaco-button-dropdown-separator {\n\tpadding: 4px 0;\n\tcursor: default;\n}\n\n.monaco-button-dropdown .monaco-button-dropdown-separator > div {\n\theight: 100%;\n\twidth: 1px;\n}\n\n.monaco-button-dropdown > .monaco-button.monaco-dropdown-button {\n\tborder: 1px solid var(--vscode-button-border, transparent);\n\tborder-left-width: 0 !important;\n\tborder-radius: 0 2px 2px 0;\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-button-dropdown > .monaco-button.monaco-text-button {\n\tborder-radius: 2px 0 0 2px;\n}\n\n.monaco-description-button {\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tmargin: 4px 5px; /* allows button focus outline to be visible */\n}\n\n.monaco-description-button .monaco-button-description {\n\tfont-style: italic;\n\tfont-size: 11px;\n\tpadding: 4px 20px;\n}\n\n.monaco-description-button .monaco-button-label,\n.monaco-description-button .monaco-button-description {\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n}\n\n.monaco-description-button .monaco-button-label > .codicon,\n.monaco-description-button .monaco-button-description > .codicon {\n\tmargin: 0 0.2em;\n\tcolor: inherit !important;\n}\n\n/* default color styles - based on CSS variables */\n\n.monaco-button.default-colors,\n.monaco-button-dropdown.default-colors > .monaco-button{\n\tcolor: var(--vscode-button-foreground);\n\tbackground-color: var(--vscode-button-background);\n}\n\n.monaco-button.default-colors:hover,\n.monaco-button-dropdown.default-colors > .monaco-button:hover {\n\tbackground-color: var(--vscode-button-hoverBackground);\n}\n\n.monaco-button.default-colors.secondary,\n.monaco-button-dropdown.default-colors > .monaco-button.secondary {\n\tcolor: var(--vscode-button-secondaryForeground);\n\tbackground-color: var(--vscode-button-secondaryBackground);\n}\n\n.monaco-button.default-colors.secondary:hover,\n.monaco-button-dropdown.default-colors > .monaco-button.secondary:hover {\n\tbackground-color: var(--vscode-button-secondaryHoverBackground);\n}\n\n.monaco-button-dropdown.default-colors .monaco-button-dropdown-separator {\n\tbackground-color: var(--vscode-button-background);\n\tborder-top: 1px solid var(--vscode-button-border);\n\tborder-bottom: 1px solid var(--vscode-button-border);\n}\n\n.monaco-button-dropdown.default-colors .monaco-button.secondary + .monaco-button-dropdown-separator {\n\tbackground-color: var(--vscode-button-secondaryBackground);\n}\n\n.monaco-button-dropdown.default-colors .monaco-button-dropdown-separator > div {\n\tbackground-color: var(--vscode-button-separator);\n}\n",""]);const s=o},714:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.codicon-wrench-subaction {\n\topacity: 0.5;\n}\n\n@keyframes codicon-spin {\n\t100% {\n\t\ttransform:rotate(360deg);\n\t}\n}\n\n.codicon-sync.codicon-modifier-spin,\n.codicon-loading.codicon-modifier-spin,\n.codicon-gear.codicon-modifier-spin,\n.codicon-notebook-state-executing.codicon-modifier-spin {\n\t/* Use steps to throttle FPS to reduce CPU usage */\n\tanimation: codicon-spin 1.5s steps(30) infinite;\n}\n\n.codicon-modifier-disabled {\n\topacity: 0.4;\n}\n\n/* custom speed & easing for loading icon */\n.codicon-loading,\n.codicon-tree-item-loading::before {\n\tanimation-duration: 1s !important;\n\tanimation-timing-function: cubic-bezier(0.53, 0.21, 0.29, 0.67) !important;\n}\n",""]);const s=o},12171:(e,t,i)=>{"use strict";i.d(t,{A:()=>c});var n=i(76314),o=i.n(n),s=i(4417),r=i.n(s),a=i(69793),l=o()((function(e){return e[1]})),d=r()(a.A);l.push([e.id,'/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n@font-face {\n\tfont-family: "codicon";\n\tfont-display: block;\n\tsrc: url('+d+") format(\"truetype\");\n}\n\n.codicon[class*='codicon-'] {\n\tfont: normal normal normal 16px/1 codicon;\n\tdisplay: inline-block;\n\ttext-decoration: none;\n\ttext-rendering: auto;\n\ttext-align: center;\n\ttext-transform: none;\n\t-webkit-font-smoothing: antialiased;\n\t-moz-osx-font-smoothing: grayscale;\n\tuser-select: none;\n\t-webkit-user-select: none;\n}\n\n/* icon rules are dynamically created by the platform theme service (see iconsStyleSheet.ts) */\n",""]);const c=l},8970:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.context-view {\n\tposition: absolute;\n}\n\n.context-view.fixed {\n\tall: initial;\n\tfont-family: inherit;\n\tfont-size: 13px;\n\tposition: fixed;\n\tcolor: inherit;\n}\n",""]);const s=o},81684:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-count-badge {\n\tpadding: 3px 6px;\n\tborder-radius: 11px;\n\tfont-size: 11px;\n\tmin-width: 18px;\n\tmin-height: 18px;\n\tline-height: 11px;\n\tfont-weight: normal;\n\ttext-align: center;\n\tdisplay: inline-block;\n\tbox-sizing: border-box;\n}\n\n.monaco-count-badge.long {\n\tpadding: 2px 3px;\n\tborder-radius: 2px;\n\tmin-height: auto;\n\tline-height: normal;\n}\n",""]);const s=o},79862:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-dropdown {\n\theight: 100%;\n\tpadding: 0;\n}\n\n.monaco-dropdown > .dropdown-label {\n\tcursor: pointer;\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n.monaco-dropdown > .dropdown-label > .action-label.disabled {\n\tcursor: default;\n}\n\n.monaco-dropdown-with-primary {\n\tdisplay: flex !important;\n\tflex-direction: row;\n\tborder-radius: 5px;\n}\n\n.monaco-dropdown-with-primary > .action-container > .action-label {\n\tmargin-right: 0;\n}\n\n.monaco-dropdown-with-primary > .dropdown-action-container > .monaco-dropdown > .dropdown-label .codicon[class*='codicon-'] {\n\tfont-size: 12px;\n\tpadding-left: 0px;\n\tpadding-right: 0px;\n\tline-height: 16px;\n\tmargin-left: -3px;\n}\n\n.monaco-dropdown-with-primary > .dropdown-action-container > .monaco-dropdown > .dropdown-label > .action-label {\n\tdisplay: block;\n\tbackground-size: 16px;\n\tbackground-position: center center;\n\tbackground-repeat: no-repeat;\n}\n",""]);const s=o},8474:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n/* ---------- Find input ---------- */\n\n.monaco-findInput {\n\tposition: relative;\n}\n\n.monaco-findInput .monaco-inputbox {\n\tfont-size: 13px;\n\twidth: 100%;\n}\n\n.monaco-findInput > .controls {\n\tposition: absolute;\n\ttop: 3px;\n\tright: 2px;\n}\n\n.vs .monaco-findInput.disabled {\n\tbackground-color: #E1E1E1;\n}\n\n/* Theming */\n.vs-dark .monaco-findInput.disabled {\n\tbackground-color: #333;\n}\n\n/* Highlighting */\n.monaco-findInput.highlight-0 .controls,\n.hc-light .monaco-findInput.highlight-0 .controls {\n\tanimation: monaco-findInput-highlight-0 100ms linear 0s;\n}\n\n.monaco-findInput.highlight-1 .controls,\n.hc-light .monaco-findInput.highlight-1 .controls {\n\tanimation: monaco-findInput-highlight-1 100ms linear 0s;\n}\n\n.hc-black .monaco-findInput.highlight-0 .controls,\n.vs-dark .monaco-findInput.highlight-0 .controls {\n\tanimation: monaco-findInput-highlight-dark-0 100ms linear 0s;\n}\n\n.hc-black .monaco-findInput.highlight-1 .controls,\n.vs-dark .monaco-findInput.highlight-1 .controls {\n\tanimation: monaco-findInput-highlight-dark-1 100ms linear 0s;\n}\n\n@keyframes monaco-findInput-highlight-0 {\n\t0% { background: rgba(253, 255, 0, 0.8); }\n\t100% { background: transparent; }\n}\n@keyframes monaco-findInput-highlight-1 {\n\t0% { background: rgba(253, 255, 0, 0.8); }\n\t/* Made intentionally different such that the CSS minifier does not collapse the two animations into a single one*/\n\t99% { background: transparent; }\n}\n\n@keyframes monaco-findInput-highlight-dark-0 {\n\t0% { background: rgba(255, 255, 255, 0.44); }\n\t100% { background: transparent; }\n}\n@keyframes monaco-findInput-highlight-dark-1 {\n\t0% { background: rgba(255, 255, 255, 0.44); }\n\t/* Made intentionally different such that the CSS minifier does not collapse the two animations into a single one*/\n\t99% { background: transparent; }\n}\n",""]);const s=o},58694:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-hover {\n\tcursor: default;\n\tposition: absolute;\n\toverflow: hidden;\n\tuser-select: text;\n\t-webkit-user-select: text;\n\tbox-sizing: border-box;\n\tanimation: fadein 100ms linear;\n\tline-height: 1.5em;\n\twhite-space: var(--vscode-hover-whiteSpace, normal);\n}\n\n.monaco-hover.hidden {\n\tdisplay: none;\n}\n\n.monaco-hover a:hover:not(.disabled) {\n\tcursor: pointer;\n}\n\n.monaco-hover .hover-contents:not(.html-hover-contents) {\n\tpadding: 4px 8px;\n}\n\n.monaco-hover .markdown-hover > .hover-contents:not(.code-hover-contents) {\n\tmax-width: var(--vscode-hover-maxWidth, 500px);\n\tword-wrap: break-word;\n}\n\n.monaco-hover .markdown-hover > .hover-contents:not(.code-hover-contents) hr {\n\tmin-width: 100%;\n}\n\n.monaco-hover p,\n.monaco-hover .code,\n.monaco-hover ul,\n.monaco-hover h1,\n.monaco-hover h2,\n.monaco-hover h3,\n.monaco-hover h4,\n.monaco-hover h5,\n.monaco-hover h6 {\n\tmargin: 8px 0;\n}\n\n.monaco-hover h1,\n.monaco-hover h2,\n.monaco-hover h3,\n.monaco-hover h4,\n.monaco-hover h5,\n.monaco-hover h6 {\n\tline-height: 1.1;\n}\n\n.monaco-hover code {\n\tfont-family: var(--monaco-monospace-font);\n}\n\n.monaco-hover hr {\n\tbox-sizing: border-box;\n\tborder-left: 0px;\n\tborder-right: 0px;\n\tmargin-top: 4px;\n\tmargin-bottom: -4px;\n\tmargin-left: -8px;\n\tmargin-right: -8px;\n\theight: 1px;\n}\n\n.monaco-hover p:first-child,\n.monaco-hover .code:first-child,\n.monaco-hover ul:first-child {\n\tmargin-top: 0;\n}\n\n.monaco-hover p:last-child,\n.monaco-hover .code:last-child,\n.monaco-hover ul:last-child {\n\tmargin-bottom: 0;\n}\n\n/* MarkupContent Layout */\n.monaco-hover ul {\n\tpadding-left: 20px;\n}\n.monaco-hover ol {\n\tpadding-left: 20px;\n}\n\n.monaco-hover li > p {\n\tmargin-bottom: 0;\n}\n\n.monaco-hover li > ul {\n\tmargin-top: 0;\n}\n\n.monaco-hover code {\n\tborder-radius: 3px;\n\tpadding: 0 0.4em;\n}\n\n.monaco-hover .monaco-tokenized-source {\n\twhite-space: var(--vscode-hover-sourceWhiteSpace, pre-wrap);\n}\n\n.monaco-hover .hover-row.status-bar {\n\tfont-size: 12px;\n\tline-height: 22px;\n}\n\n.monaco-hover .hover-row.status-bar .info {\n\tfont-style: italic;\n\tpadding: 0px 8px;\n}\n\n.monaco-hover .hover-row.status-bar .actions {\n\tdisplay: flex;\n\tpadding: 0px 8px;\n\twidth: 100%;\n}\n\n.monaco-hover .hover-row.status-bar .actions .action-container {\n\tmargin-right: 16px;\n\tcursor: pointer;\n}\n\n.monaco-hover .hover-row.status-bar .actions .action-container .action .icon {\n\tpadding-right: 4px;\n}\n\n.monaco-hover .hover-row.status-bar .actions .action-container a {\n\tcolor: var(--vscode-textLink-foreground);\n\ttext-decoration: var(--text-link-decoration);\n}\n\n.monaco-hover .markdown-hover .hover-contents .codicon {\n\tcolor: inherit;\n\tfont-size: inherit;\n\tvertical-align: middle;\n}\n\n.monaco-hover .hover-contents a.code-link:hover,\n.monaco-hover .hover-contents a.code-link {\n\tcolor: inherit;\n}\n\n.monaco-hover .hover-contents a.code-link:before {\n\tcontent: '(';\n}\n\n.monaco-hover .hover-contents a.code-link:after {\n\tcontent: ')';\n}\n\n.monaco-hover .hover-contents a.code-link > span {\n\ttext-decoration: underline;\n\t/** Hack to force underline to show **/\n\tborder-bottom: 1px solid transparent;\n\ttext-underline-position: under;\n\tcolor: var(--vscode-textLink-foreground);\n}\n\n.monaco-hover .hover-contents a.code-link > span:hover {\n\tcolor: var(--vscode-textLink-activeForeground);\n}\n\n/** Spans in markdown hovers need a margin-bottom to avoid looking cramped: https://github.com/microsoft/vscode/issues/101496 **/\n.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) span {\n\tmargin-bottom: 4px;\n\tdisplay: inline-block;\n}\n\n.monaco-hover-content .action-container a {\n\t-webkit-user-select: none;\n\tuser-select: none;\n}\n\n.monaco-hover-content .action-container.disabled {\n\tpointer-events: none;\n\topacity: 0.4;\n\tcursor: default;\n}\n",""]);const s=o},48134:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* ---------- Icon label ---------- */\n\n.monaco-icon-label {\n\tdisplay: flex; /* required for icons support :before rule */\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n}\n\n.monaco-icon-label::before {\n\n\t/* svg icons rendered as background image */\n\tbackground-size: 16px;\n\tbackground-position: left center;\n\tbackground-repeat: no-repeat;\n\tpadding-right: 6px;\n\twidth: 16px;\n\theight: 22px;\n\tline-height: inherit !important;\n\tdisplay: inline-block;\n\n\t/* fonts icons */\n\t-webkit-font-smoothing: antialiased;\n\t-moz-osx-font-smoothing: grayscale;\n\tvertical-align: top;\n\n\tflex-shrink: 0; /* fix for https://github.com/microsoft/vscode/issues/13787 */\n}\n\n.monaco-icon-label-iconpath {\n\twidth: 16px;\n\theight: 16px;\n\tpadding-left: 2px;\n\tmargin-top: 2px;\n\tdisplay: flex;\n}\n\n.monaco-icon-label-container.disabled {\n\tcolor: var(--vscode-disabledForeground);\n}\n.monaco-icon-label > .monaco-icon-label-container {\n\tmin-width: 0;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tflex: 1;\n}\n\n.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-name-container > .label-name {\n\tcolor: inherit;\n\twhite-space: pre; /* enable to show labels that include multiple whitespaces */\n}\n\n.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-name-container > .label-name > .label-separator {\n\tmargin: 0 2px;\n\topacity: 0.5;\n}\n\n.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-suffix-container > .label-suffix {\n\topacity: .7;\n\twhite-space: pre;\n}\n\n.monaco-icon-label > .monaco-icon-label-container > .monaco-icon-description-container > .label-description {\n\topacity: .7;\n\tmargin-left: 0.5em;\n\tfont-size: 0.9em;\n\twhite-space: pre; /* enable to show labels that include multiple whitespaces */\n}\n\n.monaco-icon-label.nowrap > .monaco-icon-label-container > .monaco-icon-description-container > .label-description{\n\twhite-space: nowrap\n}\n\n.vs .monaco-icon-label > .monaco-icon-label-container > .monaco-icon-description-container > .label-description {\n\topacity: .95;\n}\n\n.monaco-icon-label.italic > .monaco-icon-label-container > .monaco-icon-name-container > .label-name,\n.monaco-icon-label.italic > .monaco-icon-label-container > .monaco-icon-description-container > .label-description {\n\tfont-style: italic;\n}\n\n.monaco-icon-label.deprecated {\n\ttext-decoration: line-through;\n\topacity: 0.66;\n}\n\n/* make sure apply italic font style to decorations as well */\n.monaco-icon-label.italic::after {\n\tfont-style: italic;\n}\n\n.monaco-icon-label.strikethrough > .monaco-icon-label-container > .monaco-icon-name-container > .label-name,\n.monaco-icon-label.strikethrough > .monaco-icon-label-container > .monaco-icon-description-container > .label-description {\n\ttext-decoration: line-through;\n}\n\n.monaco-icon-label::after {\n\topacity: 0.75;\n\tfont-size: 90%;\n\tfont-weight: 600;\n\tmargin: auto 16px 0 5px; /* https://github.com/microsoft/vscode/issues/113223 */\n\ttext-align: center;\n}\n\n/* make sure selection color wins when a label is being selected */\n.monaco-list:focus .selected .monaco-icon-label, /* list */\n.monaco-list:focus .selected .monaco-icon-label::after\n{\n\tcolor: inherit !important;\n}\n\n.monaco-list-row.focused.selected .label-description,\n.monaco-list-row.selected .label-description {\n\topacity: .8;\n}\n",""]);const s=o},1366:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-inputbox {\n\tposition: relative;\n\tdisplay: block;\n\tpadding: 0;\n\tbox-sizing:\tborder-box;\n\tborder-radius: 2px;\n\n\t/* Customizable */\n\tfont-size: inherit;\n}\n\n.monaco-inputbox > .ibwrapper > .input,\n.monaco-inputbox > .ibwrapper > .mirror {\n\n\t/* Customizable */\n\tpadding: 4px 6px;\n}\n\n.monaco-inputbox > .ibwrapper {\n\tposition: relative;\n\twidth: 100%;\n\theight: 100%;\n}\n\n.monaco-inputbox > .ibwrapper > .input {\n\tdisplay: inline-block;\n\tbox-sizing:\tborder-box;\n\twidth: 100%;\n\theight: 100%;\n\tline-height: inherit;\n\tborder: none;\n\tfont-family: inherit;\n\tfont-size: inherit;\n\tresize: none;\n\tcolor: inherit;\n}\n\n.monaco-inputbox > .ibwrapper > input {\n\ttext-overflow: ellipsis;\n}\n\n.monaco-inputbox > .ibwrapper > textarea.input {\n\tdisplay: block;\n\tscrollbar-width: none; /* Firefox: hide scrollbars */\n\toutline: none;\n}\n\n.monaco-inputbox > .ibwrapper > textarea.input::-webkit-scrollbar {\n\tdisplay: none; /* Chrome + Safari: hide scrollbar */\n}\n\n.monaco-inputbox > .ibwrapper > textarea.input.empty {\n\twhite-space: nowrap;\n}\n\n.monaco-inputbox > .ibwrapper > .mirror {\n\tposition: absolute;\n\tdisplay: inline-block;\n\twidth: 100%;\n\ttop: 0;\n\tleft: 0;\n\tbox-sizing: border-box;\n\twhite-space: pre-wrap;\n\tvisibility: hidden;\n\tword-wrap: break-word;\n}\n\n/* Context view */\n\n.monaco-inputbox-container {\n\ttext-align: right;\n}\n\n.monaco-inputbox-container .monaco-inputbox-message {\n\tdisplay: inline-block;\n\toverflow: hidden;\n\ttext-align: left;\n\twidth: 100%;\n\tbox-sizing:\tborder-box;\n\tpadding: 0.4em;\n\tfont-size: 12px;\n\tline-height: 17px;\n\tmargin-top: -1px;\n\tword-wrap: break-word;\n}\n\n/* Action bar support */\n.monaco-inputbox .monaco-action-bar {\n\tposition: absolute;\n\tright: 2px;\n\ttop: 4px;\n}\n\n.monaco-inputbox .monaco-action-bar .action-item {\n\tmargin-left: 2px;\n}\n\n.monaco-inputbox .monaco-action-bar .action-item .codicon {\n\tbackground-repeat: no-repeat;\n\twidth: 16px;\n\theight: 16px;\n}\n",""]);const s=o},95422:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-keybinding {\n\tdisplay: flex;\n\talign-items: center;\n\tline-height: 10px;\n}\n\n.monaco-keybinding > .monaco-keybinding-key {\n\tdisplay: inline-block;\n\tborder-style: solid;\n\tborder-width: 1px;\n\tborder-radius: 3px;\n\tvertical-align: middle;\n\tfont-size: 11px;\n\tpadding: 3px 5px;\n\tmargin: 0 2px;\n}\n\n.monaco-keybinding > .monaco-keybinding-key:first-child {\n\tmargin-left: 0;\n}\n\n.monaco-keybinding > .monaco-keybinding-key:last-child {\n\tmargin-right: 0;\n}\n\n.monaco-keybinding > .monaco-keybinding-key-separator {\n\tdisplay: inline-block;\n}\n\n.monaco-keybinding > .monaco-keybinding-key-chord-separator {\n\twidth: 6px;\n}\n",""]);const s=o},67340:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-list {\n\tposition: relative;\n\theight: 100%;\n\twidth: 100%;\n\twhite-space: nowrap;\n}\n\n.monaco-list.mouse-support {\n\tuser-select: none;\n\t-webkit-user-select: none;\n}\n\n.monaco-list > .monaco-scrollable-element {\n\theight: 100%;\n}\n\n.monaco-list-rows {\n\tposition: relative;\n\twidth: 100%;\n\theight: 100%;\n}\n\n.monaco-list.horizontal-scrolling .monaco-list-rows {\n\twidth: auto;\n\tmin-width: 100%;\n}\n\n.monaco-list-row {\n\tposition: absolute;\n\tbox-sizing: border-box;\n\toverflow: hidden;\n\twidth: 100%;\n}\n\n.monaco-list.mouse-support .monaco-list-row {\n\tcursor: pointer;\n\ttouch-action: none;\n}\n\n/* Make sure the scrollbar renders above overlays (sticky scroll) */\n.monaco-list .monaco-scrollable-element > .scrollbar.vertical,\n.monaco-pane-view > .monaco-split-view2.vertical > .monaco-scrollable-element > .scrollbar.vertical {\n\tz-index: 14;\n}\n\n/* for OS X ballistic scrolling */\n.monaco-list-row.scrolling {\n\tdisplay: none !important;\n}\n\n/* Focus */\n.monaco-list.element-focused,\n.monaco-list.selection-single,\n.monaco-list.selection-multiple {\n\toutline: 0 !important;\n}\n\n/* Dnd */\n.monaco-drag-image {\n\tdisplay: inline-block;\n\tpadding: 1px 7px;\n\tborder-radius: 10px;\n\tfont-size: 12px;\n\tposition: absolute;\n\tz-index: 1000;\n}\n\n/* Filter */\n\n.monaco-list-type-filter-message {\n\tposition: absolute;\n\tbox-sizing: border-box;\n\twidth: 100%;\n\theight: 100%;\n\ttop: 0;\n\tleft: 0;\n\tpadding: 40px 1em 1em 1em;\n\ttext-align: center;\n\twhite-space: normal;\n\topacity: 0.7;\n\tpointer-events: none;\n}\n\n.monaco-list-type-filter-message:empty {\n\tdisplay: none;\n}\n",""]);const s=o},266:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-mouse-cursor-text {\n\tcursor: text;\n}\n",""]);const s=o},44978:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-progress-container {\n\twidth: 100%;\n\theight: 2px;\n\toverflow: hidden; /* keep progress bit in bounds */\n}\n\n.monaco-progress-container .progress-bit {\n\twidth: 2%;\n\theight: 2px;\n\tposition: absolute;\n\tleft: 0;\n\tdisplay: none;\n}\n\n.monaco-progress-container.active .progress-bit {\n\tdisplay: inherit;\n}\n\n.monaco-progress-container.discrete .progress-bit {\n\tleft: 0;\n\ttransition: width 100ms linear;\n}\n\n.monaco-progress-container.discrete.done .progress-bit {\n\twidth: 100%;\n}\n\n.monaco-progress-container.infinite .progress-bit {\n\tanimation-name: progress;\n\tanimation-duration: 4s;\n\tanimation-iteration-count: infinite;\n\ttransform: translate3d(0px, 0px, 0px);\n\tanimation-timing-function: linear;\n}\n\n.monaco-progress-container.infinite.infinite-long-running .progress-bit {\n\t/*\n\t\tThe more smooth `linear` timing function can cause\n\t\thigher GPU consumption as indicated in\n\t\thttps://github.com/microsoft/vscode/issues/97900 &\n\t\thttps://github.com/microsoft/vscode/issues/138396\n\t*/\n\tanimation-timing-function: steps(100);\n}\n\n/**\n * The progress bit has a width: 2% (1/50) of the parent container. The animation moves it from 0% to 100% of\n * that container. Since translateX is relative to the progress bit size, we have to multiple it with\n * its relative size to the parent container:\n * parent width: 5000%\n * bit width: 100%\n * translateX should be as follow:\n * 50%: 5000% * 50% - 50% (set to center) = 2450%\n * 100%: 5000% * 100% - 100% (do not overflow) = 4900%\n */\n@keyframes progress { from { transform: translateX(0%) scaleX(1) } 50% { transform: translateX(2500%) scaleX(3) } to { transform: translateX(4900%) scaleX(1) } }\n",""]);const s=o},14166:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n:root {\n\t--vscode-sash-size: 4px;\n\t--vscode-sash-hover-size: 4px;\n}\n\n.monaco-sash {\n\tposition: absolute;\n\tz-index: 35;\n\ttouch-action: none;\n}\n\n.monaco-sash.disabled {\n\tpointer-events: none;\n}\n\n.monaco-sash.mac.vertical {\n\tcursor: col-resize;\n}\n\n.monaco-sash.vertical.minimum {\n\tcursor: e-resize;\n}\n\n.monaco-sash.vertical.maximum {\n\tcursor: w-resize;\n}\n\n.monaco-sash.mac.horizontal {\n\tcursor: row-resize;\n}\n\n.monaco-sash.horizontal.minimum {\n\tcursor: s-resize;\n}\n\n.monaco-sash.horizontal.maximum {\n\tcursor: n-resize;\n}\n\n.monaco-sash.disabled {\n\tcursor: default !important;\n\tpointer-events: none !important;\n}\n\n.monaco-sash.vertical {\n\tcursor: ew-resize;\n\ttop: 0;\n\twidth: var(--vscode-sash-size);\n\theight: 100%;\n}\n\n.monaco-sash.horizontal {\n\tcursor: ns-resize;\n\tleft: 0;\n\twidth: 100%;\n\theight: var(--vscode-sash-size);\n}\n\n.monaco-sash:not(.disabled) > .orthogonal-drag-handle {\n\tcontent: \" \";\n\theight: calc(var(--vscode-sash-size) * 2);\n\twidth: calc(var(--vscode-sash-size) * 2);\n\tz-index: 100;\n\tdisplay: block;\n\tcursor: all-scroll;\n\tposition: absolute;\n}\n\n.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)\n\t> .orthogonal-drag-handle.start,\n.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)\n\t> .orthogonal-drag-handle.end {\n\tcursor: nwse-resize;\n}\n\n.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)\n\t> .orthogonal-drag-handle.end,\n.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)\n\t> .orthogonal-drag-handle.start {\n\tcursor: nesw-resize;\n}\n\n.monaco-sash.vertical > .orthogonal-drag-handle.start {\n\tleft: calc(var(--vscode-sash-size) * -0.5);\n\ttop: calc(var(--vscode-sash-size) * -1);\n}\n.monaco-sash.vertical > .orthogonal-drag-handle.end {\n\tleft: calc(var(--vscode-sash-size) * -0.5);\n\tbottom: calc(var(--vscode-sash-size) * -1);\n}\n.monaco-sash.horizontal > .orthogonal-drag-handle.start {\n\ttop: calc(var(--vscode-sash-size) * -0.5);\n\tleft: calc(var(--vscode-sash-size) * -1);\n}\n.monaco-sash.horizontal > .orthogonal-drag-handle.end {\n\ttop: calc(var(--vscode-sash-size) * -0.5);\n\tright: calc(var(--vscode-sash-size) * -1);\n}\n\n.monaco-sash:before {\n\tcontent: '';\n\tpointer-events: none;\n\tposition: absolute;\n\twidth: 100%;\n\theight: 100%;\n\tbackground: transparent;\n}\n\n.monaco-workbench:not(.reduce-motion) .monaco-sash:before {\n\ttransition: background-color 0.1s ease-out;\n}\n\n.monaco-sash.hover:before,\n.monaco-sash.active:before {\n\tbackground: var(--vscode-sash-hoverBorder);\n}\n\n.monaco-sash.vertical:before {\n\twidth: var(--vscode-sash-hover-size);\n\tleft: calc(50% - (var(--vscode-sash-hover-size) / 2));\n}\n\n.monaco-sash.horizontal:before {\n\theight: var(--vscode-sash-hover-size);\n\ttop: calc(50% - (var(--vscode-sash-hover-size) / 2));\n}\n\n.pointer-events-disabled {\n\tpointer-events: none !important;\n}\n\n/** Debug **/\n\n.monaco-sash.debug {\n\tbackground: cyan;\n}\n\n.monaco-sash.debug.disabled {\n\tbackground: rgba(0, 255, 255, 0.2);\n}\n\n.monaco-sash.debug:not(.disabled) > .orthogonal-drag-handle {\n\tbackground: red;\n}\n",""]);const s=o},80140:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* Arrows */\n.monaco-scrollable-element > .scrollbar > .scra {\n\tcursor: pointer;\n\tfont-size: 11px !important;\n}\n\n.monaco-scrollable-element > .visible {\n\topacity: 1;\n\n\t/* Background rule added for IE9 - to allow clicks on dom node */\n\tbackground:rgba(0,0,0,0);\n\n\ttransition: opacity 100ms linear;\n\t/* In front of peek view */\n\tz-index: 11;\n}\n.monaco-scrollable-element > .invisible {\n\topacity: 0;\n\tpointer-events: none;\n}\n.monaco-scrollable-element > .invisible.fade {\n\ttransition: opacity 800ms linear;\n}\n\n/* Scrollable Content Inset Shadow */\n.monaco-scrollable-element > .shadow {\n\tposition: absolute;\n\tdisplay: none;\n}\n.monaco-scrollable-element > .shadow.top {\n\tdisplay: block;\n\ttop: 0;\n\tleft: 3px;\n\theight: 3px;\n\twidth: 100%;\n\tbox-shadow: var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset;\n}\n.monaco-scrollable-element > .shadow.left {\n\tdisplay: block;\n\ttop: 3px;\n\tleft: 0;\n\theight: 100%;\n\twidth: 3px;\n\tbox-shadow: var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset;\n}\n.monaco-scrollable-element > .shadow.top-left-corner {\n\tdisplay: block;\n\ttop: 0;\n\tleft: 0;\n\theight: 3px;\n\twidth: 3px;\n}\n.monaco-scrollable-element > .shadow.top.left {\n\tbox-shadow: var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset;\n}\n\n.monaco-scrollable-element > .scrollbar > .slider {\n\tbackground: var(--vscode-scrollbarSlider-background);\n}\n\n.monaco-scrollable-element > .scrollbar > .slider:hover {\n\tbackground: var(--vscode-scrollbarSlider-hoverBackground);\n}\n\n.monaco-scrollable-element > .scrollbar > .slider.active {\n\tbackground: var(--vscode-scrollbarSlider-activeBackground);\n}\n",""]);const s=o},95070:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-select-box {\n\twidth: 100%;\n\tcursor: pointer;\n\tborder-radius: 2px;\n}\n\n.monaco-select-box-dropdown-container {\n\tfont-size: 13px;\n\tfont-weight: normal;\n\ttext-transform: none;\n}\n\n/** Actions */\n\n.monaco-action-bar .action-item.select-container {\n\tcursor: default;\n}\n\n.monaco-action-bar .action-item .monaco-select-box {\n\tcursor: pointer;\n\tmin-width: 100px;\n\tmin-height: 18px;\n\tpadding: 2px 23px 2px 8px;\n}\n\n.mac .monaco-action-bar .action-item .monaco-select-box {\n\tfont-size: 11px;\n\tborder-radius: 5px;\n}\n",""]);const s=o},67619:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* Use custom CSS vars to expose padding into parent select for padding calculation */\n.monaco-select-box-dropdown-padding {\n\t--dropdown-padding-top: 1px;\n\t--dropdown-padding-bottom: 1px;\n}\n\n.hc-black .monaco-select-box-dropdown-padding,\n.hc-light .monaco-select-box-dropdown-padding {\n\t--dropdown-padding-top: 3px;\n\t--dropdown-padding-bottom: 4px;\n}\n\n.monaco-select-box-dropdown-container {\n\tdisplay: none;\n\tbox-sizing:\tborder-box;\n}\n\n.monaco-select-box-dropdown-container > .select-box-details-pane > .select-box-description-markdown * {\n\tmargin: 0;\n}\n\n.monaco-select-box-dropdown-container > .select-box-details-pane > .select-box-description-markdown a:focus {\n\toutline: 1px solid -webkit-focus-ring-color;\n\toutline-offset: -1px;\n}\n\n.monaco-select-box-dropdown-container > .select-box-details-pane > .select-box-description-markdown code {\n\tline-height: 15px; /** For some reason, this is needed, otherwise will take up 20px height */\n\tfont-family: var(--monaco-monospace-font);\n}\n\n\n.monaco-select-box-dropdown-container.visible {\n\tdisplay: flex;\n\tflex-direction: column;\n\ttext-align: left;\n\twidth: 1px;\n\toverflow: hidden;\n\tborder-bottom-left-radius: 3px;\n\tborder-bottom-right-radius: 3px;\n}\n\n.monaco-select-box-dropdown-container > .select-box-dropdown-list-container {\n\tflex: 0 0 auto;\n\talign-self: flex-start;\n\tpadding-top: var(--dropdown-padding-top);\n\tpadding-bottom: var(--dropdown-padding-bottom);\n\tpadding-left: 1px;\n\tpadding-right: 1px;\n\twidth: 100%;\n\toverflow: hidden;\n\tbox-sizing:\tborder-box;\n}\n\n.monaco-select-box-dropdown-container > .select-box-details-pane {\n\tpadding: 5px;\n}\n\n.hc-black .monaco-select-box-dropdown-container > .select-box-dropdown-list-container {\n\tpadding-top: var(--dropdown-padding-top);\n\tpadding-bottom: var(--dropdown-padding-bottom);\n}\n\n.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row {\n\tcursor: pointer;\n}\n\n.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row > .option-text {\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n\tpadding-left: 3.5px;\n\twhite-space: nowrap;\n\tfloat: left;\n}\n\n.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row > .option-detail {\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n\tpadding-left: 3.5px;\n\twhite-space: nowrap;\n\tfloat: left;\n\topacity: 0.7;\n}\n\n.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row > .option-decorator-right {\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n\tpadding-right: 10px;\n\twhite-space: nowrap;\n\tfloat: right;\n}\n\n\n/* Accepted CSS hiding technique for accessibility reader text */\n/* https://webaim.org/techniques/css/invisiblecontent/ */\n\n.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row > .visually-hidden {\n\t\tposition: absolute;\n\t\tleft: -10000px;\n\t\ttop: auto;\n\t\twidth: 1px;\n\t\theight: 1px;\n\t\toverflow: hidden;\n}\n\n.monaco-select-box-dropdown-container > .select-box-dropdown-container-width-control {\n\tflex: 1 1 auto;\n\talign-self: flex-start;\n\topacity: 0;\n}\n\n.monaco-select-box-dropdown-container > .select-box-dropdown-container-width-control > .width-control-div {\n\toverflow: hidden;\n\tmax-height: 0px;\n}\n\n.monaco-select-box-dropdown-container > .select-box-dropdown-container-width-control > .width-control-div > .option-text-width-control {\n\tpadding-left: 4px;\n\tpadding-right: 8px;\n\twhite-space: nowrap;\n}\n",""]);const s=o},3474:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-split-view2 {\n\tposition: relative;\n\twidth: 100%;\n\theight: 100%;\n}\n\n.monaco-split-view2 > .sash-container {\n\tposition: absolute;\n\twidth: 100%;\n\theight: 100%;\n\tpointer-events: none;\n}\n\n.monaco-split-view2 > .sash-container > .monaco-sash {\n\tpointer-events: initial;\n}\n\n.monaco-split-view2 > .monaco-scrollable-element {\n\twidth: 100%;\n\theight: 100%;\n}\n\n.monaco-split-view2 > .monaco-scrollable-element > .split-view-container {\n\twidth: 100%;\n\theight: 100%;\n\twhite-space: nowrap;\n\tposition: relative;\n}\n\n.monaco-split-view2 > .monaco-scrollable-element > .split-view-container > .split-view-view {\n\twhite-space: initial;\n\tposition: absolute;\n}\n\n.monaco-split-view2 > .monaco-scrollable-element > .split-view-container > .split-view-view:not(.visible) {\n\tdisplay: none;\n}\n\n.monaco-split-view2.vertical > .monaco-scrollable-element > .split-view-container > .split-view-view {\n\twidth: 100%;\n}\n\n.monaco-split-view2.horizontal > .monaco-scrollable-element > .split-view-container > .split-view-view {\n\theight: 100%;\n}\n\n.monaco-split-view2.separator-border > .monaco-scrollable-element > .split-view-container > .split-view-view:not(:first-child)::before {\n\tcontent: ' ';\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tz-index: 5;\n\tpointer-events: none;\n\tbackground-color: var(--separator-border);\n}\n\n.monaco-split-view2.separator-border.horizontal > .monaco-scrollable-element > .split-view-container > .split-view-view:not(:first-child)::before {\n\theight: 100%;\n\twidth: 1px;\n}\n\n.monaco-split-view2.separator-border.vertical > .monaco-scrollable-element > .split-view-container > .split-view-view:not(:first-child)::before {\n\theight: 1px;\n\twidth: 100%;\n}\n",""]);const s=o},94234:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,'/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-table {\n\tdisplay: flex;\n\tflex-direction: column;\n\tposition: relative;\n\theight: 100%;\n\twidth: 100%;\n\twhite-space: nowrap;\n\toverflow: hidden;\n}\n\n.monaco-table > .monaco-split-view2 {\n\tborder-bottom: 1px solid transparent;\n}\n\n.monaco-table > .monaco-list {\n\tflex: 1;\n}\n\n.monaco-table-tr {\n\tdisplay: flex;\n\theight: 100%;\n}\n\n.monaco-table-th {\n\twidth: 100%;\n\theight: 100%;\n\tfont-weight: bold;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n}\n\n.monaco-table-th,\n.monaco-table-td {\n\tbox-sizing: border-box;\n\tflex-shrink: 0;\n\toverflow: hidden;\n\twhite-space: nowrap;\n\ttext-overflow: ellipsis;\n}\n\n.monaco-table > .monaco-split-view2 .monaco-sash.vertical::before {\n\tcontent: "";\n\tposition: absolute;\n\tleft: calc(var(--vscode-sash-size) / 2);\n\twidth: 0;\n\tborder-left: 1px solid transparent;\n}\n\n.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2,\n.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2 .monaco-sash.vertical::before {\n\ttransition: border-color 0.2s ease-out;\n}\n',""]);const s=o},62516:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-custom-toggle {\n\tmargin-left: 2px;\n\tfloat: left;\n\tcursor: pointer;\n\toverflow: hidden;\n\twidth: 20px;\n\theight: 20px;\n\tborder-radius: 3px;\n\tborder: 1px solid transparent;\n\tpadding: 1px;\n\tbox-sizing:\tborder-box;\n\tuser-select: none;\n\t-webkit-user-select: none;\n}\n\n.monaco-custom-toggle:hover {\n\tbackground-color: var(--vscode-inputOption-hoverBackground);\n}\n\n.hc-black .monaco-custom-toggle:hover,\n.hc-light .monaco-custom-toggle:hover {\n\tborder: 1px dashed var(--vscode-focusBorder);\n}\n\n.hc-black .monaco-custom-toggle,\n.hc-light .monaco-custom-toggle {\n\tbackground: none;\n}\n\n.hc-black .monaco-custom-toggle:hover,\n.hc-light .monaco-custom-toggle:hover {\n\tbackground: none;\n}\n\n.monaco-custom-toggle.monaco-checkbox {\n\theight: 18px;\n\twidth: 18px;\n\tborder: 1px solid transparent;\n\tborder-radius: 3px;\n\tmargin-right: 9px;\n\tmargin-left: 0px;\n\tpadding: 0px;\n\topacity: 1;\n\tbackground-size: 16px !important;\n}\n\n.monaco-action-bar .checkbox-action-item {\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-action-bar .checkbox-action-item > .monaco-custom-toggle.monaco-checkbox {\n\tmargin-right: 4px;\n}\n\n.monaco-action-bar .checkbox-action-item > .checkbox-label {\n\tfont-size: 12px;\n}\n\n/* hide check when unchecked */\n.monaco-custom-toggle.monaco-checkbox:not(.checked)::before {\n\tvisibility: hidden;\n}\n",""]);const s=o},87982:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-toolbar {\n\theight: 100%;\n}\n\n.monaco-toolbar .toolbar-toggle-more {\n\tdisplay: inline-block;\n\tpadding: 0;\n}\n",""]);const s=o},71963:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,'/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-tl-row {\n\tdisplay: flex;\n\theight: 100%;\n\talign-items: center;\n\tposition: relative;\n}\n\n.monaco-tl-row.disabled {\n\tcursor: default;\n}\n.monaco-tl-indent {\n\theight: 100%;\n\tposition: absolute;\n\ttop: 0;\n\tleft: 16px;\n\tpointer-events: none;\n}\n\n.hide-arrows .monaco-tl-indent {\n\tleft: 12px;\n}\n\n.monaco-tl-indent > .indent-guide {\n\tdisplay: inline-block;\n\tbox-sizing: border-box;\n\theight: 100%;\n\tborder-left: 1px solid transparent;\n}\n\n.monaco-workbench:not(.reduce-motion) .monaco-tl-indent > .indent-guide {\n\ttransition: border-color 0.1s linear;\n}\n\n.monaco-tl-twistie,\n.monaco-tl-contents {\n\theight: 100%;\n}\n\n.monaco-tl-twistie {\n\tfont-size: 10px;\n\ttext-align: right;\n\tpadding-right: 6px;\n\tflex-shrink: 0;\n\twidth: 16px;\n\tdisplay: flex !important;\n\talign-items: center;\n\tjustify-content: center;\n\ttransform: translateX(3px);\n}\n\n.monaco-tl-contents {\n\tflex: 1;\n\toverflow: hidden;\n}\n\n.monaco-tl-twistie::before {\n\tborder-radius: 20px;\n}\n\n.monaco-tl-twistie.collapsed::before {\n\ttransform: rotate(-90deg);\n}\n\n.monaco-tl-twistie.codicon-tree-item-loading::before {\n\t/* Use steps to throttle FPS to reduce CPU usage */\n\tanimation: codicon-spin 1.25s steps(30) infinite;\n}\n\n.monaco-tree-type-filter {\n\tposition: absolute;\n\ttop: 0;\n\tdisplay: flex;\n\tpadding: 3px;\n\tmax-width: 200px;\n\tz-index: 100;\n\tmargin: 0 6px;\n\tborder: 1px solid var(--vscode-widget-border);\n\tborder-bottom-left-radius: 4px;\n\tborder-bottom-right-radius: 4px;\n}\n\n.monaco-workbench:not(.reduce-motion) .monaco-tree-type-filter {\n\ttransition: top 0.3s;\n}\n\n.monaco-tree-type-filter.disabled {\n\ttop: -40px !important;\n}\n\n.monaco-tree-type-filter-grab {\n\tdisplay: flex !important;\n\talign-items: center;\n\tjustify-content: center;\n\tcursor: grab;\n\tmargin-right: 2px;\n}\n\n.monaco-tree-type-filter-grab.grabbing {\n\tcursor: grabbing;\n}\n\n.monaco-tree-type-filter-input {\n\tflex: 1;\n}\n\n.monaco-tree-type-filter-input .monaco-inputbox {\n\theight: 23px;\n}\n\n.monaco-tree-type-filter-input .monaco-inputbox > .ibwrapper > .input,\n.monaco-tree-type-filter-input .monaco-inputbox > .ibwrapper > .mirror {\n\tpadding: 2px 4px;\n}\n\n.monaco-tree-type-filter-input .monaco-findInput > .controls {\n\ttop: 2px;\n}\n\n.monaco-tree-type-filter-actionbar {\n\tmargin-left: 4px;\n}\n\n.monaco-tree-type-filter-actionbar .monaco-action-bar .action-label {\n\tpadding: 2px;\n}\n\n.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container{\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: 0;\n\tz-index: 13; /* Settings editor uses z-index: 12 */\n\n\t/* Backup color in case the tree does not provide the background color */\n\tbackground-color: var(--vscode-sideBar-background);\n}\n\n.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row.monaco-list-row{\n\tposition: absolute;\n\twidth: 100%;\n\topacity: 1 !important; /* Settings editor uses opacity < 1 */\n\toverflow: hidden;\n\n\t/* Backup color in case the tree does not provide the background color */\n\tbackground-color: var(--vscode-sideBar-background);\n}\n\n.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row:hover{\n\tbackground-color: var(--vscode-list-hoverBackground) !important;\n\tcursor: pointer;\n}\n\n.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container.empty,\n.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container.empty .monaco-tree-sticky-container-shadow {\n\tdisplay: none;\n}\n\n.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-container-shadow {\n\tposition: absolute;\n\tbottom: -3px;\n\tleft: 0px;\n\theight: 0px; /* heigt is 3px and only set when there is a treeStickyScrollShadow color */\n\twidth: 100%;\n}\n\n.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container[tabindex="0"]:focus{\n\toutline: none;\n}\n',""]);const s=o},86307:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .inputarea {\n\tmin-width: 0;\n\tmin-height: 0;\n\tmargin: 0;\n\tpadding: 0;\n\tposition: absolute;\n\toutline: none !important;\n\tresize: none;\n\tborder: none;\n\toverflow: hidden;\n\tcolor: transparent;\n\tbackground-color: transparent;\n\tz-index: -10;\n}\n/*.monaco-editor .inputarea {\n\tposition: fixed !important;\n\twidth: 800px !important;\n\theight: 500px !important;\n\ttop: initial !important;\n\tleft: initial !important;\n\tbottom: 0 !important;\n\tright: 0 !important;\n\tcolor: black !important;\n\tbackground: white !important;\n\tline-height: 15px !important;\n\tfont-size: 14px !important;\n\tz-index: 10 !important;\n}*/\n.monaco-editor .inputarea.ime-input {\n\tz-index: 10;\n\tcaret-color: var(--vscode-editorCursor-foreground);\n\tcolor: var(--vscode-editor-foreground);\n}\n",""]);const s=o},23377:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-workbench .workbench-hover {\n\tposition: relative;\n\tfont-size: 13px;\n\tline-height: 19px;\n\t/* Must be higher than sash's z-index and terminal canvases */\n\tz-index: 40;\n\toverflow: hidden;\n\tmax-width: 700px;\n\tbackground: var(--vscode-editorHoverWidget-background);\n\tborder: 1px solid var(--vscode-editorHoverWidget-border);\n\tborder-radius: 3px;\n\tcolor: var(--vscode-editorHoverWidget-foreground);\n\tbox-shadow: 0 2px 8px var(--vscode-widget-shadow);\n}\n\n.monaco-workbench .workbench-hover hr {\n\tborder-bottom: none;\n}\n\n.monaco-workbench .workbench-hover:not(.skip-fade-in) {\n\tanimation: fadein 100ms linear;\n}\n\n.monaco-workbench .workbench-hover.compact {\n\tfont-size: 12px;\n}\n\n.monaco-workbench .workbench-hover.compact .hover-contents {\n\tpadding: 2px 8px;\n}\n\n.monaco-workbench .workbench-hover-container.locked .workbench-hover {\n\toutline: 1px solid var(--vscode-editorHoverWidget-border);\n}\n.monaco-workbench .workbench-hover-container.locked .workbench-hover:focus,\n.monaco-workbench .workbench-hover-lock:focus {\n\toutline: 1px solid var(--vscode-focusBorder);\n}\n.monaco-workbench .workbench-hover-container.locked .workbench-hover-lock:hover {\n\tbackground: var(--vscode-toolbar-hoverBackground);\n}\n\n.monaco-workbench .workbench-hover-pointer {\n\tposition: absolute;\n\t/* Must be higher than workbench hover z-index */\n\tz-index: 41;\n\tpointer-events: none;\n}\n\n.monaco-workbench .workbench-hover-pointer:after {\n\tcontent: '';\n\tposition: absolute;\n\twidth: 5px;\n\theight: 5px;\n\tbackground-color: var(--vscode-editorHoverWidget-background);\n\tborder-right: 1px solid var(--vscode-editorHoverWidget-border);\n\tborder-bottom: 1px solid var(--vscode-editorHoverWidget-border);\n}\n.monaco-workbench .locked .workbench-hover-pointer:after {\n\twidth: 4px;\n\theight: 4px;\n\tborder-right-width: 2px;\n\tborder-bottom-width: 2px;\n}\n\n.monaco-workbench .workbench-hover-pointer.left { left: -3px; }\n.monaco-workbench .workbench-hover-pointer.right { right: 3px; }\n.monaco-workbench .workbench-hover-pointer.top { top: -3px; }\n.monaco-workbench .workbench-hover-pointer.bottom { bottom: 3px; }\n\n.monaco-workbench .workbench-hover-pointer.left:after {\n\ttransform: rotate(135deg);\n}\n\n.monaco-workbench .workbench-hover-pointer.right:after {\n\ttransform: rotate(315deg);\n}\n\n.monaco-workbench .workbench-hover-pointer.top:after {\n\ttransform: rotate(225deg);\n}\n\n.monaco-workbench .workbench-hover-pointer.bottom:after {\n\ttransform: rotate(45deg);\n}\n\n.monaco-workbench .workbench-hover a {\n\tcolor: var(--vscode-textLink-foreground);\n}\n\n.monaco-workbench .workbench-hover a:focus {\n\toutline: 1px solid;\n\toutline-offset: -1px;\n\ttext-decoration: underline;\n\toutline-color: var(--vscode-focusBorder);\n}\n\n.monaco-workbench .workbench-hover a:hover,\n.monaco-workbench .workbench-hover a:active {\n\tcolor: var(--vscode-textLink-activeForeground);\n}\n\n.monaco-workbench .workbench-hover code {\n\tbackground: var(--vscode-textCodeBlock-background);\n}\n\n.monaco-workbench .workbench-hover .hover-row .actions {\n\tbackground: var(--vscode-editorHoverWidget-statusBarBackground);\n}\n\n.monaco-workbench .workbench-hover.right-aligned {\n\t/* The context view service wraps strangely when it's right up against the edge without this */\n\tleft: 1px;\n}\n\n.monaco-workbench .workbench-hover.right-aligned .hover-row.status-bar .actions {\n\tflex-direction: row-reverse;\n}\n\n.monaco-workbench .workbench-hover.right-aligned .hover-row.status-bar .actions .action-container {\n\tmargin-right: 0;\n\tmargin-left: 16px;\n}\n",""]);const s=o},72035:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .blockDecorations-container {\n\tposition: absolute;\n\ttop: 0;\n\tpointer-events: none;\n}\n\n.monaco-editor .blockDecorations-block {\n\tposition: absolute;\n\tbox-sizing: border-box;\n}\n",""]);const s=o},28405:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .view-overlays .current-line {\n\tdisplay: block;\n\tposition: absolute;\n\tleft: 0;\n\ttop: 0;\n\tbox-sizing: border-box;\n\theight: 100%;\n}\n\n.monaco-editor .margin-view-overlays .current-line {\n\tdisplay: block;\n\tposition: absolute;\n\tleft: 0;\n\ttop: 0;\n\tbox-sizing: border-box;\n\theight: 100%;\n}\n\n.monaco-editor\n\t.margin-view-overlays\n\t.current-line.current-line-margin.current-line-margin-both {\n\tborder-right: 0;\n}\n",""]);const s=o},83093:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/*\n\tKeeping name short for faster parsing.\n\tcdr = core decorations rendering (div)\n*/\n.monaco-editor .lines-content .cdr {\n\tposition: absolute;\n\theight: 100%;\n}\n",""]);const s=o},98081:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .glyph-margin {\n\tposition: absolute;\n\ttop: 0;\n}\n\n/*\n\tKeeping name short for faster parsing.\n\tcgmr = core glyph margin rendering (div)\n*/\n.monaco-editor .glyph-margin-widgets .cgmr {\n\tposition: absolute;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/*\n\tEnsure spinning icons are pixel-perfectly centered and avoid wobble.\n\tThis is only applied to icons that spin to avoid unnecessary\n\tGPU layers and blurry subpixel AA.\n*/\n.monaco-editor .glyph-margin-widgets .cgmr.codicon-modifier-spin::before {\n\tposition: absolute;\n\ttop: 50%;\n\tleft: 50%;\n\ttransform: translate(-50%, -50%);\n}\n",""]);const s=o},93777:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .lines-content .core-guide {\n\tposition: absolute;\n\tbox-sizing: border-box;\n\theight: 100%;\n}\n",""]);const s=o},6953:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .margin-view-overlays .line-numbers {\n\tbottom: 0;\n\tfont-variant-numeric: tabular-nums;\n\tposition: absolute;\n\ttext-align: right;\n\tdisplay: inline-block;\n\tvertical-align: middle;\n\tbox-sizing: border-box;\n\tcursor: default;\n}\n\n.monaco-editor .relative-current-line-number {\n\ttext-align: left;\n\tdisplay: inline-block;\n\twidth: 100%;\n}\n\n.monaco-editor .margin-view-overlays .line-numbers.lh-odd {\n\tmargin-top: 1px;\n}\n\n.monaco-editor .line-numbers {\n\tcolor: var(--vscode-editorLineNumber-foreground);\n}\n\n.monaco-editor .line-numbers.active-line-number {\n\tcolor: var(--vscode-editorLineNumber-activeForeground);\n}\n",""]);const s=o},65876:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* Uncomment to see lines flashing when they're painted */\n/*.monaco-editor .view-lines > .view-line {\n\tbackground-color: none;\n\tanimation-name: flash-background;\n\tanimation-duration: 800ms;\n}\n@keyframes flash-background {\n\t0% { background-color: lightgreen; }\n\t100% { background-color: none }\n}*/\n\n.mtkcontrol {\n\tcolor: rgb(255, 255, 255) !important;\n\tbackground: rgb(150, 0, 0) !important;\n}\n\n.mtkoverflow {\n\tbackground-color: var(--vscode-button-background, var(--vscode-editor-background));\n\tcolor: var(--vscode-button-foreground, var(--vscode-editor-foreground));\n\tborder-width: 1px;\n\tborder-style: solid;\n\tborder-color: var(--vscode-contrastBorder);\n\tborder-radius: 2px;\n\tpadding: 4px;\n\tcursor: pointer;\n}\n.mtkoverflow:hover {\n\tbackground-color: var(--vscode-button-hoverBackground);\n}\n\n.monaco-editor.no-user-select .lines-content,\n.monaco-editor.no-user-select .view-line,\n.monaco-editor.no-user-select .view-lines {\n\tuser-select: none;\n\t-webkit-user-select: none;\n}\n/* Use user-select: text for lookup feature on macOS */\n/* https://github.com/microsoft/vscode/issues/85632 */\n.monaco-editor.mac .lines-content:hover,\n.monaco-editor.mac .view-line:hover,\n.monaco-editor.mac .view-lines:hover {\n\tuser-select: text;\n\t-webkit-user-select: text;\n\t-ms-user-select: text;\n}\n\n.monaco-editor.enable-user-select {\n\tuser-select: initial;\n\t-webkit-user-select: initial;\n}\n\n.monaco-editor .view-lines {\n\twhite-space: nowrap;\n}\n\n.monaco-editor .view-line {\n\tposition: absolute;\n\twidth: 100%;\n}\n\n/* There are view-lines in view-zones. We have to make sure this rule does not apply to them, as they don't set a line height */\n.monaco-editor .lines-content > .view-lines > .view-line > span {\n\ttop: 0;\n\tbottom: 0;\n\tposition: absolute;\n}\n\n.monaco-editor .mtkw {\n\tcolor: var(--vscode-editorWhitespace-foreground) !important;\n}\n\n.monaco-editor .mtkz {\n\tdisplay: inline-block;\n\tcolor: var(--vscode-editorWhitespace-foreground) !important;\n}\n\n/* TODO@tokenization bootstrap fix */\n/*.monaco-editor .view-line > span > span {\n\tfloat: none;\n\tmin-height: inherit;\n\tmargin-left: inherit;\n}*/\n",""]);const s=o},57375:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n.monaco-editor .lines-decorations {\n\tposition: absolute;\n\ttop: 0;\n\tbackground: white;\n}\n\n/*\n\tKeeping name short for faster parsing.\n\tcldr = core lines decorations rendering (div)\n*/\n.monaco-editor .margin-view-overlays .cldr {\n\tposition: absolute;\n\theight: 100%;\n}",""]);const s=o},58731:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .margin {\n\tbackground-color: var(--vscode-editorGutter-background);\n}\n",""]);const s=o},73313:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/*\n\tKeeping name short for faster parsing.\n\tcmdr = core margin decorations rendering (div)\n*/\n.monaco-editor .margin-view-overlays .cmdr {\n\tposition: absolute;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n}",""]);const s=o},36493:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* START cover the case that slider is visible on mouseover */\n.monaco-editor .minimap.slider-mouseover .minimap-slider {\n\topacity: 0;\n\ttransition: opacity 100ms linear;\n}\n.monaco-editor .minimap.slider-mouseover:hover .minimap-slider {\n\topacity: 1;\n}\n.monaco-editor .minimap.slider-mouseover .minimap-slider.active {\n\topacity: 1;\n}\n/* END cover the case that slider is visible on mouseover */\n.monaco-editor .minimap-slider .minimap-slider-horizontal {\n\tbackground: var(--vscode-minimapSlider-background);\n}\n.monaco-editor .minimap-slider:hover .minimap-slider-horizontal {\n\tbackground: var(--vscode-minimapSlider-hoverBackground);\n}\n.monaco-editor .minimap-slider.active .minimap-slider-horizontal {\n\tbackground: var(--vscode-minimapSlider-activeBackground);\n}\n.monaco-editor .minimap-shadow-visible {\n\tbox-shadow: var(--vscode-scrollbar-shadow) -6px 0 6px -6px inset;\n}\n.monaco-editor .minimap-shadow-hidden {\n\tposition: absolute;\n\twidth: 0;\n}\n.monaco-editor .minimap-shadow-visible {\n\tposition: absolute;\n\tleft: -6px;\n\twidth: 6px;\n}\n.monaco-editor.no-minimap-shadow .minimap-shadow-visible {\n\tposition: absolute;\n\tleft: -1px;\n\twidth: 1px;\n}\n\n/* 0.5s fade in/out for the minimap */\n.minimap.autohide {\n\topacity: 0;\n\ttransition: opacity 0.5s;\n}\n.minimap.autohide:hover {\n\topacity: 1;\n}\n\n.monaco-editor .minimap {\n\tz-index: 5;\n}\n",""]);const s=o},80213:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n.monaco-editor .overlayWidgets {\n\tposition: absolute;\n\ttop: 0;\n\tleft:0;\n}",""]);const s=o},81637:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .view-ruler {\n\tposition: absolute;\n\ttop: 0;\n\tbox-shadow: 1px 0 0 0 var(--vscode-editorRuler-foreground) inset;\n}\n",""]);const s=o},29133:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .scroll-decoration {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\theight: 6px;\n\tbox-shadow: var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset;\n}\n",""]);const s=o},48829:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/*\n\tKeeping name short for faster parsing.\n\tcslr = core selections layer rendering (div)\n*/\n.monaco-editor .lines-content .cslr {\n\tposition: absolute;\n}\n\n.monaco-editor .focused .selected-text {\n\tbackground-color: var(--vscode-editor-selectionBackground);\n}\n\n.monaco-editor .selected-text {\n\tbackground-color: var(--vscode-editor-inactiveSelectionBackground);\n}\n\n.monaco-editor\t\t\t.top-left-radius\t\t{ border-top-left-radius: 3px; }\n.monaco-editor\t\t\t.bottom-left-radius\t\t{ border-bottom-left-radius: 3px; }\n.monaco-editor\t\t\t.top-right-radius\t\t{ border-top-right-radius: 3px; }\n.monaco-editor\t\t\t.bottom-right-radius\t{ border-bottom-right-radius: 3px; }\n\n.monaco-editor.hc-black .top-left-radius\t\t{ border-top-left-radius: 0; }\n.monaco-editor.hc-black .bottom-left-radius\t\t{ border-bottom-left-radius: 0; }\n.monaco-editor.hc-black .top-right-radius\t\t{ border-top-right-radius: 0; }\n.monaco-editor.hc-black .bottom-right-radius\t{ border-bottom-right-radius: 0; }\n\n.monaco-editor.hc-light .top-left-radius\t\t{ border-top-left-radius: 0; }\n.monaco-editor.hc-light .bottom-left-radius\t\t{ border-bottom-left-radius: 0; }\n.monaco-editor.hc-light .top-right-radius\t\t{ border-top-right-radius: 0; }\n.monaco-editor.hc-light .bottom-right-radius\t{ border-bottom-right-radius: 0; }\n",""]);const s=o},2289:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n.monaco-editor .cursors-layer {\n\tposition: absolute;\n\ttop: 0;\n}\n\n.monaco-editor .cursors-layer > .cursor {\n\tposition: absolute;\n\toverflow: hidden;\n\tbox-sizing: border-box;\n}\n\n/* -- smooth-caret-animation -- */\n.monaco-editor .cursors-layer.cursor-smooth-caret-animation > .cursor {\n\ttransition: all 80ms;\n}\n\n/* -- block-outline-style -- */\n.monaco-editor .cursors-layer.cursor-block-outline-style > .cursor {\n\tbackground: transparent !important;\n\tborder-style: solid;\n\tborder-width: 1px;\n}\n\n/* -- underline-style -- */\n.monaco-editor .cursors-layer.cursor-underline-style > .cursor {\n\tborder-bottom-width: 2px;\n\tborder-bottom-style: solid;\n\tbackground: transparent !important;\n}\n\n/* -- underline-thin-style -- */\n.monaco-editor .cursors-layer.cursor-underline-thin-style > .cursor {\n\tborder-bottom-width: 1px;\n\tborder-bottom-style: solid;\n\tbackground: transparent !important;\n}\n\n@keyframes monaco-cursor-smooth {\n\t0%,\n\t20% {\n\t\topacity: 1;\n\t}\n\t60%,\n\t100% {\n\t\topacity: 0;\n\t}\n}\n\n@keyframes monaco-cursor-phase {\n\t0%,\n\t20% {\n\t\topacity: 1;\n\t}\n\t90%,\n\t100% {\n\t\topacity: 0;\n\t}\n}\n\n@keyframes monaco-cursor-expand {\n\t0%,\n\t20% {\n\t\ttransform: scaleY(1);\n\t}\n\t80%,\n\t100% {\n\t\ttransform: scaleY(0);\n\t}\n}\n\n.cursor-smooth {\n\tanimation: monaco-cursor-smooth 0.5s ease-in-out 0s 20 alternate;\n}\n\n.cursor-phase {\n\tanimation: monaco-cursor-phase 0.5s ease-in-out 0s 20 alternate;\n}\n\n.cursor-expand > .cursor {\n\tanimation: monaco-cursor-expand 0.5s ease-in-out 0s 20 alternate;\n}\n",""]);const s=o},98189:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .mwh {\n\tposition: absolute;\n\tcolor: var(--vscode-editorWhitespace-foreground) !important;\n}\n",""]);const s=o},6049:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* -------------------- IE10 remove auto clear button -------------------- */\n\n::-ms-clear {\n\tdisplay: none;\n}\n\n/* All widgets */\n/* I am not a big fan of this rule */\n.monaco-editor .editor-widget input {\n\tcolor: inherit;\n}\n\n/* -------------------- Editor -------------------- */\n\n.monaco-editor {\n\tposition: relative;\n\toverflow: visible;\n\t-webkit-text-size-adjust: 100%;\n\tcolor: var(--vscode-editor-foreground);\n\tbackground-color: var(--vscode-editor-background);\n}\n.monaco-editor-background {\n\tbackground-color: var(--vscode-editor-background);\n}\n.monaco-editor .rangeHighlight {\n\tbackground-color: var(--vscode-editor-rangeHighlightBackground);\n\tbox-sizing: border-box;\n\tborder: 1px solid var(--vscode-editor-rangeHighlightBorder);\n}\n.monaco-editor.hc-black .rangeHighlight, .monaco-editor.hc-light .rangeHighlight {\n\tborder-style: dotted;\n}\n.monaco-editor .symbolHighlight {\n\tbackground-color: var(--vscode-editor-symbolHighlightBackground);\n\tbox-sizing: border-box;\n\tborder: 1px solid var(--vscode-editor-symbolHighlightBorder);\n}\n.monaco-editor.hc-black .symbolHighlight, .monaco-editor.hc-light .symbolHighlight {\n\tborder-style: dotted;\n}\n\n/* -------------------- Misc -------------------- */\n\n.monaco-editor .overflow-guard {\n\tposition: relative;\n\toverflow: hidden;\n}\n\n.monaco-editor .view-overlays {\n\tposition: absolute;\n\ttop: 0;\n}\n\n.monaco-editor .view-overlays > div, .monaco-editor .margin-view-overlays > div {\n\tposition: absolute;\n\twidth: 100%;\n}\n\n/*\n.monaco-editor .auto-closed-character {\n\topacity: 0.3;\n}\n*/\n\n\n.monaco-editor .squiggly-error {\n\tborder-bottom: 4px double var(--vscode-editorError-border);\n}\n.monaco-editor .squiggly-error::before {\n\tdisplay: block;\n\tcontent: '';\n\twidth: 100%;\n\theight: 100%;\n\tbackground: var(--vscode-editorError-background);\n}\n.monaco-editor .squiggly-warning {\n\tborder-bottom: 4px double var(--vscode-editorWarning-border);\n}\n.monaco-editor .squiggly-warning::before {\n\tdisplay: block;\n\tcontent: '';\n\twidth: 100%;\n\theight: 100%;\n\tbackground: var(--vscode-editorWarning-background);\n}\n.monaco-editor .squiggly-info {\n\tborder-bottom: 4px double var(--vscode-editorInfo-border);\n}\n.monaco-editor .squiggly-info::before {\n\tdisplay: block;\n\tcontent: '';\n\twidth: 100%;\n\theight: 100%;\n\tbackground: var(--vscode-editorInfo-background);\n}\n.monaco-editor .squiggly-hint {\n\tborder-bottom: 2px dotted var(--vscode-editorHint-border);\n}\n.monaco-editor.showUnused .squiggly-unnecessary {\n\tborder-bottom: 2px dashed var(--vscode-editorUnnecessaryCode-border);\n}\n.monaco-editor.showDeprecated .squiggly-inline-deprecated {\n\ttext-decoration: line-through;\n\ttext-decoration-color: var(--vscode-editor-foreground, inherit);\n}\n",""]);const s=o},52180:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-component.diff-review {\n\tuser-select: none;\n\t-webkit-user-select: none;\n\tz-index: 99;\n}\n\n.monaco-diff-editor .diff-review {\n\tposition: absolute;\n\n}\n\n.monaco-component.diff-review .diff-review-line-number {\n\ttext-align: right;\n\tdisplay: inline-block;\n\tcolor: var(--vscode-editorLineNumber-foreground);\n}\n\n.monaco-component.diff-review .diff-review-summary {\n\tpadding-left: 10px;\n}\n\n.monaco-component.diff-review .diff-review-shadow {\n\tposition: absolute;\n\tbox-shadow: var(--vscode-scrollbar-shadow) 0 -6px 6px -6px inset;\n}\n\n.monaco-component.diff-review .diff-review-row {\n\twhite-space: pre;\n}\n\n.monaco-component.diff-review .diff-review-table {\n\tdisplay: table;\n\tmin-width: 100%;\n}\n\n.monaco-component.diff-review .diff-review-row {\n\tdisplay: table-row;\n\twidth: 100%;\n}\n\n.monaco-component.diff-review .diff-review-spacer {\n\tdisplay: inline-block;\n\twidth: 10px;\n\tvertical-align: middle;\n}\n\n.monaco-component.diff-review .diff-review-spacer > .codicon {\n\tfont-size: 9px !important;\n}\n\n.monaco-component.diff-review .diff-review-actions {\n\tdisplay: inline-block;\n\tposition: absolute;\n\tright: 10px;\n\ttop: 2px;\n\tz-index: 100;\n}\n\n.monaco-component.diff-review .diff-review-actions .action-label {\n\twidth: 16px;\n\theight: 16px;\n\tmargin: 2px 0;\n}\n\n.monaco-component.diff-review .revertButton {\n\tcursor: pointer;\n}\n",""]);const s=o},41921:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .diff-hidden-lines-widget {\n\twidth: 100%;\n}\n\n.monaco-editor .diff-hidden-lines {\n\theight: 0px; /* The children each have a fixed height, the transform confuses the browser */\n\ttransform: translate(0px, -10px);\n\tfont-size: 13px;\n\tline-height: 14px;\n}\n\n.monaco-editor .diff-hidden-lines:not(.dragging) .top:hover,\n.monaco-editor .diff-hidden-lines:not(.dragging) .bottom:hover,\n.monaco-editor .diff-hidden-lines .top.dragging,\n.monaco-editor .diff-hidden-lines .bottom.dragging {\n\tbackground-color: var(--vscode-focusBorder);\n}\n\n.monaco-editor .diff-hidden-lines .top,\n.monaco-editor .diff-hidden-lines .bottom {\n\ttransition: background-color 0.1s ease-out;\n\theight: 4px;\n\tbackground-color: transparent;\n\tbackground-clip: padding-box;\n\tborder-bottom: 2px solid transparent;\n\tborder-top: 4px solid transparent;\n\t/*cursor: n-resize;*/\n}\n\n.monaco-editor.draggingUnchangedRegion.canMoveTop:not(.canMoveBottom) *,\n.monaco-editor .diff-hidden-lines .top.canMoveTop:not(.canMoveBottom),\n.monaco-editor .diff-hidden-lines .bottom.canMoveTop:not(.canMoveBottom) {\n\tcursor: n-resize !important;\n}\n\n.monaco-editor.draggingUnchangedRegion:not(.canMoveTop).canMoveBottom *,\n.monaco-editor .diff-hidden-lines .top:not(.canMoveTop).canMoveBottom,\n.monaco-editor .diff-hidden-lines .bottom:not(.canMoveTop).canMoveBottom {\n\tcursor: s-resize !important;\n}\n\n.monaco-editor.draggingUnchangedRegion.canMoveTop.canMoveBottom *,\n.monaco-editor .diff-hidden-lines .top.canMoveTop.canMoveBottom,\n.monaco-editor .diff-hidden-lines .bottom.canMoveTop.canMoveBottom {\n\tcursor: ns-resize !important;\n}\n\n.monaco-editor .diff-hidden-lines .top {\n\ttransform: translate(0px, 4px);\n}\n\n.monaco-editor .diff-hidden-lines .bottom {\n\ttransform: translate(0px, -6px);\n}\n\n.monaco-editor .diff-unchanged-lines {\n\tbackground: var(--vscode-diffEditor-unchangedCodeBackground);\n}\n\n.monaco-editor .noModificationsOverlay {\n\tz-index: 1;\n\tbackground: var(--vscode-editor-background);\n\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n}\n\n\n.monaco-editor .diff-hidden-lines .center {\n\tbackground: var(--vscode-diffEditor-unchangedRegionBackground);\n\tcolor: var(--vscode-diffEditor-unchangedRegionForeground);\n\toverflow: hidden;\n\tdisplay: block;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\n\theight: 24px;\n\tbox-shadow: inset 0 -5px 5px -7px var(--vscode-diffEditor-unchangedRegionShadow), inset 0 5px 5px -7px var(--vscode-diffEditor-unchangedRegionShadow);\n}\n\n.monaco-editor .diff-hidden-lines .center span.codicon {\n\tvertical-align: middle;\n}\n\n.monaco-editor .diff-hidden-lines .center a:hover .codicon {\n\tcursor: pointer;\n\tcolor: var(--vscode-editorLink-activeForeground) !important;\n}\n\n.monaco-editor .diff-hidden-lines div.breadcrumb-item {\n\tcursor: pointer;\n}\n\n.monaco-editor .diff-hidden-lines div.breadcrumb-item:hover {\n\tcolor: var(--vscode-editorLink-activeForeground);\n}\n\n.monaco-editor .movedOriginal {\n\tborder: 2px solid var(--vscode-diffEditor-move-border);\n}\n\n.monaco-editor .movedModified {\n\tborder: 2px solid var(--vscode-diffEditor-move-border);\n}\n\n.monaco-editor .movedOriginal.currentMove, .monaco-editor .movedModified.currentMove {\n\tborder: 2px solid var(--vscode-diffEditor-moveActive-border);\n}\n\n.monaco-diff-editor .moved-blocks-lines path.currentMove {\n\tstroke: var(--vscode-diffEditor-moveActive-border);\n}\n\n.monaco-diff-editor .moved-blocks-lines path {\n\tpointer-events: visiblestroke;\n}\n\n.monaco-diff-editor .moved-blocks-lines .arrow {\n\tfill: var(--vscode-diffEditor-move-border);\n}\n\n.monaco-diff-editor .moved-blocks-lines .arrow.currentMove {\n\tfill: var(--vscode-diffEditor-moveActive-border);\n}\n\n.monaco-diff-editor .moved-blocks-lines .arrow-rectangle {\n\tfill: var(--vscode-editor-background);\n}\n\n.monaco-diff-editor .moved-blocks-lines {\n\tposition: absolute;\n\tpointer-events: none;\n}\n\n.monaco-diff-editor .moved-blocks-lines path {\n\tfill: none;\n\tstroke: var(--vscode-diffEditor-move-border);\n\tstroke-width: 2;\n}\n\n.monaco-editor .char-delete.diff-range-empty {\n\tmargin-left: -1px;\n\tborder-left: solid var(--vscode-diffEditor-removedTextBackground) 3px;\n}\n\n.monaco-editor .char-insert.diff-range-empty {\n\tborder-left: solid var(--vscode-diffEditor-insertedTextBackground) 3px;\n}\n\n.monaco-editor .fold-unchanged {\n\tcursor: pointer;\n}\n\n.monaco-diff-editor .diff-moved-code-block {\n\tdisplay: flex;\n\tjustify-content: flex-end;\n\tmargin-top: -4px;\n}\n\n.monaco-diff-editor .diff-moved-code-block .action-bar .action-label.codicon {\n\twidth: 12px;\n\theight: 12px;\n\tfont-size: 12px;\n}\n\n/* ---------- DiffEditor ---------- */\n\n.monaco-diff-editor .diffOverview {\n\tz-index: 9;\n}\n\n.monaco-diff-editor .diffOverview .diffViewport {\n\tz-index: 10;\n}\n\n/* colors not externalized: using transparancy on background */\n.monaco-diff-editor.vs\t\t\t.diffOverview { background: rgba(0, 0, 0, 0.03); }\n.monaco-diff-editor.vs-dark\t\t.diffOverview { background: rgba(255, 255, 255, 0.01); }\n\n.monaco-scrollable-element.modified-in-monaco-diff-editor.vs\t\t.scrollbar { background: rgba(0,0,0,0); }\n.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark\t.scrollbar { background: rgba(0,0,0,0); }\n.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black\t.scrollbar { background: none; }\n.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-light\t.scrollbar { background: none; }\n\n.monaco-scrollable-element.modified-in-monaco-diff-editor .slider {\n\tz-index: 10;\n}\n.modified-in-monaco-diff-editor\t\t\t\t.slider.active { background: rgba(171, 171, 171, .4); }\n.modified-in-monaco-diff-editor.hc-black\t.slider.active { background: none; }\n.modified-in-monaco-diff-editor.hc-light\t.slider.active { background: none; }\n\n/* ---------- Diff ---------- */\n\n.monaco-editor .insert-sign,\n.monaco-diff-editor .insert-sign,\n.monaco-editor .delete-sign,\n.monaco-diff-editor .delete-sign {\n\tfont-size: 11px !important;\n\topacity: 0.7 !important;\n\tdisplay: flex !important;\n\talign-items: center;\n}\n.monaco-editor.hc-black .insert-sign,\n.monaco-diff-editor.hc-black .insert-sign,\n.monaco-editor.hc-black .delete-sign,\n.monaco-diff-editor.hc-black .delete-sign,\n.monaco-editor.hc-light .insert-sign,\n.monaco-diff-editor.hc-light .insert-sign,\n.monaco-editor.hc-light .delete-sign,\n.monaco-diff-editor.hc-light .delete-sign {\n\topacity: 1;\n}\n\n.monaco-editor .inline-deleted-margin-view-zone {\n\ttext-align: right;\n}\n.monaco-editor .inline-added-margin-view-zone {\n\ttext-align: right;\n}\n\n.monaco-editor .arrow-revert-change {\n\tz-index: 10;\n\tposition: absolute;\n}\n\n.monaco-editor .arrow-revert-change:hover {\n\tcursor: pointer;\n}\n\n/* ---------- Inline Diff ---------- */\n\n.monaco-editor .view-zones .view-lines .view-line span {\n\tdisplay: inline-block;\n}\n\n.monaco-editor .margin-view-zones .lightbulb-glyph:hover {\n\tcursor: pointer;\n}\n\n.monaco-editor .char-insert, .monaco-diff-editor .char-insert {\n\tbackground-color: var(--vscode-diffEditor-insertedTextBackground);\n}\n\n.monaco-editor .line-insert, .monaco-diff-editor .line-insert {\n\tbackground-color: var(--vscode-diffEditor-insertedLineBackground, var(--vscode-diffEditor-insertedTextBackground));\n}\n\n.monaco-editor .line-insert,\n.monaco-editor .char-insert {\n\tbox-sizing: border-box;\n\tborder: 1px solid var(--vscode-diffEditor-insertedTextBorder);\n}\n.monaco-editor.hc-black .line-insert, .monaco-editor.hc-light .line-insert,\n.monaco-editor.hc-black .char-insert, .monaco-editor.hc-light .char-insert {\n\tborder-style: dashed;\n}\n\n.monaco-editor .line-delete,\n.monaco-editor .char-delete {\n\tbox-sizing: border-box;\n\tborder: 1px solid var(--vscode-diffEditor-removedTextBorder);\n}\n.monaco-editor.hc-black .line-delete, .monaco-editor.hc-light .line-delete,\n.monaco-editor.hc-black .char-delete, .monaco-editor.hc-light .char-delete {\n\tborder-style: dashed;\n}\n\n.monaco-editor .inline-added-margin-view-zone,\n.monaco-editor .gutter-insert, .monaco-diff-editor .gutter-insert {\n\tbackground-color: var(--vscode-diffEditorGutter-insertedLineBackground, var(--vscode-diffEditor-insertedLineBackground), var(--vscode-diffEditor-insertedTextBackground));\n}\n\n.monaco-editor .char-delete, .monaco-diff-editor .char-delete {\n\tbackground-color: var(--vscode-diffEditor-removedTextBackground);\n}\n\n.monaco-editor .line-delete, .monaco-diff-editor .line-delete {\n\tbackground-color: var(--vscode-diffEditor-removedLineBackground, var(--vscode-diffEditor-removedTextBackground));\n}\n\n.monaco-editor .inline-deleted-margin-view-zone,\n.monaco-editor .gutter-delete, .monaco-diff-editor .gutter-delete {\n\tbackground-color: var(--vscode-diffEditorGutter-removedLineBackground, var(--vscode-diffEditor-removedLineBackground), var(--vscode-diffEditor-removedTextBackground));\n}\n\n.monaco-diff-editor.side-by-side .editor.modified {\n\tbox-shadow: -6px 0 5px -5px var(--vscode-scrollbar-shadow);\n\tborder-left: 1px solid var(--vscode-diffEditor-border);\n}\n\n.monaco-diff-editor.side-by-side .editor.original {\n\tbox-shadow: 6px 0 5px -5px var(--vscode-scrollbar-shadow);\n\tborder-right: 1px solid var(--vscode-diffEditor-border);\n}\n\n.monaco-diff-editor .diffViewport {\n\tbackground: var(--vscode-scrollbarSlider-background);\n}\n\n.monaco-diff-editor .diffViewport:hover {\n\tbackground: var(--vscode-scrollbarSlider-hoverBackground);\n}\n\n.monaco-diff-editor .diffViewport:active {\n\tbackground: var(--vscode-scrollbarSlider-activeBackground);\n}\n\n.monaco-editor .diagonal-fill {\n\tbackground-image: linear-gradient(\n\t\t-45deg,\n\t\tvar(--vscode-diffEditor-diagonalFill) 12.5%,\n\t\t#0000 12.5%, #0000 50%,\n\t\tvar(--vscode-diffEditor-diagonalFill) 50%, var(--vscode-diffEditor-diagonalFill) 62.5%,\n\t\t#0000 62.5%, #0000 100%\n\t);\n\tbackground-size: 8px 8px;\n}\n\n.monaco-diff-editor .gutter {\n\tposition: relative;\n\toverflow: hidden;\n\tflex-shrink: 0;\n\tflex-grow: 0;\n\n\t& > div {\n\t\tposition: absolute;\n\t}\n\n\t.gutterItem {\n\t\topacity: 0;\n\t\ttransition: opacity 0.7s;\n\n\t\t&.showAlways {\n\t\t\topacity: 1;\n\t\t\ttransition: none;\n\t\t}\n\n\t\t&.noTransition {\n\t\t\ttransition: none;\n\t\t}\n\t}\n\n\t&:hover .gutterItem {\n\t\topacity: 1;\n\t\ttransition: opacity 0.1s ease-in-out;\n\t}\n\n\t.gutterItem {\n\t\t.background {\n\t\t\tposition: absolute;\n\t\t\theight: 100%;\n\t\t\tleft: 50%;\n\t\t\twidth: 1px;\n\n\t\t\tborder-left: 2px var(--vscode-menu-border) solid;\n\t\t}\n\n\t\t.buttons {\n\t\t\tposition: absolute;\n\t\t\t/*height: 100%;*/\n\t\t\twidth: 100%;\n\n\t\t\tdisplay: flex;\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\n\t\t\t.monaco-toolbar {\n\t\t\t\theight: fit-content;\n\t\t\t\t.monaco-action-bar {\n\t\t\t\t\tline-height: 1;\n\n\t\t\t\t\t.actions-container {\n\t\t\t\t\t\twidth: fit-content;\n\t\t\t\t\t\tborder-radius: 4px;\n\t\t\t\t\t\tbackground: var(--vscode-editorGutter-commentRangeForeground);\n\n\t\t\t\t\t\t.action-item {\n\t\t\t\t\t\t\t&:hover {\n\t\t\t\t\t\t\t\tbackground: var(--vscode-toolbar-hoverBackground);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t.action-label {\n\t\t\t\t\t\t\t\tpadding: 1px 2px;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n",""]);const s=o},46835:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .rendered-markdown kbd {\n\tbackground-color: var(--vscode-keybindingLabel-background);\n\tcolor: var(--vscode-keybindingLabel-foreground);\n\tborder-style: solid;\n\tborder-width: 1px;\n\tborder-radius: 3px;\n\tborder-color: var(--vscode-keybindingLabel-border);\n\tborder-bottom-color: var(--vscode-keybindingLabel-bottomBorder);\n\tbox-shadow: inset 0 -1px 0 var(--vscode-widget-shadow);\n\tvertical-align: middle;\n\tpadding: 1px 3px;\n}\n\n.rendered-markdown li:has(input[type=checkbox]) {\n\tlist-style-type: none;\n}\n",""]);const s=o},46514:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-component.multiDiffEditor {\n\tbackground: var(--vscode-multiDiffEditor-background);\n\n\tposition: relative;\n\n\theight: 100%;\n\twidth: 100%;\n\n\toverflow-y: hidden;\n\n\t> div {\n\t\tposition: absolute;\n\t\ttop: 0px;\n\t\tleft: 0px;\n\n\t\theight: 100%;\n\t\twidth: 100%;\n\n\t\t&.placeholder {\n\t\t\tvisibility: hidden;\n\n\t\t\t&.visible {\n\t\t\t\tvisibility: visible;\n\t\t\t}\n\n\t\t\tdisplay: grid;\n\t\t\tplace-items: center;\n\t\t\tplace-content: center;\n\t\t}\n\t}\n\n\t.active {\n\t\t--vscode-multiDiffEditor-border: var(--vscode-focusBorder);\n\t}\n\n\t.multiDiffEntry {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tflex: 1;\n\t\toverflow: hidden;\n\n\n\t\t.collapse-button {\n\t\t\tmargin: 0 5px;\n\t\t\tcursor: pointer;\n\n\t\t\ta {\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\n\t\t.header {\n\t\t\tz-index: 1000;\n\t\t\tbackground: var(--vscode-editor-background);\n\n\t\t\t&:not(.collapsed) .header-content {\n\t\t\t\tborder-bottom: 1px solid var(--vscode-sideBarSectionHeader-border);\n\t\t\t}\n\n\t\t\t.header-content {\n\t\t\t\tmargin: 8px 0px 0px 0px;\n\t\t\t\tpadding: 4px 5px;\n\n\t\t\t\tborder-top: 1px solid var(--vscode-multiDiffEditor-border);\n\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\n\t\t\t\tcolor: var(--vscode-foreground);\n\t\t\t\tbackground: var(--vscode-multiDiffEditor-headerBackground);\n\n\t\t\t\t&.shadow {\n\t\t\t\t\tbox-shadow: var(--vscode-scrollbar-shadow) 0px 6px 6px -6px;\n\t\t\t\t}\n\n\t\t\t\t.file-path {\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\tflex: 1;\n\t\t\t\t\tmin-width: 0;\n\n\t\t\t\t\t.title {\n\t\t\t\t\t\tfont-size: 14px;\n\t\t\t\t\t\tline-height: 22px;\n\n\t\t\t\t\t\t&.original {\n\t\t\t\t\t\t\tflex: 1;\n\t\t\t\t\t\t\tmin-width: 0;\n\t\t\t\t\t\t\ttext-overflow: ellipsis;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t.status {\n\t\t\t\t\t\tfont-weight: 600;\n\t\t\t\t\t\topacity: 0.75;\n\t\t\t\t\t\tmargin: 0px 10px;\n\t\t\t\t\t\tline-height: 22px;\n\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t\tTODO@hediet: move colors from git extension to core!\n\t\t\t\t\t\t&.renamed {\n\t\t\t\t\t\t\tcolor: v ar(--vscode-gitDecoration-renamedResourceForeground);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t&.deleted {\n\t\t\t\t\t\t\tcolor: v ar(--vscode-gitDecoration-deletedResourceForeground);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t&.added {\n\t\t\t\t\t\t\tcolor: v ar(--vscode-gitDecoration-addedResourceForeground);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t*/\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t.actions {\n\t\t\t\t\tpadding: 0 8px;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t}\n\n\t\t.editorParent {\n\t\t\tflex: 1;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\n\t\t\tborder-bottom: 1px solid var(--vscode-multiDiffEditor-border);\n\t\t\toverflow: hidden;\n\t\t}\n\n\t\t.editorContainer {\n\t\t\tflex: 1;\n\t\t}\n\t}\n}\n",""]);const s=o},42755:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .selection-anchor {\n\tbackground-color: #007ACC;\n\twidth: 2px !important;\n}\n",""]);const s=o},7997:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .bracket-match {\n\tbox-sizing: border-box;\n\tbackground-color: var(--vscode-editorBracketMatch-background);\n\tborder: 1px solid var(--vscode-editorBracketMatch-border);\n}\n",""]);const s=o},4169:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .lightBulbWidget {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n.monaco-editor .lightBulbWidget:hover{\n\tcursor: pointer;\n}\n\n.monaco-editor .lightBulbWidget.codicon-light-bulb,\n.monaco-editor .lightBulbWidget.codicon-lightbulb-sparkle {\n\tcolor: var(--vscode-editorLightBulb-foreground);\n}\n\n.monaco-editor .lightBulbWidget.codicon-lightbulb-autofix,\n.monaco-editor .lightBulbWidget.codicon-lightbulb-sparkle-autofix {\n\tcolor: var(--vscode-editorLightBulbAutoFix-foreground, var(--vscode-editorLightBulb-foreground));\n}\n\n.monaco-editor .lightBulbWidget.codicon-sparkle-filled {\n\tcolor: var(--vscode-editorLightBulbAi-foreground, var(--vscode-icon-foreground));\n}\n\n.monaco-editor .lightBulbWidget:before {\n\tposition: relative;\n\tz-index: 2;\n}\n\n.monaco-editor .lightBulbWidget:after {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tcontent: '';\n\tdisplay: block;\n\twidth: 100%;\n\theight: 100%;\n\topacity: 0.3;\n\tz-index: 1;\n}\n",""]);const s=o},61727:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .codelens-decoration {\n\toverflow: hidden;\n\tdisplay: inline-block;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\tcolor: var(--vscode-editorCodeLens-foreground);\n\tline-height: var(--vscode-editorCodeLens-lineHeight);\n\tfont-size: var(--vscode-editorCodeLens-fontSize);\n\tpadding-right: calc(var(--vscode-editorCodeLens-fontSize)*0.5);\n\tfont-feature-settings: var(--vscode-editorCodeLens-fontFeatureSettings);\n\tfont-family: var(--vscode-editorCodeLens-fontFamily), var(--vscode-editorCodeLens-fontFamilyDefault);\n}\n\n.monaco-editor .codelens-decoration > span,\n.monaco-editor .codelens-decoration > a {\n\tuser-select: none;\n\t-webkit-user-select: none;\n\twhite-space: nowrap;\n\tvertical-align: sub;\n}\n\n.monaco-editor .codelens-decoration > a {\n\ttext-decoration: none;\n}\n\n.monaco-editor .codelens-decoration > a:hover {\n\tcursor: pointer;\n\tcolor: var(--vscode-editorLink-activeForeground) !important;\n}\n\n.monaco-editor .codelens-decoration > a:hover .codicon {\n\tcolor: var(--vscode-editorLink-activeForeground) !important;\n}\n\n.monaco-editor .codelens-decoration .codicon {\n\tvertical-align: middle;\n\tcolor: currentColor !important;\n\tcolor: var(--vscode-editorCodeLens-foreground);\n\tline-height: var(--vscode-editorCodeLens-lineHeight);\n\tfont-size: var(--vscode-editorCodeLens-fontSize);\n}\n\n.monaco-editor .codelens-decoration > a:hover .codicon::before {\n\tcursor: pointer;\n}\n\n@keyframes fadein {\n\t0% {\n\t\topacity: 0;\n\t\tvisibility: visible;\n\t}\n\n\t100% {\n\t\topacity: 1;\n\t}\n}\n\n.monaco-editor .codelens-decoration.fadein {\n\tanimation: fadein 0.1s linear;\n}\n",""]);const s=o},53345:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,'/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.colorpicker-widget {\n\theight: 190px;\n\tuser-select: none;\n\t-webkit-user-select: none;\n}\n\n/* Decoration */\n\n.colorpicker-color-decoration,\n.hc-light .colorpicker-color-decoration {\n\tborder: solid 0.1em #000;\n\tbox-sizing: border-box;\n\tmargin: 0.1em 0.2em 0 0.2em;\n\twidth: 0.8em;\n\theight: 0.8em;\n\tline-height: 0.8em;\n\tdisplay: inline-block;\n\tcursor: pointer;\n}\n\n.hc-black .colorpicker-color-decoration,\n.vs-dark .colorpicker-color-decoration {\n\tborder: solid 0.1em #eee;\n}\n\n/* Header */\n\n.colorpicker-header {\n\tdisplay: flex;\n\theight: 24px;\n\tposition: relative;\n\tbackground: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=");\n\tbackground-size: 9px 9px;\n\timage-rendering: pixelated;\n}\n\n.colorpicker-header .picked-color {\n\twidth: 240px;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tline-height: 24px;\n\tcursor: pointer;\n\tcolor: white;\n\tflex: 1;\n\twhite-space: nowrap;\n\toverflow: hidden;\n}\n\n.colorpicker-header .picked-color .picked-color-presentation {\n\twhite-space: nowrap;\n\tmargin-left: 5px;\n\tmargin-right: 5px;\n}\n\n.colorpicker-header .picked-color .codicon {\n\tcolor: inherit;\n\tfont-size: 14px;\n}\n\n.colorpicker-header .picked-color.light {\n\tcolor: black;\n}\n\n.colorpicker-header .original-color {\n\twidth: 74px;\n\tz-index: inherit;\n\tcursor: pointer;\n}\n\n.standalone-colorpicker {\n\tcolor: var(--vscode-editorHoverWidget-foreground);\n\tbackground-color: var(--vscode-editorHoverWidget-background);\n\tborder: 1px solid var(--vscode-editorHoverWidget-border);\n}\n\n.colorpicker-header.standalone-colorpicker {\n\tborder-bottom: none;\n}\n\n.colorpicker-header .close-button {\n\tcursor: pointer;\n\tbackground-color: var(--vscode-editorHoverWidget-background);\n\tborder-left: 1px solid var(--vscode-editorHoverWidget-border);\n}\n\n.colorpicker-header .close-button-inner-div {\n\twidth: 100%;\n\theight: 100%;\n\ttext-align: center;\n}\n\n.colorpicker-header .close-button-inner-div:hover {\n\tbackground-color: var(--vscode-toolbar-hoverBackground);\n}\n\n.colorpicker-header .close-icon {\n\tpadding: 3px;\n}\n\n/* Body */\n\n.colorpicker-body {\n\tdisplay: flex;\n\tpadding: 8px;\n\tposition: relative;\n}\n\n.colorpicker-body .saturation-wrap {\n\toverflow: hidden;\n\theight: 150px;\n\tposition: relative;\n\tmin-width: 220px;\n\tflex: 1;\n}\n\n.colorpicker-body .saturation-box {\n\theight: 150px;\n\tposition: absolute;\n}\n\n.colorpicker-body .saturation-selection {\n\twidth: 9px;\n\theight: 9px;\n\tmargin: -5px 0 0 -5px;\n\tborder: 1px solid rgb(255, 255, 255);\n\tborder-radius: 100%;\n\tbox-shadow: 0px 0px 2px rgba(0, 0, 0, 0.8);\n\tposition: absolute;\n}\n\n.colorpicker-body .strip {\n\twidth: 25px;\n\theight: 150px;\n}\n\n.colorpicker-body .standalone-strip {\n\twidth: 25px;\n\theight: 122px;\n}\n\n.colorpicker-body .hue-strip {\n\tposition: relative;\n\tmargin-left: 8px;\n\tcursor: grab;\n\tbackground: linear-gradient(to bottom, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);\n}\n\n.colorpicker-body .opacity-strip {\n\tposition: relative;\n\tmargin-left: 8px;\n\tcursor: grab;\n\tbackground: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=");\n\tbackground-size: 9px 9px;\n\timage-rendering: pixelated;\n}\n\n.colorpicker-body .strip.grabbing {\n\tcursor: grabbing;\n}\n\n.colorpicker-body .slider {\n\tposition: absolute;\n\ttop: 0;\n\tleft: -2px;\n\twidth: calc(100% + 4px);\n\theight: 4px;\n\tbox-sizing: border-box;\n\tborder: 1px solid rgba(255, 255, 255, 0.71);\n\tbox-shadow: 0px 0px 1px rgba(0, 0, 0, 0.85);\n}\n\n.colorpicker-body .strip .overlay {\n\theight: 150px;\n\tpointer-events: none;\n}\n\n.colorpicker-body .standalone-strip .standalone-overlay {\n\theight: 122px;\n\tpointer-events: none;\n}\n\n.standalone-colorpicker-body {\n\tdisplay: block;\n\tborder: 1px solid transparent;\n\tborder-bottom: 1px solid var(--vscode-editorHoverWidget-border);\n\toverflow: hidden;\n}\n\n.colorpicker-body .insert-button {\n\tposition: absolute;\n\theight: 20px;\n\twidth: 58px;\n\tpadding: 0px;\n\tright: 8px;\n\tbottom: 8px;\n\tbackground: var(--vscode-button-background);\n\tcolor: var(--vscode-button-foreground);\n\tborder-radius: 2px;\n\tborder: none;\n\tcursor: pointer;\n}\n\n.colorpicker-body .insert-button:hover{\n\tbackground: var(--vscode-button-hoverBackground);\n}\n',""]);const s=o},88357:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor.vs .dnd-target,\n.monaco-editor.hc-light .dnd-target {\n\tborder-right: 2px dotted black;\n\tcolor: white; /* opposite of black */\n}\n.monaco-editor.vs-dark .dnd-target {\n\tborder-right: 2px dotted #AEAFAD;\n\tcolor: #51504f; /* opposite of #AEAFAD */\n}\n.monaco-editor.hc-black .dnd-target {\n\tborder-right: 2px dotted #fff;\n\tcolor: #000; /* opposite of #fff */\n}\n\n.monaco-editor.mouse-default .view-lines,\n.monaco-editor.vs-dark.mac.mouse-default .view-lines,\n.monaco-editor.hc-black.mac.mouse-default .view-lines,\n.monaco-editor.hc-light.mac.mouse-default .view-lines {\n\tcursor: default;\n}\n.monaco-editor.mouse-copy .view-lines,\n.monaco-editor.vs-dark.mac.mouse-copy .view-lines,\n.monaco-editor.hc-black.mac.mouse-copy .view-lines,\n.monaco-editor.hc-light.mac.mouse-copy .view-lines {\n\tcursor: copy;\n}\n",""]);const s=o},39926:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.post-edit-widget {\n\tbox-shadow: 0 0 8px 2px var(--vscode-widget-shadow);\n\tborder: 1px solid var(--vscode-widget-border, transparent);\n\tborder-radius: 4px;\n\tbackground-color: var(--vscode-editorWidget-background);\n\toverflow: hidden;\n}\n\n.post-edit-widget .monaco-button {\n\tpadding: 2px;\n\tborder: none;\n\tborder-radius: 0;\n}\n\n.post-edit-widget .monaco-button:hover {\n\tbackground-color: var(--vscode-button-secondaryHoverBackground) !important;\n}\n\n.post-edit-widget .monaco-button .codicon {\n\tmargin: 0;\n}\n",""]);const s=o},15669:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .findOptionsWidget {\n\tbackground-color: var(--vscode-editorWidget-background);\n\tcolor: var(--vscode-editorWidget-foreground);\n\tbox-shadow: 0 0 8px 2px var(--vscode-widget-shadow);\n\tborder: 2px solid var(--vscode-contrastBorder);\n}\n",""]);const s=o},45395:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* Find widget */\n.monaco-editor .find-widget {\n\tposition: absolute;\n\tz-index: 35;\n\theight: 33px;\n\toverflow: hidden;\n\tline-height: 19px;\n\ttransition: transform 200ms linear;\n\tpadding: 0 4px;\n\tbox-sizing: border-box;\n\ttransform: translateY(calc(-100% - 10px)); /* shadow (10px) */\n\tbox-shadow: 0 0 8px 2px var(--vscode-widget-shadow);\n\tcolor: var(--vscode-editorWidget-foreground);\n\tborder-left: 1px solid var(--vscode-widget-border);\n\tborder-right: 1px solid var(--vscode-widget-border);\n\tborder-bottom: 1px solid var(--vscode-widget-border);\n\tborder-bottom-left-radius: 4px;\n\tborder-bottom-right-radius: 4px;\n\tbackground-color: var(--vscode-editorWidget-background);\n}\n\n.monaco-workbench.reduce-motion .monaco-editor .find-widget {\n\ttransition: transform 0ms linear;\n}\n\n.monaco-editor .find-widget textarea {\n\tmargin: 0px;\n}\n\n.monaco-editor .find-widget.hiddenEditor {\n\tdisplay: none;\n}\n\n/* Find widget when replace is toggled on */\n.monaco-editor .find-widget.replaceToggled > .replace-part {\n\tdisplay: flex;\n}\n\n.monaco-editor .find-widget.visible {\n\ttransform: translateY(0);\n}\n\n/* This outline-color rule is used to override the outline color for synthetic-focus find input. */\n.monaco-editor .find-widget .monaco-inputbox.synthetic-focus {\n\toutline: 1px solid -webkit-focus-ring-color;\n\toutline-offset: -1px;\n\toutline-color: var(--vscode-focusBorder);\n}\n\n.monaco-editor .find-widget .monaco-inputbox .input {\n\tbackground-color: transparent;\n\tmin-height: 0;\n}\n\n.monaco-editor .find-widget .monaco-findInput .input {\n\tfont-size: 13px;\n}\n\n.monaco-editor .find-widget > .find-part,\n.monaco-editor .find-widget > .replace-part {\n\tmargin: 3px 25px 0 17px;\n\tfont-size: 12px;\n\tdisplay: flex;\n}\n\n.monaco-editor .find-widget > .find-part .monaco-inputbox,\n.monaco-editor .find-widget > .replace-part .monaco-inputbox {\n\tmin-height: 25px;\n}\n\n\n.monaco-editor .find-widget > .replace-part .monaco-inputbox > .ibwrapper > .mirror {\n\tpadding-right: 22px;\n}\n\n.monaco-editor .find-widget > .find-part .monaco-inputbox > .ibwrapper > .input,\n.monaco-editor .find-widget > .find-part .monaco-inputbox > .ibwrapper > .mirror,\n.monaco-editor .find-widget > .replace-part .monaco-inputbox > .ibwrapper > .input,\n.monaco-editor .find-widget > .replace-part .monaco-inputbox > .ibwrapper > .mirror {\n\tpadding-top: 2px;\n\tpadding-bottom: 2px;\n}\n\n.monaco-editor .find-widget > .find-part .find-actions {\n\theight: 25px;\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-editor .find-widget > .replace-part .replace-actions {\n\theight: 25px;\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-editor .find-widget .monaco-findInput {\n\tvertical-align: middle;\n\tdisplay: flex;\n\tflex:1;\n}\n\n.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element {\n\t/* Make sure textarea inherits the width correctly */\n\twidth: 100%;\n}\n\n.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical {\n\t/* Hide vertical scrollbar */\n\topacity: 0;\n}\n\n.monaco-editor .find-widget .matchesCount {\n\tdisplay: flex;\n\tflex: initial;\n\tmargin: 0 0 0 3px;\n\tpadding: 2px 0 0 2px;\n\theight: 25px;\n\tvertical-align: middle;\n\tbox-sizing: border-box;\n\ttext-align: center;\n\tline-height: 23px;\n}\n\n.monaco-editor .find-widget .button {\n\twidth: 16px;\n\theight: 16px;\n\tpadding: 3px;\n\tborder-radius: 5px;\n\tdisplay: flex;\n\tflex: initial;\n\tmargin-left: 3px;\n\tbackground-position: center center;\n\tbackground-repeat: no-repeat;\n\tcursor: pointer;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* find in selection button */\n.monaco-editor .find-widget .codicon-find-selection {\n\twidth: 22px;\n\theight: 22px;\n\tpadding: 3px;\n\tborder-radius: 5px;\n}\n\n.monaco-editor .find-widget .button.left {\n\tmargin-left: 0;\n\tmargin-right: 3px;\n}\n\n.monaco-editor .find-widget .button.wide {\n\twidth: auto;\n\tpadding: 1px 6px;\n\ttop: -1px;\n}\n\n.monaco-editor .find-widget .button.toggle {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 3px;\n\twidth: 18px;\n\theight: 100%;\n\tborder-radius: 0;\n\tbox-sizing: border-box;\n}\n\n.monaco-editor .find-widget .button.toggle.disabled {\n\tdisplay: none;\n}\n\n.monaco-editor .find-widget .disabled {\n\tcolor: var(--vscode-disabledForeground);\n\tcursor: default;\n}\n\n.monaco-editor .find-widget > .replace-part {\n\tdisplay: none;\n}\n\n.monaco-editor .find-widget > .replace-part > .monaco-findInput {\n\tposition: relative;\n\tdisplay: flex;\n\tvertical-align: middle;\n\tflex: auto;\n\tflex-grow: 0;\n\tflex-shrink: 0;\n}\n\n.monaco-editor .find-widget > .replace-part > .monaco-findInput > .controls {\n\tposition: absolute;\n\ttop: 3px;\n\tright: 2px;\n}\n\n/* REDUCED */\n.monaco-editor .find-widget.reduced-find-widget .matchesCount {\n\tdisplay:none;\n}\n\n/* NARROW (SMALLER THAN REDUCED) */\n.monaco-editor .find-widget.narrow-find-widget {\n\tmax-width: 257px !important;\n}\n\n/* COLLAPSED (SMALLER THAN NARROW) */\n.monaco-editor .find-widget.collapsed-find-widget {\n\tmax-width: 170px !important;\n}\n\n.monaco-editor .find-widget.collapsed-find-widget .button.previous,\n.monaco-editor .find-widget.collapsed-find-widget .button.next,\n.monaco-editor .find-widget.collapsed-find-widget .button.replace,\n.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,\n.monaco-editor .find-widget.collapsed-find-widget > .find-part .monaco-findInput .controls {\n\tdisplay:none;\n}\n\n.monaco-editor .find-widget.no-results .matchesCount {\n\tcolor: var(--vscode-errorForeground);\n}\n\n.monaco-editor .findMatch {\n\tanimation-duration: 0;\n\tanimation-name: inherit !important;\n\tbackground-color: var(--vscode-editor-findMatchHighlightBackground);\n}\n\n.monaco-editor .currentFindMatch {\n\tbackground-color: var(--vscode-editor-findMatchBackground);\n\tborder: 2px solid var(--vscode-editor-findMatchBorder);\n\tpadding: 1px;\n\tbox-sizing: border-box;\n}\n\n.monaco-editor .findScope {\n\tbackground-color: var(--vscode-editor-findRangeHighlightBackground);\n}\n\n.monaco-editor .find-widget .monaco-sash {\n\tleft: 0 !important;\n\tbackground-color: var(--vscode-editorWidget-resizeBorder, var(--vscode-editorWidget-border));\n}\n\n.monaco-editor.hc-black .find-widget .button:before {\n\tposition: relative;\n\ttop: 1px;\n\tleft: 2px;\n}\n\n/* Action bars */\n.monaco-editor .find-widget .button:not(.disabled):hover,\n.monaco-editor .find-widget .codicon-find-selection:hover {\n\tbackground-color: var(--vscode-toolbar-hoverBackground) !important;\n}\n\n.monaco-editor.findMatch {\n\tbackground-color: var(--vscode-editor-findMatchHighlightBackground);\n}\n\n.monaco-editor.currentFindMatch {\n\tbackground-color: var(--vscode-editor-findMatchBackground);\n}\n\n.monaco-editor.findScope {\n\tbackground-color: var(--vscode-editor-findRangeHighlightBackground);\n}\n\n.monaco-editor.findMatch {\n\tbackground-color: var(--vscode-editorWidget-background);\n}\n\n/* Close button position. */\n.monaco-editor .find-widget > .button.codicon-widget-close {\n\tposition: absolute;\n\ttop: 5px;\n\tright: 4px;\n}\n",""]);const s=o},55405:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,'/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n.monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,\n.monaco-editor .margin-view-overlays .codicon-folding-manual-expanded,\n.monaco-editor .margin-view-overlays .codicon-folding-expanded,\n.monaco-editor .margin-view-overlays .codicon-folding-collapsed {\n\tcursor: pointer;\n\topacity: 0;\n\ttransition: opacity 0.5s;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tfont-size: 140%;\n\tmargin-left: 2px;\n}\n\n.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,\n.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-expanded,\n.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-expanded,\n.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-collapsed {\n\ttransition: initial;\n}\n\n.monaco-editor .margin-view-overlays:hover .codicon,\n.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,\n.monaco-editor .margin-view-overlays .codicon.codicon-folding-manual-collapsed,\n.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons {\n\topacity: 1;\n}\n\n.monaco-editor .inline-folded:after {\n\tcolor: var(--vscode-editor-foldPlaceholderForeground);\n\tmargin: 0.1em 0.2em 0 0.2em;\n\tcontent: "\\22EF"; /* ellipses unicode character */\n\tdisplay: inline;\n\tline-height: 1em;\n\tcursor: pointer;\n}\n\n.monaco-editor .folded-background {\n\tbackground-color: var(--vscode-editor-foldBackground);\n}\n\n.monaco-editor .cldr.codicon.codicon-folding-expanded,\n.monaco-editor .cldr.codicon.codicon-folding-collapsed,\n.monaco-editor .cldr.codicon.codicon-folding-manual-expanded,\n.monaco-editor .cldr.codicon.codicon-folding-manual-collapsed {\n\tcolor: var(--vscode-editorGutter-foldingControlForeground) !important;\n}\n',""]);const s=o},81788:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* marker zone */\n\n.monaco-editor .peekview-widget .head .peekview-title .severity-icon {\n\tdisplay: inline-block;\n\tvertical-align: text-top;\n\tmargin-right: 4px;\n}\n\n.monaco-editor .marker-widget {\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n}\n\n.monaco-editor .marker-widget > .stale {\n\topacity: 0.6;\n\tfont-style: italic;\n}\n\n.monaco-editor .marker-widget .title {\n\tdisplay: inline-block;\n\tpadding-right: 5px;\n}\n\n.monaco-editor .marker-widget .descriptioncontainer {\n\tposition: absolute;\n\twhite-space: pre;\n\tuser-select: text;\n\t-webkit-user-select: text;\n\tpadding: 8px 12px 0 20px;\n}\n\n.monaco-editor .marker-widget .descriptioncontainer .message {\n\tdisplay: flex;\n\tflex-direction: column;\n}\n\n.monaco-editor .marker-widget .descriptioncontainer .message .details {\n\tpadding-left: 6px;\n}\n\n.monaco-editor .marker-widget .descriptioncontainer .message .source,\n.monaco-editor .marker-widget .descriptioncontainer .message span.code {\n\topacity: 0.6;\n}\n\n.monaco-editor .marker-widget .descriptioncontainer .message a.code-link {\n\topacity: 0.6;\n\tcolor: inherit;\n}\n\n.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before {\n\tcontent: '(';\n}\n\n.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after {\n\tcontent: ')';\n}\n\n.monaco-editor .marker-widget .descriptioncontainer .message a.code-link > span {\n\ttext-decoration: underline;\n\t/** Hack to force underline to show **/\n\tborder-bottom: 1px solid transparent;\n\ttext-underline-position: under;\n\tcolor: var(--vscode-textLink-activeForeground);\n}\n\n.monaco-editor .marker-widget .descriptioncontainer .filename {\n\tcursor: pointer;\n\tcolor: var(--vscode-textLink-activeForeground);\n}\n",""]);const s=o},31503:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .goto-definition-link {\n\ttext-decoration: underline;\n\tcursor: pointer;\n\tcolor: var(--vscode-editorLink-activeForeground) !important;\n}\n",""]);const s=o},26378:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* -- zone widget */\n.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget {\n\tborder-top-width: 1px;\n\tborder-bottom-width: 1px;\n}\n\n.monaco-editor .reference-zone-widget .inline {\n\tdisplay: inline-block;\n\tvertical-align: top;\n}\n\n.monaco-editor .reference-zone-widget .messages {\n\theight: 100%;\n\twidth: 100%;\n\ttext-align: center;\n\tpadding: 3em 0;\n}\n\n.monaco-editor .reference-zone-widget .ref-tree {\n\tline-height: 23px;\n\tbackground-color: var(--vscode-peekViewResult-background);\n\tcolor: var(--vscode-peekViewResult-lineForeground);\n}\n\n.monaco-editor .reference-zone-widget .ref-tree .reference {\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n}\n\n.monaco-editor .reference-zone-widget .ref-tree .reference-file {\n\tdisplay: inline-flex;\n\twidth: 100%;\n\theight: 100%;\n\tcolor: var(--vscode-peekViewResult-fileForeground);\n}\n\n.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .selected .reference-file {\n\tcolor: inherit !important;\n}\n\n.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) {\n\tbackground-color: var(--vscode-peekViewResult-selectionBackground);\n\tcolor: var(--vscode-peekViewResult-selectionForeground) !important;\n}\n\n.monaco-editor .reference-zone-widget .ref-tree .reference-file .count {\n\tmargin-right: 12px;\n\tmargin-left: auto;\n}\n\n.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight {\n\tbackground-color: var(--vscode-peekViewResult-matchHighlightBackground);\n}\n\n.monaco-editor .reference-zone-widget .preview .reference-decoration {\n\tbackground-color: var(--vscode-peekViewEditor-matchHighlightBackground);\n\tborder: 2px solid var(--vscode-peekViewEditor-matchHighlightBorder);\n\tbox-sizing: border-box;\n}\n\n.monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,\n.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input {\n\tbackground-color: var(--vscode-peekViewEditor-background);\n}\n\n.monaco-editor .reference-zone-widget .preview .monaco-editor .margin {\n\tbackground-color: var(--vscode-peekViewEditorGutter-background);\n}\n\n/* High Contrast Theming */\n\n.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file,\n.monaco-editor.hc-light .reference-zone-widget .ref-tree .reference-file {\n\tfont-weight: bold;\n}\n\n.monaco-editor.hc-black .reference-zone-widget .ref-tree .referenceMatch .highlight,\n.monaco-editor.hc-light .reference-zone-widget .ref-tree .referenceMatch .highlight {\n\tborder: 1px dotted var(--vscode-contrastActiveBorder, transparent);\n\tbox-sizing: border-box;\n}\n",""]);const s=o},30245:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .hoverHighlight {\n\tbackground-color: var(--vscode-editor-hoverHighlightBackground);\n}\n\n.monaco-editor .monaco-hover-content {\n\tpadding-right: 2px;\n\tpadding-bottom: 2px;\n\tbox-sizing: border-box;\n}\n\n.monaco-editor .monaco-hover {\n\tcolor: var(--vscode-editorHoverWidget-foreground);\n\tbackground-color: var(--vscode-editorHoverWidget-background);\n\tborder: 1px solid var(--vscode-editorHoverWidget-border);\n\tborder-radius: 3px;\n}\n\n.monaco-editor .monaco-hover a {\n\tcolor: var(--vscode-textLink-foreground);\n}\n\n.monaco-editor .monaco-hover a:hover {\n\tcolor: var(--vscode-textLink-activeForeground);\n}\n\n.monaco-editor .monaco-hover .hover-row {\n\tdisplay: flex;\n}\n\n.monaco-editor .monaco-hover .hover-row .hover-row-contents {\n\tmin-width:0;\n\tdisplay: flex;\n\tflex-direction: column;\n}\n\n.monaco-editor .monaco-hover .hover-row .verbosity-actions {\n\tdisplay: flex;\n\tflex-direction: column;\n\tpadding-left: 5px;\n\tpadding-right: 5px;\n\tjustify-content: end;\n\tborder-right: 1px solid var(--vscode-editorHoverWidget-border);\n}\n\n.monaco-editor .monaco-hover .hover-row .verbosity-actions .codicon {\n\tcursor: pointer;\n\tfont-size: 11px;\n}\n\n.monaco-editor .monaco-hover .hover-row .verbosity-actions .codicon.enabled {\n\tcolor: var(--vscode-textLink-foreground);\n}\n\n.monaco-editor .monaco-hover .hover-row .verbosity-actions .codicon.disabled {\n\topacity: 0.6;\n}\n\n.monaco-editor .monaco-hover .hover-row .actions {\n\tbackground-color: var(--vscode-editorHoverWidget-statusBarBackground);\n}\n\n.monaco-editor .monaco-hover code {\n\tbackground-color: var(--vscode-textCodeBlock-background);\n}\n\n\n",""]);const s=o},86437:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n\n.monaco-editor.vs .valueSetReplacement {\n\toutline: solid 2px var(--vscode-editorBracketMatch-border);\n}\n",""]);const s=o},58169:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .suggest-preview-additional-widget {\n\twhite-space: nowrap;\n}\n\n.monaco-editor .suggest-preview-additional-widget .content-spacer {\n\tcolor: transparent;\n\twhite-space: pre;\n}\n\n.monaco-editor .suggest-preview-additional-widget .button {\n\tdisplay: inline-block;\n\tcursor: pointer;\n\ttext-decoration: underline;\n\ttext-underline-position: under;\n}\n\n.monaco-editor .ghost-text-hidden {\n\topacity: 0;\n\tfont-size: 0;\n}\n\n.monaco-editor .ghost-text-decoration, .monaco-editor .suggest-preview-text .ghost-text {\n\tfont-style: italic;\n}\n\n.monaco-editor .inline-completion-text-to-replace {\n\ttext-decoration: underline;\n\ttext-underline-position: under;\n}\n\n.monaco-editor .ghost-text-decoration,\n.monaco-editor .ghost-text-decoration-preview,\n.monaco-editor .suggest-preview-text .ghost-text {\n\tcolor: var(--vscode-editorGhostText-foreground) !important;\n\tbackground-color: var(--vscode-editorGhostText-background);\n\tborder: 1px solid var(--vscode-editorGhostText-border);\n}\n",""]);const s=o},85415:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .inlineSuggestionsHints.withBorder {\n\tz-index: 39;\n\tcolor: var(--vscode-editorHoverWidget-foreground);\n\tbackground-color: var(--vscode-editorHoverWidget-background);\n\tborder: 1px solid var(--vscode-editorHoverWidget-border);\n}\n\n.monaco-editor .inlineSuggestionsHints a {\n\tcolor: var(--vscode-foreground);\n}\n\n.monaco-editor .inlineSuggestionsHints a:hover {\n\tcolor: var(--vscode-foreground);\n}\n\n.monaco-editor .inlineSuggestionsHints .keybinding {\n\tdisplay: flex;\n\tmargin-left: 4px;\n\topacity: 0.6;\n}\n\n.monaco-editor .inlineSuggestionsHints .keybinding .monaco-keybinding-key {\n\tfont-size: 8px;\n\tpadding: 2px 3px;\n}\n\n.monaco-editor .inlineSuggestionsHints .availableSuggestionCount a {\n\tdisplay: flex;\n\tmin-width: 19px;\n\tjustify-content: center;\n}\n\n.monaco-editor .inlineSuggestionStatusBarItemLabel {\n\tmargin-right: 2px;\n}\n",""]);const s=o},61935:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .inline-edit-remove {\n\tbackground-color: var(--vscode-editorGhostText-background);\n\tfont-style: italic;\n\ttext-decoration: line-through;\n}\n\n.monaco-editor .inline-edit-remove.backgroundColoring {\n\tbackground-color: var(--vscode-diffEditor-removedLineBackground);\n}\n\n.monaco-editor .inline-edit-hidden {\n\topacity: 0;\n\tfont-size: 0;\n}\n\n.monaco-editor .inline-edit-decoration, .monaco-editor .suggest-preview-text .inline-edit {\n\tfont-style: italic;\n}\n\n.monaco-editor .inline-completion-text-to-replace {\n\ttext-decoration: underline;\n\ttext-underline-position: under;\n}\n\n.monaco-editor .inline-edit-decoration,\n.monaco-editor .inline-edit-decoration-preview,\n.monaco-editor .suggest-preview-text .inline-edit {\n\tcolor: var(--vscode-editorGhostText-foreground) !important;\n\tbackground-color: var(--vscode-editorGhostText-background);\n\tborder: 1px solid var(--vscode-editorGhostText-border);\n}\n\n\n",""]);const s=o},55269:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .inlineEditHints.withBorder {\n\tz-index: 39;\n\tcolor: var(--vscode-editorHoverWidget-foreground);\n\tbackground-color: var(--vscode-editorHoverWidget-background);\n\tborder: 1px solid var(--vscode-editorHoverWidget-border);\n}\n\n.monaco-editor .inlineEditHints a {\n\tcolor: var(--vscode-foreground);\n}\n\n.monaco-editor .inlineEditHints a:hover {\n\tcolor: var(--vscode-foreground);\n}\n\n.monaco-editor .inlineEditHints .keybinding {\n\tdisplay: flex;\n\tmargin-left: 4px;\n\topacity: 0.6;\n}\n\n.monaco-editor .inlineEditHints .keybinding .monaco-keybinding-key {\n\tfont-size: 8px;\n\tpadding: 2px 3px;\n}\n\n.monaco-editor .inlineEditStatusBarItemLabel {\n\tmargin-right: 2px;\n}\n",""]);const s=o},1473:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor div.inline-edits-widget {\n\t--widget-color: var(--vscode-notifications-background);\n\n\t.promptEditor .monaco-editor {\n\t\t--vscode-editor-placeholder-foreground: var(--vscode-editorGhostText-foreground);\n\t}\n\n\t.toolbar, .promptEditor {\n\t\topacity: 0;\n\t\ttransition: opacity 0.2s ease-in-out;\n\t}\n\t&:hover, &.focused {\n\t\t.toolbar, .promptEditor {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t.preview .monaco-editor {\n\n\t\t.mtk1 {\n\t\t\t/*color: rgba(215, 215, 215, 0.452);*/\n\t\t\tcolor: var(--vscode-editorGhostText-foreground);\n\t\t}\n\t\t.view-overlays .current-line-exact {\n\t\t\tborder: none;\n\t\t}\n\n\t\t.current-line-margin {\n\t\t\tborder: none;\n\t\t}\n\n\t\t--vscode-editor-background: var(--widget-color);\n\t}\n\n\tsvg {\n\t\t.gradient-start {\n\t\t\tstop-color: var(--vscode-editor-background);\n\t\t}\n\n\t\t.gradient-stop {\n\t\t\tstop-color: var(--widget-color);\n\t\t}\n\t}\n}\n",""]);const s=o},8129:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.inline-editor-progress-decoration {\n\tdisplay: inline-block;\n\twidth: 1em;\n\theight: 1em;\n}\n\n.inline-progress-widget {\n\tdisplay: flex !important;\n\tjustify-content: center;\n\talign-items: center;\n}\n\n.inline-progress-widget .icon {\n\tfont-size: 80% !important;\n}\n\n.inline-progress-widget:hover .icon {\n\tfont-size: 90% !important;\n\tanimation: none;\n}\n\n.inline-progress-widget:hover .icon::before {\n\tcontent: var(--vscode-icon-x-content);\n\tfont-family: var(--vscode-icon-x-font-family);\n}\n",""]);const s=o},13293:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .linked-editing-decoration {\n\tbackground-color: var(--vscode-editor-linkedEditingBackground);\n\n\t/* Ensure decoration is visible even if range is empty */\n\tmin-width: 1px;\n}\n",""]);const s=o},1177:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n.monaco-editor .detected-link,\n.monaco-editor .detected-link-active {\n\ttext-decoration: underline;\n\ttext-underline-position: under;\n}\n\n.monaco-editor .detected-link-active {\n\tcursor: pointer;\n\tcolor: var(--vscode-editorLink-activeForeground) !important;\n}\n",""]);const s=o},7201:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .monaco-editor-overlaymessage {\n\tpadding-bottom: 8px;\n\tz-index: 10000;\n}\n\n.monaco-editor .monaco-editor-overlaymessage.below {\n\tpadding-bottom: 0;\n\tpadding-top: 8px;\n\tz-index: 10000;\n}\n\n@keyframes fadeIn {\n\tfrom { opacity: 0; }\n\tto { opacity: 1; }\n}\n.monaco-editor .monaco-editor-overlaymessage.fadeIn {\n\tanimation: fadeIn 150ms ease-out;\n}\n\n@keyframes fadeOut {\n\tfrom { opacity: 1; }\n\tto { opacity: 0; }\n}\n.monaco-editor .monaco-editor-overlaymessage.fadeOut {\n\tanimation: fadeOut 100ms ease-out;\n}\n\n.monaco-editor .monaco-editor-overlaymessage .message {\n\tpadding: 2px 4px;\n\tcolor: var(--vscode-editorHoverWidget-foreground);\n\tbackground-color: var(--vscode-editorHoverWidget-background);\n\tborder: 1px solid var(--vscode-inputValidation-infoBorder);\n\tborder-radius: 3px;\n}\n\n.monaco-editor .monaco-editor-overlaymessage .message p {\n\tmargin-block: 0px;\n}\n\n.monaco-editor .monaco-editor-overlaymessage .message a {\n\tcolor: var(--vscode-textLink-foreground);\n}\n\n.monaco-editor .monaco-editor-overlaymessage .message a:hover {\n\tcolor: var(--vscode-textLink-activeForeground);\n}\n\n.monaco-editor.hc-black .monaco-editor-overlaymessage .message,\n.monaco-editor.hc-light .monaco-editor-overlaymessage .message {\n\tborder-width: 2px;\n}\n\n.monaco-editor .monaco-editor-overlaymessage .anchor {\n\twidth: 0 !important;\n\theight: 0 !important;\n\tborder-color: transparent;\n\tborder-style: solid;\n\tz-index: 1000;\n\tborder-width: 8px;\n\tposition: absolute;\n\tleft: 2px;\n}\n\n.monaco-editor .monaco-editor-overlaymessage .anchor.top {\n\tborder-bottom-color: var(--vscode-inputValidation-infoBorder);\n}\n\n.monaco-editor .monaco-editor-overlaymessage .anchor.below {\n\tborder-top-color: var(--vscode-inputValidation-infoBorder);\n}\n\n.monaco-editor .monaco-editor-overlaymessage:not(.below) .anchor.top,\n.monaco-editor .monaco-editor-overlaymessage.below .anchor.below {\n\tdisplay: none;\n}\n\n.monaco-editor .monaco-editor-overlaymessage.below .anchor.top {\n\tdisplay: inherit;\n\ttop: -8px;\n}\n",""]);const s=o},20991:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,'/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .parameter-hints-widget {\n\t/* Must be higher than the sash\'s z-index and terminal canvases but lower than the suggest widget */\n\tz-index: 39;\n\tdisplay: flex;\n\tflex-direction: column;\n\tline-height: 1.5em;\n\tcursor: default;\n\tcolor: var(--vscode-editorHoverWidget-foreground);\n\tbackground-color: var(--vscode-editorHoverWidget-background);\n\tborder: 1px solid var(--vscode-editorHoverWidget-border);\n}\n\n.hc-black .monaco-editor .parameter-hints-widget,\n.hc-light .monaco-editor .parameter-hints-widget {\n\tborder-width: 2px;\n}\n\n.monaco-editor .parameter-hints-widget > .phwrapper {\n\tmax-width: 440px;\n\tdisplay: flex;\n\tflex-direction: row;\n}\n\n.monaco-editor .parameter-hints-widget.multiple {\n\tmin-height: 3.3em;\n\tpadding: 0;\n}\n\n.monaco-editor .parameter-hints-widget.multiple .body::before {\n\tcontent: "";\n\tdisplay: block;\n\theight: 100%;\n\tposition: absolute;\n\topacity: 0.5;\n\tborder-left: 1px solid var(--vscode-editorHoverWidget-border);\n}\n\n.monaco-editor .parameter-hints-widget p,\n.monaco-editor .parameter-hints-widget ul {\n\tmargin: 8px 0;\n}\n\n.monaco-editor .parameter-hints-widget .monaco-scrollable-element,\n.monaco-editor .parameter-hints-widget .body {\n\tdisplay: flex;\n\tflex: 1;\n\tflex-direction: column;\n\tmin-height: 100%;\n}\n\n.monaco-editor .parameter-hints-widget .signature {\n\tpadding: 4px 5px;\n\tposition: relative;\n}\n\n.monaco-editor .parameter-hints-widget .signature.has-docs::after {\n\tcontent: "";\n\tdisplay: block;\n\tposition: absolute;\n\tleft: 0;\n\twidth: 100%;\n\tpadding-top: 4px;\n\topacity: 0.5;\n\tborder-bottom: 1px solid var(--vscode-editorHoverWidget-border);\n}\n\n.monaco-editor .parameter-hints-widget .docs {\n\tpadding: 0 10px 0 5px;\n\twhite-space: pre-wrap;\n}\n\n.monaco-editor .parameter-hints-widget .docs.empty {\n\tdisplay: none;\n}\n\n.monaco-editor .parameter-hints-widget .docs a {\n\tcolor: var(--vscode-textLink-foreground);\n}\n\n.monaco-editor .parameter-hints-widget .docs a:hover {\n\tcolor: var(--vscode-textLink-activeForeground);\n\tcursor: pointer;\n}\n\n.monaco-editor .parameter-hints-widget .docs .markdown-docs {\n\twhite-space: initial;\n}\n\n.monaco-editor .parameter-hints-widget .docs code {\n\tfont-family: var(--monaco-monospace-font);\n\tborder-radius: 3px;\n\tpadding: 0 0.4em;\n\tbackground-color: var(--vscode-textCodeBlock-background);\n}\n\n.monaco-editor .parameter-hints-widget .docs .monaco-tokenized-source,\n.monaco-editor .parameter-hints-widget .docs .code {\n\twhite-space: pre-wrap;\n}\n\n.monaco-editor .parameter-hints-widget .controls {\n\tdisplay: none;\n\tflex-direction: column;\n\talign-items: center;\n\tmin-width: 22px;\n\tjustify-content: flex-end;\n}\n\n.monaco-editor .parameter-hints-widget.multiple .controls {\n\tdisplay: flex;\n\tpadding: 0 2px;\n}\n\n.monaco-editor .parameter-hints-widget.multiple .button {\n\twidth: 16px;\n\theight: 16px;\n\tbackground-repeat: no-repeat;\n\tcursor: pointer;\n}\n\n.monaco-editor .parameter-hints-widget .button.previous {\n\tbottom: 24px;\n}\n\n.monaco-editor .parameter-hints-widget .overloads {\n\ttext-align: center;\n\theight: 12px;\n\tline-height: 12px;\n\tfont-family: var(--monaco-monospace-font);\n}\n\n.monaco-editor .parameter-hints-widget .signature .parameter.active {\n\tcolor: var(--vscode-editorHoverWidget-highlightForeground);\n\tfont-weight: bold;\n}\n\n.monaco-editor .parameter-hints-widget .documentation-parameter > .parameter {\n\tfont-weight: bold;\n\tmargin-right: 0.5em;\n}\n',""]);const s=o},69734:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .peekview-widget .head {\n\tbox-sizing: border-box;\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tflex-wrap: nowrap;\n}\n\n.monaco-editor .peekview-widget .head .peekview-title {\n\tdisplay: flex;\n\talign-items: baseline;\n\tfont-size: 13px;\n\tmargin-left: 20px;\n\tmin-width: 0;\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n}\n\n.monaco-editor .peekview-widget .head .peekview-title.clickable {\n\tcursor: pointer;\n}\n\n.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty) {\n\tfont-size: 0.9em;\n\tmargin-left: 0.5em;\n}\n\n.monaco-editor .peekview-widget .head .peekview-title .meta {\n\twhite-space: nowrap;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n}\n\n.monaco-editor .peekview-widget .head .peekview-title .dirname {\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n}\n\n.monaco-editor .peekview-widget .head .peekview-title .filename {\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n}\n\n.monaco-editor .peekview-widget .head .peekview-title .meta:not(:empty)::before {\n\tcontent: '-';\n\tpadding: 0 0.3em;\n}\n\n.monaco-editor .peekview-widget .head .peekview-actions {\n\tflex: 1;\n\ttext-align: right;\n\tpadding-right: 2px;\n}\n\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar {\n\tdisplay: inline-block;\n}\n\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar,\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar > .actions-container {\n\theight: 100%;\n}\n\n.monaco-editor .peekview-widget > .body {\n\tborder-top: 1px solid;\n\tposition: relative;\n}\n\n.monaco-editor .peekview-widget .head .peekview-title .codicon {\n\tmargin-right: 4px;\n\talign-self: center;\n}\n\n.monaco-editor .peekview-widget .monaco-list .monaco-list-row.focused .codicon {\n\tcolor: inherit !important;\n}\n",""]);const s=o},86493:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor {\n\t--vscode-editor-placeholder-foreground: var(--vscode-editorGhostText-foreground);\n\n\t.editorPlaceholder {\n\t\ttop: 0px;\n\t\tposition: absolute;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\ttext-wrap: nowrap;\n\t\tpointer-events: none;\n\n\t\tcolor: var(--vscode-editor-placeholder-foreground);\n\t}\n}\n",""]);const s=o},38033:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .rename-box {\n\tz-index: 100;\n\tcolor: inherit;\n\tborder-radius: 4px;\n}\n\n.monaco-editor .rename-box.preview {\n\tpadding: 4px 4px 0 4px;\n}\n\n.monaco-editor .rename-box .rename-input-with-button {\n\tpadding: 3px;\n\tborder-radius: 2px;\n\twidth: calc(100% - 8px); /* 4px padding on each side */\n}\n\n.monaco-editor .rename-box .rename-input {\n\twidth: calc(100% - 8px); /* 4px padding on each side */\n\tpadding: 0;\n}\n\n.monaco-editor .rename-box .rename-input:focus {\n\toutline: none;\n}\n\n.monaco-editor .rename-box .rename-suggestions-button {\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: 3px;\n\tbackground-color: transparent;\n\tborder: none;\n\tborder-radius: 5px;\n\tcursor: pointer;\n}\n\n.monaco-editor .rename-box .rename-suggestions-button:hover {\n\tbackground-color: var(--vscode-toolbar-hoverBackground)\n}\n\n.monaco-editor .rename-box .rename-candidate-list-container .monaco-list-row {\n\tborder-radius: 2px;\n}\n\n.monaco-editor .rename-box .rename-label {\n\tdisplay: none;\n\topacity: .8;\n}\n\n.monaco-editor .rename-box.preview .rename-label {\n\tdisplay: inherit;\n}\n",""]);const s=o},90069:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .snippet-placeholder {\n\tmin-width: 2px;\n\toutline-style: solid;\n\toutline-width: 1px;\n\tbackground-color: var(--vscode-editor-snippetTabstopHighlightBackground, transparent);\n\toutline-color: var(--vscode-editor-snippetTabstopHighlightBorder, transparent);\n}\n\n.monaco-editor .finish-snippet-placeholder {\n\toutline-style: solid;\n\toutline-width: 1px;\n\tbackground-color: var(--vscode-editor-snippetFinalTabstopHighlightBackground, transparent);\n\toutline-color: var(--vscode-editor-snippetFinalTabstopHighlightBorder, transparent);\n}\n",""]);const s=o},17689:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .sticky-widget {\n\toverflow: hidden;\n}\n\n.monaco-editor .sticky-widget-line-numbers {\n\tfloat: left;\n\tbackground-color: inherit;\n}\n\n.monaco-editor .sticky-widget-lines-scrollable {\n\tdisplay: inline-block;\n\tposition: absolute;\n\toverflow: hidden;\n\twidth: var(--vscode-editorStickyScroll-scrollableWidth);\n\tbackground-color: inherit;\n}\n\n.monaco-editor .sticky-widget-lines {\n\tposition: absolute;\n\tbackground-color: inherit;\n}\n\n.monaco-editor .sticky-line-number, .monaco-editor .sticky-line-content {\n\tcolor: var(--vscode-editorLineNumber-foreground);\n\twhite-space: nowrap;\n\tdisplay: inline-block;\n\tposition: absolute;\n\tbackground-color: inherit;\n}\n\n.monaco-editor .sticky-line-number .codicon-folding-expanded,\n.monaco-editor .sticky-line-number .codicon-folding-collapsed {\n\tfloat: right;\n\ttransition: var(--vscode-editorStickyScroll-foldingOpacityTransition);\n}\n\n.monaco-editor .sticky-line-content {\n\twidth: var(--vscode-editorStickyScroll-scrollableWidth);\n\tbackground-color: inherit;\n\twhite-space: nowrap;\n}\n\n.monaco-editor .sticky-line-number-inner {\n\tdisplay: inline-block;\n\ttext-align: right;\n}\n\n.monaco-editor .sticky-widget {\n\tborder-bottom: 1px solid var(--vscode-editorStickyScroll-border);\n}\n\n.monaco-editor .sticky-line-content:hover {\n\tbackground-color: var(--vscode-editorStickyScrollHover-background);\n\tcursor: pointer;\n}\n\n.monaco-editor .sticky-widget {\n\twidth: 100%;\n\tbox-shadow: var(--vscode-editorStickyScroll-shadow) 0 4px 2px -2px;\n\tz-index: 4;\n\tbackground-color: var(--vscode-editorStickyScroll-background);\n\tright: initial !important;\n}\n\n.monaco-editor .sticky-widget.peek {\n\tbackground-color: var(--vscode-peekViewEditorStickyScroll-background);\n}\n",""]);const s=o},87160:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* Suggest widget*/\n\n.monaco-editor .suggest-widget {\n\twidth: 430px;\n\tz-index: 40;\n\tdisplay: flex;\n\tflex-direction: column;\n\tborder-radius: 3px;\n}\n\n.monaco-editor .suggest-widget.message {\n\tflex-direction: row;\n\talign-items: center;\n}\n\n.monaco-editor .suggest-widget,\n.monaco-editor .suggest-details {\n\tflex: 0 1 auto;\n\twidth: 100%;\n\tborder-style: solid;\n\tborder-width: 1px;\n\tborder-color: var(--vscode-editorSuggestWidget-border);\n\tbackground-color: var(--vscode-editorSuggestWidget-background);\n}\n\n.monaco-editor.hc-black .suggest-widget,\n.monaco-editor.hc-black .suggest-details,\n.monaco-editor.hc-light .suggest-widget,\n.monaco-editor.hc-light .suggest-details {\n\tborder-width: 2px;\n}\n\n/* Styles for status bar part */\n\n\n.monaco-editor .suggest-widget .suggest-status-bar {\n\tbox-sizing: border-box;\n\tdisplay: none;\n\tflex-flow: row nowrap;\n\tjustify-content: space-between;\n\twidth: 100%;\n\tfont-size: 80%;\n\tpadding: 0 4px 0 4px;\n\tborder-top: 1px solid var(--vscode-editorSuggestWidget-border);\n\toverflow: hidden;\n}\n\n.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar {\n\tdisplay: flex;\n}\n\n.monaco-editor .suggest-widget .suggest-status-bar .left {\n\tpadding-right: 8px;\n}\n\n.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-label {\n\tcolor: var(--vscode-editorSuggestWidgetStatus-foreground);\n}\n\n.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label {\n\tmargin-right: 0;\n}\n\n.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label::after {\n\tcontent: ', ';\n\tmargin-right: 0.3em;\n}\n\n.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row > .contents > .main > .right > .readMore,\n.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label > .contents > .main > .right > .readMore {\n\tdisplay: none;\n}\n\n.monaco-editor .suggest-widget.with-status-bar:not(.docs-side) .monaco-list .monaco-list-row:hover > .contents > .main > .right.can-expand-details > .details-label {\n\twidth: 100%;\n}\n\n/* Styles for Message element for when widget is loading or is empty */\n\n.monaco-editor .suggest-widget > .message {\n\tpadding-left: 22px;\n}\n\n/** Styles for the list element **/\n\n.monaco-editor .suggest-widget > .tree {\n\theight: 100%;\n\twidth: 100%;\n}\n\n.monaco-editor .suggest-widget .monaco-list {\n\tuser-select: none;\n\t-webkit-user-select: none;\n}\n\n/** Styles for each row in the list element **/\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row {\n\tdisplay: flex;\n\t-mox-box-sizing: border-box;\n\tbox-sizing: border-box;\n\tpadding-right: 10px;\n\tbackground-repeat: no-repeat;\n\tbackground-position: 2px 2px;\n\twhite-space: nowrap;\n\tcursor: pointer;\n\ttouch-action: none;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused {\n\tcolor: var(--vscode-editorSuggestWidget-selectedForeground);\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused .codicon {\n\tcolor: var(--vscode-editorSuggestWidget-selectedIconForeground);\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents {\n\tflex: 1;\n\theight: 100%;\n\toverflow: hidden;\n\tpadding-left: 2px;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main {\n\tdisplay: flex;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: pre;\n\tjustify-content: space-between;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left,\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right {\n\tdisplay: flex;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.focused) > .contents > .main .monaco-icon-label {\n\tcolor: var(--vscode-editorSuggestWidget-foreground);\n}\n\n.monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight {\n\tfont-weight: bold;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main .monaco-highlighted-label .highlight {\n\tcolor: var(--vscode-editorSuggestWidget-highlightForeground);\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused > .contents > .main .monaco-highlighted-label .highlight {\n\tcolor: var(--vscode-editorSuggestWidget-focusHighlightForeground);\n}\n\n/** ReadMore Icon styles **/\n\n.monaco-editor .suggest-details > .monaco-scrollable-element > .body > .header > .codicon-close,\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .readMore::before {\n\tcolor: inherit;\n\topacity: 1;\n\tfont-size: 14px;\n\tcursor: pointer;\n}\n\n.monaco-editor .suggest-details > .monaco-scrollable-element > .body > .header > .codicon-close {\n\tposition: absolute;\n\ttop: 6px;\n\tright: 2px;\n}\n\n.monaco-editor .suggest-details > .monaco-scrollable-element > .body > .header > .codicon-close:hover,\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .readMore:hover {\n\topacity: 1;\n}\n\n/** signature, qualifier, type/details opacity **/\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .details-label {\n\topacity: 0.7;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .signature-label {\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\topacity: 0.6;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .qualifier-label {\n\tmargin-left: 12px;\n\topacity: 0.4;\n\tfont-size: 85%;\n\tline-height: initial;\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n\talign-self: center;\n}\n\n/** Type Info and icon next to the label in the focused completion item **/\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .details-label {\n\tfont-size: 85%;\n\tmargin-left: 1.1em;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .details-label > .monaco-tokenized-source {\n\tdisplay: inline;\n}\n\n/** Details: if using CompletionItem#details, show on focus **/\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .details-label {\n\tdisplay: none;\n}\n\n.monaco-editor .suggest-widget:not(.shows-details) .monaco-list .monaco-list-row.focused > .contents > .main > .right > .details-label {\n\tdisplay: inline;\n}\n\n/** Details: if using CompletionItemLabel#details, always show **/\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label) > .contents > .main > .right > .details-label,\n.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label) > .contents > .main > .right > .details-label {\n\tdisplay: inline;\n}\n\n/** Ellipsis on hover **/\n\n.monaco-editor .suggest-widget:not(.docs-side) .monaco-list .monaco-list-row.focused:hover > .contents > .main > .right.can-expand-details > .details-label {\n\twidth: calc(100% - 26px);\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left {\n\tflex-shrink: 1;\n\tflex-grow: 1;\n\toverflow: hidden;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .left > .monaco-icon-label {\n\tflex-shrink: 0;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label) > .contents > .main > .left > .monaco-icon-label {\n\tmax-width: 100%;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label > .contents > .main > .left > .monaco-icon-label {\n\tflex-shrink: 1;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right {\n\toverflow: hidden;\n\tflex-shrink: 4;\n\tmax-width: 70%;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row > .contents > .main > .right > .readMore {\n\tdisplay: inline-block;\n\tposition: absolute;\n\tright: 10px;\n\twidth: 18px;\n\theight: 18px;\n\tvisibility: hidden;\n}\n\n/** Do NOT display ReadMore when docs is side/below **/\n\n.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row > .contents > .main > .right > .readMore {\n\tdisplay: none !important;\n}\n\n/** Do NOT display ReadMore when using plain CompletionItemLabel (details/documentation might not be resolved) **/\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label > .contents > .main > .right > .readMore {\n\tdisplay: none;\n}\n\n/** Focused item can show ReadMore, but can't when docs is side/below **/\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused.string-label > .contents > .main > .right > .readMore {\n\tdisplay: inline-block;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused:hover > .contents > .main > .right > .readMore {\n\tvisibility: visible;\n}\n\n/** Styles for each row in the list **/\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated {\n\topacity: 0.66;\n\ttext-decoration: unset;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated > .monaco-icon-label-container > .monaco-icon-name-container {\n\ttext-decoration: line-through;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label::before {\n\theight: 100%;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon {\n\tdisplay: block;\n\theight: 16px;\n\twidth: 16px;\n\tmargin-left: 2px;\n\tbackground-repeat: no-repeat;\n\tbackground-size: 80%;\n\tbackground-position: center;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide {\n\tdisplay: none;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon {\n\tdisplay: flex;\n\talign-items: center;\n\tmargin-right: 4px;\n}\n\n.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .icon,\n.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .suggest-icon::before {\n\tdisplay: none;\n}\n\n.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan {\n\tmargin: 0 0 0 0.3em;\n\tborder: 0.1em solid #000;\n\twidth: 0.7em;\n\theight: 0.7em;\n\tdisplay: inline-block;\n}\n\n/** Styles for the docs of the completion item in focus **/\n\n.monaco-editor .suggest-details-container {\n\tz-index: 41;\n}\n\n.monaco-editor .suggest-details {\n\tdisplay: flex;\n\tflex-direction: column;\n\tcursor: default;\n\tcolor: var(--vscode-editorSuggestWidget-foreground);\n}\n\n.monaco-editor .suggest-details.focused {\n\tborder-color: var(--vscode-focusBorder);\n}\n\n.monaco-editor .suggest-details a {\n\tcolor: var(--vscode-textLink-foreground);\n}\n\n.monaco-editor .suggest-details a:hover {\n\tcolor: var(--vscode-textLink-activeForeground);\n}\n\n.monaco-editor .suggest-details code {\n\tbackground-color: var(--vscode-textCodeBlock-background);\n}\n\n.monaco-editor .suggest-details.no-docs {\n\tdisplay: none;\n}\n\n.monaco-editor .suggest-details > .monaco-scrollable-element {\n\tflex: 1;\n}\n\n.monaco-editor .suggest-details > .monaco-scrollable-element > .body {\n\tbox-sizing: border-box;\n\theight: 100%;\n\twidth: 100%;\n}\n\n.monaco-editor .suggest-details > .monaco-scrollable-element > .body > .header > .type {\n\tflex: 2;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\topacity: 0.7;\n\twhite-space: pre;\n\tmargin: 0 24px 0 0;\n\tpadding: 4px 0 12px 5px;\n}\n\n.monaco-editor .suggest-details > .monaco-scrollable-element > .body > .header > .type.auto-wrap {\n\twhite-space: normal;\n\tword-break: break-all;\n}\n\n.monaco-editor .suggest-details > .monaco-scrollable-element > .body > .docs {\n\tmargin: 0;\n\tpadding: 4px 5px;\n\twhite-space: pre-wrap;\n}\n\n.monaco-editor .suggest-details.no-type > .monaco-scrollable-element > .body > .docs {\n\tmargin-right: 24px;\n\toverflow: hidden;\n}\n\n.monaco-editor .suggest-details > .monaco-scrollable-element > .body > .docs.markdown-docs {\n\tpadding: 0;\n\twhite-space: initial;\n\tmin-height: calc(1rem + 8px);\n}\n\n.monaco-editor .suggest-details > .monaco-scrollable-element > .body > .docs.markdown-docs > div,\n.monaco-editor .suggest-details > .monaco-scrollable-element > .body > .docs.markdown-docs > span:not(:empty) {\n\tpadding: 4px 5px;\n}\n\n.monaco-editor .suggest-details > .monaco-scrollable-element > .body > .docs.markdown-docs > div > p:first-child {\n\tmargin-top: 0;\n}\n\n.monaco-editor .suggest-details > .monaco-scrollable-element > .body > .docs.markdown-docs > div > p:last-child {\n\tmargin-bottom: 0;\n}\n\n.monaco-editor .suggest-details > .monaco-scrollable-element > .body > .docs.markdown-docs .monaco-tokenized-source {\n\twhite-space: pre;\n}\n\n.monaco-editor .suggest-details > .monaco-scrollable-element > .body > .docs .code {\n\twhite-space: pre-wrap;\n\tword-wrap: break-word;\n}\n\n.monaco-editor .suggest-details > .monaco-scrollable-element > .body > .docs.markdown-docs .codicon {\n\tvertical-align: sub;\n}\n\n.monaco-editor .suggest-details > .monaco-scrollable-element > .body > p:empty {\n\tdisplay: none;\n}\n\n.monaco-editor .suggest-details code {\n\tborder-radius: 3px;\n\tpadding: 0 0.4em;\n}\n\n.monaco-editor .suggest-details ul {\n\tpadding-left: 20px;\n}\n\n.monaco-editor .suggest-details ol {\n\tpadding-left: 20px;\n}\n\n.monaco-editor .suggest-details p code {\n\tfont-family: var(--monaco-monospace-font);\n}\n",""]);const s=o},51029:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .codicon.codicon-symbol-array,\n.monaco-workbench .codicon.codicon-symbol-array { color: var(--vscode-symbolIcon-arrayForeground); }\n.monaco-editor .codicon.codicon-symbol-boolean,\n.monaco-workbench .codicon.codicon-symbol-boolean { color: var(--vscode-symbolIcon-booleanForeground); }\n.monaco-editor .codicon.codicon-symbol-class,\n.monaco-workbench .codicon.codicon-symbol-class { color: var(--vscode-symbolIcon-classForeground); }\n.monaco-editor .codicon.codicon-symbol-method,\n.monaco-workbench .codicon.codicon-symbol-method { color: var(--vscode-symbolIcon-methodForeground); }\n.monaco-editor .codicon.codicon-symbol-color,\n.monaco-workbench .codicon.codicon-symbol-color { color: var(--vscode-symbolIcon-colorForeground); }\n.monaco-editor .codicon.codicon-symbol-constant,\n.monaco-workbench .codicon.codicon-symbol-constant { color: var(--vscode-symbolIcon-constantForeground); }\n.monaco-editor .codicon.codicon-symbol-constructor,\n.monaco-workbench .codicon.codicon-symbol-constructor { color: var(--vscode-symbolIcon-constructorForeground); }\n.monaco-editor .codicon.codicon-symbol-value,\n.monaco-workbench .codicon.codicon-symbol-value,\n.monaco-editor .codicon.codicon-symbol-enum,\n.monaco-workbench .codicon.codicon-symbol-enum { color: var(--vscode-symbolIcon-enumeratorForeground); }\n.monaco-editor .codicon.codicon-symbol-enum-member,\n.monaco-workbench .codicon.codicon-symbol-enum-member { color: var(--vscode-symbolIcon-enumeratorMemberForeground); }\n.monaco-editor .codicon.codicon-symbol-event,\n.monaco-workbench .codicon.codicon-symbol-event { color: var(--vscode-symbolIcon-eventForeground); }\n.monaco-editor .codicon.codicon-symbol-field,\n.monaco-workbench .codicon.codicon-symbol-field { color: var(--vscode-symbolIcon-fieldForeground); }\n.monaco-editor .codicon.codicon-symbol-file,\n.monaco-workbench .codicon.codicon-symbol-file { color: var(--vscode-symbolIcon-fileForeground); }\n.monaco-editor .codicon.codicon-symbol-folder,\n.monaco-workbench .codicon.codicon-symbol-folder { color: var(--vscode-symbolIcon-folderForeground); }\n.monaco-editor .codicon.codicon-symbol-function,\n.monaco-workbench .codicon.codicon-symbol-function { color: var(--vscode-symbolIcon-functionForeground); }\n.monaco-editor .codicon.codicon-symbol-interface,\n.monaco-workbench .codicon.codicon-symbol-interface { color: var(--vscode-symbolIcon-interfaceForeground); }\n.monaco-editor .codicon.codicon-symbol-key,\n.monaco-workbench .codicon.codicon-symbol-key { color: var(--vscode-symbolIcon-keyForeground); }\n.monaco-editor .codicon.codicon-symbol-keyword,\n.monaco-workbench .codicon.codicon-symbol-keyword { color: var(--vscode-symbolIcon-keywordForeground); }\n.monaco-editor .codicon.codicon-symbol-module,\n.monaco-workbench .codicon.codicon-symbol-module { color: var(--vscode-symbolIcon-moduleForeground); }\n.monaco-editor .codicon.codicon-symbol-namespace,\n.monaco-workbench .codicon.codicon-symbol-namespace { color: var(--vscode-symbolIcon-namespaceForeground); }\n.monaco-editor .codicon.codicon-symbol-null,\n.monaco-workbench .codicon.codicon-symbol-null { color: var(--vscode-symbolIcon-nullForeground); }\n.monaco-editor .codicon.codicon-symbol-number,\n.monaco-workbench .codicon.codicon-symbol-number { color: var(--vscode-symbolIcon-numberForeground); }\n.monaco-editor .codicon.codicon-symbol-object,\n.monaco-workbench .codicon.codicon-symbol-object { color: var(--vscode-symbolIcon-objectForeground); }\n.monaco-editor .codicon.codicon-symbol-operator,\n.monaco-workbench .codicon.codicon-symbol-operator { color: var(--vscode-symbolIcon-operatorForeground); }\n.monaco-editor .codicon.codicon-symbol-package,\n.monaco-workbench .codicon.codicon-symbol-package { color: var(--vscode-symbolIcon-packageForeground); }\n.monaco-editor .codicon.codicon-symbol-property,\n.monaco-workbench .codicon.codicon-symbol-property { color: var(--vscode-symbolIcon-propertyForeground); }\n.monaco-editor .codicon.codicon-symbol-reference,\n.monaco-workbench .codicon.codicon-symbol-reference { color: var(--vscode-symbolIcon-referenceForeground); }\n.monaco-editor .codicon.codicon-symbol-snippet,\n.monaco-workbench .codicon.codicon-symbol-snippet { color: var(--vscode-symbolIcon-snippetForeground); }\n.monaco-editor .codicon.codicon-symbol-string,\n.monaco-workbench .codicon.codicon-symbol-string { color: var(--vscode-symbolIcon-stringForeground); }\n.monaco-editor .codicon.codicon-symbol-struct,\n.monaco-workbench .codicon.codicon-symbol-struct { color: var(--vscode-symbolIcon-structForeground); }\n.monaco-editor .codicon.codicon-symbol-text,\n.monaco-workbench .codicon.codicon-symbol-text { color: var(--vscode-symbolIcon-textForeground); }\n.monaco-editor .codicon.codicon-symbol-type-parameter,\n.monaco-workbench .codicon.codicon-symbol-type-parameter { color: var(--vscode-symbolIcon-typeParameterForeground); }\n.monaco-editor .codicon.codicon-symbol-unit,\n.monaco-workbench .codicon.codicon-symbol-unit { color: var(--vscode-symbolIcon-unitForeground); }\n.monaco-editor .codicon.codicon-symbol-variable,\n.monaco-workbench .codicon.codicon-symbol-variable { color: var(--vscode-symbolIcon-variableForeground); }\n",""]);const s=o},6065:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.editor-banner {\n\tbox-sizing: border-box;\n\tcursor: default;\n\twidth: 100%;\n\tfont-size: 12px;\n\tdisplay: flex;\n\toverflow: visible;\n\n\theight: 26px;\n\n\tbackground: var(--vscode-banner-background);\n}\n\n\n.editor-banner .icon-container {\n\tdisplay: flex;\n\tflex-shrink: 0;\n\talign-items: center;\n\tpadding: 0 6px 0 10px;\n}\n\n.editor-banner .icon-container.custom-icon {\n\tbackground-repeat: no-repeat;\n\tbackground-position: center center;\n\tbackground-size: 16px;\n\twidth: 16px;\n\tpadding: 0;\n\tmargin: 0 6px 0 10px;\n}\n\n.editor-banner .message-container {\n\tdisplay: flex;\n\talign-items: center;\n\tline-height: 26px;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\toverflow: hidden;\n}\n\n.editor-banner .message-container p {\n\tmargin-block-start: 0;\n\tmargin-block-end: 0;\n}\n\n.editor-banner .message-actions-container {\n\tflex-grow: 1;\n\tflex-shrink: 0;\n\tline-height: 26px;\n\tmargin: 0 4px;\n}\n\n.editor-banner .message-actions-container a.monaco-button {\n\twidth: inherit;\n\tmargin: 2px 8px;\n\tpadding: 0px 12px;\n}\n\n.editor-banner .message-actions-container a {\n\tpadding: 3px;\n\tmargin-left: 12px;\n\ttext-decoration: underline;\n}\n\n.editor-banner .action-container {\n\tpadding: 0 10px 0 6px;\n}\n\n.editor-banner {\n\tbackground-color: var(--vscode-banner-background);\n}\n\n.editor-banner,\n.editor-banner .action-container .codicon,\n.editor-banner .message-actions-container .monaco-link {\n\tcolor: var(--vscode-banner-foreground);\n}\n\n.editor-banner .icon-container .codicon {\n\tcolor: var(--vscode-banner-iconForeground);\n}\n",""]);const s=o},18245:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .unicode-highlight {\n\tborder: 1px solid var(--vscode-editorUnicodeHighlight-border);\n\tbackground-color: var(--vscode-editorUnicodeHighlight-background);\n\tbox-sizing: border-box;\n}\n",""]);const s=o},19803:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .focused .selectionHighlight {\n\tbackground-color: var(--vscode-editor-selectionHighlightBackground);\n\tbox-sizing: border-box;\n\tborder: 1px solid var(--vscode-editor-selectionHighlightBorder);\n}\n.monaco-editor.hc-black .focused .selectionHighlight, .monaco-editor.hc-light .focused .selectionHighlight {\n\tborder-style: dotted;\n}\n\n.monaco-editor .wordHighlight {\n\tbackground-color: var(--vscode-editor-wordHighlightBackground);\n\tbox-sizing: border-box;\n\tborder: 1px solid var(--vscode-editor-wordHighlightBorder);\n}\n.monaco-editor.hc-black .wordHighlight, .monaco-editor.hc-light .wordHighlight {\n\tborder-style: dotted;\n}\n\n.monaco-editor .wordHighlightStrong {\n\tbackground-color: var(--vscode-editor-wordHighlightStrongBackground);\n\tbox-sizing: border-box;\n\tborder: 1px solid var(--vscode-editor-wordHighlightStrongBorder);\n}\n.monaco-editor.hc-black .wordHighlightStrong, .monaco-editor.hc-light .wordHighlightStrong {\n\tborder-style: dotted;\n}\n\n.monaco-editor .wordHighlightText {\n\tbackground-color: var(--vscode-editor-wordHighlightTextBackground);\n\tbox-sizing: border-box;\n\tborder: 1px solid var(--vscode-editor-wordHighlightTextBorder);\n}\n.monaco-editor.hc-black .wordHighlightText, .monaco-editor.hc-light .wordHighlightText {\n\tborder-style: dotted;\n}\n",""]);const s=o},12889:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n.monaco-editor .zone-widget {\n\tposition: absolute;\n\tz-index: 10;\n}\n\n\n.monaco-editor .zone-widget .zone-widget-container {\n\tborder-top-style: solid;\n\tborder-bottom-style: solid;\n\tborder-top-width: 0;\n\tborder-bottom-width: 0;\n\tposition: relative;\n}\n",""]);const s=o},59337:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,'/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .iPadShowKeyboard {\n\twidth: 58px;\n\tmin-width: 0;\n\theight: 36px;\n\tmin-height: 0;\n\tmargin: 0;\n\tpadding: 0;\n\tposition: absolute;\n\tresize: none;\n\toverflow: hidden;\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjNDI0MjQyIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==") center center no-repeat;\n\tborder: 4px solid #F6F6F6;\n\tborder-radius: 4px;\n}\n\n.monaco-editor.vs-dark .iPadShowKeyboard {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjQzVDNUM1Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==") center center no-repeat;\n\tborder: 4px solid #252526;\n}',""]);const s=o},72931:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .tokens-inspect-widget {\n\tz-index: 50;\n\tuser-select: text;\n\t-webkit-user-select: text;\n\tpadding: 10px;\n\tcolor: var(--vscode-editorHoverWidget-foreground);\n\tbackground-color: var(--vscode-editorHoverWidget-background);\n\tborder: 1px solid var(--vscode-editorHoverWidget-border);\n}\n.monaco-editor.hc-black .tokens-inspect-widget, .monaco-editor.hc-light .tokens-inspect-widget {\n\tborder-width: 2px;\n}\n\n.monaco-editor .tokens-inspect-widget .tokens-inspect-separator {\n\theight: 1px;\n\tborder: 0;\n\tbackground-color: var(--vscode-editorHoverWidget-border);\n}\n\n.monaco-editor .tokens-inspect-widget .tm-token {\n\tfont-family: var(--monaco-monospace-font);\n}\n\n.monaco-editor .tokens-inspect-widget .tm-token-length {\n\tfont-weight: normal;\n\tfont-size: 60%;\n\tfloat: right;\n}\n\n.monaco-editor .tokens-inspect-widget .tm-metadata-table {\n\twidth: 100%;\n}\n\n.monaco-editor .tokens-inspect-widget .tm-metadata-value {\n\tfont-family: var(--monaco-monospace-font);\n\ttext-align: right;\n}\n\n.monaco-editor .tokens-inspect-widget .tm-token-type {\n\tfont-family: var(--monaco-monospace-font);\n}\n",""]);const s=o},71446:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.quick-input-widget {\n\tfont-size: 13px;\n}\n\n.quick-input-widget .monaco-highlighted-label .highlight,\n.quick-input-widget .monaco-highlighted-label .highlight {\n\tcolor: #0066BF;\n}\n\n.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight,\n.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight {\n\tcolor: #9DDDFF;\n}\n\n.vs-dark .quick-input-widget .monaco-highlighted-label .highlight,\n.vs-dark .quick-input-widget .monaco-highlighted-label .highlight {\n\tcolor: #0097fb;\n}\n\n.hc-black .quick-input-widget .monaco-highlighted-label .highlight,\n.hc-black .quick-input-widget .monaco-highlighted-label .highlight {\n\tcolor: #F38518;\n}\n\n.hc-light .quick-input-widget .monaco-highlighted-label .highlight,\n.hc-light .quick-input-widget .monaco-highlighted-label .highlight {\n\tcolor: #0F4A85;\n}\n\n.monaco-keybinding > .monaco-keybinding-key {\n\tbackground-color: rgba(221, 221, 221, 0.4);\n\tborder: solid 1px rgba(204, 204, 204, 0.4);\n\tborder-bottom-color: rgba(187, 187, 187, 0.4);\n\tbox-shadow: inset 0 -1px 0 rgba(187, 187, 187, 0.4);\n\tcolor: #555;\n}\n\n.hc-black .monaco-keybinding > .monaco-keybinding-key {\n\tbackground-color: transparent;\n\tborder: solid 1px rgb(111, 195, 223);\n\tbox-shadow: none;\n\tcolor: #fff;\n}\n\n.hc-light .monaco-keybinding > .monaco-keybinding-key {\n\tbackground-color: transparent;\n\tborder: solid 1px #0F4A85;\n\tbox-shadow: none;\n\tcolor: #292929;\n}\n\n.vs-dark .monaco-keybinding > .monaco-keybinding-key {\n\tbackground-color: rgba(128, 128, 128, 0.17);\n\tborder: solid 1px rgba(51, 51, 51, 0.6);\n\tborder-bottom-color: rgba(68, 68, 68, 0.6);\n\tbox-shadow: inset 0 -1px 0 rgba(68, 68, 68, 0.6);\n\tcolor: #ccc;\n}\n",""]);const s=o},3614:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,'/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n\n/* Default standalone editor fonts */\n.monaco-editor {\n\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;\n\t--monaco-monospace-font: "SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label {\n\tstroke-width: 1.2px;\n}\n\n.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,\n.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,\n.monaco-editor.hc-light .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label {\n\tstroke-width: 1.2px;\n}\n\n.monaco-hover p {\n\tmargin: 0;\n}\n\n/* See https://github.com/microsoft/monaco-editor/issues/2168#issuecomment-780078600 */\n.monaco-aria-container {\n\tposition: absolute !important;\n\ttop: 0; /* avoid being placed underneath a sibling element */\n\theight: 1px;\n\twidth: 1px;\n\tmargin: -1px;\n\toverflow: hidden;\n\tpadding: 0;\n\tclip: rect(1px, 1px, 1px, 1px);\n\tclip-path: inset(50%);\n}\n\n.monaco-editor, .monaco-diff-editor .synthetic-focus,\n.monaco-editor, .monaco-diff-editor [tabindex="0"]:focus,\n.monaco-editor, .monaco-diff-editor [tabindex="-1"]:focus,\n.monaco-editor, .monaco-diff-editor button:focus,\n.monaco-editor, .monaco-diff-editor input[type=button]:focus,\n.monaco-editor, .monaco-diff-editor input[type=checkbox]:focus,\n.monaco-editor, .monaco-diff-editor input[type=search]:focus,\n.monaco-editor, .monaco-diff-editor input[type=text]:focus,\n.monaco-editor, .monaco-diff-editor select:focus,\n.monaco-editor, .monaco-diff-editor textarea:focus {\n\toutline-width: 1px;\n\toutline-style: solid;\n\toutline-offset: -1px;\n\toutline-color: var(--vscode-focusBorder);\n\topacity: 1\n}\n',""]);const s=o},56745:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,'/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.action-widget {\n\tfont-size: 13px;\n\tborder-radius: 0;\n\tmin-width: 160px;\n\tmax-width: 80vw;\n\tz-index: 40;\n\tdisplay: block;\n\twidth: 100%;\n\tborder: 1px solid var(--vscode-editorWidget-border) !important;\n\tborder-radius: 2px;\n\tbackground-color: var(--vscode-editorWidget-background);\n\tcolor: var(--vscode-editorWidget-foreground);\n}\n\n.context-view-block {\n\tposition: fixed;\n\tcursor: initial;\n\tleft: 0;\n\ttop: 0;\n\twidth: 100%;\n\theight: 100%;\n\tz-index: -1;\n}\n\n.context-view-pointerBlock {\n\tposition: fixed;\n\tcursor: initial;\n\tleft: 0;\n\ttop: 0;\n\twidth: 100%;\n\theight: 100%;\n\tz-index: 2;\n}\n\n.action-widget .monaco-list {\n\tuser-select: none;\n\t-webkit-user-select: none;\n\tborder: none !important;\n\tborder-width: 0 !important;\n}\n\n.action-widget .monaco-list:focus:before {\n\toutline: 0 !important;\n}\n\n.action-widget .monaco-list .monaco-scrollable-element {\n\toverflow: visible;\n}\n\n/** Styles for each row in the list element **/\n.action-widget .monaco-list .monaco-list-row {\n\tpadding: 0 10px;\n\twhite-space: nowrap;\n\tcursor: pointer;\n\ttouch-action: none;\n\twidth: 100%;\n}\n\n.action-widget .monaco-list .monaco-list-row.action.focused:not(.option-disabled) {\n\tbackground-color: var(--vscode-quickInputList-focusBackground) !important;\n\tcolor: var(--vscode-quickInputList-focusForeground);\n\toutline: 1px solid var(--vscode-menu-selectionBorder, transparent);\n\toutline-offset: -1px;\n}\n\n.action-widget .monaco-list-row.group-header {\n\tcolor: var(--vscode-descriptionForeground) !important;\n\tfont-weight: 600;\n}\n\n.action-widget .monaco-list .group-header,\n.action-widget .monaco-list .option-disabled,\n.action-widget .monaco-list .option-disabled:before,\n.action-widget .monaco-list .option-disabled .focused,\n.action-widget .monaco-list .option-disabled .focused:before {\n\tcursor: default !important;\n\t-webkit-touch-callout: none;\n\t-webkit-user-select: none;\n\tuser-select: none;\n\tbackground-color: transparent !important;\n\toutline: 0 solid !important;\n}\n\n.action-widget .monaco-list-row.action {\n\tdisplay: flex;\n\tgap: 6px;\n\talign-items: center;\n}\n\n.action-widget .monaco-list-row.action.option-disabled,\n.action-widget .monaco-list:focus .monaco-list-row.focused.action.option-disabled,\n.action-widget .monaco-list-row.action.option-disabled .codicon,\n.action-widget .monaco-list:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused).option-disabled {\n\tcolor: var(--vscode-disabledForeground);\n}\n\n\n.action-widget .monaco-list-row.action:not(.option-disabled) .codicon {\n\tcolor: inherit;\n}\n\n.action-widget .monaco-list-row.action .title {\n\tflex: 1;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n}\n\n.action-widget .monaco-list-row.action .monaco-keybinding > .monaco-keybinding-key {\n\t\tbackground-color: var(--vscode-keybindingLabel-background);\n\t\tcolor: var(--vscode-keybindingLabel-foreground);\n\t\tborder-style: solid;\n\t\tborder-width: 1px;\n\t\tborder-radius: 3px;\n\t\tborder-color: var(--vscode-keybindingLabel-border);\n\t\tborder-bottom-color: var(--vscode-keybindingLabel-bottomBorder);\n\t\tbox-shadow: inset 0 -1px 0 var(--vscode-widget-shadow);\n}\n\n/* Action bar */\n\n.action-widget .action-widget-action-bar {\n\tbackground-color: var(--vscode-editorHoverWidget-statusBarBackground);\n\tborder-top: 1px solid var(--vscode-editorHoverWidget-border);\n}\n\n.action-widget .action-widget-action-bar::before {\n\tdisplay: block;\n\tcontent: "";\n\twidth: 100%;\n}\n\n.action-widget .action-widget-action-bar .actions-container {\n\tpadding: 0 8px;\n}\n\n.action-widget-action-bar .action-label {\n\tcolor: var(--vscode-textLink-activeForeground);\n\tfont-size: 12px;\n\tline-height: 22px;\n\tpadding: 0;\n\tpointer-events: all;\n}\n\n.action-widget-action-bar .action-item {\n\tmargin-right: 16px;\n\tpointer-events: none;\n}\n\n.action-widget-action-bar .action-label:hover {\n\tbackground-color: transparent !important;\n}\n\n.monaco-action-bar .actions-container.highlight-toggled .action-label.checked {\n\t/* The important gives this rule precedence over the hover rule. */\n\tbackground: var(--vscode-actionBar-toggledBackground) !important;\n}\n',""]);const s=o},19055:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-action-bar .action-item.menu-entry .action-label.icon {\n\twidth: 16px;\n\theight: 16px;\n\tbackground-repeat: no-repeat;\n\tbackground-position: 50%;\n\tbackground-size: 16px;\n}\n\n.monaco-action-bar .action-item.menu-entry.text-only .action-label {\n\tcolor: var(--vscode-descriptionForeground);\n\toverflow: hidden;\n\tborder-radius: 2px;\n}\n\n.monaco-action-bar .action-item.menu-entry.text-only.use-comma:not(:last-of-type) .action-label::after {\n\tcontent: ', ';\n}\n\n.monaco-action-bar .action-item.menu-entry.text-only + .action-item:not(.text-only) > .monaco-dropdown .action-label {\n\tcolor: var(--vscode-descriptionForeground);\n}\n\n.monaco-dropdown-with-default {\n\tdisplay: flex !important;\n\tflex-direction: row;\n\tborder-radius: 5px;\n}\n\n.monaco-dropdown-with-default > .action-container > .action-label {\n\tmargin-right: 0;\n}\n\n.monaco-dropdown-with-default > .action-container.menu-entry > .action-label.icon {\n\twidth: 16px;\n\theight: 16px;\n\tbackground-repeat: no-repeat;\n\tbackground-position: 50%;\n\tbackground-size: 16px;\n}\n\n.monaco-dropdown-with-default:hover {\n\tbackground-color: var(--vscode-toolbar-hoverBackground);\n}\n\n.monaco-dropdown-with-default > .dropdown-action-container > .monaco-dropdown > .dropdown-label .codicon[class*='codicon-'] {\n\tfont-size: 12px;\n\tpadding-left: 0px;\n\tpadding-right: 0px;\n\tline-height: 16px;\n\tmargin-left: -3px;\n}\n\n.monaco-dropdown-with-default > .dropdown-action-container > .monaco-dropdown > .dropdown-label > .action-label {\n\tdisplay: block;\n\tbackground-size: 16px;\n\tbackground-position: center center;\n\tbackground-repeat: no-repeat;\n}\n",""]);const s=o},4646:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-link {\n\tcolor: var(--vscode-textLink-foreground);\n}\n\n.monaco-link:hover {\n\tcolor: var(--vscode-textLink-activeForeground);\n}\n\n",""]);const s=o},87492:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.quick-input-widget {\n\tposition: absolute;\n\twidth: 600px;\n\tz-index: 2550;\n\tleft: 50%;\n\tmargin-left: -300px;\n\t-webkit-app-region: no-drag;\n\tborder-radius: 6px;\n}\n\n.quick-input-titlebar {\n\tdisplay: flex;\n\talign-items: center;\n\tborder-radius: inherit;\n}\n\n.quick-input-left-action-bar {\n\tdisplay: flex;\n\tmargin-left: 4px;\n\tflex: 1;\n}\n\n.quick-input-title {\n\tpadding: 3px 0px;\n\ttext-align: center;\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n}\n\n.quick-input-right-action-bar {\n\tdisplay: flex;\n\tmargin-right: 4px;\n\tflex: 1;\n}\n\n.quick-input-right-action-bar > .actions-container {\n\tjustify-content: flex-end;\n}\n\n.quick-input-titlebar .monaco-action-bar .action-label.codicon {\n\tbackground-position: center;\n\tbackground-repeat: no-repeat;\n\tpadding: 2px;\n}\n\n.quick-input-description {\n\tmargin: 6px 6px 6px 11px;\n}\n\n.quick-input-header .quick-input-description {\n\tmargin: 4px 2px;\n\tflex: 1;\n}\n\n.quick-input-header {\n\tdisplay: flex;\n\tpadding: 8px 6px 2px 6px;\n}\n\n.quick-input-widget.hidden-input .quick-input-header {\n\t/* reduce margins and paddings when input box hidden */\n\tpadding: 0;\n\tmargin-bottom: 0;\n}\n\n.quick-input-and-message {\n\tdisplay: flex;\n\tflex-direction: column;\n\tflex-grow: 1;\n\tmin-width: 0;\n\tposition: relative;\n}\n\n.quick-input-check-all {\n\talign-self: center;\n\tmargin: 0;\n}\n\n.quick-input-filter {\n\tflex-grow: 1;\n\tdisplay: flex;\n\tposition: relative;\n}\n\n.quick-input-box {\n\tflex-grow: 1;\n}\n\n.quick-input-widget.show-checkboxes .quick-input-box,\n.quick-input-widget.show-checkboxes .quick-input-message {\n\tmargin-left: 5px;\n}\n\n.quick-input-visible-count {\n\tposition: absolute;\n\tleft: -10000px;\n}\n\n.quick-input-count {\n\talign-self: center;\n\tposition: absolute;\n\tright: 4px;\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.quick-input-count .monaco-count-badge {\n\tvertical-align: middle;\n\tpadding: 2px 4px;\n\tborder-radius: 2px;\n\tmin-height: auto;\n\tline-height: normal;\n}\n\n.quick-input-action {\n\tmargin-left: 6px;\n}\n\n.quick-input-action .monaco-text-button {\n\tfont-size: 11px;\n\tpadding: 0 6px;\n\tdisplay: flex;\n\theight: 25px;\n\talign-items: center;\n}\n\n.quick-input-message {\n\tmargin-top: -1px;\n\tpadding: 5px;\n\toverflow-wrap: break-word;\n}\n\n.quick-input-message > .codicon {\n\tmargin: 0 0.2em;\n\tvertical-align: text-bottom;\n}\n\n/* Links in descriptions & validations */\n.quick-input-message a {\n\tcolor: inherit;\n}\n\n.quick-input-progress.monaco-progress-container {\n\tposition: relative;\n}\n\n.quick-input-list {\n\tline-height: 22px;\n}\n\n.quick-input-widget.hidden-input .quick-input-list {\n\tmargin-top: 4px; /* reduce margins when input box hidden */\n\tpadding-bottom: 4px;\n}\n\n.quick-input-list .monaco-list {\n\toverflow: hidden;\n\tmax-height: calc(20 * 22px);\n\tpadding-bottom: 5px;\n}\n\n.quick-input-list .monaco-scrollable-element {\n\tpadding: 0px 5px;\n}\n\n.quick-input-list .quick-input-list-entry {\n\tbox-sizing: border-box;\n\toverflow: hidden;\n\tdisplay: flex;\n\theight: 100%;\n\tpadding: 0 6px;\n}\n\n.quick-input-list .quick-input-list-entry.quick-input-list-separator-border {\n\tborder-top-width: 1px;\n\tborder-top-style: solid;\n}\n\n.quick-input-list .monaco-list-row {\n\tborder-radius: 3px;\n}\n\n.quick-input-list .monaco-list-row[data-index=\"0\"] .quick-input-list-entry.quick-input-list-separator-border {\n\tborder-top-style: none;\n}\n\n.quick-input-list .quick-input-list-label {\n\toverflow: hidden;\n\tdisplay: flex;\n\theight: 100%;\n\tflex: 1;\n}\n\n.quick-input-list .quick-input-list-checkbox {\n\talign-self: center;\n\tmargin: 0;\n}\n\n.quick-input-list .quick-input-list-icon {\n\tbackground-size: 16px;\n\tbackground-position: left center;\n\tbackground-repeat: no-repeat;\n\tpadding-right: 6px;\n\twidth: 16px;\n\theight: 22px;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n.quick-input-list .quick-input-list-rows {\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tdisplay: flex;\n\tflex-direction: column;\n\theight: 100%;\n\tflex: 1;\n\tmargin-left: 5px;\n}\n\n.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-rows {\n\tmargin-left: 10px;\n}\n\n.quick-input-widget .quick-input-list .quick-input-list-checkbox {\n\tdisplay: none;\n}\n.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-checkbox {\n\tdisplay: inline;\n}\n\n.quick-input-list .quick-input-list-rows > .quick-input-list-row {\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.quick-input-list .quick-input-list-rows > .quick-input-list-row .monaco-icon-label,\n.quick-input-list .quick-input-list-rows > .quick-input-list-row .monaco-icon-label .monaco-icon-label-container > .monaco-icon-name-container {\n\tflex: 1; /* make sure the icon label grows within the row */\n}\n\n.quick-input-list .quick-input-list-rows > .quick-input-list-row .codicon[class*='codicon-'] {\n\tvertical-align: text-bottom;\n}\n\n.quick-input-list .quick-input-list-rows .monaco-highlighted-label > span {\n\topacity: 1;\n}\n\n.quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding {\n\tmargin-right: 8px; /* separate from the separator label or scrollbar if any */\n}\n\n.quick-input-list .quick-input-list-label-meta {\n\topacity: 0.7;\n\tline-height: normal;\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n}\n\n/* preserve list-like styling instead of tree-like styling */\n.quick-input-list .monaco-list .monaco-list-row .monaco-highlighted-label .highlight {\n\tfont-weight: bold;\n\tbackground-color: unset;\n\tcolor: var(--vscode-list-highlightForeground) !important;\n}\n\n/* preserve list-like styling instead of tree-like styling */\n.quick-input-list .monaco-list .monaco-list-row.focused .monaco-highlighted-label .highlight {\n\tcolor: var(--vscode-list-focusHighlightForeground) !important;\n}\n\n.quick-input-list .quick-input-list-entry .quick-input-list-separator {\n\tmargin-right: 4px; /* separate from keybindings or actions */\n}\n\n.quick-input-list .quick-input-list-entry-action-bar {\n\tdisplay: flex;\n\tflex: 0;\n\toverflow: visible;\n}\n\n.quick-input-list .quick-input-list-entry-action-bar .action-label {\n\t/*\n\t * By default, actions in the quick input action bar are hidden\n\t * until hovered over them or selected.\n\t */\n\tdisplay: none;\n}\n\n.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon {\n\tmargin-right: 4px;\n\tpadding: 0px 2px 2px 2px;\n}\n\n.quick-input-list .quick-input-list-entry-action-bar {\n\tmargin-top: 1px;\n}\n\n.quick-input-list .quick-input-list-entry-action-bar {\n\tmargin-right: 4px; /* separate from scrollbar */\n}\n\n.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,\n.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label,\n.quick-input-list .quick-input-list-entry.focus-inside .quick-input-list-entry-action-bar .action-label,\n.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label,\n.quick-input-list .monaco-list-row.passive-focused .quick-input-list-entry-action-bar .action-label {\n\tdisplay: flex;\n}\n\n/* focused items in quick pick */\n.quick-input-list .monaco-list-row.focused .monaco-keybinding-key,\n.quick-input-list .monaco-list-row.focused .quick-input-list-entry .quick-input-list-separator {\n\tcolor: inherit\n}\n.quick-input-list .monaco-list-row.focused .monaco-keybinding-key {\n\tbackground: none;\n}\n\n.quick-input-list .quick-input-list-separator-as-item {\n\tpadding: 4px 6px;\n\tfont-size: 12px;\n}\n\n/* Quick input separators as full-row item */\n.quick-input-list .quick-input-list-separator-as-item .label-name {\n\tfont-weight: 600;\n}\n\n.quick-input-list .quick-input-list-separator-as-item .label-description {\n\t/* Override default description opacity so we don't have a contrast ratio issue. */\n\topacity: 1 !important;\n}\n\n/* Hide border when the item becomes the sticky one */\n.quick-input-list .monaco-tree-sticky-row .quick-input-list-entry.quick-input-list-separator-as-item.quick-input-list-separator-border {\n\tborder-top-style: none;\n}\n\n/* Give sticky row the same padding as the scrollable list */\n.quick-input-list .monaco-tree-sticky-row {\n\tpadding: 0 5px;\n}\n\n/* Hide the twistie containers so that there isn't blank indent */\n.quick-input-list .monaco-tl-twistie {\n\tdisplay: none !important;\n}\n",""]);const s=o},13774:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(76314),o=i.n(n)()((function(e){return e[1]}));o.push([e.id,"/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .zone-widget .codicon.codicon-error,\n.markers-panel .marker-icon.error, .markers-panel .marker-icon .codicon.codicon-error,\n.text-search-provider-messages .providerMessage .codicon.codicon-error,\n.extensions-viewlet > .extensions .codicon.codicon-error,\n.extension-editor .codicon.codicon-error,\n.preferences-editor .codicon.codicon-error {\n\tcolor: var(--vscode-problemsErrorIcon-foreground);\n}\n\n.monaco-editor .zone-widget .codicon.codicon-warning,\n.markers-panel .marker-icon.warning, .markers-panel .marker-icon .codicon.codicon-warning,\n.text-search-provider-messages .providerMessage .codicon.codicon-warning,\n.extensions-viewlet > .extensions .codicon.codicon-warning,\n.extension-editor .codicon.codicon-warning,\n.preferences-editor .codicon.codicon-warning {\n\tcolor: var(--vscode-problemsWarningIcon-foreground);\n}\n\n.monaco-editor .zone-widget .codicon.codicon-info,\n.markers-panel .marker-icon.info, .markers-panel .marker-icon .codicon.codicon-info,\n.text-search-provider-messages .providerMessage .codicon.codicon-info,\n.extensions-viewlet > .extensions .codicon.codicon-info,\n.extension-editor .codicon.codicon-info,\n.preferences-editor .codicon.codicon-info {\n\tcolor: var(--vscode-problemsInfoIcon-foreground);\n}\n",""]);const s=o},76314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=e(t);return t[2]?"@media ".concat(t[2]," {").concat(i,"}"):i})).join("")},t.i=function(e,i,n){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(n)for(var s=0;s{"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},69793:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});const n=i.p+"f6283f7ccaed1249d9ebbcc5a55d5970.ttf"},514:(e,t,i)=>{var n;self.MonacoEnvironment=(n={editorWorkerService:"editor.worker.js"},{globalAPI:!1,getWorkerUrl:function(e,t){var o=i.p,s=(o?o.replace(/\/$/,"")+"/":"")+n[t];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(s)){var r=String(window.location),a=r.substr(0,r.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(s.substring(0,a.length)!==a){/^(\/\/)/.test(s)&&(s=window.location.protocol+s);var l=new Blob(["/*"+t+'*/importScripts("'+s+'");'],{type:"application/javascript"});return URL.createObjectURL(l)}}return s}}),i(99594),i(21283),i(72521),i(22498),i(86302),i(67860),i(70446),i(6233),i(62828),i(75923),i(91625),i(72106),i(75368),i(23676),i(35143),i(94184),i(23542),i(56096),i(52387),i(47738),i(54278),i(97157),i(55600),i(36847),i(94269),i(94806),i(95976),i(68128),i(36105),i(24185),i(71278),i(88407),i(14544),i(72968),i(10668),i(95287),i(21095),i(21845),i(91064),i(43634),i(66473),i(60746),i(55992),i(74984),i(32029),i(94527),i(29277),i(84253),i(1722),i(36651),i(73817),i(16426),i(56446),i(64302),i(25110),i(33432),i(50960),i(12809),i(16703),i(1302),i(16706),i(1184),i(32526),i(80654),i(98690),i(60980),i(21600),i(51302),e.exports=i(57180)},55893:(e,t,i)=>{"use strict";i.d(t,{Dy:()=>s,H8:()=>c,Qu:()=>m,Tc:()=>d,c8:()=>u,gm:()=>l,m0:()=>g,nr:()=>h,pR:()=>r});var n=i(48877);class o{constructor(){this.mapWindowIdToZoomFactor=new Map}getZoomFactor(e){var t;return null!==(t=this.mapWindowIdToZoomFactor.get(this.getWindowId(e)))&&void 0!==t?t:1}getWindowId(e){return e.vscodeWindowId}}function s(e,t,i){"string"==typeof t&&(t=e.matchMedia(t)),t.addEventListener("change",i)}function r(e){return o.INSTANCE.getZoomFactor(e)}o.INSTANCE=new o;const a=navigator.userAgent,l=a.indexOf("Firefox")>=0,d=a.indexOf("AppleWebKit")>=0,c=a.indexOf("Chrome")>=0,h=!c&&a.indexOf("Safari")>=0,u=!c&&!h&&d,g=(a.indexOf("Electron/"),a.indexOf("Android")>=0);let p=!1;if("function"==typeof n.G.matchMedia){const e=n.G.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),t=n.G.matchMedia("(display-mode: fullscreen)");p=e.matches,s(n.G,e,(({matches:e})=>{p&&t.matches||(p=e)}))}function m(){return p}},51577:(e,t,i)=>{"use strict";i.d(t,{e:()=>r});var n=i(55893),o=i(48877),s=i(63339);const r={clipboard:{writeText:s.ib||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:s.ib||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:s.ib||n.Qu()?0:navigator.keyboard||n.nr?1:2,touch:"ontouchstart"in o.G||navigator.maxTouchPoints>0,pointerEvents:o.G.PointerEvent&&("ontouchstart"in o.G||navigator.maxTouchPoints>0)}},39587:(e,t,i)=>{"use strict";i.d(t,{t:()=>n});const n={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:i(53720).K.text,INTERNAL_URI_LIST:"application/vnd.code.uri-list"}},14333:(e,t,i)=>{"use strict";i.d(t,{$:()=>Fe,BC:()=>Me,BK:()=>$,Be:()=>F,Bx:()=>ke,CE:()=>ze,Cl:()=>ee,Di:()=>Qe,Ej:()=>U,Er:()=>ye,Fv:()=>L,H4:()=>Q,Hs:()=>Ae,Ij:()=>R,Iv:()=>S,L9:()=>W,Ln:()=>Te,Mc:()=>Je,OK:()=>Z,Oq:()=>P,PG:()=>O,Pl:()=>Ne,Q2:()=>y,QX:()=>Y,TT:()=>Ge,Tf:()=>Ue,Tr:()=>q,U2:()=>ve,U3:()=>T,WU:()=>We,Wt:()=>fe,X7:()=>ne,XD:()=>X,Xc:()=>A,ZF:()=>C,a:()=>se,a4:()=>qe,b2:()=>M,bo:()=>Be,bq:()=>ie,cL:()=>j,fg:()=>z,fs:()=>xe,fz:()=>re,gI:()=>Ke,h:()=>Xe,i0:()=>je,jD:()=>He,jG:()=>te,jh:()=>le,ko:()=>I,kx:()=>Ce,li:()=>ce,mU:()=>K,nR:()=>oe,nY:()=>we,pN:()=>Ze,q3:()=>x,sb:()=>be,sd:()=>Se,tG:()=>H,vT:()=>Ve,w5:()=>Ie,w_:()=>D,wk:()=>De,y6:()=>G,yt:()=>$e,zK:()=>Le,zk:()=>v});var n=i(55893),o=i(51577),s=i(87594),r=i(9715),a=i(65958),l=i(94327),d=i(2106),c=i(92542),h=i(10998),u=i(13072),g=i(63339),p=i(22344),m=i(48877);const{registerWindow:f,getWindow:v,getDocument:_,getWindows:b,getWindowsCount:w,getWindowId:y,getWindowById:C,hasWindow:k,onDidRegisterWindow:S,onWillUnregisterWindow:x,onDidUnregisterWindow:L}=function(){const e=new Map;(0,m.y)(m.G,1);const t={window:m.G,disposables:new h.Cm};e.set(m.G.vscodeWindowId,t);const i=new d.vl,n=new d.vl,o=new d.vl;return{onDidRegisterWindow:i.event,onWillUnregisterWindow:o.event,onDidUnregisterWindow:n.event,registerWindow(t){if(e.has(t.vscodeWindowId))return h.jG.None;const s=new h.Cm,r={window:t,disposables:s.add(new h.Cm)};return e.set(t.vscodeWindowId,r),s.add((0,h.s)((()=>{e.delete(t.vscodeWindowId),n.fire(t)}))),s.add(I(t,ke.BEFORE_UNLOAD,(()=>{o.fire(t)}))),i.fire(r),s},getWindows:()=>e.values(),getWindowsCount:()=>e.size,getWindowId:e=>e.vscodeWindowId,hasWindow:t=>e.has(t),getWindowById:function(i,n){const o="number"==typeof i?e.get(i):void 0;return null!=o?o:n?t:void 0},getWindow(e){var t;const i=e;if(null===(t=null==i?void 0:i.ownerDocument)||void 0===t?void 0:t.defaultView)return i.ownerDocument.defaultView.window;const n=e;return(null==n?void 0:n.view)?n.view.window:m.G},getDocument:e=>v(e).document}}();function D(e){for(;e.firstChild;)e.firstChild.remove()}class E{constructor(e,t,i,n){this._node=e,this._type=t,this._handler=i,this._options=n||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function I(e,t,i,n){return new E(e,t,i,n)}function N(e,t){return function(i){return t(new r.P(e,i))}}const M=function(e,t,i,n){let o=i;return"click"===t||"mousedown"===t||"contextmenu"===t?o=N(v(e),i):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(o=function(e){return function(t){return e(new s.Z(t))}}(i)),I(e,t,o,n)},A=function(e,t,i){return function(e,t,i){return I(e,g.un&&o.e.pointerEvents?ke.POINTER_DOWN:ke.MOUSE_DOWN,t,i)}(e,N(v(e),t),i)};function T(e,t,i){return(0,a.b7)(e,t,i)}class R extends a.A0{constructor(e,t){super(e,t)}}let P,O;class F extends a.vb{constructor(e){super(),this.defaultTarget=e&&v(e)}cancelAndSet(e,t,i){return super.cancelAndSet(e,t,null!=i?i:this.defaultTarget)}}class B{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){(0,l.dz)(e)}}static sort(e,t){return t.priority-e.priority}}function W(e){return v(e).getComputedStyle(e,null)}function H(e,t){const i=v(e),n=i.document;if(e!==n.body)return new z(e.clientWidth,e.clientHeight);if(g.un&&(null==i?void 0:i.visualViewport))return new z(i.visualViewport.width,i.visualViewport.height);if((null==i?void 0:i.innerWidth)&&i.innerHeight)return new z(i.innerWidth,i.innerHeight);if(n.body&&n.body.clientWidth&&n.body.clientHeight)return new z(n.body.clientWidth,n.body.clientHeight);if(n.documentElement&&n.documentElement.clientWidth&&n.documentElement.clientHeight)return new z(n.documentElement.clientWidth,n.documentElement.clientHeight);if(t)return H(t);throw new Error("Unable to figure out browser width and height")}!function(){const e=new Map,t=new Map,i=new Map,n=new Map;O=(o,s,r=0)=>{const a=y(o),l=new B(s,r);let d=e.get(a);return d||(d=[],e.set(a,d)),d.push(l),i.get(a)||(i.set(a,!0),o.requestAnimationFrame((()=>(o=>{var s;i.set(o,!1);const r=null!==(s=e.get(o))&&void 0!==s?s:[];for(t.set(o,r),e.set(o,[]),n.set(o,!0);r.length>0;)r.sort(B.sort),r.shift().execute();n.set(o,!1)})(a)))),l},P=(e,i,o)=>{const s=y(e);if(n.get(s)){const e=new B(i,o);let n=t.get(s);return n||(n=[],t.set(s,n)),n.push(e),e}return O(e,i,o)}}();class V{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,i){const n=W(e),o=n?n.getPropertyValue(t):"0";return V.convertToPixels(e,o)}static getBorderLeftWidth(e){return V.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return V.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return V.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return V.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return V.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return V.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return V.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return V.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return V.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return V.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return V.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return V.getDimension(e,"margin-bottom","marginBottom")}}class z{constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new z(e,t):this}static is(e){return"object"==typeof e&&"number"==typeof e.height&&"number"==typeof e.width}static lift(e){return e instanceof z?e:new z(e.width,e.height)}static equals(e,t){return e===t||!(!e||!t)&&e.width===t.width&&e.height===t.height}}function j(e){let t=e.offsetParent,i=e.offsetTop,n=e.offsetLeft;for(;null!==(e=e.parentNode)&&e!==e.ownerDocument.body&&e!==e.ownerDocument.documentElement;){i-=e.scrollTop;const o=J(e)?null:W(e);o&&(n-="rtl"!==o.direction?e.scrollLeft:-e.scrollLeft),e===t&&(n+=V.getBorderLeftWidth(e),i+=V.getBorderTopWidth(e),i+=e.offsetTop,n+=e.offsetLeft,t=e.offsetParent)}return{left:n,top:i}}function U(e,t,i){"number"==typeof t&&(e.style.width=`${t}px`),"number"==typeof i&&(e.style.height=`${i}px`)}function $(e){const t=e.getBoundingClientRect(),i=v(e);return{left:t.left+i.scrollX,top:t.top+i.scrollY,width:t.width,height:t.height}}function K(e){let t=e,i=1;do{const e=W(t).zoom;null!=e&&"1"!==e&&(i*=e),t=t.parentElement}while(null!==t&&t!==t.ownerDocument.documentElement);return i}function q(e){const t=V.getMarginLeft(e)+V.getMarginRight(e);return e.offsetWidth+t}function G(e){const t=V.getBorderLeftWidth(e)+V.getBorderRightWidth(e),i=V.getPaddingLeft(e)+V.getPaddingRight(e);return e.offsetWidth-t-i}function Q(e){const t=V.getBorderTopWidth(e)+V.getBorderBottomWidth(e),i=V.getPaddingTop(e)+V.getPaddingBottom(e);return e.offsetHeight-t-i}function Z(e){const t=V.getMarginTop(e)+V.getMarginBottom(e);return e.offsetHeight+t}function Y(e,t){return Boolean(null==t?void 0:t.contains(e))}function X(e,t,i){return!!function(e,t,i){for(;e&&e.nodeType===e.ELEMENT_NODE;){if(e.classList.contains(t))return e;if(i)if("string"==typeof i){if(e.classList.contains(i))return null}else if(e===i)return null;e=e.parentNode}return null}(e,t,i)}function J(e){return e&&!!e.host&&!!e.mode}function ee(e){return!!te(e)}function te(e){for(var t;e.parentNode;){if(e===(null===(t=e.ownerDocument)||void 0===t?void 0:t.body))return null;e=e.parentNode}return J(e)?e:null}function ie(){let e=se().activeElement;for(;null==e?void 0:e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function ne(e){return ie()===e}function oe(e){return Y(ie(),e)}function se(){var e;return w()<=1?m.G.document:null!==(e=Array.from(b()).map((({window:e})=>e.document)).find((e=>e.hasFocus())))&&void 0!==e?e:m.G.document}function re(){var e,t;return null!==(t=null===(e=se().defaultView)||void 0===e?void 0:e.window)&&void 0!==t?t:m.G}z.None=new z(0,0);const ae=new Map;function le(){return new de}class de{constructor(){this._currentCssStyle="",this._styleSheet=void 0}setStyle(e){e!==this._currentCssStyle&&(this._currentCssStyle=e,this._styleSheet?this._styleSheet.innerText=e:this._styleSheet=ce(m.G.document.head,(t=>t.innerText=e)))}dispose(){this._styleSheet&&(this._styleSheet.remove(),this._styleSheet=void 0)}}function ce(e=m.G.document.head,t,i){const n=document.createElement("style");if(n.type="text/css",n.media="screen",null==t||t(n),e.appendChild(n),i&&i.add((0,h.s)((()=>n.remove()))),e===m.G.document.head){const e=new Set;ae.set(n,e);for(const{window:t,disposables:o}of b()){if(t===m.G)continue;const s=o.add(he(n,e,t));null==i||i.add(s)}}return n}function he(e,t,i){var n,o;const s=new h.Cm,r=e.cloneNode(!0);i.document.head.appendChild(r),s.add((0,h.s)((()=>r.remove())));for(const t of me(e))null===(n=r.sheet)||void 0===n||n.insertRule(t.cssText,null===(o=r.sheet)||void 0===o?void 0:o.cssRules.length);return s.add(ue.observe(e,s,{childList:!0})((()=>{r.textContent=e.textContent}))),t.add(r),s.add((0,h.s)((()=>t.delete(r)))),s}const ue=new class{constructor(){this.mutationObservers=new Map}observe(e,t,i){let n=this.mutationObservers.get(e);n||(n=new Map,this.mutationObservers.set(e,n));const o=(0,p.tW)(i);let s=n.get(o);if(s)s.users+=1;else{const r=new d.vl,a=new MutationObserver((e=>r.fire(e)));a.observe(e,i);const l=s={users:1,observer:a,onDidMutate:r.event};t.add((0,h.s)((()=>{l.users-=1,0===l.users&&(r.dispose(),a.disconnect(),null==n||n.delete(o),0===(null==n?void 0:n.size)&&this.mutationObservers.delete(e))}))),n.set(o,s)}return s.onDidMutate}};let ge=null;function pe(){return ge||(ge=ce()),ge}function me(e){var t,i;return(null===(t=null==e?void 0:e.sheet)||void 0===t?void 0:t.rules)?e.sheet.rules:(null===(i=null==e?void 0:e.sheet)||void 0===i?void 0:i.cssRules)?e.sheet.cssRules:[]}function fe(e,t,i=pe()){var n,o;if(i&&t){null===(n=i.sheet)||void 0===n||n.insertRule(`${e} {${t}}`,0);for(const n of null!==(o=ae.get(i))&&void 0!==o?o:[])fe(e,t,n)}}function ve(e,t=pe()){var i,n;if(!t)return;const o=me(t),s=[];for(let t=0;t=0;e--)null===(i=t.sheet)||void 0===i||i.deleteRule(s[e]);for(const i of null!==(n=ae.get(t))&&void 0!==n?n:[])ve(e,i)}function _e(e){return"string"==typeof e.selectorText}function be(e){return e instanceof HTMLElement||e instanceof v(e).HTMLElement}function we(e){return e instanceof HTMLAnchorElement||e instanceof v(e).HTMLAnchorElement}function ye(e){return e instanceof MouseEvent||e instanceof v(e).MouseEvent}function Ce(e){return e instanceof KeyboardEvent||e instanceof v(e).KeyboardEvent}const ke={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",PASTE:"paste",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:n.Tc?"webkitAnimationStart":"animationstart",ANIMATION_END:n.Tc?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:n.Tc?"webkitAnimationIteration":"animationiteration"};function Se(e){const t=e;return!(!t||"function"!=typeof t.preventDefault||"function"!=typeof t.stopPropagation)}const xe={stop:(e,t)=>(e.preventDefault(),t&&e.stopPropagation(),e)};function Le(e){const t=[];for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)t[i]=e.scrollTop,e=e.parentNode;return t}function De(e,t){for(let i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)e.scrollTop!==t[i]&&(e.scrollTop=t[i]),e=e.parentNode}class Ee extends h.jG{static hasFocusWithin(e){if(be(e)){const t=te(e);return Y(t?t.activeElement:e.ownerDocument.activeElement,e)}{const t=e;return Y(t.document.activeElement,t.document)}}constructor(e){super(),this._onDidFocus=this._register(new d.vl),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new d.vl),this.onDidBlur=this._onDidBlur.event;let t=Ee.hasFocusWithin(e),i=!1;const n=()=>{i=!1,t||(t=!0,this._onDidFocus.fire())},o=()=>{t&&(i=!0,(be(e)?v(e):e).setTimeout((()=>{i&&(i=!1,t=!1,this._onDidBlur.fire())}),0))};this._refreshStateHandler=()=>{Ee.hasFocusWithin(e)!==t&&(t?o():n())},this._register(I(e,ke.FOCUS,n,!0)),this._register(I(e,ke.BLUR,o,!0)),be(e)&&(this._register(I(e,ke.FOCUS_IN,(()=>this._refreshStateHandler()))),this._register(I(e,ke.FOCUS_OUT,(()=>this._refreshStateHandler()))))}}function Ie(e){return new Ee(e)}function Ne(e,t){return e.after(t),t}function Me(e,...t){if(e.append(...t),1===t.length&&"string"!=typeof t[0])return t[0]}function Ae(e,t){return e.insertBefore(t,e.firstChild),t}function Te(e,...t){e.innerText="",Me(e,...t)}const Re=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var Pe;function Oe(e,t,i,...n){const o=Re.exec(t);if(!o)throw new Error("Bad use of emmet");const s=o[1]||"div";let r;return r=e!==Pe.HTML?document.createElementNS(e,s):document.createElement(s),o[3]&&(r.id=o[3]),o[4]&&(r.className=o[4].replace(/\./g," ").trim()),i&&Object.entries(i).forEach((([e,t])=>{void 0!==t&&(/^on\w+$/.test(e)?r[e]=t:"selected"===e?t&&r.setAttribute(e,"true"):r.setAttribute(e,t))})),r.append(...n),r}function Fe(e,t,...i){return Oe(Pe.HTML,e,t,...i)}function Be(e,...t){e?We(...t):He(...t)}function We(...e){for(const t of e)t.style.display="",t.removeAttribute("aria-hidden")}function He(...e){for(const t of e)t.style.display="none",t.setAttribute("aria-hidden","true")}function Ve(e,t){const i=e.devicePixelRatio*t;return Math.max(1,Math.floor(i))/e.devicePixelRatio}function ze(e){m.G.open(e,"_blank","noopener")}function je(e,t){const i=()=>{t(),n=O(e,i)};let n=O(e,i);return(0,h.s)((()=>n.dispose()))}function Ue(e){return e?`url('${u.zl.uriToBrowserUri(e).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function $e(e){return`'${e.replace(/'/g,"%27")}'`}function Ke(e,t){if(void 0!==e){const i=e.match(/^\s*var\((.+)\)$/);if(i){const e=i[1].split(",",2);return 2===e.length&&(t=Ke(e[1].trim(),t)),`var(${e[0]}, ${t})`}return e}return t}function qe(e,t=!1){const i=document.createElement("a");return c.$w("afterSanitizeAttributes",(n=>{for(const o of["href","src"])if(n.hasAttribute(o)){const s=n.getAttribute(o);if("href"===o&&s.startsWith("#"))continue;if(i.href=s,!e.includes(i.protocol.replace(/:$/,""))){if(t&&"src"===o&&i.href.startsWith("data:"))continue;n.removeAttribute(o)}}})),(0,h.s)((()=>{c.SV("afterSanitizeAttributes")}))}!function(e){e.HTML="http://www.w3.org/1999/xhtml",e.SVG="http://www.w3.org/2000/svg"}(Pe||(Pe={})),Fe.SVG=function(e,t,...i){return Oe(Pe.SVG,e,t,...i)},u.Ez.setPreferredWebSchema(/^https:/.test(m.G.location.href)?"https":"http");const Ge=Object.freeze(["a","abbr","b","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","label","li","mark","ol","p","pre","q","rp","rt","ruby","samp","small","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","tt","u","ul","var","video","wbr"]);Object.freeze({ALLOWED_TAGS:["a","button","blockquote","code","div","h1","h2","h3","h4","h5","h6","hr","input","label","li","p","pre","select","small","span","strong","textarea","ul","ol"],ALLOWED_ATTR:["href","data-href","data-command","target","title","name","src","alt","class","id","role","tabindex","style","data-code","width","height","align","x-dispatch","required","checked","placeholder","type","start"],RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,RETURN_TRUSTED_TYPE:!0});class Qe extends d.vl{constructor(){super(),this._subscriptions=new h.Cm,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(d.Jh.runAndSubscribe(S,(({window:e,disposables:t})=>this.registerListeners(e,t)),{window:m.G,disposables:this._subscriptions}))}registerListeners(e,t){t.add(I(e,"keydown",(e=>{if(e.defaultPrevented)return;const t=new s.Z(e);if(6!==t.keyCode||!e.repeat){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else{if(6===t.keyCode)return;this._keyStatus.lastKeyPressed=void 0}this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))}}),!0)),t.add(I(e,"keyup",(e=>{e.defaultPrevented||(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)))}),!0)),t.add(I(e.document.body,"mousedown",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),t.add(I(e.document.body,"mouseup",(()=>{this._keyStatus.lastKeyPressed=void 0}),!0)),t.add(I(e.document.body,"mousemove",(e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)}),!0)),t.add(I(e,"blur",(()=>{this.resetKeyStatus()})))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return Qe.instance||(Qe.instance=new Qe),Qe.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}class Ze extends h.jG{constructor(e,t){super(),this.element=e,this.callbacks=t,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(I(this.element,ke.DRAG_START,(e=>{var t,i;null===(i=(t=this.callbacks).onDragStart)||void 0===i||i.call(t,e)}))),this.callbacks.onDrag&&this._register(I(this.element,ke.DRAG,(e=>{var t,i;null===(i=(t=this.callbacks).onDrag)||void 0===i||i.call(t,e)}))),this._register(I(this.element,ke.DRAG_ENTER,(e=>{var t,i;this.counter++,this.dragStartTime=e.timeStamp,null===(i=(t=this.callbacks).onDragEnter)||void 0===i||i.call(t,e)}))),this._register(I(this.element,ke.DRAG_OVER,(e=>{var t,i;e.preventDefault(),null===(i=(t=this.callbacks).onDragOver)||void 0===i||i.call(t,e,e.timeStamp-this.dragStartTime)}))),this._register(I(this.element,ke.DRAG_LEAVE,(e=>{var t,i;this.counter--,0===this.counter&&(this.dragStartTime=0,null===(i=(t=this.callbacks).onDragLeave)||void 0===i||i.call(t,e))}))),this._register(I(this.element,ke.DRAG_END,(e=>{var t,i;this.counter=0,this.dragStartTime=0,null===(i=(t=this.callbacks).onDragEnd)||void 0===i||i.call(t,e)}))),this._register(I(this.element,ke.DROP,(e=>{var t,i;this.counter=0,this.dragStartTime=0,null===(i=(t=this.callbacks).onDrop)||void 0===i||i.call(t,e)})))}}const Ye=/(?[\w\-]+)?(?:#(?[\w\-]+))?(?(?:\.(?:[\w\-]+))*)(?:@(?(?:[\w\_])+))?/;function Xe(e,...t){let i,n;Array.isArray(t[0])?(i={},n=t[0]):(i=t[0]||{},n=t[1]);const o=Ye.exec(e);if(!o||!o.groups)throw new Error("Bad use of h");const s=o.groups.tag||"div",r=document.createElement(s);o.groups.id&&(r.id=o.groups.id);const a=[];if(o.groups.class)for(const e of o.groups.class.split("."))""!==e&&a.push(e);if(void 0!==i.className)for(const e of i.className.split("."))""!==e&&a.push(e);a.length>0&&(r.className=a.join(" "));const l={};if(o.groups.name&&(l[o.groups.name]=r),n)for(const e of n)be(e)?r.appendChild(e):"string"==typeof e?r.append(e):"root"in e&&(Object.assign(l,e),r.appendChild(e.root));for(const[e,t]of Object.entries(i))if("className"!==e)if("style"===e)for(const[e,i]of Object.entries(t))r.style.setProperty(et(e),"number"==typeof i?i+"px":""+i);else"tabIndex"===e?r.tabIndex=t:r.setAttribute(et(e),t.toString());return l.root=r,l}function Je(e,...t){let i,n;Array.isArray(t[0])?(i={},n=t[0]):(i=t[0]||{},n=t[1]);const o=Ye.exec(e);if(!o||!o.groups)throw new Error("Bad use of h");const s=o.groups.tag||"div",r=document.createElementNS("http://www.w3.org/2000/svg",s);o.groups.id&&(r.id=o.groups.id);const a=[];if(o.groups.class)for(const e of o.groups.class.split("."))""!==e&&a.push(e);if(void 0!==i.className)for(const e of i.className.split("."))""!==e&&a.push(e);a.length>0&&(r.className=a.join(" "));const l={};if(o.groups.name&&(l[o.groups.name]=r),n)for(const e of n)be(e)?r.appendChild(e):"string"==typeof e?r.append(e):"root"in e&&(Object.assign(l,e),r.appendChild(e.root));for(const[e,t]of Object.entries(i))if("className"!==e)if("style"===e)for(const[e,i]of Object.entries(t))r.style.setProperty(et(e),"number"==typeof i?i+"px":""+i);else"tabIndex"===e?r.tabIndex=t:r.setAttribute(et(e),t.toString());return l.root=r,l}function et(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}},92542:(e,t,i)=>{"use strict";i.d(t,{$w:()=>J,SV:()=>ee,aj:()=>X});const{entries:n,setPrototypeOf:o,isFrozen:s,getPrototypeOf:r,getOwnPropertyDescriptor:a}=Object;let{freeze:l,seal:d,create:c}=Object,{apply:h,construct:u}="undefined"!=typeof Reflect&&Reflect;h||(h=function(e,t,i){return e.apply(t,i)}),l||(l=function(e){return e}),d||(d=function(e){return e}),u||(u=function(e,t){return new e(...t)});const g=x(Array.prototype.forEach),p=x(Array.prototype.pop),m=x(Array.prototype.push),f=x(String.prototype.toLowerCase),v=x(String.prototype.toString),_=x(String.prototype.match),b=x(String.prototype.replace),w=x(String.prototype.indexOf),y=x(String.prototype.trim),C=x(RegExp.prototype.test),k=(S=TypeError,function(){for(var e=arguments.length,t=new Array(e),i=0;i1?i-1:0),o=1;o/gm),z=d(/\${[\w\W]*}/gm),j=d(/^data-[\-\w.\u00B7-\uFFFF]/),U=d(/^aria-[\-\w]+$/),$=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=d(/^(?:\w+script|data):/i),q=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G=d(/^html$/i);var Q=Object.freeze({__proto__:null,MUSTACHE_EXPR:H,ERB_EXPR:V,TMPLIT_EXPR:z,DATA_ATTR:j,ARIA_ATTR:U,IS_ALLOWED_URI:$,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:q,DOCTYPE_NAME:G});const Z=()=>"undefined"==typeof window?null:window;var Y=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z();const i=t=>e(t);if(i.version="3.0.5",i.removed=[],!t||!t.document||9!==t.document.nodeType)return i.isSupported=!1,i;const o=t.document,s=o.currentScript;let{document:r}=t;const{DocumentFragment:a,HTMLTemplateElement:d,Node:c,Element:h,NodeFilter:u,NamedNodeMap:S=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:x,DOMParser:H,trustedTypes:V}=t,z=h.prototype,j=E(z,"cloneNode"),U=E(z,"nextSibling"),K=E(z,"childNodes"),q=E(z,"parentNode");if("function"==typeof d){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let Y,X="";const{implementation:J,createNodeIterator:ee,createDocumentFragment:te,getElementsByTagName:ie}=r,{importNode:ne}=o;let oe={};i.isSupported="function"==typeof n&&"function"==typeof q&&J&&void 0!==J.createHTMLDocument;const{MUSTACHE_EXPR:se,ERB_EXPR:re,TMPLIT_EXPR:ae,DATA_ATTR:le,ARIA_ATTR:de,IS_SCRIPT_OR_DATA:ce,ATTR_WHITESPACE:he}=Q;let{IS_ALLOWED_URI:ue}=Q,ge=null;const pe=L({},[...I,...N,...M,...T,...P]);let me=null;const fe=L({},[...O,...F,...B,...W]);let ve=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),_e=null,be=null,we=!0,ye=!0,Ce=!1,ke=!0,Se=!1,xe=!1,Le=!1,De=!1,Ee=!1,Ie=!1,Ne=!1,Me=!0,Ae=!1,Te=!0,Re=!1,Pe={},Oe=null;const Fe=L({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Be=null;const We=L({},["audio","video","img","source","image","track"]);let He=null;const Ve=L({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ze="http://www.w3.org/1998/Math/MathML",je="http://www.w3.org/2000/svg",Ue="http://www.w3.org/1999/xhtml";let $e=Ue,Ke=!1,qe=null;const Ge=L({},[ze,je,Ue],v);let Qe;const Ze=["application/xhtml+xml","text/html"];let Ye,Xe=null;const Je=r.createElement("form"),et=function(e){return e instanceof RegExp||e instanceof Function},tt=function(e){if(!Xe||Xe!==e){if(e&&"object"==typeof e||(e={}),e=D(e),Qe=Qe=-1===Ze.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ye="application/xhtml+xml"===Qe?v:f,ge="ALLOWED_TAGS"in e?L({},e.ALLOWED_TAGS,Ye):pe,me="ALLOWED_ATTR"in e?L({},e.ALLOWED_ATTR,Ye):fe,qe="ALLOWED_NAMESPACES"in e?L({},e.ALLOWED_NAMESPACES,v):Ge,He="ADD_URI_SAFE_ATTR"in e?L(D(Ve),e.ADD_URI_SAFE_ATTR,Ye):Ve,Be="ADD_DATA_URI_TAGS"in e?L(D(We),e.ADD_DATA_URI_TAGS,Ye):We,Oe="FORBID_CONTENTS"in e?L({},e.FORBID_CONTENTS,Ye):Fe,_e="FORBID_TAGS"in e?L({},e.FORBID_TAGS,Ye):{},be="FORBID_ATTR"in e?L({},e.FORBID_ATTR,Ye):{},Pe="USE_PROFILES"in e&&e.USE_PROFILES,we=!1!==e.ALLOW_ARIA_ATTR,ye=!1!==e.ALLOW_DATA_ATTR,Ce=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ke=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Se=e.SAFE_FOR_TEMPLATES||!1,xe=e.WHOLE_DOCUMENT||!1,Ee=e.RETURN_DOM||!1,Ie=e.RETURN_DOM_FRAGMENT||!1,Ne=e.RETURN_TRUSTED_TYPE||!1,De=e.FORCE_BODY||!1,Me=!1!==e.SANITIZE_DOM,Ae=e.SANITIZE_NAMED_PROPS||!1,Te=!1!==e.KEEP_CONTENT,Re=e.IN_PLACE||!1,ue=e.ALLOWED_URI_REGEXP||$,$e=e.NAMESPACE||Ue,ve=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&et(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ve.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&et(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ve.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ve.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Se&&(ye=!1),Ie&&(Ee=!0),Pe&&(ge=L({},[...P]),me=[],!0===Pe.html&&(L(ge,I),L(me,O)),!0===Pe.svg&&(L(ge,N),L(me,F),L(me,W)),!0===Pe.svgFilters&&(L(ge,M),L(me,F),L(me,W)),!0===Pe.mathMl&&(L(ge,T),L(me,B),L(me,W))),e.ADD_TAGS&&(ge===pe&&(ge=D(ge)),L(ge,e.ADD_TAGS,Ye)),e.ADD_ATTR&&(me===fe&&(me=D(me)),L(me,e.ADD_ATTR,Ye)),e.ADD_URI_SAFE_ATTR&&L(He,e.ADD_URI_SAFE_ATTR,Ye),e.FORBID_CONTENTS&&(Oe===Fe&&(Oe=D(Oe)),L(Oe,e.FORBID_CONTENTS,Ye)),Te&&(ge["#text"]=!0),xe&&L(ge,["html","head","body"]),ge.table&&(L(ge,["tbody"]),delete _e.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw k('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw k('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Y=e.TRUSTED_TYPES_POLICY,X=Y.createHTML("")}else void 0===Y&&(Y=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let i=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(i=t.getAttribute(n));const o="dompurify"+(i?"#"+i:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(V,s)),null!==Y&&"string"==typeof X&&(X=Y.createHTML(""));l&&l(e),Xe=e}},it=L({},["mi","mo","mn","ms","mtext"]),nt=L({},["foreignobject","desc","title","annotation-xml"]),ot=L({},["title","style","font","a","script"]),st=L({},N);L(st,M),L(st,A);const rt=L({},T);L(rt,R);const at=function(e){m(i.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},lt=function(e,t){try{m(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){m(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!me[e])if(Ee||Ie)try{at(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},dt=function(e){let t,i;if(De)e=""+e;else{const t=_(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===Qe&&$e===Ue&&(e=''+e+"");const n=Y?Y.createHTML(e):e;if($e===Ue)try{t=(new H).parseFromString(n,Qe)}catch(e){}if(!t||!t.documentElement){t=J.createDocument($e,"template",null);try{t.documentElement.innerHTML=Ke?X:n}catch(e){}}const o=t.body||t.documentElement;return e&&i&&o.insertBefore(r.createTextNode(i),o.childNodes[0]||null),$e===Ue?ie.call(t,xe?"html":"body")[0]:xe?t.documentElement:o},ct=function(e){return ee.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},ht=function(e){return"object"==typeof c?e instanceof c:e&&"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},ut=function(e,t,n){oe[e]&&g(oe[e],(e=>{e.call(i,t,n,Xe)}))},gt=function(e){let t;if(ut("beforeSanitizeElements",e,null),(n=e)instanceof x&&("string"!=typeof n.nodeName||"string"!=typeof n.textContent||"function"!=typeof n.removeChild||!(n.attributes instanceof S)||"function"!=typeof n.removeAttribute||"function"!=typeof n.setAttribute||"string"!=typeof n.namespaceURI||"function"!=typeof n.insertBefore||"function"!=typeof n.hasChildNodes))return at(e),!0;var n;const o=Ye(e.nodeName);if(ut("uponSanitizeElement",e,{tagName:o,allowedTags:ge}),e.hasChildNodes()&&!ht(e.firstElementChild)&&(!ht(e.content)||!ht(e.content.firstElementChild))&&C(/<[/\w]/g,e.innerHTML)&&C(/<[/\w]/g,e.textContent))return at(e),!0;if(!ge[o]||_e[o]){if(!_e[o]&&mt(o)){if(ve.tagNameCheck instanceof RegExp&&C(ve.tagNameCheck,o))return!1;if(ve.tagNameCheck instanceof Function&&ve.tagNameCheck(o))return!1}if(Te&&!Oe[o]){const t=q(e)||e.parentNode,i=K(e)||e.childNodes;if(i&&t)for(let n=i.length-1;n>=0;--n)t.insertBefore(j(i[n],!0),U(e))}return at(e),!0}return e instanceof h&&!function(e){let t=q(e);t&&t.tagName||(t={namespaceURI:$e,tagName:"template"});const i=f(e.tagName),n=f(t.tagName);return!!qe[e.namespaceURI]&&(e.namespaceURI===je?t.namespaceURI===Ue?"svg"===i:t.namespaceURI===ze?"svg"===i&&("annotation-xml"===n||it[n]):Boolean(st[i]):e.namespaceURI===ze?t.namespaceURI===Ue?"math"===i:t.namespaceURI===je?"math"===i&&nt[n]:Boolean(rt[i]):e.namespaceURI===Ue?!(t.namespaceURI===je&&!nt[n])&&!(t.namespaceURI===ze&&!it[n])&&!rt[i]&&(ot[i]||!st[i]):!("application/xhtml+xml"!==Qe||!qe[e.namespaceURI]))}(e)?(at(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!C(/<\/no(script|embed|frames)/i,e.innerHTML)?(Se&&3===e.nodeType&&(t=e.textContent,t=b(t,se," "),t=b(t,re," "),t=b(t,ae," "),e.textContent!==t&&(m(i.removed,{element:e.cloneNode()}),e.textContent=t)),ut("afterSanitizeElements",e,null),!1):(at(e),!0)},pt=function(e,t,i){if(Me&&("id"===t||"name"===t)&&(i in r||i in Je))return!1;if(ye&&!be[t]&&C(le,t));else if(we&&C(de,t));else if(!me[t]||be[t]){if(!(mt(e)&&(ve.tagNameCheck instanceof RegExp&&C(ve.tagNameCheck,e)||ve.tagNameCheck instanceof Function&&ve.tagNameCheck(e))&&(ve.attributeNameCheck instanceof RegExp&&C(ve.attributeNameCheck,t)||ve.attributeNameCheck instanceof Function&&ve.attributeNameCheck(t))||"is"===t&&ve.allowCustomizedBuiltInElements&&(ve.tagNameCheck instanceof RegExp&&C(ve.tagNameCheck,i)||ve.tagNameCheck instanceof Function&&ve.tagNameCheck(i))))return!1}else if(He[t]);else if(C(ue,b(i,he,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==w(i,"data:")||!Be[e])if(Ce&&!C(ce,b(i,he,"")));else if(i)return!1;return!0},mt=function(e){return e.indexOf("-")>0},ft=function(e){let t,n,o,s;ut("beforeSanitizeAttributes",e,null);const{attributes:r}=e;if(!r)return;const a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:me};for(s=r.length;s--;){t=r[s];const{name:l,namespaceURI:d}=t;if(n="value"===l?t.value:y(t.value),o=Ye(l),a.attrName=o,a.attrValue=n,a.keepAttr=!0,a.forceKeepAttr=void 0,ut("uponSanitizeAttribute",e,a),n=a.attrValue,a.forceKeepAttr)continue;if(lt(l,e),!a.keepAttr)continue;if(!ke&&C(/\/>/i,n)){lt(l,e);continue}Se&&(n=b(n,se," "),n=b(n,re," "),n=b(n,ae," "));const c=Ye(e.nodeName);if(pt(c,o,n)){if(!Ae||"id"!==o&&"name"!==o||(lt(l,e),n="user-content-"+n),Y&&"object"==typeof V&&"function"==typeof V.getAttributeType)if(d);else switch(V.getAttributeType(c,o)){case"TrustedHTML":n=Y.createHTML(n);break;case"TrustedScriptURL":n=Y.createScriptURL(n)}try{d?e.setAttributeNS(d,l,n):e.setAttribute(l,n),p(i.removed)}catch(e){}}}ut("afterSanitizeAttributes",e,null)},vt=function e(t){let i;const n=ct(t);for(ut("beforeSanitizeShadowDOM",t,null);i=n.nextNode();)ut("uponSanitizeShadowNode",i,null),gt(i)||(i.content instanceof a&&e(i.content),ft(i));ut("afterSanitizeShadowDOM",t,null)};return i.sanitize=function(e){let t,n,s,r,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Ke=!e,Ke&&(e="\x3c!--\x3e"),"string"!=typeof e&&!ht(e)){if("function"!=typeof e.toString)throw k("toString is not a function");if("string"!=typeof(e=e.toString()))throw k("dirty is not a string, aborting")}if(!i.isSupported)return e;if(Le||tt(l),i.removed=[],"string"==typeof e&&(Re=!1),Re){if(e.nodeName){const t=Ye(e.nodeName);if(!ge[t]||_e[t])throw k("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)t=dt("\x3c!----\x3e"),n=t.ownerDocument.importNode(e,!0),1===n.nodeType&&"BODY"===n.nodeName||"HTML"===n.nodeName?t=n:t.appendChild(n);else{if(!Ee&&!Se&&!xe&&-1===e.indexOf("<"))return Y&&Ne?Y.createHTML(e):e;if(t=dt(e),!t)return Ee?null:Ne?X:""}t&&De&&at(t.firstChild);const d=ct(Re?e:t);for(;s=d.nextNode();)gt(s)||(s.content instanceof a&&vt(s.content),ft(s));if(Re)return e;if(Ee){if(Ie)for(r=te.call(t.ownerDocument);t.firstChild;)r.appendChild(t.firstChild);else r=t;return(me.shadowroot||me.shadowrootmode)&&(r=ne.call(o,r,!0)),r}let h=xe?t.outerHTML:t.innerHTML;return xe&&ge["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&C(G,t.ownerDocument.doctype.name)&&(h="\n"+h),Se&&(h=b(h,se," "),h=b(h,re," "),h=b(h,ae," ")),Y&&Ne?Y.createHTML(h):h},i.setConfig=function(e){tt(e),Le=!0},i.clearConfig=function(){Xe=null,Le=!1},i.isValidAttribute=function(e,t,i){Xe||tt({});const n=Ye(e),o=Ye(t);return pt(n,o,i)},i.addHook=function(e,t){"function"==typeof t&&(oe[e]=oe[e]||[],m(oe[e],t))},i.removeHook=function(e){if(oe[e])return p(oe[e])},i.removeHooks=function(e){oe[e]&&(oe[e]=[])},i.removeAllHooks=function(){oe={}},i}();Y.version,Y.isSupported;const X=Y.sanitize,J=(Y.setConfig,Y.clearConfig,Y.isValidAttribute,Y.addHook),ee=Y.removeHook;Y.removeHooks,Y.removeAllHooks},34061:(e,t,i)=>{"use strict";i.d(t,{f:()=>o});var n=i(2106);class o{get event(){return this.emitter.event}constructor(e,t,i){const o=e=>this.emitter.fire(e);this.emitter=new n.vl({onWillAddFirstListener:()=>e.addEventListener(t,o,i),onDidRemoveLastListener:()=>e.removeEventListener(t,o,i)})}dispose(){this.emitter.dispose()}}},5043:(e,t,i)=>{"use strict";i.d(t,{D:()=>n,Z:()=>s});class n{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){const t=o(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){const t=o(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){const t=o(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){const t=o(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){const t=o(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){const t=o(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){const t=o(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){const t=o(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){const t=o(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){const t=o(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){const t=o(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function o(e){return"number"==typeof e?`${e}px`:e}function s(e){return new n(e)}},69827:(e,t,i)=>{"use strict";i.d(t,{z:()=>o});var n=i(63339);const o=n.uF?'"Segoe WPC", "Segoe UI", sans-serif':n.zx?"-apple-system, BlinkMacSystemFont, sans-serif":'system-ui, "Ubuntu", "Droid Sans", sans-serif'},88213:(e,t,i)=>{"use strict";i.d(t,{S5:()=>o,n:()=>r,yk:()=>s});var n=i(14333);function o(e,t={}){const i=r(t);return i.textContent=e,i}function s(e,t={}){const i=r(t);return l(i,function(e,t){const i={type:1,children:[]};let n=0,o=i;const s=[],r=new a(e);for(;!r.eos();){let e=r.next();const i="\\"===e&&0!==d(r.peek(),t);if(i&&(e=r.next()),i||0===d(e,t)||e!==r.peek())if("\n"===e)2===o.type&&(o=s.pop()),o.children.push({type:8});else if(2!==o.type){const t={type:2,content:e};o.children.push(t),s.push(o),o=t}else o.content+=e;else{r.advance(),2===o.type&&(o=s.pop());const i=d(e,t);if(o.type===i||5===o.type&&6===i)o=s.pop();else{const e={type:i,children:[]};5===i&&(e.index=n,n++),o.children.push(e),s.push(o),o=e}}}return 2===o.type&&(o=s.pop()),s.length,i}(e,!!t.renderCodeSegments),t.actionHandler,t.renderCodeSegments),i}function r(e){const t=e.inline?"span":"div",i=document.createElement(t);return e.className&&(i.className=e.className),i}class a{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){const e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}function l(e,t,i,o){let s;if(2===t.type)s=document.createTextNode(t.content||"");else if(3===t.type)s=document.createElement("b");else if(4===t.type)s=document.createElement("i");else if(7===t.type&&o)s=document.createElement("code");else if(5===t.type&&i){const e=document.createElement("a");i.disposables.add(n.b2(e,"click",(e=>{i.callback(String(t.index),e)}))),s=e}else 8===t.type?s=document.createElement("br"):1===t.type&&(s=e);s&&e!==s&&e.appendChild(s),s&&Array.isArray(t.children)&&t.children.forEach((e=>{l(s,e,i,o)}))}function d(e,t){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return t?7:0;default:return 0}}},10176:(e,t,i)=>{"use strict";i.d(t,{_:()=>s});var n=i(14333),o=i(10998);class s{constructor(){this._hooks=new o.Cm,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;const i=this._onStopCallback;this._onStopCallback=null,e&&i&&i(t)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(e,t,i,s,r){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=s,this._onStopCallback=r;let a=e;try{e.setPointerCapture(t),this._hooks.add((0,o.s)((()=>{try{e.releasePointerCapture(t)}catch(e){}})))}catch(t){a=n.zk(e)}this._hooks.add(n.ko(a,n.Bx.POINTER_MOVE,(e=>{e.buttons===i?(e.preventDefault(),this._pointerMoveCallback(e)):this.stopMonitoring(!0)}))),this._hooks.add(n.ko(a,n.Bx.POINTER_UP,(e=>this.stopMonitoring(!0))))}}},87594:(e,t,i)=>{"use strict";i.d(t,{Z:()=>d});var n=i(55893),o=i(68387),s=i(39619),r=i(63339);const a=r.zx?256:2048,l=r.zx?2048:256;class d{constructor(e){var t;this._standardKeyboardEventBrand=!0;const i=e;this.browserEvent=i,this.target=i.target,this.ctrlKey=i.ctrlKey,this.shiftKey=i.shiftKey,this.altKey=i.altKey,this.metaKey=i.metaKey,this.altGraphKey=null===(t=i.getModifierState)||void 0===t?void 0:t.call(i,"AltGraph"),this.keyCode=function(e){if(e.charCode){const t=String.fromCharCode(e.charCode).toUpperCase();return o.YM.fromString(t)}const t=e.keyCode;if(3===t)return 7;if(n.gm)switch(t){case 59:return 85;case 60:if(r.j9)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(r.zx)return 57}else if(n.Tc){if(r.zx&&93===t)return 57;if(!r.zx&&92===t)return 57}return o.uw[t]||0}(i),this.code=i.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=a),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=l),t|=e,t}_computeKeyCodeChord(){let e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new s.dG(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}},36930:(e,t,i)=>{"use strict";i.d(t,{Gc:()=>L,R9:()=>A});var n=i(14333),o=i(92542),s=i(34061),r=i(88213),a=i(87594),l=i(9715),d=i(91818),c=i(94327),h=i(2106),u=i(90028),g=i(24594),p=i(94664),m=i(63946),f=i(10998);let v={};!function(){function e(e,t){t(v)}var t,i;e.amd=!0,t=this,i=function(e){function t(e,t){for(var i=0;ie.length)&&(t=e.length);for(var i=0,n=new Array(t);i=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}e.defaults={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};var s=/[&<>"']/,r=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,l=/[<>"']|&(?!#?\w+;)/g,d={"&":"&","<":"<",">":">",'"':""","'":"'"},c=function(e){return d[e]};function h(e,t){if(t){if(s.test(e))return e.replace(r,c)}else if(a.test(e))return e.replace(l,c);return e}var u=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function g(e){return e.replace(u,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var p=/(^|[^\[])\^/g;function m(e,t){e="string"==typeof e?e:e.source,t=t||"";var i={replace:function(t,n){return n=(n=n.source||n).replace(p,"$1"),e=e.replace(t,n),i},getRegex:function(){return new RegExp(e,t)}};return i}var f=/[^\w:]/g,v=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function _(e,t,i){if(e){var n;try{n=decodeURIComponent(g(i)).replace(f,"").toLowerCase()}catch(e){return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}t&&!v.test(i)&&(i=function(e,t){b[" "+e]||(w.test(e)?b[" "+e]=e+"/":b[" "+e]=L(e,"/",!0));var i=-1===(e=b[" "+e]).indexOf(":");return"//"===t.substring(0,2)?i?t:e.replace(y,"$1")+t:"/"===t.charAt(0)?i?t:e.replace(C,"$1")+t:e+t}(t,i));try{i=encodeURI(i).replace(/%25/g,"%")}catch(e){return null}return i}var b={},w=/^[^:]+:\/*[^/]*$/,y=/^([^:]+:)[\s\S]*$/,C=/^([^:]+:\/*[^/]*)[\s\S]*$/,k={exec:function(){}};function S(e){for(var t,i,n=1;n=0&&"\\"===i[o];)n=!n;return n?"|":" |"})).split(/ \|/),n=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),i.length>t)i.splice(t);else for(;i.length1;)1&t&&(i+=e),t>>=1,e+=e;return i+e}function I(e,t,i,n){var o=t.href,s=t.title?h(t.title):null,r=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;var a={type:"link",raw:i,href:o,title:s,text:r,tokens:n.inlineTokens(r)};return n.state.inLink=!1,a}return{type:"image",raw:i,href:o,title:s,text:h(r)}}var N=function(){function t(t){this.options=t||e.defaults}var i=t.prototype;return i.space=function(e){var t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}},i.code=function(e){var t=this.rules.block.code.exec(e);if(t){var i=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?i:L(i,"\n")}}},i.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var i=t[0],n=function(e,t){var i=e.match(/^(\s+)(?:```)/);if(null===i)return t;var n=i[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=n.length?e.slice(n.length):e})).join("\n")}(i,t[3]||"");return{type:"code",raw:i,lang:t[2]?t[2].trim():t[2],text:n}}},i.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var i=t[2].trim();if(/#$/.test(i)){var n=L(i,"#");this.options.pedantic?i=n.trim():n&&!/ $/.test(n)||(i=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:this.lexer.inline(i)}}},i.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},i.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var i=t[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(i,[]),text:i}}},i.list=function(e){var t=this.rules.block.list.exec(e);if(t){var i,o,s,r,a,l,d,c,h,u,g,p,m=t[1].trim(),f=m.length>1,v={type:"list",raw:"",ordered:f,start:f?+m.slice(0,-1):"",loose:!1,items:[]};m=f?"\\d{1,9}\\"+m.slice(-1):"\\"+m,this.options.pedantic&&(m=f?m:"[*+-]");for(var _=new RegExp("^( {0,3}"+m+")((?:[\t ][^\\n]*)?(?:\\n|$))");e&&(p=!1,t=_.exec(e))&&!this.rules.block.hr.test(e);){if(i=t[0],e=e.substring(i.length),c=t[2].split("\n",1)[0],h=e.split("\n",1)[0],this.options.pedantic?(r=2,g=c.trimLeft()):(r=(r=t[2].search(/[^ ]/))>4?1:r,g=c.slice(r),r+=t[1].length),l=!1,!c&&/^ *$/.test(h)&&(i+=h+"\n",e=e.substring(h.length+1),p=!0),!p)for(var b=new RegExp("^ {0,"+Math.min(3,r-1)+"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))"),w=new RegExp("^ {0,"+Math.min(3,r-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),y=new RegExp("^ {0,"+Math.min(3,r-1)+"}(?:```|~~~)"),C=new RegExp("^ {0,"+Math.min(3,r-1)+"}#");e&&(c=u=e.split("\n",1)[0],this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!y.test(c))&&!C.test(c)&&!b.test(c)&&!w.test(e);){if(c.search(/[^ ]/)>=r||!c.trim())g+="\n"+c.slice(r);else{if(l)break;g+="\n"+c}l||c.trim()||(l=!0),i+=u+"\n",e=e.substring(u.length+1)}v.loose||(d?v.loose=!0:/\n *\n *$/.test(i)&&(d=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(g))&&(s="[ ] "!==o[0],g=g.replace(/^\[[ xX]\] +/,"")),v.items.push({type:"list_item",raw:i,task:!!o,checked:s,loose:!1,text:g}),v.raw+=i}v.items[v.items.length-1].raw=i.trimRight(),v.items[v.items.length-1].text=g.trimRight(),v.raw=v.raw.trimRight();var k=v.items.length;for(a=0;a1)return!0;return!1}));!v.loose&&S.length&&x&&(v.loose=!0,v.items[a].loose=!0)}return v}},i.html=function(e){var t=this.rules.block.html.exec(e);if(t){var i={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){var n=this.options.sanitizer?this.options.sanitizer(t[0]):h(t[0]);i.type="paragraph",i.text=n,i.tokens=this.lexer.inline(n)}return i}},i.def=function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}},i.table=function(e){var t=this.rules.block.table.exec(e);if(t){var i={type:"table",header:x(t[1]).map((function(e){return{text:e}})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(i.header.length===i.align.length){i.raw=t[0];var n,o,s,r,a=i.align.length;for(n=0;n/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):h(t[0]):t[0]}},i.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var i=t[2].trim();if(!this.options.pedantic&&/^$/.test(i))return;var n=L(i.slice(0,-1),"\\");if((i.length-n.length)%2==0)return}else{var o=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var i=e.length,n=0,o=0;o-1){var s=(0===t[0].indexOf("!")?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,s).trim(),t[3]=""}}var r=t[2],a="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);l&&(r=l[1],a=l[3])}else a=t[3]?t[3].slice(1,-1):"";return r=r.trim(),/^$/.test(i)?r.slice(1):r.slice(1,-1)),I(t,{href:r?r.replace(this.rules.inline._escapes,"$1"):r,title:a?a.replace(this.rules.inline._escapes,"$1"):a},t[0],this.lexer)}},i.reflink=function(e,t){var i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){var n=(i[2]||i[1]).replace(/\s+/g," ");if(!(n=t[n.toLowerCase()])||!n.href){var o=i[0].charAt(0);return{type:"text",raw:o,text:o}}return I(i,n,i[0],this.lexer)}},i.emStrong=function(e,t,i){void 0===i&&(i="");var n=this.rules.inline.emStrong.lDelim.exec(e);if(n&&(!n[3]||!i.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var o=n[1]||n[2]||"";if(!o||o&&(""===i||this.rules.inline.punctuation.exec(i))){var s,r,a=n[0].length-1,l=a,d=0,c="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+a);null!=(n=c.exec(t));)if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6])if(r=s.length,n[3]||n[4])l+=r;else if(!((n[5]||n[6])&&a%3)||(a+r)%3){if(!((l-=r)>0)){if(r=Math.min(r,r+l+d),Math.min(a,r)%2){var h=e.slice(1,a+n.index+r);return{type:"em",raw:e.slice(0,a+n.index+r+1),text:h,tokens:this.lexer.inlineTokens(h)}}var u=e.slice(2,a+n.index+r-1);return{type:"strong",raw:e.slice(0,a+n.index+r+1),text:u,tokens:this.lexer.inlineTokens(u)}}}else d+=r}}},i.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var i=t[2].replace(/\n/g," "),n=/[^ ]/.test(i),o=/^ /.test(i)&&/ $/.test(i);return n&&o&&(i=i.substring(1,i.length-1)),i=h(i,!0),{type:"codespan",raw:t[0],text:i}}},i.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},i.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}},i.autolink=function(e,t){var i,n,o=this.rules.inline.autolink.exec(e);if(o)return n="@"===o[2]?"mailto:"+(i=h(this.options.mangle?t(o[1]):o[1])):i=h(o[1]),{type:"link",raw:o[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}},i.url=function(e,t){var i;if(i=this.rules.inline.url.exec(e)){var n,o;if("@"===i[2])o="mailto:"+(n=h(this.options.mangle?t(i[0]):i[0]));else{var s;do{s=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0]}while(s!==i[0]);n=h(i[0]),o="www."===i[1]?"http://"+n:n}return{type:"link",raw:i[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}},i.inlineText=function(e,t){var i,n=this.rules.inline.text.exec(e);if(n)return i=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):h(n[0]):n[0]:h(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:i}},t}(),M={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:k,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};M.def=m(M.def).replace("label",M._label).replace("title",M._title).getRegex(),M.bullet=/(?:[*+-]|\d{1,9}[.)])/,M.listItemStart=m(/^( *)(bull) */).replace("bull",M.bullet).getRegex(),M.list=m(M.list).replace(/bull/g,M.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+M.def.source+")").getRegex(),M._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",M._comment=/|$)/,M.html=m(M.html,"i").replace("comment",M._comment).replace("tag",M._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),M.paragraph=m(M._paragraph).replace("hr",M.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",M._tag).getRegex(),M.blockquote=m(M.blockquote).replace("paragraph",M.paragraph).getRegex(),M.normal=S({},M),M.gfm=S({},M.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),M.gfm.table=m(M.gfm.table).replace("hr",M.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",M._tag).getRegex(),M.gfm.paragraph=m(M._paragraph).replace("hr",M.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",M.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",M._tag).getRegex(),M.pedantic=S({},M.normal,{html:m("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",M._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:k,paragraph:m(M.normal._paragraph).replace("hr",M.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",M.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var A={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:k,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:k,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(i="x"+i.toString(16)),n+="&#"+i+";";return n}A._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",A.punctuation=m(A.punctuation).replace(/punctuation/g,A._punctuation).getRegex(),A.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,A.escapedEmSt=/\\\*|\\_/g,A._comment=m(M._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),A.emStrong.lDelim=m(A.emStrong.lDelim).replace(/punct/g,A._punctuation).getRegex(),A.emStrong.rDelimAst=m(A.emStrong.rDelimAst,"g").replace(/punct/g,A._punctuation).getRegex(),A.emStrong.rDelimUnd=m(A.emStrong.rDelimUnd,"g").replace(/punct/g,A._punctuation).getRegex(),A._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,A._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,A._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,A.autolink=m(A.autolink).replace("scheme",A._scheme).replace("email",A._email).getRegex(),A._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,A.tag=m(A.tag).replace("comment",A._comment).replace("attribute",A._attribute).getRegex(),A._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,A._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,A._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,A.link=m(A.link).replace("label",A._label).replace("href",A._href).replace("title",A._title).getRegex(),A.reflink=m(A.reflink).replace("label",A._label).replace("ref",M._label).getRegex(),A.nolink=m(A.nolink).replace("ref",M._label).getRegex(),A.reflinkSearch=m(A.reflinkSearch,"g").replace("reflink",A.reflink).replace("nolink",A.nolink).getRegex(),A.normal=S({},A),A.pedantic=S({},A.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:m(/^!?\[(label)\]\((.*?)\)/).replace("label",A._label).getRegex(),reflink:m(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",A._label).getRegex()}),A.gfm=S({},A.normal,{escape:m(A.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\0?t[t.length-1].raw+="\n":t.push(i);else if(i=this.tokenizer.code(e))e=e.substring(i.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?t.push(i):(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(i=this.tokenizer.fences(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.heading(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.hr(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.blockquote(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.list(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.html(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.def(e))e=e.substring(i.raw.length),!(n=t[t.length-1])||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title}):(n.raw+="\n"+i.raw,n.text+="\n"+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(i=this.tokenizer.table(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.lheading(e))e=e.substring(i.raw.length),t.push(i);else if(o=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,i=e.slice(1),n=void 0;r.options.extensions.startBlock.forEach((function(e){"number"==typeof(n=e.call({lexer:this},i))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}(),this.state.top&&(i=this.tokenizer.paragraph(o)))n=t[t.length-1],s&&"paragraph"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i),s=o.length!==e.length,e=e.substring(i.raw.length);else if(i=this.tokenizer.text(e))e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===n.type?(n.raw+="\n"+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(i);else if(e){var a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}return this.state.top=!0,t},s.inline=function(e,t){return void 0===t&&(t=[]),this.inlineQueue.push({src:e,tokens:t}),t},s.inlineTokens=function(e,t){var i,n,o,s=this;void 0===t&&(t=[]);var r,a,l,d=e;if(this.tokens.links){var c=Object.keys(this.tokens.links);if(c.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(d));)c.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(d=d.slice(0,r.index)+"["+E("a",r[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(d));)d=d.slice(0,r.index)+"["+E("a",r[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.escapedEmSt.exec(d));)d=d.slice(0,r.index)+"++"+d.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(a||(l=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(n){return!!(i=n.call({lexer:s},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)}))))if(i=this.tokenizer.escape(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.tag(e))e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(i=this.tokenizer.link(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(i.raw.length),(n=t[t.length-1])&&"text"===i.type&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(i=this.tokenizer.emStrong(e,d,l))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.codespan(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.br(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.del(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.autolink(e,R))e=e.substring(i.raw.length),t.push(i);else if(this.state.inLink||!(i=this.tokenizer.url(e,R))){if(o=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,i=e.slice(1),n=void 0;s.options.extensions.startInline.forEach((function(e){"number"==typeof(n=e.call({lexer:this},i))&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}(),i=this.tokenizer.inlineText(o,T))e=e.substring(i.raw.length),"_"!==i.raw.slice(-1)&&(l=i.raw.slice(-1)),a=!0,(n=t[t.length-1])&&"text"===n.type?(n.raw+=i.raw,n.text+=i.text):t.push(i);else if(e){var h="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(h);break}throw new Error(h)}}else e=e.substring(i.raw.length),t.push(i);return t},n=i,o=[{key:"rules",get:function(){return{block:M,inline:A}}}],null&&t(n.prototype,null),o&&t(n,o),Object.defineProperty(n,"prototype",{writable:!1}),i}(),O=function(){function t(t){this.options=t||e.defaults}var i=t.prototype;return i.code=function(e,t,i){var n=(t||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(e,n);null!=o&&o!==e&&(i=!0,e=o)}return e=e.replace(/\n$/,"")+"\n",n?'
'+(i?e:h(e,!0))+"
\n":"
"+(i?e:h(e,!0))+"
\n"},i.blockquote=function(e){return"
\n"+e+"
\n"},i.html=function(e){return e},i.heading=function(e,t,i,n){return this.options.headerIds?"'+e+"\n":""+e+"\n"},i.hr=function(){return this.options.xhtml?"
\n":"
\n"},i.list=function(e,t,i){var n=t?"ol":"ul";return"<"+n+(t&&1!==i?' start="'+i+'"':"")+">\n"+e+"\n"},i.listitem=function(e){return"
  • "+e+"
  • \n"},i.checkbox=function(e){return" "},i.paragraph=function(e){return"

    "+e+"

    \n"},i.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},i.tablerow=function(e){return"\n"+e+"\n"},i.tablecell=function(e,t){var i=t.header?"th":"td";return(t.align?"<"+i+' align="'+t.align+'">':"<"+i+">")+e+"\n"},i.strong=function(e){return""+e+""},i.em=function(e){return""+e+""},i.codespan=function(e){return""+e+""},i.br=function(){return this.options.xhtml?"
    ":"
    "},i.del=function(e){return""+e+""},i.link=function(e,t,i){if(null===(e=_(this.options.sanitize,this.options.baseUrl,e)))return i;var n='"+i+""},i.image=function(e,t,i){if(null===(e=_(this.options.sanitize,this.options.baseUrl,e)))return i;var n=''+i+'":">")},i.text=function(e){return e},t}(),F=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,i){return""+i},t.image=function(e,t,i){return""+i},t.br=function(){return""},e}(),B=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var i=e,n=0;if(this.seen.hasOwnProperty(i)){n=this.seen[e];do{i=e+"-"+ ++n}while(this.seen.hasOwnProperty(i))}return t||(this.seen[e]=n,this.seen[i]=0),i},t.slug=function(e,t){void 0===t&&(t={});var i=this.serialize(e);return this.getNextSafeSlug(i,t.dryrun)},e}(),W=function(){function t(t){this.options=t||e.defaults,this.options.renderer=this.options.renderer||new O,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new F,this.slugger=new B}t.parse=function(e,i){return new t(i).parse(e)},t.parseInline=function(e,i){return new t(i).parseInline(e)};var i=t.prototype;return i.parse=function(e,t){void 0===t&&(t=!0);var i,n,o,s,r,a,l,d,c,h,u,p,m,f,v,_,b,w,y,C="",k=e.length;for(i=0;i0&&"paragraph"===v.tokens[0].type?(v.tokens[0].text=w+" "+v.tokens[0].text,v.tokens[0].tokens&&v.tokens[0].tokens.length>0&&"text"===v.tokens[0].tokens[0].type&&(v.tokens[0].tokens[0].text=w+" "+v.tokens[0].tokens[0].text)):v.tokens.unshift({type:"text",text:w}):f+=w),f+=this.parse(v.tokens,m),c+=this.renderer.listitem(f,b,_);C+=this.renderer.list(c,u,p);continue;case"html":C+=this.renderer.html(h.text);continue;case"paragraph":C+=this.renderer.paragraph(this.parseInline(h.tokens));continue;case"text":for(c=h.tokens?this.parseInline(h.tokens):h.text;i+1An error occurred:

    "+h(e.message+"",!0)+"
    ";throw e}try{var l=P.lex(e,t);if(t.walkTokens){if(t.async)return Promise.all(H.walkTokens(l,t.walkTokens)).then((function(){return W.parse(l,t)})).catch(a);H.walkTokens(l,t.walkTokens)}return W.parse(l,t)}catch(e){a(e)}}H.options=H.setOptions=function(t){var i;return S(H.defaults,t),i=H.defaults,e.defaults=i,H},H.getDefaults=o,H.defaults=e.defaults,H.use=function(){for(var e=arguments.length,t=new Array(e),i=0;iAn error occurred:

    "+h(e.message+"",!0)+"
    ";throw e}},H.Parser=W,H.parser=W.parse,H.Renderer=O,H.TextRenderer=F,H.Lexer=P,H.lexer=P.lex,H.Tokenizer=N,H.Slugger=B,H.parse=H;var V=H.options,z=H.setOptions,j=H.use,U=H.walkTokens,$=H.parseInline,K=H,q=W.parse,G=P.lex;e.Lexer=P,e.Parser=W,e.Renderer=O,e.Slugger=B,e.TextRenderer=F,e.Tokenizer=N,e.getDefaults=o,e.lexer=G,e.marked=H,e.options=V,e.parse=K,e.parseInline=$,e.parser=q,e.setOptions=z,e.use=j,e.walkTokens=U,Object.defineProperty(e,"__esModule",{value:!0})},e.amd?e(0,i):"object"==typeof exports?i(exports):i((t="undefined"!=typeof globalThis?globalThis:t||self).marked={})}(),v.Lexer||exports.Lexer,v.Parser||exports.Parser,v.Renderer||exports.Renderer,v.Slugger||exports.Slugger,v.TextRenderer||exports.TextRenderer,v.Tokenizer||exports.Tokenizer,v.getDefaults||exports.getDefaults,v.lexer||exports.lexer;var _=v.marked||exports.marked,b=(v.options||exports.options,v.parse||exports.parse,v.parseInline||exports.parseInline,v.parser||exports.parser,v.setOptions||exports.setOptions,v.use||exports.use,v.walkTokens||exports.walkTokens,i(50180)),w=i(13072),y=i(71386),C=i(22467),k=i(16844),S=i(37264);const x=Object.freeze({image:(e,t,i)=>{let n=[],o=[];return e&&(({href:e,dimensions:n}=(0,u.nI)(e)),o.push(`src="${(0,u.oO)(e)}"`)),i&&o.push(`alt="${(0,u.oO)(i)}"`),t&&o.push(`title="${(0,u.oO)(t)}"`),n.length&&(o=o.concat(n)),""},paragraph:e=>`

    ${e}

    `,link:(e,t,i)=>"string"!=typeof e?"":(e===i&&(i=(0,u._W)(i)),t="string"==typeof t?(0,u.oO)((0,u._W)(t)):"",`/g,">").replace(/"/g,""").replace(/'/g,"'")}" title="${t||e}" draggable="false">${i}`)});function L(e,t={},i={}){var o,u;const m=new f.Cm;let v=!1;const C=(0,r.n)(t),L=function(t){let i;try{i=(0,b.qg)(decodeURIComponent(t))}catch(e){}return i?(i=(0,y.PI)(i,(t=>e.uris&&e.uris[t]?S.r.revive(e.uris[t]):void 0)),encodeURIComponent(JSON.stringify(i))):t},I=function(t,i){const n=e.uris&&e.uris[t];let o=S.r.revive(n);return i?t.startsWith(w.ny.data+":")?t:(o||(o=S.r.parse(t)),w.zl.uriToBrowserUri(o).toString(!0)):o?S.r.parse(t).toString()===o.toString()?t:(o.query&&(o=o.with({query:L(o.query)})),o.toString()):t},M=new _.Renderer;M.image=x.image,M.link=x.link,M.paragraph=x.paragraph;const A=[],T=[];if(t.codeBlockRendererSync?M.code=(e,i)=>{const n=p.r.nextId(),o=t.codeBlockRendererSync(D(i),e);return T.push([n,o]),`
    ${(0,k.ih)(e)}
    `}:t.codeBlockRenderer&&(M.code=(e,i)=>{const n=p.r.nextId(),o=t.codeBlockRenderer(D(i),e);return A.push(o.then((e=>[n,e]))),`
    ${(0,k.ih)(e)}
    `}),t.actionHandler){const i=function(i){let n=i.target;if("A"===n.tagName||(n=n.parentElement,n&&"A"===n.tagName))try{let o=n.dataset.href;o&&(e.baseUri&&(o=E(S.r.from(e.baseUri),o)),t.actionHandler.callback(o,i))}catch(e){(0,c.dz)(e)}finally{i.preventDefault()}},o=t.actionHandler.disposables.add(new s.f(C,"click")),r=t.actionHandler.disposables.add(new s.f(C,"auxclick"));t.actionHandler.disposables.add(h.Jh.any(o.event,r.event)((e=>{const t=new l.P(n.zk(C),e);(t.leftButton||t.middleButton)&&i(t)}))),t.actionHandler.disposables.add(n.ko(C,"keydown",(e=>{const t=new a.Z(e);(t.equals(10)||t.equals(3))&&i(t)})))}e.supportHtml||(i.sanitizer=i=>{var n;return(null===(n=t.sanitizerOptions)||void 0===n?void 0:n.replaceWithPlaintext)?(0,k.ih)(i):(e.isTrusted?i.match(/^(]+>)|(<\/\s*span>)$/):void 0)?i:""},i.sanitize=!0,i.silent=!0),i.renderer=M;let R,P=null!==(o=e.value)&&void 0!==o?o:"";if(P.length>1e5&&(P=`${P.substr(0,1e5)}…`),e.supportThemeIcons&&(P=(0,g.sA)(P)),t.fillInIncompleteTokens){const e={..._.defaults,...i},t=function(e){for(let t=0;t"string"==typeof e?e:e.outerHTML)).join(""));const O=(new DOMParser).parseFromString(N({isTrusted:e.isTrusted,...t.sanitizerOptions},R),"text/html");if(O.body.querySelectorAll("img, audio, video, source").forEach((i=>{const o=i.getAttribute("src");if(o){let s=o;try{e.baseUri&&(s=E(S.r.from(e.baseUri),s))}catch(e){}if(i.setAttribute("src",I(s,!0)),t.remoteImageIsAllowed){const e=S.r.parse(s);e.scheme===w.ny.file||e.scheme===w.ny.data||t.remoteImageIsAllowed(e)||i.replaceWith(n.$("",void 0,i.outerHTML))}}})),O.body.querySelectorAll("a").forEach((t=>{const i=t.getAttribute("href");if(t.setAttribute("href",""),!i||/^data:|javascript:/i.test(i)||/^command:/i.test(i)&&!e.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(i))t.replaceWith(...t.childNodes);else{let n=I(i,!1);e.baseUri&&(n=E(S.r.from(e.baseUri),i)),t.dataset.href=n}})),C.innerHTML=N({isTrusted:e.isTrusted,...t.sanitizerOptions},O.body.innerHTML),A.length>0)Promise.all(A).then((e=>{var i,o;if(v)return;const s=new Map(e),r=C.querySelectorAll("div[data-code]");for(const e of r){const t=s.get(null!==(i=e.dataset.code)&&void 0!==i?i:"");t&&n.Ln(e,t)}null===(o=t.asyncRenderCallback)||void 0===o||o.call(t)}));else if(T.length>0){const e=new Map(T),t=C.querySelectorAll("div[data-code]");for(const i of t){const t=e.get(null!==(u=i.dataset.code)&&void 0!==u?u:"");t&&n.Ln(i,t)}}if(t.asyncRenderCallback)for(const e of C.getElementsByTagName("img")){const i=m.add(n.ko(e,"load",(()=>{i.dispose(),t.asyncRenderCallback()})))}return{element:C,dispose:()=>{v=!0,m.dispose()}}}function D(e){if(!e)return"";const t=e.split(/[\s+|:|,|\{|\?]/,1);return t.length?t[0]:e}function E(e,t){return/^\w[\w\d+.-]*:/.test(t)?t:e.path.endsWith("/")?(0,C.o1)(e,t).toString():(0,C.o1)((0,C.pD)(e),t).toString()}const I=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function N(e,t){const{config:i,allowedSchemes:s}=function(e){var t;const i=[w.ny.http,w.ny.https,w.ny.mailto,w.ny.data,w.ny.file,w.ny.vscodeFileResource,w.ny.vscodeRemote,w.ny.vscodeRemoteResource];return e.isTrusted&&i.push(w.ny.command),{config:{ALLOWED_TAGS:null!==(t=e.allowedTags)&&void 0!==t?t:[...n.TT],ALLOWED_ATTR:M,ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:i}}(e),r=new f.Cm;r.add(Z("uponSanitizeAttribute",((e,t)=>{var i;if("style"!==t.attrName&&"class"!==t.attrName){if("INPUT"===e.tagName&&"checkbox"===(null===(i=e.attributes.getNamedItem("type"))||void 0===i?void 0:i.value)){if("type"===t.attrName&&"checkbox"===t.attrValue||"disabled"===t.attrName||"checked"===t.attrName)return void(t.keepAttr=!0);t.keepAttr=!1}}else{if("SPAN"===e.tagName){if("style"===t.attrName)return void(t.keepAttr=/^(color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?(background-color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?$/.test(t.attrValue));if("class"===t.attrName)return void(t.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(t.attrValue))}t.keepAttr=!1}}))),r.add(Z("uponSanitizeElement",((t,i)=>{var n;if("input"===i.tagName&&("checkbox"===(null===(n=t.attributes.getNamedItem("type"))||void 0===n?void 0:n.value)?t.setAttribute("disabled",""):e.replaceWithPlaintext||t.remove()),e.replaceWithPlaintext&&!i.allowedTags[i.tagName]&&"body"!==i.tagName&&t.parentElement){let e,n;if("#comment"===i.tagName)e=`\x3c!--${t.textContent}--\x3e`;else{const o=I.includes(i.tagName),s=t.attributes.length?" "+Array.from(t.attributes).map((e=>`${e.name}="${e.value}"`)).join(" "):"";e=`<${i.tagName}${s}>`,o||(n=``)}const o=document.createDocumentFragment(),s=t.parentElement.ownerDocument.createTextNode(e);o.appendChild(s);const r=n?t.parentElement.ownerDocument.createTextNode(n):void 0;for(;t.firstChild;)o.appendChild(t.firstChild);r&&o.appendChild(r),t.parentElement.replaceChild(o,t)}}))),r.add(n.a4(s));try{return o.aj(t,{...i,RETURN_TRUSTED_TYPE:!0})}finally{r.dispose()}}const M=["align","autoplay","alt","checked","class","colspan","controls","data-code","data-href","disabled","draggable","height","href","loop","muted","playsinline","poster","rowspan","src","style","target","title","type","width","start"];function A(e){return"string"==typeof e?e:function(e,t){var i;let n=null!==(i=e.value)&&void 0!==i?i:"";return n.length>1e5&&(n=`${n.substr(0,1e5)}…`),N({isTrusted:!1},_.parse(n,{renderer:P.value}).replace(/&(#\d+|[a-zA-Z]+);/g,(e=>{var t;return null!==(t=T.get(e))&&void 0!==t?t:e}))).toString()}(e)}const T=new Map([[""",'"'],[" "," "],["&","&"],["'","'"],["<","<"],[">",">"]]);function R(){const e=new _.Renderer;return e.code=e=>e,e.blockquote=e=>e,e.html=e=>"",e.heading=(e,t,i)=>e+"\n",e.hr=()=>"",e.list=(e,t)=>e,e.listitem=e=>e+"\n",e.paragraph=e=>e+"\n",e.table=(e,t)=>e+t+"\n",e.tablerow=e=>e,e.tablecell=(e,t)=>e+" ",e.strong=e=>e,e.em=e=>e,e.codespan=e=>e,e.br=()=>"\n",e.del=e=>e,e.image=(e,t,i)=>"",e.text=e=>e,e.link=(e,t,i)=>i,e}const P=new m.d((e=>R()));new m.d((()=>{const e=R();return e.code=e=>`\n\`\`\`\n${e}\n\`\`\`\n`,e}));function O(e){let t="";return e.forEach((e=>{t+=e.raw})),t}function F(e){var t,i;if(e.tokens)for(let n=e.tokens.length-1;n>=0;n--){const o=e.tokens[n];if("text"===o.type){const s=o.raw.split("\n"),r=s[s.length-1];if(r.includes("`"))return z(e);if(r.includes("**"))return G(e,"**");if(r.match(/\*\w/))return G(e,"*");if(r.match(/(^|\s)__\w/))return q(e);if(r.match(/(^|\s)_\w/))return j(e);if(r.match(/(^|\s)\[.*\]\(\w*/)||r.match(/^[^\[]*\]\([^\)]*$/)&&e.tokens.slice(0,n).some((e=>"text"===e.type&&e.raw.match(/\[[^\]]*$/)))){const o=e.tokens.slice(n+1);return"link"===(null===(t=o[0])||void 0===t?void 0:t.type)&&"text"===(null===(i=o[1])||void 0===i?void 0:i.type)&&o[1].raw.match(/^ *"[^"]*$/)||r.match(/^[^"]* +"[^"]*$/)?$(e):U(e)}if(r.match(/(^|\s)\[\w*/))return K(e)}}}function B(e){var t;const i=e.items[e.items.length-1],n=i.tokens?i.tokens[i.tokens.length-1]:void 0;let o;if("text"!==(null==n?void 0:n.type)||"inRawBlock"in i||(o=F(n)),!o||"paragraph"!==o.type)return;const s=O(e.items.slice(0,-1)),r=null===(t=i.raw.match(/^(\s*(-|\d+\.|\*) +)/))||void 0===t?void 0:t[0];if(!r)return;const a=r+O(i.tokens.slice(0,-1))+o.raw,l=_.lexer(s+a)[0];return"list"===l.type?l:void 0}const W=3;function H(e){let t,i;for(t=0;t0){const e=o?i.slice(0,-1).join("\n"):t,s=!!e.match(/\|\s*$/),r=e+(s?"":"|")+`\n|${" --- |".repeat(n)}`;return _.lexer(r)}}function Z(e,t){return o.$w(e,t),(0,f.s)((()=>o.SV(e)))}},9715:(e,t,i)=>{"use strict";i.d(t,{P:()=>l,$:()=>d});var n=i(55893);const o=new WeakMap;function s(e){if(!e.parent||e.parent===e)return null;try{const t=e.location,i=e.parent.location;if("null"!==t.origin&&"null"!==i.origin&&t.origin!==i.origin)return null}catch(e){return null}return e.parent}class r{static getSameOriginWindowChain(e){let t=o.get(e);if(!t){t=[],o.set(e,t);let i,n=e;do{i=s(n),i?t.push({window:new WeakRef(n),iframeElement:n.frameElement||null}):t.push({window:new WeakRef(n),iframeElement:null}),n=i}while(n)}return t.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){var i,n;if(!t||e===t)return{top:0,left:0};let o=0,s=0;const r=this.getSameOriginWindowChain(e);for(const e of r){const r=e.window.deref();if(o+=null!==(i=null==r?void 0:r.scrollY)&&void 0!==i?i:0,s+=null!==(n=null==r?void 0:r.scrollX)&&void 0!==n?n:0,r===t)break;if(!e.iframeElement)break;const a=e.iframeElement.getBoundingClientRect();o+=a.top,s+=a.left}return{top:o,left:s}}}var a=i(63339);class l{constructor(e,t){this.timestamp=Date.now(),this.browserEvent=t,this.leftButton=0===t.button,this.middleButton=1===t.button,this.rightButton=2===t.button,this.buttons=t.buttons,this.target=t.target,this.detail=t.detail||1,"dblclick"===t.type&&(this.detail=2),this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,"number"==typeof t.pageX?(this.posx=t.pageX,this.posy=t.pageY):(this.posx=t.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=t.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);const i=r.getPositionOfChildWindowRelativeToAncestorWindow(e,t.view);this.posx-=i.left,this.posy-=i.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class d{constructor(e,t=0,i=0){var o;this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=i,this.deltaX=t;let s=!1;if(n.H8){const e=navigator.userAgent.match(/Chrome\/(\d+)/);s=(e?parseInt(e[1]):123)<=122}if(e){const t=e,i=e,r=(null===(o=e.view)||void 0===o?void 0:o.devicePixelRatio)||1;if(void 0!==t.wheelDeltaY)this.deltaY=s?t.wheelDeltaY/(120*r):t.wheelDeltaY/120;else if(void 0!==i.VERTICAL_AXIS&&i.axis===i.VERTICAL_AXIS)this.deltaY=-i.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?n.gm&&!a.zx?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if(void 0!==t.wheelDeltaX)n.nr&&a.uF?this.deltaX=-t.wheelDeltaX/120:this.deltaX=s?t.wheelDeltaX/(120*r):t.wheelDeltaX/120;else if(void 0!==i.HORIZONTAL_AXIS&&i.axis===i.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?n.gm&&!a.zx?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=s?e.wheelDelta/(120*r):e.wheelDelta/120)}}preventDefault(){var e;null===(e=this.browserEvent)||void 0===e||e.preventDefault()}stopPropagation(){var e;null===(e=this.browserEvent)||void 0===e||e.stopPropagation()}}},42863:(e,t,i)=>{"use strict";var n;i.d(t,{p:()=>n}),function(e){const t={total:0,min:Number.MAX_VALUE,max:0},i={...t},n={...t},o={...t};let s=0;const r={keydown:0,input:0,render:0};function a(){1===r.keydown&&(performance.mark("keydown/end"),r.keydown=2)}function l(){performance.mark("input/start"),r.input=1,h()}function d(){1===r.input&&(performance.mark("input/end"),r.input=2)}function c(){1===r.render&&(performance.mark("render/end"),r.render=2)}function h(){setTimeout(u)}function u(){2===r.keydown&&2===r.input&&2===r.render&&(performance.mark("inputlatency/end"),performance.measure("keydown","keydown/start","keydown/end"),performance.measure("input","input/start","input/end"),performance.measure("render","render/start","render/end"),performance.measure("inputlatency","inputlatency/start","inputlatency/end"),g("keydown",t),g("input",i),g("render",n),g("inputlatency",o),s++,performance.clearMarks("keydown/start"),performance.clearMarks("keydown/end"),performance.clearMarks("input/start"),performance.clearMarks("input/end"),performance.clearMarks("render/start"),performance.clearMarks("render/end"),performance.clearMarks("inputlatency/start"),performance.clearMarks("inputlatency/end"),performance.clearMeasures("keydown"),performance.clearMeasures("input"),performance.clearMeasures("render"),performance.clearMeasures("inputlatency"),r.keydown=0,r.input=0,r.render=0)}function g(e,t){const i=performance.getEntriesByName(e)[0].duration;t.total+=i,t.min=Math.min(t.min,i),t.max=Math.max(t.max,i)}function p(e){return{average:e.total/s,max:e.max,min:e.min}}function m(e){e.total=0,e.min=Number.MAX_VALUE,e.max=0}e.onKeyDown=function(){u(),performance.mark("inputlatency/start"),performance.mark("keydown/start"),r.keydown=1,queueMicrotask(a)},e.onBeforeInput=l,e.onInput=function(){0===r.input&&l(),queueMicrotask(d)},e.onKeyUp=function(){u()},e.onSelectionChange=function(){u()},e.onRenderStart=function(){2===r.keydown&&2===r.input&&0===r.render&&(performance.mark("render/start"),r.render=1,queueMicrotask(c),h())},e.getAndClearMeasurements=function(){if(0===s)return;const e={keydown:p(t),input:p(i),render:p(n),total:p(o),sampleCount:s};return m(t),m(i),m(n),m(o),s=0,e}}(n||(n={}))},4770:(e,t,i)=>{"use strict";i.d(t,{c:()=>l});var n=i(14333),o=i(2106),s=i(10998);class r extends s.jG{constructor(e){super(),this._onDidChange=this._register(new o.vl),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(e,!0),this._mediaQueryList=null,this._handleChange(e,!1)}_handleChange(e,t){var i;null===(i=this._mediaQueryList)||void 0===i||i.removeEventListener("change",this._listener),this._mediaQueryList=e.matchMedia(`(resolution: ${e.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),t&&this._onDidChange.fire()}}class a extends s.jG{get value(){return this._value}constructor(e){super(),this._onDidChange=this._register(new o.vl),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio(e);const t=this._register(new r(e));this._register(t.onDidChange((()=>{this._value=this._getPixelRatio(e),this._onDidChange.fire(this._value)})))}_getPixelRatio(e){const t=document.createElement("canvas").getContext("2d");return(e.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}}const l=new class{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map}_getOrCreatePixelRatioMonitor(e){const t=(0,n.Q2)(e);let i=this.mapWindowIdToPixelRatioMonitor.get(t);return i||(i=(0,s.lC)(new a(e)),this.mapWindowIdToPixelRatioMonitor.set(t,i),(0,s.lC)(o.Jh.once(n.Fv)((({vscodeWindowId:e})=>{e===t&&(null==i||i.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(t))})))),i}getInstance(e){return this._getOrCreatePixelRatioMonitor(e)}}},30474:(e,t,i)=>{"use strict";i.d(t,{B:()=>n,q:()=>h});var n,o=i(14333),s=i(48877),r=i(13338),a=i(88846),l=i(2106),d=i(10998),c=i(85525);!function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"}(n||(n={}));class h extends d.jG{constructor(){super(),this.dispatched=!1,this.targets=new c.w,this.ignoreTargets=new c.w,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(l.Jh.runAndSubscribe(o.Iv,(({window:e,disposables:t})=>{t.add(o.ko(e.document,"touchstart",(e=>this.onTouchStart(e)),{passive:!1})),t.add(o.ko(e.document,"touchend",(t=>this.onTouchEnd(e,t)))),t.add(o.ko(e.document,"touchmove",(e=>this.onTouchMove(e)),{passive:!1}))}),{window:s.G,disposables:this._store}))}static addTarget(e){if(!h.isTouchDevice())return d.jG.None;h.INSTANCE||(h.INSTANCE=(0,d.lC)(new h));const t=h.INSTANCE.targets.push(e);return(0,d.s)(t)}static ignoreTarget(e){if(!h.isTouchDevice())return d.jG.None;h.INSTANCE||(h.INSTANCE=(0,d.lC)(new h));const t=h.INSTANCE.ignoreTargets.push(e);return(0,d.s)(t)}static isTouchDevice(){return"ontouchstart"in s.G||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(e){const t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let i=0,o=e.targetTouches.length;i=h.HOLD_DELAY&&Math.abs(l.initialPageX-r.RT(l.rollingPageX))<30&&Math.abs(l.initialPageY-r.RT(l.rollingPageY))<30){const e=this.newGestureEvent(n.Contextmenu,l.initialTarget);e.pageX=r.RT(l.rollingPageX),e.pageY=r.RT(l.rollingPageY),this.dispatchEvent(e)}else if(1===o){const t=r.RT(l.rollingPageX),n=r.RT(l.rollingPageY),o=r.RT(l.rollingTimestamps)-l.rollingTimestamps[0],s=t-l.rollingPageX[0],a=n-l.rollingPageY[0],d=[...this.targets].filter((e=>l.initialTarget instanceof Node&&e.contains(l.initialTarget)));this.inertia(e,d,i,Math.abs(s)/o,s>0?1:-1,t,Math.abs(a)/o,a>0?1:-1,n)}this.dispatchEvent(this.newGestureEvent(n.End,l.initialTarget)),delete this.activeTouches[a.identifier]}this.dispatched&&(t.preventDefault(),t.stopPropagation(),this.dispatched=!1)}newGestureEvent(e,t){const i=document.createEvent("CustomEvent");return i.initEvent(e,!1,!0),i.initialTarget=t,i.tapCount=0,i}dispatchEvent(e){if(e.type===n.Tap){const t=(new Date).getTime();let i=0;i=t-this._lastSetTapCountTime>h.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=t,e.tapCount=i}else e.type!==n.Change&&e.type!==n.Contextmenu||(this._lastSetTapCountTime=0);if(e.initialTarget instanceof Node){for(const t of this.ignoreTargets)if(t.contains(e.initialTarget))return;const t=[];for(const i of this.targets)if(i.contains(e.initialTarget)){let n=0,o=e.initialTarget;for(;o&&o!==i;)n++,o=o.parentElement;t.push([n,i])}t.sort(((e,t)=>e[0]-t[0]));for(const[i,n]of t)n.dispatchEvent(e),this.dispatched=!0}}inertia(e,t,i,s,r,a,l,d,c){this.handle=o.PG(e,(()=>{const o=Date.now(),u=o-i;let g=0,p=0,m=!0;s+=h.SCROLL_FRICTION*u,l+=h.SCROLL_FRICTION*u,s>0&&(m=!1,g=r*s*u),l>0&&(m=!1,p=d*l*u);const f=this.newGestureEvent(n.Change);f.translationX=g,f.translationY=p,t.forEach((e=>e.dispatchEvent(f))),m||this.inertia(e,t,o,s,r,a+g,l,d,c+p)}))}onTouchMove(e){const t=Date.now();for(let i=0,o=e.changedTouches.length;i3&&(s.rollingPageX.shift(),s.rollingPageY.shift(),s.rollingTimestamps.shift()),s.rollingPageX.push(o.pageX),s.rollingPageY.push(o.pageY),s.rollingTimestamps.push(t)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}h.SCROLL_FRICTION=-.005,h.HOLD_DELAY=700,h.CLEAR_TAP_COUNT_TIME=400,function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);s>3&&r&&Object.defineProperty(t,i,r)}([a.B],h,"isTouchDevice",null)},13021:(e,t,i)=>{"use strict";i.d(t,{H:()=>o});var n=i(94327);function o(e,t){var i;const o=globalThis.MonacoEnvironment;if(null==o?void 0:o.createTrustedTypesPolicy)try{return o.createTrustedTypesPolicy(e,t)}catch(e){return void(0,n.dz)(e)}try{return null===(i=globalThis.trustedTypes)||void 0===i?void 0:i.createPolicy(e,t)}catch(e){return void(0,n.dz)(e)}}},47971:(e,t,i)=>{"use strict";i.d(t,{Z4:()=>$,EH:()=>U,XF:()=>K});var n=i(55893),o=i(39587),s=i(14333),r=i(30474),a=i(65568),l=i(34061),d=i(87594),c=i(36930),h=i(20396),u=i(67954),g=i(13338),p=i(2106),m=i(68387),f=i(10998),v=i(63339),_=i(85072),b=i.n(_),w=i(97825),y=i.n(w),C=i(77659),k=i.n(C),S=i(55056),x=i.n(S),L=i(10540),D=i.n(L),E=i(41113),I=i.n(E),N=i(67619),M={};M.styleTagTransform=I(),M.setAttributes=x(),M.insert=k().bind(null,"head"),M.domAPI=y(),M.insertStyleElement=D(),b()(N.A,M),N.A&&N.A.locals&&N.A.locals;var A=i(3765);const T=s.$,R="selectOption.entry.template";class P{get templateId(){return R}renderTemplate(e){const t=Object.create(null);return t.root=e,t.text=s.BC(e,T(".option-text")),t.detail=s.BC(e,T(".option-detail")),t.decoratorRight=s.BC(e,T(".option-decorator-right")),t}renderElement(e,t,i){const n=i,o=e.text,s=e.detail,r=e.decoratorRight,a=e.isDisabled;n.text.textContent=o,n.detail.textContent=s||"",n.decoratorRight.innerText=r||"",a?n.root.classList.add("option-disabled"):n.root.classList.remove("option-disabled")}disposeTemplate(e){}}class O extends f.jG{constructor(e,t,i,n,o){super(),this.options=[],this._currentSelection=0,this._hasDetails=!1,this._skipLayout=!1,this._sticky=!1,this._isVisible=!1,this.styles=n,this.selectBoxOptions=o||Object.create(null),"number"!=typeof this.selectBoxOptions.minBottomMargin?this.selectBoxOptions.minBottomMargin=O.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN:this.selectBoxOptions.minBottomMargin<0&&(this.selectBoxOptions.minBottomMargin=0),this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box monaco-select-box-dropdown-padding","string"==typeof this.selectBoxOptions.ariaLabel&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),"string"==typeof this.selectBoxOptions.ariaDescription&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._onDidSelect=new p.vl,this._register(this._onDidSelect),this.registerListeners(),this.constructSelectDropDown(i),this.selected=t||0,e&&this.setOptions(e,t),this.initStyleSheet()}setTitle(e){!this._hover&&e?this._hover=this._register((0,h.i)().setupManagedHover((0,a.nZ)("mouse"),this.selectElement,e)):this._hover&&this._hover.update(e)}getHeight(){return 22}getTemplateId(){return R}constructSelectDropDown(e){this.contextViewProvider=e,this.selectDropDownContainer=s.$(".monaco-select-box-dropdown-container"),this.selectDropDownContainer.classList.add("monaco-select-box-dropdown-padding"),this.selectionDetailsPane=s.BC(this.selectDropDownContainer,T(".select-box-details-pane"));const t=s.BC(this.selectDropDownContainer,T(".select-box-dropdown-container-width-control")),i=s.BC(t,T(".width-control-div"));this.widthControlElement=document.createElement("span"),this.widthControlElement.className="option-text-width-control",s.BC(i,this.widthControlElement),this._dropDownPosition=0,this.styleElement=s.li(this.selectDropDownContainer),this.selectDropDownContainer.setAttribute("draggable","true"),this._register(s.ko(this.selectDropDownContainer,s.Bx.DRAG_START,(e=>{s.fs.stop(e,!0)})))}registerListeners(){let e;this._register(s.b2(this.selectElement,"change",(e=>{this.selected=e.target.selectedIndex,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)}))),this._register(s.ko(this.selectElement,s.Bx.CLICK,(e=>{s.fs.stop(e),this._isVisible?this.hideSelectDropDown(!0):this.showSelectDropDown()}))),this._register(s.ko(this.selectElement,s.Bx.MOUSE_DOWN,(e=>{s.fs.stop(e)}))),this._register(s.ko(this.selectElement,"touchstart",(t=>{e=this._isVisible}))),this._register(s.ko(this.selectElement,"touchend",(t=>{s.fs.stop(t),e?this.hideSelectDropDown(!0):this.showSelectDropDown()}))),this._register(s.ko(this.selectElement,s.Bx.KEY_DOWN,(e=>{const t=new d.Z(e);let i=!1;v.zx?18!==t.keyCode&&16!==t.keyCode&&10!==t.keyCode&&3!==t.keyCode||(i=!0):(18===t.keyCode&&t.altKey||16===t.keyCode&&t.altKey||10===t.keyCode||3===t.keyCode)&&(i=!0),i&&(this.showSelectDropDown(),s.fs.stop(e,!0))})))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){g.aI(this.options,e)||(this.options=e,this.selectElement.options.length=0,this._hasDetails=!1,this._cachedMaxDetailsHeight=void 0,this.options.forEach(((e,t)=>{this.selectElement.add(this.createOption(e.text,t,e.isDisabled)),"string"==typeof e.description&&(this._hasDetails=!0)}))),void 0!==t&&(this.select(t),this._currentSelection=this.selected)}setOptionsList(){var e;null===(e=this.selectList)||void 0===e||e.splice(0,this.selectList.length,this.options)}select(e){e>=0&&ethis.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)}focus(){this.selectElement&&(this.selectElement.tabIndex=0,this.selectElement.focus())}blur(){this.selectElement&&(this.selectElement.tabIndex=-1,this.selectElement.blur())}setFocusable(e){this.selectElement.tabIndex=e?0:-1}render(e){this.container=e,e.classList.add("select-container"),e.appendChild(this.selectElement),this.styleSelectElement()}initStyleSheet(){const e=[];this.styles.listFocusBackground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { background-color: ${this.styles.listFocusBackground} !important; }`),this.styles.listFocusForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { color: ${this.styles.listFocusForeground} !important; }`),this.styles.decoratorRightForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.focused) .option-decorator-right { color: ${this.styles.decoratorRightForeground}; }`),this.styles.selectBackground&&this.styles.selectBorder&&this.styles.selectBorder!==this.styles.selectBackground?(e.push(`.monaco-select-box-dropdown-container { border: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectBorder} } `)):this.styles.selectListBorder&&(e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectListBorder} } `),e.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectListBorder} } `)),this.styles.listHoverForeground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { color: ${this.styles.listHoverForeground} !important; }`),this.styles.listHoverBackground&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { background-color: ${this.styles.listHoverBackground} !important; }`),this.styles.listFocusOutline&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { outline: 1.6px dotted ${this.styles.listFocusOutline} !important; outline-offset: -1.6px !important; }`),this.styles.listHoverOutline&&e.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { outline: 1.6px dashed ${this.styles.listHoverOutline} !important; outline-offset: -1.6px !important; }`),e.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled.focused { background-color: transparent !important; color: inherit !important; outline: none !important; }"),e.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { background-color: transparent !important; color: inherit !important; outline: none !important; }"),this.styleElement.textContent=e.join("\n")}styleSelectElement(){var e,t,i;const n=null!==(e=this.styles.selectBackground)&&void 0!==e?e:"",o=null!==(t=this.styles.selectForeground)&&void 0!==t?t:"",s=null!==(i=this.styles.selectBorder)&&void 0!==i?i:"";this.selectElement.style.backgroundColor=n,this.selectElement.style.color=o,this.selectElement.style.borderColor=s}styleList(){var e,t;const i=null!==(e=this.styles.selectBackground)&&void 0!==e?e:"",n=s.gI(this.styles.selectListBackground,i);this.selectDropDownListContainer.style.backgroundColor=n,this.selectionDetailsPane.style.backgroundColor=n;const o=null!==(t=this.styles.focusBorder)&&void 0!==t?t:"";this.selectDropDownContainer.style.outlineColor=o,this.selectDropDownContainer.style.outlineOffset="-1px",this.selectList.style(this.styles)}createOption(e,t,i){const n=document.createElement("option");return n.value=e,n.text=e,n.disabled=!!i,n}showSelectDropDown(){this.selectionDetailsPane.innerText="",this.contextViewProvider&&!this._isVisible&&(this.createSelectList(this.selectDropDownContainer),this.setOptionsList(),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e,!0),layout:()=>{this.layoutSelectDropDown()},onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._isVisible=!0,this.hideSelectDropDown(!1),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:e=>this.renderSelectDropDown(e),layout:()=>this.layoutSelectDropDown(),onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._currentSelection=this.selected,this._isVisible=!0,this.selectElement.setAttribute("aria-expanded","true"))}hideSelectDropDown(e){this.contextViewProvider&&this._isVisible&&(this._isVisible=!1,this.selectElement.setAttribute("aria-expanded","false"),e&&this.selectElement.focus(),this.contextViewProvider.hideContextView())}renderSelectDropDown(e,t){return e.appendChild(this.selectDropDownContainer),this.layoutSelectDropDown(t),{dispose:()=>{this.selectDropDownContainer.remove()}}}measureMaxDetailsHeight(){let e=0;return this.options.forEach(((t,i)=>{this.updateDetail(i),this.selectionDetailsPane.offsetHeight>e&&(e=this.selectionDetailsPane.offsetHeight)})),e}layoutSelectDropDown(e){if(this._skipLayout)return!1;if(this.selectList){this.selectDropDownContainer.classList.add("visible");const t=s.zk(this.selectElement),i=s.BK(this.selectElement),n=s.zk(this.selectElement).getComputedStyle(this.selectElement),o=parseFloat(n.getPropertyValue("--dropdown-padding-top"))+parseFloat(n.getPropertyValue("--dropdown-padding-bottom")),r=t.innerHeight-i.top-i.height-(this.selectBoxOptions.minBottomMargin||0),a=i.top-O.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN,l=this.selectElement.offsetWidth,d=this.setWidthControlElement(this.widthControlElement),c=Math.max(d,Math.round(l)).toString()+"px";this.selectDropDownContainer.style.width=c,this.selectList.getHTMLElement().style.height="",this.selectList.layout();let h=this.selectList.contentHeight;this._hasDetails&&void 0===this._cachedMaxDetailsHeight&&(this._cachedMaxDetailsHeight=this.measureMaxDetailsHeight());const u=this._hasDetails?this._cachedMaxDetailsHeight:0,g=h+o+u,p=Math.floor((r-o-u)/this.getHeight()),m=Math.floor((a-o-u)/this.getHeight());if(e)return!(i.top+i.height>t.innerHeight-22||i.topp&&this.options.length>p?(this._dropDownPosition=1,this.selectDropDownListContainer.remove(),this.selectionDetailsPane.remove(),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectionDetailsPane.classList.remove("border-top"),this.selectionDetailsPane.classList.add("border-bottom")):(this._dropDownPosition=0,this.selectDropDownListContainer.remove(),this.selectionDetailsPane.remove(),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectionDetailsPane.classList.remove("border-bottom"),this.selectionDetailsPane.classList.add("border-top")),0));if(i.top+i.height>t.innerHeight-22||i.topr&&(h=p*this.getHeight())}else g>a&&(h=m*this.getHeight());return this.selectList.layout(h),this.selectList.domFocus(),this.selectList.length>0&&(this.selectList.setFocus([this.selected||0]),this.selectList.reveal(this.selectList.getFocus()[0]||0)),this._hasDetails?(this.selectList.getHTMLElement().style.height=h+o+"px",this.selectDropDownContainer.style.height=""):this.selectDropDownContainer.style.height=h+o+"px",this.updateDetail(this.selected),this.selectDropDownContainer.style.width=c,this.selectDropDownListContainer.setAttribute("tabindex","0"),this.selectElement.classList.add("synthetic-focus"),this.selectDropDownContainer.classList.add("synthetic-focus"),!0}return!1}setWidthControlElement(e){let t=0;if(e){let i=0,n=0;this.options.forEach(((e,t)=>{const o=e.detail?e.detail.length:0,s=e.decoratorRight?e.decoratorRight.length:0,r=e.text.length+o+s;r>n&&(i=t,n=r)})),e.textContent=this.options[i].text+(this.options[i].decoratorRight?this.options[i].decoratorRight+" ":""),t=s.Tr(e)}return t}createSelectList(e){if(this.selectList)return;this.selectDropDownListContainer=s.BC(e,T(".select-box-dropdown-list-container")),this.listRenderer=new P,this.selectList=new u.B8("SelectBoxCustom",this.selectDropDownListContainer,this,[this.listRenderer],{useShadows:!1,verticalScrollMode:3,keyboardSupport:!1,mouseSupport:!1,accessibilityProvider:{getAriaLabel:e=>{let t=e.text;return e.detail&&(t+=`. ${e.detail}`),e.decoratorRight&&(t+=`. ${e.decoratorRight}`),e.description&&(t+=`. ${e.description}`),t},getWidgetAriaLabel:()=>(0,A.k)({key:"selectBox",comment:["Behave like native select dropdown element."]},"Select Box"),getRole:()=>v.zx?"":"option",getWidgetRole:()=>"listbox"}}),this.selectBoxOptions.ariaLabel&&(this.selectList.ariaLabel=this.selectBoxOptions.ariaLabel);const t=this._register(new l.f(this.selectDropDownListContainer,"keydown")),i=p.Jh.chain(t.event,(e=>e.filter((()=>this.selectList.length>0)).map((e=>new d.Z(e)))));this._register(p.Jh.chain(i,(e=>e.filter((e=>3===e.keyCode))))(this.onEnter,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>2===e.keyCode))))(this.onEnter,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>9===e.keyCode))))(this.onEscape,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>16===e.keyCode))))(this.onUpArrow,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>18===e.keyCode))))(this.onDownArrow,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>12===e.keyCode))))(this.onPageDown,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>11===e.keyCode))))(this.onPageUp,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>14===e.keyCode))))(this.onHome,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>13===e.keyCode))))(this.onEnd,this)),this._register(p.Jh.chain(i,(e=>e.filter((e=>e.keyCode>=21&&e.keyCode<=56||e.keyCode>=85&&e.keyCode<=113))))(this.onCharacter,this)),this._register(s.ko(this.selectList.getHTMLElement(),s.Bx.POINTER_UP,(e=>this.onPointerUp(e)))),this._register(this.selectList.onMouseOver((e=>void 0!==e.index&&this.selectList.setFocus([e.index])))),this._register(this.selectList.onDidChangeFocus((e=>this.onListFocus(e)))),this._register(s.ko(this.selectDropDownContainer,s.Bx.FOCUS_OUT,(e=>{this._isVisible&&!s.QX(e.relatedTarget,this.selectDropDownContainer)&&this.onListBlur()}))),this.selectList.getHTMLElement().setAttribute("aria-label",this.selectBoxOptions.ariaLabel||""),this.selectList.getHTMLElement().setAttribute("aria-expanded","true"),this.styleList()}onPointerUp(e){if(!this.selectList.length)return;s.fs.stop(e);const t=e.target;if(!t)return;if(t.classList.contains("slider"))return;const i=t.closest(".monaco-list-row");if(!i)return;const n=Number(i.getAttribute("data-index")),o=i.classList.contains("option-disabled");n>=0&&n{for(let t=0;tthis.selected+2)this.selected+=2;else{if(t)return;this.selected++}this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onUpArrow(e){this.selected>0&&(s.fs.stop(e,!0),this.options[this.selected-1].isDisabled&&this.selected>1?this.selected-=2:this.selected--,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0]))}onPageUp(e){s.fs.stop(e),this.selectList.focusPreviousPage(),setTimeout((()=>{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected>0&&(this.selected--,this.selectList.setFocus([this.selected])),this.selectList.reveal(this.selected),this.select(this.selected)}),1)}onHome(e){s.fs.stop(e),this.options.length<2||(this.selected=0,this.options[this.selected].isDisabled&&this.selected>1&&this.selected++,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onEnd(e){s.fs.stop(e),this.options.length<2||(this.selected=this.options.length-1,this.options[this.selected].isDisabled&&this.selected>1&&this.selected--,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onCharacter(e){const t=m.YM.toString(e.keyCode);let i=-1;for(let n=0;n{this._register(s.ko(this.selectElement,e,(e=>{this.selectElement.focus()})))})),this._register(s.b2(this.selectElement,"click",(e=>{s.fs.stop(e,!0)}))),this._register(s.b2(this.selectElement,"change",(e=>{this.selectElement.title=e.target.value,this._onDidSelect.fire({index:e.target.selectedIndex,selected:e.target.value})}))),this._register(s.b2(this.selectElement,"keydown",(e=>{let t=!1;v.zx?18!==e.keyCode&&16!==e.keyCode&&10!==e.keyCode||(t=!0):(18===e.keyCode&&e.altKey||10===e.keyCode||3===e.keyCode)&&(t=!0),t&&e.stopPropagation()})))}get onDidSelect(){return this._onDidSelect.event}setOptions(e,t){this.options&&g.aI(this.options,e)||(this.options=e,this.selectElement.options.length=0,this.options.forEach(((e,t)=>{this.selectElement.add(this.createOption(e.text,t,e.isDisabled))}))),void 0!==t&&this.select(t)}select(e){0===this.options.length?this.selected=0:e>=0&&ethis.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.selected{this.element&&this.handleActionChangeEvent(e)})))}handleActionChangeEvent(e){void 0!==e.enabled&&this.updateEnabled(),void 0!==e.checked&&this.updateChecked(),void 0!==e.class&&this.updateClass(),void 0!==e.label&&(this.updateLabel(),this.updateTooltip()),void 0!==e.tooltip&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new z.LN)),this._actionRunner}set actionRunner(e){this._actionRunner=e}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){const t=this.element=e;this._register(r.q.addTarget(e));const i=this.options&&this.options.draggable;i&&(e.draggable=!0,n.gm&&this._register((0,s.ko)(e,s.Bx.DRAG_START,(e=>{var t;return null===(t=e.dataTransfer)||void 0===t?void 0:t.setData(o.t.TEXT,this._action.label)})))),this._register((0,s.ko)(t,r.B.Tap,(e=>this.onClick(e,!0)))),this._register((0,s.ko)(t,s.Bx.MOUSE_DOWN,(e=>{i||s.fs.stop(e,!0),this._action.enabled&&0===e.button&&t.classList.add("active")}))),v.zx&&this._register((0,s.ko)(t,s.Bx.CONTEXT_MENU,(e=>{0===e.button&&!0===e.ctrlKey&&this.onClick(e)}))),this._register((0,s.ko)(t,s.Bx.CLICK,(e=>{s.fs.stop(e,!0),this.options&&this.options.isMenu||this.onClick(e)}))),this._register((0,s.ko)(t,s.Bx.DBLCLICK,(e=>{s.fs.stop(e,!0)}))),[s.Bx.MOUSE_UP,s.Bx.MOUSE_OUT].forEach((e=>{this._register((0,s.ko)(t,e,(e=>{s.fs.stop(e),t.classList.remove("active")})))}))}onClick(e,t=!1){var i;s.fs.stop(e,!0);const n=j.z(this._context)?(null===(i=this.options)||void 0===i?void 0:i.useEventAsContext)?e:{preserveFocus:t}:this._context;this.actionRunner.run(this._action,n)}focus(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}setFocusable(e){this.element&&(this.element.tabIndex=e?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}getClass(){return this.action.class}getTooltip(){return this.action.tooltip}updateTooltip(){var e,t,i;if(!this.element)return;const n=null!==(e=this.getTooltip())&&void 0!==e?e:"";if(this.updateAriaLabel(),null===(t=this.options.hoverDelegate)||void 0===t?void 0:t.showNativeHover)this.element.title=n;else if(this.customHover||""===n)this.customHover&&this.customHover.update(n);else{const e=null!==(i=this.options.hoverDelegate)&&void 0!==i?i:(0,a.nZ)("element");this.customHover=this._store.add((0,h.i)().setupManagedHover(e,this.element,n))}}updateAriaLabel(){var e;if(this.element){const t=null!==(e=this.getTooltip())&&void 0!==e?e:"";this.element.setAttribute("aria-label",t)}}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),this._context=void 0,super.dispose()}}class $ extends U{constructor(e,t,i){super(e,t,i),this.options=i,this.options.icon=void 0!==i.icon&&i.icon,this.options.label=void 0===i.label||i.label,this.cssClass=""}render(e){super.render(e),j.j(this.element);const t=document.createElement("a");if(t.classList.add("action-label"),t.setAttribute("role",this.getDefaultAriaRole()),this.label=t,this.element.appendChild(t),this.options.label&&this.options.keybinding){const e=document.createElement("span");e.classList.add("keybinding"),e.textContent=this.options.keybinding,this.element.appendChild(e)}this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}getDefaultAriaRole(){return this._action.id===z.wv.ID?"presentation":this.options.isMenu?"menuitem":"button"}focus(){this.label&&(this.label.tabIndex=0,this.label.focus())}blur(){this.label&&(this.label.tabIndex=-1)}setFocusable(e){this.label&&(this.label.tabIndex=e?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.action.label)}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:!this.options.label&&this.action.label&&this.options.icon&&(e=this.action.label,this.options.keybinding&&(e=A.k({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),null!=e?e:void 0}updateClass(){var e;this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getClass(),this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):null===(e=this.label)||void 0===e||e.classList.remove("codicon")}updateEnabled(){var e,t;this.action.enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),null===(e=this.element)||void 0===e||e.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),null===(t=this.element)||void 0===t||t.classList.add("disabled"))}updateAriaLabel(){var e;if(this.label){const t=null!==(e=this.getTooltip())&&void 0!==e?e:"";this.label.setAttribute("aria-label",t)}}updateChecked(){this.label&&(void 0!==this.action.checked?(this.label.classList.toggle("checked",this.action.checked),this.label.setAttribute("aria-checked",this.action.checked?"true":"false"),this.label.setAttribute("role","checkbox")):(this.label.classList.remove("checked"),this.label.removeAttribute("aria-checked"),this.label.setAttribute("role",this.getDefaultAriaRole())))}}class K extends U{constructor(e,t,i,n,o,s,r){super(e,t),this.selectBox=new V(i,n,o,s,r),this.selectBox.setFocusable(!1),this._register(this.selectBox),this.registerListeners()}select(e){this.selectBox.select(e)}registerListeners(){this._register(this.selectBox.onDidSelect((e=>this.runAction(e.selected,e.index))))}runAction(e,t){this.actionRunner.run(this._action,this.getActionContext(e,t))}getActionContext(e,t){return e}setFocusable(e){this.selectBox.setFocusable(e)}focus(){var e;null===(e=this.selectBox)||void 0===e||e.focus()}blur(){var e;null===(e=this.selectBox)||void 0===e||e.blur()}render(e){this.selectBox.render(e)}}},77439:(e,t,i)=>{"use strict";i.d(t,{E:()=>h});var n=i(14333),o=i(87594),s=i(47971),r=i(65568),a=i(27969),l=i(2106),d=i(10998),c=i(79359);i(96861);class h extends d.jG{constructor(e,t={}){var i,c,h,u,g,p,m;let f,v;switch(super(),this._actionRunnerDisposables=this._register(new d.Cm),this.viewItemDisposables=this._register(new d.$w),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new l.vl),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new l.vl({onWillAddFirstListener:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new l.vl),this.onDidRun=this._onDidRun.event,this._onWillRun=this._register(new l.vl),this.onWillRun=this._onWillRun.event,this.options=t,this._context=null!==(i=t.context)&&void 0!==i?i:null,this._orientation=null!==(c=this.options.orientation)&&void 0!==c?c:0,this._triggerKeys={keyDown:null!==(u=null===(h=this.options.triggerKeys)||void 0===h?void 0:h.keyDown)&&void 0!==u&&u,keys:null!==(p=null===(g=this.options.triggerKeys)||void 0===g?void 0:g.keys)&&void 0!==p?p:[3,10]},this._hoverDelegate=null!==(m=t.hoverDelegate)&&void 0!==m?m:this._register((0,r.bW)()),this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new a.LN,this._actionRunnerDisposables.add(this._actionRunner)),this._actionRunnerDisposables.add(this._actionRunner.onDidRun((e=>this._onDidRun.fire(e)))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun((e=>this._onWillRun.fire(e)))),this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",this._orientation){case 0:f=[15],v=[17];break;case 1:f=[16],v=[18],this.domNode.className+=" vertical"}this._register(n.ko(this.domNode,n.Bx.KEY_DOWN,(e=>{const t=new o.Z(e);let i=!0;const n="number"==typeof this.focusedItem?this.viewItems[this.focusedItem]:void 0;f&&(t.equals(f[0])||t.equals(f[1]))?i=this.focusPrevious():v&&(t.equals(v[0])||t.equals(v[1]))?i=this.focusNext():t.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():t.equals(14)?i=this.focusFirst():t.equals(13)?i=this.focusLast():t.equals(2)&&n instanceof s.EH&&n.trapsArrowNavigation?i=this.focusNext():this.isTriggerKeyEvent(t)?this._triggerKeys.keyDown?this.doTrigger(t):this.triggerKeyDown=!0:i=!1,i&&(t.preventDefault(),t.stopPropagation())}))),this._register(n.ko(this.domNode,n.Bx.KEY_UP,(e=>{const t=new o.Z(e);this.isTriggerKeyEvent(t)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(t)),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026)||t.equals(16)||t.equals(18)||t.equals(15)||t.equals(17))&&this.updateFocusedItem()}))),this.focusTracker=this._register(n.w5(this.domNode)),this._register(this.focusTracker.onDidBlur((()=>{n.bq()!==this.domNode&&n.QX(n.bq(),this.domNode)||(this._onDidBlur.fire(),this.previouslyFocusedItem=this.focusedItem,this.focusedItem=void 0,this.triggerKeyDown=!1)}))),this._register(this.focusTracker.onDidFocus((()=>this.updateFocusedItem()))),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.options.highlightToggledItems&&this.actionsList.classList.add("highlight-toggled"),this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}refreshRole(){this.length()>=1?this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"):this.actionsList.setAttribute("role","presentation")}setFocusable(e){if(this.focusable=e,this.focusable){const e=this.viewItems.find((e=>e instanceof s.EH&&e.isEnabled()));e instanceof s.EH&&e.setFocusable(!0)}else this.viewItems.forEach((e=>{e instanceof s.EH&&e.setFocusable(!1)}))}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach((i=>{t=t||e.equals(i)})),t}updateFocusedItem(){var e,t;for(let i=0;it.setActionContext(e)))}get actionRunner(){return this._actionRunner}set actionRunner(e){this._actionRunner=e,this._actionRunnerDisposables.clear(),this._actionRunnerDisposables.add(this._actionRunner.onDidRun((e=>this._onDidRun.fire(e)))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun((e=>this._onWillRun.fire(e)))),this.viewItems.forEach((t=>t.actionRunner=e))}getContainer(){return this.domNode}getAction(e){var t;if("number"==typeof e)return null===(t=this.viewItems[e])||void 0===t?void 0:t.action;if(n.sb(e)){for(;e.parentElement!==this.actionsList;){if(!e.parentElement)return;e=e.parentElement}for(let t=0;t{const i=document.createElement("li");let r;i.className="action-item",i.setAttribute("role","presentation");const a={hoverDelegate:this._hoverDelegate,...t};this.options.actionViewItemProvider&&(r=this.options.actionViewItemProvider(e,a)),r||(r=new s.Z4(this.context,e,a)),this.options.allowContextMenu||this.viewItemDisposables.set(r,n.ko(i,n.Bx.CONTEXT_MENU,(e=>{n.fs.stop(e,!0)}))),r.actionRunner=this._actionRunner,r.setActionContext(this.context),r.render(i),this.focusable&&r instanceof s.EH&&0===this.viewItems.length&&r.setFocusable(!0),null===o||o<0||o>=this.actionsList.children.length?(this.actionsList.appendChild(i),this.viewItems.push(r)):(this.actionsList.insertBefore(i,this.actionsList.children[o]),this.viewItems.splice(o,0,r),o++)})),"number"==typeof this.focusedItem&&this.focus(this.focusedItem),this.refreshRole()}clear(){this.isEmpty()||(this.viewItems=(0,d.AS)(this.viewItems),this.viewItemDisposables.clearAndDisposeAll(),n.w_(this.actionsList),this.refreshRole())}length(){return this.viewItems.length}isEmpty(){return 0===this.viewItems.length}focus(e){let t,i=!1;if(void 0===e?i=!0:"number"==typeof e?t=e:"boolean"==typeof e&&(i=e),i&&void 0===this.focusedItem){const e=this.viewItems.findIndex((e=>e.isEnabled()));this.focusedItem=-1===e?void 0:e,this.updateFocus(void 0,void 0,!0)}else void 0!==t&&(this.focusedItem=t),this.updateFocus(void 0,void 0,!0)}focusFirst(){return this.focusedItem=this.length()-1,this.focusNext(!0)}focusLast(){return this.focusedItem=0,this.focusPrevious(!0)}focusNext(e){if(void 0===this.focusedItem)this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(!e&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=t,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&(this.options.focusOnlyEnabledItems&&!i.isEnabled()||i.action.id===a.wv.ID));return this.updateFocus(),!0}focusPrevious(e){if(void 0===this.focusedItem)this.focusedItem=0;else if(this.viewItems.length<=1)return!1;const t=this.focusedItem;let i;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!e&&this.options.preventLoopNavigation)return this.focusedItem=t,!1;this.focusedItem=this.viewItems.length-1}i=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&(this.options.focusOnlyEnabledItems&&!i.isEnabled()||i.action.id===a.wv.ID));return this.updateFocus(!0),!0}updateFocus(e,t,i=!1){var n,o;void 0===this.focusedItem&&this.actionsList.focus({preventScroll:t}),void 0!==this.previouslyFocusedItem&&this.previouslyFocusedItem!==this.focusedItem&&(null===(n=this.viewItems[this.previouslyFocusedItem])||void 0===n||n.blur());const s=void 0!==this.focusedItem?this.viewItems[this.focusedItem]:void 0;if(s){let n=!0;c.Tn(s.focus)||(n=!1),this.options.focusOnlyEnabledItems&&c.Tn(s.isEnabled)&&!s.isEnabled()&&(n=!1),s.action.id===a.wv.ID&&(n=!1),n?(i||this.previouslyFocusedItem!==this.focusedItem)&&(s.focus(e),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:t}),this.previouslyFocusedItem=void 0),n&&(null===(o=s.showHover)||void 0===o||o.call(s))}}doTrigger(e){if(void 0===this.focusedItem)return;const t=this.viewItems[this.focusedItem];if(t instanceof s.EH){const i=null===t._context||void 0===t._context?e:t._context;this.run(t._action,i)}}async run(e,t){await this._actionRunner.run(e,t)}dispose(){this._context=void 0,this.viewItems=(0,d.AS)(this.viewItems),this.getContainer().remove(),super.dispose()}}},9009:(e,t,i)=>{"use strict";i.d(t,{xE:()=>x,vr:()=>S,h5:()=>L});var n=i(14333),o=i(85072),s=i.n(o),r=i(97825),a=i.n(r),l=i(77659),d=i.n(l),c=i(55056),h=i.n(c),u=i(10540),g=i.n(u),p=i(41113),m=i.n(p),f=i(35038),v={};v.styleTagTransform=m(),v.setAttributes=h(),v.insert=d().bind(null,"head"),v.domAPI=a(),v.insertStyleElement=g(),s()(f.A,v),f.A&&f.A.locals&&f.A.locals;const _=2e4;let b,w,y,C,k;function S(e){b=document.createElement("div"),b.className="monaco-aria-container";const t=()=>{const e=document.createElement("div");return e.className="monaco-alert",e.setAttribute("role","alert"),e.setAttribute("aria-atomic","true"),b.appendChild(e),e};w=t(),y=t();const i=()=>{const e=document.createElement("div");return e.className="monaco-status",e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),b.appendChild(e),e};C=i(),k=i(),e.appendChild(b)}function x(e){b&&(w.textContent!==e?(n.w_(y),D(w,e)):(n.w_(w),D(y,e)))}function L(e){b&&(C.textContent!==e?(n.w_(k),D(C,e)):(n.w_(C),D(k,e)))}function D(e,t){n.w_(e),t.length>_&&(t=t.substr(0,_)),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}},75524:(e,t,i)=>{"use strict";i.d(t,{$:()=>N});var n=i(14333),o=i(92542),s=i(87594),r=i(36930),a=i(30474),l=i(65568),d=i(91818),c=i(94901),h=i(2106),u=i(90028),g=i(10998),p=i(58881),m=i(85072),f=i.n(m),v=i(97825),_=i.n(v),b=i(77659),w=i.n(b),y=i(55056),C=i.n(y),k=i(10540),S=i.n(k),x=i(41113),L=i.n(x),D=i(18880),E={};E.styleTagTransform=L(),E.setAttributes=C(),E.insert=w().bind(null,"head"),E.domAPI=_(),E.insertStyleElement=S(),f()(D.A,E),D.A&&D.A.locals&&D.A.locals;var I=i(20396);c.Q1.white.toString(),c.Q1.white.toString();class N extends g.jG{get onDidClick(){return this._onDidClick.event}constructor(e,t){super(),this._label="",this._onDidClick=this._register(new h.vl),this._onDidEscape=this._register(new h.vl),this.options=t,this._element=document.createElement("a"),this._element.classList.add("monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),this._element.classList.toggle("secondary",!!t.secondary);const i=t.secondary?t.buttonSecondaryBackground:t.buttonBackground,o=t.secondary?t.buttonSecondaryForeground:t.buttonForeground;this._element.style.color=o||"",this._element.style.backgroundColor=i||"",t.supportShortLabel&&(this._labelShortElement=document.createElement("div"),this._labelShortElement.classList.add("monaco-button-label-short"),this._element.appendChild(this._labelShortElement),this._labelElement=document.createElement("div"),this._labelElement.classList.add("monaco-button-label"),this._element.appendChild(this._labelElement),this._element.classList.add("monaco-text-button-with-short-label")),"string"==typeof t.title&&this.setTitle(t.title),"string"==typeof t.ariaLabel&&this._element.setAttribute("aria-label",t.ariaLabel),e.appendChild(this._element),this._register(a.q.addTarget(this._element)),[n.Bx.CLICK,a.B.Tap].forEach((e=>{this._register((0,n.ko)(this._element,e,(e=>{this.enabled?this._onDidClick.fire(e):n.fs.stop(e)})))})),this._register((0,n.ko)(this._element,n.Bx.KEY_DOWN,(e=>{const t=new s.Z(e);let i=!1;this.enabled&&(t.equals(3)||t.equals(10))?(this._onDidClick.fire(e),i=!0):t.equals(9)&&(this._onDidEscape.fire(e),this._element.blur(),i=!0),i&&n.fs.stop(t,!0)}))),this._register((0,n.ko)(this._element,n.Bx.MOUSE_OVER,(e=>{this._element.classList.contains("disabled")||this.updateBackground(!0)}))),this._register((0,n.ko)(this._element,n.Bx.MOUSE_OUT,(e=>{this.updateBackground(!1)}))),this.focusTracker=this._register((0,n.w5)(this._element)),this._register(this.focusTracker.onDidFocus((()=>{this.enabled&&this.updateBackground(!0)}))),this._register(this.focusTracker.onDidBlur((()=>{this.enabled&&this.updateBackground(!1)})))}dispose(){super.dispose(),this._element.remove()}getContentElements(e){const t=[];for(let i of(0,d.n)(e))if("string"==typeof i){if(i=i.trim(),""===i)continue;const e=document.createElement("span");e.textContent=i,t.push(e)}else t.push(i);return t}updateBackground(e){let t;t=this.options.secondary?e?this.options.buttonSecondaryHoverBackground:this.options.buttonSecondaryBackground:e?this.options.buttonHoverBackground:this.options.buttonBackground,t&&(this._element.style.backgroundColor=t)}get element(){return this._element}set label(e){var t;if(this._label===e)return;if((0,u.VS)(this._label)&&(0,u.VS)(e)&&(0,u.nK)(this._label,e))return;this._element.classList.add("monaco-text-button");const i=this.options.supportShortLabel?this._labelElement:this._element;if((0,u.VS)(e)){const s=(0,r.Gc)(e,{inline:!0});s.dispose();const a=null===(t=s.element.querySelector("p"))||void 0===t?void 0:t.innerHTML;if(a){const e=(0,o.aj)(a,{ADD_TAGS:["b","i","u","code","span"],ALLOWED_ATTR:["class"],RETURN_TRUSTED_TYPE:!0});i.innerHTML=e}else(0,n.Ln)(i)}else this.options.supportIcons?(0,n.Ln)(i,...this.getContentElements(e)):i.textContent=e;let s="";"string"==typeof this.options.title?s=this.options.title:this.options.title&&(s=(0,r.R9)(e)),this.setTitle(s),"string"==typeof this.options.ariaLabel?this._element.setAttribute("aria-label",this.options.ariaLabel):this.options.ariaLabel&&this._element.setAttribute("aria-label",s),this._label=e}get label(){return this._label}set icon(e){this._element.classList.add(...p.L.asClassNameArray(e))}set enabled(e){e?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}setTitle(e){var t;this._hover||""===e?this._hover&&this._hover.update(e):this._hover=this._register((0,I.i)().setupManagedHover(null!==(t=this.options.hoverDelegate)&&void 0!==t?t:(0,l.nZ)("mouse"),this._element,e))}}},30761:(e,t,i)=>{"use strict";var n=i(85072),o=i.n(n),s=i(97825),r=i.n(s),a=i(77659),l=i.n(a),d=i(55056),c=i.n(d),h=i(10540),u=i.n(h),g=i(41113),p=i.n(g),m=i(12171),f={};f.styleTagTransform=p(),f.setAttributes=c(),f.insert=l().bind(null,"head"),f.domAPI=r(),f.insertStyleElement=u(),o()(m.A,f),m.A&&m.A.locals&&m.A.locals;var v=i(714),_={};_.styleTagTransform=p(),_.setAttributes=c(),_.insert=l().bind(null,"head"),_.domAPI=r(),_.insertStyleElement=u(),o()(v.A,_),v.A&&v.A.locals&&v.A.locals},42443:(e,t,i)=>{"use strict";i.d(t,{x:()=>b});var n=i(14333),o=i(16844),s=i(85072),r=i.n(s),a=i(97825),l=i.n(a),d=i(77659),c=i.n(d),h=i(55056),u=i.n(h),g=i(10540),p=i.n(g),m=i(41113),f=i.n(m),v=i(81684),_={};_.styleTagTransform=f(),_.setAttributes=u(),_.insert=c().bind(null,"head"),_.domAPI=l(),_.insertStyleElement=p(),r()(v.A,_),v.A&&v.A.locals&&v.A.locals;class b{constructor(e,t,i){this.options=t,this.styles=i,this.count=0,this.element=(0,n.BC)(e,(0,n.$)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(e){this.count=e,this.render()}setTitleFormat(e){this.titleFormat=e,this.render()}render(){var e,t;this.element.textContent=(0,o.GP)(this.countFormat,this.count),this.element.title=(0,o.GP)(this.titleFormat,this.count),this.element.style.backgroundColor=null!==(e=this.styles.badgeBackground)&&void 0!==e?e:"",this.element.style.color=null!==(t=this.styles.badgeForeground)&&void 0!==t?t:"",this.styles.badgeBorder&&(this.element.style.border=`1px solid ${this.styles.badgeBorder}`)}}},53568:(e,t,i)=>{"use strict";i.d(t,{d:()=>D});var n=i(14333),o=i(47971),s=i(87594),r=i(30474),a=i(27969),l=i(2106),d=i(85072),c=i.n(d),h=i(97825),u=i.n(h),g=i(77659),p=i.n(g),m=i(55056),f=i.n(m),v=i(10540),_=i.n(v),b=i(41113),w=i.n(b),y=i(79862),C={};C.styleTagTransform=w(),C.setAttributes=f(),C.insert=p().bind(null,"head"),C.domAPI=u(),C.insertStyleElement=_(),c()(y.A,C),y.A&&y.A.locals&&y.A.locals;class k extends a.LN{constructor(e,t){super(),this._onDidChangeVisibility=this._register(new l.vl),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=(0,n.BC)(e,(0,n.$)(".monaco-dropdown")),this._label=(0,n.BC)(this._element,(0,n.$)(".dropdown-label"));let i=t.labelRenderer;i||(i=e=>(e.textContent=t.label||"",null));for(const e of[n.Bx.CLICK,n.Bx.MOUSE_DOWN,r.B.Tap])this._register((0,n.ko)(this.element,e,(e=>n.fs.stop(e,!0))));for(const e of[n.Bx.MOUSE_DOWN,r.B.Tap])this._register((0,n.ko)(this._label,e,(e=>{(0,n.Er)(e)&&(e.detail>1||0!==e.button)||(this.visible?this.hide():this.show())})));this._register((0,n.ko)(this._label,n.Bx.KEY_UP,(e=>{const t=new s.Z(e);(t.equals(3)||t.equals(10))&&(n.fs.stop(e,!0),this.visible?this.hide():this.show())})));const o=i(this._label);o&&this._register(o),this._register(r.q.addTarget(this._label))}get element(){return this._element}show(){this.visible||(this.visible=!0,this._onDidChangeVisibility.fire(!0))}hide(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}dispose(){super.dispose(),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}}class S extends k{constructor(e,t){super(e,t),this._options=t,this._actions=[],this.actions=t.actions||[]}set menuOptions(e){this._menuOptions=e}get menuOptions(){return this._menuOptions}get actions(){return this._options.actionProvider?this._options.actionProvider.getActions():this._actions}set actions(e){this._actions=e}show(){super.show(),this.element.classList.add("active"),this._options.contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:(e,t)=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(e,t):void 0,getKeyBinding:e=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(e):void 0,getMenuClassName:()=>this._options.menuClassName||"",onHide:()=>this.onHide(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this._options.menuAsChild?this.element:void 0,skipTelemetry:this._options.skipTelemetry})}hide(){super.hide()}onHide(){this.hide(),this.element.classList.remove("active")}}var x=i(65568),L=i(20396);class D extends o.EH{constructor(e,t,i,n=Object.create(null)){super(null,e,n),this.actionItem=null,this._onDidChangeVisibility=this._register(new l.vl),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this.menuActionsOrProvider=t,this.contextMenuProvider=i,this.options=n,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(e){this.actionItem=e;const t=Array.isArray(this.menuActionsOrProvider),i={contextMenuProvider:this.contextMenuProvider,labelRenderer:e=>{var t;this.element=(0,n.BC)(e,(0,n.$)("a.action-label"));let i=[];return"string"==typeof this.options.classNames?i=this.options.classNames.split(/\s+/g).filter((e=>!!e)):this.options.classNames&&(i=this.options.classNames),i.find((e=>"icon"===e))||i.push("codicon"),this.element.classList.add(...i),this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this._action.label&&this._register((0,L.i)().setupManagedHover(null!==(t=this.options.hoverDelegate)&&void 0!==t?t:(0,x.nZ)("mouse"),this.element,this._action.label)),this.element.ariaLabel=this._action.label||"",null},menuAsChild:this.options.menuAsChild,actions:t?this.menuActionsOrProvider:void 0,actionProvider:t?void 0:this.menuActionsOrProvider,skipTelemetry:this.options.skipTelemetry};if(this.dropdownMenu=this._register(new S(e,i)),this._register(this.dropdownMenu.onDidChangeVisibility((e=>{var t;null===(t=this.element)||void 0===t||t.setAttribute("aria-expanded",`${e}`),this._onDidChangeVisibility.fire(e)}))),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){const e=this;this.dropdownMenu.menuOptions={...this.dropdownMenu.menuOptions,get anchorAlignment(){return e.options.anchorAlignmentProvider()}}}this.updateTooltip(),this.updateEnabled()}getTooltip(){let e=null;return this.action.tooltip?e=this.action.tooltip:this.action.label&&(e=this.action.label),null!=e?e:void 0}setActionContext(e){super.setActionContext(e),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=e:this.dropdownMenu.menuOptions={context:e})}show(){var e;null===(e=this.dropdownMenu)||void 0===e||e.show()}updateEnabled(){var e,t;const i=!this.action.enabled;null===(e=this.actionItem)||void 0===e||e.classList.toggle("disabled",i),null===(t=this.element)||void 0===t||t.classList.toggle("disabled",i)}}},6595:(e,t,i)=>{"use strict";i.d(t,{c:()=>u});var n=i(14333),o=i(5906),s=i(39451),r=i(45222),a=i(2106),l=(i(37905),i(3765)),d=i(10998),c=i(65568);const h=l.k("defaultLabel","input");class u extends r.x{constructor(e,t,i){super(),this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this.additionalTogglesDisposables=this._register(new d.HE),this.additionalToggles=[],this._onDidOptionChange=this._register(new a.vl),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new a.vl),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new a.vl),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new a.vl),this._onKeyUp=this._register(new a.vl),this._onCaseSensitiveKeyDown=this._register(new a.vl),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new a.vl),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.placeholder=i.placeholder||"",this.validation=i.validation,this.label=i.label||h,this.showCommonFindToggles=!!i.showCommonFindToggles;const r=i.appendCaseSensitiveLabel||"",l=i.appendWholeWordsLabel||"",u=i.appendRegexLabel||"",g=i.history||[],p=!!i.flexibleHeight,m=!!i.flexibleWidth,f=i.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new s.mJ(this.domNode,t,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},history:g,showHistoryHint:i.showHistoryHint,flexibleHeight:p,flexibleWidth:m,flexibleMaxHeight:f,inputBoxStyles:i.inputBoxStyles}));const v=this._register((0,c.bW)());if(this.showCommonFindToggles){this.regex=this._register(new o.Ix({appendTitle:u,isChecked:!1,hoverDelegate:v,...i.toggleStyles})),this._register(this.regex.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.regex.onKeyDown((e=>{this._onRegexKeyDown.fire(e)}))),this.wholeWords=this._register(new o.nV({appendTitle:l,isChecked:!1,hoverDelegate:v,...i.toggleStyles})),this._register(this.wholeWords.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this.caseSensitive=this._register(new o.bc({appendTitle:r,isChecked:!1,hoverDelegate:v,...i.toggleStyles})),this._register(this.caseSensitive.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.caseSensitive.onKeyDown((e=>{this._onCaseSensitiveKeyDown.fire(e)})));const e=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,(t=>{if(t.equals(15)||t.equals(17)||t.equals(9)){const i=e.indexOf(this.domNode.ownerDocument.activeElement);if(i>=0){let o=-1;t.equals(17)?o=(i+1)%e.length:t.equals(15)&&(o=0===i?e.length-1:i-1),t.equals(9)?(e[i].blur(),this.inputBox.focus()):o>=0&&e[o].focus(),n.fs.stop(t,!0)}}}))}this.controls=document.createElement("div"),this.controls.className="controls",this.controls.style.display=this.showCommonFindToggles?"":"none",this.caseSensitive&&this.controls.append(this.caseSensitive.domNode),this.wholeWords&&this.controls.appendChild(this.wholeWords.domNode),this.regex&&this.controls.appendChild(this.regex.domNode),this.setAdditionalToggles(null==i?void 0:i.additionalToggles),this.controls&&this.domNode.appendChild(this.controls),null==e||e.appendChild(this.domNode),this._register(n.ko(this.inputBox.inputElement,"compositionstart",(e=>{this.imeSessionInProgress=!0}))),this._register(n.ko(this.inputBox.inputElement,"compositionend",(e=>{this.imeSessionInProgress=!1,this._onInput.fire()}))),this.onkeydown(this.inputBox.inputElement,(e=>this._onKeyDown.fire(e))),this.onkeyup(this.inputBox.inputElement,(e=>this._onKeyUp.fire(e))),this.oninput(this.inputBox.inputElement,(e=>this._onInput.fire())),this.onmousedown(this.inputBox.inputElement,(e=>this._onMouseDown.fire(e)))}get onDidChange(){return this.inputBox.onDidChange}layout(e){this.inputBox.layout(),this.updateInputBoxPadding(e.collapsedFindWidget)}enable(){var e,t,i;this.domNode.classList.remove("disabled"),this.inputBox.enable(),null===(e=this.regex)||void 0===e||e.enable(),null===(t=this.wholeWords)||void 0===t||t.enable(),null===(i=this.caseSensitive)||void 0===i||i.enable();for(const e of this.additionalToggles)e.enable()}disable(){var e,t,i;this.domNode.classList.add("disabled"),this.inputBox.disable(),null===(e=this.regex)||void 0===e||e.disable(),null===(t=this.wholeWords)||void 0===t||t.disable(),null===(i=this.caseSensitive)||void 0===i||i.disable();for(const e of this.additionalToggles)e.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}setAdditionalToggles(e){for(const e of this.additionalToggles)e.domNode.remove();this.additionalToggles=[],this.additionalTogglesDisposables.value=new d.Cm;for(const t of null!=e?e:[])this.additionalTogglesDisposables.value.add(t),this.controls.appendChild(t.domNode),this.additionalTogglesDisposables.value.add(t.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus()}))),this.additionalToggles.push(t);this.additionalToggles.length>0&&(this.controls.style.display=""),this.updateInputBoxPadding()}updateInputBoxPadding(e=!1){var t,i,n,o,s,r;this.inputBox.paddingRight=e?0:(null!==(i=null===(t=this.caseSensitive)||void 0===t?void 0:t.width())&&void 0!==i?i:0)+(null!==(o=null===(n=this.wholeWords)||void 0===n?void 0:n.width())&&void 0!==o?o:0)+(null!==(r=null===(s=this.regex)||void 0===s?void 0:s.width())&&void 0!==r?r:0)+this.additionalToggles.reduce(((e,t)=>e+t.width()),0)}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){var e,t;return null!==(t=null===(e=this.caseSensitive)||void 0===e?void 0:e.checked)&&void 0!==t&&t}setCaseSensitive(e){this.caseSensitive&&(this.caseSensitive.checked=e)}getWholeWords(){var e,t;return null!==(t=null===(e=this.wholeWords)||void 0===e?void 0:e.checked)&&void 0!==t&&t}setWholeWords(e){this.wholeWords&&(this.wholeWords.checked=e)}getRegex(){var e,t;return null!==(t=null===(e=this.regex)||void 0===e?void 0:e.checked)&&void 0!==t&&t}setRegex(e){this.regex&&(this.regex.checked=e,this.validate())}focusOnCaseSensitive(){var e;null===(e=this.caseSensitive)||void 0===e||e.focus()}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}showMessage(e){this.inputBox.showMessage(e)}clearMessage(){this.inputBox.hideMessage()}}},5906:(e,t,i)=>{"use strict";i.d(t,{Ix:()=>u,bc:()=>c,nV:()=>h});var n=i(65568),o=i(86004),s=i(26048),r=i(3765);const a=r.k("caseDescription","Match Case"),l=r.k("wordsDescription","Match Whole Word"),d=r.k("regexDescription","Use Regular Expression");class c extends o.l{constructor(e){var t;super({icon:s.W.caseSensitive,title:a+e.appendTitle,isChecked:e.isChecked,hoverDelegate:null!==(t=e.hoverDelegate)&&void 0!==t?t:(0,n.nZ)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class h extends o.l{constructor(e){var t;super({icon:s.W.wholeWord,title:l+e.appendTitle,isChecked:e.isChecked,hoverDelegate:null!==(t=e.hoverDelegate)&&void 0!==t?t:(0,n.nZ)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class u extends o.l{constructor(e){var t;super({icon:s.W.regex,title:d+e.appendTitle,isChecked:e.isChecked,hoverDelegate:null!==(t=e.hoverDelegate)&&void 0!==t?t:(0,n.nZ)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}},8431:(e,t,i)=>{"use strict";i.d(t,{_:()=>d});var n=i(14333),o=i(20396),s=i(65568),r=i(91818),a=i(10998),l=i(71386);class d extends a.jG{constructor(e,t){var i;super(),this.options=t,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=null!==(i=null==t?void 0:t.supportIcons)&&void 0!==i&&i,this.domNode=n.BC(e,n.$("span.monaco-highlighted-label"))}get element(){return this.domNode}set(e,t=[],i="",n){e||(e=""),n&&(e=d.escapeNewLines(e,t)),this.didEverRender&&this.text===e&&this.title===i&&l.aI(this.highlights,t)||(this.text=e,this.title=i,this.highlights=t,this.render())}render(){var e,t,i,a;const l=[];let d=0;for(const e of this.highlights){if(e.end===e.start)continue;if(d{n="\r\n"===e?-1:0,o+=i;for(const e of t)e.end<=o||(e.start>=o&&(e.start+=n),e.end>=o&&(e.end+=n));return i+=n,"⏎"}))}}},20396:(e,t,i)=>{"use strict";i.d(t,{e:()=>o,i:()=>s});let n={showHover:()=>{},hideHover:()=>{},showAndFocusLastHover:()=>{},setupManagedHover:()=>null,showManagedHover:()=>{}};function o(e){n=e}function s(){return n}},65568:(e,t,i)=>{"use strict";i.d(t,{MW:()=>a,bW:()=>d,nZ:()=>l});var n=i(63946);let o=()=>({get delay(){return-1},dispose:()=>{},showHover:()=>{}});const s=new n.d((()=>o("mouse",!1))),r=new n.d((()=>o("element",!1)));function a(e){o=e}function l(e){return"element"===e?r.value:s.value}function d(){return o("element",!0)}},35190:(e,t,i)=>{"use strict";i.d(t,{vV:()=>L,jQ:()=>S,N4:()=>k,M4:()=>D,vr:()=>x});var n=i(14333),o=i(87594),s=i(75239),r=i(10998),a=i(85072),l=i.n(a),d=i(97825),c=i.n(d),h=i(77659),u=i.n(h),g=i(55056),p=i.n(g),m=i(10540),f=i.n(m),v=i(41113),_=i.n(v),b=i(58694),w={};w.styleTagTransform=_(),w.setAttributes=p(),w.insert=u().bind(null,"head"),w.domAPI=c(),w.insertStyleElement=f(),l()(b.A,w),b.A&&b.A.locals&&b.A.locals;var y=i(3765);const C=n.$;class k extends r.jG{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 s.MU(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class S extends r.jG{static render(e,t,i){return new S(e,t,i)}constructor(e,t,i){super(),this.actionLabel=t.label,this.actionKeybindingLabel=i,this.actionContainer=n.BC(e,C("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=n.BC(this.actionContainer,C("a.action")),this.action.setAttribute("role","button"),t.iconClass&&n.BC(this.action,C(`span.icon.${t.iconClass}`)),n.BC(this.action,C("span")).textContent=i?`${t.label} (${i})`:t.label,this._store.add(new L(this.actionContainer,t.run)),this._store.add(new D(this.actionContainer,t.run,[3,10])),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"))}}function x(e,t){return e&&t?(0,y.k)("acessibleViewHint","Inspect this in the accessible view with {0}.",t):e?(0,y.k)("acessibleViewHintNoKbOpen","Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."):""}class L extends r.jG{constructor(e,t){super(),this._register(n.ko(e,n.Bx.CLICK,(i=>{i.stopPropagation(),i.preventDefault(),t(e)})))}}class D extends r.jG{constructor(e,t,i){super(),this._register(n.ko(e,n.Bx.KEY_DOWN,(n=>{const s=new o.Z(n);i.some((e=>s.equals(e)))&&(n.stopPropagation(),n.preventDefault(),t(e))})))}}},24772:(e,t,i)=>{"use strict";i.d(t,{s:()=>D});var n=i(85072),o=i.n(n),s=i(97825),r=i.n(s),a=i(77659),l=i.n(a),d=i(55056),c=i.n(d),h=i(10540),u=i.n(h),g=i(41113),p=i.n(g),m=i(48134),f={};f.styleTagTransform=p(),f.setAttributes=c(),f.insert=l().bind(null,"head"),f.domAPI=r(),f.insertStyleElement=u(),o()(m.A,f),m.A&&m.A.locals&&m.A.locals;var v=i(14333),_=i(8431),b=i(10998),w=i(71386),y=i(82199),C=i(65568),k=i(20396),S=i(79359),x=i(24594);class L{constructor(e){this._element=e}get element(){return this._element}set textContent(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)}set className(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}}class D extends b.jG{constructor(e,t){var i;super(),this.customHovers=new Map,this.creationOptions=t,this.domNode=this._register(new L(v.BC(e,v.$(".monaco-icon-label")))),this.labelContainer=v.BC(this.domNode.element,v.$(".monaco-icon-label-container")),this.nameContainer=v.BC(this.labelContainer,v.$("span.monaco-icon-name-container")),(null==t?void 0:t.supportHighlights)||(null==t?void 0:t.supportIcons)?this.nameNode=this._register(new I(this.nameContainer,!!t.supportIcons)):this.nameNode=new E(this.nameContainer),this.hoverDelegate=null!==(i=null==t?void 0:t.hoverDelegate)&&void 0!==i?i:(0,C.nZ)("mouse")}get element(){return this.domNode.element}setLabel(e,t,i){var n;const o=["monaco-icon-label"],s=["monaco-icon-label-container"];let r="";i&&(i.extraClasses&&o.push(...i.extraClasses),i.italic&&o.push("italic"),i.strikethrough&&o.push("strikethrough"),i.disabledCommand&&s.push("disabled"),i.title&&("string"==typeof i.title?r+=i.title:r+=e));const a=this.domNode.element.querySelector(".monaco-icon-label-iconpath");if(null==i?void 0:i.iconPath){let e;a&&v.sb(a)?e=a:(e=v.$(".monaco-icon-label-iconpath"),this.domNode.element.prepend(e)),e.style.backgroundImage=v.Tf(null==i?void 0:i.iconPath)}else a&&a.remove();if(this.domNode.className=o.join(" "),this.domNode.element.setAttribute("aria-label",r),this.labelContainer.className=s.join(" "),this.setupHover((null==i?void 0:i.descriptionTitle)?this.labelContainer:this.element,null==i?void 0:i.title),this.nameNode.setLabel(e,i),t||this.descriptionNode){const e=this.getOrCreateDescriptionNode();e instanceof _._?(e.set(t||"",i?i.descriptionMatches:void 0,void 0,null==i?void 0:i.labelEscapeNewLines),this.setupHover(e.element,null==i?void 0:i.descriptionTitle)):(e.textContent=t&&(null==i?void 0:i.labelEscapeNewLines)?_._.escapeNewLines(t,[]):t||"",this.setupHover(e.element,(null==i?void 0:i.descriptionTitle)||""),e.empty=!t)}((null==i?void 0:i.suffix)||this.suffixNode)&&(this.getOrCreateSuffixNode().textContent=null!==(n=null==i?void 0:i.suffix)&&void 0!==n?n:"")}setupHover(e,t){const i=this.customHovers.get(e);if(i&&(i.dispose(),this.customHovers.delete(e)),t)if(this.hoverDelegate.showNativeHover){function n(e,t){(0,S.Kg)(t)?e.title=(0,x.pS)(t):(null==t?void 0:t.markdownNotSupportedFallback)?e.title=t.markdownNotSupportedFallback:e.removeAttribute("title")}n(e,t)}else{const o=(0,k.i)().setupManagedHover(this.hoverDelegate,e,t);o&&this.customHovers.set(e,o)}else e.removeAttribute("title")}dispose(){super.dispose();for(const e of this.customHovers.values())e.dispose();this.customHovers.clear()}getOrCreateSuffixNode(){if(!this.suffixNode){const e=this._register(new L(v.Pl(this.nameContainer,v.$("span.monaco-icon-suffix-container"))));this.suffixNode=this._register(new L(v.BC(e.element,v.$("span.label-suffix"))))}return this.suffixNode}getOrCreateDescriptionNode(){var e;if(!this.descriptionNode){const t=this._register(new L(v.BC(this.labelContainer,v.$("span.monaco-icon-description-container"))));(null===(e=this.creationOptions)||void 0===e?void 0:e.supportDescriptionHighlights)?this.descriptionNode=this._register(new _._(v.BC(t.element,v.$("span.label-description")),{supportIcons:!!this.creationOptions.supportIcons})):this.descriptionNode=this._register(new L(v.BC(t.element,v.$("span.label-description"))))}return this.descriptionNode}}class E{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!(0,w.aI)(this.options,t))if(this.label=e,this.options=t,"string"==typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=v.BC(this.container,v.$("a.label-name",{id:null==t?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let i=0;i{const o={start:n,end:n+e.length},s=i.map((e=>y.Q.intersect(o,e))).filter((e=>!y.Q.isEmpty(e))).map((({start:e,end:t})=>({start:e-n,end:t-n})));return n=o.end+t.length,s}))}(e,i,null==t?void 0:t.matches);for(let o=0;o{"use strict";i.d(t,{n:()=>r,s:()=>a});var n=i(14333),o=i(58881);const s=new RegExp(`(\\\\)?\\$\\((${o.L.iconNameExpression}(?:${o.L.iconModifierExpression})?)\\)`,"g");function r(e){const t=new Array;let i,n=0,o=0;for(;null!==(i=s.exec(e));){o=i.index||0,n{"use strict";i.d(t,{mJ:()=>R,x8:()=>A});var n=i(14333),o=i(34061),s=i(88213),r=i(77439),a=i(9009),l=i(20396),d=i(65568),c=i(75239),h=i(45222),u=i(2106);class g{constructor(e,t=0,i=e.length,n=t-1){this.items=e,this.start=t,this.end=i,this.index=n}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}next(){return this.index=Math.min(this.index+1,this.end),this.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}}class p{constructor(e=[],t=10){this._initialize(e),this._limit=t,this._onChange()}getHistory(){return this._elements}add(e){this._history.delete(e),this._history.add(e),this._onChange()}next(){return this._navigator.next()}previous(){return 0!==this._currentPosition()?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}isLast(){return this._currentPosition()>=this._elements.length-1}isNowhere(){return null===this._navigator.current()}has(e){return this._history.has(e)}_onChange(){this._reduceToLimit();const e=this._elements;this._navigator=new g(e,0,e.length,e.length)}_reduceToLimit(){const e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))}_currentPosition(){const e=this._navigator.current();return e?this._elements.indexOf(e):-1}_initialize(e){this._history=new Set;for(const t of e)this._history.add(t)}get _elements(){const e=[];return this._history.forEach((t=>e.push(t))),e}}var m=i(71386),f=i(85072),v=i.n(f),_=i(97825),b=i.n(_),w=i(77659),y=i.n(w),C=i(55056),k=i.n(C),S=i(10540),x=i.n(S),L=i(41113),D=i.n(L),E=i(1366),I={};I.styleTagTransform=D(),I.setAttributes=k(),I.insert=y().bind(null,"head"),I.domAPI=b(),I.insertStyleElement=x(),v()(E.A,I),E.A&&E.A.locals&&E.A.locals;var N=i(3765);const M=n.$,A={inputBackground:"#3C3C3C",inputForeground:"#CCCCCC",inputValidationInfoBorder:"#55AAFF",inputValidationInfoBackground:"#063B49",inputValidationWarningBorder:"#B89500",inputValidationWarningBackground:"#352A05",inputValidationErrorBorder:"#BE1100",inputValidationErrorBackground:"#5A1D1D",inputBorder:void 0,inputValidationErrorForeground:void 0,inputValidationInfoForeground:void 0,inputValidationWarningForeground:void 0};class T extends h.x{constructor(e,t,i){var s;super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new u.vl),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new u.vl),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=i,this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=null!==(s=this.options.tooltip)&&void 0!==s?s:this.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=n.BC(e,M(".monaco-inputbox.idle"));const a=this.options.flexibleHeight?"textarea":"input",l=n.BC(this.element,M(".ibwrapper"));if(this.input=n.BC(l,M(a+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,(()=>this.element.classList.add("synthetic-focus"))),this.onblur(this.input,(()=>this.element.classList.remove("synthetic-focus"))),this.options.flexibleHeight){this.maxHeight="number"==typeof this.options.flexibleMaxHeight?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=n.BC(l,M("div.mirror")),this.mirror.innerText=" ",this.scrollableElement=new c.Se(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),n.BC(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll((e=>this.input.scrollTop=e.scrollTop)));const t=this._register(new o.f(e.ownerDocument,"selectionchange")),i=u.Jh.filter(t.event,(()=>{const t=e.ownerDocument.getSelection();return(null==t?void 0:t.anchorNode)===l}));this._register(i(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&!this.options.showPlaceholderOnFocus&&this.setPlaceHolder(this.placeholder),this.tooltip&&this.setTooltip(this.tooltip),this.oninput(this.input,(()=>this.onValueChange())),this.onblur(this.input,(()=>this.onBlur())),this.onfocus(this.input,(()=>this.onFocus())),this._register(this.ignoreGesture(this.input)),setTimeout((()=>this.updateMirror()),0),this.options.actions&&(this.actionbar=this._register(new r.E(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","")}onFocus(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"")}setPlaceHolder(e){this.placeholder=e,this.input.setAttribute("placeholder",e)}setTooltip(e){this.tooltip=e,this.hover?this.hover.update(e):this.hover=this._register((0,l.i)().setupManagedHover((0,d.nZ)("mouse"),this.input,e))}get inputElement(){return this.input}get value(){return this.input.value}set value(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())}get height(){return"number"==typeof this.cachedHeight?this.cachedHeight:n.OK(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return n.X7(this.input)}select(e=null){this.input.select(),e&&(this.input.setSelectionRange(e.start,e.end),e.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth))}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}getSelection(){var e;const t=this.input.selectionStart;return null===t?null:{start:t,end:null!==(e=this.input.selectionEnd)&&void 0!==e?e:t}}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}set paddingRight(e){this.input.style.width=`calc(100% - ${e}px)`,this.mirror&&(this.mirror.style.paddingRight=e+"px")}updateScrollDimensions(){if("number"!=typeof this.cachedContentHeight||"number"!=typeof this.cachedHeight||!this.scrollableElement)return;const e=this.cachedContentHeight,t=this.cachedHeight,i=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:i})}showMessage(e,t){if("open"===this.state&&(0,m.aI)(this.message,e))return;this.message=e,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(e.type));const i=this.stylesForType(this.message.type);this.element.style.border=`1px solid ${n.gI(i.border,"transparent")}`,this.message.content&&(this.hasFocus()||t)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let e=null;return this.validation&&(e=this.validation(this.value),e?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),null==e?void 0:e.type}stylesForType(e){const t=this.options.inputBoxStyles;switch(e){case 1:return{border:t.inputValidationInfoBorder,background:t.inputValidationInfoBackground,foreground:t.inputValidationInfoForeground};case 2:return{border:t.inputValidationWarningBorder,background:t.inputValidationWarningBackground,foreground:t.inputValidationWarningForeground};default:return{border:t.inputValidationErrorBorder,background:t.inputValidationErrorBackground,foreground:t.inputValidationErrorForeground}}}classForType(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let e;const t=()=>e.style.width=n.Tr(this.element)+"px";let i;this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:i=>{var o,r;if(!this.message)return null;e=n.BC(i,M(".monaco-inputbox-container")),t();const a={inline:!0,className:"monaco-inputbox-message"},l=this.message.formatContent?(0,s.yk)(this.message.content,a):(0,s.S5)(this.message.content,a);l.classList.add(this.classForType(this.message.type));const d=this.stylesForType(this.message.type);return l.style.backgroundColor=null!==(o=d.background)&&void 0!==o?o:"",l.style.color=null!==(r=d.foreground)&&void 0!==r?r:"",l.style.border=d.border?`1px solid ${d.border}`:"",n.BC(e,l),null},onHide:()=>{this.state="closed"},layout:t}),i=3===this.message.type?N.k("alertErrorMessage","Error: {0}",this.message.content):2===this.message.type?N.k("alertWarningMessage","Warning: {0}",this.message.content):N.k("alertInfoMessage","Info: {0}",this.message.content),a.xE(i),this.state="open"}_hideMessage(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;const e=this.value,t=10===e.charCodeAt(e.length-1)?" ":"";(e+t).replace(/\u000c/g,"")?this.mirror.textContent=e+t:this.mirror.innerText=" ",this.layout()}applyStyles(){var e,t,i;const o=this.options.inputBoxStyles,s=null!==(e=o.inputBackground)&&void 0!==e?e:"",r=null!==(t=o.inputForeground)&&void 0!==t?t:"",a=null!==(i=o.inputBorder)&&void 0!==i?i:"";this.element.style.backgroundColor=s,this.element.style.color=r,this.input.style.backgroundColor="inherit",this.input.style.color=r,this.element.style.border=`1px solid ${n.gI(a,"transparent")}`}layout(){if(!this.mirror)return;const e=this.cachedContentHeight;this.cachedContentHeight=n.OK(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(e){const t=this.inputElement,i=t.selectionStart,n=t.selectionEnd,o=t.value;null!==i&&null!==n&&(this.value=o.substr(0,i)+e+o.substr(n),t.setSelectionRange(i+1,i+1),this.layout())}dispose(){var e;this._hideMessage(),this.message=null,null===(e=this.actionbar)||void 0===e||e.dispose(),super.dispose()}}class R extends T{constructor(e,t,i){const o=N.k({key:"history.inputbox.hint.suffix.noparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field ends in a closing parenthesis ")", for example "Filter (e.g. text, !exclude)". The character inserted into the final string is ⇅ to represent the up and down arrow keys.']}," or {0} for history","⇅"),s=N.k({key:"history.inputbox.hint.suffix.inparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field does NOT end in a closing parenthesis (eg. "Find"). The character inserted into the final string is ⇅ to represent the up and down arrow keys.']}," ({0} for history)","⇅");super(e,t,i),this._onDidFocus=this._register(new u.vl),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new u.vl),this.onDidBlur=this._onDidBlur.event,this.history=new p(i.history,100);const r=()=>{if(i.showHistoryHint&&i.showHistoryHint()&&!this.placeholder.endsWith(o)&&!this.placeholder.endsWith(s)&&this.history.getHistory().length){const e=this.placeholder.endsWith(")")?o:s,t=this.placeholder+e;i.showPlaceholderOnFocus&&!n.X7(this.input)?this.placeholder=t:this.setPlaceHolder(t)}};this.observer=new MutationObserver(((e,t)=>{e.forEach((e=>{e.target.textContent||r()}))})),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,(()=>r())),this.onblur(this.input,(()=>{const e=e=>{if(this.placeholder.endsWith(e)){const t=this.placeholder.slice(0,this.placeholder.length-e.length);return i.showPlaceholderOnFocus?this.placeholder=t:this.setPlaceHolder(t),!0}return!1};e(s)||e(o)}))}dispose(){super.dispose(),this.observer&&(this.observer.disconnect(),this.observer=void 0)}addToHistory(e){this.value&&(e||this.value!==this.getCurrentValue())&&this.history.add(this.value)}isAtLastInHistory(){return this.history.isLast()}isNowhereInHistory(){return this.history.isNowhere()}showNextValue(){this.history.has(this.value)||this.addToHistory();let e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),this.value=null!=e?e:"",a.h5(this.value?this.value:N.k("clearedInput","Cleared Input"))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,a.h5(this.value))}setPlaceHolder(e){super.setPlaceHolder(e),this.setTooltip(e)}onBlur(){super.onBlur(),this._onDidBlur.fire()}onFocus(){super.onFocus(),this._onDidFocus.fire()}getCurrentValue(){let e=this.history.current();return e||(e=this.history.last(),this.history.next()),e}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()}}},57784:(e,t,i)=>{"use strict";i.d(t,{x:()=>L,l:()=>x});var n=i(14333),o=i(20396),s=i(65568),r=i(98315),a=i(10998),l=i(71386),d=i(85072),c=i.n(d),h=i(97825),u=i.n(h),g=i(77659),p=i.n(g),m=i(55056),f=i.n(m),v=i(10540),_=i.n(v),b=i(41113),w=i.n(b),y=i(95422),C={};C.styleTagTransform=w(),C.setAttributes=f(),C.insert=p().bind(null,"head"),C.domAPI=u(),C.insertStyleElement=_(),c()(y.A,C),y.A&&y.A.locals&&y.A.locals;var k=i(3765);const S=n.$,x={keybindingLabelBackground:void 0,keybindingLabelForeground:void 0,keybindingLabelBorder:void 0,keybindingLabelBottomBorder:void 0,keybindingLabelShadow:void 0};class L extends a.jG{constructor(e,t,i){super(),this.os=t,this.keyElements=new Set,this.options=i||Object.create(null);const r=this.options.keybindingLabelForeground;this.domNode=n.BC(e,S(".monaco-keybinding")),r&&(this.domNode.style.color=r),this.hover=this._register((0,o.i)().setupManagedHover((0,s.nZ)("mouse"),this.domNode,"")),this.didEverRender=!1,e.appendChild(this.domNode)}get element(){return this.domNode}set(e,t){this.didEverRender&&this.keybinding===e&&L.areSame(this.matches,t)||(this.keybinding=e,this.matches=t,this.render())}render(){var e;if(this.clear(),this.keybinding){const t=this.keybinding.getChords();t[0]&&this.renderChord(this.domNode,t[0],this.matches?this.matches.firstPart:null);for(let e=1;e{"use strict";i.d(t,{ur:()=>S,uO:()=>E});var n=i(39587),o=i(14333),s=i(34061),r=i(30474),a=i(75239),l=i(13338),d=i(65958),c=i(88846),h=i(2106),u=i(10998),g=i(82199),p=i(94513);function m(e,t){const i=[];for(const n of t){if(e.start>=n.range.end)continue;if(e.end({range:f(e.range,n),size:e.size}))),r=i.map(((t,i)=>({range:{start:e+i,end:e+i+1},size:t.size})));this.groups=function(...e){return function(e){const t=[];let i=null;for(const n of e){const e=n.range.start,o=n.range.end,s=n.size;i&&s===i.size?i.range.end=o:(i={range:{start:e,end:o},size:s},t.push(i))}return t}(e.reduce(((e,t)=>e.concat(t)),[]))}(o,r,s),this._size=this._paddingTop+this.groups.reduce(((e,t)=>e+t.size*(t.range.end-t.range.start)),0)}get count(){const e=this.groups.length;return e?this.groups[e-1].range.end:0}get size(){return this._size}indexAt(e){if(e<0)return-1;if(e{for(const i of e)this.getRenderer(t).disposeTemplate(i.templateData),i.templateData=null})),this.cache.clear(),this.transactionNodesPendingRemoval.clear()}getRenderer(e){const t=this.renderers.get(e);if(!t)throw new Error(`No renderer found for ${e}`);return t}}var b=i(94327),w=i(62992),y=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};const C={CurrentDragAndDropData:void 0},k={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:e=>[e],getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){},dispose(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class S{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class x{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class L{constructor(){this.types=[],this.files=[]}update(e){if(e.types&&this.types.splice(0,this.types.length,...e.types),e.files){this.files.splice(0,this.files.length);for(let t=0;ti,(null==e?void 0:e.getPosInSet)?this.getPosInSet=e.getPosInSet.bind(e):this.getPosInSet=(e,t)=>t+1,(null==e?void 0:e.getRole)?this.getRole=e.getRole.bind(e):this.getRole=e=>"listitem",(null==e?void 0:e.isChecked)?this.isChecked=e.isChecked.bind(e):this.isChecked=e=>{}}}class E{get contentHeight(){return this.rangeMap.size}get onDidScroll(){return this.scrollableElement.onScroll}get scrollableElementDomNode(){return this.scrollableElement.getDomNode()}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(e){if(e!==this._horizontalScrolling){if(e&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=e,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const e of this.items)this.measureItemWidth(e);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:(0,o.y6)(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}constructor(e,t,i,n=k){var s,l,c,g,m,f,v,b,w,y,C,S,x;if(this.virtualDelegate=t,this.domId="list_id_"+ ++E.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new d.ve(50),this.splicing=!1,this.dragOverAnimationStopDisposable=u.jG.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=u.jG.None,this.onDragLeaveTimeout=u.jG.None,this.disposables=new u.Cm,this._onDidChangeContentHeight=new h.vl,this._onDidChangeContentWidth=new h.vl,this.onDidChangeContentHeight=h.Jh.latch(this._onDidChangeContentHeight.event,void 0,this.disposables),this._horizontalScrolling=!1,n.horizontalScrolling&&n.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=this.createRangeMap(null!==(s=n.paddingTop)&&void 0!==s?s:0);for(const e of i)this.renderers.set(e.templateId,e);this.cache=this.disposables.add(new _(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support","boolean"!=typeof n.mouseSupport||n.mouseSupport),this._horizontalScrolling=null!==(l=n.horizontalScrolling)&&void 0!==l?l:k.horizontalScrolling,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.paddingBottom=void 0===n.paddingBottom?0:n.paddingBottom,this.accessibilityProvider=new D(n.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",(null!==(c=n.transformOptimization)&&void 0!==c?c:k.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)",this.rowsContainer.style.overflow="hidden",this.rowsContainer.style.contain="strict"),this.disposables.add(r.q.addTarget(this.rowsContainer)),this.scrollable=this.disposables.add(new p.yE({forceIntegerValues:!0,smoothScrollDuration:null!==(g=n.smoothScrolling)&&void 0!==g&&g?125:0,scheduleAtNextAnimationFrame:e=>(0,o.PG)((0,o.zk)(this.domNode),e)})),this.scrollableElement=this.disposables.add(new a.oO(this.rowsContainer,{alwaysConsumeMouseWheel:null!==(m=n.alwaysConsumeMouseWheel)&&void 0!==m?m:k.alwaysConsumeMouseWheel,horizontal:1,vertical:null!==(f=n.verticalScrollMode)&&void 0!==f?f:k.verticalScrollMode,useShadows:null!==(v=n.useShadows)&&void 0!==v?v:k.useShadows,mouseWheelScrollSensitivity:n.mouseWheelScrollSensitivity,fastScrollSensitivity:n.fastScrollSensitivity,scrollByPage:n.scrollByPage},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add((0,o.ko)(this.rowsContainer,r.B.Change,(e=>this.onTouchChange(e)))),this.disposables.add((0,o.ko)(this.scrollableElement.getDomNode(),"scroll",(e=>e.target.scrollTop=0))),this.disposables.add((0,o.ko)(this.domNode,"dragover",(e=>this.onDragOver(this.toDragEvent(e))))),this.disposables.add((0,o.ko)(this.domNode,"drop",(e=>this.onDrop(this.toDragEvent(e))))),this.disposables.add((0,o.ko)(this.domNode,"dragleave",(e=>this.onDragLeave(this.toDragEvent(e))))),this.disposables.add((0,o.ko)(this.domNode,"dragend",(e=>this.onDragEnd(e)))),this.setRowLineHeight=null!==(b=n.setRowLineHeight)&&void 0!==b?b:k.setRowLineHeight,this.setRowHeight=null!==(w=n.setRowHeight)&&void 0!==w?w:k.setRowHeight,this.supportDynamicHeights=null!==(y=n.supportDynamicHeights)&&void 0!==y?y:k.supportDynamicHeights,this.dnd=null!==(C=n.dnd)&&void 0!==C?C:this.disposables.add(k.dnd),this.layout(null===(S=n.initialSize)||void 0===S?void 0:S.height,null===(x=n.initialSize)||void 0===x?void 0:x.width)}updateOptions(e){let t;if(void 0!==e.paddingBottom&&(this.paddingBottom=e.paddingBottom,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),void 0!==e.smoothScrolling&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),void 0!==e.horizontalScrolling&&(this.horizontalScrolling=e.horizontalScrolling),void 0!==e.scrollByPage&&(t={...null!=t?t:{},scrollByPage:e.scrollByPage}),void 0!==e.mouseWheelScrollSensitivity&&(t={...null!=t?t:{},mouseWheelScrollSensitivity:e.mouseWheelScrollSensitivity}),void 0!==e.fastScrollSensitivity&&(t={...null!=t?t:{},fastScrollSensitivity:e.fastScrollSensitivity}),t&&this.scrollableElement.updateOptions(t),void 0!==e.paddingTop&&e.paddingTop!==this.rangeMap.paddingTop){const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),i=e.paddingTop-this.rangeMap.paddingTop;this.rangeMap.paddingTop=e.paddingTop,this.render(t,Math.max(0,this.lastRenderTop+i),this.lastRenderHeight,void 0,void 0,!0),this.setScrollTop(this.lastRenderTop),this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.lastRenderTop,this.lastRenderHeight)}}createRangeMap(e){return new v(e)}splice(e,t,i=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,i)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(e,t,i=[]){const n=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),o={start:e,end:e+t},s=g.Q.intersect(n,o),r=new Map;for(let e=s.end-1;e>=s.start;e--){const t=this.items[e];if(t.dragStartDisposable.dispose(),t.checkedDisposable.dispose(),t.row){let i=r.get(t.templateId);i||(i=[],r.set(t.templateId,i));const n=this.renderers.get(t.templateId);n&&n.disposeElement&&n.disposeElement(t.element,e,t.row.templateData,t.size),i.unshift(t.row)}t.row=null,t.stale=!0}const a={start:e+t,end:this.items.length},l=g.Q.intersect(a,n),d=g.Q.relativeComplement(a,n),c=i.map((e=>({id:String(this.itemId++),element:e,templateId:this.virtualDelegate.getTemplateId(e),size:this.virtualDelegate.getHeight(e),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(e),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:u.jG.None,checkedDisposable:u.jG.None,stale:!1})));let h;0===e&&t>=this.items.length?(this.rangeMap=this.createRangeMap(this.rangeMap.paddingTop),this.rangeMap.splice(0,0,c),h=this.items,this.items=c):(this.rangeMap.splice(e,t,c),h=this.items.splice(e,t,...c));const p=i.length-t,m=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),v=f(l,p),_=g.Q.intersect(m,v);for(let e=_.start;e<_.end;e++)this.updateItemInDOM(this.items[e],e);const b=g.Q.relativeComplement(v,m);for(const e of b)for(let t=e.start;tf(e,p))),y=[{start:e,end:e+i.length},...w].map((e=>g.Q.intersect(m,e))).reverse();for(const e of y)for(let t=e.end-1;t>=e.start;t--){const e=this.items[t],i=r.get(e.templateId),n=null==i?void 0:i.pop();this.insertItemInDOM(t,n)}for(const e of r.values())for(const t of e)this.cache.release(t);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),h.map((e=>e.element))}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=(0,o.PG)((0,o.zk)(this.domNode),(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null})))}eventuallyUpdateScrollWidth(){this.horizontalScrolling?this.scrollableElementWidthDelayer.trigger((()=>this.updateScrollWidth())):this.scrollableElementWidthDelayer.cancel()}updateScrollWidth(){if(!this.horizontalScrolling)return;let e=0;for(const t of this.items)void 0!==t.width&&(e=Math.max(e,t.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:0===e?0:e+10}),this._onDidChangeContentWidth.fire(this.scrollWidth)}rerender(){if(this.supportDynamicHeights){for(const e of this.items)e.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}get firstVisibleIndex(){return this.getRenderRange(this.lastRenderTop,this.lastRenderHeight).start}element(e){return this.items[e].element}indexOf(e){return this.items.findIndex((t=>t.element===e))}domElement(e){const t=this.items[e].row;return t&&t.domNode}elementHeight(e){return this.items[e].size}elementTop(e){return this.rangeMap.positionAt(e)}indexAt(e){return this.rangeMap.indexAt(e)}indexAfter(e){return this.rangeMap.indexAfter(e)}layout(e,t){const i={height:"number"==typeof e?e:(0,o.H4)(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,i.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(i),void 0!==t&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:"number"==typeof t?t:(0,o.y6)(this.domNode)})}render(e,t,i,n,o,s=!1){const r=this.getRenderRange(t,i),a=g.Q.relativeComplement(r,e).reverse(),l=g.Q.relativeComplement(e,r);if(s){const t=g.Q.intersect(e,r);for(let e=t.start;e{for(const e of l)for(let t=e.start;t=e.start;t--)this.insertItemInDOM(t)})),void 0!==n&&(this.rowsContainer.style.left=`-${n}px`),this.rowsContainer.style.top=`-${t}px`,this.horizontalScrolling&&void 0!==o&&(this.rowsContainer.style.width=`${Math.max(o,this.renderWidth)}px`),this.lastRenderTop=t,this.lastRenderHeight=i}insertItemInDOM(e,t){var i,n,s;const r=this.items[e];if(!r.row)if(t)r.row=t,r.stale=!0;else{const e=this.cache.alloc(r.templateId);r.row=e.row,r.stale||(r.stale=e.isReusingConnectedDomNode)}const a=this.accessibilityProvider.getRole(r.element)||"listitem";r.row.domNode.setAttribute("role",a);const l=this.accessibilityProvider.isChecked(r.element);if("boolean"==typeof l)r.row.domNode.setAttribute("aria-checked",String(!!l));else if(l){const e=e=>r.row.domNode.setAttribute("aria-checked",String(!!e));e(l.value),r.checkedDisposable=l.onDidChange((()=>e(l.value)))}if(r.stale||!r.row.domNode.parentElement){const t=null!==(s=null===(n=null===(i=this.items.at(e+1))||void 0===i?void 0:i.row)||void 0===n?void 0:n.domNode)&&void 0!==s?s:null;r.row.domNode.parentElement===this.rowsContainer&&r.row.domNode.nextElementSibling===t||this.rowsContainer.insertBefore(r.row.domNode,t),r.stale=!1}this.updateItemInDOM(r,e);const d=this.renderers.get(r.templateId);if(!d)throw new Error(`No renderer found for template id ${r.templateId}`);null==d||d.renderElement(r.element,e,r.row.templateData,r.size);const c=this.dnd.getDragURI(r.element);r.dragStartDisposable.dispose(),r.row.domNode.draggable=!!c,c&&(r.dragStartDisposable=(0,o.ko)(r.row.domNode,"dragstart",(e=>this.onDragStart(r.element,c,e)))),this.horizontalScrolling&&(this.measureItemWidth(r),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){if(!e.row||!e.row.domNode)return;e.row.domNode.style.width="fit-content",e.width=(0,o.y6)(e.row.domNode);const t=(0,o.zk)(e.row.domNode).getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}updateItemInDOM(e,t){e.row.domNode.style.top=`${this.elementTop(t)}px`,this.setRowHeight&&(e.row.domNode.style.height=`${e.size}px`),this.setRowLineHeight&&(e.row.domNode.style.lineHeight=`${e.size}px`),e.row.domNode.setAttribute("data-index",`${t}`),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("data-parity",t%2==0?"even":"odd"),e.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),e.row.domNode.classList.toggle("drop-target",e.dropTarget)}removeItemFromDOM(e){const t=this.items[e];if(t.dragStartDisposable.dispose(),t.checkedDisposable.dispose(),t.row){const i=this.renderers.get(t.templateId);i&&i.disposeElement&&i.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(e,t){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e,reuseAnimation:t})}get scrollTop(){return this.getScrollTop()}set scrollTop(e){this.setScrollTop(e)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.paddingBottom}get onMouseClick(){return h.Jh.map(this.disposables.add(new s.f(this.domNode,"click")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseDblClick(){return h.Jh.map(this.disposables.add(new s.f(this.domNode,"dblclick")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseMiddleClick(){return h.Jh.filter(h.Jh.map(this.disposables.add(new s.f(this.domNode,"auxclick")).event,(e=>this.toMouseEvent(e)),this.disposables),(e=>1===e.browserEvent.button),this.disposables)}get onMouseDown(){return h.Jh.map(this.disposables.add(new s.f(this.domNode,"mousedown")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseOver(){return h.Jh.map(this.disposables.add(new s.f(this.domNode,"mouseover")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onMouseOut(){return h.Jh.map(this.disposables.add(new s.f(this.domNode,"mouseout")).event,(e=>this.toMouseEvent(e)),this.disposables)}get onContextMenu(){return h.Jh.any(h.Jh.map(this.disposables.add(new s.f(this.domNode,"contextmenu")).event,(e=>this.toMouseEvent(e)),this.disposables),h.Jh.map(this.disposables.add(new s.f(this.domNode,r.B.Contextmenu)).event,(e=>this.toGestureEvent(e)),this.disposables))}get onTouchStart(){return h.Jh.map(this.disposables.add(new s.f(this.domNode,"touchstart")).event,(e=>this.toTouchEvent(e)),this.disposables)}get onTap(){return h.Jh.map(this.disposables.add(new s.f(this.rowsContainer,r.B.Tap)).event,(e=>this.toGestureEvent(e)),this.disposables)}toMouseEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toTouchEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toGestureEvent(e){const t=this.getItemIndexFromEventTarget(e.initialTarget||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element}}toDragEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),i=void 0===t?void 0:this.items[t];return{browserEvent:e,index:t,element:i&&i.element,sector:this.getTargetSector(e,t)}}onScroll(e){try{const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(t,e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height,e.inSmoothScrolling)}catch(t){throw console.error("Got bad scroll event:",e),t}}onTouchChange(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY}onDragStart(e,t,i){var s,r;if(!i.dataTransfer)return;const a=this.dnd.getDragElements(e);if(i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setData(n.t.TEXT,t),i.dataTransfer.setDragImage){let e;this.dnd.getDragLabel&&(e=this.dnd.getDragLabel(a,i)),void 0===e&&(e=String(a.length));const t=(0,o.$)(".monaco-drag-image");t.textContent=e,(e=>{for(;e&&!e.classList.contains("monaco-workbench");)e=e.parentElement;return e||this.domNode.ownerDocument})(this.domNode).appendChild(t),i.dataTransfer.setDragImage(t,-10,-10),setTimeout((()=>t.remove()),0)}this.domNode.classList.add("dragging"),this.currentDragData=new S(a),C.CurrentDragAndDropData=new x(a),null===(r=(s=this.dnd).onDragStart)||void 0===r||r.call(s,this.currentDragData,i)}onDragOver(e){var t,i;if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),C.CurrentDragAndDropData&&"vscode-ui"===C.CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(C.CurrentDragAndDropData)this.currentDragData=C.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new L}const n=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.sector,e.browserEvent);if(this.canDrop="boolean"==typeof n?n:n.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;let o;e.browserEvent.dataTransfer.dropEffect="boolean"!=typeof n&&0===(null===(t=n.effect)||void 0===t?void 0:t.type)?"copy":"move",o="boolean"!=typeof n&&n.feedback?n.feedback:void 0===e.index?[-1]:[e.index],o=(0,l.dM)(o).filter((e=>e>=-1&&ee-t)),o=-1===o[0]?[-1]:o;let s="boolean"!=typeof n&&n.effect&&n.effect.position?n.effect.position:"drop-target";if(r=this.currentDragFeedback,a=o,(Array.isArray(r)&&Array.isArray(a)?(0,l.aI)(r,a):r===a)&&this.currentDragFeedbackPosition===s)return!0;var r,a;if(this.currentDragFeedback=o,this.currentDragFeedbackPosition=s,this.currentDragFeedbackDisposable.dispose(),-1===o[0])this.domNode.classList.add(s),this.rowsContainer.classList.add(s),this.currentDragFeedbackDisposable=(0,u.s)((()=>{this.domNode.classList.remove(s),this.rowsContainer.classList.remove(s)}));else{if(o.length>1&&"drop-target"!==s)throw new Error("Can't use multiple feedbacks with position different than 'over'");"drop-target-after"===s&&o[0]{var e;for(const t of o){const i=this.items[t];i.dropTarget=!1,null===(e=i.row)||void 0===e||e.domNode.classList.remove(s)}}))}return!0}onDragLeave(e){var t,i;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=(0,d.EQ)((()=>this.clearDragOverFeedback()),100,this.disposables),this.currentDragData&&(null===(i=(t=this.dnd).onDragLeave)||void 0===i||i.call(t,this.currentDragData,e.element,e.index,e.browserEvent))}onDrop(e){if(!this.canDrop)return;const t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,C.CurrentDragAndDropData=void 0,t&&e.browserEvent.dataTransfer&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.sector,e.browserEvent))}onDragEnd(e){var t,i;this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,C.CurrentDragAndDropData=void 0,null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackPosition=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=u.jG.None}setupDragAndDropScrollTopAnimation(e){if(!this.dragOverAnimationDisposable){const e=(0,o.cL)(this.domNode).top;this.dragOverAnimationDisposable=(0,o.i0)((0,o.zk)(this.domNode),this.animateDragAndDropScrollTop.bind(this,e))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=(0,d.EQ)((()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}),1e3,this.disposables),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){if(void 0===this.dragOverMouseY)return;const t=this.dragOverMouseY-e,i=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>i&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-i))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getTargetSector(e,t){if(void 0===t)return;const i=e.offsetY/this.items[t].size,n=Math.floor(i/.25);return(0,w.qE)(n,0,3)}getItemIndexFromEventTarget(e){const t=this.scrollableElement.getDomNode();let i=e;for(;(0,o.sb)(i)&&i!==this.rowsContainer&&t.contains(i);){const e=i.getAttribute("data-index");if(e){const t=Number(e);if(!isNaN(t))return t}i=i.parentElement}}getRenderRange(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}}_rerender(e,t,i){const n=this.getRenderRange(e,t);let o,s;e===this.elementTop(n.start)?(o=n.start,s=0):n.end-n.start>1&&(o=n.start+1,s=this.elementTop(o)-e);let r=0;for(;;){const a=this.getRenderRange(e,t);let l=!1;for(let e=a.start;e=e.start;t--)this.insertItemInDOM(t);for(let e=a.start;e{"use strict";i.d(t,{hb:()=>K,B8:()=>ee,MH:()=>$,_C:()=>w,W0:()=>R,Bm:()=>F,B6:()=>N,b$:()=>T,bm:()=>A,mh:()=>j,tX:()=>z,Es:()=>O,xu:()=>P,bG:()=>q});var n=i(14333),o=i(34061),s=i(87594),r=i(30474),a=i(9009);class l{constructor(e){this.spliceables=e}splice(e,t,i){this.spliceables.forEach((n=>n.splice(e,t,i)))}}var d=i(13338),c=i(65958),h=i(94901),u=i(88846),g=i(2106),p=i(75637),m=i(10998),f=i(62992),v=i(63339),_=i(79359);i(67119);class b extends Error{constructor(e,t){super(`ListError [${e}] ${t}`)}}var w,y,C=i(83022),k=i(9715),S=i(16311),x=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};class L{constructor(e){this.trait=e,this.renderedElements=[]}get templateId(){return`template:${this.trait.name}`}renderTemplate(e){return e}renderElement(e,t,i){const n=this.renderedElements.findIndex((e=>e.templateData===i));if(n>=0){const e=this.renderedElements[n];this.trait.unrender(i),e.index=t}else{const e={index:t,templateData:i};this.renderedElements.push(e)}this.trait.renderIndex(t,i)}splice(e,t,i){const n=[];for(const o of this.renderedElements)o.index=e+t&&n.push({index:o.index+i-t,templateData:o.templateData});this.renderedElements=n}renderIndexes(e){for(const{index:t,templateData:i}of this.renderedElements)e.indexOf(t)>-1&&this.trait.renderIndex(t,i)}disposeTemplate(e){const t=this.renderedElements.findIndex((t=>t.templateData===e));t<0||this.renderedElements.splice(t,1)}}class D{get name(){return this._trait}get renderer(){return new L(this)}constructor(e){this._trait=e,this.indexes=[],this.sortedIndexes=[],this._onChange=new g.vl,this.onChange=this._onChange.event}splice(e,t,i){const n=i.length-t,o=e+t,s=[];let r=0;for(;r=o;)s.push(this.sortedIndexes[r++]+n);this.renderer.splice(e,t,i.length),this._set(s,s)}renderIndex(e,t){t.classList.toggle(this._trait,this.contains(e))}unrender(e){e.classList.remove(this._trait)}set(e,t){return this._set(e,[...e].sort(Z),t)}_set(e,t,i){const n=this.indexes,o=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;const s=Q(o,e);return this.renderer.renderIndexes(s),this._onChange.fire({indexes:e,browserEvent:i}),n}get(){return this.indexes}contains(e){return(0,d.El)(this.sortedIndexes,e,Z)>=0}dispose(){(0,m.AS)(this._onChange)}}x([u.B],D.prototype,"renderer",null);class E extends D{constructor(e){super("selected"),this.setAriaSelected=e}renderIndex(e,t){super.renderIndex(e,t),this.setAriaSelected&&(this.contains(e)?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false"))}}class I{constructor(e,t,i){this.trait=e,this.view=t,this.identityProvider=i}splice(e,t,i){if(!this.identityProvider)return this.trait.splice(e,t,new Array(i.length).fill(!1));const n=this.trait.get().map((e=>this.identityProvider.getId(this.view.element(e)).toString()));if(0===n.length)return this.trait.splice(e,t,new Array(i.length).fill(!1));const o=new Set(n),s=i.map((e=>o.has(this.identityProvider.getId(e).toString())));this.trait.splice(e,t,s)}}function N(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function M(e,t){return!!e.classList.contains(t)||!e.classList.contains("monaco-list")&&!!e.parentElement&&M(e.parentElement,t)}function A(e){return M(e,"monaco-editor")}function T(e){return M(e,"monaco-custom-toggle")}function R(e){return M(e,"action-item")}function P(e){return M(e,"monaco-tree-sticky-row")}function O(e){return e.classList.contains("monaco-tree-sticky-container")}function F(e){return!!("A"===e.tagName&&e.classList.contains("monaco-button")||"DIV"===e.tagName&&e.classList.contains("monaco-button-dropdown"))||!e.classList.contains("monaco-list")&&!!e.parentElement&&F(e.parentElement)}class B{get onKeyDown(){return g.Jh.chain(this.disposables.add(new o.f(this.view.domNode,"keydown")).event,(e=>e.filter((e=>!N(e.target))).map((e=>new s.Z(e)))))}constructor(e,t,i){this.list=e,this.view=t,this.disposables=new m.Cm,this.multipleSelectionDisposables=new m.Cm,this.multipleSelectionSupport=i.multipleSelectionSupport,this.disposables.add(this.onKeyDown((e=>{switch(e.keyCode){case 3:return this.onEnter(e);case 16:return this.onUpArrow(e);case 18:return this.onDownArrow(e);case 11:return this.onPageUpArrow(e);case 12:return this.onPageDownArrow(e);case 9:return this.onEscape(e);case 31:this.multipleSelectionSupport&&(v.zx?e.metaKey:e.ctrlKey)&&this.onCtrlA(e)}})))}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionSupport=e.multipleSelectionSupport)}onEnter(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent)}onUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onPageDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent);const t=this.list.getFocus()[0];this.list.setAnchor(t),this.list.reveal(t),this.view.domNode.focus()}onCtrlA(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection((0,d.y1)(this.list.length),e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}onEscape(e){this.list.getSelection().length&&(e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}x([u.B],B.prototype,"onKeyDown",null),function(e){e[e.Automatic=0]="Automatic",e[e.Trigger=1]="Trigger"}(w||(w={})),function(e){e[e.Idle=0]="Idle",e[e.Typing=1]="Typing"}(y||(y={}));const W=new class{mightProducePrintableCharacter(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30||e.keyCode>=98&&e.keyCode<=107||e.keyCode>=85&&e.keyCode<=95)}};class H{constructor(e,t,i,n,o){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=i,this.keyboardNavigationEventFilter=n,this.delegate=o,this.enabled=!1,this.state=y.Idle,this.mode=w.Automatic,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new m.Cm,this.disposables=new m.Cm,this.updateOptions(e.options)}updateOptions(e){var t,i;null===(t=e.typeNavigationEnabled)||void 0===t||t?this.enable():this.disable(),this.mode=null!==(i=e.typeNavigationMode)&&void 0!==i?i:w.Automatic}enable(){if(this.enabled)return;let e=!1;const t=g.Jh.chain(this.enabledDisposables.add(new o.f(this.view.domNode,"keydown")).event,(t=>t.filter((e=>!N(e.target))).filter((()=>this.mode===w.Automatic||this.triggered)).map((e=>new s.Z(e))).filter((t=>e||this.keyboardNavigationEventFilter(t))).filter((e=>this.delegate.mightProducePrintableCharacter(e))).forEach((e=>n.fs.stop(e,!0))).map((e=>e.browserEvent.key)))),i=g.Jh.debounce(t,(()=>null),800,void 0,void 0,void 0,this.enabledDisposables);g.Jh.reduce(g.Jh.any(t,i),((e,t)=>null===t?null:(e||"")+t),void 0,this.enabledDisposables)(this.onInput,this,this.enabledDisposables),i(this.onClear,this,this.enabledDisposables),t((()=>e=!0),void 0,this.enabledDisposables),i((()=>e=!1),void 0,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){var e;const t=this.list.getFocus();if(t.length>0&&t[0]===this.previouslyFocused){const i=null===(e=this.list.options.accessibilityProvider)||void 0===e?void 0:e.getAriaLabel(this.list.element(t[0]));"string"==typeof i?(0,a.xE)(i):i&&(0,a.xE)(i.get())}this.previouslyFocused=-1}onInput(e){if(!e)return this.state=y.Idle,void(this.triggered=!1);const t=this.list.getFocus(),i=t.length>0?t[0]:0,n=this.state===y.Idle?1:0;this.state=y.Typing;for(let t=0;t1&&1===t.length)return this.previouslyFocused=i,this.list.setFocus([o]),void this.list.reveal(o)}}else if(void 0===r||(0,p.WP)(e,r))return this.previouslyFocused=i,this.list.setFocus([o]),void this.list.reveal(o)}}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}}class V{constructor(e,t){this.list=e,this.view=t,this.disposables=new m.Cm;const i=g.Jh.chain(this.disposables.add(new o.f(t.domNode,"keydown")).event,(e=>e.filter((e=>!N(e.target))).map((e=>new s.Z(e)))));g.Jh.chain(i,(e=>e.filter((e=>!(2!==e.keyCode||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)))))(this.onTab,this,this.disposables)}onTab(e){if(e.target!==this.view.domNode)return;const t=this.list.getFocus();if(0===t.length)return;const i=this.view.domElement(t[0]);if(!i)return;const o=i.querySelector("[tabIndex]");if(!o||!(0,n.sb)(o)||-1===o.tabIndex)return;const s=(0,n.zk)(o).getComputedStyle(o);"hidden"!==s.visibility&&"none"!==s.display&&(e.preventDefault(),e.stopPropagation(),o.focus())}dispose(){this.disposables.dispose()}}function z(e){return v.zx?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function j(e){return e.browserEvent.shiftKey}const U={isSelectionSingleChangeEvent:z,isSelectionRangeChangeEvent:j};class ${constructor(e){this.list=e,this.disposables=new m.Cm,this._onPointer=new g.vl,this.onPointer=this._onPointer.event,!1!==e.options.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||U),this.mouseSupport=void 0===e.options.mouseSupport||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(r.q.addTarget(e.getHTMLElement()))),g.Jh.any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionController=void 0,e.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||U))}isSelectionSingleChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionSingleChangeEvent(e)}isSelectionRangeChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionRangeChangeEvent(e)}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){A(e.browserEvent.target)||(0,n.bq)()!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){if(N(e.browserEvent.target)||A(e.browserEvent.target))return;const t=void 0===e.index?[]:[e.index];this.list.setFocus(t,e.browserEvent)}onViewPointer(e){if(!this.mouseSupport)return;if(N(e.browserEvent.target)||A(e.browserEvent.target))return;if(e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;const t=e.index;return void 0===t?(this.list.setFocus([],e.browserEvent),this.list.setSelection([],e.browserEvent),void this.list.setAnchor(void 0)):this.isSelectionChangeEvent(e)?this.changeSelection(e):(this.list.setFocus([t],e.browserEvent),this.list.setAnchor(t),i=e.browserEvent,(0,n.Er)(i)&&2===i.button||this.list.setSelection([t],e.browserEvent),void this._onPointer.fire(e));var i}onDoubleClick(e){if(N(e.browserEvent.target)||A(e.browserEvent.target))return;if(this.isSelectionChangeEvent(e))return;if(e.browserEvent.isHandledByList)return;e.browserEvent.isHandledByList=!0;const t=this.list.getFocus();this.list.setSelection(t,e.browserEvent)}changeSelection(e){const t=e.index;let i=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(e)){if(void 0===i){const e=this.list.getFocus()[0];i=null!=e?e:t,this.list.setAnchor(i)}const n=Math.min(i,t),o=Math.max(i,t),s=(0,d.y1)(n,o+1),r=this.list.getSelection(),a=function(e,t){const i=e.indexOf(t);if(-1===i)return[];const n=[];let o=i-1;for(;o>=0&&e[o]===t-(i-o);)n.push(e[o--]);for(n.reverse(),o=i;o=e.length)i.push(t[o++]);else if(o>=t.length)i.push(e[n++]);else{if(e[n]===t[o]){n++,o++;continue}e[n]e!==t));this.list.setFocus([t]),this.list.setAnchor(t),i.length===n.length?this.list.setSelection([...n,t],e.browserEvent):this.list.setSelection(n,e.browserEvent)}}dispose(){this.disposables.dispose()}}class K{constructor(e,t){this.styleElement=e,this.selectorSuffix=t}style(e){var t,i;const o=this.selectorSuffix&&`.${this.selectorSuffix}`,s=[];e.listBackground&&s.push(`.monaco-list${o} .monaco-list-rows { background: ${e.listBackground}; }`),e.listFocusBackground&&(s.push(`.monaco-list${o}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),s.push(`.monaco-list${o}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&s.push(`.monaco-list${o}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(s.push(`.monaco-list${o}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),s.push(`.monaco-list${o}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&s.push(`.monaco-list${o}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listActiveSelectionIconForeground&&s.push(`.monaco-list${o}:focus .monaco-list-row.selected .codicon { color: ${e.listActiveSelectionIconForeground}; }`),e.listFocusAndSelectionBackground&&s.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${o}:focus .monaco-list-row.selected.focused { background-color: ${e.listFocusAndSelectionBackground}; }\n\t\t\t`),e.listFocusAndSelectionForeground&&s.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${o}:focus .monaco-list-row.selected.focused { color: ${e.listFocusAndSelectionForeground}; }\n\t\t\t`),e.listInactiveFocusForeground&&(s.push(`.monaco-list${o} .monaco-list-row.focused { color: ${e.listInactiveFocusForeground}; }`),s.push(`.monaco-list${o} .monaco-list-row.focused:hover { color: ${e.listInactiveFocusForeground}; }`)),e.listInactiveSelectionIconForeground&&s.push(`.monaco-list${o} .monaco-list-row.focused .codicon { color: ${e.listInactiveSelectionIconForeground}; }`),e.listInactiveFocusBackground&&(s.push(`.monaco-list${o} .monaco-list-row.focused { background-color: ${e.listInactiveFocusBackground}; }`),s.push(`.monaco-list${o} .monaco-list-row.focused:hover { background-color: ${e.listInactiveFocusBackground}; }`)),e.listInactiveSelectionBackground&&(s.push(`.monaco-list${o} .monaco-list-row.selected { background-color: ${e.listInactiveSelectionBackground}; }`),s.push(`.monaco-list${o} .monaco-list-row.selected:hover { background-color: ${e.listInactiveSelectionBackground}; }`)),e.listInactiveSelectionForeground&&s.push(`.monaco-list${o} .monaco-list-row.selected { color: ${e.listInactiveSelectionForeground}; }`),e.listHoverBackground&&s.push(`.monaco-list${o}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${e.listHoverBackground}; }`),e.listHoverForeground&&s.push(`.monaco-list${o}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { color: ${e.listHoverForeground}; }`);const r=(0,n.gI)(e.listFocusAndSelectionOutline,(0,n.gI)(e.listSelectionOutline,null!==(t=e.listFocusOutline)&&void 0!==t?t:""));r&&s.push(`.monaco-list${o}:focus .monaco-list-row.focused.selected { outline: 1px solid ${r}; outline-offset: -1px;}`),e.listFocusOutline&&s.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${o}:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t\t.monaco-workbench.context-menu-visible .monaco-list${o}.last-focused .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t`);const a=(0,n.gI)(e.listSelectionOutline,null!==(i=e.listInactiveFocusOutline)&&void 0!==i?i:"");a&&s.push(`.monaco-list${o} .monaco-list-row.focused.selected { outline: 1px dotted ${a}; outline-offset: -1px; }`),e.listSelectionOutline&&s.push(`.monaco-list${o} .monaco-list-row.selected { outline: 1px dotted ${e.listSelectionOutline}; outline-offset: -1px; }`),e.listInactiveFocusOutline&&s.push(`.monaco-list${o} .monaco-list-row.focused { outline: 1px dotted ${e.listInactiveFocusOutline}; outline-offset: -1px; }`),e.listHoverOutline&&s.push(`.monaco-list${o} .monaco-list-row:hover { outline: 1px dashed ${e.listHoverOutline}; outline-offset: -1px; }`),e.listDropOverBackground&&s.push(`\n\t\t\t\t.monaco-list${o}.drop-target,\n\t\t\t\t.monaco-list${o} .monaco-list-rows.drop-target,\n\t\t\t\t.monaco-list${o} .monaco-list-row.drop-target { background-color: ${e.listDropOverBackground} !important; color: inherit !important; }\n\t\t\t`),e.listDropBetweenBackground&&(s.push(`\n\t\t\t.monaco-list${o} .monaco-list-rows.drop-target-before .monaco-list-row:first-child::before,\n\t\t\t.monaco-list${o} .monaco-list-row.drop-target-before::before {\n\t\t\t\tcontent: ""; position: absolute; top: 0px; left: 0px; width: 100%; height: 1px;\n\t\t\t\tbackground-color: ${e.listDropBetweenBackground};\n\t\t\t}`),s.push(`\n\t\t\t.monaco-list${o} .monaco-list-rows.drop-target-after .monaco-list-row:last-child::after,\n\t\t\t.monaco-list${o} .monaco-list-row.drop-target-after::after {\n\t\t\t\tcontent: ""; position: absolute; bottom: 0px; left: 0px; width: 100%; height: 1px;\n\t\t\t\tbackground-color: ${e.listDropBetweenBackground};\n\t\t\t}`)),e.tableColumnsBorder&&s.push(`\n\t\t\t\t.monaco-table > .monaco-split-view2,\n\t\t\t\t.monaco-table > .monaco-split-view2 .monaco-sash.vertical::before,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: ${e.tableColumnsBorder};\n\t\t\t\t}\n\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2,\n\t\t\t\t.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: transparent;\n\t\t\t\t}\n\t\t\t`),e.tableOddRowsBackgroundColor&&s.push(`\n\t\t\t\t.monaco-table .monaco-list-row[data-parity=odd]:not(.focused):not(.selected):not(:hover) .monaco-table-tr,\n\t\t\t\t.monaco-table .monaco-list:not(:focus) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr,\n\t\t\t\t.monaco-table .monaco-list:not(.focused) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr {\n\t\t\t\t\tbackground-color: ${e.tableOddRowsBackgroundColor};\n\t\t\t\t}\n\t\t\t`),this.styleElement.textContent=s.join("\n")}}const q={listFocusBackground:"#7FB0D0",listActiveSelectionBackground:"#0E639C",listActiveSelectionForeground:"#FFFFFF",listActiveSelectionIconForeground:"#FFFFFF",listFocusAndSelectionOutline:"#90C2F9",listFocusAndSelectionBackground:"#094771",listFocusAndSelectionForeground:"#FFFFFF",listInactiveSelectionBackground:"#3F3F46",listInactiveSelectionIconForeground:"#FFFFFF",listHoverBackground:"#2A2D2E",listDropOverBackground:"#383B3D",listDropBetweenBackground:"#EEEEEE",treeIndentGuidesStroke:"#a9a9a9",treeInactiveIndentGuidesStroke:h.Q1.fromHex("#a9a9a9").transparent(.4).toString(),tableColumnsBorder:h.Q1.fromHex("#cccccc").transparent(.2).toString(),tableOddRowsBackgroundColor:h.Q1.fromHex("#cccccc").transparent(.04).toString(),listBackground:void 0,listFocusForeground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusForeground:void 0,listInactiveFocusBackground:void 0,listHoverForeground:void 0,listFocusOutline:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listHoverOutline:void 0,treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:void 0},G={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI:()=>null,onDragStart(){},onDragOver:()=>!1,drop(){},dispose(){}}};function Q(e,t){const i=[];let n=0,o=0;for(;n=e.length)i.push(t[o++]);else if(o>=t.length)i.push(e[n++]);else{if(e[n]===t[o]){i.push(e[n]),n++,o++;continue}e[n]e-t;class Y{constructor(e,t){this._templateId=e,this.renderers=t}get templateId(){return this._templateId}renderTemplate(e){return this.renderers.map((t=>t.renderTemplate(e)))}renderElement(e,t,i,n){let o=0;for(const s of this.renderers)s.renderElement(e,t,i[o++],n)}disposeElement(e,t,i,n){var o;let s=0;for(const r of this.renderers)null===(o=r.disposeElement)||void 0===o||o.call(r,e,t,i[s],n),s+=1}disposeTemplate(e){let t=0;for(const i of this.renderers)i.disposeTemplate(e[t++])}}class X{constructor(e){this.accessibilityProvider=e,this.templateId="a18n"}renderTemplate(e){return{container:e,disposables:new m.Cm}}renderElement(e,t,i){const n=this.accessibilityProvider.getAriaLabel(e),o=n&&"string"!=typeof n?n:(0,S.lk)(n);i.disposables.add((0,S.fm)((e=>{this.setAriaLabel(e.readObservable(o),i.container)})));const s=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);"number"==typeof s?i.container.setAttribute("aria-level",`${s}`):i.container.removeAttribute("aria-level")}setAriaLabel(e,t){e?t.setAttribute("aria-label",e):t.removeAttribute("aria-label")}disposeElement(e,t,i,n){i.disposables.clear()}disposeTemplate(e){e.disposables.dispose()}}class J{constructor(e,t){this.list=e,this.dnd=t}getDragElements(e){const t=this.list.getSelectedElements();return t.indexOf(e)>-1?t:[e]}getDragURI(e){return this.dnd.getDragURI(e)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)}onDragStart(e,t){var i,n;null===(n=(i=this.dnd).onDragStart)||void 0===n||n.call(i,e,t)}onDragOver(e,t,i,n,o){return this.dnd.onDragOver(e,t,i,n,o)}onDragLeave(e,t,i,n){var o,s;null===(s=(o=this.dnd).onDragLeave)||void 0===s||s.call(o,e,t,i,n)}onDragEnd(e){var t,i;null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}drop(e,t,i,n,o){this.dnd.drop(e,t,i,n,o)}dispose(){this.dnd.dispose()}}class ee{get onDidChangeFocus(){return g.Jh.map(this.eventBufferer.wrapEvent(this.focus.onChange),(e=>this.toListEvent(e)),this.disposables)}get onDidChangeSelection(){return g.Jh.map(this.eventBufferer.wrapEvent(this.selection.onChange),(e=>this.toListEvent(e)),this.disposables)}get domId(){return this.view.domId}get onDidScroll(){return this.view.onDidScroll}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onMouseOver(){return this.view.onMouseOver}get onMouseOut(){return this.view.onMouseOut}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let e=!1;const t=g.Jh.chain(this.disposables.add(new o.f(this.view.domNode,"keydown")).event,(t=>t.map((e=>new s.Z(e))).filter((t=>e=58===t.keyCode||t.shiftKey&&68===t.keyCode)).map((e=>n.fs.stop(e,!0))).filter((()=>!1)))),i=g.Jh.chain(this.disposables.add(new o.f(this.view.domNode,"keyup")).event,(t=>t.forEach((()=>e=!1)).map((e=>new s.Z(e))).filter((e=>58===e.keyCode||e.shiftKey&&68===e.keyCode)).map((e=>n.fs.stop(e,!0))).map((({browserEvent:e})=>{const t=this.getFocus(),i=t.length?t[0]:void 0;return{index:i,element:void 0!==i?this.view.element(i):void 0,anchor:void 0!==i?this.view.domElement(i):this.view.domNode,browserEvent:e}})))),r=g.Jh.chain(this.view.onContextMenu,(t=>t.filter((t=>!e)).map((({element:e,index:t,browserEvent:i})=>({element:e,index:t,anchor:new k.P((0,n.zk)(this.view.domNode),i),browserEvent:i})))));return g.Jh.any(t,i,r)}get onKeyDown(){return this.disposables.add(new o.f(this.view.domNode,"keydown")).event}get onDidFocus(){return g.Jh.signal(this.disposables.add(new o.f(this.view.domNode,"focus",!0)).event)}get onDidBlur(){return g.Jh.signal(this.disposables.add(new o.f(this.view.domNode,"blur",!0)).event)}constructor(e,t,i,o,s=G){var r,a,d,c;this.user=e,this._options=s,this.focus=new D("focused"),this.anchor=new D("anchor"),this.eventBufferer=new g.at,this._ariaLabel="",this.disposables=new m.Cm,this._onDidDispose=new g.vl,this.onDidDispose=this._onDidDispose.event;const h=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?null===(r=this._options.accessibilityProvider)||void 0===r?void 0:r.getWidgetRole():"list";this.selection=new E("listbox"!==h);const u=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=s.accessibilityProvider,this.accessibilityProvider&&(u.push(new X(this.accessibilityProvider)),null===(d=(a=this.accessibilityProvider).onDidChangeActiveDescendant)||void 0===d||d.call(a,this.onDidChangeActiveDescendant,this,this.disposables)),o=o.map((e=>new Y(e.templateId,[...u,e])));const p={...s,dnd:s.dnd&&new J(this,s.dnd)};if(this.view=this.createListView(t,i,o,p),this.view.domNode.setAttribute("role",h),s.styleController)this.styleController=s.styleController(this.view.domId);else{const e=(0,n.li)(this.view.domNode);this.styleController=new K(e,this.view.domId)}if(this.spliceable=new l([new I(this.focus,this.view,s.identityProvider),new I(this.selection,this.view,s.identityProvider),new I(this.anchor,this.view,s.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new V(this,this.view)),("boolean"!=typeof s.keyboardSupport||s.keyboardSupport)&&(this.keyboardController=new B(this,this.view,s),this.disposables.add(this.keyboardController)),s.keyboardNavigationLabelProvider){const e=s.keyboardNavigationDelegate||W;this.typeNavigationController=new H(this,this.view,s.keyboardNavigationLabelProvider,null!==(c=s.keyboardNavigationEventFilter)&&void 0!==c?c:()=>!0,e),this.disposables.add(this.typeNavigationController)}this.mouseController=this.createMouseController(s),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),!1!==this._options.multipleSelectionSupport&&this.view.domNode.setAttribute("aria-multiselectable","true")}createListView(e,t,i,n){return new C.uO(e,t,i,n)}createMouseController(e){return new $(this)}updateOptions(e={}){var t,i;this._options={...this._options,...e},null===(t=this.typeNavigationController)||void 0===t||t.updateOptions(this._options),void 0!==this._options.multipleSelectionController&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(e),null===(i=this.keyboardController)||void 0===i||i.updateOptions(e),this.view.updateOptions(e)}get options(){return this._options}splice(e,t,i=[]){if(e<0||e>this.view.length)throw new b(this.user,`Invalid start index: ${e}`);if(t<0)throw new b(this.user,`Invalid delete count: ${t}`);0===t&&0===i.length||this.eventBufferer.bufferEvents((()=>this.spliceable.splice(e,t,i)))}rerender(){this.view.rerender()}element(e){return this.view.element(e)}indexOf(e){return this.view.indexOf(e)}indexAt(e){return this.view.indexAt(e)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get onDidChangeContentHeight(){return this.view.onDidChangeContentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(e){this.view.setScrollTop(e)}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}get firstVisibleIndex(){return this.view.firstVisibleIndex}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){this._ariaLabel=e,this.view.domNode.setAttribute("aria-label",e)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(e,t){this.view.layout(e,t)}setSelection(e,t){for(const t of e)if(t<0||t>=this.length)throw new b(this.user,`Invalid index ${t}`);this.selection.set(e,t)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map((e=>this.view.element(e)))}setAnchor(e){if(void 0!==e){if(e<0||e>=this.length)throw new b(this.user,`Invalid index ${e}`);this.anchor.set([e])}else this.anchor.set([])}getAnchor(){return(0,d.Fy)(this.anchor.get(),void 0)}getAnchorElement(){const e=this.getAnchor();return void 0===e?void 0:this.element(e)}setFocus(e,t){for(const t of e)if(t<0||t>=this.length)throw new b(this.user,`Invalid index ${t}`);this.focus.set(e,t)}focusNext(e=1,t=!1,i,n){if(0===this.length)return;const o=this.focus.get(),s=this.findNextIndex(o.length>0?o[0]+e:0,t,n);s>-1&&this.setFocus([s],i)}focusPrevious(e=1,t=!1,i,n){if(0===this.length)return;const o=this.focus.get(),s=this.findPreviousIndex(o.length>0?o[0]-e:0,t,n);s>-1&&this.setFocus([s],i)}async focusNextPage(e,t){let i=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);i=0===i?0:i-1;const n=this.getFocus()[0];if(n!==i&&(void 0===n||i>n)){const o=this.findPreviousIndex(i,!1,t);o>-1&&n!==o?this.setFocus([o],e):this.setFocus([i],e)}else{const o=this.view.getScrollTop();let s=o+this.view.renderHeight;i>n&&(s-=this.view.elementHeight(i)),this.view.setScrollTop(s),this.view.getScrollTop()!==o&&(this.setFocus([]),await(0,c.wR)(0),await this.focusNextPage(e,t))}}async focusPreviousPage(e,t,i=(()=>0)){let n;const o=i(),s=this.view.getScrollTop()+o;n=0===s?this.view.indexAt(s):this.view.indexAfter(s-1);const r=this.getFocus()[0];if(r!==n&&(void 0===r||r>=n)){const i=this.findNextIndex(n,!1,t);i>-1&&r!==i?this.setFocus([i],e):this.setFocus([n],e)}else{const n=s;this.view.setScrollTop(s-this.view.renderHeight-o),this.view.getScrollTop()+i()!==n&&(this.setFocus([]),await(0,c.wR)(0),await this.focusPreviousPage(e,t,i))}}focusLast(e,t){if(0===this.length)return;const i=this.findPreviousIndex(this.length-1,!1,t);i>-1&&this.setFocus([i],e)}focusFirst(e,t){this.focusNth(0,e,t)}focusNth(e,t,i){if(0===this.length)return;const n=this.findNextIndex(e,!1,i);n>-1&&this.setFocus([n],t)}findNextIndex(e,t=!1,i){for(let n=0;n=this.length&&!t)return-1;if(e%=this.length,!i||i(this.element(e)))return e;e++}return-1}findPreviousIndex(e,t=!1,i){for(let n=0;nthis.view.element(e)))}reveal(e,t,i=0){if(e<0||e>=this.length)throw new b(this.user,`Invalid index ${e}`);const n=this.view.getScrollTop(),o=this.view.elementTop(e),s=this.view.elementHeight(e);if((0,_.Et)(t)){const e=s-this.view.renderHeight+i;this.view.setScrollTop(e*(0,f.qE)(t,0,1)+o-i)}else{const e=o+s,t=n+this.view.renderHeight;o=t||(o=t&&s>=this.view.renderHeight?this.view.setScrollTop(o-i):e>=t&&this.view.setScrollTop(e-this.view.renderHeight))}}getRelativeTop(e,t=0){if(e<0||e>=this.length)throw new b(this.user,`Invalid index ${e}`);const i=this.view.getScrollTop(),n=this.view.elementTop(e),o=this.view.elementHeight(e);if(ni+this.view.renderHeight)return null;const s=o-this.view.renderHeight+t;return Math.abs((i+t-n)/s)}getHTMLElement(){return this.view.domNode}getScrollableElement(){return this.view.scrollableElementDomNode}getElementID(e){return this.view.getElementDomId(e)}getElementTop(e){return this.view.elementTop(e)}style(e){this.styleController.style(e)}toListEvent({indexes:e,browserEvent:t}){return{indexes:e,elements:e.map((e=>this.view.element(e))),browserEvent:t}}_onFocusChange(){const e=this.focus.get();this.view.domNode.classList.toggle("element-focused",e.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var e;const t=this.focus.get();if(t.length>0){let i;(null===(e=this.accessibilityProvider)||void 0===e?void 0:e.getActiveDescendantId)&&(i=this.accessibilityProvider.getActiveDescendantId(this.view.element(t[0]))),this.view.domNode.setAttribute("aria-activedescendant",i||this.view.getElementDomId(t[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const e=this.selection.get();this.view.domNode.classList.toggle("selection-none",0===e.length),this.view.domNode.classList.toggle("selection-single",1===e.length),this.view.domNode.classList.toggle("selection-multiple",e.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}x([u.B],ee.prototype,"onDidChangeFocus",null),x([u.B],ee.prototype,"onDidChangeSelection",null),x([u.B],ee.prototype,"onContextMenu",null),x([u.B],ee.prototype,"onKeyDown",null),x([u.B],ee.prototype,"onDidFocus",null),x([u.B],ee.prototype,"onDidBlur",null)},12111:(e,t,i)=>{"use strict";i.d(t,{v:()=>a});var n=i(14333),o=i(1910),s=i(2106),r=i(10998);class a{constructor(){let e;this._onDidWillResize=new s.vl,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new s.vl,this.onDidResize=this._onDidResize.event,this._sashListener=new r.Cm,this._size=new n.fg(0,0),this._minSize=new n.fg(0,0),this._maxSize=new n.fg(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new o.m(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new o.m(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new o.m(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:o.B.North}),this._southSash=new o.m(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:o.B.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let t=0,i=0;this._sashListener.add(s.Jh.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)((()=>{void 0===e&&(this._onDidWillResize.fire(),e=this._size,t=0,i=0)}))),this._sashListener.add(s.Jh.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)((()=>{void 0!==e&&(e=void 0,t=0,i=0,this._onDidResize.fire({dimension:this._size,done:!0}))}))),this._sashListener.add(this._eastSash.onDidChange((n=>{e&&(i=n.currentX-n.startX,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))}))),this._sashListener.add(this._westSash.onDidChange((n=>{e&&(i=-(n.currentX-n.startX),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))}))),this._sashListener.add(this._northSash.onDidChange((n=>{e&&(t=-(n.currentY-n.startY),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))}))),this._sashListener.add(this._southSash.onDidChange((n=>{e&&(t=n.currentY-n.startY,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))}))),this._sashListener.add(s.Jh.any(this._eastSash.onDidReset,this._westSash.onDidReset)((e=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))),this._sashListener.add(s.Jh.any(this._northSash.onDidReset,this._southSash.onDidReset)((e=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))})))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(e,t,i,n){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=i?3:0,this._westSash.state=n?3:0}layout(e=this.size.height,t=this.size.width){const{height:i,width:o}=this._minSize,{height:s,width:r}=this._maxSize;e=Math.max(i,Math.min(s,e)),t=Math.max(o,Math.min(r,t));const a=new n.fg(t,e);n.fg.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}}},1910:(e,t,i)=>{"use strict";i.d(t,{B:()=>x,m:()=>T});var n=i(14333),o=i(34061),s=i(30474),r=i(65958),a=i(88846),l=i(2106),d=i(10998),c=i(63339),h=i(85072),u=i.n(h),g=i(97825),p=i.n(g),m=i(77659),f=i.n(m),v=i(55056),_=i.n(v),b=i(10540),w=i.n(b),y=i(41113),C=i.n(y),k=i(14166),S={};S.styleTagTransform=C(),S.setAttributes=_(),S.insert=f().bind(null,"head"),S.domAPI=p(),S.insertStyleElement=w(),u()(k.A,S),k.A&&k.A.locals&&k.A.locals;var x,L=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r};!function(e){e.North="north",e.South="south",e.East="east",e.West="west"}(x||(x={}));const D=new l.vl,E=new l.vl;class I{constructor(e){this.el=e,this.disposables=new d.Cm}get onPointerMove(){return this.disposables.add(new o.f((0,n.zk)(this.el),"mousemove")).event}get onPointerUp(){return this.disposables.add(new o.f((0,n.zk)(this.el),"mouseup")).event}dispose(){this.disposables.dispose()}}L([a.B],I.prototype,"onPointerMove",null),L([a.B],I.prototype,"onPointerUp",null);class N{get onPointerMove(){return this.disposables.add(new o.f(this.el,s.B.Change)).event}get onPointerUp(){return this.disposables.add(new o.f(this.el,s.B.End)).event}constructor(e){this.el=e,this.disposables=new d.Cm}dispose(){this.disposables.dispose()}}L([a.B],N.prototype,"onPointerMove",null),L([a.B],N.prototype,"onPointerUp",null);class M{get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}constructor(e){this.factory=e}dispose(){}}L([a.B],M.prototype,"onPointerMove",null),L([a.B],M.prototype,"onPointerUp",null);const A="pointer-events-disabled";class T extends d.jG{get state(){return this._state}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}set state(e){this._state!==e&&(this.el.classList.toggle("disabled",0===e),this.el.classList.toggle("minimum",1===e),this.el.classList.toggle("maximum",2===e),this._state=e,this.onDidEnablementChange.fire(e))}set orthogonalStartSash(e){if(this._orthogonalStartSash!==e){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),e){const t=t=>{this.orthogonalStartDragHandleDisposables.clear(),0!==t&&(this._orthogonalStartDragHandle=(0,n.BC)(this.el,(0,n.$)(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add((0,d.s)((()=>this._orthogonalStartDragHandle.remove()))),this.orthogonalStartDragHandleDisposables.add(new o.f(this._orthogonalStartDragHandle,"mouseenter")).event((()=>T.onMouseEnter(e)),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new o.f(this._orthogonalStartDragHandle,"mouseleave")).event((()=>T.onMouseLeave(e)),void 0,this.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalStartSash=e}}set orthogonalEndSash(e){if(this._orthogonalEndSash!==e){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),e){const t=t=>{this.orthogonalEndDragHandleDisposables.clear(),0!==t&&(this._orthogonalEndDragHandle=(0,n.BC)(this.el,(0,n.$)(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add((0,d.s)((()=>this._orthogonalEndDragHandle.remove()))),this.orthogonalEndDragHandleDisposables.add(new o.f(this._orthogonalEndDragHandle,"mouseenter")).event((()=>T.onMouseEnter(e)),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new o.f(this._orthogonalEndDragHandle,"mouseleave")).event((()=>T.onMouseLeave(e)),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(e.onDidEnablementChange.event(t,this)),t(e.state)}this._orthogonalEndSash=e}}constructor(e,t,i){super(),this.hoverDelay=300,this.hoverDelayer=this._register(new r.ve(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new l.vl),this._onDidStart=this._register(new l.vl),this._onDidChange=this._register(new l.vl),this._onDidReset=this._register(new l.vl),this._onDidEnd=this._register(new l.vl),this.orthogonalStartSashDisposables=this._register(new d.Cm),this.orthogonalStartDragHandleDisposables=this._register(new d.Cm),this.orthogonalEndSashDisposables=this._register(new d.Cm),this.orthogonalEndDragHandleDisposables=this._register(new d.Cm),this.onDidStart=this._onDidStart.event,this.onDidChange=this._onDidChange.event,this.onDidReset=this._onDidReset.event,this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.el=(0,n.BC)(e,(0,n.$)(".monaco-sash")),i.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${i.orthogonalEdge}`),c.zx&&this.el.classList.add("mac");const a=this._register(new o.f(this.el,"mousedown")).event;this._register(a((t=>this.onPointerStart(t,new I(e))),this));const h=this._register(new o.f(this.el,"dblclick")).event;this._register(h(this.onPointerDoublePress,this));const u=this._register(new o.f(this.el,"mouseenter")).event;this._register(u((()=>T.onMouseEnter(this))));const g=this._register(new o.f(this.el,"mouseleave")).event;this._register(g((()=>T.onMouseLeave(this)))),this._register(s.q.addTarget(this.el));const p=this._register(new o.f(this.el,s.B.Start)).event;this._register(p((e=>this.onPointerStart(e,new N(this.el))),this));const m=this._register(new o.f(this.el,s.B.Tap)).event;let f;this._register(m((e=>{if(f)return clearTimeout(f),f=void 0,void this.onPointerDoublePress(e);clearTimeout(f),f=setTimeout((()=>f=void 0),250)}),this)),"number"==typeof i.size?(this.size=i.size,0===i.orientation?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=4,this._register(D.event((e=>{this.size=e,this.layout()})))),this._register(E.event((e=>this.hoverDelay=e))),this.layoutProvider=t,this.orthogonalStartSash=i.orthogonalStartSash,this.orthogonalEndSash=i.orthogonalEndSash,this.orientation=i.orientation||0,1===this.orientation?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",!1),this.layout()}onPointerStart(e,t){n.fs.stop(e);let i=!1;if(!e.__orthogonalSashEvent){const n=this.getOrthogonalSash(e);n&&(i=!0,e.__orthogonalSashEvent=!0,n.onPointerStart(e,new M(t)))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onPointerStart(e,new M(t))),!this.state)return;const o=this.el.ownerDocument.getElementsByTagName("iframe");for(const e of o)e.classList.add(A);const s=e.pageX,r=e.pageY,a=e.altKey,l={startX:s,currentX:s,startY:r,currentY:r,altKey:a};this.el.classList.add("active"),this._onDidStart.fire(l);const h=(0,n.li)(this.el),u=()=>{let e="";e=i?"all-scroll":1===this.orientation?1===this.state?"s-resize":2===this.state?"n-resize":c.zx?"row-resize":"ns-resize":1===this.state?"e-resize":2===this.state?"w-resize":c.zx?"col-resize":"ew-resize",h.textContent=`* { cursor: ${e} !important; }`},g=new d.Cm;u(),i||this.onDidEnablementChange.event(u,null,g),t.onPointerMove((e=>{n.fs.stop(e,!1);const t={startX:s,currentX:e.pageX,startY:r,currentY:e.pageY,altKey:a};this._onDidChange.fire(t)}),null,g),t.onPointerUp((e=>{n.fs.stop(e,!1),h.remove(),this.el.classList.remove("active"),this._onDidEnd.fire(),g.dispose();for(const e of o)e.classList.remove(A)}),null,g),g.add(t)}onPointerDoublePress(e){const t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(e,t=!1){e.el.classList.contains("active")?(e.hoverDelayer.cancel(),e.el.classList.add("hover")):e.hoverDelayer.trigger((()=>e.el.classList.add("hover")),e.hoverDelay).then(void 0,(()=>{})),!t&&e.linkedSash&&T.onMouseEnter(e.linkedSash,!0)}static onMouseLeave(e,t=!1){e.hoverDelayer.cancel(),e.el.classList.remove("hover"),!t&&e.linkedSash&&T.onMouseLeave(e.linkedSash,!0)}clearSashHoverState(){T.onMouseLeave(this)}layout(){if(0===this.orientation){const e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{const e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px")}}getOrthogonalSash(e){var t;const i=null!==(t=e.initialTarget)&&void 0!==t?t:e.target;if(i&&(0,n.sb)(i))return i.classList.contains("orthogonal-drag-handle")?i.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash:void 0}dispose(){super.dispose(),this.el.remove()}}},75239:(e,t,i)=>{"use strict";i.d(t,{MU:()=>V,QC:()=>F,Se:()=>W,oO:()=>H});var n=i(55893),o=i(14333),s=i(5043),r=i(9715),a=i(10176),l=i(45222),d=i(65958),c=i(58881);class h extends l.x{constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px",void 0!==e.top&&(this.bgDomNode.style.top="0px"),void 0!==e.left&&(this.bgDomNode.style.left="0px"),void 0!==e.bottom&&(this.bgDomNode.style.bottom="0px"),void 0!==e.right&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.classList.add(...c.L.asClassNameArray(e.icon)),this.domNode.style.position="absolute",this.domNode.style.width="11px",this.domNode.style.height="11px",void 0!==e.top&&(this.domNode.style.top=e.top+"px"),void 0!==e.left&&(this.domNode.style.left=e.left+"px"),void 0!==e.bottom&&(this.domNode.style.bottom=e.bottom+"px"),void 0!==e.right&&(this.domNode.style.right=e.right+"px"),this._pointerMoveMonitor=this._register(new a._),this._register(o.b2(this.bgDomNode,o.Bx.POINTER_DOWN,(e=>this._arrowPointerDown(e)))),this._register(o.b2(this.domNode,o.Bx.POINTER_DOWN,(e=>this._arrowPointerDown(e)))),this._pointerdownRepeatTimer=this._register(new o.Be),this._pointerdownScheduleRepeatTimer=this._register(new d.pc)}_arrowPointerDown(e){e.target&&e.target instanceof Element&&(this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet((()=>{this._pointerdownRepeatTimer.cancelAndSet((()=>this._onActivate()),1e3/24,o.zk(e))}),200),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>{}),(()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()})),e.preventDefault())}}var u=i(10998);class g extends u.jG{constructor(e,t,i){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=i,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new d.pc)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return 2!==this._visibility&&(3===this._visibility||this._rawShouldBeVisible)}_updateShouldBeVisible(){const e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet((()=>{var e;null===(e=this._domNode)||void 0===e||e.setClassName(this._visibleClassName)}),0))}_hide(e){var t;this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,null===(t=this._domNode)||void 0===t||t.setClassName(this._invisibleClassName+(e?" fade":"")))}}var p=i(63339);class m extends l.x{constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new g(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new a._),this._shouldRender=!0,this.domNode=(0,s.Z)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this._register(o.ko(this.domNode.domNode,o.Bx.POINTER_DOWN,(e=>this._domNodePointerDown(e))))}_createArrow(e){const t=this._register(new h(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,i,n){this.slider=(0,s.Z)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"==typeof i&&this.slider.setWidth(i),"number"==typeof n&&this.slider.setHeight(n),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(o.ko(this.slider.domNode,o.Bx.POINTER_DOWN,(e=>{0===e.button&&(e.preventDefault(),this._sliderPointerDown(e))}))),this.onclick(this.slider.domNode,(e=>{e.leftButton&&e.stopPropagation()}))}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodePointerDown(e){e.target===this.domNode.domNode&&this._onPointerDown(e)}delegatePointerDown(e){const t=this.domNode.domNode.getClientRects()[0].top,i=t+this._scrollbarState.getSliderPosition(),n=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),o=this._sliderPointerPosition(e);i<=o&&o<=n?0===e.button&&(e.preventDefault(),this._sliderPointerDown(e)):this._onPointerDown(e)}_onPointerDown(e){let t,i;if(e.target===this.domNode.domNode&&"number"==typeof e.offsetX&&"number"==typeof e.offsetY)t=e.offsetX,i=e.offsetY;else{const n=o.BK(this.domNode.domNode);t=e.pageX-n.left,i=e.pageY-n.top}const n=this._pointerDownRelativePosition(t,i);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(n):this._scrollbarState.getDesiredScrollPositionFromOffset(n)),0===e.button&&(e.preventDefault(),this._sliderPointerDown(e))}_sliderPointerDown(e){if(!(e.target&&e.target instanceof Element))return;const t=this._sliderPointerPosition(e),i=this._sliderOrthogonalPointerPosition(e),n=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>{const o=this._sliderOrthogonalPointerPosition(e),s=Math.abs(o-i);if(p.uF&&s>140)return void this._setDesiredScrollPositionNow(n.getScrollPosition());const r=this._sliderPointerPosition(e)-t;this._setDesiredScrollPositionNow(n.getDesiredScrollPositionFromDelta(r))}),(()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd()})),this._host.onDragStart()}_setDesiredScrollPositionNow(e){const t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}var f=i(88122),v=i(26048);class _ extends m{constructor(e,t,i){const n=e.getScrollDimensions(),o=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new f.m(t.horizontalHasArrows?t.arrowSize:0,2===t.horizontal?0:t.horizontalScrollbarSize,2===t.vertical?0:t.verticalScrollbarSize,n.width,n.scrollWidth,o.scrollLeft),visibility:t.horizontal,extraScrollbarClassName:"horizontal",scrollable:e,scrollByPage:t.scrollByPage}),t.horizontalHasArrows){const e=(t.arrowSize-11)/2,i=(t.horizontalScrollbarSize-11)/2;this._createArrow({className:"scra",icon:v.W.scrollbarButtonLeft,top:i,left:e,bottom:void 0,right:void 0,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new r.$(null,1,0))}),this._createArrow({className:"scra",icon:v.W.scrollbarButtonRight,top:i,left:void 0,bottom:void 0,right:e,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new r.$(null,-1,0))})}this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return e}_sliderPointerPosition(e){return e.pageX}_sliderOrthogonalPointerPosition(e){return e.pageY}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(2===e.horizontal?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}class b extends m{constructor(e,t,i){const n=e.getScrollDimensions(),o=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:i,scrollbarState:new f.m(t.verticalHasArrows?t.arrowSize:0,2===t.vertical?0:t.verticalScrollbarSize,0,n.height,n.scrollHeight,o.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e,scrollByPage:t.scrollByPage}),t.verticalHasArrows){const e=(t.arrowSize-11)/2,i=(t.verticalScrollbarSize-11)/2;this._createArrow({className:"scra",icon:v.W.scrollbarButtonUp,top:e,left:i,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new r.$(null,0,1))}),this._createArrow({className:"scra",icon:v.W.scrollbarButtonDown,top:void 0,left:i,bottom:e,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new r.$(null,0,-1))})}this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(e,t){return t}_sliderPointerPosition(e){return e.pageY}_sliderOrthogonalPointerPosition(e){return e.pageX}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}var w=i(2106),y=i(94513),C=i(85072),k=i.n(C),S=i(97825),x=i.n(S),L=i(77659),D=i.n(L),E=i(55056),I=i.n(E),N=i(10540),M=i.n(N),A=i(41113),T=i.n(A),R=i(80140),P={};P.styleTagTransform=T(),P.setAttributes=I(),P.insert=D().bind(null,"head"),P.domAPI=x(),P.insertStyleElement=M(),k()(R.A,P),R.A&&R.A.locals&&R.A.locals;class O{constructor(e,t,i){this.timestamp=e,this.deltaX=t,this.deltaY=i,this.score=0}}class F{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(-1===this._front&&-1===this._rear)return!1;let e=1,t=0,i=1,n=this._rear;for(;;){const o=n===this._front?e:Math.pow(2,-i);if(e-=o,t+=this._memory[n].score*o,n===this._front)break;n=(this._capacity+n-1)%this._capacity,i++}return t<=.5}acceptStandardWheelEvent(e){if(n.H8){const t=o.zk(e.browserEvent),i=(0,n.pR)(t);this.accept(Date.now(),e.deltaX*i,e.deltaY*i)}else this.accept(Date.now(),e.deltaX,e.deltaY)}accept(e,t,i){let n=null;const o=new O(e,t,i);-1===this._front&&-1===this._rear?(this._memory[0]=o,this._front=0,this._rear=0):(n=this._memory[this._rear],this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=o),o.score=this._computeScore(o,n)}_computeScore(e,t){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;let i=.5;if(this._isAlmostInt(e.deltaX)&&this._isAlmostInt(e.deltaY)||(i+=.25),t){const n=Math.abs(e.deltaX),o=Math.abs(e.deltaY),s=Math.abs(t.deltaX),r=Math.abs(t.deltaY),a=Math.max(Math.min(n,s),1),l=Math.max(Math.min(o,r),1),d=Math.max(n,s),c=Math.max(o,r);d%a==0&&c%l==0&&(i-=.5)}return Math.min(Math.max(i,0),1)}_isAlmostInt(e){return Math.abs(Math.round(e)-e)<.01}}F.INSTANCE=new F;class B extends l.x{get options(){return this._options}constructor(e,t,i){super(),this._onScroll=this._register(new w.vl),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new w.vl),e.style.overflow="hidden",this._options=function(e){const t={lazyRender:void 0!==e.lazyRender&&e.lazyRender,className:void 0!==e.className?e.className:"",useShadows:void 0===e.useShadows||e.useShadows,handleMouseWheel:void 0===e.handleMouseWheel||e.handleMouseWheel,flipAxes:void 0!==e.flipAxes&&e.flipAxes,consumeMouseWheelIfScrollbarIsNeeded:void 0!==e.consumeMouseWheelIfScrollbarIsNeeded&&e.consumeMouseWheelIfScrollbarIsNeeded,alwaysConsumeMouseWheel:void 0!==e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:void 0!==e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:void 0!==e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:void 0!==e.fastScrollSensitivity?e.fastScrollSensitivity:5,scrollPredominantAxis:void 0===e.scrollPredominantAxis||e.scrollPredominantAxis,mouseWheelSmoothScroll:void 0===e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:void 0!==e.arrowSize?e.arrowSize:11,listenOnDomNode:void 0!==e.listenOnDomNode?e.listenOnDomNode:null,horizontal:void 0!==e.horizontal?e.horizontal:1,horizontalScrollbarSize:void 0!==e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:void 0!==e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:void 0!==e.horizontalHasArrows&&e.horizontalHasArrows,vertical:void 0!==e.vertical?e.vertical:1,verticalScrollbarSize:void 0!==e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:void 0!==e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:void 0!==e.verticalSliderSize?e.verticalSliderSize:0,scrollByPage:void 0!==e.scrollByPage&&e.scrollByPage};return t.horizontalSliderSize=void 0!==e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize=void 0!==e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,p.zx&&(t.className+=" mac"),t}(t),this._scrollable=i,this._register(this._scrollable.onScroll((e=>{this._onWillScroll.fire(e),this._onDidScroll(e),this._onScroll.fire(e)})));const n={onMouseWheel:e=>this._onMouseWheel(e),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new b(this._scrollable,this._options,n)),this._horizontalScrollbar=this._register(new _(this._scrollable,this._options,n)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=(0,s.Z)(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=(0,s.Z)(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=(0,s.Z)(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,(e=>this._onMouseOver(e))),this.onmouseleave(this._listenOnDomNode,(e=>this._onMouseLeave(e))),this._hideTimeout=this._register(new d.pc),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=(0,u.AS)(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(e){this._verticalScrollbar.delegatePointerDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,p.zx&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){void 0!==e.handleMouseWheel&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),void 0!==e.mouseWheelScrollSensitivity&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),void 0!==e.fastScrollSensitivity&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),void 0!==e.scrollPredominantAxis&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),void 0!==e.horizontal&&(this._options.horizontal=e.horizontal),void 0!==e.vertical&&(this._options.vertical=e.vertical),void 0!==e.horizontalScrollbarSize&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),void 0!==e.verticalScrollbarSize&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),void 0!==e.scrollByPage&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}delegateScrollFromMouseWheelEvent(e){this._onMouseWheel(new r.$(e))}_setListeningToMouseWheel(e){if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=(0,u.AS)(this._mouseWheelToDispose),e)){const e=e=>{this._onMouseWheel(new r.$(e))};this._mouseWheelToDispose.push(o.ko(this._listenOnDomNode,o.Bx.MOUSE_WHEEL,e,{passive:!1}))}}_onMouseWheel(e){var t;if(null===(t=e.browserEvent)||void 0===t?void 0:t.defaultPrevented)return;const i=F.INSTANCE;i.acceptStandardWheelEvent(e);let n=!1;if(e.deltaY||e.deltaX){let t=e.deltaY*this._options.mouseWheelScrollSensitivity,o=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(this._options.scrollYToX&&o+t===0?o=t=0:Math.abs(t)>=Math.abs(o)?o=0:t=0),this._options.flipAxes&&([t,o]=[o,t]);const s=!p.zx&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!s||o||(o=t,t=0),e.browserEvent&&e.browserEvent.altKey&&(o*=this._options.fastScrollSensitivity,t*=this._options.fastScrollSensitivity);const r=this._scrollable.getFutureScrollPosition();let a={};if(t){const e=50*t,i=r.scrollTop-(e<0?Math.floor(e):Math.ceil(e));this._verticalScrollbar.writeScrollPosition(a,i)}if(o){const e=50*o,t=r.scrollLeft-(e<0?Math.floor(e):Math.ceil(e));this._horizontalScrollbar.writeScrollPosition(a,t)}a=this._scrollable.validateScrollPosition(a),(r.scrollLeft!==a.scrollLeft||r.scrollTop!==a.scrollTop)&&(this._options.mouseWheelSmoothScroll&&i.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(a):this._scrollable.setScrollPositionNow(a),n=!0)}let o=n;!o&&this._options.alwaysConsumeMouseWheel&&(o=!0),!o&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(o=!0),o&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,i=e.scrollLeft>0,n=i?" left":"",o=t?" top":"",s=i||t?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${n}`),this._topShadowDomNode.setClassName(`shadow${o}`),this._topLeftShadowDomNode.setClassName(`shadow${s}${o}${n}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet((()=>this._hide()),500)}}class W extends B{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;const i=new y.yE({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:t=>o.PG(o.zk(e),t)});super(e,t,i),this._register(i)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}}class H extends B{constructor(e,t,i){super(e,t,i)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class V extends B{constructor(e,t){(t=t||{}).mouseWheelSmoothScroll=!1;const i=new y.yE({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:t=>o.PG(o.zk(e),t)});super(e,t,i),this._register(i),this._element=e,this._register(this.onScroll((e=>{e.scrollTopChanged&&(this._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this._element.scrollLeft=e.scrollLeft)}))),this.scanDomNode()}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}},88122:(e,t,i)=>{"use strict";i.d(t,{m:()=>n});class n{constructor(e,t,i,n,o,s){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(i),this._arrowSize=Math.round(e),this._visibleSize=n,this._scrollSize=o,this._scrollPosition=s,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new n(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){const t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)}setScrollSize(e){const t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)}setScrollPosition(e){const t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,i,n,o){const s=Math.max(0,i-e),r=Math.max(0,s-2*t),a=n>0&&n>i;if(!a)return{computedAvailableSize:Math.round(s),computedIsNeeded:a,computedSliderSize:Math.round(r),computedSliderRatio:0,computedSliderPosition:0};const l=Math.round(Math.max(20,Math.floor(i*r/n))),d=(r-l)/(n-i),c=o*d;return{computedAvailableSize:Math.round(s),computedIsNeeded:a,computedSliderSize:Math.round(l),computedSliderRatio:d,computedSliderPosition:Math.round(c)}}_refreshComputedValues(){const e=n._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize;let i=this._scrollPosition;return t{"use strict";i.d(t,{X:()=>T,U:()=>R});var n=i(14333),o=i(34061),s=i(1910),r=i(75239),a=i(13338),l=i(94901),d=i(2106),c=i(10998),h=i(62992),u=i(94513),g=i(79359),p=i(85072),m=i.n(p),f=i(97825),v=i.n(f),_=i(77659),b=i.n(_),w=i(55056),y=i.n(w),C=i(10540),k=i.n(C),S=i(41113),x=i.n(S),L=i(3474),D={};D.styleTagTransform=x(),D.setAttributes=y(),D.insert=b().bind(null,"head"),D.domAPI=v(),D.insertStyleElement=k(),m()(L.A,D),L.A&&L.A.locals&&L.A.locals;const E={separatorBorder:l.Q1.transparent};class I{set size(e){this._size=e}get size(){return this._size}get visible(){return void 0===this._cachedVisibleSize}setVisible(e,t){var i,n;if(e!==this.visible){e?(this.size=(0,h.qE)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"==typeof t?t:this.size,this.size=0),this.container.classList.toggle("visible",e);try{null===(n=(i=this.view).setVisible)||void 0===n||n.call(i,e)}catch(e){console.error("Splitview: Failed to set visible view"),console.error(e)}}}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get proportionalLayout(){var e;return null===(e=this.view.proportionalLayout)||void 0===e||e}get snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}constructor(e,t,i,n){this.container=e,this.view=t,this.disposable=n,this._cachedVisibleSize=void 0,"number"==typeof i?(this._size=i,this._cachedVisibleSize=void 0,e.classList.add("visible")):(this._size=0,this._cachedVisibleSize=i.cachedVisibleSize)}layout(e,t){this.layoutContainer(e);try{this.view.layout(this.size,e,t)}catch(e){console.error("Splitview: Failed to layout view"),console.error(e)}}dispose(){this.disposable.dispose()}}class N extends I{layoutContainer(e){this.container.style.top=`${e}px`,this.container.style.height=`${this.size}px`}}class M extends I{layoutContainer(e){this.container.style.left=`${e}px`,this.container.style.width=`${this.size}px`}}var A,T;!function(e){e[e.Idle=0]="Idle",e[e.Busy=1]="Busy"}(A||(A={})),function(e){e.Distribute={type:"distribute"},e.Split=function(e){return{type:"split",index:e}},e.Auto=function(e){return{type:"auto",index:e}},e.Invisible=function(e){return{type:"invisible",cachedVisibleSize:e}}}(T||(T={}));class R extends c.jG{get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}get startSnappingEnabled(){return this._startSnappingEnabled}get endSnappingEnabled(){return this._endSnappingEnabled}set orthogonalStartSash(e){for(const t of this.sashItems)t.sash.orthogonalStartSash=e;this._orthogonalStartSash=e}set orthogonalEndSash(e){for(const t of this.sashItems)t.sash.orthogonalEndSash=e;this._orthogonalEndSash=e}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}constructor(e,t={}){var i,s,a,l,c;super(),this.size=0,this._contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=A.Idle,this._onDidSashChange=this._register(new d.vl),this._onDidSashReset=this._register(new d.vl),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=null!==(i=t.orientation)&&void 0!==i?i:0,this.inverseAltBehavior=null!==(s=t.inverseAltBehavior)&&void 0!==s&&s,this.proportionalLayout=null===(a=t.proportionalLayout)||void 0===a||a,this.getSashOrthogonalSize=t.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(0===this.orientation?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=(0,n.BC)(this.el,(0,n.$)(".sash-container")),this.viewContainer=(0,n.$)(".split-view-container"),this.scrollable=this._register(new u.yE({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:e=>(0,n.PG)((0,n.zk)(this.el),e)})),this.scrollableElement=this._register(new r.oO(this.viewContainer,{vertical:0===this.orientation?null!==(l=t.scrollbarVisibility)&&void 0!==l?l:1:2,horizontal:1===this.orientation?null!==(c=t.scrollbarVisibility)&&void 0!==c?c:1:2},this.scrollable));const h=this._register(new o.f(this.viewContainer,"scroll")).event;this._register(h((e=>{const t=this.scrollableElement.getScrollPosition(),i=Math.abs(this.viewContainer.scrollLeft-t.scrollLeft)<=1?void 0:this.viewContainer.scrollLeft,n=Math.abs(this.viewContainer.scrollTop-t.scrollTop)<=1?void 0:this.viewContainer.scrollTop;void 0===i&&void 0===n||this.scrollableElement.setScrollPosition({scrollLeft:i,scrollTop:n})}))),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll((e=>{e.scrollTopChanged&&(this.viewContainer.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this.viewContainer.scrollLeft=e.scrollLeft)}))),(0,n.BC)(this.el,this.scrollableElement.getDomNode()),this.style(t.styles||E),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach(((e,t)=>{const i=g.b0(e.visible)||e.visible?e.size:{type:"invisible",cachedVisibleSize:e.size},n=e.view;this.doAddView(n,i,t,!0)})),this._contentSize=this.viewItems.reduce(((e,t)=>e+t.size),0),this.saveProportions())}style(e){e.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))}addView(e,t,i=this.viewItems.length,n){this.doAddView(e,t,i,n)}layout(e,t){const i=Math.max(this.size,this._contentSize);if(this.size=e,this.layoutContext=t,this.proportions){let t=0;for(let i=0;i0&&(n.size=(0,h.qE)(Math.round(o*e/t),n.minimumSize,n.maximumSize))}}else{const t=(0,a.y1)(this.viewItems.length),n=t.filter((e=>1===this.viewItems[e].priority)),o=t.filter((e=>2===this.viewItems[e].priority));this.resize(this.viewItems.length-1,e-i,void 0,n,o)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this._contentSize>0&&(this.proportions=this.viewItems.map((e=>e.proportionalLayout&&e.visible?e.size/this._contentSize:void 0)))}onSashStart({sash:e,start:t,alt:i}){for(const e of this.viewItems)e.enabled=!1;const o=this.sashItems.findIndex((t=>t.sash===e)),s=(0,c.qE)((0,n.ko)(this.el.ownerDocument.body,"keydown",(e=>r(this.sashDragState.current,e.altKey))),(0,n.ko)(this.el.ownerDocument.body,"keyup",(()=>r(this.sashDragState.current,!1)))),r=(e,t)=>{const i=this.viewItems.map((e=>e.size));let n,r,l=Number.NEGATIVE_INFINITY,d=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(t=!t),t)if(o===this.sashItems.length-1){const e=this.viewItems[o];l=(e.minimumSize-e.size)/2,d=(e.maximumSize-e.size)/2}else{const e=this.viewItems[o+1];l=(e.size-e.maximumSize)/2,d=(e.size-e.minimumSize)/2}if(!t){const e=(0,a.y1)(o,-1),t=(0,a.y1)(o+1,this.viewItems.length),s=e.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),l=e.reduce(((e,t)=>e+(this.viewItems[t].viewMaximumSize-i[t])),0),d=0===t.length?Number.POSITIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),c=0===t.length?Number.NEGATIVE_INFINITY:t.reduce(((e,t)=>e+(i[t]-this.viewItems[t].viewMaximumSize)),0),h=Math.max(s,c),u=Math.min(d,l),g=this.findFirstSnapIndex(e),p=this.findFirstSnapIndex(t);if("number"==typeof g){const e=this.viewItems[g],t=Math.floor(e.viewMinimumSize/2);n={index:g,limitDelta:e.visible?h-t:h+t,size:e.size}}if("number"==typeof p){const e=this.viewItems[p],t=Math.floor(e.viewMinimumSize/2);r={index:p,limitDelta:e.visible?u+t:u-t,size:e.size}}}this.sashDragState={start:e,current:e,index:o,sizes:i,minDelta:l,maxDelta:d,alt:t,snapBefore:n,snapAfter:r,disposable:s}};r(t,i)}onSashChange({current:e}){const{index:t,start:i,sizes:n,alt:o,minDelta:s,maxDelta:r,snapBefore:a,snapAfter:l}=this.sashDragState;this.sashDragState.current=e;const d=e-i,c=this.resize(t,d,n,void 0,void 0,s,r,a,l);if(o){const e=t===this.sashItems.length-1,i=this.viewItems.map((e=>e.size)),n=e?t:t+1,o=this.viewItems[n],s=o.size-o.maximumSize,r=o.size-o.minimumSize,a=e?t-1:t+1;this.resize(a,-c,i,void 0,void 0,s,r)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(const e of this.viewItems)e.enabled=!0}onViewChange(e,t){const i=this.viewItems.indexOf(e);i<0||i>=this.viewItems.length||(t="number"==typeof t?t:e.size,t=(0,h.qE)(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&i>0?(this.resize(i-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([i],void 0)))}resizeView(e,t){if(!(e<0||e>=this.viewItems.length)){if(this.state!==A.Idle)throw new Error("Cant modify splitview");this.state=A.Busy;try{const i=(0,a.y1)(this.viewItems.length).filter((t=>t!==e)),n=[...i.filter((e=>1===this.viewItems[e].priority)),e],o=i.filter((e=>2===this.viewItems[e].priority)),s=this.viewItems[e];t=Math.round(t),t=(0,h.qE)(t,s.minimumSize,Math.min(s.maximumSize,this.size)),s.size=t,this.relayout(n,o)}finally{this.state=A.Idle}}}distributeViewSizes(){const e=[];let t=0;for(const i of this.viewItems)i.maximumSize-i.minimumSize>0&&(e.push(i),t+=i.size);const i=Math.floor(t/e.length);for(const t of e)t.size=(0,h.qE)(i,t.minimumSize,t.maximumSize);const n=(0,a.y1)(this.viewItems.length),o=n.filter((e=>1===this.viewItems[e].priority)),s=n.filter((e=>2===this.viewItems[e].priority));this.relayout(o,s)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}doAddView(e,t,i=this.viewItems.length,o){if(this.state!==A.Idle)throw new Error("Cant modify splitview");this.state=A.Busy;try{const r=(0,n.$)(".split-view-view");i===this.viewItems.length?this.viewContainer.appendChild(r):this.viewContainer.insertBefore(r,this.viewContainer.children.item(i));const l=e.onDidChange((e=>this.onViewChange(p,e))),h=(0,c.s)((()=>r.remove())),u=(0,c.qE)(l,h);let g;"number"==typeof t?g=t:("auto"===t.type&&(t=this.areViewsDistributed()?{type:"distribute"}:{type:"split",index:t.index}),g="split"===t.type?this.getViewSize(t.index)/2:"invisible"===t.type?{cachedVisibleSize:t.cachedVisibleSize}:e.minimumSize);const p=0===this.orientation?new N(r,e,g,u):new M(r,e,g,u);if(this.viewItems.splice(i,0,p),this.viewItems.length>1){const e={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash},t=0===this.orientation?new s.m(this.sashContainer,{getHorizontalSashTop:e=>this.getSashPosition(e),getHorizontalSashWidth:this.getSashOrthogonalSize},{...e,orientation:1}):new s.m(this.sashContainer,{getVerticalSashLeft:e=>this.getSashPosition(e),getVerticalSashHeight:this.getSashOrthogonalSize},{...e,orientation:0}),n=0===this.orientation?e=>({sash:t,start:e.startY,current:e.currentY,alt:e.altKey}):e=>({sash:t,start:e.startX,current:e.currentX,alt:e.altKey}),o=d.Jh.map(t.onDidStart,n)(this.onSashStart,this),r=d.Jh.map(t.onDidChange,n)(this.onSashChange,this),l=d.Jh.map(t.onDidEnd,(()=>this.sashItems.findIndex((e=>e.sash===t)))),h=l(this.onSashEnd,this),u=t.onDidReset((()=>{const e=this.sashItems.findIndex((e=>e.sash===t)),i=(0,a.y1)(e,-1),n=(0,a.y1)(e+1,this.viewItems.length),o=this.findFirstSnapIndex(i),s=this.findFirstSnapIndex(n);("number"!=typeof o||this.viewItems[o].visible)&&("number"!=typeof s||this.viewItems[s].visible)&&this._onDidSashReset.fire(e)})),g=(0,c.qE)(o,r,h,u,t),p={sash:t,disposable:g};this.sashItems.splice(i-1,0,p)}let m;r.appendChild(e.element),"number"!=typeof t&&"split"===t.type&&(m=[t.index]),o||this.relayout([i],m),o||"number"==typeof t||"distribute"!==t.type||this.distributeViewSizes()}finally{this.state=A.Idle}}relayout(e,t){const i=this.viewItems.reduce(((e,t)=>e+t.size),0);this.resize(this.viewItems.length-1,this.size-i,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(e,t,i=this.viewItems.map((e=>e.size)),n,o,s=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY,l,d){if(e<0||e>=this.viewItems.length)return 0;const c=(0,a.y1)(e,-1),u=(0,a.y1)(e+1,this.viewItems.length);if(o)for(const e of o)(0,a._A)(c,e),(0,a._A)(u,e);if(n)for(const e of n)(0,a.r7)(c,e),(0,a.r7)(u,e);const g=c.map((e=>this.viewItems[e])),p=c.map((e=>i[e])),m=u.map((e=>this.viewItems[e])),f=u.map((e=>i[e])),v=c.reduce(((e,t)=>e+(this.viewItems[t].minimumSize-i[t])),0),_=c.reduce(((e,t)=>e+(this.viewItems[t].maximumSize-i[t])),0),b=0===u.length?Number.POSITIVE_INFINITY:u.reduce(((e,t)=>e+(i[t]-this.viewItems[t].minimumSize)),0),w=0===u.length?Number.NEGATIVE_INFINITY:u.reduce(((e,t)=>e+(i[t]-this.viewItems[t].maximumSize)),0),y=Math.max(v,w,s),C=Math.min(b,_,r);let k=!1;if(l){const e=this.viewItems[l.index],i=t>=l.limitDelta;k=i!==e.visible,e.setVisible(i,l.size)}if(!k&&d){const e=this.viewItems[d.index],i=te+t.size),0);let i=this.size-t;const n=(0,a.y1)(this.viewItems.length-1,-1),o=n.filter((e=>1===this.viewItems[e].priority)),s=n.filter((e=>2===this.viewItems[e].priority));for(const e of s)(0,a._A)(n,e);for(const e of o)(0,a.r7)(n,e);"number"==typeof e&&(0,a.r7)(n,e);for(let e=0;0!==i&&ee+t.size),0);let e=0;for(const t of this.viewItems)t.layout(e,this.layoutContext),e+=t.size;this.sashItems.forEach((e=>e.sash.layout())),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){0===this.orientation?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this._contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this._contentSize})}updateSashEnablement(){let e=!1;const t=this.viewItems.map((t=>e=t.size-t.minimumSize>0||e));e=!1;const i=this.viewItems.map((t=>e=t.maximumSize-t.size>0||e)),n=[...this.viewItems].reverse();e=!1;const o=n.map((t=>e=t.size-t.minimumSize>0||e)).reverse();e=!1;const s=n.map((t=>e=t.maximumSize-t.size>0||e)).reverse();let r=0;for(let e=0;e0||this.startSnappingEnabled)?n.state=1:h&&t[e]&&(r0)return;if(!e.visible&&e.snap)return t}}areViewsDistributed(){let e,t;for(const i of this.viewItems)if(e=void 0===e?i.size:Math.min(e,i.size),t=void 0===t?i.size:Math.max(t,i.size),t-e>2)return!1;return!0}dispose(){var e;null===(e=this.sashDragState)||void 0===e||e.disposable.dispose(),(0,c.AS)(this.viewItems),this.viewItems=[],this.sashItems.forEach((e=>e.disposable.dispose())),this.sashItems=[],super.dispose()}}},86004:(e,t,i)=>{"use strict";i.d(t,{l:()=>k,F:()=>C});var n=i(45222),o=i(58881),s=i(2106),r=i(85072),a=i.n(r),l=i(97825),d=i.n(l),c=i(77659),h=i.n(c),u=i(55056),g=i.n(u),p=i(10540),m=i.n(p),f=i(41113),v=i.n(f),_=i(62516),b={};b.styleTagTransform=v(),b.setAttributes=g(),b.insert=h().bind(null,"head"),b.domAPI=d(),b.insertStyleElement=m(),a()(_.A,b),_.A&&_.A.locals&&_.A.locals;var w=i(65568),y=i(20396);const C={inputActiveOptionBorder:"#007ACC00",inputActiveOptionForeground:"#FFFFFF",inputActiveOptionBackground:"#0E639C50"};class k extends n.x{constructor(e){var t;super(),this._onChange=this._register(new s.vl),this.onChange=this._onChange.event,this._onKeyDown=this._register(new s.vl),this.onKeyDown=this._onKeyDown.event,this._opts=e,this._checked=this._opts.isChecked;const i=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,i.push(...o.L.asClassNameArray(this._icon))),this._opts.actionClassName&&i.push(...this._opts.actionClassName.split(" ")),this._checked&&i.push("checked"),this.domNode=document.createElement("div"),this._hover=this._register((0,y.i)().setupManagedHover(null!==(t=e.hoverDelegate)&&void 0!==t?t:(0,w.nZ)("mouse"),this.domNode,this._opts.title)),this.domNode.classList.add(...i),this._opts.notFocusable||(this.domNode.tabIndex=0),this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,(e=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),e.preventDefault())})),this._register(this.ignoreGesture(this.domNode)),this.onkeydown(this.domNode,(e=>{if(10===e.keyCode||3===e.keyCode)return this.checked=!this._checked,this._onChange.fire(!0),e.preventDefault(),void e.stopPropagation();this._onKeyDown.fire(e)}))}get enabled(){return"true"!==this.domNode.getAttribute("aria-disabled")}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 22}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder||"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground||"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground||"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}},47611:(e,t,i)=>{"use strict";i.d(t,{DO:()=>le,w0:()=>U,KP:()=>P,RD:()=>F,vD:()=>O});var n=i(14333),o=(i(34061),i(87594)),s=(i(77439),i(6595),i(39451)),r=i(83022),a=i(67954),l=i(86004),d=i(31272),c=i(97757),h=(i(27969),i(13338)),u=i(65958),g=i(26048),p=i(58881),m=i(27992),f=i(2106),v=i(75637),_=i(10998),b=i(62992),w=i(79359),y=i(85072),C=i.n(y),k=i(97825),S=i.n(k),x=i(77659),L=i.n(x),D=i(55056),E=i.n(D),I=i(10540),N=i.n(I),M=i(41113),A=i.n(M),T=i(71963),R={};R.styleTagTransform=A(),R.setAttributes=E(),R.insert=L().bind(null,"head"),R.domAPI=S(),R.insertStyleElement=N(),C()(T.A,R),T.A&&T.A.locals&&T.A.locals;var P,O,F,B=i(3765),W=(i(65568),i(16311));class H extends r.ur{constructor(e){super(e.elements.map((e=>e.element))),this.data=e}}function V(e){return e instanceof r.ur?new H(e):e}class z{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=_.jG.None,this.disposables=new _.Cm}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((e=>e.element)),t)}onDragStart(e,t){var i,n;null===(n=(i=this.dnd).onDragStart)||void 0===n||n.call(i,V(e),t)}onDragOver(e,t,i,n,o,s=!0){const r=this.dnd.onDragOver(V(e),t&&t.element,i,n,o),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),void 0===t)return r;if(a&&"boolean"!=typeof r&&r.autoExpand&&(this.autoExpandDisposable=(0,u.EQ)((()=>{const e=this.modelProvider(),i=e.getNodeLocation(t);e.isCollapsed(i)&&e.setCollapsed(i,!1),this.autoExpandNode=void 0}),500,this.disposables)),"boolean"==typeof r||!r.accept||void 0===r.bubble||r.feedback)return s?r:{accept:"boolean"==typeof r?r:r.accept,effect:"boolean"==typeof r?void 0:r.effect,feedback:[i]};if(1===r.bubble){const i=this.modelProvider(),s=i.getNodeLocation(t),r=i.getParentNodeLocation(s),a=i.getNode(r),l=r&&i.getListIndex(r);return this.onDragOver(e,a,l,n,o,!1)}const l=this.modelProvider(),d=l.getNodeLocation(t),c=l.getListIndex(d),g=l.getListRenderCount(d);return{...r,feedback:(0,h.y1)(c,c+g)}}drop(e,t,i,n,o){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(V(e),t&&t.element,i,n,o)}onDragEnd(e){var t,i;null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}dispose(){this.disposables.dispose(),this.dnd.dispose()}}function j(e,t){return t&&{...t,identityProvider:t.identityProvider&&{getId:e=>t.identityProvider.getId(e.element)},dnd:t.dnd&&new z(e,t.dnd),multipleSelectionController:t.multipleSelectionController&&{isSelectionSingleChangeEvent:e=>t.multipleSelectionController.isSelectionSingleChangeEvent({...e,element:e.element}),isSelectionRangeChangeEvent:e=>t.multipleSelectionController.isSelectionRangeChangeEvent({...e,element:e.element})},accessibilityProvider:t.accessibilityProvider&&{...t.accessibilityProvider,getSetSize(t){const i=e(),n=i.getNodeLocation(t),o=i.getParentNodeLocation(n);return i.getNode(o).visibleChildrenCount},getPosInSet:e=>e.visibleChildIndex+1,isChecked:t.accessibilityProvider&&t.accessibilityProvider.isChecked?e=>t.accessibilityProvider.isChecked(e.element):void 0,getRole:t.accessibilityProvider&&t.accessibilityProvider.getRole?e=>t.accessibilityProvider.getRole(e.element):()=>"treeitem",getAriaLabel:e=>t.accessibilityProvider.getAriaLabel(e.element),getWidgetAriaLabel:()=>t.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:t.accessibilityProvider&&t.accessibilityProvider.getWidgetRole?()=>t.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:t.accessibilityProvider&&t.accessibilityProvider.getAriaLevel?e=>t.accessibilityProvider.getAriaLevel(e.element):e=>e.depth,getActiveDescendantId:t.accessibilityProvider.getActiveDescendantId&&(e=>t.accessibilityProvider.getActiveDescendantId(e.element))},keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{...t.keyboardNavigationLabelProvider,getKeyboardNavigationLabel:e=>t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}}class U{constructor(e){this.delegate=e}getHeight(e){return this.delegate.getHeight(e.element)}getTemplateId(e){return this.delegate.getTemplateId(e.element)}hasDynamicHeight(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)}setDynamicHeight(e,t){var i,n;null===(n=(i=this.delegate).setDynamicHeight)||void 0===n||n.call(i,e.element,t)}}!function(e){e.None="none",e.OnHover="onHover",e.Always="always"}(P||(P={}));class ${get elements(){return this._elements}constructor(e,t=[]){this._elements=t,this.disposables=new _.Cm,this.onDidChange=f.Jh.forEach(e,(e=>this._elements=e),this.disposables)}dispose(){this.disposables.dispose()}}class K{constructor(e,t,i,n,o,s={}){var r;this.renderer=e,this.modelProvider=t,this.activeNodes=n,this.renderedIndentGuides=o,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=K.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.activeIndentNodes=new Set,this.indentGuidesDisposable=_.jG.None,this.disposables=new _.Cm,this.templateId=e.templateId,this.updateOptions(s),f.Jh.map(i,(e=>e.node))(this.onDidChangeNodeTwistieState,this,this.disposables),null===(r=e.onDidChangeTwistieState)||void 0===r||r.call(e,this.onDidChangeTwistieState,this,this.disposables)}updateOptions(e={}){if(void 0!==e.indent){const t=(0,b.qE)(e.indent,0,40);if(t!==this.indent){this.indent=t;for(const[e,t]of this.renderedNodes)this.renderTreeElement(e,t)}}if(void 0!==e.renderIndentGuides){const t=e.renderIndentGuides!==P.None;if(t!==this.shouldRenderIndentGuides){this.shouldRenderIndentGuides=t;for(const[e,t]of this.renderedNodes)this._renderIndentGuides(e,t);if(this.indentGuidesDisposable.dispose(),t){const e=new _.Cm;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,e),this.indentGuidesDisposable=e,this._onDidChangeActiveNodes(this.activeNodes.elements)}}}void 0!==e.hideTwistiesOfChildlessElements&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}renderTemplate(e){const t=(0,n.BC)(e,(0,n.$)(".monaco-tl-row")),i=(0,n.BC)(t,(0,n.$)(".monaco-tl-indent")),o=(0,n.BC)(t,(0,n.$)(".monaco-tl-twistie")),s=(0,n.BC)(t,(0,n.$)(".monaco-tl-contents")),r=this.renderer.renderTemplate(s);return{container:e,indent:i,twistie:o,indentGuidesDisposable:_.jG.None,templateData:r}}renderElement(e,t,i,n){this.renderedNodes.set(e,i),this.renderedElements.set(e.element,e),this.renderTreeElement(e,i),this.renderer.renderElement(e,t,i.templateData,n)}disposeElement(e,t,i,n){var o,s;i.indentGuidesDisposable.dispose(),null===(s=(o=this.renderer).disposeElement)||void 0===s||s.call(o,e,t,i.templateData,n),"number"==typeof n&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}onDidChangeTwistieState(e){const t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t)}onDidChangeNodeTwistieState(e){const t=this.renderedNodes.get(e);t&&(this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderTreeElement(e,t))}renderTreeElement(e,t){const i=K.DefaultIndent+(e.depth-1)*this.indent;t.twistie.style.paddingLeft=`${i}px`,t.indent.style.width=i+this.indent-16+"px",e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded"),t.twistie.classList.remove(...p.L.asClassNameArray(g.W.treeItemExpanded));let n=!1;this.renderer.renderTwistie&&(n=this.renderer.renderTwistie(e.element,t.twistie)),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(n||t.twistie.classList.add(...p.L.asClassNameArray(g.W.treeItemExpanded)),t.twistie.classList.add("collapsible"),t.twistie.classList.toggle("collapsed",e.collapsed)):t.twistie.classList.remove("collapsible","collapsed"),this._renderIndentGuides(e,t)}_renderIndentGuides(e,t){if((0,n.w_)(t.indent),t.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const i=new _.Cm,o=this.modelProvider();for(;;){const s=o.getNodeLocation(e),r=o.getParentNodeLocation(s);if(!r)break;const a=o.getNode(r),l=(0,n.$)(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(a)&&l.classList.add("active"),0===t.indent.childElementCount?t.indent.appendChild(l):t.indent.insertBefore(l,t.indent.firstElementChild),this.renderedIndentGuides.add(a,l),i.add((0,_.s)((()=>this.renderedIndentGuides.delete(a,l)))),e=a}t.indentGuidesDisposable=i}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;const t=new Set,i=this.modelProvider();e.forEach((e=>{const n=i.getNodeLocation(e);try{const o=i.getParentNodeLocation(n);e.collapsible&&e.children.length>0&&!e.collapsed?t.add(e):o&&t.add(i.getNode(o))}catch(e){}})),this.activeIndentNodes.forEach((e=>{t.has(e)||this.renderedIndentGuides.forEach(e,(e=>e.classList.remove("active")))})),t.forEach((e=>{this.activeIndentNodes.has(e)||this.renderedIndentGuides.forEach(e,(e=>e.classList.add("active")))})),this.activeIndentNodes=t}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),(0,_.AS)(this.disposables)}}K.DefaultIndent=8;class q{get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}constructor(e,t,i){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=i,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new _.Cm,e.onWillRefilter(this.reset,this,this.disposables)}filter(e,t){let i=1;if(this._filter){const n=this._filter.filter(e,t);if(i="boolean"==typeof n?n?1:0:(0,d.iZ)(n)?(0,d.Mn)(n.visibility):n,0===i)return!1}if(this._totalCount++,!this._pattern)return this._matchCount++,{data:v.ne.Default,visibility:i};const n=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),o=Array.isArray(n)?n:[n];for(const e of o){const t=e&&e.toString();if(void 0===t)return{data:v.ne.Default,visibility:i};let n;if(this.tree.findMatchType===F.Contiguous){const e=t.toLowerCase().indexOf(this._lowercasePattern);if(e>-1){n=[Number.MAX_SAFE_INTEGER,0];for(let t=this._lowercasePattern.length;t>0;t--)n.push(e+t-1)}}else n=(0,v.dt)(this._pattern,this._lowercasePattern,0,t,t.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(n)return this._matchCount++,1===o.length?{data:n,visibility:i}:{data:{label:t,score:n},visibility:i}}return this.tree.findMode===O.Filter?"number"==typeof this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility:this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility(e):2:{data:v.ne.Default,visibility:i}}reset(){this._totalCount=0,this._matchCount=0}dispose(){(0,_.AS)(this.disposables)}}l.l,l.l,s.x8,l.F,function(e){e[e.Highlight=0]="Highlight",e[e.Filter=1]="Filter"}(O||(O={})),function(e){e[e.Fuzzy=0]="Fuzzy",e[e.Contiguous=1]="Contiguous"}(F||(F={})),_.jG;class G{get pattern(){return this._pattern}get mode(){return this._mode}set mode(e){e!==this._mode&&(this._mode=e,this.widget&&(this.widget.mode=this._mode),this.tree.refilter(),this.render(),this._onDidChangeMode.fire(e))}get matchType(){return this._matchType}set matchType(e){e!==this._matchType&&(this._matchType=e,this.widget&&(this.widget.matchType=this._matchType),this.tree.refilter(),this.render(),this._onDidChangeMatchType.fire(e))}constructor(e,t,i,n,o,s={}){var r,a;this.tree=e,this.view=i,this.filter=n,this.contextViewProvider=o,this.options=s,this._pattern="",this.width=0,this._onDidChangeMode=new f.vl,this.onDidChangeMode=this._onDidChangeMode.event,this._onDidChangeMatchType=new f.vl,this.onDidChangeMatchType=this._onDidChangeMatchType.event,this._onDidChangePattern=new f.vl,this._onDidChangeOpenState=new f.vl,this.onDidChangeOpenState=this._onDidChangeOpenState.event,this.enabledDisposables=new _.Cm,this.disposables=new _.Cm,this._mode=null!==(r=e.options.defaultFindMode)&&void 0!==r?r:O.Highlight,this._matchType=null!==(a=e.options.defaultFindMatchType)&&void 0!==a?a:F.Fuzzy,t.onDidSplice(this.onDidSpliceModel,this,this.disposables)}updateOptions(e={}){void 0!==e.defaultFindMode&&(this.mode=e.defaultFindMode),void 0!==e.defaultFindMatchType&&(this.matchType=e.defaultFindMatchType)}onDidSpliceModel(){this.widget&&0!==this.pattern.length&&(this.tree.refilter(),this.render())}render(){var e,t,i,n;const o=this.filter.totalCount>0&&0===this.filter.matchCount;this.pattern&&o?null===(e=this.tree.options.showNotFoundMessage)||void 0===e||e?null===(t=this.widget)||void 0===t||t.showMessage({type:2,content:(0,B.k)("not found","No elements found.")}):null===(i=this.widget)||void 0===i||i.showMessage({type:2}):null===(n=this.widget)||void 0===n||n.clearMessage()}shouldAllowFocus(e){return!this.widget||!this.pattern||this.filter.totalCount>0&&this.filter.matchCount<=1||!v.ne.isDefault(e.filterData)}layout(e){var t;this.width=e,null===(t=this.widget)||void 0===t||t.layout(e)}dispose(){this._history=void 0,this._onDidChangePattern.dispose(),this.enabledDisposables.dispose(),this.disposables.dispose()}}function Q(e,t){return e.position===t.position&&Z(e,t)}function Z(e,t){return e.node.element===t.node.element&&e.startIndex===t.startIndex&&e.height===t.height&&e.endIndex===t.endIndex}class Y{constructor(e=[]){this.stickyNodes=e}get count(){return this.stickyNodes.length}equal(e){return(0,h.aI)(this.stickyNodes,e.stickyNodes,Q)}lastNodePartiallyVisible(){if(0===this.count)return!1;const e=this.stickyNodes[this.count-1];if(1===this.count)return 0!==e.position;const t=this.stickyNodes[this.count-2];return t.position+t.height!==e.position}animationStateChanged(e){if(!(0,h.aI)(this.stickyNodes,e.stickyNodes,Z))return!1;if(0===this.count)return!1;const t=this.stickyNodes[this.count-1],i=e.stickyNodes[e.count-1];return t.position!==i.position}}class X{constrainStickyScrollNodes(e,t,i){for(let n=0;ni||n>=t)return e.slice(0,n)}return e}}class J extends _.jG{constructor(e,t,i,n,o,s={}){var r;super(),this.tree=e,this.model=t,this.view=i,this.treeDelegate=o,this.maxWidgetViewRatio=.4;const a=this.validateStickySettings(s);this.stickyScrollMaxItemCount=a.stickyScrollMaxItemCount,this.stickyScrollDelegate=null!==(r=s.stickyScrollDelegate)&&void 0!==r?r:new X,this._widget=this._register(new ee(i.getScrollableElement(),i,e,n,o,s.accessibilityProvider)),this.onDidChangeHasFocus=this._widget.onDidChangeHasFocus,this.onContextMenu=this._widget.onContextMenu,this._register(i.onDidScroll((()=>this.update()))),this._register(i.onDidChangeContentHeight((()=>this.update()))),this._register(e.onDidChangeCollapseState((()=>this.update()))),this.update()}get height(){return this._widget.height}getNodeAtHeight(e){let t;if(t=0===e?this.view.firstVisibleIndex:this.view.indexAt(e+this.view.scrollTop),!(t<0||t>=this.view.length))return this.view.element(t)}update(){const e=this.getNodeAtHeight(0);if(!e||0===this.tree.scrollTop)return void this._widget.setState(void 0);const t=this.findStickyState(e);this._widget.setState(t)}findStickyState(e){const t=[];let i=e,n=0,o=this.getNextStickyNode(i,void 0,n);for(;o&&(t.push(o),n+=o.height,!(t.length<=this.stickyScrollMaxItemCount)||(i=this.getNextVisibleNode(o),i));)o=this.getNextStickyNode(i,o.node,n);const s=this.constrainStickyNodes(t);return s.length?new Y(s):void 0}getNextVisibleNode(e){return this.getNodeAtHeight(e.position+e.height)}getNextStickyNode(e,t,i){const n=this.getAncestorUnderPrevious(e,t);if(n){if(n===e){if(!this.nodeIsUncollapsedParent(e))return;if(this.nodeTopAlignsWithStickyNodesBottom(e,i))return}return this.createStickyScrollNode(n,i)}}nodeTopAlignsWithStickyNodesBottom(e,t){const i=this.getNodeIndex(e),n=this.view.getElementTop(i),o=t;return this.view.scrollTop===n-o}createStickyScrollNode(e,t){const i=this.treeDelegate.getHeight(e),{startIndex:n,endIndex:o}=this.getNodeRange(e);return{node:e,position:this.calculateStickyNodePosition(o,t,i),height:i,startIndex:n,endIndex:o}}getAncestorUnderPrevious(e,t=void 0){let i=e,n=this.getParentNode(i);for(;n;){if(n===t)return i;i=n,n=this.getParentNode(i)}if(void 0===t)return i}calculateStickyNodePosition(e,t,i){let n=this.view.getRelativeTop(e);if(null===n&&this.view.firstVisibleIndex===e&&e+1r&&t<=r?r-i:t}constrainStickyNodes(e){if(0===e.length)return[];const t=this.view.renderHeight*this.maxWidgetViewRatio,i=e[e.length-1];if(e.length<=this.stickyScrollMaxItemCount&&i.position+i.height<=t)return e;const n=this.stickyScrollDelegate.constrainStickyScrollNodes(e,this.stickyScrollMaxItemCount,t);if(!n.length)return[];const o=n[n.length-1];if(n.length>this.stickyScrollMaxItemCount||o.position+o.height>t)throw new Error("stickyScrollDelegate violates constraints");return n}getParentNode(e){const t=this.model.getNodeLocation(e),i=this.model.getParentNodeLocation(t);return i?this.model.getNode(i):void 0}nodeIsUncollapsedParent(e){const t=this.model.getNodeLocation(e);return this.model.getListRenderCount(t)>1}getNodeIndex(e){const t=this.model.getNodeLocation(e);return this.model.getListIndex(t)}getNodeRange(e){const t=this.model.getNodeLocation(e),i=this.model.getListIndex(t);if(i<0)throw new Error("Node not found in tree");return{startIndex:i,endIndex:i+this.model.getListRenderCount(t)-1}}nodePositionTopBelowWidget(e){const t=[];let i=this.getParentNode(e);for(;i;)t.push(i),i=this.getParentNode(i);let n=0;for(let e=0;e0,i=!!e&&e.count>0;if(!t&&!i||t&&i&&this._previousState.equal(e))return;if(t!==i&&this.setVisible(i),!i)return this._previousState=void 0,this._previousElements=[],void this._previousStateDisposables.clear();const n=e.stickyNodes[e.count-1];if(this._previousState&&e.animationStateChanged(this._previousState))this._previousElements[this._previousState.count-1].style.top=`${n.position}px`;else{this._previousStateDisposables.clear();const t=Array(e.count);for(let i=e.count-1;i>=0;i--){const n=e.stickyNodes[i],{element:o,disposable:s}=this.createElement(n,i,e.count);t[i]=o,this._rootDomNode.appendChild(o),this._previousStateDisposables.add(s)}this.stickyScrollFocus.updateElements(t,e),this._previousElements=t}this._previousState=e,this._rootDomNode.style.height=`${n.position+n.height}px`}createElement(e,t,i){const n=e.startIndex,o=document.createElement("div");o.style.top=`${e.position}px`,!1!==this.tree.options.setRowHeight&&(o.style.height=`${e.height}px`),!1!==this.tree.options.setRowLineHeight&&(o.style.lineHeight=`${e.height}px`),o.classList.add("monaco-tree-sticky-row"),o.classList.add("monaco-list-row"),o.setAttribute("data-index",`${n}`),o.setAttribute("data-parity",n%2==0?"even":"odd"),o.setAttribute("id",this.view.getElementID(n));const s=this.setAccessibilityAttributes(o,e.node.element,t,i),r=this.treeDelegate.getTemplateId(e.node),a=this.treeRenderers.find((e=>e.templateId===r));if(!a)throw new Error(`No renderer found for template id ${r}`);let l=e.node;l===this.tree.getNode(this.tree.getNodeLocation(e.node))&&(l=new Proxy(e.node,{}));const d=a.renderTemplate(o);a.renderElement(l,e.startIndex,d,e.height);const c=(0,_.s)((()=>{s.dispose(),a.disposeElement(l,e.startIndex,d,e.height),a.disposeTemplate(d),o.remove()}));return{element:o,disposable:c}}setAccessibilityAttributes(e,t,i,n){var o;if(!this.accessibilityProvider)return _.jG.None;this.accessibilityProvider.getSetSize&&e.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(t,i,n))),this.accessibilityProvider.getPosInSet&&e.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(t,i))),this.accessibilityProvider.getRole&&e.setAttribute("role",null!==(o=this.accessibilityProvider.getRole(t))&&void 0!==o?o:"treeitem");const s=this.accessibilityProvider.getAriaLabel(t),r=s&&"string"!=typeof s?s:(0,W.lk)(s),a=(0,W.fm)((t=>{const i=t.readObservable(r);i?e.setAttribute("aria-label",i):e.removeAttribute("aria-label")}));"string"==typeof s||s&&e.setAttribute("aria-label",s.get());const l=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(t);return"number"==typeof l&&e.setAttribute("aria-level",`${l}`),e.setAttribute("aria-selected",String(!1)),a}setVisible(e){this._rootDomNode.classList.toggle("empty",!e),e||this.stickyScrollFocus.updateElements([],void 0)}domFocus(){this.stickyScrollFocus.domFocus()}focusedLast(){return this.stickyScrollFocus.focusedLast()}dispose(){this.stickyScrollFocus.dispose(),this._previousStateDisposables.dispose(),this._rootDomNode.remove()}}class te extends _.jG{get domHasFocus(){return this._domHasFocus}set domHasFocus(e){e!==this._domHasFocus&&(this._onDidChangeHasFocus.fire(e),this._domHasFocus=e)}constructor(e,t){super(),this.container=e,this.view=t,this.focusedIndex=-1,this.elements=[],this._onDidChangeHasFocus=new f.vl,this.onDidChangeHasFocus=this._onDidChangeHasFocus.event,this._onContextMenu=new f.vl,this.onContextMenu=this._onContextMenu.event,this._domHasFocus=!1,this.container.addEventListener("focus",(()=>this.onFocus())),this.container.addEventListener("blur",(()=>this.onBlur())),this._register(this.view.onDidFocus((()=>this.toggleStickyScrollFocused(!1)))),this._register(this.view.onKeyDown((e=>this.onKeyDown(e)))),this._register(this.view.onMouseDown((e=>this.onMouseDown(e)))),this._register(this.view.onContextMenu((e=>this.handleContextMenu(e))))}handleContextMenu(e){const t=e.browserEvent.target;if(!(0,a.Es)(t)&&!(0,a.xu)(t))return void(this.focusedLast()&&this.view.domFocus());if(!(0,n.kx)(e.browserEvent)){if(!this.state)throw new Error("Context menu should not be triggered when state is undefined");const t=this.state.stickyNodes.findIndex((t=>{var i;return t.node.element===(null===(i=e.element)||void 0===i?void 0:i.element)}));if(-1===t)throw new Error("Context menu should not be triggered when element is not in sticky scroll widget");return this.container.focus(),void this.setFocus(t)}if(!this.state||this.focusedIndex<0)throw new Error("Context menu key should not be triggered when focus is not in sticky scroll widget");const i=this.state.stickyNodes[this.focusedIndex].node.element,o=this.elements[this.focusedIndex];this._onContextMenu.fire({element:i,anchor:o,browserEvent:e.browserEvent,isStickyScroll:!0})}onKeyDown(e){if(this.domHasFocus&&this.state)if("ArrowUp"===e.key)this.setFocusedElement(Math.max(0,this.focusedIndex-1)),e.preventDefault(),e.stopPropagation();else if("ArrowDown"===e.key||"ArrowRight"===e.key){if(this.focusedIndex>=this.state.count-1){const e=this.state.stickyNodes[this.state.count-1].startIndex+1;this.view.domFocus(),this.view.setFocus([e]),this.scrollNodeUnderWidget(e,this.state)}else this.setFocusedElement(this.focusedIndex+1);e.preventDefault(),e.stopPropagation()}}onMouseDown(e){const t=e.browserEvent.target;((0,a.Es)(t)||(0,a.xu)(t))&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation())}updateElements(e,t){if(t&&0===t.count)throw new Error("Sticky scroll state must be undefined when there are no sticky nodes");if(t&&t.count!==e.length)throw new Error("Sticky scroll focus received illigel state");const i=this.focusedIndex;if(this.removeFocus(),this.elements=e,this.state=t,t){const e=(0,b.qE)(i,0,t.count-1);this.setFocus(e)}else this.domHasFocus&&this.view.domFocus();this.container.tabIndex=t?0:-1}setFocusedElement(e){const t=this.state;if(!t)throw new Error("Cannot set focus when state is undefined");if(this.setFocus(e),!(e1?t.stickyNodes[t.count-2]:void 0,o=this.view.getElementTop(e),s=n?n.position+n.height+i.height:i.height;this.view.scrollTop=o-s}domFocus(){if(!this.state)throw new Error("Cannot focus when state is undefined");this.container.focus()}focusedLast(){return!!this.state&&this.view.getHTMLElement().classList.contains("sticky-scroll-focused")}removeFocus(){-1!==this.focusedIndex&&(this.toggleElementFocus(this.elements[this.focusedIndex],!1),this.focusedIndex=-1)}setFocus(e){if(0>e)throw new Error("addFocus() can not remove focus");if(!this.state&&e>=0)throw new Error("Cannot set focus index when state is undefined");if(this.state&&e>=this.state.count)throw new Error("Cannot set focus index to an index that does not exist");const t=this.focusedIndex;t>=0&&this.toggleElementFocus(this.elements[t],!1),e>=0&&this.toggleElementFocus(this.elements[e],!0),this.focusedIndex=e}toggleElementFocus(e,t){this.toggleElementActiveFocus(e,t&&this.domHasFocus),this.toggleElementPassiveFocus(e,t)}toggleCurrentElementActiveFocus(e){-1!==this.focusedIndex&&this.toggleElementActiveFocus(this.elements[this.focusedIndex],e)}toggleElementActiveFocus(e,t){e.classList.toggle("focused",t)}toggleElementPassiveFocus(e,t){e.classList.toggle("passive-focused",t)}toggleStickyScrollFocused(e){this.view.getHTMLElement().classList.toggle("sticky-scroll-focused",e)}onFocus(){if(!this.state||0===this.elements.length)throw new Error("Cannot focus when state is undefined or elements are empty");this.domHasFocus=!0,this.toggleStickyScrollFocused(!0),this.toggleCurrentElementActiveFocus(!0),-1===this.focusedIndex&&this.setFocus(0)}onBlur(){this.domHasFocus=!1,this.toggleCurrentElementActiveFocus(!1)}dispose(){this.toggleStickyScrollFocused(!1),this._onDidChangeHasFocus.fire(!1),super.dispose()}}function ie(e){let t=c.Lx.Unknown;return(0,n.XD)(e.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?t=c.Lx.Twistie:(0,n.XD)(e.browserEvent.target,"monaco-tl-contents","monaco-tl-row")?t=c.Lx.Element:(0,n.XD)(e.browserEvent.target,"monaco-tree-type-filter","monaco-list")&&(t=c.Lx.Filter),{browserEvent:e.browserEvent,element:e.element?e.element.element:null,target:t}}function ne(e){const t=(0,a.Es)(e.browserEvent.target);return{element:e.element?e.element.element:null,browserEvent:e.browserEvent,anchor:e.anchor,isStickyScroll:t}}function oe(e,t){t(e),e.children.forEach((e=>oe(e,t)))}class se{get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}constructor(e,t){this.getFirstViewElementWithTrait=e,this.identityProvider=t,this.nodes=[],this._onDidChange=new f.vl,this.onDidChange=this._onDidChange.event}set(e,t){!(null==t?void 0:t.__forceEvent)&&(0,h.aI)(this.nodes,e)||this._set(e,!1,t)}_set(e,t,i){if(this.nodes=[...e],this.elements=void 0,this._nodeSet=void 0,!t){const e=this;this._onDidChange.fire({get elements(){return e.get()},browserEvent:i})}}get(){return this.elements||(this.elements=this.nodes.map((e=>e.element))),[...this.elements]}getNodes(){return this.nodes}has(e){return this.nodeSet.has(e)}onDidModelSplice({insertedNodes:e,deletedNodes:t}){if(!this.identityProvider){const e=this.createNodeSet(),i=t=>e.delete(t);return t.forEach((e=>oe(e,i))),void this.set([...e.values()])}const i=new Set,n=e=>i.add(this.identityProvider.getId(e.element).toString());t.forEach((e=>oe(e,n)));const o=new Map,s=e=>o.set(this.identityProvider.getId(e.element).toString(),e);e.forEach((e=>oe(e,s)));const r=[];for(const e of this.nodes){const t=this.identityProvider.getId(e.element).toString();if(i.has(t)){const e=o.get(t);e&&e.visible&&r.push(e)}else r.push(e)}if(this.nodes.length>0&&0===r.length){const e=this.getFirstViewElementWithTrait();e&&r.push(e)}this._set(r,!0)}createNodeSet(){const e=new Set;for(const t of this.nodes)e.add(t);return e}}class re extends a.MH{constructor(e,t,i){super(e),this.tree=t,this.stickyScrollProvider=i}onViewPointer(e){if((0,a.Bm)(e.browserEvent.target)||(0,a.B6)(e.browserEvent.target)||(0,a.bm)(e.browserEvent.target))return;if(e.browserEvent.isHandledByList)return;const t=e.element;if(!t)return super.onViewPointer(e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);const i=e.browserEvent.target,n=i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&e.browserEvent.offsetX<16,o=(0,a.xu)(e.browserEvent.target);let s=!1;if(s=!!o||("function"==typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(t.element):!!this.tree.expandOnlyOnTwistieClick),o)this.handleStickyScrollMouseEvent(e,t);else{if(s&&!n&&2!==e.browserEvent.detail)return super.onViewPointer(e);if(!this.tree.expandOnDoubleClick&&2===e.browserEvent.detail)return super.onViewPointer(e)}if(t.collapsible&&(!o||n)){const i=this.tree.getNodeLocation(t),o=e.browserEvent.altKey;if(this.tree.setFocus([i]),this.tree.toggleCollapsed(i,o),n)return void(e.browserEvent.isHandledByList=!0)}o||super.onViewPointer(e)}handleStickyScrollMouseEvent(e,t){if((0,a.b$)(e.browserEvent.target)||(0,a.W0)(e.browserEvent.target))return;const i=this.stickyScrollProvider();if(!i)throw new Error("Sticky scroll controller not found");const n=this.list.indexOf(t),o=this.list.getElementTop(n),s=i.nodePositionTopBelowWidget(t);this.tree.scrollTop=o-s,this.list.domFocus(),this.list.setFocus([n]),this.list.setSelection([n])}onDoubleClick(e){!e.browserEvent.target.classList.contains("monaco-tl-twistie")&&this.tree.expandOnDoubleClick&&(e.browserEvent.isHandledByList||super.onDoubleClick(e))}onMouseDown(e){const t=e.browserEvent.target;(0,a.Es)(t)||(0,a.xu)(t)||super.onMouseDown(e)}onContextMenu(e){const t=e.browserEvent.target;(0,a.Es)(t)||(0,a.xu)(t)||super.onContextMenu(e)}}class ae extends a.B8{constructor(e,t,i,n,o,s,r,a){super(e,t,i,n,a),this.focusTrait=o,this.selectionTrait=s,this.anchorTrait=r}createMouseController(e){return new re(this,e.tree,e.stickyScrollProvider)}splice(e,t,i=[]){if(super.splice(e,t,i),0===i.length)return;const n=[],o=[];let s;i.forEach(((t,i)=>{this.focusTrait.has(t)&&n.push(e+i),this.selectionTrait.has(t)&&o.push(e+i),this.anchorTrait.has(t)&&(s=e+i)})),n.length>0&&super.setFocus((0,h.dM)([...super.getFocus(),...n])),o.length>0&&super.setSelection((0,h.dM)([...super.getSelection(),...o])),"number"==typeof s&&super.setAnchor(s)}setFocus(e,t,i=!1){super.setFocus(e,t),i||this.focusTrait.set(e.map((e=>this.element(e))),t)}setSelection(e,t,i=!1){super.setSelection(e,t),i||this.selectionTrait.set(e.map((e=>this.element(e))),t)}setAnchor(e,t=!1){super.setAnchor(e),t||(void 0===e?this.anchorTrait.set([]):this.anchorTrait.set([this.element(e)]))}}class le{get onDidScroll(){return this.view.onDidScroll}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return f.Jh.filter(f.Jh.map(this.view.onMouseDblClick,ie),(e=>e.target!==c.Lx.Filter))}get onMouseOver(){return f.Jh.map(this.view.onMouseOver,ie)}get onMouseOut(){return f.Jh.map(this.view.onMouseOut,ie)}get onContextMenu(){var e,t;return f.Jh.any(f.Jh.filter(f.Jh.map(this.view.onContextMenu,ne),(e=>!e.isStickyScroll)),null!==(t=null===(e=this.stickyScrollController)||void 0===e?void 0:e.onContextMenu)&&void 0!==t?t:f.Jh.None)}get onPointer(){return f.Jh.map(this.view.onPointer,ie)}get onKeyDown(){return this.view.onKeyDown}get onDidFocus(){return this.view.onDidFocus}get onDidChangeModel(){return f.Jh.signal(this.model.onDidSplice)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get findMode(){var e,t;return null!==(t=null===(e=this.findController)||void 0===e?void 0:e.mode)&&void 0!==t?t:O.Highlight}set findMode(e){this.findController&&(this.findController.mode=e)}get findMatchType(){var e,t;return null!==(t=null===(e=this.findController)||void 0===e?void 0:e.matchType)&&void 0!==t?t:F.Fuzzy}set findMatchType(e){this.findController&&(this.findController.matchType=e)}get expandOnDoubleClick(){return void 0===this._options.expandOnDoubleClick||this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return void 0===this._options.expandOnlyOnTwistieClick||this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}constructor(e,t,i,s,r={}){var l;this._user=e,this._options=r,this.eventBufferer=new f.at,this.onDidChangeFindOpenState=f.Jh.None,this.onDidChangeStickyScrollFocused=f.Jh.None,this.disposables=new _.Cm,this._onWillRefilter=new f.vl,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new f.vl,this.treeDelegate=new U(i);const d=new f.Wj,c=new f.Wj,h=this.disposables.add(new $(c.event)),g=new m.db;this.renderers=s.map((e=>new K(e,(()=>this.model),d.event,h,g,r)));for(const e of this.renderers)this.disposables.add(e);let p;r.keyboardNavigationLabelProvider&&(p=new q(this,r.keyboardNavigationLabelProvider,r.filter),r={...r,filter:p},this.disposables.add(p)),this.focus=new se((()=>this.view.getFocusedElements()[0]),r.identityProvider),this.selection=new se((()=>this.view.getSelectedElements()[0]),r.identityProvider),this.anchor=new se((()=>this.view.getAnchorElement()),r.identityProvider),this.view=new ae(e,t,this.treeDelegate,this.renderers,this.focus,this.selection,this.anchor,{...j((()=>this.model),r),tree:this,stickyScrollProvider:()=>this.stickyScrollController}),this.model=this.createModel(e,this.view,r),d.input=this.model.onDidChangeCollapseState;const v=f.Jh.forEach(this.model.onDidSplice,(e=>{this.eventBufferer.bufferEvents((()=>{this.focus.onDidModelSplice(e),this.selection.onDidModelSplice(e)}))}),this.disposables);v((()=>null),null,this.disposables);const b=this.disposables.add(new f.vl),w=this.disposables.add(new u.ve(0));if(this.disposables.add(f.Jh.any(v,this.focus.onDidChange,this.selection.onDidChange)((()=>{w.trigger((()=>{const e=new Set;for(const t of this.focus.getNodes())e.add(t);for(const t of this.selection.getNodes())e.add(t);b.fire([...e.values()])}))}))),c.input=b.event,!1!==r.keyboardSupport){const e=f.Jh.chain(this.view.onKeyDown,(e=>e.filter((e=>!(0,a.B6)(e.target))).map((e=>new o.Z(e)))));f.Jh.chain(e,(e=>e.filter((e=>15===e.keyCode))))(this.onLeftArrow,this,this.disposables),f.Jh.chain(e,(e=>e.filter((e=>17===e.keyCode))))(this.onRightArrow,this,this.disposables),f.Jh.chain(e,(e=>e.filter((e=>10===e.keyCode))))(this.onSpace,this,this.disposables)}if((null===(l=r.findWidgetEnabled)||void 0===l||l)&&r.keyboardNavigationLabelProvider&&r.contextViewProvider){const e=this.options.findWidgetStyles?{styles:this.options.findWidgetStyles}:void 0;this.findController=new G(this,this.model,this.view,p,r.contextViewProvider,e),this.focusNavigationFilter=e=>this.findController.shouldAllowFocus(e),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.disposables.add(this.findController),this.onDidChangeFindMode=this.findController.onDidChangeMode,this.onDidChangeFindMatchType=this.findController.onDidChangeMatchType}else this.onDidChangeFindMode=f.Jh.None,this.onDidChangeFindMatchType=f.Jh.None;r.enableStickyScroll&&(this.stickyScrollController=new J(this,this.model,this.view,this.renderers,this.treeDelegate,r),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus),this.styleElement=(0,n.li)(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===P.Always)}updateOptions(e={}){var t;this._options={...this._options,...e};for(const t of this.renderers)t.updateOptions(e);this.view.updateOptions(this._options),null===(t=this.findController)||void 0===t||t.updateOptions(e),this.updateStickyScroll(e),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===P.Always)}get options(){return this._options}updateStickyScroll(e){var t;!this.stickyScrollController&&this._options.enableStickyScroll?(this.stickyScrollController=new J(this,this.model,this.view,this.renderers,this.treeDelegate,this._options),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus):this.stickyScrollController&&!this._options.enableStickyScroll&&(this.onDidChangeStickyScrollFocused=f.Jh.None,this.stickyScrollController.dispose(),this.stickyScrollController=void 0),null===(t=this.stickyScrollController)||void 0===t||t.updateOptions(e)}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(e){this.view.scrollTop=e}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}get ariaLabel(){return this.view.ariaLabel}set ariaLabel(e){this.view.ariaLabel=e}domFocus(){var e;(null===(e=this.stickyScrollController)||void 0===e?void 0:e.focusedLast())?this.stickyScrollController.domFocus():this.view.domFocus()}layout(e,t){var i;this.view.layout(e,t),(0,w.Et)(t)&&(null===(i=this.findController)||void 0===i||i.layout(t))}style(e){var t,i;const o=`.${this.view.domId}`,s=[];e.treeIndentGuidesStroke&&(s.push(`.monaco-list${o}:hover .monaco-tl-indent > .indent-guide, .monaco-list${o}.always .monaco-tl-indent > .indent-guide { border-color: ${e.treeInactiveIndentGuidesStroke}; }`),s.push(`.monaco-list${o} .monaco-tl-indent > .indent-guide.active { border-color: ${e.treeIndentGuidesStroke}; }`));const r=null!==(t=e.treeStickyScrollBackground)&&void 0!==t?t:e.listBackground;r&&(s.push(`.monaco-list${o} .monaco-scrollable-element .monaco-tree-sticky-container { background-color: ${r}; }`),s.push(`.monaco-list${o} .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row { background-color: ${r}; }`)),e.treeStickyScrollBorder&&s.push(`.monaco-list${o} .monaco-scrollable-element .monaco-tree-sticky-container { border-bottom: 1px solid ${e.treeStickyScrollBorder}; }`),e.treeStickyScrollShadow&&s.push(`.monaco-list${o} .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-container-shadow { box-shadow: ${e.treeStickyScrollShadow} 0 6px 6px -6px inset; height: 3px; }`),e.listFocusForeground&&(s.push(`.monaco-list${o}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),s.push(`.monaco-list${o}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { color: inherit; }`));const a=(0,n.gI)(e.listFocusAndSelectionOutline,(0,n.gI)(e.listSelectionOutline,null!==(i=e.listFocusOutline)&&void 0!==i?i:""));a&&(s.push(`.monaco-list${o}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused.selected { outline: 1px solid ${a}; outline-offset: -1px;}`),s.push(`.monaco-list${o}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused.selected { outline: inherit;}`)),e.listFocusOutline&&(s.push(`.monaco-list${o}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }`),s.push(`.monaco-list${o}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { outline: inherit; }`),s.push(`.monaco-workbench.context-menu-visible .monaco-list${o}.last-focused.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.passive-focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }`),s.push(`.monaco-workbench.context-menu-visible .monaco-list${o}.last-focused.sticky-scroll-focused .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`),s.push(`.monaco-workbench.context-menu-visible .monaco-list${o}.last-focused:not(.sticky-scroll-focused) .monaco-tree-sticky-container .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`)),this.styleElement.textContent=s.join("\n"),this.view.style(e)}getParentElement(e){const t=this.model.getParentNodeLocation(e);return this.model.getNode(t).element}getFirstElementChild(e){return this.model.getFirstElementChild(e)}getNode(e){return this.model.getNode(e)}getNodeLocation(e){return this.model.getNodeLocation(e)}collapse(e,t=!1){return this.model.setCollapsed(e,!0,t)}expand(e,t=!1){return this.model.setCollapsed(e,!1,t)}toggleCollapsed(e,t=!1){return this.model.setCollapsed(e,void 0,t)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(e,t){this.eventBufferer.bufferEvents((()=>{const i=e.map((e=>this.model.getNode(e)));this.selection.set(i,t);const n=e.map((e=>this.model.getListIndex(e))).filter((e=>e>-1));this.view.setSelection(n,t,!0)}))}getSelection(){return this.selection.get()}setFocus(e,t){this.eventBufferer.bufferEvents((()=>{const i=e.map((e=>this.model.getNode(e)));this.focus.set(i,t);const n=e.map((e=>this.model.getListIndex(e))).filter((e=>e>-1));this.view.setFocus(n,t,!0)}))}focusNext(e=1,t=!1,i,o=((0,n.kx)(i)&&i.altKey?void 0:this.focusNavigationFilter)){this.view.focusNext(e,t,i,o)}focusPrevious(e=1,t=!1,i,o=((0,n.kx)(i)&&i.altKey?void 0:this.focusNavigationFilter)){this.view.focusPrevious(e,t,i,o)}focusNextPage(e,t=((0,n.kx)(e)&&e.altKey?void 0:this.focusNavigationFilter)){return this.view.focusNextPage(e,t)}focusPreviousPage(e,t=((0,n.kx)(e)&&e.altKey?void 0:this.focusNavigationFilter)){return this.view.focusPreviousPage(e,t,(()=>{var e,t;return null!==(t=null===(e=this.stickyScrollController)||void 0===e?void 0:e.height)&&void 0!==t?t:0}))}focusLast(e,t=((0,n.kx)(e)&&e.altKey?void 0:this.focusNavigationFilter)){this.view.focusLast(e,t)}focusFirst(e,t=((0,n.kx)(e)&&e.altKey?void 0:this.focusNavigationFilter)){this.view.focusFirst(e,t)}getFocus(){return this.focus.get()}reveal(e,t){this.model.expandTo(e);const i=this.model.getListIndex(e);if(-1!==i)if(this.stickyScrollController){const n=this.stickyScrollController.nodePositionTopBelowWidget(this.getNode(e));this.view.reveal(i,t,n)}else this.view.reveal(i,t)}onLeftArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!0)){const e=this.model.getParentNodeLocation(n);if(!e)return;const t=this.model.getListIndex(e);this.view.reveal(t),this.view.setFocus([t])}}onRightArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i);if(!this.model.setCollapsed(n,!1)){if(!i.children.some((e=>e.visible)))return;const[e]=this.view.getFocus(),t=e+1;this.view.reveal(t),this.view.setFocus([t])}}onSpace(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const i=t[0],n=this.model.getNodeLocation(i),o=e.browserEvent.altKey;this.model.setCollapsed(n,void 0,o)}dispose(){var e;(0,_.AS)(this.disposables),null===(e=this.stickyScrollController)||void 0===e||e.dispose(),this.view.dispose()}}},31272:(e,t,i)=>{"use strict";i.d(t,{G6:()=>g,Mn:()=>h,iZ:()=>c});var n=i(97757),o=i(13338),s=i(65958),r=i(51055),a=i(6341),l=i(2106),d=i(17954);function c(e){return"object"==typeof e&&"visibility"in e&&"data"in e}function h(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function u(e){return"boolean"==typeof e.collapsible}class g{constructor(e,t,i,n={}){var o;this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new l.at,this._onDidChangeCollapseState=new l.vl,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new l.vl,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new l.vl,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new s.ve(r.h),this.collapseByDefault=void 0!==n.collapseByDefault&&n.collapseByDefault,this.allowNonCollapsibleParents=null!==(o=n.allowNonCollapsibleParents)&&void 0!==o&&o,this.filter=n.filter,this.autoExpandSingleChildren=void 0!==n.autoExpandSingleChildren&&n.autoExpandSingleChildren,this.root={parent:void 0,element:i,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(e,t,i=d.f.empty(),o={}){if(0===e.length)throw new n.jh(this.user,"Invalid tree location");o.diffIdentityProvider?this.spliceSmart(o.diffIdentityProvider,e,t,i,o):this.spliceSimple(e,t,i,o)}spliceSmart(e,t,i,n,o,s){var r;void 0===n&&(n=d.f.empty()),void 0===s&&(s=null!==(r=o.diffDepth)&&void 0!==r?r:0);const{parentNode:l}=this.getParentNodeWithListIndex(t);if(!l.lastDiffIds)return this.spliceSimple(t,i,n,o);const c=[...n],h=t[t.length-1],u=new a.uP({getElements:()=>l.lastDiffIds},{getElements:()=>[...l.children.slice(0,h),...c,...l.children.slice(h+i)].map((t=>e.getId(t.element).toString()))}).ComputeDiff(!1);if(u.quitEarly)return l.lastDiffIds=void 0,this.spliceSimple(t,i,c,o);const g=t.slice(0,-1),p=(t,i,n)=>{if(s>0)for(let r=0;rt.originalStart-e.originalStart)))p(m,f,m-(e.originalStart+e.originalLength)),m=e.originalStart,f=e.modifiedStart-h,this.spliceSimple([...g,m],e.originalLength,d.f.slice(c,f,f+e.modifiedLength),o);p(m,f,m)}spliceSimple(e,t,i=d.f.empty(),{onDidCreateNode:n,onDidDeleteNode:s,diffIdentityProvider:r}){const{parentNode:a,listIndex:l,revealed:c,visible:h}=this.getParentNodeWithListIndex(e),u=[],g=d.f.map(i,(e=>this.createTreeNode(e,a,a.visible?1:0,c,u,n))),p=e[e.length-1];let m=0;for(let e=p;e>=0&&er.getId(e.element).toString()))):a.lastDiffIds=a.children.map((e=>r.getId(e.element).toString())):a.lastDiffIds=void 0;let w=0;for(const e of b)e.visible&&w++;if(0!==w)for(let e=p+f.length;ee+(t.visible?t.renderNodeCount:0)),0);this._updateAncestorsRenderNodeCount(a,_-e),this.list.splice(l,e,u)}if(b.length>0&&s){const e=t=>{s(t),t.children.forEach(e)};b.forEach(e)}this._onDidSplice.fire({insertedNodes:f,deletedNodes:b});let y=a;for(;y;){if(2===y.visibility){this.refilterDelayer.trigger((()=>this.refilter()));break}y=y.parent}}rerender(e){if(0===e.length)throw new n.jh(this.user,"Invalid tree location");const{node:t,listIndex:i,revealed:o}=this.getTreeNodeWithListIndex(e);t.visible&&o&&this.list.splice(i,1,[t])}has(e){return this.hasTreeNode(e)}getListIndex(e){const{listIndex:t,visible:i,revealed:n}=this.getTreeNodeWithListIndex(e);return i&&n?t:-1}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount}isCollapsible(e){return this.getTreeNode(e).collapsible}setCollapsible(e,t){const i=this.getTreeNode(e);void 0===t&&(t=!i.collapsible);const n={collapsible:t};return this.eventBufferer.bufferEvents((()=>this._setCollapseState(e,n)))}isCollapsed(e){return this.getTreeNode(e).collapsed}setCollapsed(e,t,i){const n=this.getTreeNode(e);void 0===t&&(t=!n.collapsed);const o={collapsed:t,recursive:i||!1};return this.eventBufferer.bufferEvents((()=>this._setCollapseState(e,o)))}_setCollapseState(e,t){const{node:i,listIndex:n,revealed:o}=this.getTreeNodeWithListIndex(e),s=this._setListNodeCollapseState(i,n,o,t);if(i!==this.root&&this.autoExpandSingleChildren&&s&&!u(t)&&i.collapsible&&!i.collapsed&&!t.recursive){let n=-1;for(let e=0;e-1){n=-1;break}n=e}n>-1&&this._setCollapseState([...e,n],t)}return s}_setListNodeCollapseState(e,t,i,n){const o=this._setNodeCollapseState(e,n,!1);if(!i||!e.visible||!o)return o;const s=e.renderNodeCount,r=this.updateNodeAfterCollapseChange(e),a=s-(-1===t?0:1);return this.list.splice(t+1,a,r.slice(1)),o}_setNodeCollapseState(e,t,i){let n;if(e===this.root?n=!1:(u(t)?(n=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(n=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):n=!1,n&&this._onDidChangeCollapseState.fire({node:e,deep:i})),!u(t)&&t.recursive)for(const i of e.children)n=this._setNodeCollapseState(i,t,!0)||n;return n}expandTo(e){this.eventBufferer.bufferEvents((()=>{let t=this.getTreeNode(e);for(;t.parent;)t=t.parent,e=e.slice(0,e.length-1),t.collapsed&&this._setCollapseState(e,{collapsed:!1,recursive:!1})}))}refilter(){const e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t),this.refilterDelayer.cancel()}createTreeNode(e,t,i,n,o,s){const r={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"==typeof e.collapsible?e.collapsible:void 0!==e.collapsed,collapsed:void 0===e.collapsed?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},a=this._filterNode(r,i);r.visibility=a,n&&o.push(r);const l=e.children||d.f.empty(),c=n&&0!==a&&!r.collapsed;let h=0,u=1;for(const e of l){const t=this.createTreeNode(e,r,a,c,o,s);r.children.push(t),u+=t.renderNodeCount,t.visible&&(t.visibleChildIndex=h++)}return this.allowNonCollapsibleParents||(r.collapsible=r.collapsible||r.children.length>0),r.visibleChildrenCount=h,r.visible=2===a?h>0:1===a,r.visible?r.collapsed||(r.renderNodeCount=u):(r.renderNodeCount=0,n&&o.pop()),null==s||s(r),r}updateNodeAfterCollapseChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterCollapseChange(e,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterCollapseChange(e,t){if(!1===e.visible)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(const i of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(i,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}updateNodeAfterFilterChange(e){const t=e.renderNodeCount,i=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterFilterChange(e,t,i,n=!0){let o;if(e!==this.root){if(o=this._filterNode(e,t),0===o)return e.visible=!1,e.renderNodeCount=0,!1;n&&i.push(e)}const s=i.length;e.renderNodeCount=e===this.root?0:1;let r=!1;if(e.collapsed&&0===o)e.visibleChildrenCount=0;else{let t=0;for(const s of e.children)r=this._updateNodeAfterFilterChange(s,o,i,n&&!e.collapsed)||r,s.visible&&(s.visibleChildIndex=t++);e.visibleChildrenCount=t}return e!==this.root&&(e.visible=2===o?r:1===o,e.visibility=o),e.visible?e.collapsed||(e.renderNodeCount+=i.length-s):(e.renderNodeCount=0,n&&i.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible}_updateAncestorsRenderNodeCount(e,t){if(0!==t)for(;e;)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent}_filterNode(e,t){const i=this.filter?this.filter.filter(e.element,t):1;return"boolean"==typeof i?(e.filterData=void 0,i?1:0):c(i)?(e.filterData=i.data,h(i.visibility)):(e.filterData=void 0,h(i))}hasTreeNode(e,t=this.root){if(!e||0===e.length)return!0;const[i,...n]=e;return!(i<0||i>t.children.length)&&this.hasTreeNode(n,t.children[i])}getTreeNode(e,t=this.root){if(!e||0===e.length)return t;const[i,...o]=e;if(i<0||i>t.children.length)throw new n.jh(this.user,"Invalid tree location");return this.getTreeNode(o,t.children[i])}getTreeNodeWithListIndex(e){if(0===e.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:t,listIndex:i,revealed:o,visible:s}=this.getParentNodeWithListIndex(e),r=e[e.length-1];if(r<0||r>t.children.length)throw new n.jh(this.user,"Invalid tree location");const a=t.children[r];return{node:a,listIndex:i,revealed:o,visible:s&&a.visible}}getParentNodeWithListIndex(e,t=this.root,i=0,o=!0,s=!0){const[r,...a]=e;if(r<0||r>t.children.length)throw new n.jh(this.user,"Invalid tree location");for(let e=0;e{"use strict";var n,o;i.d(t,{Lx:()=>o,Yo:()=>n,jh:()=>s,y2:()=>r}),function(e){e[e.Expanded=0]="Expanded",e[e.Collapsed=1]="Collapsed",e[e.PreserveOrExpanded=2]="PreserveOrExpanded",e[e.PreserveOrCollapsed=3]="PreserveOrCollapsed"}(n||(n={})),function(e){e[e.Unknown=0]="Unknown",e[e.Twistie=1]="Twistie",e[e.Element=2]="Element",e[e.Filter=3]="Filter"}(o||(o={}));class s extends Error{constructor(e,t){super(`TreeError [${e}] ${t}`)}}class r{constructor(e){this.fn=e,this._map=new WeakMap}map(e){let t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t}}},45222:(e,t,i)=>{"use strict";i.d(t,{x:()=>l});var n=i(14333),o=i(87594),s=i(9715),r=i(30474),a=i(10998);class l extends a.jG{onclick(e,t){this._register(n.ko(e,n.Bx.CLICK,(i=>t(new s.P(n.zk(e),i)))))}onmousedown(e,t){this._register(n.ko(e,n.Bx.MOUSE_DOWN,(i=>t(new s.P(n.zk(e),i)))))}onmouseover(e,t){this._register(n.ko(e,n.Bx.MOUSE_OVER,(i=>t(new s.P(n.zk(e),i)))))}onmouseleave(e,t){this._register(n.ko(e,n.Bx.MOUSE_LEAVE,(i=>t(new s.P(n.zk(e),i)))))}onkeydown(e,t){this._register(n.ko(e,n.Bx.KEY_DOWN,(e=>t(new o.Z(e)))))}onkeyup(e,t){this._register(n.ko(e,n.Bx.KEY_UP,(e=>t(new o.Z(e)))))}oninput(e,t){this._register(n.ko(e,n.Bx.INPUT,t))}onblur(e,t){this._register(n.ko(e,n.Bx.BLUR,t))}onfocus(e,t){this._register(n.ko(e,n.Bx.FOCUS,t))}ignoreGesture(e){return r.q.ignoreTarget(e)}}},48877:(e,t,i)=>{"use strict";function n(e,t){const i=e;"number"!=typeof i.vscodeWindowId&&Object.defineProperty(i,"vscodeWindowId",{get:()=>t})}i.d(t,{G:()=>o,y:()=>n});const o=window},27969:(e,t,i)=>{"use strict";i.d(t,{HJ:()=>c,LN:()=>a,YH:()=>d,ih:()=>h,rc:()=>r,wv:()=>l});var n=i(2106),o=i(10998),s=i(3765);class r extends o.jG{constructor(e,t="",i="",o=!0,s){super(),this._onDidChange=this._register(new n.vl),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=e,this._label=t,this._cssClass=i,this._enabled=o,this._actionCallback=s}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}async run(e,t){this._actionCallback&&await this._actionCallback(e)}}class a extends o.jG{constructor(){super(...arguments),this._onWillRun=this._register(new n.vl),this.onWillRun=this._onWillRun.event,this._onDidRun=this._register(new n.vl),this.onDidRun=this._onDidRun.event}async run(e,t){if(!e.enabled)return;let i;this._onWillRun.fire({action:e});try{await this.runAction(e,t)}catch(e){i=e}this._onDidRun.fire({action:e,error:i})}async runAction(e,t){await e.run(t)}}class l{constructor(){this.id=l.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...e){let t=[];for(const i of e)i.length&&(t=t.length?[...t,new l,...i]:i);return t}async run(){}}l.ID="vs.actions.separator";class d{get actions(){return this._actions}constructor(e,t,i,n){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=e,this.label=t,this.class=n,this._actions=i}async run(){}}class c extends r{constructor(){super(c.ID,s.k("submenu.empty","(empty)"),void 0,!1)}}function h(e){var t,i;return{id:e.id,label:e.label,tooltip:null!==(t=e.tooltip)&&void 0!==t?t:e.label,class:e.class,enabled:null===(i=e.enabled)||void 0===i||i,checked:e.checked,run:async(...t)=>e.run(...t)}}c.ID="vs.actions.empty"},13338:(e,t,i)=>{"use strict";function n(e,t=0){return e[e.length-(1+t)]}function o(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function s(e,t,i=((e,t)=>e===t)){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let n=0,o=e.length;n0))return n;r=n-1}}return-(s+1)}(e.length)}function l(e,t,i){if((e|=0)>=t.length)throw new TypeError("invalid index");const n=t[Math.floor(t.length*Math.random())],o=[],s=[],r=[];for(const e of t){const t=i(e,n);t<0?o.push(e):t>0?s.push(e):r.push(e)}return e!!e))}function p(e){let t=0;for(let i=0;i0}function v(e,t=(e=>e)){const i=new Set;return e.filter((e=>{const n=t(e);return!i.has(n)&&(i.add(n),!0)}))}function _(e,t){return e.length>0?e[0]:t}function b(e,t){let i="number"==typeof t?e:0;"number"==typeof t?i=e:(i=0,t=e);const n=[];if(i<=t)for(let e=i;et;e--)n.push(e);return n}function w(e,t,i){const n=e.slice(0,t),o=e.slice(t);return n.concat(i,o)}function y(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function C(e,t){const i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function k(e,t){for(const i of t)e.push(i)}function S(e){return Array.isArray(e)?e:[e]}function x(e,t,i,n){const o=L(e,t);let s=e.splice(o,i);return void 0===s&&(s=[]),function(e,t,i){const n=L(e,t),o=e.length,s=i.length;e.length=o+s;for(let t=o-1;t>=n;t--)e[t+s]=e[t];for(let t=0;tt(e(i),e(n))}function I(...e){return(t,i)=>{for(const n of e){const e=n(t,i);if(!D.isNeitherLessOrGreaterThan(e))return e}return D.neitherLessOrGreaterThan}}i.d(t,{$z:()=>d,Ct:()=>m,E4:()=>k,EI:()=>f,El:()=>a,Fy:()=>_,Hw:()=>A,RT:()=>n,SK:()=>p,SO:()=>l,TS:()=>M,U9:()=>N,UH:()=>r,V4:()=>x,VE:()=>E,Yc:()=>g,_A:()=>y,_j:()=>S,aI:()=>s,bS:()=>o,c1:()=>R,dM:()=>v,j3:()=>T,kj:()=>u,n:()=>c,nH:()=>I,nK:()=>w,pN:()=>h,r7:()=>C,t9:()=>P,y1:()=>b}),function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(D||(D={}));const N=(e,t)=>e-t,M=(e,t)=>N(e?1:0,t?1:0);function A(e){return(t,i)=>-e(t,i)}class T{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class R{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new R((t=>this.iterate((i=>!e(i)||t(i)))))}map(e){return new R((t=>this.iterate((i=>t(e(i))))))}findLast(e){let t;return this.iterate((i=>(e(i)&&(t=i),!0))),t}findLastMaxBy(e){let t,i=!0;return this.iterate((n=>((i||D.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0))),t}}R.empty=new R((e=>{}));class P{constructor(e){this._indexMap=e}static createSortPermutation(e,t){const i=Array.from(e.keys()).sort(((i,n)=>t(e[i],e[n])));return new P(i)}apply(e){return e.map(((t,i)=>e[this._indexMap[i]]))}inverse(){const e=this._indexMap.slice();for(let t=0;t{"use strict";function n(e,t){const i=function(e,t,i=e.length-1){for(let n=i;n>=0;n--)if(t(e[n]))return n;return-1}(e,t);if(-1!==i)return e[i]}function o(e,t){const i=s(e,t);return-1===i?void 0:e[i]}function s(e,t,i=0,n=e.length){let o=i,s=n;for(;od,TM:()=>u,Uk:()=>n,XP:()=>r,hw:()=>a,iM:()=>s,kh:()=>h,lx:()=>o,oH:()=>g,ot:()=>c,vJ:()=>l});class l{constructor(e){this._array=e,this._findLastMonotonousLastIdx=0}findLastMonotonous(e){if(l.assertInvariants){if(this._prevFindLastPredicate)for(const t of this._array)if(this._prevFindLastPredicate(t)&&!e(t))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.");this._prevFindLastPredicate=e}const t=s(this._array,e,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=t+1,-1===t?void 0:this._array[t]}}function d(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n0&&(i=o)}return i}function c(e,t){if(0===e.length)return;let i=e[0];for(let n=1;n=0&&(i=o)}return i}function h(e,t){return d(e,((e,i)=>-t(e,i)))}function u(e,t){if(0===e.length)return-1;let i=0;for(let n=1;n0&&(i=n);return i}function g(e,t){for(const i of e){const e=t(i);if(void 0!==e)return e}}l.assertInvariants=!1},87110:(e,t,i)=>{"use strict";i.d(t,{Ft:()=>a,V7:()=>r,Xo:()=>l,ok:()=>o,xb:()=>s});var n=i(94327);function o(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function s(e,t="Unreachable"){throw new Error(t)}function r(e){e||(0,n.dz)(new n.D7("Soft Assertion Failed"))}function a(e){e()||(e(),(0,n.dz)(new n.D7("Assertion Failed")))}function l(e,t){let i=0;for(;i{"use strict";i.d(t,{$1:()=>v,$6:()=>y,A0:()=>k,AE:()=>D,EQ:()=>f,F6:()=>S,HC:()=>L,PK:()=>h,Qg:()=>d,SS:()=>c,Th:()=>p,Zv:()=>x,b7:()=>C,bI:()=>I,pc:()=>_,uC:()=>w,vb:()=>b,ve:()=>g,wR:()=>m});var n=i(78903),o=i(94327),s=i(2106),r=i(10998),a=i(63339),l=i(51055);function d(e){return!!e&&"function"==typeof e.then}function c(e){const t=new n.Qi,i=e(t.token),s=new Promise(((e,n)=>{const s=t.token.onCancellationRequested((()=>{s.dispose(),n(new o.AL)}));Promise.resolve(i).then((i=>{s.dispose(),t.dispose(),e(i)}),(e=>{s.dispose(),t.dispose(),n(e)}))}));return new class{cancel(){t.cancel(),t.dispose()}then(e,t){return s.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return s.finally(e)}}}function h(e,t,i){return new Promise(((n,o)=>{const s=t.onCancellationRequested((()=>{s.dispose(),n(i)}));e.then(n,o).finally((()=>s.dispose()))}))}class u{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.isDisposed)return Promise.reject(new Error("Throttler is disposed"));if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const e=()=>{if(this.queuedPromise=null,this.isDisposed)return;const e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise((t=>{this.activePromise.then(e,e).then(t)}))}return new Promise(((e,t)=>{this.queuedPromise.then(e,t)}))}return this.activePromise=e(),new Promise(((e,t)=>{this.activePromise.then((t=>{this.activePromise=null,e(t)}),(e=>{this.activePromise=null,t(e)}))}))}dispose(){this.isDisposed=!0}}class g{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(((e,t)=>{this.doResolve=e,this.doReject=t})).then((()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const e=this.task;return this.task=null,e()}})));const i=()=>{var e;this.deferred=null,null===(e=this.doResolve)||void 0===e||e.call(this,null)};return this.deferred=t===l.h?(e=>{let t=!0;return queueMicrotask((()=>{t&&(t=!1,e())})),{isTriggered:()=>t,dispose:()=>{t=!1}}})(i):((e,t)=>{let i=!0;const n=setTimeout((()=>{i=!1,t()}),e);return{isTriggered:()=>i,dispose:()=>{clearTimeout(n),i=!1}}})(t,i),this.completionPromise}isTriggered(){var e;return!!(null===(e=this.deferred)||void 0===e?void 0:e.isTriggered())}cancel(){var e;this.cancelTimeout(),this.completionPromise&&(null===(e=this.doReject)||void 0===e||e.call(this,new o.AL),this.completionPromise=null)}cancelTimeout(){var e;null===(e=this.deferred)||void 0===e||e.dispose(),this.deferred=null}dispose(){this.cancel()}}class p{constructor(e){this.delayer=new g(e),this.throttler=new u}trigger(e,t){return this.delayer.trigger((()=>this.throttler.queue(e)),t)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}}function m(e,t){return t?new Promise(((i,n)=>{const s=setTimeout((()=>{r.dispose(),i()}),e),r=t.onCancellationRequested((()=>{clearTimeout(s),r.dispose(),n(new o.AL)}))})):c((t=>m(e,t)))}function f(e,t=0,i){const n=setTimeout((()=>{e(),i&&o.dispose()}),t),o=(0,r.s)((()=>{clearTimeout(n),null==i||i.deleteAndLeak(o)}));return null==i||i.add(o),o}function v(e,t=(e=>!!e),i=null){let n=0;const o=e.length,s=()=>{if(n>=o)return Promise.resolve(i);const r=e[n++];return Promise.resolve(r()).then((e=>t(e)?Promise.resolve(e):s()))};return s()}class _{constructor(e,t){this._isDisposed=!1,this._token=-1,"function"==typeof e&&"number"==typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel(),this._isDisposed=!0}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){if(this._isDisposed)throw new o.D7("Calling 'cancelAndSet' on a disposed TimeoutTimer");this.cancel(),this._token=setTimeout((()=>{this._token=-1,e()}),t)}setIfNotSet(e,t){if(this._isDisposed)throw new o.D7("Calling 'setIfNotSet' on a disposed TimeoutTimer");-1===this._token&&(this._token=setTimeout((()=>{this._token=-1,e()}),t))}}class b{constructor(){this.disposable=void 0,this.isDisposed=!1}cancel(){var e;null===(e=this.disposable)||void 0===e||e.dispose(),this.disposable=void 0}cancelAndSet(e,t,i=globalThis){if(this.isDisposed)throw new o.D7("Calling 'cancelAndSet' on a disposed IntervalTimer");this.cancel();const n=i.setInterval((()=>{e()}),t);this.disposable=(0,r.s)((()=>{i.clearInterval(n),this.disposable=void 0}))}dispose(){this.cancel(),this.isDisposed=!0}}class w{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){var e;null===(e=this.runner)||void 0===e||e.call(this)}}let y,C;C="function"!=typeof globalThis.requestIdleCallback||"function"!=typeof globalThis.cancelIdleCallback?(e,t)=>{(0,a._p)((()=>{if(i)return;const e=Date.now()+15,n={didTimeout:!0,timeRemaining:()=>Math.max(0,e-Date.now())};t(Object.freeze(n))}));let i=!1;return{dispose(){i||(i=!0)}}}:(e,t,i)=>{const n=e.requestIdleCallback(t,"number"==typeof i?{timeout:i}:void 0);let o=!1;return{dispose(){o||(o=!0,e.cancelIdleCallback(n))}}},y=e=>C(globalThis,e);class k{constructor(e,t){this._didRun=!1,this._executor=()=>{try{this._value=t()}catch(e){this._error=e}finally{this._didRun=!0}},this._handle=C(e,(()=>this._executor()))}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class S extends k{constructor(e){super(globalThis,e)}}class x{get isRejected(){var e;return 1===(null===(e=this.outcome)||void 0===e?void 0:e.outcome)}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise(((e,t)=>{this.completeCallback=e,this.errorCallback=t}))}complete(e){return new Promise((t=>{this.completeCallback(e),this.outcome={outcome:0,value:e},t()}))}error(e){return new Promise((t=>{this.errorCallback(e),this.outcome={outcome:1,value:e},t()}))}cancel(){return this.error(new o.AL)}}var L;!function(e){e.settled=async function(e){let t;const i=await Promise.all(e.map((e=>e.then((e=>e),(e=>{t||(t=e)})))));if(void 0!==t)throw t;return i},e.withAsyncBody=function(e){return new Promise((async(t,i)=>{try{await e(t,i)}catch(e){i(e)}}))}}(L||(L={}));class D{static fromArray(e){return new D((t=>{t.emitMany(e)}))}static fromPromise(e){return new D((async t=>{t.emitMany(await e)}))}static fromPromises(e){return new D((async t=>{await Promise.all(e.map((async e=>t.emitOne(await e))))}))}static merge(e){return new D((async t=>{await Promise.all(e.map((async e=>{for await(const i of e)t.emitOne(i)})))}))}constructor(e,t){this._state=0,this._results=[],this._error=null,this._onReturn=t,this._onStateChanged=new s.vl,queueMicrotask((async()=>{const t={emitOne:e=>this.emitOne(e),emitMany:e=>this.emitMany(e),reject:e=>this.reject(e)};try{await Promise.resolve(e(t)),this.resolve()}catch(e){this.reject(e)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:async()=>{for(;;){if(2===this._state)throw this._error;if(e{var e;return null===(e=this._onReturn)||void 0===e||e.call(this),{done:!0,value:void 0}}}}static map(e,t){return new D((async i=>{for await(const n of e)i.emitOne(t(n))}))}map(e){return D.map(this,e)}static filter(e,t){return new D((async i=>{for await(const n of e)t(n)&&i.emitOne(n)}))}filter(e){return D.filter(this,e)}static coalesce(e){return D.filter(e,(e=>!!e))}coalesce(){return D.coalesce(this)}static async toPromise(e){const t=[];for await(const i of e)t.push(i);return t}toPromise(){return D.toPromise(this)}emitOne(e){0===this._state&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){0===this._state&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){0===this._state&&(this._state=1,this._onStateChanged.fire())}reject(e){0===this._state&&(this._state=2,this._error=e,this._onStateChanged.fire())}}D.EMPTY=D.fromArray([]);class E extends D{constructor(e,t){super(t),this._source=e}cancel(){this._source.cancel()}}function I(e){const t=new n.Qi,i=e(t.token);return new E(t,(async e=>{const n=t.token.onCancellationRequested((()=>{n.dispose(),t.dispose(),e.reject(new o.AL)}));try{for await(const n of i){if(t.token.isCancellationRequested)return;e.emitOne(n)}n.dispose(),t.dispose()}catch(i){n.dispose(),t.dispose(),e.reject(i)}}))}},42802:(e,t,i)=>{"use strict";i.d(t,{$l:()=>a,Gs:()=>u,MB:()=>r,Sw:()=>c,bb:()=>d,gN:()=>l,pJ:()=>h});var n=i(63946);const o="undefined"!=typeof Buffer;let s;new n.d((()=>new Uint8Array(256)));class r{static wrap(e){return o&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new r(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return o?this.buffer.toString():(s||(s=new TextDecoder),s.decode(this.buffer))}}function a(e,t){return(0|e[t+0])>>>0|e[t+1]<<8>>>0}function l(e,t,i){e[i+0]=255&t,t>>>=8,e[i+1]=255&t}function d(e,t){return e[t]*2**24+65536*e[t+1]+256*e[t+2]+e[t+3]}function c(e,t,i){e[i+3]=t,t>>>=8,e[i+2]=t,t>>>=8,e[i+1]=t,t>>>=8,e[i]=t}function h(e,t){return e[t]}function u(e,t,i){e[i]=t}},36260:(e,t,i)=>{"use strict";function n(e){return e}i.d(t,{VV:()=>s,o5:()=>o});class o{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,"function"==typeof e?(this._fn=e,this._computeKey=n):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}class s{get cachedValues(){return this._map}constructor(e,t){this._map=new Map,this._map2=new Map,"function"==typeof e?(this._fn=e,this._computeKey=n):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);if(this._map2.has(t))return this._map2.get(t);const i=this._fn(e);return this._map.set(e,i),this._map2.set(t,i),i}}},78903:(e,t,i)=>{"use strict";i.d(t,{Qi:()=>a,XO:()=>s,bs:()=>l});var n=i(2106);const o=Object.freeze((function(e,t){const i=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(i)}}}));var s;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||t instanceof r||!(!t||"object"!=typeof t)&&"boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.Jh.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:o})}(s||(s={}));class r{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?o:(this._emitter||(this._emitter=new n.vl),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new r),this._token}cancel(){this._token?this._token instanceof r&&this._token.cancel():this._token=s.Cancelled}dispose(e=!1){var t;e&&this.cancel(),null===(t=this._parentListener)||void 0===t||t.dispose(),this._token?this._token instanceof r&&this._token.dispose():this._token=s.None}}function l(e){const t=new a;return e.add({dispose(){t.cancel()}}),t.token}},26048:(e,t,i)=>{"use strict";i.d(t,{W:()=>r});var n=i(19892),o=i(3177);const s={dialogError:(0,n.k)("dialog-error","error"),dialogWarning:(0,n.k)("dialog-warning","warning"),dialogInfo:(0,n.k)("dialog-info","info"),dialogClose:(0,n.k)("dialog-close","close"),treeItemExpanded:(0,n.k)("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:(0,n.k)("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:(0,n.k)("tree-filter-on-type-off","list-selection"),treeFilterClear:(0,n.k)("tree-filter-clear","close"),treeItemLoading:(0,n.k)("tree-item-loading","loading"),menuSelection:(0,n.k)("menu-selection","check"),menuSubmenu:(0,n.k)("menu-submenu","chevron-right"),menuBarMore:(0,n.k)("menubar-more","more"),scrollbarButtonLeft:(0,n.k)("scrollbar-button-left","triangle-left"),scrollbarButtonRight:(0,n.k)("scrollbar-button-right","triangle-right"),scrollbarButtonUp:(0,n.k)("scrollbar-button-up","triangle-up"),scrollbarButtonDown:(0,n.k)("scrollbar-button-down","triangle-down"),toolBarMore:(0,n.k)("toolbar-more","more"),quickInputBack:(0,n.k)("quick-input-back","arrow-left"),dropDownButton:(0,n.k)("drop-down-button",60084),symbolCustomColor:(0,n.k)("symbol-customcolor",60252),exportIcon:(0,n.k)("export",60332),workspaceUnspecified:(0,n.k)("workspace-unspecified",60355),newLine:(0,n.k)("newline",60394),thumbsDownFilled:(0,n.k)("thumbsdown-filled",60435),thumbsUpFilled:(0,n.k)("thumbsup-filled",60436),gitFetch:(0,n.k)("git-fetch",60445),lightbulbSparkleAutofix:(0,n.k)("lightbulb-sparkle-autofix",60447),debugBreakpointPending:(0,n.k)("debug-breakpoint-pending",60377)},r={...o.I,...s}},3177:(e,t,i)=>{"use strict";i.d(t,{I:()=>o});var n=i(19892);const o={add:(0,n.k)("add",6e4),plus:(0,n.k)("plus",6e4),gistNew:(0,n.k)("gist-new",6e4),repoCreate:(0,n.k)("repo-create",6e4),lightbulb:(0,n.k)("lightbulb",60001),lightBulb:(0,n.k)("light-bulb",60001),repo:(0,n.k)("repo",60002),repoDelete:(0,n.k)("repo-delete",60002),gistFork:(0,n.k)("gist-fork",60003),repoForked:(0,n.k)("repo-forked",60003),gitPullRequest:(0,n.k)("git-pull-request",60004),gitPullRequestAbandoned:(0,n.k)("git-pull-request-abandoned",60004),recordKeys:(0,n.k)("record-keys",60005),keyboard:(0,n.k)("keyboard",60005),tag:(0,n.k)("tag",60006),gitPullRequestLabel:(0,n.k)("git-pull-request-label",60006),tagAdd:(0,n.k)("tag-add",60006),tagRemove:(0,n.k)("tag-remove",60006),person:(0,n.k)("person",60007),personFollow:(0,n.k)("person-follow",60007),personOutline:(0,n.k)("person-outline",60007),personFilled:(0,n.k)("person-filled",60007),gitBranch:(0,n.k)("git-branch",60008),gitBranchCreate:(0,n.k)("git-branch-create",60008),gitBranchDelete:(0,n.k)("git-branch-delete",60008),sourceControl:(0,n.k)("source-control",60008),mirror:(0,n.k)("mirror",60009),mirrorPublic:(0,n.k)("mirror-public",60009),star:(0,n.k)("star",60010),starAdd:(0,n.k)("star-add",60010),starDelete:(0,n.k)("star-delete",60010),starEmpty:(0,n.k)("star-empty",60010),comment:(0,n.k)("comment",60011),commentAdd:(0,n.k)("comment-add",60011),alert:(0,n.k)("alert",60012),warning:(0,n.k)("warning",60012),search:(0,n.k)("search",60013),searchSave:(0,n.k)("search-save",60013),logOut:(0,n.k)("log-out",60014),signOut:(0,n.k)("sign-out",60014),logIn:(0,n.k)("log-in",60015),signIn:(0,n.k)("sign-in",60015),eye:(0,n.k)("eye",60016),eyeUnwatch:(0,n.k)("eye-unwatch",60016),eyeWatch:(0,n.k)("eye-watch",60016),circleFilled:(0,n.k)("circle-filled",60017),primitiveDot:(0,n.k)("primitive-dot",60017),closeDirty:(0,n.k)("close-dirty",60017),debugBreakpoint:(0,n.k)("debug-breakpoint",60017),debugBreakpointDisabled:(0,n.k)("debug-breakpoint-disabled",60017),debugHint:(0,n.k)("debug-hint",60017),terminalDecorationSuccess:(0,n.k)("terminal-decoration-success",60017),primitiveSquare:(0,n.k)("primitive-square",60018),edit:(0,n.k)("edit",60019),pencil:(0,n.k)("pencil",60019),info:(0,n.k)("info",60020),issueOpened:(0,n.k)("issue-opened",60020),gistPrivate:(0,n.k)("gist-private",60021),gitForkPrivate:(0,n.k)("git-fork-private",60021),lock:(0,n.k)("lock",60021),mirrorPrivate:(0,n.k)("mirror-private",60021),close:(0,n.k)("close",60022),removeClose:(0,n.k)("remove-close",60022),x:(0,n.k)("x",60022),repoSync:(0,n.k)("repo-sync",60023),sync:(0,n.k)("sync",60023),clone:(0,n.k)("clone",60024),desktopDownload:(0,n.k)("desktop-download",60024),beaker:(0,n.k)("beaker",60025),microscope:(0,n.k)("microscope",60025),vm:(0,n.k)("vm",60026),deviceDesktop:(0,n.k)("device-desktop",60026),file:(0,n.k)("file",60027),fileText:(0,n.k)("file-text",60027),more:(0,n.k)("more",60028),ellipsis:(0,n.k)("ellipsis",60028),kebabHorizontal:(0,n.k)("kebab-horizontal",60028),mailReply:(0,n.k)("mail-reply",60029),reply:(0,n.k)("reply",60029),organization:(0,n.k)("organization",60030),organizationFilled:(0,n.k)("organization-filled",60030),organizationOutline:(0,n.k)("organization-outline",60030),newFile:(0,n.k)("new-file",60031),fileAdd:(0,n.k)("file-add",60031),newFolder:(0,n.k)("new-folder",60032),fileDirectoryCreate:(0,n.k)("file-directory-create",60032),trash:(0,n.k)("trash",60033),trashcan:(0,n.k)("trashcan",60033),history:(0,n.k)("history",60034),clock:(0,n.k)("clock",60034),folder:(0,n.k)("folder",60035),fileDirectory:(0,n.k)("file-directory",60035),symbolFolder:(0,n.k)("symbol-folder",60035),logoGithub:(0,n.k)("logo-github",60036),markGithub:(0,n.k)("mark-github",60036),github:(0,n.k)("github",60036),terminal:(0,n.k)("terminal",60037),console:(0,n.k)("console",60037),repl:(0,n.k)("repl",60037),zap:(0,n.k)("zap",60038),symbolEvent:(0,n.k)("symbol-event",60038),error:(0,n.k)("error",60039),stop:(0,n.k)("stop",60039),variable:(0,n.k)("variable",60040),symbolVariable:(0,n.k)("symbol-variable",60040),array:(0,n.k)("array",60042),symbolArray:(0,n.k)("symbol-array",60042),symbolModule:(0,n.k)("symbol-module",60043),symbolPackage:(0,n.k)("symbol-package",60043),symbolNamespace:(0,n.k)("symbol-namespace",60043),symbolObject:(0,n.k)("symbol-object",60043),symbolMethod:(0,n.k)("symbol-method",60044),symbolFunction:(0,n.k)("symbol-function",60044),symbolConstructor:(0,n.k)("symbol-constructor",60044),symbolBoolean:(0,n.k)("symbol-boolean",60047),symbolNull:(0,n.k)("symbol-null",60047),symbolNumeric:(0,n.k)("symbol-numeric",60048),symbolNumber:(0,n.k)("symbol-number",60048),symbolStructure:(0,n.k)("symbol-structure",60049),symbolStruct:(0,n.k)("symbol-struct",60049),symbolParameter:(0,n.k)("symbol-parameter",60050),symbolTypeParameter:(0,n.k)("symbol-type-parameter",60050),symbolKey:(0,n.k)("symbol-key",60051),symbolText:(0,n.k)("symbol-text",60051),symbolReference:(0,n.k)("symbol-reference",60052),goToFile:(0,n.k)("go-to-file",60052),symbolEnum:(0,n.k)("symbol-enum",60053),symbolValue:(0,n.k)("symbol-value",60053),symbolRuler:(0,n.k)("symbol-ruler",60054),symbolUnit:(0,n.k)("symbol-unit",60054),activateBreakpoints:(0,n.k)("activate-breakpoints",60055),archive:(0,n.k)("archive",60056),arrowBoth:(0,n.k)("arrow-both",60057),arrowDown:(0,n.k)("arrow-down",60058),arrowLeft:(0,n.k)("arrow-left",60059),arrowRight:(0,n.k)("arrow-right",60060),arrowSmallDown:(0,n.k)("arrow-small-down",60061),arrowSmallLeft:(0,n.k)("arrow-small-left",60062),arrowSmallRight:(0,n.k)("arrow-small-right",60063),arrowSmallUp:(0,n.k)("arrow-small-up",60064),arrowUp:(0,n.k)("arrow-up",60065),bell:(0,n.k)("bell",60066),bold:(0,n.k)("bold",60067),book:(0,n.k)("book",60068),bookmark:(0,n.k)("bookmark",60069),debugBreakpointConditionalUnverified:(0,n.k)("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:(0,n.k)("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:(0,n.k)("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:(0,n.k)("debug-breakpoint-data-unverified",60072),debugBreakpointData:(0,n.k)("debug-breakpoint-data",60073),debugBreakpointDataDisabled:(0,n.k)("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:(0,n.k)("debug-breakpoint-log-unverified",60074),debugBreakpointLog:(0,n.k)("debug-breakpoint-log",60075),debugBreakpointLogDisabled:(0,n.k)("debug-breakpoint-log-disabled",60075),briefcase:(0,n.k)("briefcase",60076),broadcast:(0,n.k)("broadcast",60077),browser:(0,n.k)("browser",60078),bug:(0,n.k)("bug",60079),calendar:(0,n.k)("calendar",60080),caseSensitive:(0,n.k)("case-sensitive",60081),check:(0,n.k)("check",60082),checklist:(0,n.k)("checklist",60083),chevronDown:(0,n.k)("chevron-down",60084),chevronLeft:(0,n.k)("chevron-left",60085),chevronRight:(0,n.k)("chevron-right",60086),chevronUp:(0,n.k)("chevron-up",60087),chromeClose:(0,n.k)("chrome-close",60088),chromeMaximize:(0,n.k)("chrome-maximize",60089),chromeMinimize:(0,n.k)("chrome-minimize",60090),chromeRestore:(0,n.k)("chrome-restore",60091),circleOutline:(0,n.k)("circle-outline",60092),circle:(0,n.k)("circle",60092),debugBreakpointUnverified:(0,n.k)("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:(0,n.k)("terminal-decoration-incomplete",60092),circleSlash:(0,n.k)("circle-slash",60093),circuitBoard:(0,n.k)("circuit-board",60094),clearAll:(0,n.k)("clear-all",60095),clippy:(0,n.k)("clippy",60096),closeAll:(0,n.k)("close-all",60097),cloudDownload:(0,n.k)("cloud-download",60098),cloudUpload:(0,n.k)("cloud-upload",60099),code:(0,n.k)("code",60100),collapseAll:(0,n.k)("collapse-all",60101),colorMode:(0,n.k)("color-mode",60102),commentDiscussion:(0,n.k)("comment-discussion",60103),creditCard:(0,n.k)("credit-card",60105),dash:(0,n.k)("dash",60108),dashboard:(0,n.k)("dashboard",60109),database:(0,n.k)("database",60110),debugContinue:(0,n.k)("debug-continue",60111),debugDisconnect:(0,n.k)("debug-disconnect",60112),debugPause:(0,n.k)("debug-pause",60113),debugRestart:(0,n.k)("debug-restart",60114),debugStart:(0,n.k)("debug-start",60115),debugStepInto:(0,n.k)("debug-step-into",60116),debugStepOut:(0,n.k)("debug-step-out",60117),debugStepOver:(0,n.k)("debug-step-over",60118),debugStop:(0,n.k)("debug-stop",60119),debug:(0,n.k)("debug",60120),deviceCameraVideo:(0,n.k)("device-camera-video",60121),deviceCamera:(0,n.k)("device-camera",60122),deviceMobile:(0,n.k)("device-mobile",60123),diffAdded:(0,n.k)("diff-added",60124),diffIgnored:(0,n.k)("diff-ignored",60125),diffModified:(0,n.k)("diff-modified",60126),diffRemoved:(0,n.k)("diff-removed",60127),diffRenamed:(0,n.k)("diff-renamed",60128),diff:(0,n.k)("diff",60129),diffSidebyside:(0,n.k)("diff-sidebyside",60129),discard:(0,n.k)("discard",60130),editorLayout:(0,n.k)("editor-layout",60131),emptyWindow:(0,n.k)("empty-window",60132),exclude:(0,n.k)("exclude",60133),extensions:(0,n.k)("extensions",60134),eyeClosed:(0,n.k)("eye-closed",60135),fileBinary:(0,n.k)("file-binary",60136),fileCode:(0,n.k)("file-code",60137),fileMedia:(0,n.k)("file-media",60138),filePdf:(0,n.k)("file-pdf",60139),fileSubmodule:(0,n.k)("file-submodule",60140),fileSymlinkDirectory:(0,n.k)("file-symlink-directory",60141),fileSymlinkFile:(0,n.k)("file-symlink-file",60142),fileZip:(0,n.k)("file-zip",60143),files:(0,n.k)("files",60144),filter:(0,n.k)("filter",60145),flame:(0,n.k)("flame",60146),foldDown:(0,n.k)("fold-down",60147),foldUp:(0,n.k)("fold-up",60148),fold:(0,n.k)("fold",60149),folderActive:(0,n.k)("folder-active",60150),folderOpened:(0,n.k)("folder-opened",60151),gear:(0,n.k)("gear",60152),gift:(0,n.k)("gift",60153),gistSecret:(0,n.k)("gist-secret",60154),gist:(0,n.k)("gist",60155),gitCommit:(0,n.k)("git-commit",60156),gitCompare:(0,n.k)("git-compare",60157),compareChanges:(0,n.k)("compare-changes",60157),gitMerge:(0,n.k)("git-merge",60158),githubAction:(0,n.k)("github-action",60159),githubAlt:(0,n.k)("github-alt",60160),globe:(0,n.k)("globe",60161),grabber:(0,n.k)("grabber",60162),graph:(0,n.k)("graph",60163),gripper:(0,n.k)("gripper",60164),heart:(0,n.k)("heart",60165),home:(0,n.k)("home",60166),horizontalRule:(0,n.k)("horizontal-rule",60167),hubot:(0,n.k)("hubot",60168),inbox:(0,n.k)("inbox",60169),issueReopened:(0,n.k)("issue-reopened",60171),issues:(0,n.k)("issues",60172),italic:(0,n.k)("italic",60173),jersey:(0,n.k)("jersey",60174),json:(0,n.k)("json",60175),kebabVertical:(0,n.k)("kebab-vertical",60176),key:(0,n.k)("key",60177),law:(0,n.k)("law",60178),lightbulbAutofix:(0,n.k)("lightbulb-autofix",60179),linkExternal:(0,n.k)("link-external",60180),link:(0,n.k)("link",60181),listOrdered:(0,n.k)("list-ordered",60182),listUnordered:(0,n.k)("list-unordered",60183),liveShare:(0,n.k)("live-share",60184),loading:(0,n.k)("loading",60185),location:(0,n.k)("location",60186),mailRead:(0,n.k)("mail-read",60187),mail:(0,n.k)("mail",60188),markdown:(0,n.k)("markdown",60189),megaphone:(0,n.k)("megaphone",60190),mention:(0,n.k)("mention",60191),milestone:(0,n.k)("milestone",60192),gitPullRequestMilestone:(0,n.k)("git-pull-request-milestone",60192),mortarBoard:(0,n.k)("mortar-board",60193),move:(0,n.k)("move",60194),multipleWindows:(0,n.k)("multiple-windows",60195),mute:(0,n.k)("mute",60196),noNewline:(0,n.k)("no-newline",60197),note:(0,n.k)("note",60198),octoface:(0,n.k)("octoface",60199),openPreview:(0,n.k)("open-preview",60200),package:(0,n.k)("package",60201),paintcan:(0,n.k)("paintcan",60202),pin:(0,n.k)("pin",60203),play:(0,n.k)("play",60204),run:(0,n.k)("run",60204),plug:(0,n.k)("plug",60205),preserveCase:(0,n.k)("preserve-case",60206),preview:(0,n.k)("preview",60207),project:(0,n.k)("project",60208),pulse:(0,n.k)("pulse",60209),question:(0,n.k)("question",60210),quote:(0,n.k)("quote",60211),radioTower:(0,n.k)("radio-tower",60212),reactions:(0,n.k)("reactions",60213),references:(0,n.k)("references",60214),refresh:(0,n.k)("refresh",60215),regex:(0,n.k)("regex",60216),remoteExplorer:(0,n.k)("remote-explorer",60217),remote:(0,n.k)("remote",60218),remove:(0,n.k)("remove",60219),replaceAll:(0,n.k)("replace-all",60220),replace:(0,n.k)("replace",60221),repoClone:(0,n.k)("repo-clone",60222),repoForcePush:(0,n.k)("repo-force-push",60223),repoPull:(0,n.k)("repo-pull",60224),repoPush:(0,n.k)("repo-push",60225),report:(0,n.k)("report",60226),requestChanges:(0,n.k)("request-changes",60227),rocket:(0,n.k)("rocket",60228),rootFolderOpened:(0,n.k)("root-folder-opened",60229),rootFolder:(0,n.k)("root-folder",60230),rss:(0,n.k)("rss",60231),ruby:(0,n.k)("ruby",60232),saveAll:(0,n.k)("save-all",60233),saveAs:(0,n.k)("save-as",60234),save:(0,n.k)("save",60235),screenFull:(0,n.k)("screen-full",60236),screenNormal:(0,n.k)("screen-normal",60237),searchStop:(0,n.k)("search-stop",60238),server:(0,n.k)("server",60240),settingsGear:(0,n.k)("settings-gear",60241),settings:(0,n.k)("settings",60242),shield:(0,n.k)("shield",60243),smiley:(0,n.k)("smiley",60244),sortPrecedence:(0,n.k)("sort-precedence",60245),splitHorizontal:(0,n.k)("split-horizontal",60246),splitVertical:(0,n.k)("split-vertical",60247),squirrel:(0,n.k)("squirrel",60248),starFull:(0,n.k)("star-full",60249),starHalf:(0,n.k)("star-half",60250),symbolClass:(0,n.k)("symbol-class",60251),symbolColor:(0,n.k)("symbol-color",60252),symbolConstant:(0,n.k)("symbol-constant",60253),symbolEnumMember:(0,n.k)("symbol-enum-member",60254),symbolField:(0,n.k)("symbol-field",60255),symbolFile:(0,n.k)("symbol-file",60256),symbolInterface:(0,n.k)("symbol-interface",60257),symbolKeyword:(0,n.k)("symbol-keyword",60258),symbolMisc:(0,n.k)("symbol-misc",60259),symbolOperator:(0,n.k)("symbol-operator",60260),symbolProperty:(0,n.k)("symbol-property",60261),wrench:(0,n.k)("wrench",60261),wrenchSubaction:(0,n.k)("wrench-subaction",60261),symbolSnippet:(0,n.k)("symbol-snippet",60262),tasklist:(0,n.k)("tasklist",60263),telescope:(0,n.k)("telescope",60264),textSize:(0,n.k)("text-size",60265),threeBars:(0,n.k)("three-bars",60266),thumbsdown:(0,n.k)("thumbsdown",60267),thumbsup:(0,n.k)("thumbsup",60268),tools:(0,n.k)("tools",60269),triangleDown:(0,n.k)("triangle-down",60270),triangleLeft:(0,n.k)("triangle-left",60271),triangleRight:(0,n.k)("triangle-right",60272),triangleUp:(0,n.k)("triangle-up",60273),twitter:(0,n.k)("twitter",60274),unfold:(0,n.k)("unfold",60275),unlock:(0,n.k)("unlock",60276),unmute:(0,n.k)("unmute",60277),unverified:(0,n.k)("unverified",60278),verified:(0,n.k)("verified",60279),versions:(0,n.k)("versions",60280),vmActive:(0,n.k)("vm-active",60281),vmOutline:(0,n.k)("vm-outline",60282),vmRunning:(0,n.k)("vm-running",60283),watch:(0,n.k)("watch",60284),whitespace:(0,n.k)("whitespace",60285),wholeWord:(0,n.k)("whole-word",60286),window:(0,n.k)("window",60287),wordWrap:(0,n.k)("word-wrap",60288),zoomIn:(0,n.k)("zoom-in",60289),zoomOut:(0,n.k)("zoom-out",60290),listFilter:(0,n.k)("list-filter",60291),listFlat:(0,n.k)("list-flat",60292),listSelection:(0,n.k)("list-selection",60293),selection:(0,n.k)("selection",60293),listTree:(0,n.k)("list-tree",60294),debugBreakpointFunctionUnverified:(0,n.k)("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:(0,n.k)("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:(0,n.k)("debug-breakpoint-function-disabled",60296),debugStackframeActive:(0,n.k)("debug-stackframe-active",60297),circleSmallFilled:(0,n.k)("circle-small-filled",60298),debugStackframeDot:(0,n.k)("debug-stackframe-dot",60298),terminalDecorationMark:(0,n.k)("terminal-decoration-mark",60298),debugStackframe:(0,n.k)("debug-stackframe",60299),debugStackframeFocused:(0,n.k)("debug-stackframe-focused",60299),debugBreakpointUnsupported:(0,n.k)("debug-breakpoint-unsupported",60300),symbolString:(0,n.k)("symbol-string",60301),debugReverseContinue:(0,n.k)("debug-reverse-continue",60302),debugStepBack:(0,n.k)("debug-step-back",60303),debugRestartFrame:(0,n.k)("debug-restart-frame",60304),debugAlt:(0,n.k)("debug-alt",60305),callIncoming:(0,n.k)("call-incoming",60306),callOutgoing:(0,n.k)("call-outgoing",60307),menu:(0,n.k)("menu",60308),expandAll:(0,n.k)("expand-all",60309),feedback:(0,n.k)("feedback",60310),gitPullRequestReviewer:(0,n.k)("git-pull-request-reviewer",60310),groupByRefType:(0,n.k)("group-by-ref-type",60311),ungroupByRefType:(0,n.k)("ungroup-by-ref-type",60312),account:(0,n.k)("account",60313),gitPullRequestAssignee:(0,n.k)("git-pull-request-assignee",60313),bellDot:(0,n.k)("bell-dot",60314),debugConsole:(0,n.k)("debug-console",60315),library:(0,n.k)("library",60316),output:(0,n.k)("output",60317),runAll:(0,n.k)("run-all",60318),syncIgnored:(0,n.k)("sync-ignored",60319),pinned:(0,n.k)("pinned",60320),githubInverted:(0,n.k)("github-inverted",60321),serverProcess:(0,n.k)("server-process",60322),serverEnvironment:(0,n.k)("server-environment",60323),pass:(0,n.k)("pass",60324),issueClosed:(0,n.k)("issue-closed",60324),stopCircle:(0,n.k)("stop-circle",60325),playCircle:(0,n.k)("play-circle",60326),record:(0,n.k)("record",60327),debugAltSmall:(0,n.k)("debug-alt-small",60328),vmConnect:(0,n.k)("vm-connect",60329),cloud:(0,n.k)("cloud",60330),merge:(0,n.k)("merge",60331),export:(0,n.k)("export",60332),graphLeft:(0,n.k)("graph-left",60333),magnet:(0,n.k)("magnet",60334),notebook:(0,n.k)("notebook",60335),redo:(0,n.k)("redo",60336),checkAll:(0,n.k)("check-all",60337),pinnedDirty:(0,n.k)("pinned-dirty",60338),passFilled:(0,n.k)("pass-filled",60339),circleLargeFilled:(0,n.k)("circle-large-filled",60340),circleLarge:(0,n.k)("circle-large",60341),circleLargeOutline:(0,n.k)("circle-large-outline",60341),combine:(0,n.k)("combine",60342),gather:(0,n.k)("gather",60342),table:(0,n.k)("table",60343),variableGroup:(0,n.k)("variable-group",60344),typeHierarchy:(0,n.k)("type-hierarchy",60345),typeHierarchySub:(0,n.k)("type-hierarchy-sub",60346),typeHierarchySuper:(0,n.k)("type-hierarchy-super",60347),gitPullRequestCreate:(0,n.k)("git-pull-request-create",60348),runAbove:(0,n.k)("run-above",60349),runBelow:(0,n.k)("run-below",60350),notebookTemplate:(0,n.k)("notebook-template",60351),debugRerun:(0,n.k)("debug-rerun",60352),workspaceTrusted:(0,n.k)("workspace-trusted",60353),workspaceUntrusted:(0,n.k)("workspace-untrusted",60354),workspaceUnknown:(0,n.k)("workspace-unknown",60355),terminalCmd:(0,n.k)("terminal-cmd",60356),terminalDebian:(0,n.k)("terminal-debian",60357),terminalLinux:(0,n.k)("terminal-linux",60358),terminalPowershell:(0,n.k)("terminal-powershell",60359),terminalTmux:(0,n.k)("terminal-tmux",60360),terminalUbuntu:(0,n.k)("terminal-ubuntu",60361),terminalBash:(0,n.k)("terminal-bash",60362),arrowSwap:(0,n.k)("arrow-swap",60363),copy:(0,n.k)("copy",60364),personAdd:(0,n.k)("person-add",60365),filterFilled:(0,n.k)("filter-filled",60366),wand:(0,n.k)("wand",60367),debugLineByLine:(0,n.k)("debug-line-by-line",60368),inspect:(0,n.k)("inspect",60369),layers:(0,n.k)("layers",60370),layersDot:(0,n.k)("layers-dot",60371),layersActive:(0,n.k)("layers-active",60372),compass:(0,n.k)("compass",60373),compassDot:(0,n.k)("compass-dot",60374),compassActive:(0,n.k)("compass-active",60375),azure:(0,n.k)("azure",60376),issueDraft:(0,n.k)("issue-draft",60377),gitPullRequestClosed:(0,n.k)("git-pull-request-closed",60378),gitPullRequestDraft:(0,n.k)("git-pull-request-draft",60379),debugAll:(0,n.k)("debug-all",60380),debugCoverage:(0,n.k)("debug-coverage",60381),runErrors:(0,n.k)("run-errors",60382),folderLibrary:(0,n.k)("folder-library",60383),debugContinueSmall:(0,n.k)("debug-continue-small",60384),beakerStop:(0,n.k)("beaker-stop",60385),graphLine:(0,n.k)("graph-line",60386),graphScatter:(0,n.k)("graph-scatter",60387),pieChart:(0,n.k)("pie-chart",60388),bracket:(0,n.k)("bracket",60175),bracketDot:(0,n.k)("bracket-dot",60389),bracketError:(0,n.k)("bracket-error",60390),lockSmall:(0,n.k)("lock-small",60391),azureDevops:(0,n.k)("azure-devops",60392),verifiedFilled:(0,n.k)("verified-filled",60393),newline:(0,n.k)("newline",60394),layout:(0,n.k)("layout",60395),layoutActivitybarLeft:(0,n.k)("layout-activitybar-left",60396),layoutActivitybarRight:(0,n.k)("layout-activitybar-right",60397),layoutPanelLeft:(0,n.k)("layout-panel-left",60398),layoutPanelCenter:(0,n.k)("layout-panel-center",60399),layoutPanelJustify:(0,n.k)("layout-panel-justify",60400),layoutPanelRight:(0,n.k)("layout-panel-right",60401),layoutPanel:(0,n.k)("layout-panel",60402),layoutSidebarLeft:(0,n.k)("layout-sidebar-left",60403),layoutSidebarRight:(0,n.k)("layout-sidebar-right",60404),layoutStatusbar:(0,n.k)("layout-statusbar",60405),layoutMenubar:(0,n.k)("layout-menubar",60406),layoutCentered:(0,n.k)("layout-centered",60407),target:(0,n.k)("target",60408),indent:(0,n.k)("indent",60409),recordSmall:(0,n.k)("record-small",60410),errorSmall:(0,n.k)("error-small",60411),terminalDecorationError:(0,n.k)("terminal-decoration-error",60411),arrowCircleDown:(0,n.k)("arrow-circle-down",60412),arrowCircleLeft:(0,n.k)("arrow-circle-left",60413),arrowCircleRight:(0,n.k)("arrow-circle-right",60414),arrowCircleUp:(0,n.k)("arrow-circle-up",60415),layoutSidebarRightOff:(0,n.k)("layout-sidebar-right-off",60416),layoutPanelOff:(0,n.k)("layout-panel-off",60417),layoutSidebarLeftOff:(0,n.k)("layout-sidebar-left-off",60418),blank:(0,n.k)("blank",60419),heartFilled:(0,n.k)("heart-filled",60420),map:(0,n.k)("map",60421),mapHorizontal:(0,n.k)("map-horizontal",60421),foldHorizontal:(0,n.k)("fold-horizontal",60421),mapFilled:(0,n.k)("map-filled",60422),mapHorizontalFilled:(0,n.k)("map-horizontal-filled",60422),foldHorizontalFilled:(0,n.k)("fold-horizontal-filled",60422),circleSmall:(0,n.k)("circle-small",60423),bellSlash:(0,n.k)("bell-slash",60424),bellSlashDot:(0,n.k)("bell-slash-dot",60425),commentUnresolved:(0,n.k)("comment-unresolved",60426),gitPullRequestGoToChanges:(0,n.k)("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:(0,n.k)("git-pull-request-new-changes",60428),searchFuzzy:(0,n.k)("search-fuzzy",60429),commentDraft:(0,n.k)("comment-draft",60430),send:(0,n.k)("send",60431),sparkle:(0,n.k)("sparkle",60432),insert:(0,n.k)("insert",60433),mic:(0,n.k)("mic",60434),thumbsdownFilled:(0,n.k)("thumbsdown-filled",60435),thumbsupFilled:(0,n.k)("thumbsup-filled",60436),coffee:(0,n.k)("coffee",60437),snake:(0,n.k)("snake",60438),game:(0,n.k)("game",60439),vr:(0,n.k)("vr",60440),chip:(0,n.k)("chip",60441),piano:(0,n.k)("piano",60442),music:(0,n.k)("music",60443),micFilled:(0,n.k)("mic-filled",60444),repoFetch:(0,n.k)("repo-fetch",60445),copilot:(0,n.k)("copilot",60446),lightbulbSparkle:(0,n.k)("lightbulb-sparkle",60447),robot:(0,n.k)("robot",60448),sparkleFilled:(0,n.k)("sparkle-filled",60449),diffSingle:(0,n.k)("diff-single",60450),diffMultiple:(0,n.k)("diff-multiple",60451),surroundWith:(0,n.k)("surround-with",60452),share:(0,n.k)("share",60453),gitStash:(0,n.k)("git-stash",60454),gitStashApply:(0,n.k)("git-stash-apply",60455),gitStashPop:(0,n.k)("git-stash-pop",60456),vscode:(0,n.k)("vscode",60457),vscodeInsiders:(0,n.k)("vscode-insiders",60458),codeOss:(0,n.k)("code-oss",60459),runCoverage:(0,n.k)("run-coverage",60460),runAllCoverage:(0,n.k)("run-all-coverage",60461),coverage:(0,n.k)("coverage",60462),githubProject:(0,n.k)("github-project",60463),mapVertical:(0,n.k)("map-vertical",60464),foldVertical:(0,n.k)("fold-vertical",60464),mapVerticalFilled:(0,n.k)("map-vertical-filled",60465),foldVerticalFilled:(0,n.k)("fold-vertical-filled",60465),goToSearch:(0,n.k)("go-to-search",60466),percentage:(0,n.k)("percentage",60467),sortPercentage:(0,n.k)("sort-percentage",60467),attach:(0,n.k)("attach",60468)}},19892:(e,t,i)=>{"use strict";i.d(t,{J:()=>r,k:()=>s});var n=i(79359);const o=Object.create(null);function s(e,t){if((0,n.Kg)(t)){const i=o[t];if(void 0===i)throw new Error(`${e} references an unknown codicon: ${t}`);t=i}return o[e]=t,{id:e}}function r(){return o}},88436:(e,t,i)=>{"use strict";function n(e,t){const i=[],n=[];for(const n of e)t.has(n)||i.push(n);for(const i of t)e.has(i)||n.push(i);return{removed:i,added:n}}function o(e,t){const i=new Set;for(const n of t)e.has(n)&&i.add(n);return i}i.d(t,{E:()=>o,Z:()=>n})},94901:(e,t,i)=>{"use strict";function n(e,t){const i=Math.pow(10,t);return Math.round(e*i)/i}i.d(t,{$J:()=>r,Q1:()=>a,bU:()=>o,hB:()=>s});class o{constructor(e,t,i,o=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,i)),this.a=n(Math.max(Math.min(1,o),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class s{constructor(e,t,i,o){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=n(Math.max(Math.min(1,t),0),3),this.l=n(Math.max(Math.min(1,i),0),3),this.a=n(Math.max(Math.min(1,o),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,n=e.b/255,o=e.a,r=Math.max(t,i,n),a=Math.min(t,i,n);let l=0,d=0;const c=(a+r)/2,h=r-a;if(h>0){switch(d=Math.min(c<=.5?h/(2*c):h/(2-2*c),1),r){case t:l=(i-n)/h+(i1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}static toRGBA(e){const t=e.h/360,{s:i,l:n,a:r}=e;let a,l,d;if(0===i)a=l=d=n;else{const e=n<.5?n*(1+i):n+i-n*i,o=2*n-e;a=s._hue2rgb(o,e,t+1/3),l=s._hue2rgb(o,e,t),d=s._hue2rgb(o,e,t-1/3)}return new o(Math.round(255*a),Math.round(255*l),Math.round(255*d),r)}}class r{constructor(e,t,i,o){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=n(Math.max(Math.min(1,t),0),3),this.v=n(Math.max(Math.min(1,i),0),3),this.a=n(Math.max(Math.min(1,o),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,i=e.g/255,n=e.b/255,o=Math.max(t,i,n),s=o-Math.min(t,i,n),a=0===o?0:s/o;let l;return l=0===s?0:o===t?((i-n)/s%6+6)%6:o===i?(n-t)/s+2:(t-i)/s+4,new r(Math.round(60*l),a,o,e.a)}static toRGBA(e){const{h:t,s:i,v:n,a:s}=e,r=n*i,a=r*(1-Math.abs(t/60%2-1)),l=n-r;let[d,c,h]=[0,0,0];return t<60?(d=r,c=a):t<120?(d=a,c=r):t<180?(c=r,h=a):t<240?(c=a,h=r):t<300?(d=a,h=r):t<=360&&(d=r,h=a),d=Math.round(255*(d+l)),c=Math.round(255*(c+l)),h=Math.round(255*(h+l)),new o(d,c,h,s)}}class a{static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:s.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:r.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof o)this.rgba=e;else if(e instanceof s)this._hsla=e,this.rgba=s.toRGBA(e);else{if(!(e instanceof r))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=r.toRGBA(e)}}equals(e){return!!e&&o.equals(this.rgba,e.rgba)&&s.equals(this.hsla,e.hsla)&&r.equals(this.hsva,e.hsva)}getRelativeLuminance(){return n(.2126*a._relativeLuminanceForComponent(this.rgba.r)+.7152*a._relativeLuminanceForComponent(this.rgba.g)+.0722*a._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance(){"use strict";i.d(t,{VX:()=>a,Vq:()=>l,Y:()=>c,gf:()=>r,jt:()=>u});var n=i(13338),o=i(17954),s=i(9223);function r(e){return{asString:async()=>e,asFile:()=>{},value:"string"==typeof e?e:void 0}}function a(e,t,i){const n={id:(0,s.b)(),name:e,uri:t,data:i};return{asString:async()=>"",asFile:()=>n,value:void 0}}class l{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return o.f.some(this,(([e,t])=>t.asFile()))&&t.push("files"),h(d(e),t)}get(e){var t;return null===(t=this._entries.get(this.toKey(e)))||void 0===t?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return d(e)}}function d(e){return e.toLowerCase()}function c(e,t){return h(d(e),t.map(d))}function h(e,t){if("*/*"===e)return t.length>0;if(t.includes(e))return!0;const i=e.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!i)return!1;const[n,o,s]=i;return"*"===s&&t.some((e=>e.startsWith(o+"/")))}const u=Object.freeze({create:e=>(0,n.dM)(e.map((e=>e.toString()))).join("\r\n"),split:e=>e.split("\r\n"),parse:e=>u.split(e).filter((e=>!e.startsWith("#")))})},88846:(e,t,i)=>{"use strict";function n(e,t,i){let n=null,o=null;if("function"==typeof i.value?(n="value",o=i.value,0!==o.length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"==typeof i.get&&(n="get",o=i.get),!o)throw new Error("not supported");const s=`$memoize$${t}`;i[n]=function(...e){return this.hasOwnProperty(s)||Object.defineProperty(this,s,{configurable:!1,enumerable:!1,writable:!1,value:o.apply(this,e)}),this[s]}}i.d(t,{B:()=>n})},6341:(e,t,i)=>{"use strict";i.d(t,{F1:()=>r,uP:()=>c});var n=i(24489),o=i(22344);class s{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let i=0,n=e.length;i0||this.m_modifiedCount>0)&&this.m_changes.push(new n.y(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class c{constructor(e,t,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=t;const[n,o,s]=c._getElements(e),[r,a,l]=c._getElements(t);this._hasStrings=s&&l,this._originalStringElements=n,this._originalElementsOrHash=o,this._modifiedStringElements=r,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"==typeof e[0]}static _getElements(e){const t=e.getElements();if(c._isStringArray(t)){const e=new Int32Array(t.length);for(let i=0,n=t.length;i=e&&o>=i&&this.ElementsAreEqual(t,o);)t--,o--;if(e>t||i>o){let s;return i<=o?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),s=[new n.y(e,0,i,o-i+1)]):e<=t?(a.Assert(i===o+1,"modifiedStart should only be one more than modifiedEnd"),s=[new n.y(e,t-e+1,i,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(i===o+1,"modifiedStart should only be one more than modifiedEnd"),s=[]),s}const r=[0],l=[0],d=this.ComputeRecursionPoint(e,t,i,o,r,l,s),c=r[0],h=l[0];if(null!==d)return d;if(!s[0]){const r=this.ComputeDiffRecursive(e,c,i,h,s);let a=[];return a=s[0]?[new n.y(c+1,t-(c+1)+1,h+1,o-(h+1)+1)]:this.ComputeDiffRecursive(c+1,t,h+1,o,s),this.ConcatenateChanges(r,a)}return[new n.y(e,t-e+1,i,o-i+1)]}WALKTRACE(e,t,i,o,s,r,a,l,c,h,u,g,p,m,f,v,_,b){let w=null,y=null,C=new d,k=t,S=i,x=p[0]-v[0]-o,L=-1073741824,D=this.m_forwardHistory.length-1;do{const t=x+e;t===k||t=0&&(e=(c=this.m_forwardHistory[D])[0],k=1,S=c.length-1)}while(--D>=-1);if(w=C.getReverseChanges(),b[0]){let e=p[0]+1,t=v[0]+1;if(null!==w&&w.length>0){const i=w[w.length-1];e=Math.max(e,i.getOriginalEnd()),t=Math.max(t,i.getModifiedEnd())}y=[new n.y(e,g-e+1,t,f-t+1)]}else{C=new d,k=r,S=a,x=p[0]-v[0]-l,L=1073741824,D=_?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=x+s;e===k||e=h[e+1]?(m=(u=h[e+1]-1)-x-l,u>L&&C.MarkNextChange(),L=u+1,C.AddOriginalElement(u+1,m+1),x=e+1-s):(m=(u=h[e-1])-x-l,u>L&&C.MarkNextChange(),L=u,C.AddModifiedElement(u+1,m+1),x=e-1-s),D>=0&&(s=(h=this.m_reverseHistory[D])[0],k=1,S=h.length-1)}while(--D>=-1);y=C.getChanges()}return this.ConcatenateChanges(w,y)}ComputeRecursionPoint(e,t,i,o,s,r,a){let d=0,c=0,h=0,u=0,g=0,p=0;e--,i--,s[0]=0,r[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=t-e+(o-i),f=m+1,v=new Int32Array(f),_=new Int32Array(f),b=o-i,w=t-e,y=e-i,C=t-o,k=(w-b)%2==0;v[b]=e,_[w]=t,a[0]=!1;for(let S=1;S<=m/2+1;S++){let m=0,x=0;h=this.ClipDiagonalBound(b-S,S,b,f),u=this.ClipDiagonalBound(b+S,S,b,f);for(let e=h;e<=u;e+=2){d=e===h||em+x&&(m=d,x=c),!k&&Math.abs(e-w)<=S-1&&d>=_[e])return s[0]=d,r[0]=c,i<=_[e]&&S<=1448?this.WALKTRACE(b,h,u,y,w,g,p,C,v,_,d,t,s,c,o,r,k,a):null}const L=(m-e+(x-i)-S)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(m,L))return a[0]=!0,s[0]=m,r[0]=x,L>0&&S<=1448?this.WALKTRACE(b,h,u,y,w,g,p,C,v,_,d,t,s,c,o,r,k,a):(e++,i++,[new n.y(e,t-e+1,i,o-i+1)]);g=this.ClipDiagonalBound(w-S,S,w,f),p=this.ClipDiagonalBound(w+S,S,w,f);for(let n=g;n<=p;n+=2){d=n===g||n=_[n+1]?_[n+1]-1:_[n-1],c=d-(n-w)-C;const l=d;for(;d>e&&c>i&&this.ElementsAreEqual(d,c);)d--,c--;if(_[n]=d,k&&Math.abs(n-b)<=S&&d<=v[n])return s[0]=d,r[0]=c,l>=v[n]&&S<=1448?this.WALKTRACE(b,h,u,y,w,g,p,C,v,_,d,t,s,c,o,r,k,a):null}if(S<=1447){let e=new Int32Array(u-h+2);e[0]=b-h+1,l.Copy2(v,h,e,1,u-h+1),this.m_forwardHistory.push(e),e=new Int32Array(p-g+2),e[0]=w-g+1,l.Copy2(_,g,e,1,p-g+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(b,h,u,y,w,g,p,C,v,_,d,t,s,c,o,r,k,a)}PrettifyChanges(e){for(let t=0;t0,r=i.modifiedLength>0;for(;i.originalStart+i.originalLength=0;t--){const i=e[t];let n=0,o=0;if(t>0){const i=e[t-1];n=i.originalStart+i.originalLength,o=i.modifiedStart+i.modifiedLength}const s=i.originalLength>0,r=i.modifiedLength>0;let a=0,l=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let e=1;;e++){const t=i.originalStart-e,d=i.modifiedStart-e;if(tl&&(l=c,a=e)}i.originalStart-=a,i.modifiedStart-=a;const d=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],d)&&(e[t-1]=d[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,i=e.length;t0&&i>a&&(a=i,l=t,d=e)}return a>0?[l,d]:null}_contiguousSequenceScore(e,t,i){let n=0;for(let o=0;o=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(e,t,i,n){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(i,n)?1:0)}ConcatenateChanges(e,t){const i=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],i)){const n=new Array(e.length+t.length-1);return l.Copy(e,0,n,0,e.length-1),n[e.length-1]=i[0],l.Copy(t,1,n,e.length,t.length-1),n}{const i=new Array(e.length+t.length);return l.Copy(e,0,i,0,e.length),l.Copy(t,0,i,e.length,t.length),i}}ChangesOverlap(e,t,i){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const o=e.originalStart;let s=e.originalLength;const r=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(s=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),i[0]=new n.y(o,s,r,a),!0}return i[0]=null,!1}ClipDiagonalBound(e,t,i,n){if(e>=0&&e{"use strict";i.d(t,{y:()=>n});class n{constructor(e,t,i,n){this.originalStart=e,this.originalLength=t,this.modifiedStart=i,this.modifiedLength=n}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}},8897:(e,t,i)=>{"use strict";i.d(t,{KC:()=>a,S3:()=>s,dB:()=>l,nx:()=>o,r:()=>r});var n=i(13338);const o=(e,t)=>e===t;function s(e=o){return(t,i)=>n.aI(t,i,e)}function r(){return(e,t)=>e.equals(t)}function a(e,t,i){if(void 0!==i){return null==e||null==t?t===e:i(e,t)}{const t=e;return(e,i)=>null==e||null==i?i===e:t(e,i)}}function l(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0;i{"use strict";i.d(t,{r:()=>d});var n=i(13338),o=i(79359),s=i(3765);function r(e,t){return t&&(e.stack||e.stacktrace)?s.k("stackTrace.format","{0}: {1}",l(e),a(e.stack)||a(e.stacktrace)):l(e)}function a(e){return Array.isArray(e)?e.join("\n"):e}function l(e){return"ERR_UNC_HOST_NOT_ALLOWED"===e.code?`${e.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:"string"==typeof e.code&&"number"==typeof e.errno&&"string"==typeof e.syscall?s.k("nodeExceptionMessage","A system error occurred ({0})",e.message):e.message||s.k("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function d(e=null,t=!1){if(!e)return s.k("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(e)){const i=n.Yc(e),o=d(i[0],t);return i.length>1?s.k("error.moreErrors","{0} ({1} errors in total)",o,i.length):o}if(o.Kg(e))return e;if(e.detail){const i=e.detail;if(i.error)return r(i.error,t);if(i.exception)return r(i.exception,t)}return e.stack?r(e,t):e.message?e.message:s.k("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}},94327:(e,t,i)=>{"use strict";i.d(t,{AL:()=>d,D7:()=>m,EM:()=>g,MB:()=>l,M_:()=>s,Qg:()=>h,aD:()=>c,cU:()=>r,dz:()=>o,iH:()=>u});const n=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(p.isErrorNoTelemetry(e))throw new p(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function o(e){l(e)||n.onUnexpectedError(e)}function s(e){l(e)||n.onUnexpectedExternalError(e)}function r(e){if(e instanceof Error){const{name:t,message:i}=e;return{$isError:!0,name:t,message:i,stack:e.stacktrace||e.stack,noTelemetry:p.isErrorNoTelemetry(e)}}return e}const a="Canceled";function l(e){return e instanceof d||e instanceof Error&&e.name===a&&e.message===a}class d extends Error{constructor(){super(a),this.name=this.message}}function c(){const e=new Error(a);return e.name=e.message,e}function h(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function u(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class g extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class p extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof p)return e;const t=new p;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class m extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,m.prototype)}}},2106:(e,t,i)=>{"use strict";i.d(t,{Jh:()=>n,QT:()=>w,Qy:()=>f,Wj:()=>k,_B:()=>y,at:()=>C,fV:()=>_,uI:()=>b,vl:()=>m});var n,o=i(94327),s=i(48289),r=i(10998),a=i(85525),l=i(23013);!function(e){function t(e){return(t,i=null,n)=>{let o,s=!1;return o=e((e=>{if(!s)return o?o.dispose():s=!0,t.call(i,e)}),null,n),s&&o.dispose(),o}}function i(e,t,i){return o(((i,n=null,o)=>e((e=>i.call(n,t(e))),null,o)),i)}function n(e,t,i){return o(((i,n=null,o)=>e((e=>t(e)&&i.call(n,e)),null,o)),i)}function o(e,t){let i;const n=new m({onWillAddFirstListener(){i=e(n.fire,n)},onDidRemoveLastListener(){null==i||i.dispose()}});return null==t||t.add(n),n.event}function s(e,t,i=100,n=!1,o=!1,s,r){let a,l,d,c,h=0;const u=new m({leakWarningThreshold:s,onWillAddFirstListener(){a=e((e=>{h++,l=t(l,e),n&&!d&&(u.fire(l),l=void 0),c=()=>{const e=l;l=void 0,d=void 0,(!n||h>1)&&u.fire(e),h=0},"number"==typeof i?(clearTimeout(d),d=setTimeout(c,i)):void 0===d&&(d=0,queueMicrotask(c))}))},onWillRemoveListener(){o&&h>0&&(null==c||c())},onDidRemoveLastListener(){c=void 0,a.dispose()}});return null==r||r.add(u),u.event}e.None=()=>r.jG.None,e.defer=function(e,t){return s(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=t,e.map=i,e.forEach=function(e,t,i){return o(((i,n=null,o)=>e((e=>{t(e),i.call(n,e)}),null,o)),i)},e.filter=n,e.signal=function(e){return e},e.any=function(...e){return(t,i=null,n)=>{return o=(0,r.qE)(...e.map((e=>e((e=>t.call(i,e)))))),(s=n)instanceof Array?s.push(o):s&&s.add(o),o;var o,s}},e.reduce=function(e,t,n,o){let s=n;return i(e,(e=>(s=t(s,e),s)),o)},e.debounce=s,e.accumulate=function(t,i=0,n){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),i,void 0,!0,void 0,n)},e.latch=function(e,t=((e,t)=>e===t),i){let o,s=!0;return n(e,(e=>{const i=s||!t(e,o);return s=!1,o=e,i}),i)},e.split=function(t,i,n){return[e.filter(t,i,n),e.filter(t,(e=>!i(e)),n)]},e.buffer=function(e,t=!1,i=[],n){let o=i.slice(),s=e((e=>{o?o.push(e):a.fire(e)}));n&&n.add(s);const r=()=>{null==o||o.forEach((e=>a.fire(e))),o=null},a=new m({onWillAddFirstListener(){s||(s=e((e=>a.fire(e))),n&&n.add(s))},onDidAddFirstListener(){o&&(t?setTimeout(r):r())},onDidRemoveLastListener(){s&&s.dispose(),s=null}});return n&&n.add(a),a.event},e.chain=function(e,t){return(i,n,o)=>{const s=t(new l);return e((function(e){const t=s.evaluate(e);t!==a&&i.call(n,t)}),void 0,o)}};const a=Symbol("HaltChainable");class l{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push((t=>(e(t),t))),this}filter(e){return this.steps.push((t=>e(t)?t:a)),this}reduce(e,t){let i=t;return this.steps.push((t=>(i=e(i,t),i))),this}latch(e=((e,t)=>e===t)){let t,i=!0;return this.steps.push((n=>{const o=i||!e(n,t);return i=!1,t=n,o?n:a})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===a)break;return e}}e.fromNodeEventEmitter=function(e,t,i=(e=>e)){const n=(...e)=>o.fire(i(...e)),o=new m({onWillAddFirstListener:()=>e.on(t,n),onDidRemoveLastListener:()=>e.removeListener(t,n)});return o.event},e.fromDOMEventEmitter=function(e,t,i=(e=>e)){const n=(...e)=>o.fire(i(...e)),o=new m({onWillAddFirstListener:()=>e.addEventListener(t,n),onDidRemoveLastListener:()=>e.removeEventListener(t,n)});return o.event},e.toPromise=function(e){return new Promise((i=>t(e)(i)))},e.fromPromise=function(e){const t=new m;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.runAndSubscribe=function(e,t,i){return t(i),e((e=>t(e)))};class d{constructor(e,t){this._observable=e,this._counter=0,this._hasChanged=!1;const i={onWillAddFirstListener:()=>{e.addObserver(this)},onDidRemoveLastListener:()=>{e.removeObserver(this)}};this.emitter=new m(i),t&&t.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new d(e,t).emitter.event},e.fromObservableLight=function(e){return(t,i,n)=>{let o=0,s=!1;const a={beginUpdate(){o++},endUpdate(){o--,0===o&&(e.reportChanges(),s&&(s=!1,t.call(i)))},handlePossibleChange(){},handleChange(){s=!0}};e.addObserver(a),e.reportChanges();const l={dispose(){e.removeObserver(a)}};return n instanceof r.Cm?n.add(l):Array.isArray(n)&&n.push(l),l}}}(n||(n={}));class d{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${d._idPool++}`,d.all.add(this)}start(e){this._stopWatch=new l.W,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}d.all=new Set,d._idPool=0;class c{constructor(e,t,i=(c._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=t,this.name=i,this._warnCountdown=0}dispose(){var e;null===(e=this._stacks)||void 0===e||e.clear()}check(e,t){const i=this.threshold;if(i<=0||t{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[i,n]of this._stacks)(!e||t{var n,s,a,l,d,c,u;if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const e=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(e);const t=null!==(n=this._leakageMon.getMostFrequentStack())&&void 0!==n?n:["UNKNOWN stack",-1],i=new g(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return((null===(s=this._options)||void 0===s?void 0:s.onListenerError)||o.dz)(i),r.jG.None}if(this._disposed)return r.jG.None;t&&(e=e.bind(t));const m=new p(e);let f;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(m.stack=h.create(),f=this._leakageMon.check(m.stack,this._size+1)),this._listeners?this._listeners instanceof p?(null!==(u=this._deliveryQueue)&&void 0!==u||(this._deliveryQueue=new v),this._listeners=[this._listeners,m]):this._listeners.push(m):(null===(l=null===(a=this._options)||void 0===a?void 0:a.onWillAddFirstListener)||void 0===l||l.call(a,this),this._listeners=m,null===(c=null===(d=this._options)||void 0===d?void 0:d.onDidAddFirstListener)||void 0===c||c.call(d,this)),this._size++;const _=(0,r.s)((()=>{null==f||f(),this._removeListener(m)}));return i instanceof r.Cm?i.add(_):Array.isArray(i)&&i.push(_),_}),this._event}_removeListener(e){var t,i,n,o;if(null===(i=null===(t=this._options)||void 0===t?void 0:t.onWillRemoveListener)||void 0===i||i.call(t,this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,null===(o=null===(n=this._options)||void 0===n?void 0:n.onDidRemoveLastListener)||void 0===o||o.call(n,this),void(this._size=0);const s=this._listeners,r=s.indexOf(e);if(-1===r)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,s[r]=void 0;const a=this._deliveryQueue.current===this;if(2*this._size<=s.length){let e=0;for(let t=0;t0}}const f=()=>new v;class v{constructor(){this.i=-1,this.end=0}enqueue(e,t,i){this.i=0,this.end=i,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class _ extends m{constructor(e){super(e),this._isPaused=0,this._eventQueue=new a.w,this._mergeFn=null==e?void 0:e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0==--this._isPaused)if(this._mergeFn){if(this._eventQueue.size>0){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}fire(e){this._size&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class b extends _{constructor(e){var t;super(e),this._delay=null!==(t=e.delay)&&void 0!==t?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout((()=>{this._handle=void 0,this.resume()}),this._delay)),super.fire(e)}}class w extends m{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=null==e?void 0:e.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),1===this._queuedEvents.length&&queueMicrotask((()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach((e=>super.fire(e))),this._queuedEvents=[]})))}}class y{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new m({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};return this.events.push(t),this.hasListeners&&this.hook(t),(0,r.s)((0,s.P)((()=>{this.hasListeners&&this.unhook(t);const e=this.events.indexOf(t);this.events.splice(e,1)})))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach((e=>this.hook(e)))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach((e=>this.unhook(e)))}hook(e){e.listener=e.event((e=>this.emitter.fire(e)))}unhook(e){var t;null===(t=e.listener)||void 0===t||t.dispose(),e.listener=null}dispose(){var e;this.emitter.dispose();for(const t of this.events)null===(e=t.listener)||void 0===e||e.dispose();this.events=[]}}class C{constructor(){this.data=[]}wrapEvent(e,t,i){return(n,o,s)=>e((e=>{var s;const r=this.data[this.data.length-1];if(!t)return void(r?r.buffers.push((()=>n.call(o,e))):n.call(o,e));const a=r;a?(null!==(s=a.items)&&void 0!==s||(a.items=[]),a.items.push(e),0===a.buffers.length&&r.buffers.push((()=>{var e;null!==(e=a.reducedResult)&&void 0!==e||(a.reducedResult=i?a.items.reduce(t,i):a.items.reduce(t)),n.call(o,a.reducedResult)}))):n.call(o,t(i,e))}),void 0,s)}bufferEvents(e){const t={buffers:new Array};this.data.push(t);const i=e();return this.data.pop(),t.buffers.forEach((e=>e())),i}}class k{constructor(){this.listening=!1,this.inputEvent=n.None,this.inputEventListener=r.jG.None,this.emitter=new m({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},78518:(e,t,i)=>{"use strict";i.d(t,{No:()=>u,TH:()=>a,Zn:()=>d,_1:()=>c,kb:()=>l});var n=i(18019),o=i(63339),s=i(16844);function r(e){return 47===e||92===e}function a(e){return e.replace(/[\\/]/g,n.SA.sep)}function l(e){return-1===e.indexOf("/")&&(e=a(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function d(e,t=n.SA.sep){if(!e)return"";const i=e.length,o=e.charCodeAt(0);if(r(o)){if(r(e.charCodeAt(1))&&!r(e.charCodeAt(2))){let n=3;const o=n;for(;ne.length)return!1;if(i){if(!(0,s.ns)(e,t))return!1;if(t.length===e.length)return!0;let i=t.length;return t.charAt(t.length-1)===o&&i--,e.charAt(i)===o}return t.charAt(t.length-1)!==o&&(t+=o),0===e.indexOf(t)}function h(e){return e>=65&&e<=90||e>=97&&e<=122}function u(e,t=o.uF){return!!t&&h(e.charCodeAt(0))&&58===e.charCodeAt(1)}},75637:(e,t,i)=>{"use strict";i.d(t,{ne:()=>te,Nd:()=>ie,Jo:()=>H,WJ:()=>V,dt:()=>ne,uU:()=>se,Tt:()=>m,yr:()=>B,O:()=>W,WP:()=>g,dE:()=>f,J1:()=>A,or:()=>u});var n=i(27992);let o=0;const s=new Uint32Array(10);function r(e,t,i){var n;e>=i&&e>8&&(s[o++]=n>>8&255),n>>16&&(s[o++]=n>>16&255)))}const a=new Uint8Array([114,82,115,101,69,102,97,113,81,116,84,100,119,87,99,122,120,118,103]),l=new Uint16Array([107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]),d=new Uint16Array([114,82,29810,115,30579,26483,101,102,29286,24934,29030,29798,30822,30310,26470,97,113,29809,116,84,100,119,99,122,120,118,103]),c=new Uint16Array([114,82,29810,115,30579,26483,101,69,102,29286,24934,29030,29798,30822,30310,26470,97,113,81,29809,116,84,100,119,87,99,122,120,118,103,107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]);var h=i(16844);function u(...e){return function(t,i){for(let n=0,o=e.length;n0?[{start:0,end:t.length}]:[]:null}function m(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return-1===i?null:[{start:i,end:i+e.length}]}function f(e,t){return v(e.toLowerCase(),t.toLowerCase(),0,0)}function v(e,t,i,n){if(i===e.length)return[];if(n===t.length)return null;if(e[i]===t[n]){let o=null;return(o=v(e,t,i+1,n+1))?E({start:n,end:n+1},o):null}return v(e,t,i,n+1)}function _(e){return 97<=e&&e<=122}function b(e){return 65<=e&&e<=90}function w(e){return 48<=e&&e<=57}function y(e){return 32===e||9===e||10===e||13===e}const C=new Set;function k(e){return y(e)||C.has(e)}function S(e,t){return e===t||k(e)&&k(t)}"()[]{}<>`'\"-/;:,.?!".split("").forEach((e=>C.add(e.charCodeAt(0))));const x=new Map;function L(e){if(x.has(e))return x.get(e);let t;const i=function(e){const t=function(e){if(o=0,r(e,a,4352),o>0)return s.subarray(0,o);if(r(e,l,4449),o>0)return s.subarray(0,o);if(r(e,d,4520),o>0)return s.subarray(0,o);if(r(e,c,12593),o)return s.subarray(0,o);if(e>=44032&&e<=55203){const t=e-44032,i=t%588,n=Math.floor(t/588),h=Math.floor(i/28),u=i%28-1;if(n=0&&(u0)return s.subarray(0,o)}}(e);if(t&&t.length>0)return new Uint32Array(t)}(e);return i&&(t=i),x.set(e,t),t}function D(e){return _(e)||b(e)||w(e)}function E(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function I(e,t){for(let i=t;i0&&!D(e.charCodeAt(i-1)))return i}return e.length}function N(e,t,i,n){if(i===e.length)return[];if(n===t.length)return null;if(e[i]!==t[n].toLowerCase())return null;{let o=null,s=n+1;for(o=N(e,t,i+1,n+1);!o&&(s=I(t,s))60&&(t=t.substring(0,60));const i=function(e){let t=0,i=0,n=0,o=0,s=0;for(let r=0;r.2&&t<.8&&n>.6&&o<.2}(i)){if(!function(e){const{upperPercent:t,lowerPercent:i}=e;return 0===i&&t>.6}(i))return null;t=t.toLowerCase()}let n=null,o=0;for(e=e.toLowerCase();o0&&k(e.charCodeAt(i-1)))return i;return e.length}const P=u(g,M,m),O=u(g,M,f),F=new n.qK(1e4);function B(e,t,i=!1){if("string"!=typeof e||"string"!=typeof t)return null;let n=F.get(e);n||(n=new RegExp(h.Bm(e),"i"),F.set(e,n));const o=n.exec(t);return o?[{start:o.index,end:o.index+o[0].length}]:i?O(e,t):P(e,t)}function W(e,t){const i=ne(e,e.toLowerCase(),0,t,t.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return i?V(i):null}function H(e,t,i,n,o,s){const r=Math.min(13,e.length);for(;i1;n--){const o=e[n]+i,s=t[t.length-1];s&&s.end===o?s.end=o+1:t.push({start:o,end:o+1})}return t}const z=128;function j(){const e=[],t=[];for(let e=0;e<=z;e++)t[e]=0;for(let i=0;i<=z;i++)e.push(t.slice(0));return e}function U(e){const t=[];for(let i=0;i<=e;i++)t[i]=0;return t}const $=U(2*z),K=U(2*z),q=j(),G=j(),Q=j(),Z=!1;function Y(e,t,i,n,o){function s(e,t,i=" "){for(;e.lengths(e,3))).join("|")}\n`;for(let n=0;n<=i;n++)r+=0===n?" |":`${t[n-1]}|`,r+=e[n].slice(0,o+1).map((e=>s(e.toString(),3))).join("|")+"\n";return r}function X(e,t){if(t<0||t>=e.length)return!1;const i=e.codePointAt(t);switch(i){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:return!!h.Ss(i)}}function J(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function ee(e,t,i){return t[e]!==i[e]}var te;!function(e){e.Default=[-100,0],e.isDefault=function(e){return!e||2===e.length&&-100===e[0]&&0===e[1]}}(te||(te={}));class ie{constructor(e,t){this.firstMatchCanBeWeak=e,this.boostFullMatch=t}}function ne(e,t,i,n,o,s,r=ie.default){const a=e.length>z?z:e.length,l=n.length>z?z:n.length;if(i>=a||s>=l||a-i>l-s)return;if(!function(e,t,i,n,o,s,r=!1){for(;t=i&&a>=n;)o[r]===s[a]&&(K[r]=a,r--),a--}(a,l,i,s,t,o);let d=1,c=1,h=i,u=s;const g=[!1];for(d=1,h=i;hr,_=v?G[d][c-1]+(q[d][c-1]>0?-5:0):0,b=u>r+1&&q[d][c-1]>0,w=b?G[d][c-2]+(q[d][c-2]>0?-5:0):0;if(b&&(!v||w>=_)&&(!m||w>=f))G[d][c]=w,Q[d][c]=3,q[d][c]=0;else if(v&&(!m||_>=f))G[d][c]=_,Q[d][c]=2,q[d][c]=0;else{if(!m)throw new Error("not possible");G[d][c]=f,Q[d][c]=1,q[d][c]=q[d-1][c-1]+1}}}if(Z&&function(e,t,i,n){e=e.substr(t),i=i.substr(n),console.log(Y(G,e,e.length,i,i.length)),console.log(Y(Q,e,e.length,i,i.length)),console.log(Y(q,e,e.length,i,i.length))}(e,i,n,s),!g[0]&&!r.firstMatchCanBeWeak)return;d--,c--;const p=[G[d][c],s];let m=0,f=0;for(;d>=1;){let e=c;do{const t=Q[d][e];if(3===t)e-=2;else{if(2!==t)break;e-=1}}while(e>=1);m>1&&t[i+d-1]===o[s+c-1]&&!ee(e+s-1,n,o)&&m+1>q[d][e]&&(e=c),e===c?m++:m=1,f||(f=e),d--,c=e-1,p.push(c)}l-s===a&&r.boostFullMatch&&(p[0]+=2);const v=f-a;return p[0]-=v,p}function oe(e,t,i,n,o,s,r,a,l,d,c){if(t[i]!==s[r])return Number.MIN_SAFE_INTEGER;let h=1,u=!1;return r===i-n?h=e[i]===o[r]?7:5:!ee(r,o,s)||0!==r&&ee(r-1,o,s)?!X(s,r)||0!==r&&X(s,r-1)?(X(s,r-1)||J(s,r-1))&&(h=5,u=!0):h=5:(h=e[i]===o[r]?7:5,u=!0),h>1&&i===n&&(c[0]=!0),u||(u=ee(r,o,s)||X(s,r-1)||J(s,r-1)),i===n?r>l&&(h-=u?3:5):h+=d?u?2:0:u?0:1,r+1===a&&(h-=u?3:5),h}function se(e,t,i,n,o,s,r){return function(e,t,i,n,o,s,r,a){let l=ne(e,t,i,n,o,s,a);if(e.length>=3){const t=Math.min(7,e.length-1);for(let r=i+1;rl[0])&&(l=e))}}}return l}(e,t,i,n,o,s,0,r)}function re(e,t){if(t+1>=e.length)return;const i=e[t],n=e[t+1];return i!==n?e.slice(0,t)+n+i+e.slice(t+2):void 0}ie.default={boostFullMatch:!0,firstMatchCanBeWeak:!1}},48289:(e,t,i)=>{"use strict";function n(e,t){const i=this;let n,o=!1;return function(){if(o)return n;if(o=!0,t)try{n=e.apply(i,arguments)}finally{t()}else n=e.apply(i,arguments);return n}}i.d(t,{P:()=>n})},83958:(e,t,i)=>{"use strict";i.d(t,{YW:()=>I,qg:()=>N});var n=i(65958),o=i(78518),s=i(27992),r=i(18019),a=i(63339),l=i(16844);const d="**",c="/",h="[/\\\\]",u="[^/\\\\]",g=/\//g;function p(e,t){switch(e){case 0:return"";case 1:return`${u}*?`;default:return`(?:${h}|${u}+${h}${t?`|${h}${u}+`:""})*?`}}function m(e,t){if(!e)return[];const i=[];let n=!1,o=!1,s="";for(const r of e){switch(r){case t:if(!n&&!o){i.push(s),s="";continue}break;case"{":n=!0;break;case"}":n=!1;break;case"[":o=!0;break;case"]":o=!1}s+=r}return s&&i.push(s),i}function f(e){if(!e)return"";let t="";const i=m(e,c);if(i.every((e=>e===d)))t=".*";else{let e=!1;i.forEach(((n,o)=>{if(n===d){if(e)return;t+=p(2,o===i.length-1)}else{let e=!1,s="",r=!1,a="";for(const i of n)if("}"!==i&&e)s+=i;else if(!r||"]"===i&&a)switch(i){case"{":e=!0;continue;case"[":r=!0;continue;case"}":{const i=`(?:${m(s,",").map((e=>f(e))).join("|")})`;t+=i,e=!1,s="";break}case"]":t+="["+a+"]",r=!1,a="";break;case"?":t+=u;continue;case"*":t+=p(1);continue;default:t+=(0,l.bm)(i)}else{let e;e="-"===i?i:"^"!==i&&"!"!==i||a?i===c?"":(0,l.bm)(i):"^",a+=e}oL(e,t))).filter((e=>e!==x)),e),n=i.length;if(!n)return x;if(1===n)return i[0];const o=function(t,n){for(let o=0,s=i.length;o!!e.allBasenames));s&&(o.allBasenames=s.allBasenames);const r=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return r.length&&(o.allPaths=r),o}(i,t):(s=y.exec(D(i,t)))?E(s[1].substr(1),i,!0):(s=C.exec(D(i,t)))?E(s[1],i,!1):function(e){try{const t=new RegExp(`^${f(e)}$`);return function(i){return t.lastIndex=0,"string"==typeof i&&t.test(i)?e:null}}catch(e){return x}}(i),k.set(n,d)),function(e,t){if("string"==typeof t)return e;const i=function(i,n){return(0,o._1)(i,t.base,!a.j9)?e((0,l.NB)(i.substr(t.base.length),r.Vn),n):null};return i.allBasenames=e.allBasenames,i.allPaths=e.allPaths,i.basenames=e.basenames,i.patterns=e.patterns,i}(d,e)}function D(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function E(e,t,i){const n=r.Vn===r.SA.sep,o=n?e:e.replace(g,r.Vn),s=r.Vn+o,a=r.SA.sep+e;let l;return l=i?function(i,r){return"string"!=typeof i||i!==o&&!i.endsWith(s)&&(n||i!==e&&!i.endsWith(a))?null:t}:function(i,s){return"string"!=typeof i||i!==o&&(n||i!==e)?null:t},l.allPaths=[(i?"*/":"./")+e],l}function I(e,t,i){return!(!e||"string"!=typeof t)&&N(e)(t,void 0,i)}function N(e,t={}){if(!e)return S;if("string"==typeof e||function(e){const t=e;return!!t&&("string"==typeof t.base&&"string"==typeof t.pattern)}(e)){const i=L(e,t);if(i===x)return S;const n=function(e,t){return!!i(e,t)};return i.allBasenames&&(n.allBasenames=i.allBasenames),i.allPaths&&(n.allPaths=i.allPaths),n}return function(e,t){const i=M(Object.getOwnPropertyNames(e).map((i=>function(e,t,i){if(!1===t)return x;const o=L(e,i);if(o===x)return x;if("boolean"==typeof t)return o;if(t){const i=t.when;if("string"==typeof i){const t=(t,s,r,a)=>{if(!a||!o(t,s))return null;const l=a(i.replace("$(basename)",(()=>r)));return(0,n.Qg)(l)?l.then((t=>t?e:null)):l?e:null};return t.requiresSiblings=!0,t}}return o}(i,e[i],t))).filter((e=>e!==x))),o=i.length;if(!o)return x;if(!i.some((e=>!!e.requiresSiblings))){if(1===o)return i[0];const e=function(e,t){let o;for(let s=0,r=i.length;s{for(const e of o){const t=await e;if("string"==typeof t)return t}return null})():null},t=i.find((e=>!!e.allBasenames));t&&(e.allBasenames=t.allBasenames);const s=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return s.length&&(e.allPaths=s),e}const s=function(e,t,o){let s,a;for(let l=0,d=i.length;l{for(const e of a){const t=await e;if("string"==typeof t)return t}return null})():null},a=i.find((e=>!!e.allBasenames));a&&(s.allBasenames=a.allBasenames);const l=i.reduce(((e,t)=>t.allPaths?e.concat(t.allPaths):e),[]);return l.length&&(s.allPaths=l),s}(e,t)}function M(e,t){const i=e.filter((e=>!!e.basenames));if(i.length<2)return e;const n=i.reduce(((e,t)=>{const i=t.basenames;return i?e.concat(i):e}),[]);let o;if(t){o=[];for(let e=0,i=n.length;e{const i=t.patterns;return i?e.concat(i):e}),[]);const s=function(e,t){if("string"!=typeof e)return null;if(!t){let i;for(i=e.length;i>0;i--){const t=e.charCodeAt(i-1);if(47===t||92===t)break}t=e.substr(i)}const i=n.indexOf(t);return-1!==i?o[i]:null};s.basenames=n,s.patterns=o,s.allBasenames=n;const r=e.filter((e=>!e.basenames));return r.push(s),r}},22344:(e,t,i)=>{"use strict";i.d(t,{e2:()=>a,sN:()=>s,tW:()=>o,v7:()=>h});var n=i(16844);function o(e){return s(e,0)}function s(e,t){switch(typeof e){case"object":return null===e?r(349,t):Array.isArray(e)?(i=e,n=r(104579,n=t),i.reduce(((e,t)=>s(t,e)),n)):function(e,t){return t=r(181387,t),Object.keys(e).sort().reduce(((t,i)=>(t=a(i,t),s(e[i],t))),t)}(e,t);case"string":return a(e,t);case"boolean":return function(e,t){return r(e?433:863,t)}(e,t);case"number":return r(e,t);case"undefined":return r(937,t);default:return r(617,t)}var i,n}function r(e,t){return(t<<5)-t+e|0}function a(e,t){t=r(149417,t);for(let i=0,n=e.length;i>>n)>>>0}function d(e,t=0,i=e.byteLength,n=0){for(let o=0;oe.toString(16).padStart(2,"0"))).join(""):function(e,t,i="0"){for(;e.length>>0).toString(16),t/4)}class h{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const i=this._buff;let o,s,r=this._buffLen,a=this._leftoverHighSurrogate;for(0!==a?(o=a,s=-1,a=0):(o=e.charCodeAt(0),s=0);;){let l=o;if(n.pc(o)){if(!(s+1>>6,e[t++]=128|(63&i)>>>0):i<65536?(e[t++]=224|(61440&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0):(e[t++]=240|(1835008&i)>>>18,e[t++]=128|(258048&i)>>>12,e[t++]=128|(4032&i)>>>6,e[t++]=128|(63&i)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),c(this._h0)+c(this._h1)+c(this._h2)+c(this._h3)+c(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,d(this._buff,this._buffLen),this._buffLen>56&&(this._step(),d(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=h._bigBlock32,t=this._buffDV;for(let i=0;i<64;i+=4)e.setUint32(i,t.getUint32(i,!1),!1);for(let t=64;t<320;t+=4)e.setUint32(t,l(e.getUint32(t-12,!1)^e.getUint32(t-32,!1)^e.getUint32(t-56,!1)^e.getUint32(t-64,!1),1),!1);let i,n,o,s=this._h0,r=this._h1,a=this._h2,d=this._h3,c=this._h4;for(let t=0;t<80;t++)t<20?(i=r&a|~r&d,n=1518500249):t<40?(i=r^a^d,n=1859775393):t<60?(i=r&a|r&d|a&d,n=2400959708):(i=r^a^d,n=3395469782),o=l(s,5)+i+c+n+e.getUint32(4*t,!1)&4294967295,c=d,d=a,a=l(r,30),r=s,s=o;this._h0=this._h0+s&4294967295,this._h1=this._h1+r&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+d&4294967295,this._h4=this._h4+c&4294967295}}h._bigBlock32=new DataView(new ArrayBuffer(320))},14731:(e,t,i)=>{"use strict";i.d(t,{k:()=>n});class n{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+n.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(...e){return new n((this.value?[this.value,...e]:e).join(n.sep))}}n.sep=".",n.None=new n("@@none@@"),n.Empty=new n("")},81940:(e,t,i)=>{"use strict";i.d(t,{O:()=>s,e:()=>o});var n=i(9871);function o(){return n._K&&!!n._K.VSCODE_DEV}function s(e){if(o()){const t=function(){r||(r=new Set);const e=globalThis;return e.$hotReload_applyNewExports||(e.$hotReload_applyNewExports=e=>{const t={config:{mode:void 0},...e},i=[];for(const e of r){const n=e(t);n&&i.push(n)}if(i.length>0)return e=>{let t=!1;for(const n of i)n(e)&&(t=!0);return t}}),r}();return t.add(e),{dispose(){t.delete(e)}}}return{dispose(){}}}let r;o()&&s((({oldExports:e,newSrc:t,config:i})=>{if("patch-prototype"===i.mode)return t=>{var i,n;for(const o in t){const s=t[o];if(console.log(`[hot-reload] Patching prototype methods of '${o}'`,{exportedItem:s}),"function"==typeof s&&s.prototype){const r=e[o];if(r){for(const e of Object.getOwnPropertyNames(s.prototype)){const t=Object.getOwnPropertyDescriptor(s.prototype,e),a=Object.getOwnPropertyDescriptor(r.prototype,e);(null===(i=null==t?void 0:t.value)||void 0===i?void 0:i.toString())!==(null===(n=null==a?void 0:a.value)||void 0===n?void 0:n.toString())&&console.log(`[hot-reload] Patching prototype method '${o}.${e}'`),Object.defineProperty(r.prototype,e,t)}t[o]=r}}}return!0}}))},41807:(e,t,i)=>{"use strict";i.d(t,{b:()=>s});var n=i(81940),o=i(16311);function s(e,t){return function(e,t){(0,n.e)()&&(0,o.yQ)("reload",(t=>(0,n.O)((({oldExports:i})=>{if([...Object.values(i)].some((t=>e.includes(t))))return e=>(t(void 0),!0)})))).read(t)}([e],t),e}},90028:(e,t,i)=>{"use strict";i.d(t,{Bc:()=>l,VS:()=>c,_W:()=>g,it:()=>d,nI:()=>p,nK:()=>h,oO:()=>u});var n=i(94327),o=i(24594),s=i(22467),r=i(16844),a=i(37264);class l{constructor(e="",t=!1){var i,o,s;if(this.value=e,"string"!=typeof this.value)throw(0,n.Qg)("value");"boolean"==typeof t?(this.isTrusted=t,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=null!==(i=t.isTrusted)&&void 0!==i?i:void 0,this.supportThemeIcons=null!==(o=t.supportThemeIcons)&&void 0!==o&&o,this.supportHtml=null!==(s=t.supportHtml)&&void 0!==s&&s)}appendText(e,t=0){var i;return this.value+=(i=this.supportThemeIcons?(0,o.m2)(e):e,i.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")).replace(/([ \t]+)/g,((e,t)=>" ".repeat(t.length))).replace(/\>/gm,"\\>").replace(/\n/g,1===t?"\\\n":"\n\n"),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,t){return this.value+=`\n${function(e,t){var i,n;const o=null!==(n=null===(i=e.match(/^`+/gm))||void 0===i?void 0:i.reduce(((e,t)=>e.length>t.length?e:t)).length)&&void 0!==n?n:0,s=o>=3?o+1:3;return[`${"`".repeat(s)}${t}`,e,`${"`".repeat(s)}`].join("\n")}(t,e)}\n`,this}appendLink(e,t,i){return this.value+="[",this.value+=this._escape(t,"]"),this.value+="](",this.value+=this._escape(String(e),")"),i&&(this.value+=` "${this._escape(this._escape(i,'"'),")")}"`),this.value+=")",this}_escape(e,t){const i=new RegExp((0,r.bm)(t),"g");return e.replace(i,((t,i)=>"\\"!==e.charAt(i-1)?`\\${t}`:t))}}function d(e){return c(e)?!e.value:!Array.isArray(e)||e.every(d)}function c(e){return e instanceof l||!(!e||"object"!=typeof e)&&!("string"!=typeof e.value||"boolean"!=typeof e.isTrusted&&"object"!=typeof e.isTrusted&&void 0!==e.isTrusted||"boolean"!=typeof e.supportThemeIcons&&void 0!==e.supportThemeIcons)}function h(e,t){return e===t||!(!e||!t)&&e.value===t.value&&e.isTrusted===t.isTrusted&&e.supportThemeIcons===t.supportThemeIcons&&e.supportHtml===t.supportHtml&&(e.baseUri===t.baseUri||!!e.baseUri&&!!t.baseUri&&(0,s.n4)(a.r.from(e.baseUri),a.r.from(t.baseUri)))}function u(e){return e.replace(/"/g,""")}function g(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!~])/g,"$1"):e}function p(e){const t=[],i=e.split("|").map((e=>e.trim()));e=i[0];const n=i[1];if(n){const e=/height=(\d+)/.exec(n),i=/width=(\d+)/.exec(n),o=e?e[1]:"",s=i?i[1]:"",r=isFinite(parseInt(s)),a=isFinite(parseInt(o));r&&t.push(`width="${s}"`),a&&t.push(`height="${o}"`)}return{href:e,dimensions:t}}},24594:(e,t,i)=>{"use strict";i.d(t,{R$:()=>p,_k:()=>f,m2:()=>d,pS:()=>g,pz:()=>v,sA:()=>h});var n=i(75637),o=i(16844),s=i(58881);const r="$(",a=new RegExp(`\\$\\(${s.L.iconNameExpression}(?:${s.L.iconModifierExpression})?\\)`,"g"),l=new RegExp(`(\\\\)?${a.source}`,"g");function d(e){return e.replace(l,((e,t)=>t?e:`\\${e}`))}const c=new RegExp(`\\\\${a.source}`,"g");function h(e){return e.replace(c,(e=>`\\${e}`))}const u=new RegExp(`(\\s)?(\\\\)?${a.source}(\\s)?`,"g");function g(e){return-1===e.indexOf(r)?e:e.replace(u,((e,t,i,n)=>i?e:t||n||""))}function p(e){return e?e.replace(/\$\((.*?)\)/g,((e,t)=>` ${t} `)).trim():""}const m=new RegExp(`\\$\\(${s.L.iconNameCharacter}+\\)`,"g");function f(e){m.lastIndex=0;let t="";const i=[];let n=0;for(;;){const o=m.lastIndex,s=m.exec(e),r=e.substring(o,null==s?void 0:s.index);if(r.length>0){t+=r;for(let e=0;e{"use strict";i.d(t,{n:()=>n,r:()=>o});class n{constructor(e){this._prefix=e,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}const o=new n("id#")},37043:(e,t,i)=>{"use strict";i.d(t,{M:()=>o});var n=i(2106);const o=new class{constructor(){this._onDidChange=new n.vl,this.onDidChange=this._onDidChange.event,this._enabled=!0}get enabled(){return this._enabled}enable(){this._enabled=!0,this._onDidChange.fire()}disable(){this._enabled=!1,this._onDidChange.fire()}}},17954:(e,t,i)=>{"use strict";var n;i.d(t,{f:()=>n}),function(e){function t(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]}e.is=t;const i=Object.freeze([]);function*n(e){yield e}e.empty=function(){return i},e.single=n,e.wrap=function(e){return t(e)?e:n(e)},e.from=function(e){return e||i},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let i=0;for(const n of e)if(t(n,i++))return!0;return!1},e.find=function(e,t){for(const i of e)if(t(i))return i},e.filter=function*(e,t){for(const i of e)t(i)&&(yield i)},e.map=function*(e,t){let i=0;for(const n of e)yield t(n,i++)},e.flatMap=function*(e,t){let i=0;for(const n of e)yield*t(n,i++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,i){let n=i;for(const i of e)n=t(n,i);return n},e.slice=function*(e,t,i=e.length){for(t<0&&(t+=e.length),i<0?i+=e.length:i>e.length&&(i=e.length);to}]},e.asyncToArray=async function(e){const t=[];for await(const i of e)t.push(i);return Promise.resolve(t)}}(n||(n={}))},68387:(e,t,i)=>{"use strict";i.d(t,{Fo:()=>u,YM:()=>p,m5:()=>m,uw:()=>a});class n{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const o=new n,s=new n,r=new n,a=new Array(230),l={},d=[],c=Object.create(null),h=Object.create(null),u=[],g=[];for(let e=0;e<=193;e++)u[e]=-1;for(let e=0;e<=132;e++)g[e]=-1;var p;function m(e,t){return(e|(65535&t)<<16>>>0)>>>0}!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],i=[],n=[];for(const e of t){const[t,p,m,f,v,_,b,w,y]=e;if(n[p]||(n[p]=!0,d[p]=m,c[m]=p,h[m.toLowerCase()]=p,t&&(u[p]=f,0!==f&&3!==f&&5!==f&&4!==f&&6!==f&&57!==f&&(g[f]=p))),!i[f]){if(i[f]=!0,!v)throw new Error(`String representation missing for key code ${f} around scan code ${m}`);o.define(f,v),s.define(f,w||v),r.define(f,y||w||v)}_&&(a[_]=f),b&&(l[b]=f)}g[3]=46}(),function(e){e.toString=function(e){return o.keyCodeToStr(e)},e.fromString=function(e){return o.strToKeyCode(e)},e.toUserSettingsUS=function(e){return s.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return r.keyCodeToStr(e)},e.fromUserSettings=function(e){return s.strToKeyCode(e)||r.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return o.keyCodeToStr(e)}}(p||(p={}))},98315:(e,t,i)=>{"use strict";i.d(t,{G$:()=>l,Of:()=>s,r0:()=>r,rr:()=>a});var n=i(3765);class o{constructor(e,t,i=t){this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=i}toLabel(e,t,i){if(0===t.length)return null;const n=[];for(let o=0,s=t.length;o{"use strict";i.d(t,{FW:()=>l,Zv:()=>o,dG:()=>r,z5:()=>d});var n=i(94327);function o(e,t){if("number"==typeof e){if(0===e)return null;const i=(65535&e)>>>0,n=(4294901760&e)>>>16;return new a(0!==n?[s(i,t),s(n,t)]:[s(i,t)])}{const i=[];for(let n=0;n{"use strict";i.d(t,{d:()=>n});class n{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}},10998:(e,t,i)=>{"use strict";i.d(t,{$w:()=>b,AS:()=>h,Ay:()=>r,BO:()=>_,Cm:()=>p,HE:()=>f,VD:()=>a,Xm:()=>c,jG:()=>m,lC:()=>d,mp:()=>v,qE:()=>u,s:()=>g});var n=i(48289),o=i(17954);let s=null;function r(e){return null==s||s.trackDisposable(e),e}function a(e){null==s||s.markAsDisposed(e)}function l(e,t){null==s||s.setParent(e,t)}function d(e){return null==s||s.markAsSingleton(e),e}function c(e){return"object"==typeof e&&null!==e&&"function"==typeof e.dispose&&0===e.dispose.length}function h(e){if(o.f.is(e)){const t=[];for(const i of e)if(i)try{i.dispose()}catch(e){t.push(e)}if(1===t.length)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function u(...e){const t=g((()=>h(e)));return function(e,t){if(s)for(const i of e)s.setParent(i,t)}(e,t),t}function g(e){const t=r({dispose:(0,n.P)((()=>{a(t),e()}))});return t}class p{constructor(){this._toDispose=new Set,this._isDisposed=!1,r(this)}dispose(){this._isDisposed||(a(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{h(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return l(e,this),this._isDisposed?p.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),l(e,null))}}p.DISABLE_DISPOSED_WARNING=!1;class m{constructor(){this._store=new p,r(this),l(this._store,this)}dispose(){a(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}m.None=Object.freeze({dispose(){}});class f{constructor(){this._isDisposed=!1,r(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||(null===(t=this._value)||void 0===t||t.dispose(),e&&l(e,this),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,a(this),null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}}class v{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return 0==--this._counter&&this._disposable.dispose(),this}}class _{constructor(e){this.object=e}dispose(){}}class b{constructor(){this._store=new Map,this._isDisposed=!1,r(this)}dispose(){a(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{h(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,i=!1){var n;this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),i||null===(n=this._store.get(e))||void 0===n||n.dispose(),this._store.set(e,t)}deleteAndDispose(e){var t;null===(t=this._store.get(e))||void 0===t||t.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},85525:(e,t,i)=>{"use strict";i.d(t,{w:()=>o});class n{constructor(e){this.element=e,this.next=n.Undefined,this.prev=n.Undefined}}n.Undefined=new n(void 0);class o{constructor(){this._first=n.Undefined,this._last=n.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===n.Undefined}clear(){let e=this._first;for(;e!==n.Undefined;){const t=e.next;e.prev=n.Undefined,e.next=n.Undefined,e=t}this._first=n.Undefined,this._last=n.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const i=new n(e);if(this._first===n.Undefined)this._first=i,this._last=i;else if(t){const e=this._last;this._last=i,i.prev=e,e.next=i}else{const e=this._first;this._first=i,i.next=e,e.prev=i}this._size+=1;let o=!1;return()=>{o||(o=!0,this._remove(i))}}shift(){if(this._first!==n.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==n.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==n.Undefined&&e.next!==n.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===n.Undefined&&e.next===n.Undefined?(this._first=n.Undefined,this._last=n.Undefined):e.next===n.Undefined?(this._last=this._last.prev,this._last.next=n.Undefined):e.prev===n.Undefined&&(this._first=this._first.next,this._first.prev=n.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==n.Undefined;)yield e.element,e=e.next}}},27992:(e,t,i)=>{"use strict";var n,o;i.d(t,{cO:()=>c,db:()=>h,fT:()=>r,qK:()=>d});class s{constructor(e,t){this.uri=e,this.value=t}}class r{constructor(e,t){if(this[n]="ResourceMap",e instanceof r)this.map=new Map(e.map),this.toKey=null!=t?t:r.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=null!=t?t:r.defaultToKey;for(const[t,i]of e)this.set(t,i)}else this.map=new Map,this.toKey=null!=e?e:r.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new s(e,t)),this}get(e){var t;return null===(t=this.map.get(this.toKey(e)))||void 0===t?void 0:t.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){void 0!==t&&(e=e.bind(t));for(const[t,i]of this.map)e(i.value,i.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(n=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}r.defaultToKey=e=>e.toString();class a{constructor(){this[o]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return null===(e=this._head)||void 0===e?void 0:e.value}get last(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){const i=this._map.get(e);if(i)return 0!==t&&this.touch(i,t),i.value}set(e,t,i=0){let n=this._map.get(e);if(n)n.value=t,0!==i&&this.touch(n,i);else{switch(n={key:e,value:t,next:void 0,previous:void 0},i){case 0:case 2:default:this.addItemLast(n);break;case 1:this.addItemFirst(n)}this._map.set(e,n),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const i=this._state;let n=this._head;for(;n;){if(t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),this._state!==i)throw new Error("LinkedMap got modified during iteration.");n=n.next}}keys(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.key,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}values(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:i.value,done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}entries(){const e=this,t=this._state;let i=this._head;const n={[Symbol.iterator]:()=>n,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(i){const e={value:[i.key,i.value],done:!1};return i=i.next,e}return{value:void 0,done:!0}}};return n}[(o=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._tail,i=this.size;for(;t&&i>e;)this._map.delete(t.key),t=t.previous,i--;this._tail=t,this._size=i,t&&(t.next=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(t.previous=i,i.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,i=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=i,i.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,i)=>{e.push([i,t])})),e}fromJSON(e){this.clear();for(const[t,i]of e)this.set(t,i)}}class l extends a{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class d extends l{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}}class c{constructor(e){if(this._m1=new Map,this._m2=new Map,e)for(const[t,i]of e)this.set(t,i)}clear(){this._m1.clear(),this._m2.clear()}set(e,t){this._m1.set(e,t),this._m2.set(t,e)}get(e){return this._m1.get(e)}getKey(e){return this._m2.get(e)}delete(e){const t=this._m1.get(e);return void 0!==t&&(this._m1.delete(e),this._m2.delete(t),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class h{constructor(){this.map=new Map}add(e,t){let i=this.map.get(e);i||(i=new Set,this.map.set(e,i)),i.add(t)}delete(e,t){const i=this.map.get(e);i&&(i.delete(t),0===i.size&&this.map.delete(e))}forEach(e,t){const i=this.map.get(e);i&&i.forEach(t)}get(e){return this.map.get(e)||new Set}}},50180:(e,t,i)=>{"use strict";i.d(t,{As:()=>s,qg:()=>r});var n=i(42802),o=i(37264);function s(e){return JSON.stringify(e,a)}function r(e){let t=JSON.parse(e);return t=l(t),t}function a(e,t){return t instanceof RegExp?{$mid:2,source:t.source,flags:t.flags}:t}function l(e,t=0){if(!e||t>200)return e;if("object"==typeof e){switch(e.$mid){case 1:return o.r.revive(e);case 2:return new RegExp(e.source,e.flags);case 17:return new Date(e.source)}if(e instanceof n.MB||e instanceof Uint8Array)return e;if(Array.isArray(e))for(let i=0;i{"use strict";i.d(t,{K:()=>n});const n=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"})},13072:(e,t,i)=>{"use strict";i.d(t,{Ez:()=>h,fV:()=>c,ny:()=>n,v$:()=>d,zl:()=>g});var n,o=i(94327),s=i(63339),r=i(16844),a=i(37264),l=i(18019);function d(e,t){return a.r.isUri(e)?(0,r.Q_)(e.scheme,t):(0,r.ns)(e,t+":")}function c(e,...t){return t.some((t=>d(e,t)))}!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeCopilotBackingChatCodeBlock="vscode-copilot-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting"}(n||(n={}));const h=new class{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(e){this._preferredWebSchema=e}get _remoteResourcesPath(){return l.SA.join(this._serverRootPath,n.vscodeRemoteResource)}rewrite(e){if(this._delegate)try{return this._delegate(e)}catch(t){return o.dz(t),e}const t=e.authority;let i=this._hosts[t];i&&-1!==i.indexOf(":")&&-1===i.indexOf("[")&&(i=`[${i}]`);const r=this._ports[t],l=this._connectionTokens[t];let d=`path=${encodeURIComponent(e.path)}`;return"string"==typeof l&&(d+=`&tkn=${encodeURIComponent(l)}`),a.r.from({scheme:s.HZ?this._preferredWebSchema:n.vscodeRemoteResource,authority:`${i}:${r}`,path:this._remoteResourcesPath,query:d})}};class u{uriToBrowserUri(e){return e.scheme===n.vscodeRemote?h.rewrite(e):e.scheme!==n.file||!s.ib&&s.lg!==`${n.vscodeFileResource}://${u.FALLBACK_AUTHORITY}`?e:e.with({scheme:n.vscodeFileResource,authority:e.authority||u.FALLBACK_AUTHORITY,query:null,fragment:null})}}u.FALLBACK_AUTHORITY="vscode-app";const g=new u;var p;!function(e){const t=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const i="vscode-coi";e.getHeadersFromQuery=function(e){let n;"string"==typeof e?n=new URL(e).searchParams:e instanceof URL?n=e.searchParams:a.r.isUri(e)&&(n=new URL(e.toString(!0)).searchParams);const o=null==n?void 0:n.get(i);if(o)return t.get(o)},e.addSearchParam=function(e,t,n){if(!globalThis.crossOriginIsolated)return;const o=t&&n?"3":n?"2":"1";e instanceof URLSearchParams?e.set(i,o):e[i]=o}}(p||(p={}))},62992:(e,t,i)=>{"use strict";function n(e,t,i){return Math.min(Math.max(e,t),i)}i.d(t,{Uq:()=>o,mu:()=>s,qE:()=>n});class o{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class s{constructor(e){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(e),this._values.fill(0,0,e)}update(e){const t=this._values[this._index];return this._values[this._index]=e,this._index=(this._index+1)%this._values.length,this._sum-=t,this._sum+=e,this._n{"use strict";i.d(t,{Go:()=>o,PI:()=>a,V0:()=>h,aI:()=>c,co:()=>d,kT:()=>u,ol:()=>s});var n=i(79359);function o(e){if(!e||"object"!=typeof e)return e;if(e instanceof RegExp)return e;const t=Array.isArray(e)?[]:{};return Object.entries(e).forEach((([e,i])=>{t[e]=i&&"object"==typeof i?o(i):i})),t}function s(e){if(!e||"object"!=typeof e)return e;const t=[e];for(;t.length>0;){const e=t.shift();Object.freeze(e);for(const i in e)if(r.call(e,i)){const o=e[i];"object"!=typeof o||Object.isFrozen(o)||(0,n.iu)(o)||t.push(o)}}return e}const r=Object.prototype.hasOwnProperty;function a(e,t){return l(e,t,new Set)}function l(e,t,i){if((0,n.z)(e))return e;const o=t(e);if(void 0!==o)return o;if(Array.isArray(e)){const n=[];for(const o of e)n.push(l(o,t,i));return n}if((0,n.Gv)(e)){if(i.has(e))throw new Error("Cannot clone recursive data-structure");i.add(e);const n={};for(const o in e)r.call(e,o)&&(n[o]=l(e[o],t,i));return i.delete(e),n}return e}function d(e,t,i=!0){return(0,n.Gv)(e)?((0,n.Gv)(t)&&Object.keys(t).forEach((o=>{o in e?i&&((0,n.Gv)(e[o])&&(0,n.Gv)(t[o])?d(e[o],t[o],i):e[o]=t[o]):e[o]=t[o]})),e):t}function c(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let i,n;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(i=0;ifunction(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},n={};for(const t of e)n[t]=i(t);return n}},16311:(e,t,i)=>{"use strict";i.d(t,{BK:()=>v,fm:()=>d,Y:()=>h,zL:()=>c,yC:()=>g,ht:()=>u,lk:()=>m.lk,un:()=>o.un,nb:()=>o.nb,ZX:()=>m.ZX,C:()=>o.C,rm:()=>o.rm,X2:()=>n.X2,y0:()=>m.y0,Yd:()=>m.Yd,yQ:()=>m.yQ,FY:()=>n.FY,Zh:()=>C,OI:()=>m.OI,PO:()=>n.PO,Rn:()=>n.Rn,oJ:()=>b});var n=i(34442),o=i(18366),s=i(87110),r=i(10998),a=i(49855),l=i(34950);function d(e){return new p(new a.nA(void 0,void 0,e),e,void 0,void 0)}function c(e,t){var i;return new p(new a.nA(e.owner,e.debugName,null!==(i=e.debugReferenceFn)&&void 0!==i?i:t),t,void 0,void 0)}function h(e,t){var i;return new p(new a.nA(e.owner,e.debugName,null!==(i=e.debugReferenceFn)&&void 0!==i?i:t),t,e.createEmptyChangeSummary,e.handleChange)}function u(e,t){var i;const n=new r.Cm,o=h({owner:e.owner,debugName:e.debugName,debugReferenceFn:null!==(i=e.debugReferenceFn)&&void 0!==i?i:t,createEmptyChangeSummary:e.createEmptyChangeSummary,handleChange:e.handleChange},((e,i)=>{n.clear(),t(e,i,n)}));return(0,r.s)((()=>{o.dispose(),n.dispose()}))}function g(e){const t=new r.Cm,i=c({owner:void 0,debugName:void 0,debugReferenceFn:e},(i=>{t.clear(),e(i,t)}));return(0,r.s)((()=>{i.dispose(),t.dispose()}))}class p{get debugName(){var e;return null!==(e=this._debugNameData.getDebugName(this))&&void 0!==e?e:"(anonymous)"}constructor(e,t,i,n){var o,s;this._debugNameData=e,this._runFn=t,this.createChangeSummary=i,this._handleChange=n,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=null===(o=this.createChangeSummary)||void 0===o?void 0:o.call(this),null===(s=(0,l.tZ)())||void 0===s||s.handleAutorunCreated(this),this._runIfNeeded(),(0,r.Ay)(this)}dispose(){this.disposed=!0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),(0,r.VD)(this)}_runIfNeeded(){var e,t,i;if(3===this.state)return;const n=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=n,this.state=3;const o=this.disposed;try{if(!o){null===(e=(0,l.tZ)())||void 0===e||e.handleAutorunTriggered(this);const i=this.changeSummary;this.changeSummary=null===(t=this.createChangeSummary)||void 0===t?void 0:t.call(this),this._runFn(this,i)}}finally{o||null===(i=(0,l.tZ)())||void 0===i||i.handleAutorunFinished(this);for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){3===this.state&&(this.state=1),this.updateCount++}endUpdate(){if(1===this.updateCount)do{if(1===this.state){this.state=3;for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break}this._runIfNeeded()}while(3!==this.state);this.updateCount--,(0,s.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary))&&(this.state=2)}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}}!function(e){e.Observer=p}(d||(d={}));var m=i(12146),f=i(94327);class v{static fromFn(e){return new v(e())}constructor(e){this._value=(0,n.FY)(this,void 0),this.promiseResult=this._value,this.promise=e.then((e=>((0,n.Rn)((t=>{this._value.set(new _(e,void 0),t)})),e)),(e=>{throw(0,n.Rn)((t=>{this._value.set(new _(void 0,e),t)})),e}))}}class _{constructor(e,t){this.data=e,this.error=t}}function b(e,t,i,n){return t||(t=e=>null!=e),new Promise(((o,s)=>{let r=!0,a=!1;const l=e.map((e=>({isFinished:t(e),error:!!i&&i(e),state:e}))),c=d((e=>{const{isFinished:t,error:i,state:n}=l.read(e);(t||i)&&(r?a=!0:c.dispose(),i?s(!0===i?n:i):o(n))}));if(n){const e=n.onCancellationRequested((()=>{c.dispose(),e.dispose(),s(new f.AL)}));if(n.isCancellationRequested)return c.dispose(),e.dispose(),void s(new f.AL)}r=!1,a&&c.dispose()}))}var w=i(8897);class y extends n.ZK{get debugName(){var e;return null!==(e=this._debugNameData.getDebugName(this))&&void 0!==e?e:"LazyObservableValue"}constructor(e,t,i){super(),this._debugNameData=e,this._equalityComparator=i,this._isUpToDate=!0,this._deltas=[],this._updateCounter=0,this._value=t}get(){return this._update(),this._value}_update(){if(!this._isUpToDate)if(this._isUpToDate=!0,this._deltas.length>0){for(const e of this.observers)for(const t of this._deltas)e.handleChange(this,t);this._deltas.length=0}else for(const e of this.observers)e.handleChange(this,void 0)}_beginUpdate(){if(this._updateCounter++,1===this._updateCounter)for(const e of this.observers)e.beginUpdate(this)}_endUpdate(){if(this._updateCounter--,0===this._updateCounter){this._update();const e=[...this.observers];for(const t of e)t.endUpdate(this)}}addObserver(e){const t=!this.observers.has(e)&&this._updateCounter>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this._updateCounter>0;super.removeObserver(e),t&&e.endUpdate(this)}set(e,t,i){if(void 0===i&&this._equalityComparator(this._value,e))return;let o;t||(t=o=new n.XL((()=>{}),(()=>`Setting ${this.debugName}`)));try{if(this._isUpToDate=!1,this._setValue(e),void 0!==i&&this._deltas.push(i),t.updateObserver({beginUpdate:()=>this._beginUpdate(),endUpdate:()=>this._endUpdate(),handleChange:(e,t)=>{},handlePossibleChange:e=>{}},this),this._updateCounter>1)for(const e of this.observers)e.handlePossibleChange(this)}finally{o&&o.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}}function C(e,t){var i,o;return e.lazy?new y(new a.nA(e.owner,e.debugName,void 0),t,null!==(i=e.equalsFn)&&void 0!==i?i:w.nx):new n.Lj(new a.nA(e.owner,e.debugName,void 0),t,null!==(o=e.equalsFn)&&void 0!==o?o:w.nx)}},34442:(e,t,i)=>{"use strict";i.d(t,{Bm:()=>c,FB:()=>h,FY:()=>w,Lj:()=>y,N2:()=>u,PO:()=>_,Rn:()=>m,X2:()=>C,XL:()=>b,YY:()=>f,ZK:()=>p,fL:()=>v,zV:()=>g});var n=i(8897),o=i(49855),s=i(34950);let r,a,l,d;function c(e){r=e}function h(e){a=e}function u(e){l=e}class g{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e,t){const i=void 0===t?void 0:e,n=void 0===t?e:t;return l({owner:i,debugName:()=>{const e=(0,o.qQ)(n);if(void 0!==e)return e;const t=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(n.toString());return t?`${this.debugName}.${t[2]}`:i?void 0:`${this.debugName} (mapped)`},debugReferenceFn:n},(e=>n(this.read(e),e)))}recomputeInitiallyAndOnChange(e,t){return e.add(r(this,t)),this}keepObserved(e){return e.add(a(this)),this}}class p extends g{constructor(){super(...arguments),this.observers=new Set}addObserver(e){const t=this.observers.size;this.observers.add(e),0===t&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&0===this.observers.size&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function m(e,t){const i=new b(e,t);try{e(i)}finally{i.finish()}}function f(e){if(d)e(d);else{const t=new b(e,void 0);d=t;try{e(t)}finally{t.finish(),d=void 0}}}async function v(e,t){const i=new b(e,t);try{await e(i)}finally{i.finish()}}function _(e,t,i){e?t(e):m(t,i)}class b{constructor(e,t){var i;this._fn=e,this._getDebugName=t,this.updatingObservers=[],null===(i=(0,s.tZ)())||void 0===i||i.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():(0,o.qQ)(this._fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){var e;const t=this.updatingObservers;for(let e=0;e{}),(()=>`Setting ${this.debugName}`)));try{const o=this._value;this._setValue(e),null===(n=(0,s.tZ)())||void 0===n||n.handleObservableChanged(this,{oldValue:o,newValue:e,change:i,didChange:!0,hadValue:!0});for(const e of this.observers)t.updateObserver(e,this),e.handleChange(this,i)}finally{o&&o.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}}function C(e,t){let i;return i="string"==typeof e?new o.nA(void 0,e,void 0):new o.nA(e,void 0,void 0),new k(i,t,n.nx)}class k extends y{_setValue(e){this._value!==e&&(this._value&&this._value.dispose(),this._value=e)}dispose(){var e;null===(e=this._value)||void 0===e||e.dispose()}}},49855:(e,t,i)=>{"use strict";i.d(t,{nA:()=>n,qQ:()=>l});class n{constructor(e,t,i){this.owner=e,this.debugNameSource=t,this.referenceFn=i}getDebugName(e){return function(e,t){var i;const n=s.get(e);if(n)return n;const d=function(e,t){const i=s.get(e);if(i)return i;const n=t.owner?function(e){var t;const i=a.get(e);if(i)return i;const n=function(e){const t=e.constructor;return t?t.name:"Object"}(e);let o=null!==(t=r.get(n))&&void 0!==t?t:0;o++,r.set(n,o);const s=1===o?n:`${n}#${o}`;return a.set(e,s),s}(t.owner)+".":"";let o;const d=t.debugNameSource;if(void 0!==d){if("function"!=typeof d)return n+d;if(o=d(),void 0!==o)return n+o}const c=t.referenceFn;if(void 0!==c&&(o=l(c),void 0!==o))return n+o;if(void 0!==t.owner){const i=function(e,t){for(const i in e)if(e[i]===t)return i}(t.owner,e);if(void 0!==i)return n+i}}(e,t);if(d){let t=null!==(i=o.get(d))&&void 0!==i?i:0;t++,o.set(d,t);const n=1===t?d:`${d}#${t}`;return s.set(e,n),n}}(e,this)}}const o=new Map,s=new WeakMap,r=new Map,a=new WeakMap;function l(e){const t=e.toString(),i=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(t),n=i?i[1]:void 0;return null==n?void 0:n.trim()}},18366:(e,t,i)=>{"use strict";i.d(t,{C:()=>h,a0:()=>p,dQ:()=>c,nb:()=>u,rm:()=>g,un:()=>d});var n=i(87110),o=i(8897),s=i(10998),r=i(34442),a=i(49855),l=i(34950);function d(e,t){return void 0!==t?new m(new a.nA(e,void 0,t),t,void 0,void 0,void 0,o.nx):new m(new a.nA(void 0,void 0,e),e,void 0,void 0,void 0,o.nx)}function c(e,t,i){return new f(new a.nA(e,void 0,t),t,void 0,void 0,void 0,o.nx,i)}function h(e,t){var i;return new m(new a.nA(e.owner,e.debugName,e.debugReferenceFn),t,void 0,void 0,e.onLastObserverRemoved,null!==(i=e.equalsFn)&&void 0!==i?i:o.nx)}function u(e,t){var i;return new m(new a.nA(e.owner,e.debugName,void 0),t,e.createEmptyChangeSummary,e.handleChange,void 0,null!==(i=e.equalityComparer)&&void 0!==i?i:o.nx)}function g(e,t){let i,n;void 0===t?(i=e,n=void 0):(n=e,i=t);const r=new s.Cm;return new m(new a.nA(n,void 0,i),(e=>(r.clear(),i(e,r))),void 0,void 0,(()=>r.dispose()),o.nx)}function p(e,t){let i,n,r;return void 0===t?(i=e,n=void 0):(n=e,i=t),new m(new a.nA(n,void 0,i),(e=>{r?r.clear():r=new s.Cm;const t=i(e);return t&&r.add(t),t}),void 0,void 0,(()=>{r&&(r.dispose(),r=void 0)}),o.nx)}(0,r.N2)(h);class m extends r.ZK{get debugName(){var e;return null!==(e=this._debugNameData.getDebugName(this))&&void 0!==e?e:"(anonymous)"}constructor(e,t,i,n,o=void 0,s){var r,a;super(),this._debugNameData=e,this._computeFn=t,this.createChangeSummary=i,this._handleChange=n,this._handleLastObserverRemoved=o,this._equalityComparator=s,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=null===(r=this.createChangeSummary)||void 0===r?void 0:r.call(this),null===(a=(0,l.tZ)())||void 0===a||a.handleDerivedCreated(this)}onLastObserverRemoved(){var e;this.state=0,this.value=void 0;for(const e of this.dependencies)e.removeObserver(this);this.dependencies.clear(),null===(e=this._handleLastObserverRemoved)||void 0===e||e.call(this)}get(){var e;if(0===this.observers.size){const t=this._computeFn(this,null===(e=this.createChangeSummary)||void 0===e?void 0:e.call(this));return this.onLastObserverRemoved(),t}do{if(1===this.state)for(const e of this.dependencies)if(e.reportChanges(),2===this.state)break;1===this.state&&(this.state=3),this._recomputeIfNeeded()}while(3!==this.state);return this.value}_recomputeIfNeeded(){var e,t;if(3===this.state)return;const i=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=i;const n=0!==this.state,o=this.value;this.state=3;const s=this.changeSummary;this.changeSummary=null===(e=this.createChangeSummary)||void 0===e?void 0:e.call(this);try{this.value=this._computeFn(this,s)}finally{for(const e of this.dependenciesToBeRemoved)e.removeObserver(this);this.dependenciesToBeRemoved.clear()}const r=n&&!this._equalityComparator(o,this.value);if(null===(t=(0,l.tZ)())||void 0===t||t.handleDerivedRecomputed(this,{oldValue:o,newValue:this.value,change:void 0,didChange:r,hadValue:n}),r)for(const e of this.observers)e.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;const t=1===this.updateCount;if(3===this.state&&(this.state=1,!t))for(const e of this.observers)e.handlePossibleChange(this);if(t)for(const e of this.observers)e.beginUpdate(this)}endUpdate(e){if(this.updateCount--,0===this.updateCount){const e=[...this.observers];for(const t of e)t.endUpdate(this)}(0,n.Ft)((()=>this.updateCount>=0))}handlePossibleChange(e){if(3===this.state&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(const e of this.observers)e.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){const i=!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:t=>t===e},this.changeSummary),n=3===this.state;if(i&&(1===this.state||n)&&(this.state=2,n))for(const e of this.observers)e.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);const t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){const t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){const t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}class f extends m{constructor(e,t,i,n,o=void 0,s,r){super(e,t,i,n,o,s),this.set=r}}},34950:(e,t,i)=>{"use strict";let n;function o(e){n=e}function s(){return n}i.d(t,{Br:()=>o,jm:()=>r,tZ:()=>s});class r{constructor(){this.indentation=0,this.changedObservablesSets=new WeakMap}textToConsoleArgs(e){return function(e){const t=new Array,i=[];let n="";!function e(o){if("length"in o)for(const t of o)t&&e(t);else"text"in o?(n+=`%c${o.text}`,t.push(o.style),o.data&&i.push(...o.data)):"data"in o&&i.push(...o.data)}(e);const o=[n,...t];return o.push(...i),o}([a(h("| ",this.indentation)),e])}formatInfo(e){return e.hadValue?e.didChange?[a(" "),d(c(e.oldValue,70),{color:"red",strikeThrough:!0}),a(" "),d(c(e.newValue,60),{color:"green"})]:[a(" (unchanged)")]:[a(" "),d(c(e.newValue,60),{color:"green"}),a(" (initial)")]}handleObservableChanged(e,t){console.log(...this.textToConsoleArgs([l("observable value changed"),d(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t)]))}formatChanges(e){if(0!==e.size)return d(" (changed deps: "+[...e].map((e=>e.debugName)).join(", ")+")",{color:"gray"})}handleDerivedCreated(e){const t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(i,n)=>(this.changedObservablesSets.get(e).add(i),t.apply(e,[i,n]))}handleDerivedRecomputed(e,t){var i;const n=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([l("derived recomputed"),d(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t),this.formatChanges(n),{data:[{fn:null!==(i=e._debugNameData.referenceFn)&&void 0!==i?i:e._computeFn}]}])),n.clear()}handleFromEventObservableTriggered(e,t){console.log(...this.textToConsoleArgs([l("observable from event triggered"),d(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t),{data:[{fn:e._getValue}]}]))}handleAutorunCreated(e){const t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(i,n)=>(this.changedObservablesSets.get(e).add(i),t.apply(e,[i,n]))}handleAutorunTriggered(e){var t;const i=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([l("autorun"),d(e.debugName,{color:"BlueViolet"}),this.formatChanges(i),{data:[{fn:null!==(t=e._debugNameData.referenceFn)&&void 0!==t?t:e._runFn}]}])),i.clear(),this.indentation++}handleAutorunFinished(e){this.indentation--}handleBeginTransaction(e){let t=e.getDebugName();void 0===t&&(t=""),console.log(...this.textToConsoleArgs([l("transaction"),d(t,{color:"BlueViolet"}),{data:[{fn:e._fn}]}])),this.indentation++}handleEndTransaction(){this.indentation--}}function a(e){return d(e,{color:"black"})}function l(e){return d(function(e,t){for(;e.length<10;)e+=" ";return e}(`${e}: `),{color:"black",bold:!0})}function d(e,t={color:"black"}){const i={color:t.color};return t.strikeThrough&&(i["text-decoration"]="line-through"),t.bold&&(i["font-weight"]="bold"),{text:e,style:(n=i,Object.entries(n).reduce(((e,[t,i])=>`${e}${t}:${i};`),""))};var n}function c(e,t){switch(typeof e){case"number":default:return""+e;case"string":return e.length+2<=t?`"${e}"`:`"${e.substr(0,t-7)}"+...`;case"boolean":return e?"true":"false";case"undefined":return"undefined";case"object":return null===e?"null":Array.isArray(e)?function(e,t){let i="[ ",n=!0;for(const o of e){if(n||(i+=", "),i.length-5>t){i+="...";break}n=!1,i+=`${c(o,t-i.length)}`}return i+=" ]",i}(e,t):function(e,t){let i="{ ",n=!0;for(const[o,s]of Object.entries(e)){if(n||(i+=", "),i.length-5>t){i+="...";break}n=!1,i+=`${o}: ${c(s,t-i.length)}`}return i+=" }",i}(e,t);case"symbol":return e.toString();case"function":return`[[Function${e.name?" "+e.name:""}]]`}}function h(e,t){let i="";for(let n=1;n<=t;n++)i+=e;return i}},12146:(e,t,i)=>{"use strict";i.d(t,{OI:()=>_,Rl:()=>y,Yd:()=>f,ZX:()=>w,eP:()=>u,lk:()=>d,y0:()=>h,yQ:()=>p}),i(2106);var n=i(10998),o=i(34442),s=i(49855),r=i(18366),a=i(34950),l=i(8897);function d(e){return new c(e)}class c extends o.zV{constructor(e){super(),this.value=e}get debugName(){return this.toString()}get(){return this.value}addObserver(e){}removeObserver(e){}toString(){return`Const: ${this.value}`}}function h(...e){let t,i,n;return 3===e.length?[t,i,n]=e:[i,n]=e,new g(new s.nA(t,void 0,n),i,n,(()=>g.globalTransaction),l.nx)}function u(e,t,i){var n,o;return new g(new s.nA(e.owner,e.debugName,null!==(n=e.debugReferenceFn)&&void 0!==n?n:i),t,i,(()=>g.globalTransaction),null!==(o=e.equalsFn)&&void 0!==o?o:l.nx)}class g extends o.ZK{constructor(e,t,i,n,s){super(),this._debugNameData=e,this.event=t,this._getValue=i,this._getTransaction=n,this._equalityComparator=s,this.hasValue=!1,this.handleEvent=e=>{var t;const i=this._getValue(e),n=this.value,s=!this.hasValue||!this._equalityComparator(n,i);let r=!1;s&&(this.value=i,this.hasValue&&(r=!0,(0,o.PO)(this._getTransaction(),(e=>{var t;null===(t=(0,a.tZ)())||void 0===t||t.handleFromEventObservableTriggered(this,{oldValue:n,newValue:i,change:void 0,didChange:s,hadValue:this.hasValue});for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>{const e=this.getDebugName();return"Event fired"+(e?`: ${e}`:"")}))),this.hasValue=!0),r||null===(t=(0,a.tZ)())||void 0===t||t.handleFromEventObservableTriggered(this,{oldValue:n,newValue:i,change:void 0,didChange:s,hadValue:this.hasValue})}}getDebugName(){return this._debugNameData.getDebugName(this)}get debugName(){const e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){return this.subscription?(this.hasValue||this.handleEvent(void 0),this.value):this._getValue(void 0)}}function p(e,t){return new m(e,t)}!function(e){e.Observer=g,e.batchEventsGlobally=function(e,t){let i=!1;void 0===g.globalTransaction&&(g.globalTransaction=e,i=!0);try{t()}finally{i&&(g.globalTransaction=void 0)}}}(h||(h={}));class m extends o.ZK{constructor(e,t){super(),this.debugName=e,this.event=t,this.handleEvent=()=>{(0,o.Rn)((e=>{for(const t of this.observers)e.updateObserver(t,this),t.handleChange(this,void 0)}),(()=>this.debugName))}}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0}get(){}}function f(e){return"string"==typeof e?new v(e):new v(void 0,e)}class v extends o.ZK{get debugName(){var e;return null!==(e=new s.nA(this._owner,this._debugName,void 0).getDebugName(this))&&void 0!==e?e:"Observable Signal"}toString(){return this.debugName}constructor(e,t){super(),this._debugName=e,this._owner=t}trigger(e,t){if(e)for(const i of this.observers)e.updateObserver(i,this),i.handleChange(this,t);else(0,o.Rn)((e=>{this.trigger(e,t)}),(()=>`Trigger signal ${this.debugName}`))}get(){}}function _(e,t){const i=new b(!0,t);return e.addObserver(i),t?t(e.get()):e.reportChanges(),(0,n.s)((()=>{e.removeObserver(i)}))}(0,o.FB)((function(e){const t=new b(!1,void 0);return e.addObserver(t),(0,n.s)((()=>{e.removeObserver(t)}))})),(0,o.Bm)(_);class b{constructor(e,t){this._forceRecompute=e,this._handleValue=t,this._counter=0}beginUpdate(e){this._counter++}endUpdate(e){this._counter--,0===this._counter&&this._forceRecompute&&(this._handleValue?this._handleValue(e.get()):e.reportChanges())}handlePossibleChange(e){}handleChange(e,t){}}function w(e,t){let i;return(0,r.C)({owner:e,debugReferenceFn:t},(e=>(i=t(e,i),i)))}function y(e,t,i,n){let o=new C(i,n);return(0,r.C)({debugReferenceFn:i,owner:e,onLastObserverRemoved:()=>{o.dispose(),o=new C(i)}},(e=>(o.setItems(t.read(e)),o.getItems())))}class C{constructor(e,t){this._map=e,this._keySelector=t,this._cache=new Map,this._items=[]}dispose(){this._cache.forEach((e=>e.store.dispose())),this._cache.clear()}setItems(e){const t=[],i=new Set(this._cache.keys());for(const o of e){const e=this._keySelector?this._keySelector(o):o;let s=this._cache.get(e);if(s)i.delete(e);else{const t=new n.Cm;s={out:this._map(o,t),store:t},this._cache.set(e,s)}t.push(s.out)}for(const e of i)this._cache.get(e).store.dispose(),this._cache.delete(e);this._items=t}getItems(){return this._items}}},18019:(e,t,i)=>{"use strict";i.d(t,{IN:()=>f,LC:()=>S,P8:()=>k,S8:()=>b,SA:()=>_,V8:()=>y,Vn:()=>x,hd:()=>w,pD:()=>C});var n=i(9871);const o=46,s=47,r=92,a=58;class l extends Error{constructor(e,t,i){let n;"string"==typeof t&&0===t.indexOf("not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";const o=-1!==e.indexOf(".")?"property":"argument";let s=`The "${e}" ${o} ${n} of type ${t}`;s+=". Received type "+typeof i,super(s),this.code="ERR_INVALID_ARG_TYPE"}}function d(e,t){if("string"!=typeof e)throw new l(t,"string",e)}const c="win32"===n.iD;function h(e){return e===s||e===r}function u(e){return e===s}function g(e){return e>=65&&e<=90||e>=97&&e<=122}function p(e,t,i,n){let r="",a=0,l=-1,d=0,c=0;for(let h=0;h<=e.length;++h){if(h2){const e=r.lastIndexOf(i);-1===e?(r="",a=0):(r=r.slice(0,e),a=r.length-1-r.lastIndexOf(i)),l=h,d=0;continue}if(0!==r.length){r="",a=0,l=h,d=0;continue}}t&&(r+=r.length>0?`${i}..`:"..",a=2)}else r.length>0?r+=`${i}${e.slice(l+1,h)}`:r=e.slice(l+1,h),a=h-l-1;l=h,d=0}else c===o&&-1!==d?++d:d=-1}return r}function m(e,t){!function(e,t){if(null===e||"object"!=typeof e)throw new l("pathObject","Object",e)}(t);const i=t.dir||t.root,n=t.base||`${t.name||""}${o=t.ext,o?`${"."===o[0]?"":"."}${o}`:""}`;var o;return i?i===t.root?`${i}${n}`:`${i}${e}${n}`:n}const f={resolve(...e){let t="",i="",o=!1;for(let s=e.length-1;s>=-1;s--){let l;if(s>=0){if(l=e[s],d(l,`paths[${s}]`),0===l.length)continue}else 0===t.length?l=n.bJ():(l=n._K[`=${t}`]||n.bJ(),(void 0===l||l.slice(0,2).toLowerCase()!==t.toLowerCase()&&l.charCodeAt(2)===r)&&(l=`${t}\\`));const c=l.length;let u=0,p="",m=!1;const f=l.charCodeAt(0);if(1===c)h(f)&&(u=1,m=!0);else if(h(f))if(m=!0,h(l.charCodeAt(1))){let e=2,t=e;for(;e2&&h(l.charCodeAt(2))&&(m=!0,u=3));if(p.length>0)if(t.length>0){if(p.toLowerCase()!==t.toLowerCase())continue}else t=p;if(o){if(t.length>0)break}else if(i=`${l.slice(u)}\\${i}`,o=m,m&&t.length>0)break}return i=p(i,!o,"\\",h),o?`${t}\\${i}`:`${t}${i}`||"."},normalize(e){d(e,"path");const t=e.length;if(0===t)return".";let i,n=0,o=!1;const s=e.charCodeAt(0);if(1===t)return u(s)?"\\":e;if(h(s))if(o=!0,h(e.charCodeAt(1))){let o=2,s=o;for(;o2&&h(e.charCodeAt(2))&&(o=!0,n=3));let r=n0&&h(e.charCodeAt(t-1))&&(r+="\\"),void 0===i?o?`\\${r}`:r:o?`${i}\\${r}`:`${i}${r}`},isAbsolute(e){d(e,"path");const t=e.length;if(0===t)return!1;const i=e.charCodeAt(0);return h(i)||t>2&&g(i)&&e.charCodeAt(1)===a&&h(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,i;for(let n=0;n0&&(void 0===t?t=i=o:t+=`\\${o}`)}if(void 0===t)return".";let n=!0,o=0;if("string"==typeof i&&h(i.charCodeAt(0))){++o;const e=i.length;e>1&&h(i.charCodeAt(1))&&(++o,e>2&&(h(i.charCodeAt(2))?++o:n=!1))}if(n){for(;o=2&&(t=`\\${t.slice(o)}`)}return f.normalize(t)},relative(e,t){if(d(e,"from"),d(t,"to"),e===t)return"";const i=f.resolve(e),n=f.resolve(t);if(i===n)return"";if((e=i.toLowerCase())===(t=n.toLowerCase()))return"";let o=0;for(;oo&&e.charCodeAt(s-1)===r;)s--;const a=s-o;let l=0;for(;ll&&t.charCodeAt(c-1)===r;)c--;const h=c-l,u=au){if(t.charCodeAt(l+p)===r)return n.slice(l+p+1);if(2===p)return n.slice(l+p)}a>u&&(e.charCodeAt(o+p)===r?g=p:2===p&&(g=3)),-1===g&&(g=0)}let m="";for(p=o+g+1;p<=s;++p)p!==s&&e.charCodeAt(p)!==r||(m+=0===m.length?"..":"\\..");return l+=g,m.length>0?`${m}${n.slice(l,c)}`:(n.charCodeAt(l)===r&&++l,n.slice(l,c))},toNamespacedPath(e){if("string"!=typeof e||0===e.length)return e;const t=f.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===r){if(t.charCodeAt(1)===r){const e=t.charCodeAt(2);if(63!==e&&e!==o)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(g(t.charCodeAt(0))&&t.charCodeAt(1)===a&&t.charCodeAt(2)===r)return`\\\\?\\${t}`;return e},dirname(e){d(e,"path");const t=e.length;if(0===t)return".";let i=-1,n=0;const o=e.charCodeAt(0);if(1===t)return h(o)?e:".";if(h(o)){if(i=n=1,h(e.charCodeAt(1))){let o=2,s=o;for(;o2&&h(e.charCodeAt(2))?3:2,n=i);let s=-1,r=!0;for(let i=t-1;i>=n;--i)if(h(e.charCodeAt(i))){if(!r){s=i;break}}else r=!1;if(-1===s){if(-1===i)return".";s=i}return e.slice(0,s)},basename(e,t){void 0!==t&&d(t,"suffix"),d(e,"path");let i,n=0,o=-1,s=!0;if(e.length>=2&&g(e.charCodeAt(0))&&e.charCodeAt(1)===a&&(n=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let r=t.length-1,a=-1;for(i=e.length-1;i>=n;--i){const l=e.charCodeAt(i);if(h(l)){if(!s){n=i+1;break}}else-1===a&&(s=!1,a=i+1),r>=0&&(l===t.charCodeAt(r)?-1==--r&&(o=i):(r=-1,o=a))}return n===o?o=a:-1===o&&(o=e.length),e.slice(n,o)}for(i=e.length-1;i>=n;--i)if(h(e.charCodeAt(i))){if(!s){n=i+1;break}}else-1===o&&(s=!1,o=i+1);return-1===o?"":e.slice(n,o)},extname(e){d(e,"path");let t=0,i=-1,n=0,s=-1,r=!0,l=0;e.length>=2&&e.charCodeAt(1)===a&&g(e.charCodeAt(0))&&(t=n=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(h(t)){if(!r){n=a+1;break}}else-1===s&&(r=!1,s=a+1),t===o?-1===i?i=a:1!==l&&(l=1):-1!==i&&(l=-1)}return-1===i||-1===s||0===l||1===l&&i===s-1&&i===n+1?"":e.slice(i,s)},format:m.bind(null,"\\"),parse(e){d(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.length;let n=0,s=e.charCodeAt(0);if(1===i)return h(s)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(h(s)){if(n=1,h(e.charCodeAt(1))){let t=2,o=t;for(;t0&&(t.root=e.slice(0,n));let r=-1,l=n,c=-1,u=!0,p=e.length-1,m=0;for(;p>=n;--p)if(s=e.charCodeAt(p),h(s)){if(!u){l=p+1;break}}else-1===c&&(u=!1,c=p+1),s===o?-1===r?r=p:1!==m&&(m=1):-1!==r&&(m=-1);return-1!==c&&(-1===r||0===m||1===m&&r===c-1&&r===l+1?t.base=t.name=e.slice(l,c):(t.name=e.slice(l,r),t.base=e.slice(l,c),t.ext=e.slice(r,c))),t.dir=l>0&&l!==n?e.slice(0,l-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},v=(()=>{if(c){const e=/\\/g;return()=>{const t=n.bJ().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>n.bJ()})(),_={resolve(...e){let t="",i=!1;for(let n=e.length-1;n>=-1&&!i;n--){const o=n>=0?e[n]:v();d(o,`paths[${n}]`),0!==o.length&&(t=`${o}/${t}`,i=o.charCodeAt(0)===s)}return t=p(t,!i,"/",u),i?`/${t}`:t.length>0?t:"."},normalize(e){if(d(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===s,i=e.charCodeAt(e.length-1)===s;return 0===(e=p(e,!t,"/",u)).length?t?"/":i?"./":".":(i&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(d(e,"path"),e.length>0&&e.charCodeAt(0)===s),join(...e){if(0===e.length)return".";let t;for(let i=0;i0&&(void 0===t?t=n:t+=`/${n}`)}return void 0===t?".":_.normalize(t)},relative(e,t){if(d(e,"from"),d(t,"to"),e===t)return"";if((e=_.resolve(e))===(t=_.resolve(t)))return"";const i=e.length,n=i-1,o=t.length-1,r=nr){if(t.charCodeAt(1+l)===s)return t.slice(1+l+1);if(0===l)return t.slice(1+l)}else n>r&&(e.charCodeAt(1+l)===s?a=l:0===l&&(a=0));let c="";for(l=1+a+1;l<=i;++l)l!==i&&e.charCodeAt(l)!==s||(c+=0===c.length?"..":"/..");return`${c}${t.slice(1+a)}`},toNamespacedPath:e=>e,dirname(e){if(d(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===s;let i=-1,n=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===s){if(!n){i=t;break}}else n=!1;return-1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename(e,t){void 0!==t&&d(t,"ext"),d(e,"path");let i,n=0,o=-1,r=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,l=-1;for(i=e.length-1;i>=0;--i){const d=e.charCodeAt(i);if(d===s){if(!r){n=i+1;break}}else-1===l&&(r=!1,l=i+1),a>=0&&(d===t.charCodeAt(a)?-1==--a&&(o=i):(a=-1,o=l))}return n===o?o=l:-1===o&&(o=e.length),e.slice(n,o)}for(i=e.length-1;i>=0;--i)if(e.charCodeAt(i)===s){if(!r){n=i+1;break}}else-1===o&&(r=!1,o=i+1);return-1===o?"":e.slice(n,o)},extname(e){d(e,"path");let t=-1,i=0,n=-1,r=!0,a=0;for(let l=e.length-1;l>=0;--l){const d=e.charCodeAt(l);if(d!==s)-1===n&&(r=!1,n=l+1),d===o?-1===t?t=l:1!==a&&(a=1):-1!==t&&(a=-1);else if(!r){i=l+1;break}}return-1===t||-1===n||0===a||1===a&&t===n-1&&t===i+1?"":e.slice(t,n)},format:m.bind(null,"/"),parse(e){d(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const i=e.charCodeAt(0)===s;let n;i?(t.root="/",n=1):n=0;let r=-1,a=0,l=-1,c=!0,h=e.length-1,u=0;for(;h>=n;--h){const t=e.charCodeAt(h);if(t!==s)-1===l&&(c=!1,l=h+1),t===o?-1===r?r=h:1!==u&&(u=1):-1!==r&&(u=-1);else if(!c){a=h+1;break}}if(-1!==l){const n=0===a&&i?1:a;-1===r||0===u||1===u&&r===l-1&&r===a+1?t.base=t.name=e.slice(n,l):(t.name=e.slice(n,r),t.base=e.slice(n,l),t.ext=e.slice(r,l))}return a>0?t.dir=e.slice(0,a-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};_.win32=f.win32=f,_.posix=f.posix=_;const b=c?f.normalize:_.normalize,w=c?f.resolve:_.resolve,y=c?f.relative:_.relative,C=c?f.dirname:_.dirname,k=c?f.basename:_.basename,S=c?f.extname:_.extname,x=c?f.sep:_.sep},63339:(e,t,i)=>{"use strict";var n,o,s;i.d(t,{BH:()=>O,Fr:()=>R,H8:()=>j,HZ:()=>M,OS:()=>W,UP:()=>K,_p:()=>B,cm:()=>z,gm:()=>U,ib:()=>N,j9:()=>I,lg:()=>A,m0:()=>q,nr:()=>$,uF:()=>D,un:()=>T,zx:()=>E});const r="en";let a,l,d=!1,c=!1,h=!1,u=!1,g=!1,p=!1,m=!1,f=!1,v=!1,_=!1,b=r,w=null,y=null;const C=globalThis;let k;void 0!==C.vscode&&void 0!==C.vscode.process?k=C.vscode.process:"undefined"!=typeof process&&"string"==typeof(null===(n=null===process||void 0===process?void 0:process.versions)||void 0===n?void 0:n.node)&&(k=process);const S="string"==typeof(null===(o=null==k?void 0:k.versions)||void 0===o?void 0:o.electron),x=S&&"renderer"===(null==k?void 0:k.type);if("object"==typeof k){d="win32"===k.platform,c="darwin"===k.platform,h="linux"===k.platform,u=h&&!!k.env.SNAP&&!!k.env.SNAP_REVISION,m=S,v=!!k.env.CI||!!k.env.BUILD_ARTIFACTSTAGINGDIRECTORY,a=r,b=r;const e=k.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);a=t.userLocale,w=t.osLocale,b=t.resolvedLanguage||r,y=null===(s=t.languagePack)||void 0===s?void 0:s.translationsConfigFile}catch(e){}g=!0}else"object"!=typeof navigator||x?console.error("Unable to resolve platform."):(l=navigator.userAgent,d=l.indexOf("Windows")>=0,c=l.indexOf("Macintosh")>=0,f=(l.indexOf("Macintosh")>=0||l.indexOf("iPad")>=0||l.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,h=l.indexOf("Linux")>=0,_=(null==l?void 0:l.indexOf("Mobi"))>=0,p=!0,b=globalThis._VSCODE_NLS_LANGUAGE||r,a=navigator.language.toLowerCase(),w=a);let L=0;c?L=1:d?L=3:h&&(L=2);const D=d,E=c,I=h,N=g,M=p,A=p&&"function"==typeof C.importScripts?C.origin:void 0,T=f,R=_,P=l,O=b,F="function"==typeof C.postMessage&&!C.importScripts,B=(()=>{if(F){const e=[];C.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=e.length;i{const n=++t;e.push({id:n,callback:i}),C.postMessage({vscodeScheduleAsyncWork:n},"*")}}return e=>setTimeout(e)})(),W=c||f?2:d?1:3;let H=!0,V=!1;function z(){if(!V){V=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);H=513===t[0]}return H}const j=!!(P&&P.indexOf("Chrome")>=0),U=!!(P&&P.indexOf("Firefox")>=0),$=!!(!j&&P&&P.indexOf("Safari")>=0),K=!!(P&&P.indexOf("Edg/")>=0),q=!!(P&&P.indexOf("Android")>=0)},9871:(e,t,i)=>{"use strict";i.d(t,{_K:()=>a,bJ:()=>r,iD:()=>l});var n=i(63339);let o;const s=globalThis.vscode;if(void 0!==s&&void 0!==s.process){const e=s.process;o={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else o="undefined"!=typeof process?{get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd:()=>process.env.VSCODE_CWD||process.cwd()}:{get platform(){return n.uF?"win32":n.zx?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const r=o.cwd,a=o.env,l=o.platform},82199:(e,t,i)=>{"use strict";var n;i.d(t,{Q:()=>n}),function(e){function t(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};const i=Math.max(e.start,t.start),n=Math.min(e.end,t.end);return n-i<=0?{start:0,end:0}:{start:i,end:n}}function i(e){return e.end-e.start<=0}e.intersect=t,e.isEmpty=i,e.intersects=function(e,n){return!i(t(e,n))},e.relativeComplement=function(e,t){const n=[],o={start:e.start,end:Math.min(t.start,e.end)},s={start:Math.max(t.end,e.start),end:e.end};return i(o)||n.push(o),i(s)||n.push(s),n}}(n||(n={}))},22467:(e,t,i)=>{"use strict";i.d(t,{B6:()=>k,Fd:()=>_,LC:()=>m,P8:()=>p,Pi:()=>g,er:()=>h,iZ:()=>b,n4:()=>u,o1:()=>w,pD:()=>f,su:()=>d,uJ:()=>v});var n=i(78518),o=i(13072),s=i(18019),r=i(63339),a=i(16844),l=i(37264);function d(e){return(0,l.I)(e,!0)}class c{constructor(e){this._ignorePathCasing=e}compare(e,t,i=!1){return e===t?0:(0,a.UD)(this.getComparisonKey(e,i),this.getComparisonKey(t,i))}isEqual(e,t,i=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,i)===this.getComparisonKey(t,i)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}isEqualOrParent(e,t,i=!1){if(e.scheme===t.scheme){if(e.scheme===o.ny.file)return n._1(d(e),d(t),this._ignorePathCasing(e))&&e.query===t.query&&(i||e.fragment===t.fragment);if(y(e.authority,t.authority))return n._1(e.path,t.path,this._ignorePathCasing(e),"/")&&e.query===t.query&&(i||e.fragment===t.fragment)}return!1}joinPath(e,...t){return l.r.joinPath(e,...t)}basenameOrAuthority(e){return p(e)||e.authority}basename(e){return s.SA.basename(e.path)}extname(e){return s.SA.extname(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===o.ny.file?t=l.r.file(s.pD(d(e))).path:(t=s.SA.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===o.ny.file?l.r.file(s.S8(d(e))).path:s.SA.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!y(e.authority,t.authority))return;if(e.scheme===o.ny.file){const i=s.V8(d(e),d(t));return r.uF?n.TH(i):i}let i=e.path||"/";const a=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(i.length,a.length);en.Zn(i).length&&i[i.length-1]===t}{const t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)&&!/^[a-zA-Z]:(\/$|\\$)/.test(e.fsPath)}}removeTrailingPathSeparator(e,t=s.Vn){return C(e,t)?e.with({path:e.path.substr(0,e.path.length-1)}):e}addTrailingPathSeparator(e,t=s.Vn){let i=!1;if(e.scheme===o.ny.file){const o=d(e);i=void 0!==o&&o.length===n.Zn(o).length&&o[o.length-1]===t}else{t="/";const n=e.path;i=1===n.length&&47===n.charCodeAt(n.length-1)}return i||C(e,t)?e:e.with({path:e.path+"/"})}}const h=new c((()=>!1)),u=(new c((e=>e.scheme!==o.ny.file||!r.j9)),new c((e=>!0)),h.isEqual.bind(h)),g=(h.isEqualOrParent.bind(h),h.getComparisonKey.bind(h),h.basenameOrAuthority.bind(h)),p=h.basename.bind(h),m=h.extname.bind(h),f=h.dirname.bind(h),v=h.joinPath.bind(h),_=h.normalizePath.bind(h),b=h.relativePath.bind(h),w=h.resolvePath.bind(h),y=(h.isAbsolutePath.bind(h),h.isEqualAuthority.bind(h)),C=h.hasTrailingPathSeparator.bind(h);var k;h.removeTrailingPathSeparator.bind(h),h.addTrailingPathSeparator.bind(h),function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const i=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((e=>{const[t,n]=e.split(":");t&&n&&i.set(t,n)}));const n=t.path.substring(0,t.path.indexOf(";"));return n&&i.set(e.META_DATA_MIME,n),i}}(k||(k={}))},94513:(e,t,i)=>{"use strict";i.d(t,{yE:()=>r});var n=i(2106),o=i(10998);class s{constructor(e,t,i,n,o,s,r){this._forceIntegerValues=e,this._scrollStateBrand=void 0,this._forceIntegerValues&&(t|=0,i|=0,n|=0,o|=0,s|=0,r|=0),this.rawScrollLeft=n,this.rawScrollTop=r,t<0&&(t=0),n+t>i&&(n=i-t),n<0&&(n=0),o<0&&(o=0),r+o>s&&(r=s-o),r<0&&(r=0),this.width=t,this.scrollWidth=i,this.scrollLeft=n,this.height=o,this.scrollHeight=s,this.scrollTop=r}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(e,t){return new s(this._forceIntegerValues,void 0!==e.width?e.width:this.width,void 0!==e.scrollWidth?e.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,void 0!==e.height?e.height:this.height,void 0!==e.scrollHeight?e.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new s(this._forceIntegerValues,this.width,this.scrollWidth,void 0!==e.scrollLeft?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,void 0!==e.scrollTop?e.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){const i=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,o=this.scrollLeft!==e.scrollLeft,s=this.height!==e.height,r=this.scrollHeight!==e.scrollHeight,a=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:i,scrollWidthChanged:n,scrollLeftChanged:o,heightChanged:s,scrollHeightChanged:r,scrollTopChanged:a}}}class r extends o.jG{constructor(e){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new n.vl),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e.smoothScrollDuration,this._scheduleAtNextAnimationFrame=e.scheduleAtNextAnimationFrame,this._state=new s(e.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){var i;const n=this._state.withScrollDimensions(e,t);this._setState(n,Boolean(this._smoothScrolling)),null===(i=this._smoothScrolling)||void 0===i||i.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){const t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:void 0===e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:void 0===e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};const i=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;let n;n=t?new d(this._smoothScrolling.from,i,this._smoothScrolling.startTime,this._smoothScrolling.duration):this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=n}else{const t=this._state.withScrollPosition(e);this._smoothScrolling=d.start(this._state,t,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))}hasPendingScrollAnimation(){return Boolean(this._smoothScrolling)}_performSmoothScrolling(){if(!this._smoothScrolling)return;const e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);return this._setState(t,!0),this._smoothScrolling?e.isDone?(this._smoothScrolling.dispose(),void(this._smoothScrolling=null)):void(this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())}))):void 0}_setState(e,t){const i=this._state;i.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(i,t)))}}class a{constructor(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}}function l(e,t){const i=t-e;return function(t){return e+i*(1-(n=1-t,Math.pow(n,3)));var n}}class d{constructor(e,t,i,n){this.from=e,this.to=t,this.duration=n,this.startTime=i,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(e,t,i){if(Math.abs(e-t)>2.5*i){let r,a;return e{"use strict";i.d(t,{A:()=>s});var n,o=i(16844);!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(n||(n={})),function(e){const t="error",i="warning",n="info";e.fromValue=function(s){return s?o.Q_(t,s)?e.Error:o.Q_(i,s)||o.Q_("warn",s)?e.Warning:o.Q_(n,s)?e.Info:e.Ignore:e.Ignore},e.toString=function(o){switch(o){case e.Error:return t;case e.Warning:return i;case e.Info:return n;default:return"ignore"}}}(n||(n={}));const s=n},23013:(e,t,i)=>{"use strict";i.d(t,{W:()=>o});const n=globalThis.performance&&"function"==typeof globalThis.performance.now;class o{static create(e){return new o(e)}constructor(e){this._now=n&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}},16844:(e,t,i)=>{"use strict";i.d(t,{$X:()=>Q,AV:()=>r,BO:()=>p,Bm:()=>m,Bq:()=>u,DB:()=>E,E_:()=>$,GP:()=>l,HG:()=>y,LJ:()=>O,LU:()=>J,Lv:()=>I,MV:()=>z,NB:()=>g,OS:()=>v,Q_:()=>M,Qp:()=>T,S8:()=>re,Ss:()=>Y,UD:()=>S,UU:()=>C,Vi:()=>R,W1:()=>L,Wd:()=>oe,Wv:()=>N,Z5:()=>B,_J:()=>G,aC:()=>q,bm:()=>h,eY:()=>_,en:()=>w,ih:()=>c,iy:()=>V,jy:()=>d,km:()=>H,lF:()=>x,lT:()=>k,m:()=>j,ne:()=>Z,ns:()=>A,pc:()=>P,r_:()=>X,tk:()=>te,tl:()=>ae,uz:()=>b,wB:()=>f,y_:()=>le,zY:()=>ee,z_:()=>F,zd:()=>D});var n,o=i(36260),s=i(63946);function r(e){return!e||"string"!=typeof e||0===e.trim().length}const a=/{(\d+)}/g;function l(e,...t){return 0===t.length?e:e.replace(a,(function(e,i){const n=parseInt(i,10);return isNaN(n)||n<0||n>=t.length?e:t[n]}))}function d(e){return e.replace(/[<>"'&]/g,(e=>{switch(e){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return e}))}function c(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}}))}function h(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function u(e,t=" "){return p(g(e,t),t)}function g(e,t){if(!e||!t)return e;const i=t.length;if(0===i||0===e.length)return e;let n=0;for(;e.indexOf(t,n)===n;)n+=i;return e.substring(n)}function p(e,t){if(!e||!t)return e;const i=t.length,n=e.length;if(0===i||0===n)return e;let o=n,s=-1;for(;s=e.lastIndexOf(t,o-1),-1!==s&&s+i===o;){if(0===s)return"";o=s}return e.substring(0,o)}function m(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function f(e){return e.replace(/\*/g,"")}function v(e,t,i={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=h(e)),i.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let n="";return i.global&&(n+="g"),i.matchCase||(n+="i"),i.multiline&&(n+="m"),i.unicode&&(n+="u"),new RegExp(e,n)}function _(e){return"^"!==e.source&&"^$"!==e.source&&"$"!==e.source&&"^\\s*$"!==e.source&&!(!e.exec("")||0!==e.lastIndex)}function b(e){return e.split(/\r\n|\r|\n/)}function w(e){var t;const i=[],n=e.split(/(\r\n|\r|\n)/);for(let e=0;e=0;i--){const t=e.charCodeAt(i);if(32!==t&&9!==t)return i}return-1}function S(e,t){return et?1:0}function x(e,t,i=0,n=e.length,o=0,s=t.length){for(;is)return 1}const r=n-i,a=s-o;return ra?1:0}function L(e,t){return D(e,t,0,e.length,0,t.length)}function D(e,t,i=0,n=e.length,o=0,s=t.length){for(;i=128||a>=128)return x(e.toLowerCase(),t.toLowerCase(),i,n,o,s);I(r)&&(r-=32),I(a)&&(a-=32);const l=r-a;if(0!==l)return l}const r=n-i,a=s-o;return ra?1:0}function E(e){return e>=48&&e<=57}function I(e){return e>=97&&e<=122}function N(e){return e>=65&&e<=90}function M(e,t){return e.length===t.length&&0===D(e,t)}function A(e,t){const i=t.length;return!(t.length>e.length)&&0===D(e,t,0,i)}function T(e,t){const i=Math.min(e.length,t.length);let n;for(n=0;n1){const n=e.charCodeAt(t-2);if(P(n))return F(n,i)}return i}(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=B(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class H{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new W(e,t)}nextGraphemeLength(){const e=ne.getInstance(),t=this._iterator,i=t.offset;let n=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const i=t.offset,o=e.getGraphemeBreakType(t.nextCodePoint());if(ie(n,o)){t.setOffset(i);break}n=o}return t.offset-i}prevGraphemeLength(){const e=ne.getInstance(),t=this._iterator,i=t.offset;let n=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const i=t.offset,o=e.getGraphemeBreakType(t.prevCodePoint());if(ie(o,n)){t.setOffset(i);break}n=o}return i-t.offset}eol(){return this._iterator.eol()}}function V(e,t){return new H(e,t).nextGraphemeLength()}function z(e,t){return new H(e,t).prevGraphemeLength()}function j(e,t){t>0&&O(e.charCodeAt(t))&&t--;const i=t+V(e,t);return[i-z(e,i),i]}let U;function $(e){return U||(U=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/),U.test(e)}const K=/^[\t\n\r\x20-\x7E]*$/;function q(e){return K.test(e)}const G=/[\u2028\u2029]/;function Q(e){return G.test(e)}function Z(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function Y(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const X=String.fromCharCode(65279);function J(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function ee(e,t=!1){return!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}function te(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function ie(e,t){return 0===e?5!==t&&7!==t:!(2===e&&3===t||4!==e&&2!==e&&3!==e&&4!==t&&2!==t&&3!==t&&(8===e&&(8===t||9===t||11===t||12===t)||!(11!==e&&9!==e||9!==t&&10!==t)||(12===e||10===e)&&10===t||5===t||13===t||7===t||1===e||13===e&&14===t||6===e&&6===t))}class ne{static getInstance(){return ne._INSTANCE||(ne._INSTANCE=new ne),ne._INSTANCE}constructor(){this._data=JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,i=t.length/3;let n=1;for(;n<=i;)if(et[3*n+1]))return t[3*n+2];n=2*n+1}return 0}}function oe(e,t){if(0===e)return 0;const i=function(e,t){const i=new W(t,e);let n=i.prevCodePoint();for(;se(n)||65039===n||8419===n;){if(0===i.offset)return;n=i.prevCodePoint()}if(!Y(n))return;let o=i.offset;return o>0&&8205===i.prevCodePoint()&&(o=i.offset),o}(e,t);if(void 0!==i)return i;const n=new W(t,e);return n.prevCodePoint(),n.offset}function se(e){return 127995<=e&&e<=127999}ne._INSTANCE=null;const re=" ";class ae{static getInstance(e){return n.cache.get(Array.from(e))}static getLocales(){return n._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}n=ae,ae.ambiguousCharacterData=new s.d((()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'))),ae.cache=new o.o5({getCacheKey:JSON.stringify},(e=>{function t(e){const t=new Map;for(let i=0;i!e.startsWith("_")&&e in o));0===r.length&&(r=["_default"]);for(const e of r)s=i(s,t(o[e]));const a=function(e,t){const i=new Map(e);for(const[e,n]of t)i.set(e,n);return i}(t(o._common),s);return new n(a)})),ae._locales=new s.d((()=>Object.keys(n.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))));class le{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(le.getRawData())),this._data}static isInvisibleCharacter(e){return le.getData().has(e)}static get codePoints(){return le.getData()}}le._data=void 0},51055:(e,t,i)=>{"use strict";i.d(t,{h:()=>n});const n=Symbol("MicrotaskDelay")},66525:(e,t,i)=>{"use strict";i.d(t,{cB:()=>d});var n=i(16844);class o{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos=0;t--,this._valueLen--){const e=this._value.charCodeAt(t);if(!(47===e||this._splitOnBackslash&&92===e))break}return this.next()}hasNext(){return this._to!1),t=(()=>!1)){return new d(new a(e,t))}static forStrings(){return new d(new o)}static forConfigKeys(){return new d(new s)}constructor(e){this._iter=e}clear(){this._root=void 0}set(e,t){const i=this._iter.reset(e);let n;this._root||(this._root=new l,this._root.segment=i.value());const o=[];for(n=this._root;;){const e=i.cmp(n.segment);if(e>0)n.left||(n.left=new l,n.left.segment=i.value()),o.push([-1,n]),n=n.left;else if(e<0)n.right||(n.right=new l,n.right.segment=i.value()),o.push([1,n]),n=n.right;else{if(!i.hasNext())break;i.next(),n.mid||(n.mid=new l,n.mid.segment=i.value()),o.push([0,n]),n=n.mid}}const s=n.value;n.value=t,n.key=e;for(let e=o.length-1;e>=0;e--){const t=o[e][1];t.updateHeight();const i=t.balanceFactor();if(i<-1||i>1){const i=o[e][0],n=o[e+1][0];if(1===i&&1===n)o[e][1]=t.rotateLeft();else if(-1===i&&-1===n)o[e][1]=t.rotateRight();else if(1===i&&-1===n)t.right=o[e+1][1]=o[e+1][1].rotateRight(),o[e][1]=t.rotateLeft();else{if(-1!==i||1!==n)throw new Error;t.left=o[e+1][1]=o[e+1][1].rotateLeft(),o[e][1]=t.rotateRight()}if(e>0)switch(o[e-1][0]){case-1:o[e-1][1].left=o[e][1];break;case 1:o[e-1][1].right=o[e][1];break;case 0:o[e-1][1].mid=o[e][1]}else this._root=o[0][1]}}return s}get(e){var t;return null===(t=this._getNode(e))||void 0===t?void 0:t.value}_getNode(e){const t=this._iter.reset(e);let i=this._root;for(;i;){const e=t.cmp(i.segment);if(e>0)i=i.left;else if(e<0)i=i.right;else{if(!t.hasNext())break;t.next(),i=i.mid}}return i}has(e){const t=this._getNode(e);return!(void 0===(null==t?void 0:t.value)&&void 0===(null==t?void 0:t.mid))}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,t){var i;const n=this._iter.reset(e),o=[];let s=this._root;for(;s;){const e=n.cmp(s.segment);if(e>0)o.push([-1,s]),s=s.left;else if(e<0)o.push([1,s]),s=s.right;else{if(!n.hasNext())break;n.next(),o.push([0,s]),s=s.mid}}if(s){if(t?(s.left=void 0,s.mid=void 0,s.right=void 0,s.height=1):(s.key=void 0,s.value=void 0),!s.mid&&!s.value)if(s.left&&s.right){const e=this._min(s.right);if(e.key){const{key:t,value:i,segment:n}=e;this._delete(e.key,!1),s.key=t,s.value=i,s.segment=n}}else{const e=null!==(i=s.left)&&void 0!==i?i:s.right;if(o.length>0){const[t,i]=o[o.length-1];switch(t){case-1:i.left=e;break;case 0:i.mid=e;break;case 1:i.right=e}}else this._root=e}for(let e=o.length-1;e>=0;e--){const t=o[e][1];t.updateHeight();const i=t.balanceFactor();if(i>1?(t.right.balanceFactor()>=0||(t.right=t.right.rotateRight()),o[e][1]=t.rotateLeft()):i<-1&&(t.left.balanceFactor()<=0||(t.left=t.left.rotateLeft()),o[e][1]=t.rotateRight()),e>0)switch(o[e-1][0]){case-1:o[e-1][1].left=o[e][1];break;case 1:o[e-1][1].right=o[e][1];break;case 0:o[e-1][1].mid=o[e][1]}else this._root=o[0][1]}}}_min(e){for(;e.left;)e=e.left;return e}findSubstr(e){const t=this._iter.reset(e);let i,n=this._root;for(;n;){const e=t.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!t.hasNext())break;t.next(),i=n.value||i,n=n.mid}}return n&&n.value||i}findSuperstr(e){return this._findSuperstrOrElement(e,!1)}_findSuperstrOrElement(e,t){const i=this._iter.reset(e);let n=this._root;for(;n;){const e=i.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!i.hasNext())return n.mid?this._entries(n.mid):t?n.value:void 0;i.next(),n=n.mid}}}forEach(e){for(const[t,i]of this)e(i,t)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(e){const t=[];return this._dfsEntries(e,t),t[Symbol.iterator]()}_dfsEntries(e,t){e&&(e.left&&this._dfsEntries(e.left,t),e.value&&t.push([e.key,e.value]),e.mid&&this._dfsEntries(e.mid,t),e.right&&this._dfsEntries(e.right,t))}}},58881:(e,t,i)=>{"use strict";i.d(t,{L:()=>o});var n,o,s=i(26048);!function(e){e.isThemeColor=function(e){return e&&"object"==typeof e&&"string"==typeof e.id}}(n||(n={})),function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function i(e){const n=t.exec(e.id);if(!n)return i(s.W.error);const[,o,r]=n,a=["codicon","codicon-"+o];return r&&a.push("codicon-modifier-"+r.substring(1)),a}e.asClassNameArray=i,e.asClassName=function(e){return i(e).join(" ")},e.asCSSSelector=function(e){return"."+i(e).join(".")},e.isThemeIcon=function(e){return e&&"object"==typeof e&&"string"==typeof e.id&&(void 0===e.color||n.isThemeColor(e.color))};const o=new RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){const t=o.exec(e);if(!t)return;const[,i]=t;return{id:i}},e.fromId=function(e){return{id:e}},e.modify=function(e,t){let i=e.id;const n=i.lastIndexOf("~");return-1!==n&&(i=i.substring(0,n)),t&&(i=`${i}~${t}`),{id:i}},e.getModifier=function(e){const t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)},e.isEqual=function(e,t){var i,n;return e.id===t.id&&(null===(i=e.color)||void 0===i?void 0:i.id)===(null===(n=t.color)||void 0===n?void 0:n.id)}}(o||(o={}))},79359:(e,t,i)=>{"use strict";function n(e){return"string"==typeof e}function o(e){return!("object"!=typeof e||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function s(e){const t=Object.getPrototypeOf(Uint8Array);return"object"==typeof e&&e instanceof t}function r(e){return"number"==typeof e&&!isNaN(e)}function a(e){return!!e&&"function"==typeof e[Symbol.iterator]}function l(e){return!0===e||!1===e}function d(e){return void 0===e}function c(e){return!h(e)}function h(e){return d(e)||null===e}function u(e,t){if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function g(e){if(h(e))throw new Error("Assertion Failed: argument is undefined or null");return e}function p(e){return"function"==typeof e}function m(e,t){const i=Math.min(e.length,t.length);for(let n=0;nr,Gv:()=>o,Kg:()=>n,Lm:()=>l,O9:()=>c,Tn:()=>p,b0:()=>d,eU:()=>g,iu:()=>s,j:()=>u,jx:()=>m,xZ:()=>a,z:()=>h})},37512:(e,t,i)=>{"use strict";function n(e){return e<0?0:e>255?255:0|e}function o(e){return e<0?0:e>4294967295?4294967295:0|e}i.d(t,{W:()=>n,j:()=>o})},37264:(e,t,i)=>{"use strict";i.d(t,{I:()=>v,r:()=>h});var n=i(18019),o=i(63339);const s=/^\w[\w\d+.-]*$/,r=/^\//,a=/^\/\//,l="",d="/",c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class h{static isUri(e){return e instanceof h||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}constructor(e,t,i,n,o,c=!1){"object"==typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,c),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==d&&(t=d+t):t=d}return t}(this.scheme,i||l),this.query=n||l,this.fragment=o||l,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!s.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!r.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,c))}get fsPath(){return v(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:n,query:o,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=l),void 0===i?i=this.authority:null===i&&(i=l),void 0===n?n=this.path:null===n&&(n=l),void 0===o?o=this.query:null===o&&(o=l),void 0===s?s=this.fragment:null===s&&(s=l),t===this.scheme&&i===this.authority&&n===this.path&&o===this.query&&s===this.fragment?this:new g(t,i,n,o,s)}static parse(e,t=!1){const i=c.exec(e);return i?new g(i[2]||l,y(i[4]||l),y(i[5]||l),y(i[7]||l),y(i[9]||l),t):new g(l,l,l,l,l)}static file(e){let t=l;if(o.uF&&(e=e.replace(/\\/g,d)),e[0]===d&&e[1]===d){const i=e.indexOf(d,2);-1===i?(t=e.substring(2),e=d):(t=e.substring(2,i),e=e.substring(i)||d)}return new g("file",t,e,l,l)}static from(e,t){return new g(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return i=o.uF&&"file"===e.scheme?h.file(n.IN.join(v(e,!0),...t)).path:n.SA.join(e.path,...t),e.with({path:i})}toString(e=!1){return _(this,e)}toJSON(){return this}static revive(e){var t,i;if(e){if(e instanceof h)return e;{const n=new g(e);return n._formatted=null!==(t=e.external)&&void 0!==t?t:null,n._fsPath=e._sep===u&&null!==(i=e.fsPath)&&void 0!==i?i:null,n}}return e}}const u=o.uF?1:void 0;class g extends h{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=v(this,!1)),this._fsPath}toString(e=!1){return e?_(this,!0):(this._formatted||(this._formatted=_(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=u),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const p={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function m(e,t,i){let n,o=-1;for(let s=0;s=97&&r<=122||r>=65&&r<=90||r>=48&&r<=57||45===r||46===r||95===r||126===r||t&&47===r||i&&91===r||i&&93===r||i&&58===r)-1!==o&&(n+=encodeURIComponent(e.substring(o,s)),o=-1),void 0!==n&&(n+=e.charAt(s));else{void 0===n&&(n=e.substr(0,s));const t=p[r];void 0!==t?(-1!==o&&(n+=encodeURIComponent(e.substring(o,s)),o=-1),n+=t):-1===o&&(o=s)}}return-1!==o&&(n+=encodeURIComponent(e.substring(o))),void 0!==n?n:e}function f(e){let t;for(let i=0;i1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,o.uF&&(i=i.replace(/\//g,"\\")),i}function _(e,t){const i=t?f:m;let n="",{scheme:o,authority:s,path:r,query:a,fragment:l}=e;if(o&&(n+=o,n+=":"),(s||"file"===o)&&(n+=d,n+=d),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?n+=i(t,!1,!1):(n+=i(t.substr(0,e),!1,!1),n+=":",n+=i(t.substr(e+1),!1,!0)),n+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?n+=i(s,!1,!0):(n+=i(s.substr(0,e),!1,!0),n+=s.substr(e))}if(r){if(r.length>=3&&47===r.charCodeAt(0)&&58===r.charCodeAt(2)){const e=r.charCodeAt(1);e>=65&&e<=90&&(r=`/${String.fromCharCode(e+32)}:${r.substr(3)}`)}else if(r.length>=2&&58===r.charCodeAt(1)){const e=r.charCodeAt(0);e>=65&&e<=90&&(r=`${String.fromCharCode(e+32)}:${r.substr(2)}`)}n+=i(r,!0,!1)}return a&&(n+="?",n+=i(a,!1,!1)),l&&(n+="#",n+=t?l:m(l,!1,!1)),n}function b(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+b(e.substr(3)):e}}const w=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function y(e){return e.match(w)?e.replace(w,(e=>b(e))):e}},9223:(e,t,i)=>{"use strict";i.d(t,{b:()=>n});const n=function(){if("object"==typeof crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID.bind(crypto);let e;e="object"==typeof crypto&&"function"==typeof crypto.getRandomValues?crypto.getRandomValues.bind(crypto):function(e){for(let t=0;t{"use strict";i.d(t,{M:()=>o});var n=i(5043);function o(e,t){e instanceof n.D?(e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setFontVariationSettings(t.fontVariationSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)):(e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.fontVariationSettings=t.fontVariationSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px")}},5711:(e,t,i)=>{"use strict";i.d(t,{u:()=>r});var n=i(10998),o=i(2106),s=i(14333);class r extends n.jG{constructor(e,t){super(),this._onDidChange=this._register(new o.vl),this.onDidChange=this._onDidChange.event,this._referenceDomElement=e,this._width=-1,this._height=-1,this._resizeObserver=null,this.measureReferenceDomElement(!1,t)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this._width}getHeight(){return this._height}startObserving(){if(!this._resizeObserver&&this._referenceDomElement){let e=null;const t=()=>{e?this.observe({width:e.width,height:e.height}):this.observe()};let i=!1,n=!1;const o=()=>{if(i&&!n)try{i=!1,n=!0,t()}finally{(0,s.PG)((0,s.zk)(this._referenceDomElement),(()=>{n=!1,o()}))}};this._resizeObserver=new ResizeObserver((t=>{e=t&&t[0]&&t[0].contentRect?{width:t[0].contentRect.width,height:t[0].contentRect.height}:null,i=!0,o()})),this._resizeObserver.observe(this._referenceDomElement)}}stopObserving(){this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}observe(e){this.measureReferenceDomElement(!0,e)}measureReferenceDomElement(e,t){let i=0,n=0;t?(i=t.width,n=t.height):this._referenceDomElement&&(i=this._referenceDomElement.clientWidth,n=this._referenceDomElement.clientHeight),i=Math.max(5,i),n=Math.max(5,n),this._width===i&&this._height===n||(this._width=i,this._height=n,e&&this._onDidChange.fire())}}},41106:(e,t,i)=>{"use strict";i.d(t,{T:()=>p});var n=i(14333),o=i(4770),s=i(2106),r=i(10998),a=i(25837);class l{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class d{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(e){var t;this._createDomElements(),e.document.body.appendChild(this._container),this._readFromDomElements(),null===(t=this._container)||void 0===t||t.remove(),this._container=null,this._testElements=null}_createDomElements(){const e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";const t=document.createElement("div");(0,a.M)(t,this._bareFontInfo),e.appendChild(t);const i=document.createElement("div");(0,a.M)(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);const n=document.createElement("div");(0,a.M)(n,this._bareFontInfo),n.style.fontStyle="italic",e.appendChild(n);const o=[];for(const e of this._requests){let s;0===e.type&&(s=t),2===e.type&&(s=i),1===e.type&&(s=n),s.appendChild(document.createElement("br"));const r=document.createElement("span");d._render(r,e),s.appendChild(r),o.push(r)}this._container=e,this._testElements=o}static _render(e,t){if(" "===t.chr){let t=" ";for(let e=0;e<8;e++)t+=t;e.innerText=t}else{let i=t.chr;for(let e=0;e<8;e++)i+=i;e.textContent=i}}_readFromDomElements(){for(let e=0,t=this._requests.length;e{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings(e)}),5e3))}_evictUntrustedReadings(e){const t=this._ensureCache(e),i=t.getValues();let n=!1;for(const e of i)e.isTrusted||(n=!0,t.remove(e));n&&this._onDidChange.fire()}readFontInfo(e,t){const i=this._ensureCache(e);if(!i.has(t)){let i=this._actualReadFontInfo(e,t);(i.typicalHalfwidthCharacterWidth<=2||i.typicalFullwidthCharacterWidth<=2||i.spaceWidth<=2||i.maxDigitWidth<=2)&&(i=new h.YJ({pixelRatio:o.c.getInstance(e).value,fontFamily:i.fontFamily,fontWeight:i.fontWeight,fontSize:i.fontSize,fontFeatureSettings:i.fontFeatureSettings,fontVariationSettings:i.fontVariationSettings,lineHeight:i.lineHeight,letterSpacing:i.letterSpacing,isMonospace:i.isMonospace,typicalHalfwidthCharacterWidth:Math.max(i.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(i.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:i.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(i.spaceWidth,5),middotWidth:Math.max(i.middotWidth,5),wsmiddotWidth:Math.max(i.wsmiddotWidth,5),maxDigitWidth:Math.max(i.maxDigitWidth,5)},!1)),this._writeToCache(e,t,i)}return i.get(t)}_createRequest(e,t,i,n){const o=new l(e,t);return i.push(o),null==n||n.push(o),o}_actualReadFontInfo(e,t){const i=[],n=[],s=this._createRequest("n",0,i,n),r=this._createRequest("m",0,i,null),a=this._createRequest(" ",0,i,n),l=this._createRequest("0",0,i,n),u=this._createRequest("1",0,i,n),g=this._createRequest("2",0,i,n),p=this._createRequest("3",0,i,n),m=this._createRequest("4",0,i,n),f=this._createRequest("5",0,i,n),v=this._createRequest("6",0,i,n),_=this._createRequest("7",0,i,n),b=this._createRequest("8",0,i,n),w=this._createRequest("9",0,i,n),y=this._createRequest("→",0,i,n),C=this._createRequest("→",0,i,null),k=this._createRequest("·",0,i,n),S=this._createRequest(String.fromCharCode(11825),0,i,null),x="|/-_ilm%";for(let e=0,t=8;e.001){D=!1;break}}let I=!0;return D&&C.width!==E&&(I=!1),C.width>y.width&&(I=!1),new h.YJ({pixelRatio:o.c.getInstance(e).value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,fontVariationSettings:t.fontVariationSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:D,typicalHalfwidthCharacterWidth:s.width,typicalFullwidthCharacterWidth:r.width,canUseHalfwidthRightwardsArrow:I,spaceWidth:a.width,middotWidth:k.width,wsmiddotWidth:S.width,maxDigitWidth:L},!0)}}class g{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const t=e.getId();return!!this._values[t]}get(e){const t=e.getId();return this._values[t]}put(e,t){const i=e.getId();this._keys[i]=e,this._values[i]=t}remove(e){const t=e.getId();delete this._keys[t],delete this._values[t]}getValues(){return Object.keys(this._keys).map((e=>this._values[e]))}}const p=new u},25155:(e,t,i)=>{"use strict";i.d(t,{M:()=>o});var n=i(2106);const o=new class{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new n.vl,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(e){this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus)}}},93344:(e,t,i)=>{"use strict";i.d(t,{$D:()=>n,Eq:()=>b,M0:()=>S,Mz:()=>k,No:()=>C,bs:()=>w});var n,o=i(55893),s=i(14333),r=i(34061),a=i(87594),l=i(42863),d=i(65958),c=i(2106),h=i(10998),u=i(53720),g=i(16844),p=i(13377),m=i(93702),f=i(53909),v=i(46441),_=function(e,t){return function(i,n){t(i,n,e)}};!function(e){e.Tap="-monaco-textarea-synthetic-tap"}(n||(n={}));const b={forceCopyWithSyntaxHighlighting:!1};class w{constructor(){this._lastState=null}set(e,t){this._lastState={lastCopiedValue:e,data:t}}get(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:(this._lastState=null,null)}}w.INSTANCE=new w;class y{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(e){const t={text:e=e||"",replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=e.length,t}}let C=class extends h.jG{get textAreaState(){return this._textAreaState}constructor(e,t,i,n,o,s){super(),this._host=e,this._textArea=t,this._OS=i,this._browser=n,this._accessibilityService=o,this._logService=s,this._onFocus=this._register(new c.vl),this.onFocus=this._onFocus.event,this._onBlur=this._register(new c.vl),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new c.vl),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new c.vl),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new c.vl),this.onCut=this._onCut.event,this._onPaste=this._register(new c.vl),this.onPaste=this._onPaste.event,this._onType=this._register(new c.vl),this.onType=this._onType.event,this._onCompositionStart=this._register(new c.vl),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new c.vl),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new c.vl),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new c.vl),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncFocusGainWriteScreenReaderContent=this._register(new h.HE),this._asyncTriggerCut=this._register(new d.uC((()=>this._onCut.fire()),0)),this._textAreaState=p._O.EMPTY,this._selectionChangeListener=null,this._accessibilityService.isScreenReaderOptimized()&&this.writeNativeTextAreaContent("ctor"),this._register(c.Jh.runAndSubscribe(this._accessibilityService.onDidChangeScreenReaderOptimized,(()=>{this._accessibilityService.isScreenReaderOptimized()&&!this._asyncFocusGainWriteScreenReaderContent.value?this._asyncFocusGainWriteScreenReaderContent.value=this._register(new d.uC((()=>this.writeNativeTextAreaContent("asyncFocusGain")),0)):this._asyncFocusGainWriteScreenReaderContent.clear()}))),this._hasFocus=!1,this._currentComposition=null;let r=null;this._register(this._textArea.onKeyDown((e=>{const t=new a.Z(e);(114===t.keyCode||this._currentComposition&&1===t.keyCode)&&t.stopPropagation(),t.equals(9)&&t.preventDefault(),r=t,this._onKeyDown.fire(t)}))),this._register(this._textArea.onKeyUp((e=>{const t=new a.Z(e);this._onKeyUp.fire(t)}))),this._register(this._textArea.onCompositionStart((e=>{p.Hf&&console.log("[compositionstart]",e);const t=new y;if(this._currentComposition)this._currentComposition=t;else{if(this._currentComposition=t,2===this._OS&&r&&r.equals(114)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===e.data&&("ArrowRight"===r.code||"ArrowLeft"===r.code))return p.Hf&&console.log("[compositionstart] Handling long press case on macOS + arrow key",e),t.handleCompositionUpdate("x"),void this._onCompositionStart.fire({data:e.data});this._browser.isAndroid,this._onCompositionStart.fire({data:e.data})}}))),this._register(this._textArea.onCompositionUpdate((e=>{p.Hf&&console.log("[compositionupdate]",e);const t=this._currentComposition;if(!t)return;if(this._browser.isAndroid){const t=p._O.readFromTextArea(this._textArea,this._textAreaState),i=p._O.deduceAndroidCompositionInput(this._textAreaState,t);return this._textAreaState=t,this._onType.fire(i),void this._onCompositionUpdate.fire(e)}const i=t.handleCompositionUpdate(e.data);this._textAreaState=p._O.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(i),this._onCompositionUpdate.fire(e)}))),this._register(this._textArea.onCompositionEnd((e=>{p.Hf&&console.log("[compositionend]",e);const t=this._currentComposition;if(!t)return;if(this._currentComposition=null,this._browser.isAndroid){const e=p._O.readFromTextArea(this._textArea,this._textAreaState),t=p._O.deduceAndroidCompositionInput(this._textAreaState,e);return this._textAreaState=e,this._onType.fire(t),void this._onCompositionEnd.fire()}const i=t.handleCompositionUpdate(e.data);this._textAreaState=p._O.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(i),this._onCompositionEnd.fire()}))),this._register(this._textArea.onInput((e=>{if(p.Hf&&console.log("[input]",e),this._textArea.setIgnoreSelectionChangeTime("received input event"),this._currentComposition)return;const t=p._O.readFromTextArea(this._textArea,this._textAreaState),i=p._O.deduceInput(this._textAreaState,t,2===this._OS);(0!==i.replacePrevCharCnt||1!==i.text.length||!g.pc(i.text.charCodeAt(0))&&127!==i.text.charCodeAt(0))&&(this._textAreaState=t,""===i.text&&0===i.replacePrevCharCnt&&0===i.replaceNextCharCnt&&0===i.positionDelta||this._onType.fire(i))}))),this._register(this._textArea.onCut((e=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(e),this._asyncTriggerCut.schedule()}))),this._register(this._textArea.onCopy((e=>{this._ensureClipboardGetsEditorSelection(e)}))),this._register(this._textArea.onPaste((e=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),e.preventDefault(),!e.clipboardData)return;let[t,i]=k.getTextData(e.clipboardData);t&&(i=i||w.INSTANCE.get(t),this._onPaste.fire({text:t,metadata:i}))}))),this._register(this._textArea.onFocus((()=>{const e=this._hasFocus;this._setHasFocus(!0),this._accessibilityService.isScreenReaderOptimized()&&this._browser.isSafari&&!e&&this._hasFocus&&(this._asyncFocusGainWriteScreenReaderContent.value||(this._asyncFocusGainWriteScreenReaderContent.value=new d.uC((()=>this.writeNativeTextAreaContent("asyncFocusGain")),0)),this._asyncFocusGainWriteScreenReaderContent.value.schedule())}))),this._register(this._textArea.onBlur((()=>{this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent("blurWithoutCompositionEnd"),this._onCompositionEnd.fire()),this._setHasFocus(!1)}))),this._register(this._textArea.onSyntheticTap((()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent("tapWithoutCompositionEnd"),this._onCompositionEnd.fire())})))}_installSelectionChangeListener(){let e=0;return s.ko(this._textArea.ownerDocument,"selectionchange",(t=>{if(l.p.onSelectionChange(),!this._hasFocus)return;if(this._currentComposition)return;if(!this._browser.isChrome)return;const i=Date.now(),n=i-e;if(e=i,n<5)return;const o=i-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),o<100)return;if(!this._textAreaState.selection)return;const s=this._textArea.getValue();if(this._textAreaState.value!==s)return;const r=this._textArea.getSelectionStart(),a=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===r&&this._textAreaState.selectionEnd===a)return;const d=this._textAreaState.deduceEditorPosition(r),c=this._host.deduceModelPosition(d[0],d[1],d[2]),h=this._textAreaState.deduceEditorPosition(a),u=this._host.deduceModelPosition(h[0],h[1],h[2]),g=new m.L(c.lineNumber,c.column,u.lineNumber,u.column);this._onSelectionChangeRequest.fire(g)}))}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeNativeTextAreaContent("focusgain"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t}writeNativeTextAreaContent(e){!this._accessibilityService.isScreenReaderOptimized()&&"render"===e||this._currentComposition||(this._logService.trace(`writeTextAreaState(reason: ${e})`),this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent()))}_ensureClipboardGetsEditorSelection(e){const t=this._host.getDataToCopy(),i={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};w.INSTANCE.set(this._browser.isFirefox?t.text.replace(/\r\n/g,"\n"):t.text,i),e.preventDefault(),e.clipboardData&&k.setTextData(e.clipboardData,t.text,t.html,i)}};C=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([_(4,f.j),_(5,v.rr)],C);const k={getTextData(e){const t=e.getData(u.K.text);let i=null;const n=e.getData("vscode-editor-data");if("string"==typeof n)try{i=JSON.parse(n),1!==i.version&&(i=null)}catch(e){}return 0===t.length&&null===i&&e.files.length>0?[Array.prototype.slice.call(e.files,0).map((e=>e.name)).join("\n"),null]:[t,i]},setTextData(e,t,i,n){e.setData(u.K.text,t),"string"==typeof i&&e.setData("text/html",i),e.setData("vscode-editor-data",JSON.stringify(n))}};class S extends h.jG{get ownerDocument(){return this._actual.ownerDocument}constructor(e){super(),this._actual=e,this.onKeyDown=this._register(new r.f(this._actual,"keydown")).event,this.onKeyUp=this._register(new r.f(this._actual,"keyup")).event,this.onCompositionStart=this._register(new r.f(this._actual,"compositionstart")).event,this.onCompositionUpdate=this._register(new r.f(this._actual,"compositionupdate")).event,this.onCompositionEnd=this._register(new r.f(this._actual,"compositionend")).event,this.onBeforeInput=this._register(new r.f(this._actual,"beforeinput")).event,this.onInput=this._register(new r.f(this._actual,"input")).event,this.onCut=this._register(new r.f(this._actual,"cut")).event,this.onCopy=this._register(new r.f(this._actual,"copy")).event,this.onPaste=this._register(new r.f(this._actual,"paste")).event,this.onFocus=this._register(new r.f(this._actual,"focus")).event,this.onBlur=this._register(new r.f(this._actual,"blur")).event,this._onSyntheticTap=this._register(new c.vl),this.onSyntheticTap=this._onSyntheticTap.event,this._ignoreSelectionChangeTime=0,this._register(this.onKeyDown((()=>l.p.onKeyDown()))),this._register(this.onBeforeInput((()=>l.p.onBeforeInput()))),this._register(this.onInput((()=>l.p.onInput()))),this._register(this.onKeyUp((()=>l.p.onKeyUp()))),this._register(s.ko(this._actual,n.Tap,(()=>this._onSyntheticTap.fire())))}hasFocus(){const e=s.jG(this._actual);return e?e.activeElement===this._actual:!!this._actual.isConnected&&s.bq()===this._actual}setIgnoreSelectionChangeTime(e){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.value}setValue(e,t){const i=this._actual;i.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),i.value=t)}getSelectionStart(){return"backward"===this._actual.selectionDirection?this._actual.selectionEnd:this._actual.selectionStart}getSelectionEnd(){return"backward"===this._actual.selectionDirection?this._actual.selectionStart:this._actual.selectionEnd}setSelectionRange(e,t,i){const n=this._actual;let r=null;const a=s.jG(n);r=a?a.activeElement:s.bq();const l=s.zk(r),d=r===n,c=n.selectionStart,h=n.selectionEnd;if(d&&c===t&&h===i)o.gm&&l.parent!==l&&n.focus();else{if(d)return this.setIgnoreSelectionChangeTime("setSelectionRange"),n.setSelectionRange(t,i),void(o.gm&&l.parent!==l&&n.focus());try{const e=s.zK(n);this.setIgnoreSelectionChangeTime("setSelectionRange"),n.focus(),n.setSelectionRange(t,i),s.wk(n,e)}catch(e){}}}}},13377:(e,t,i)=>{"use strict";i.d(t,{Al:()=>a,Hf:()=>s,_O:()=>r});var n=i(16844),o=i(28061);const s=!1;class r{constructor(e,t,i,n,o){this.value=e,this.selectionStart=t,this.selectionEnd=i,this.selection=n,this.newlineCountBeforeSelection=o}toString(){return`[ <${this.value}>, selectionStart: ${this.selectionStart}, selectionEnd: ${this.selectionEnd}]`}static readFromTextArea(e,t){const i=e.getValue(),n=e.getSelectionStart(),o=e.getSelectionEnd();let s;return t&&i.substring(0,n)===t.value.substring(0,t.selectionStart)&&(s=t.newlineCountBeforeSelection),new r(i,n,o,null,s)}collapseSelection(){return this.selectionStart===this.value.length?this:new r(this.value,this.value.length,this.value.length,null,void 0)}writeToTextArea(e,t,i){s&&console.log(`writeToTextArea ${e}: ${this.toString()}`),t.setValue(e,this.value),i&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)}deduceEditorPosition(e){var t,i,n,o,s,r,a,l;if(e<=this.selectionStart){const n=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(null!==(i=null===(t=this.selection)||void 0===t?void 0:t.getStartPosition())&&void 0!==i?i:null,n,-1)}if(e>=this.selectionEnd){const t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(null!==(o=null===(n=this.selection)||void 0===n?void 0:n.getEndPosition())&&void 0!==o?o:null,t,1)}const d=this.value.substring(this.selectionStart,e);if(-1===d.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(null!==(r=null===(s=this.selection)||void 0===s?void 0:s.getStartPosition())&&void 0!==r?r:null,d,1);const c=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(null!==(l=null===(a=this.selection)||void 0===a?void 0:a.getEndPosition())&&void 0!==l?l:null,c,-1)}_finishDeduceEditorPosition(e,t,i){let n=0,o=-1;for(;-1!==(o=t.indexOf("\n",o+1));)n++;return[e,i*t.length,n]}static deduceInput(e,t,i){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};s&&(console.log("------------------------deduceInput"),console.log(`PREVIOUS STATE: ${e.toString()}`),console.log(`CURRENT STATE: ${t.toString()}`));const o=Math.min(n.Qp(e.value,t.value),e.selectionStart,t.selectionStart),r=Math.min(n.Vi(e.value,t.value),e.value.length-e.selectionEnd,t.value.length-t.selectionEnd),a=e.value.substring(o,e.value.length-r),l=t.value.substring(o,t.value.length-r),d=e.selectionStart-o,c=e.selectionEnd-o,h=t.selectionStart-o,u=t.selectionEnd-o;if(s&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${a}>, selectionStart: ${d}, selectionEnd: ${c}`),console.log(`AFTER DIFFING CURRENT STATE: <${l}>, selectionStart: ${h}, selectionEnd: ${u}`)),h===u){const t=e.selectionStart-o;return s&&console.log(`REMOVE PREVIOUS: ${t} chars`),{text:l,replacePrevCharCnt:t,replaceNextCharCnt:0,positionDelta:0}}return{text:l,replacePrevCharCnt:c-d,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(e,t){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(s&&(console.log("------------------------deduceAndroidCompositionInput"),console.log(`PREVIOUS STATE: ${e.toString()}`),console.log(`CURRENT STATE: ${t.toString()}`)),e.value===t.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:t.selectionEnd-e.selectionEnd};const i=Math.min(n.Qp(e.value,t.value),e.selectionEnd),o=Math.min(n.Vi(e.value,t.value),e.value.length-e.selectionEnd),r=e.value.substring(i,e.value.length-o),a=t.value.substring(i,t.value.length-o),l=e.selectionStart-i,d=e.selectionEnd-i,c=t.selectionStart-i,h=t.selectionEnd-i;return s&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${r}>, selectionStart: ${l}, selectionEnd: ${d}`),console.log(`AFTER DIFFING CURRENT STATE: <${a}>, selectionStart: ${c}, selectionEnd: ${h}`)),{text:a,replacePrevCharCnt:d,replaceNextCharCnt:r.length-d,positionDelta:h-a.length}}}r.EMPTY=new r("",0,0,null,void 0);class a{static _getPageOfLine(e,t){return Math.floor((e-1)/t)}static _getRangeForPage(e,t){const i=e*t,n=i+1,s=i+t;return new o.Q(n,1,s+1,1)}static fromEditorSelection(e,t,i,n){const s=500,l=a._getPageOfLine(t.startLineNumber,i),d=a._getRangeForPage(l,i),c=a._getPageOfLine(t.endLineNumber,i),h=a._getRangeForPage(c,i);let u=d.intersectRanges(new o.Q(1,1,t.startLineNumber,t.startColumn));if(n&&e.getValueLengthInRange(u,1)>s){const t=e.modifyPosition(u.getEndPosition(),-500);u=o.Q.fromPositions(t,u.getEndPosition())}const g=e.getValueInRange(u,1),p=e.getLineCount(),m=e.getLineMaxColumn(p);let f=h.intersectRanges(new o.Q(t.endLineNumber,t.endColumn,p,m));if(n&&e.getValueLengthInRange(f,1)>s){const t=e.modifyPosition(f.getStartPosition(),s);f=o.Q.fromPositions(f.getStartPosition(),t)}const v=e.getValueInRange(f,1);let _;if(l===c||l+1===c)_=e.getValueInRange(t,1);else{const i=d.intersectRanges(t),n=h.intersectRanges(t);_=e.getValueInRange(i,1)+String.fromCharCode(8230)+e.getValueInRange(n,1)}return n&&_.length>1e3&&(_=_.substring(0,s)+String.fromCharCode(8230)+_.substring(_.length-s,_.length)),new r(g+_+v,g.length,g.length+_.length,t,u.endLineNumber-u.startLineNumber)}}},72521:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CoreEditingCommands:()=>I,CoreEditorCommand:()=>S,CoreNavigationCommands:()=>m,EditorScroll_:()=>g,RevealLine_:()=>p});var n=i(3765),o=i(55893),s=i(79359),r=i(9009),a=i(50946),l=i(87301),d=i(29895),c=i(15365),h=i(28061);class u{static columnSelect(e,t,i,n,o,s){const r=Math.abs(o-i)+1,a=i>o,l=n>s,u=ns)continue;if(vn)continue;if(f0&&n--,u.columnSelect(e,t,i.fromViewLineNumber,i.fromViewVisualColumn,i.toViewLineNumber,n)}static columnSelectRight(e,t,i){let n=0;const o=Math.min(i.fromViewLineNumber,i.toViewLineNumber),s=Math.max(i.fromViewLineNumber,i.toViewLineNumber);for(let i=o;i<=s;i++){const o=t.getLineMaxColumn(i),s=e.visibleColumnFromColumn(t,new c.y(i,o));n=Math.max(n,s)}let r=i.toViewVisualColumn;return r{const i=e.get(l.T).getFocusedCodeEditor();return!(!i||!i.hasTextFocus())&&this._runEditorCommand(e,i,t)})),e.addImplementation(1e3,"generic-dom-input-textarea",((e,t)=>{const i=(0,C.bq)();return!!(i&&["input","textarea"].indexOf(i.tagName.toLowerCase())>=0)&&(this.runDOMCommand(i),!0)})),e.addImplementation(0,"generic-dom",((e,t)=>{const i=e.get(l.T).getActiveCodeEditor();return!!i&&(i.focus(),this._runEditorCommand(e,i,t))}))}_runEditorCommand(e,t,i){return this.runEditorCommand(e,t,i)||!0}}!function(e){class t extends S{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){t.position&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[v.c.moveTo(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)])&&2!==t.revealType&&e.revealAllCursors(t.source,!0,!0))}}e.MoveTo=(0,a.E_)(new t({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=(0,a.E_)(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class i extends S{runCoreEditorCommand(e,t){e.model.pushStackElement();const i=this._getColumnSelectResult(e,e.getPrimaryCursorState(),e.getCursorColumnSelectData(),t);null!==i&&(e.setCursorStates(t.source,3,i.viewStates.map((e=>d.MF.fromViewState(e)))),e.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:i.fromLineNumber,fromViewVisualColumn:i.fromVisualColumn,toViewLineNumber:i.toLineNumber,toViewVisualColumn:i.toVisualColumn}),i.reversed?e.revealTopMostCursor(t.source):e.revealBottomMostCursor(t.source))}}e.ColumnSelect=(0,a.E_)(new class extends i{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(e,t,i,n){if(void 0===n.position||void 0===n.viewPosition||void 0===n.mouseColumn)return null;const o=e.model.validatePosition(n.position),s=e.coordinatesConverter.validateViewPosition(new c.y(n.viewPosition.lineNumber,n.viewPosition.column),o),r=n.doColumnSelect?i.fromViewLineNumber:s.lineNumber,a=n.doColumnSelect?i.fromViewVisualColumn:n.mouseColumn-1;return u.columnSelect(e.cursorConfig,e,r,a,s.lineNumber,n.mouseColumn-1)}}),e.CursorColumnSelectLeft=(0,a.E_)(new class extends i{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:b.R.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,n){return u.columnSelectLeft(e.cursorConfig,e,i)}}),e.CursorColumnSelectRight=(0,a.E_)(new class extends i{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:0,kbExpr:b.R.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(e,t,i,n){return u.columnSelectRight(e.cursorConfig,e,i)}});class s extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,n){return u.columnSelectUp(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectUp=(0,a.E_)(new s({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:0,kbExpr:b.R.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=(0,a.E_)(new s({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:b.R.textInputFocus,primary:3595,linux:{primary:0}}}));class l extends i{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,i,n){return u.columnSelectDown(e.cursorConfig,e,i,this._isPaged)}}e.CursorColumnSelectDown=(0,a.E_)(new l({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:0,kbExpr:b.R.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=(0,a.E_)(new l({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:b.R.textInputFocus,primary:3596,linux:{primary:0}}}));class m extends S{constructor(){super({id:"cursorMove",precondition:void 0,metadata:v.S.metadata})}runCoreEditorCommand(e,t){const i=v.S.parse(t);i&&this._runCursorMove(e,t.source,i)}_runCursorMove(e,t,i){e.model.pushStackElement(),e.setCursorStates(t,3,m._move(e,e.getCursorStates(),i)),e.revealAllCursors(t,!0)}static _move(e,t,i){const n=i.select,o=i.value;switch(i.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return v.c.simpleMove(e,t,i.direction,n,o,i.unit);case 11:case 13:case 12:case 14:return v.c.viewportMove(e,t,i.direction,n,o);default:return null}}}e.CursorMoveImpl=m,e.CursorMove=(0,a.E_)(new m);class f extends S{constructor(e){super(e),this._staticArgs=e.args}runCoreEditorCommand(e,t){let i=this._staticArgs;-1===this._staticArgs.value&&(i={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.pageSize||e.cursorConfig.pageSize}),e.model.pushStackElement(),e.setCursorStates(t.source,3,v.c.simpleMove(e,e.getCursorStates(),i.direction,i.select,i.value,i.unit)),e.revealAllCursors(t.source,!0)}}e.CursorLeft=(0,a.E_)(new f({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:b.R.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=(0,a.E_)(new f({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:b.R.textInputFocus,primary:1039}})),e.CursorRight=(0,a.E_)(new f({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:0,kbExpr:b.R.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=(0,a.E_)(new f({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:b.R.textInputFocus,primary:1041}})),e.CursorUp=(0,a.E_)(new f({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:0,kbExpr:b.R.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=(0,a.E_)(new f({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:b.R.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=(0,a.E_)(new f({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:0,kbExpr:b.R.textInputFocus,primary:11}})),e.CursorPageUpSelect=(0,a.E_)(new f({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:b.R.textInputFocus,primary:1035}})),e.CursorDown=(0,a.E_)(new f({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:0,kbExpr:b.R.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=(0,a.E_)(new f({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:b.R.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=(0,a.E_)(new f({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:0,kbExpr:b.R.textInputFocus,primary:12}})),e.CursorPageDownSelect=(0,a.E_)(new f({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:0,kbExpr:b.R.textInputFocus,primary:1036}})),e.CreateCursor=(0,a.E_)(new class extends S{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(e,t){if(!t.position)return;let i;i=t.wholeLine?v.c.line(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition):v.c.moveTo(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition);const n=e.getCursorStates();if(n.length>1){const o=i.modelState?i.modelState.position:null,s=i.viewState?i.viewState.position:null;for(let i=0,r=n.length;is&&(o=s);const r=new h.Q(o,1,o,e.model.getLineMaxColumn(o));let a=0;if(i.at)switch(i.at){case p.RawAtArgument.Top:a=3;break;case p.RawAtArgument.Center:a=1;break;case p.RawAtArgument.Bottom:a=4}const l=e.coordinatesConverter.convertModelRangeToViewRange(r);e.revealRange(t.source,!1,l,a,0)}}),e.SelectAll=new class extends x{constructor(){super(a.tc)}runDOMCommand(e){o.gm&&(e.focus(),e.select()),e.ownerDocument.execCommand("selectAll")}runEditorCommand(e,t,i){const n=t._getViewModel();n&&this.runCoreEditorCommand(n,i)}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates("keyboard",3,[v.c.selectAll(e,e.getPrimaryCursorState())])}},e.SetSelection=(0,a.E_)(new class extends S{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(e,t){t.selection&&(e.model.pushStackElement(),e.setCursorStates(t.source,3,[d.MF.fromModelSelection(t.selection)]))}})}(m||(m={}));const L=w.M$.and(b.R.textInputFocus,b.R.columnSelection);function D(e,t){y.f.registerKeybindingRule({id:e,primary:t,when:L,weight:1})}function E(e){return e.register(),e}var I;D(m.CursorColumnSelectLeft.id,1039),D(m.CursorColumnSelectRight.id,1041),D(m.CursorColumnSelectUp.id,1040),D(m.CursorColumnSelectPageUp.id,1035),D(m.CursorColumnSelectDown.id,1042),D(m.CursorColumnSelectPageDown.id,1036),function(e){class t extends a.DX{runEditorCommand(e,t,i){const n=t._getViewModel();n&&this.runCoreEditingCommand(t,n,i||{})}}e.CoreEditingCommand=t,e.LineBreakInsert=(0,a.E_)(new class extends t{constructor(){super({id:"lineBreakInsert",precondition:b.R.writable,kbOpts:{weight:0,kbExpr:b.R.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,k.AO.lineBreakInsert(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection))))}}),e.Outdent=(0,a.E_)(new class extends t{constructor(){super({id:"outdent",precondition:b.R.writable,kbOpts:{weight:0,kbExpr:w.M$.and(b.R.editorTextFocus,b.R.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,_.T.outdent(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)))),e.pushUndoStop()}}),e.Tab=(0,a.E_)(new class extends t{constructor(){super({id:"tab",precondition:b.R.writable,kbOpts:{weight:0,kbExpr:w.M$.and(b.R.editorTextFocus,b.R.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(e,t,i){e.pushUndoStop(),e.executeCommands(this.id,_.T.tab(t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)))),e.pushUndoStop()}}),e.DeleteLeft=(0,a.E_)(new class extends t{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:0,kbExpr:b.R.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(e,t,i){const[n,o]=f.g.deleteLeft(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)),t.getCursorAutoClosedCharacters());n&&e.pushUndoStop(),e.executeCommands(this.id,o),t.setPrevEditOperationType(2)}}),e.DeleteRight=(0,a.E_)(new class extends t{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:0,kbExpr:b.R.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(e,t,i){const[n,o]=f.g.deleteRight(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map((e=>e.modelState.selection)));n&&e.pushUndoStop(),e.executeCommands(this.id,o),t.setPrevEditOperationType(3)}}),e.Undo=new class extends x{constructor(){super(a.aU)}runDOMCommand(e){e.ownerDocument.execCommand("undo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(92))return t.getModel().undo()}},e.Redo=new class extends x{constructor(){super(a.ih)}runDOMCommand(e){e.ownerDocument.execCommand("redo")}runEditorCommand(e,t,i){if(t.hasModel()&&!0!==t.getOption(92))return t.getModel().redo()}}}(I||(I={}));class N extends a.uB{constructor(e,t,i){super({id:e,precondition:void 0,metadata:i}),this._handlerId=t}runCommand(e,t){const i=e.get(l.T).getFocusedCodeEditor();i&&i.trigger("keyboard",this._handlerId,t)}}function M(e,t){E(new N("default:"+e,e)),E(new N(e,e,t))}M("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),M("replacePreviousChar"),M("compositionType"),M("compositionStart"),M("compositionEnd"),M("paste"),M("cut")},42683:(e,t,i)=>{"use strict";i.d(t,{l:()=>h,q:()=>l});var n=i(39587),o=i(69887),s=i(53720),r=i(37264),a=i(91860);function l(e){const t=new o.Vq;for(const i of e.items){const e=i.type;if("string"===i.kind){const n=new Promise((e=>i.getAsString(e)));t.append(e,(0,o.gf)(n))}else if("file"===i.kind){const n=i.getAsFile();n&&t.append(e,d(n))}}return t}function d(e){const t=e.path?r.r.parse(e.path):void 0;return(0,o.VX)(e.name,t,(async()=>new Uint8Array(await e.arrayBuffer())))}const c=Object.freeze([a.sV.EDITORS,a.sV.FILES,n.t.RESOURCES,n.t.INTERNAL_URI_LIST]);function h(e,t=!1){const i=l(e),a=i.get(n.t.INTERNAL_URI_LIST);if(a)i.replace(s.K.uriList,a);else if(t||!i.has(s.K.uriList)){const t=[];for(const i of e.items){const e=i.getAsFile();if(e){const i=e.path;try{i?t.push(r.r.file(i).toString()):t.push(r.r.parse(e.name,!0).toString())}catch(e){}}}t.length&&i.replace(s.K.uriList,(0,o.gf)(o.jt.create(t)))}for(const e of c)i.delete(e);return i}},66638:(e,t,i)=>{"use strict";i.d(t,{Np:()=>s,jA:()=>r,z9:()=>o});var n=i(12596);function o(e){return!(!e||"function"!=typeof e.getEditorType)&&e.getEditorType()===n._.ICodeEditor}function s(e){return!(!e||"function"!=typeof e.getEditorType)&&e.getEditorType()===n._.IDiffEditor}function r(e){return o(e)?e:s(e)?e.getModifiedEditor():function(e){return!!e&&"object"==typeof e&&"function"==typeof e.onDidChangeActiveEditor}(e)&&o(e.activeCodeEditor)?e.activeCodeEditor:null}},58574:(e,t,i)=>{"use strict";i.d(t,{$z:()=>f,BA:()=>_,DW:()=>v,Hh:()=>c,Qn:()=>b,dO:()=>m,i_:()=>p,nz:()=>d,wt:()=>g});var n=i(14333),o=i(10176),s=i(9715),r=i(65958),a=i(10998),l=i(70559);class d{constructor(e,t){this.x=e,this.y=t,this._pageCoordinatesBrand=void 0}toClientCoordinates(e){return new c(this.x-e.scrollX,this.y-e.scrollY)}}class c{constructor(e,t){this.clientX=e,this.clientY=t,this._clientCoordinatesBrand=void 0}toPageCoordinates(e){return new d(this.clientX+e.scrollX,this.clientY+e.scrollY)}}class h{constructor(e,t,i,n){this.x=e,this.y=t,this.width=i,this.height=n,this._editorPagePositionBrand=void 0}}class u{constructor(e,t){this.x=e,this.y=t,this._positionRelativeToEditorBrand=void 0}}function g(e){const t=n.BK(e);return new h(t.left,t.top,t.width,t.height)}function p(e,t,i){const n=t.width/e.offsetWidth,o=t.height/e.offsetHeight,s=(i.x-t.x)/n,r=(i.y-t.y)/o;return new u(s,r)}class m extends s.P{constructor(e,t,i){super(n.zk(i),e),this._editorMouseEventBrand=void 0,this.isFromPointerCapture=t,this.pos=new d(this.posx,this.posy),this.editorPos=g(i),this.relativePos=p(i,this.editorPos,this.pos)}}class f{constructor(e){this._editorViewDomNode=e}_create(e){return new m(e,!1,this._editorViewDomNode)}onContextMenu(e,t){return n.ko(e,"contextmenu",(e=>{t(this._create(e))}))}onMouseUp(e,t){return n.ko(e,"mouseup",(e=>{t(this._create(e))}))}onMouseDown(e,t){return n.ko(e,n.Bx.MOUSE_DOWN,(e=>{t(this._create(e))}))}onPointerDown(e,t){return n.ko(e,n.Bx.POINTER_DOWN,(e=>{t(this._create(e),e.pointerId)}))}onMouseLeave(e,t){return n.ko(e,n.Bx.MOUSE_LEAVE,(e=>{t(this._create(e))}))}onMouseMove(e,t){return n.ko(e,"mousemove",(e=>t(this._create(e))))}}class v{constructor(e){this._editorViewDomNode=e}_create(e){return new m(e,!1,this._editorViewDomNode)}onPointerUp(e,t){return n.ko(e,"pointerup",(e=>{t(this._create(e))}))}onPointerDown(e,t){return n.ko(e,n.Bx.POINTER_DOWN,(e=>{t(this._create(e),e.pointerId)}))}onPointerLeave(e,t){return n.ko(e,n.Bx.POINTER_LEAVE,(e=>{t(this._create(e))}))}onPointerMove(e,t){return n.ko(e,"pointermove",(e=>t(this._create(e))))}}class _ extends a.jG{constructor(e){super(),this._editorViewDomNode=e,this._globalPointerMoveMonitor=this._register(new o._),this._keydownListener=null}startMonitoring(e,t,i,o,s){this._keydownListener=n.b2(e.ownerDocument,"keydown",(e=>{e.toKeyCodeChord().isModifierKey()||this._globalPointerMoveMonitor.stopMonitoring(!0,e.browserEvent)}),!0),this._globalPointerMoveMonitor.startMonitoring(e,t,i,(e=>{o(new m(e,!0,this._editorViewDomNode))}),(e=>{this._keydownListener.dispose(),s(e)}))}stopMonitoring(){this._globalPointerMoveMonitor.stopMonitoring(!0)}}class b{constructor(e){this._editor=e,this._instanceId=++b._idPool,this._counter=0,this._rules=new Map,this._garbageCollectionScheduler=new r.uC((()=>this.garbageCollect()),1e3)}createClassNameRef(e){const t=this.getOrCreateRule(e);return t.increaseRefCount(),{className:t.className,dispose:()=>{t.decreaseRefCount(),this._garbageCollectionScheduler.schedule()}}}getOrCreateRule(e){const t=this.computeUniqueKey(e);let i=this._rules.get(t);if(!i){const o=this._counter++;i=new w(t,`dyn-rule-${this._instanceId}-${o}`,n.Cl(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0,e),this._rules.set(t,i)}return i}computeUniqueKey(e){return JSON.stringify(e)}garbageCollect(){for(const e of this._rules.values())e.hasReferences()||(this._rules.delete(e.key),e.dispose())}}b._idPool=0;class w{constructor(e,t,i,o){this.key=e,this.className=t,this.properties=o,this._referenceCount=0,this._styleElementDisposables=new a.Cm,this._styleElement=n.li(i,void 0,this._styleElementDisposables),this._styleElement.textContent=this.getCssText(this.className,this.properties)}getCssText(e,t){let i=`.${e} {`;for(const e in t){const n=t[e];let o;o="object"==typeof n?(0,l.GuP)(n.id):n,i+=`\n\t${y(e)}: ${o};`}return i+="\n}",i}dispose(){this._styleElementDisposables.dispose(),this._styleElement=void 0}increaseRefCount(){this._referenceCount++}decreaseRefCount(){this._referenceCount--}hasReferences(){return this._referenceCount>0}}function y(e){return e.replace(/(^[A-Z])/,(([e])=>e.toLowerCase())).replace(/([A-Z])/g,(([e])=>`-${e.toLowerCase()}`))}},50946:(e,t,i)=>{"use strict";i.d(t,{DX:()=>k,E_:()=>E,Fl:()=>I,HW:()=>A,PF:()=>x,aU:()=>P,dS:()=>n,fE:()=>y,gW:()=>N,ih:()=>O,ke:()=>D,ks:()=>S,qO:()=>L,tc:()=>F,uB:()=>w,xX:()=>M});var n,o=i(3765),s=i(37264),r=i(87301),a=i(15365),l=i(64830),d=i(37042),c=i(58067),h=i(59715),u=i(31540),g=i(82399),p=i(48421),m=i(67167),f=i(76243),v=i(79359),_=i(46441),b=i(14333);class w{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this.metadata=e.metadata}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const e=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const t of e){let e=t.kbExpr;this.precondition&&(e=e?u.M$.and(e,this.precondition):this.precondition);const i={id:this.id,weight:t.weight,args:t.args,when:e,primary:t.primary,secondary:t.secondary,win:t.win,linux:t.linux,mac:t.mac};p.f.registerKeybindingRule(i)}}h.w.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),metadata:this.metadata})}_registerMenuItem(e){c.ZG.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title,icon:e.icon,precondition:this.precondition},when:e.when,order:e.order})}}class y extends w{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t,i,n){return this._implementations.push({priority:e,name:t,implementation:i,when:n}),this._implementations.sort(((e,t)=>t.priority-e.priority)),{dispose:()=>{for(let e=0;e{if(e.get(u.fN).contextMatchesRules(null!=i?i:void 0))return n(e,s,t)}))}runCommand(e,t){return k.runEditorCommand(e,t,this.precondition,((e,t,i)=>this.runEditorCommand(e,t,i)))}}class S extends k{static convertOptions(e){let t;function i(t){return t.menuId||(t.menuId=c.D8.EditorContext),t.title||(t.title=e.label),t.when=u.M$.and(e.precondition,t.when),t}return t=Array.isArray(e.menuOpts)?e.menuOpts:e.menuOpts?[e.menuOpts]:[],Array.isArray(e.contextMenuOpts)?t.push(...e.contextMenuOpts.map(i)):e.contextMenuOpts&&t.push(i(e.contextMenuOpts)),e.menuOpts=t,e}constructor(e){super(S.convertOptions(e)),this.label=e.label,this.alias=e.alias}runEditorCommand(e,t,i){return this.reportTelemetry(e,t),this.run(e,t,i||{})}reportTelemetry(e,t){e.get(f.k).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class x extends S{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t){return this._implementations.push([e,t]),this._implementations.sort(((e,t)=>t[0]-e[0])),{dispose:()=>{for(let e=0;e{var i,o;const s=e.get(u.fN),r=e.get(_.rr);if(s.contextMatchesRules(null!==(i=this.desc.precondition)&&void 0!==i?i:void 0))return this.runEditorCommand(e,n,...t);r.debug("[EditorAction2] NOT running command because its precondition is FALSE",this.desc.id,null===(o=this.desc.precondition)||void 0===o?void 0:o.serialize())}))}}function D(e,t){h.w.registerCommand(e,(function(e,...i){const n=e.get(g._Y),[o,r]=i;(0,v.j)(s.r.isUri(o)),(0,v.j)(a.y.isIPosition(r));const c=e.get(l.S).getModel(o);if(c){const e=a.y.lift(r);return n.invokeFunction(t,c,e,...i.slice(2))}return e.get(d.b).createModelReference(o).then((e=>new Promise(((o,s)=>{try{o(n.invokeFunction(t,e.object.textEditorModel,a.y.lift(r),i.slice(2)))}catch(e){s(e)}})).finally((()=>{e.dispose()}))))}))}function E(e){return T.INSTANCE.registerEditorCommand(e),e}function I(e){const t=new e;return T.INSTANCE.registerEditorAction(t),t}function N(e){return T.INSTANCE.registerEditorAction(e),e}function M(e){T.INSTANCE.registerEditorAction(e)}function A(e,t,i){T.INSTANCE.registerEditorContribution(e,t,i)}!function(e){e.getEditorCommand=function(e){return T.INSTANCE.getEditorCommand(e)},e.getEditorActions=function(){return T.INSTANCE.getEditorActions()},e.getEditorContributions=function(){return T.INSTANCE.getEditorContributions()},e.getSomeEditorContributions=function(e){return T.INSTANCE.getEditorContributions().filter((t=>e.indexOf(t.id)>=0))},e.getDiffEditorContributions=function(){return T.INSTANCE.getDiffEditorContributions()}}(n||(n={}));class T{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(e,t,i){this.editorContributions.push({id:e,ctor:t,instantiation:i})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(e){e.register(),this.editorActions.push(e)}getEditorActions(){return this.editorActions}registerEditorCommand(e){e.register(),this.editorCommands[e.id]=e}getEditorCommand(e){return this.editorCommands[e]||null}}function R(e){return e.register(),e}T.INSTANCE=new T,m.O.add("editor.contributions",T.INSTANCE);const P=R(new y({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:c.D8.MenubarEditMenu,group:"1_do",title:o.k({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:c.D8.CommandPalette,group:"",title:o.k("undo","Undo"),order:1}]}));R(new C(P,{id:"default:undo",precondition:void 0}));const O=R(new y({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:c.D8.MenubarEditMenu,group:"1_do",title:o.k({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:c.D8.CommandPalette,group:"",title:o.k("redo","Redo"),order:1}]}));R(new C(O,{id:"default:redo",precondition:void 0}));const F=R(new y({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:c.D8.MenubarSelectionMenu,group:"1_basic",title:o.k({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:c.D8.CommandPalette,group:"",title:o.k("selectAll","Select All"),order:1}]}))},61988:(e,t,i)=>{"use strict";i.d(t,{Qg:()=>u,Ud:()=>d,jD:()=>h});var n=i(8897),o=i(10998),s=i(16311),r=i(34442),a=i(18366),l=i(93702);function d(e){return c.get(e)}class c extends o.jG{static get(e){let t=c._map.get(e);if(!t){t=new c(e),c._map.set(e,t);const i=e.onDidDispose((()=>{const t=c._map.get(e);t&&(c._map.delete(e),t.dispose(),i.dispose())}))}return t}_beginUpdate(){this._updateCounter++,1===this._updateCounter&&(this._currentTransaction=new r.XL((()=>{})))}_endUpdate(){if(this._updateCounter--,0===this._updateCounter){const e=this._currentTransaction;this._currentTransaction=void 0,e.finish()}}constructor(e){var t,i,o;super(),this.editor=e,this._updateCounter=0,this._currentTransaction=void 0,this._model=(0,s.FY)(this,this.editor.getModel()),this.model=this._model,this.isReadonly=(0,s.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(92))),this._versionId=(0,s.Zh)({owner:this,lazy:!0},null!==(i=null===(t=this.editor.getModel())||void 0===t?void 0:t.getVersionId())&&void 0!==i?i:null),this.versionId=this._versionId,this._selections=(0,s.Zh)({owner:this,equalsFn:(0,n.KC)((0,n.S3)(l.L.selectionsEqual)),lazy:!0},null!==(o=this.editor.getSelections())&&void 0!==o?o:null),this.selections=this._selections,this.isFocused=(0,s.y0)(this,(e=>{const t=this.editor.onDidFocusEditorWidget(e),i=this.editor.onDidBlurEditorWidget(e);return{dispose(){t.dispose(),i.dispose()}}}),(()=>this.editor.hasWidgetFocus())),this.value=(0,a.dQ)(this,(e=>{var t,i;return this.versionId.read(e),null!==(i=null===(t=this.model.read(e))||void 0===t?void 0:t.getValue())&&void 0!==i?i:""}),((e,t)=>{const i=this.model.get();null!==i&&e!==i.getValue()&&i.setValue(e)})),this.valueIsEmpty=(0,s.un)(this,(e=>{var t;return this.versionId.read(e),0===(null===(t=this.editor.getModel())||void 0===t?void 0:t.getValueLength())})),this.cursorSelection=(0,s.C)({owner:this,equalsFn:(0,n.KC)(l.L.selectionsEqual)},(e=>{var t,i;return null!==(i=null===(t=this.selections.read(e))||void 0===t?void 0:t[0])&&void 0!==i?i:null})),this.onDidType=(0,s.Yd)(this),this.scrollTop=(0,s.y0)(this.editor.onDidScrollChange,(()=>this.editor.getScrollTop())),this.scrollLeft=(0,s.y0)(this.editor.onDidScrollChange,(()=>this.editor.getScrollLeft())),this.layoutInfo=(0,s.y0)(this.editor.onDidLayoutChange,(()=>this.editor.getLayoutInfo())),this.contentWidth=(0,s.y0)(this.editor.onDidContentSizeChange,(()=>this.editor.getContentWidth())),this._overlayWidgetCounter=0,this._register(this.editor.onBeginUpdate((()=>this._beginUpdate()))),this._register(this.editor.onEndUpdate((()=>this._endUpdate()))),this._register(this.editor.onDidChangeModel((()=>{this._beginUpdate();try{this._model.set(this.editor.getModel(),this._currentTransaction),this._forceUpdate()}finally{this._endUpdate()}}))),this._register(this.editor.onDidType((e=>{this._beginUpdate();try{this._forceUpdate(),this.onDidType.trigger(this._currentTransaction,e)}finally{this._endUpdate()}}))),this._register(this.editor.onDidChangeModelContent((e=>{var t,i;this._beginUpdate();try{this._versionId.set(null!==(i=null===(t=this.editor.getModel())||void 0===t?void 0:t.getVersionId())&&void 0!==i?i:null,this._currentTransaction,e),this._forceUpdate()}finally{this._endUpdate()}}))),this._register(this.editor.onDidChangeCursorSelection((e=>{this._beginUpdate();try{this._selections.set(this.editor.getSelections(),this._currentTransaction,e),this._forceUpdate()}finally{this._endUpdate()}})))}forceUpdate(e){this._beginUpdate();try{if(this._forceUpdate(),!e)return;return e(this._currentTransaction)}finally{this._endUpdate()}}_forceUpdate(){var e,t;this._beginUpdate();try{this._model.set(this.editor.getModel(),this._currentTransaction),this._versionId.set(null!==(t=null===(e=this.editor.getModel())||void 0===e?void 0:e.getVersionId())&&void 0!==t?t:null,this._currentTransaction,void 0),this._selections.set(this.editor.getSelections(),this._currentTransaction,void 0)}finally{this._endUpdate()}}getOption(e){return(0,s.y0)(this,(t=>this.editor.onDidChangeConfiguration((i=>{i.hasChanged(e)&&t(void 0)}))),(()=>this.editor.getOption(e)))}setDecorations(e){const t=new o.Cm,i=this.editor.createDecorationsCollection();return t.add((0,s.zL)({owner:this,debugName:()=>`Apply decorations from ${e.debugName}`},(t=>{const n=e.read(t);i.set(n)}))),t.add({dispose:()=>{i.clear()}}),t}createOverlayWidget(e){const t="observableOverlayWidget"+this._overlayWidgetCounter++,i={getDomNode:()=>e.domNode,getPosition:()=>e.position.get(),getId:()=>t,allowEditorOverflow:e.allowEditorOverflow,getMinContentWidthInPx:()=>e.minContentWidthInPx.get()};this.editor.addOverlayWidget(i);const n=(0,s.fm)((t=>{e.position.read(t),e.minContentWidthInPx.read(t),this.editor.layoutOverlayWidget(i)}));return(0,o.s)((()=>{n.dispose(),this.editor.removeOverlayWidget(i)}))}}function h(e,t){return(0,s.ht)({createEmptyChangeSummary:()=>({deltas:[],didChange:!1}),handleChange:(t,i)=>{if(t.didChange(e)){const e=t.change;void 0!==e&&i.deltas.push(e),i.didChange=!0}return!0}},((i,n)=>{const o=e.read(i);n.didChange&&t(o,n.deltas)}))}function u(e,t){const i=new o.Cm,n=h(e,((e,n)=>{i.clear(),t(e,n,i)}));return{dispose(){n.dispose(),i.dispose()}}}c._map=new Map},98769:(e,t,i)=>{"use strict";i.d(t,{cw:()=>l,jN:()=>a,nu:()=>r});var n=i(82399),o=i(37264),s=i(79359);const r=(0,n.u1)("IWorkspaceEditService");class a{constructor(e){this.metadata=e}static convert(e){return e.edits.map((e=>{if(l.is(e))return l.lift(e);if(d.is(e))return d.lift(e);throw new Error("Unsupported edit")}))}}class l extends a{static is(e){return e instanceof l||(0,s.Gv)(e)&&o.r.isUri(e.resource)&&(0,s.Gv)(e.textEdit)}static lift(e){return e instanceof l?e:new l(e.resource,e.textEdit,e.versionId,e.metadata)}constructor(e,t,i=void 0,n){super(n),this.resource=e,this.textEdit=t,this.versionId=i}}class d extends a{static is(e){return e instanceof d||(0,s.Gv)(e)&&(Boolean(e.newResource)||Boolean(e.oldResource))}static lift(e){return e instanceof d?e:new d(e.oldResource,e.newResource,e.options,e.metadata)}constructor(e,t,i={},n){super(n),this.oldResource=e,this.newResource=t,this.options=i}}},87301:(e,t,i)=>{"use strict";i.d(t,{T:()=>n});const n=(0,i(82399).u1)("codeEditorService")},7002:(e,t,i)=>{"use strict";i.d(t,{Z6:()=>Ce,Bc:()=>fe});var n=i(65958),o=i(10998),s=i(94327),r=i(2106),a=i(71386),l=i(63339),d=i(16844);let c=!1;function h(e){l.HZ&&(c||(c=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class u{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.method=i,this.args=n,this.type=0}}class g{constructor(e,t,i,n){this.vsWorker=e,this.seq=t,this.res=i,this.err=n,this.type=1}}class p{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.eventName=i,this.arg=n,this.type=2}}class m{constructor(e,t,i){this.vsWorker=e,this.req=t,this.event=i,this.type=3}}class f{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class v{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){const i=String(++this._lastSentReq);return new Promise(((n,o)=>{this._pendingReplies[i]={resolve:n,reject:o},this._send(new u(this._workerId,i,e,t))}))}listen(e,t){let i=null;const n=new r.vl({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,n),this._send(new p(this._workerId,i,e,t))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new f(this._workerId,i)),i=null}});return n.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let i=e.err;return e.err.$isError&&(i=new Error,i.name=e.err.name,i.message=e.err.message,i.stack=e.err.stack),void t.reject(i)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.method,e.args).then((e=>{this._send(new g(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=(0,s.cU)(e.detail)),this._send(new g(this._workerId,t,void 0,(0,s.cU)(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,i=this._handler.handleEvent(e.eventName,e.arg)((e=>{this._send(new m(this._workerId,t,e))}));this._pendingEvents.set(t,i)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){const t=[];if(0===e.type)for(let i=0;i{this._protocol.handleMessage(e)}),(e=>{null==n||n(e)}))),this._protocol=new v({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t)=>{if("function"!=typeof i[e])return Promise.reject(new Error("Missing method "+e+" on main thread host."));try{return Promise.resolve(i[e].apply(i,t))}catch(e){return Promise.reject(e)}},handleEvent:(e,t)=>{if(w(e)){const n=i[e].call(i,t);if("function"!=typeof n)throw new Error(`Missing dynamic event ${e} on main thread host.`);return n}if(b(e)){const t=i[e];if("function"!=typeof t)throw new Error(`Missing event ${e} on main thread host.`);return t}throw new Error(`Malformed event name ${e}`)}}),this._protocol.setWorkerId(this._worker.getId());let o=null;const s=globalThis.require;void 0!==s&&"function"==typeof s.getConfig?o=s.getConfig():void 0!==globalThis.requirejs&&(o=globalThis.requirejs.s.contexts._.config);const r=(0,a.V0)(i);this._onModuleLoaded=this._protocol.sendMessage("$initialize",[this._worker.getId(),JSON.parse(JSON.stringify(o)),t,r]);const l=(e,t)=>this._request(e,t),d=(e,t)=>this._protocol.listen(e,t);this._lazyProxy=new Promise(((e,i)=>{n=i,this._onModuleLoaded.then((t=>{e(function(e,t,i){const n=e=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},o=e=>function(t){return i(e,t)},s={};for(const t of e)w(t)?s[t]=o(t):b(t)?s[t]=i(t,void 0):s[t]=n(t);return s}(t,l,d))}),(e=>{i(e),this._onError("Worker failed to load "+t,e)}))}))}getProxyObject(){return this._lazyProxy}_request(e,t){return new Promise(((i,n)=>{this._onModuleLoaded.then((()=>{this._protocol.sendMessage(e,t).then(i,n)}),n)}))}_onError(e,t){console.error(e),console.info(t)}}function b(e){return"o"===e[0]&&"n"===e[1]&&d.Wv(e.charCodeAt(2))}function w(e){return/^onDynamic/.test(e)&&d.Wv(e.charCodeAt(9))}const y=(0,i(13021).H)("defaultWorkerFactory",{createScriptURL:e=>e});class C extends o.jG{constructor(e,t,i,n,s){super(),this.id=t,this.label=i;const r=function(e){const t=globalThis.MonacoEnvironment;if(t){if("function"==typeof t.getWorker)return t.getWorker("workerMain.js",e);if("function"==typeof t.getWorkerUrl){const i=t.getWorkerUrl("workerMain.js",e);return new Worker(y?y.createScriptURL(i):i,{name:e})}}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}(i);"function"==typeof r.then?this.worker=r:this.worker=Promise.resolve(r),this.postMessage(e,[]),this.worker.then((e=>{e.onmessage=function(e){n(e.data)},e.onmessageerror=s,"function"==typeof e.addEventListener&&e.addEventListener("error",s)})),this._register((0,o.s)((()=>{var e;null===(e=this.worker)||void 0===e||e.then((e=>{e.onmessage=null,e.onmessageerror=null,e.removeEventListener("error",s),e.terminate()})),this.worker=null})))}getId(){return this.id}postMessage(e,t){var i;null===(i=this.worker)||void 0===i||i.then((i=>{try{i.postMessage(e,t)}catch(e){(0,s.dz)(e),(0,s.dz)(new Error(`FAILED to post message to '${this.label}'-worker`,{cause:e}))}}))}}class k{constructor(e){this._label=e,this._webWorkerFailedBeforeError=!1}create(e,t,i){const n=++k.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new C(e,n,this._label||"anonymous"+n,t,(e=>{h(e),this._webWorkerFailedBeforeError=e,i(e)}))}}k.LAST_WORKER_ID=0;var S=i(28061),x=i(52394),L=i(6341),D=i(37264),E=i(15365),I=i(56158);class N{constructor(e,t,i,n){this._uri=e,this._lines=t,this._eol=i,this._versionId=n,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const e of t)this._acceptDeleteRange(e.range),this._acceptInsertText(new E.y(e.range.startLineNumber,e.range.startColumn),e.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,i=new Uint32Array(t);for(let n=0;nt&&(t=s),o>i&&(i=o),r>i&&(i=r)}t++,i++;const n=new T(i,t,0);for(let t=0,i=e.length;t=this._maxCharCode?0:this._states.get(e,t)}}let P=null,O=null;class F{static _createLink(e,t,i,n,o){let s=o-1;do{const i=t.charCodeAt(s);if(2!==e.get(i))break;s--}while(s>n);if(n>0){const e=t.charCodeAt(n-1),i=t.charCodeAt(s);(40===e&&41===i||91===e&&93===i||123===e&&125===i)&&s--}return{range:{startLineNumber:i,startColumn:n+1,endLineNumber:i,endColumn:s+2},url:t.substring(n,s+1)}}static computeLinks(e,t=function(){return null===P&&(P=new R([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),P}()){const i=function(){if(null===O){O=new A.V(0);const e=" \t<>'\"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…";for(let t=0;t=0?(n+=i?1:-1,n<0?n=e.length-1:n%=e.length,e[n]):null}}B.INSTANCE=new B;var W=i(93059),H=i(23013),V=i(49887),z=i(2548),j=i(2205);var U=i(94901);function $(e){const t=[];for(const i of e){const e=Number(i);(e||0===e&&""!==i.replace(/\s/g,""))&&t.push(e)}return t}function K(e,t,i,n){return{red:e/255,blue:i/255,green:t/255,alpha:n}}function q(e,t){const i=t.index,n=t[0].length;if(!i)return;const o=e.positionAt(i);return{startLineNumber:o.lineNumber,startColumn:o.column,endLineNumber:o.lineNumber,endColumn:o.column+n}}function G(e,t){if(!e)return;const i=U.Q1.Format.CSS.parseHex(t);return i?{range:e,color:K(i.rgba.r,i.rgba.g,i.rgba.b,i.rgba.a)}:void 0}function Q(e,t,i){if(!e||1!==t.length)return;const n=$(t[0].values());return{range:e,color:K(n[0],n[1],n[2],i?n[3]:1)}}function Z(e,t,i){if(!e||1!==t.length)return;const n=$(t[0].values()),o=new U.Q1(new U.hB(n[0],n[1]/100,n[2]/100,i?n[3]:1));return{range:e,color:K(o.rgba.r,o.rgba.g,o.rgba.b,o.rgba.a)}}function Y(e,t){return"string"==typeof e?[...e.matchAll(t)]:e.findMatches(t)}const X=new RegExp("\\bMARK:\\s*(.*)$","d"),J=/^-+|-+$/g;function ee(e,t,i){X.lastIndex=0;const n=X.exec(e);if(n){const e={startLineNumber:t,startColumn:n.indices[1][0]+1,endLineNumber:t,endColumn:n.indices[1][1]+1};if(e.endColumn>e.startColumn){const t={range:e,...te(n[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&i.push(t)}}}function te(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(J,""),hasSeparatorLine:t}}class ie extends N{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let i=0;ithis._lines.length)t=this._lines.length,i=this._lines[t-1].length+1,n=!0;else{const e=this._lines[t-1].length+1;i<1?(i=1,n=!0):i>e&&(i=e,n=!0)}return n?{lineNumber:t,column:i}:e}}class ne{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}acceptNewModel(e){this._models[e.url]=new ie(D.r.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){this._models[e]&&this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}async computeUnicodeHighlights(e,t,i){const n=this._getModel(e);return n?V.P.computeUnicodeHighlights(n,t,i):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(e,t){const i=this._getModel(e);return i?function(e,t){var i;let n=[];if(t.findRegionSectionHeaders&&(null===(i=t.foldingRules)||void 0===i?void 0:i.markers)){const i=function(e,t){const i=[],n=e.getLineCount();for(let o=1;o<=n;o++){const n=e.getLineContent(o),s=n.match(t.foldingRules.markers.start);if(s){const e={startLineNumber:o,startColumn:s[0].length+1,endLineNumber:o,endColumn:n.length+1};if(e.endColumn>e.startColumn){const t={range:e,...te(n.substring(s[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&i.push(t)}}}return i}(e,t);n=n.concat(i)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],i=e.getLineCount();for(let n=1;n<=i;n++)ee(e.getLineContent(n),n,t);return t}(e);n=n.concat(t)}return n}(i,t):[]}async computeDiff(e,t,i,n){const o=this._getModel(e),s=this._getModel(t);return o&&s?ne.computeDiff(o,s,i,n):null}static computeDiff(e,t,i,n){const o="advanced"===n?new j.D8:new z.n,s=e.getLinesContent(),r=t.getLinesContent(),a=o.computeDiff(s,r,i);function l(e){return e.map((e=>{var t;return[e.original.startLineNumber,e.original.endLineNumberExclusive,e.modified.startLineNumber,e.modified.endLineNumberExclusive,null===(t=e.innerChanges)||void 0===t?void 0:t.map((e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn]))]}))}return{identical:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:l(a.changes),moves:a.moves.map((e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,l(e.changes)]))}}static _modelsAreIdentical(e,t){const i=e.getLineCount();if(i!==t.getLineCount())return!1;for(let n=1;n<=i;n++)if(e.getLineContent(n)!==t.getLineContent(n))return!1;return!0}async computeMoreMinimalEdits(e,t,i){const n=this._getModel(e);if(!n)return t;const o=[];let s;t=t.slice(0).sort(((e,t)=>e.range&&t.range?S.Q.compareRangesUsingStarts(e.range,t.range):(e.range?0:1)-(t.range?0:1)));let r=0;for(let e=1;ene._diffLimit){o.push({range:e,text:r});continue}const l=(0,L.F1)(t,r,i),d=n.offsetAt(S.Q.lift(e).getStartPosition());for(const e of l){const t=n.positionAt(d+e.originalStart),i=n.positionAt(d+e.originalStart+e.originalLength),s={text:r.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:i.lineNumber,endColumn:i.column}};n.getValueInRange(s.range)!==s.text&&o.push(s)}}return"number"==typeof s&&o.push({eol:s,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),o}async computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"==typeof e.getLineCount&&"function"==typeof e.getLineContent?F.computeLinks(e):[]}(t):null}async computeDefaultDocumentColors(e){const t=this._getModel(e);return t?function(e){return e&&"function"==typeof e.getValue&&"function"==typeof e.positionAt?function(e){const t=[],i=Y(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(i.length>0)for(const n of i){const i=n.filter((e=>void 0!==e)),o=i[1],s=i[2];if(!s)continue;let r;if("rgb"===o){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;r=Q(q(e,n),Y(s,t),!1)}else if("rgba"===o){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;r=Q(q(e,n),Y(s,t),!0)}else if("hsl"===o){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;r=Z(q(e,n),Y(s,t),!1)}else if("hsla"===o){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;r=Z(q(e,n),Y(s,t),!0)}else"#"===o&&(r=G(q(e,n),o+s));r&&t.push(r)}return t}(e):[]}(t):null}async textualSuggest(e,t,i,n){const o=new H.W,s=new RegExp(i,n),r=new Set;e:for(const i of e){const e=this._getModel(i);if(e)for(const i of e.words(s))if(i!==t&&isNaN(Number(i))&&(r.add(i),r.size>ne._suggestionsLimit))break e}return{words:Array.from(r),duration:o.elapsed()}}async computeWordRanges(e,t,i,n){const o=this._getModel(e);if(!o)return Object.create(null);const s=new RegExp(i,n),r=Object.create(null);for(let e=t.startLineNumber;ethis._host.fhr(e,t))),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(n,t),Promise.resolve((0,a.V0)(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}}}ne._diffLimit=1e5,ne._suggestionsLimit=1e4,"function"==typeof importScripts&&(globalThis.monaco=(0,W.r)());var oe=i(64830),se=i(41504),re=i(13338),ae=i(46441),le=i(52230),de=i(23837),ce=i(39331),he=i(79955),ue=i(48877),ge=i(14333),pe=function(e,t){return function(i,n){t(i,n,e)}};function me(e,t){const i=e.getModel(t);return!!i&&!i.isTooLargeForSyncing()}let fe=class extends o.jG{constructor(e,t,i,n,o){super(),this._modelService=e,this._workerManager=this._register(new _e(this._modelService,n)),this._logService=i,this._register(o.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:(e,t)=>me(this._modelService,e.uri)?this._workerManager.withWorker().then((t=>t.computeLinks(e.uri))).then((e=>e&&{links:e})):Promise.resolve({links:[]})})),this._register(o.completionProvider.register("*",new ve(this._workerManager,t,this._modelService,n)))}dispose(){super.dispose()}canComputeUnicodeHighlights(e){return me(this._modelService,e)}computedUnicodeHighlights(e,t,i){return this._workerManager.withWorker().then((n=>n.computedUnicodeHighlights(e,t,i)))}async computeDiff(e,t,i,n){const o=await this._workerManager.withWorker().then((o=>o.computeDiff(e,t,i,n)));return o?{identical:o.identical,quitEarly:o.quitEarly,changes:s(o.changes),moves:o.moves.map((e=>new de.t(new ce.WL(new he.M(e[0],e[1]),new he.M(e[2],e[3])),s(e[4]))))}:null;function s(e){return e.map((e=>{var t;return new ce.wm(new he.M(e[0],e[1]),new he.M(e[2],e[3]),null===(t=e[4])||void 0===t?void 0:t.map((e=>new ce.q6(new S.Q(e[0],e[1],e[2],e[3]),new S.Q(e[4],e[5],e[6],e[7])))))}))}}computeMoreMinimalEdits(e,t,i=!1){if((0,re.EI)(t)){if(!me(this._modelService,e))return Promise.resolve(t);const o=H.W.create(),s=this._workerManager.withWorker().then((n=>n.computeMoreMinimalEdits(e,t,i)));return s.finally((()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),o.elapsed()))),Promise.race([s,(0,n.wR)(1e3).then((()=>t))])}return Promise.resolve(void 0)}canNavigateValueSet(e){return me(this._modelService,e)}navigateValueSet(e,t,i){return this._workerManager.withWorker().then((n=>n.navigateValueSet(e,t,i)))}canComputeWordRanges(e){return me(this._modelService,e)}computeWordRanges(e,t){return this._workerManager.withWorker().then((i=>i.computeWordRanges(e,t)))}findSectionHeaders(e,t){return this._workerManager.withWorker().then((i=>i.findSectionHeaders(e,t)))}};fe=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([pe(0,oe.S),pe(1,se.U),pe(2,ae.rr),pe(3,x.JZ),pe(4,le.u)],fe);class ve{constructor(e,t,i,n){this.languageConfigurationService=n,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=i}async provideCompletionItems(e,t){const i=this._configurationService.getValue(e.uri,t,"editor");if("off"===i.wordBasedSuggestions)return;const n=[];if("currentDocument"===i.wordBasedSuggestions)me(this._modelService,e.uri)&&n.push(e.uri);else for(const t of this._modelService.getModels())me(this._modelService,t.uri)&&(t===e?n.unshift(t.uri):"allDocuments"!==i.wordBasedSuggestions&&t.getLanguageId()!==e.getLanguageId()||n.push(t.uri));if(0===n.length)return;const o=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),s=e.getWordAtPosition(t),r=s?new S.Q(t.lineNumber,s.startColumn,t.lineNumber,s.endColumn):S.Q.fromPositions(t),a=r.setEndPosition(t.lineNumber,t.column),l=await this._workerManager.withWorker(),d=await l.textualSuggest(n,null==s?void 0:s.word,o);return d?{duration:d.duration,suggestions:d.words.map((e=>({kind:18,label:e,insertText:e,range:{insert:a,replace:r}})))}:void 0}}class _e extends o.jG{constructor(e,t){super(),this.languageConfigurationService=t,this._modelService=e,this._editorWorkerClient=null,this._lastWorkerUsedTime=(new Date).getTime(),this._register(new ge.Be).cancelAndSet((()=>this._checkStopIdleWorker()),Math.round(15e4),ue.G),this._register(this._modelService.onModelRemoved((e=>this._checkStopEmptyWorker())))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){this._editorWorkerClient&&0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){this._editorWorkerClient&&(new Date).getTime()-this._lastWorkerUsedTime>3e5&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new Ce(this._modelService,!1,"editorWorkerService",this.languageConfigurationService)),Promise.resolve(this._editorWorkerClient)}}class be extends o.jG{constructor(e,t,i){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!i){const e=new n.vb;e.cancelAndSet((()=>this._checkStopModelSync()),Math.round(3e4)),this._register(e)}}dispose(){for(const e in this._syncedModels)(0,o.AS)(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t){for(const i of e){const e=i.toString();this._syncedModels[e]||this._beginModelSync(i,t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){const e=(new Date).getTime(),t=[];for(const i in this._syncedModelsLastUsedTime)e-this._syncedModelsLastUsedTime[i]>6e4&&t.push(i);for(const e of t)this._stopModelSync(e)}_beginModelSync(e,t){const i=this._modelService.getModel(e);if(!i)return;if(!t&&i.isTooLargeForSyncing())return;const n=e.toString();this._proxy.acceptNewModel({url:i.uri.toString(),lines:i.getLinesContent(),EOL:i.getEOL(),versionId:i.getVersionId()});const s=new o.Cm;s.add(i.onDidChangeContent((e=>{this._proxy.acceptModelChanged(n.toString(),e)}))),s.add(i.onWillDispose((()=>{this._stopModelSync(n)}))),s.add((0,o.s)((()=>{this._proxy.acceptRemovedModel(n)}))),this._syncedModels[n]=s}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],(0,o.AS)(t)}}class we{constructor(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class ye{constructor(e){this._workerClient=e}fhr(e,t){return this._workerClient.fhr(e,t)}}class Ce extends o.jG{constructor(e,t,i,n){super(),this.languageConfigurationService=n,this._disposed=!1,this._modelService=e,this._keepIdleModels=t,this._workerFactory=new k(i),this._worker=null,this._modelManager=null}fhr(e,t){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new _(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new ye(this)))}catch(e){h(e),this._worker=new we(new ne(new ye(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,(e=>(h(e),this._worker=new we(new ne(new ye(this),null)),this._getOrCreateWorker().getProxyObject())))}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new be(e,this._modelService,this._keepIdleModels))),this._modelManager}async _withSyncedResources(e,t=!1){return this._disposed?Promise.reject((0,s.aD)()):this._getProxy().then((i=>(this._getOrCreateModelManager(i).ensureSyncedResources(e,t),i)))}computedUnicodeHighlights(e,t,i){return this._withSyncedResources([e]).then((n=>n.computeUnicodeHighlights(e.toString(),t,i)))}computeDiff(e,t,i,n){return this._withSyncedResources([e,t],!0).then((o=>o.computeDiff(e.toString(),t.toString(),i,n)))}computeMoreMinimalEdits(e,t,i){return this._withSyncedResources([e]).then((n=>n.computeMoreMinimalEdits(e.toString(),t,i)))}computeLinks(e){return this._withSyncedResources([e]).then((t=>t.computeLinks(e.toString())))}computeDefaultDocumentColors(e){return this._withSyncedResources([e]).then((t=>t.computeDefaultDocumentColors(e.toString())))}async textualSuggest(e,t,i){const n=await this._withSyncedResources(e),o=i.source,s=i.flags;return n.textualSuggest(e.map((e=>e.toString())),t,o,s)}computeWordRanges(e,t){return this._withSyncedResources([e]).then((i=>{const n=this._modelService.getModel(e);if(!n)return Promise.resolve(null);const o=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId()).getWordDefinition(),s=o.source,r=o.flags;return i.computeWordRanges(e.toString(),t,s,r)}))}navigateValueSet(e,t,i){return this._withSyncedResources([e]).then((n=>{const o=this._modelService.getModel(e);if(!o)return null;const s=this.languageConfigurationService.getLanguageConfiguration(o.getLanguageId()).getWordDefinition(),r=s.source,a=s.flags;return n.navigateValueSet(e.toString(),t,i,r,a)}))}findSectionHeaders(e,t){return this._withSyncedResources([e]).then((i=>i.findSectionHeaders(e.toString(),t)))}dispose(){super.dispose(),this._disposed=!0}}},80878:(e,t,i)=>{"use strict";i.d(t,{D:()=>n});class n{static capture(e){if(0===e.getScrollTop()||e.hasPendingScrollAnimation())return new n(e.getScrollTop(),e.getContentHeight(),null,0,null);let t=null,i=0;const o=e.getVisibleRanges();if(o.length>0){t=o[0].getStartPosition();const n=e.getTopForPosition(t.lineNumber,t.column);i=e.getScrollTop()-n}return new n(e.getScrollTop(),e.getContentHeight(),t,i,e.getPosition())}constructor(e,t,i,n,o){this._initialScrollTop=e,this._initialContentHeight=t,this._visiblePosition=i,this._visiblePositionScrollDelta=n,this._cursorPosition=o}restore(e){if((this._initialContentHeight!==e.getContentHeight()||this._initialScrollTop!==e.getScrollTop())&&this._visiblePosition){const t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(e){if(this._initialContentHeight===e.getContentHeight()&&this._initialScrollTop===e.getScrollTop())return;const t=e.getPosition();if(!this._cursorPosition||!t)return;const i=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+i,1)}}},48664:(e,t,i)=>{"use strict";i.d(t,{BG:()=>s,IO:()=>a,Y:()=>r,eh:()=>o,pj:()=>d,qN:()=>l});class n{constructor(e,t){this._restrictedRenderingContextBrand=void 0,this._viewLayout=e,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;const i=this._viewLayout.getCurrentViewport();this.scrollTop=i.top,this.scrollLeft=i.left,this.viewportWidth=i.width,this.viewportHeight=i.height}getScrolledTopFromAbsoluteTop(e){return e-this.scrollTop}getVerticalOffsetForLineNumber(e,t){return this._viewLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t){return this._viewLayout.getVerticalOffsetAfterLineNumber(e,t)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}}class o extends n{constructor(e,t,i){super(e,t),this._renderingContextBrand=void 0,this._viewLines=i}linesVisibleRangesForRange(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)}visibleRangeForPosition(e){return this._viewLines.visibleRangeForPosition(e)}}class s{constructor(e,t,i,n){this.outsideRenderedLine=e,this.lineNumber=t,this.ranges=i,this.continuesOnNextLine=n}}class r{static from(e){const t=new Array(e.length);for(let i=0,n=e.length;i{"use strict";i.d(t,{Gb:()=>m,Ax:()=>p,rk:()=>w});var n=i(55893),o=i(5043),s=i(63339),r=i(48664);class a{static _createRange(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange}static _detachRange(e,t){e.selectNodeContents(t)}static _readClientRects(e,t,i,n,o){const s=this._createRange();try{return s.setStart(e,t),s.setEnd(i,n),s.getClientRects()}catch(e){return null}finally{this._detachRange(s,o)}}static _mergeAdjacentRanges(e){if(1===e.length)return e;e.sort(r.IO.compare);const t=[];let i=0,n=e[0];for(let o=1,s=e.length;o=s.left?n.width=Math.max(n.width,s.left+s.width-n.left):(t[i++]=n,n=s)}return t[i++]=n,t}static _createHorizontalRangesFromClientRects(e,t,i){if(!e||0===e.length)return null;const n=[];for(let o=0,s=e.length;or)return null;if((t=Math.min(r,Math.max(0,t)))===(n=Math.min(r,Math.max(0,n)))&&i===o&&0===i&&!e.children[t].firstChild){const i=e.children[t].getClientRects();return s.markDidDomLayout(),this._createHorizontalRangesFromClientRects(i,s.clientRectDeltaLeft,s.clientRectScale)}t!==n&&n>0&&0===o&&(n--,o=1073741824);let a=e.children[t].firstChild,l=e.children[n].firstChild;if(a&&l||(!a&&0===i&&t>0&&(a=e.children[t-1].firstChild,i=1073741824),!l&&0===o&&n>0&&(l=e.children[n-1].firstChild,o=1073741824)),!a||!l)return null;i=Math.min(a.textContent.length,Math.max(0,i)),o=Math.min(l.textContent.length,Math.max(0,o));const d=this._readClientRects(a,i,l,o,s.endNode);return s.markDidDomLayout(),this._createHorizontalRangesFromClientRects(d,s.clientRectDeltaLeft,s.clientRectScale)}}var l=i(45561),d=i(39723),c=i(89563),h=i(66476);const u=!!s.ib||!(s.j9||n.gm||n.nr);let g=!0;class p{constructor(e,t){this.themeType=t;const i=e.options,n=i.get(50),o=i.get(38);this.renderWhitespace="off"===o?i.get(100):"none",this.renderControlCharacters=i.get(95),this.spaceWidth=n.spaceWidth,this.middotWidth=n.middotWidth,this.wsmiddotWidth=n.wsmiddotWidth,this.useMonospaceOptimizations=n.isMonospace&&!i.get(33),this.canUseHalfwidthRightwardsArrow=n.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(67),this.stopRenderingLineAfter=i.get(118),this.fontLigatures=i.get(51)}equals(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures}}class m{constructor(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(e){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=(0,o.Z)(e)}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(e){this._isMaybeInvalid=!0,this._options=e}onSelectionChanged(){return!(!(0,c.Bb)(this._options.themeType)&&"selection"!==this._options.renderWhitespace||(this._isMaybeInvalid=!0,0))}renderLine(e,t,i,n,o){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;const s=n.getViewLineRenderingData(e),r=this._options,a=l.d.filter(s.inlineDecorations,e,s.minColumn,s.maxColumn);let p=null;if((0,c.Bb)(r.themeType)||"selection"===this._options.renderWhitespace){const t=n.selections;for(const i of t){if(i.endLineNumbere)continue;const t=i.startLineNumber===e?i.startColumn:s.minColumn,n=i.endLineNumber===e?i.endColumn:s.maxColumn;t');const _=(0,d.UW)(v,o);o.appendString("");let w=null;return g&&u&&s.isBasicASCII&&r.useMonospaceOptimizations&&0===_.containsForeignElements&&(w=new f(this._renderedViewLine?this._renderedViewLine.domNode:null,v,_.characterMapping)),w||(w=b(this._renderedViewLine?this._renderedViewLine.domNode:null,v,_.characterMapping,_.containsRTL,_.containsForeignElements)),this._renderedViewLine=w,!0}layoutLine(e,t,i){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(i))}getWidth(e){return this._renderedViewLine?this._renderedViewLine.getWidth(e):0}getWidthIsFast(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()}needsMonospaceFontCheck(){return!!this._renderedViewLine&&this._renderedViewLine instanceof f}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof f?this._renderedViewLine.monospaceAssumptionsAreValid():g}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof f&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(e,t,i,n){if(!this._renderedViewLine)return null;t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t)),i=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,i));const o=this._renderedViewLine.input.stopRenderingLineAfter;if(-1!==o&&t>o+1&&i>o+1)return new r.pj(!0,[new r.IO(this.getWidth(n),0)]);-1!==o&&t>o+1&&(t=o+1),-1!==o&&i>o+1&&(i=o+1);const s=this._renderedViewLine.getVisibleRangesForRange(e,t,i,n);return s&&s.length>0?new r.pj(!1,s):null}getColumnOfNodeOffset(e,t){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t):1}}m.CLASS_NAME="view-line";class f{constructor(e,t,i){this._cachedWidth=-1,this.domNode=e,this.input=t;const n=Math.floor(t.lineContent.length/300);if(n>0){this._keyColumnPixelOffsetCache=new Float32Array(n);for(let e=0;e=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),g=!1)}return g}toSlowRenderedLine(){return b(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(e,t,i,n){const o=this._getColumnPixelOffset(e,t,n),s=this._getColumnPixelOffset(e,i,n);return[new r.IO(o,s-o)]}_getColumnPixelOffset(e,t,i){if(t<=300){const e=this._characterMapping.getHorizontalOffset(t);return this._charWidth*e}const n=Math.floor((t-1)/300)-1,o=300*(n+1)+1;let s=-1;if(this._keyColumnPixelOffsetCache&&(s=this._keyColumnPixelOffsetCache[n],-1===s&&(s=this._actualReadPixelOffset(e,o,i),this._keyColumnPixelOffsetCache[n]=s)),-1===s){const e=this._characterMapping.getHorizontalOffset(t);return this._charWidth*e}const r=this._characterMapping.getHorizontalOffset(o),a=this._characterMapping.getHorizontalOffset(t);return s+this._charWidth*(a-r)}_getReadingTarget(e){return e.domNode.firstChild}_actualReadPixelOffset(e,t,i){if(!this.domNode)return-1;const n=this._characterMapping.getDomPosition(t),o=a.readHorizontalRanges(this._getReadingTarget(this.domNode),n.partIndex,n.charIndex,n.partIndex,n.charIndex,i);return o&&0!==o.length?o[0].left:-1}getColumnOfNodeOffset(e,t){return w(this._characterMapping,e,t)}}class v{constructor(e,t,i,n,o){if(this.domNode=e,this.input=t,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=o,this._cachedWidth=-1,this._pixelOffsetCache=null,!n||0===this._characterMapping.length){this._pixelOffsetCache=new Float32Array(Math.max(2,this._characterMapping.length+1));for(let e=0,t=this._characterMapping.length;e<=t;e++)this._pixelOffsetCache[e]=-1}}_getReadingTarget(e){return e.domNode.firstChild}getWidth(e){return this.domNode?(-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,null==e||e.markDidDomLayout()),this._cachedWidth):0}getWidthIsFast(){return-1!==this._cachedWidth}getVisibleRangesForRange(e,t,i,n){if(!this.domNode)return null;if(null!==this._pixelOffsetCache){const o=this._readPixelOffset(this.domNode,e,t,n);if(-1===o)return null;const s=this._readPixelOffset(this.domNode,e,i,n);return-1===s?null:[new r.IO(o,s-o)]}return this._readVisibleRangesForRange(this.domNode,e,t,i,n)}_readVisibleRangesForRange(e,t,i,n,o){if(i===n){const n=this._readPixelOffset(e,t,i,o);return-1===n?null:[new r.IO(n,0)]}return this._readRawVisibleRangesForRange(e,i,n,o)}_readPixelOffset(e,t,i,n){if(0===this._characterMapping.length){if(0===this._containsForeignElements)return 0;if(2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth(n);const t=this._getReadingTarget(e);return t.firstChild?(n.markDidDomLayout(),t.firstChild.offsetWidth):0}if(null!==this._pixelOffsetCache){const o=this._pixelOffsetCache[i];if(-1!==o)return o;const s=this._actualReadPixelOffset(e,t,i,n);return this._pixelOffsetCache[i]=s,s}return this._actualReadPixelOffset(e,t,i,n)}_actualReadPixelOffset(e,t,i,n){if(0===this._characterMapping.length){const t=a.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,n);return t&&0!==t.length?t[0].left:-1}if(i===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth(n);const o=this._characterMapping.getDomPosition(i),s=a.readHorizontalRanges(this._getReadingTarget(e),o.partIndex,o.charIndex,o.partIndex,o.charIndex,n);if(!s||0===s.length)return-1;const r=s[0].left;if(this.input.isBasicASCII){const e=this._characterMapping.getHorizontalOffset(i),t=Math.round(this.input.spaceWidth*e);if(Math.abs(t-r)<=1)return t}return r}_readRawVisibleRangesForRange(e,t,i,n){if(1===t&&i===this._characterMapping.length)return[new r.IO(0,this.getWidth(n))];const o=this._characterMapping.getDomPosition(t),s=this._characterMapping.getDomPosition(i);return a.readHorizontalRanges(this._getReadingTarget(e),o.partIndex,o.charIndex,s.partIndex,s.charIndex,n)}getColumnOfNodeOffset(e,t){return w(this._characterMapping,e,t)}}class _ extends v{_readVisibleRangesForRange(e,t,i,n,o){const s=super._readVisibleRangesForRange(e,t,i,n,o);if(!s||0===s.length||i===n||1===i&&n===this._characterMapping.length)return s;if(!this.input.containsRTL){const i=this._readPixelOffset(e,t,n,o);if(-1!==i){const e=s[s.length-1];e.left{"use strict";i.r(t),i.d(t,{BooleanEventEmitter:()=>qs,CodeEditorWidget:()=>Us,EditorModeContext:()=>Zs});var n=i(80886),o=i(50946);let s=class{constructor(e,t){}dispose(){}};var r,a;s.ID="editor.contrib.markerDecorations",s=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(r=1,a=n.A,function(e,t){a(e,t,r)})],s),(0,o.HW)(s.ID,s,0);var l=i(14333),d=i(94327),c=i(2106),h=i(10998),u=i(13072),g=i(85072),p=i.n(g),m=i(97825),f=i.n(m),v=i(77659),_=i.n(v),b=i(55056),w=i.n(b),y=i(10540),C=i.n(y),k=i(41113),S=i.n(k),x=i(6049),L={};L.styleTagTransform=S(),L.setAttributes=w(),L.insert=_().bind(null,"head"),L.domAPI=f(),L.insertStyleElement=C(),p()(x.A,L),x.A&&x.A.locals&&x.A.locals;var D=i(25837),E=i(55893),I=i(13338),N=i(71386),M=i(63339),A=i(5711),T=i(41106);class R{constructor(e,t){this.key=e,this.migrate=t}apply(e){const t=R._read(e,this.key);this.migrate(t,(t=>R._read(e,t)),((t,i)=>R._write(e,t,i)))}static _read(e,t){if(void 0===e)return;const i=t.indexOf(".");if(i>=0){const n=t.substring(0,i);return this._read(e[n],t.substring(i+1))}return e[t]}static _write(e,t,i){const n=t.indexOf(".");if(n>=0){const o=t.substring(0,n);return e[o]=e[o]||{},void this._write(e[o],t.substring(n+1),i)}e[t]=i}}function P(e,t){R.items.push(new R(e,t))}function O(e,t){P(e,((i,n,o)=>{if(void 0!==i)for(const[n,s]of t)if(i===n)return void o(e,s)}))}R.items=[],O("wordWrap",[[!0,"on"],[!1,"off"]]),O("lineNumbers",[[!0,"on"],[!1,"off"]]),O("cursorBlinking",[["visible","solid"]]),O("renderWhitespace",[[!0,"boundary"],[!1,"none"]]),O("renderLineHighlight",[[!0,"line"],[!1,"none"]]),O("acceptSuggestionOnEnter",[[!0,"on"],[!1,"off"]]),O("tabCompletion",[[!1,"off"],[!0,"onlySnippets"]]),O("hover",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),O("parameterHints",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),O("autoIndent",[[!1,"advanced"],[!0,"full"]]),O("matchBrackets",[[!0,"always"],[!1,"never"]]),O("renderFinalNewline",[[!0,"on"],[!1,"off"]]),O("cursorSmoothCaretAnimation",[[!0,"on"],[!1,"off"]]),O("occurrencesHighlight",[[!0,"singleFile"],[!1,"off"]]),O("wordBasedSuggestions",[[!0,"matchingDocuments"],[!1,"off"]]),P("autoClosingBrackets",((e,t,i)=>{!1===e&&(i("autoClosingBrackets","never"),void 0===t("autoClosingQuotes")&&i("autoClosingQuotes","never"),void 0===t("autoSurround")&&i("autoSurround","never"))})),P("renderIndentGuides",((e,t,i)=>{void 0!==e&&(i("renderIndentGuides",void 0),void 0===t("guides.indentation")&&i("guides.indentation",!!e))})),P("highlightActiveIndentGuide",((e,t,i)=>{void 0!==e&&(i("highlightActiveIndentGuide",void 0),void 0===t("guides.highlightActiveIndentation")&&i("guides.highlightActiveIndentation",!!e))}));const F={method:"showMethods",function:"showFunctions",constructor:"showConstructors",deprecated:"showDeprecated",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"};P("suggest.filteredTypes",((e,t,i)=>{if(e&&"object"==typeof e){for(const n of Object.entries(F))!1===e[n[0]]&&void 0===t(`suggest.${n[1]}`)&&i(`suggest.${n[1]}`,!1);i("suggest.filteredTypes",void 0)}})),P("quickSuggestions",((e,t,i)=>{if("boolean"==typeof e){const t=e?"on":"off";i("quickSuggestions",{comments:t,strings:t,other:t})}})),P("experimental.stickyScroll.enabled",((e,t,i)=>{"boolean"==typeof e&&(i("experimental.stickyScroll.enabled",void 0),void 0===t("stickyScroll.enabled")&&i("stickyScroll.enabled",e))})),P("experimental.stickyScroll.maxLineCount",((e,t,i)=>{"number"==typeof e&&(i("experimental.stickyScroll.maxLineCount",void 0),void 0===t("stickyScroll.maxLineCount")&&i("stickyScroll.maxLineCount",e))})),P("codeActionsOnSave",((e,t,i)=>{if(e&&"object"==typeof e){let t=!1;const n={};for(const i of Object.entries(e))"boolean"==typeof i[1]?(t=!0,n[i[0]]=i[1]?"explicit":"never"):n[i[0]]=i[1];t&&i("codeActionsOnSave",n)}})),P("codeActionWidget.includeNearbyQuickfixes",((e,t,i)=>{"boolean"==typeof e&&(i("codeActionWidget.includeNearbyQuickfixes",void 0),void 0===t("codeActionWidget.includeNearbyQuickFixes")&&i("codeActionWidget.includeNearbyQuickFixes",e))})),P("lightbulb.enabled",((e,t,i)=>{"boolean"==typeof e&&i("lightbulb.enabled",e?void 0:"off")}));var B=i(25155),W=i(66476),H=i(84587),V=i(28060),z=i(53909),j=i(4770);let U=class extends h.jG{constructor(e,t,i,n,o){super(),this._accessibilityService=o,this._onDidChange=this._register(new c.vl),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new c.vl),this.onDidChangeFast=this._onDidChangeFast.event,this._isDominatedByLongLines=!1,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._reservedHeight=0,this._glyphMarginDecorationLaneCount=1,this._computeOptionsMemory=new W.n0,this.isSimpleWidget=e,this.contextMenuId=t,this._containerObserver=this._register(new A.u(n,i.dimension)),this._targetWindowId=(0,l.zk)(n).vscodeWindowId,this._rawOptions=Q(i),this._validatedOptions=G.validateOptions(this._rawOptions),this.options=this._computeOptions(),this.options.get(13)&&this._containerObserver.startObserving(),this._register(H.D.onDidChangeZoomLevel((()=>this._recomputeOptions()))),this._register(B.M.onDidChangeTabFocus((()=>this._recomputeOptions()))),this._register(this._containerObserver.onDidChange((()=>this._recomputeOptions()))),this._register(T.T.onDidChange((()=>this._recomputeOptions()))),this._register(j.c.getInstance((0,l.zk)(n)).onDidChange((()=>this._recomputeOptions()))),this._register(this._accessibilityService.onDidChangeScreenReaderOptimized((()=>this._recomputeOptions())))}_recomputeOptions(){const e=this._computeOptions(),t=G.checkEquals(this.options,e);null!==t&&(this.options=e,this._onDidChangeFast.fire(t),this._onDidChange.fire(t))}_computeOptions(){const e=this._readEnvConfiguration(),t=V._8.createFromValidatedSettings(this._validatedOptions,e.pixelRatio,this.isSimpleWidget),i=this._readFontInfo(t),n={memory:this._computeOptionsMemory,outerWidth:e.outerWidth,outerHeight:e.outerHeight-this._reservedHeight,fontInfo:i,extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:B.M.getTabFocusMode(),accessibilitySupport:e.accessibilitySupport,glyphMarginDecorationLaneCount:this._glyphMarginDecorationLaneCount};return G.computeOptions(this._validatedOptions,n)}_readEnvConfiguration(){return{extraEditorClassName:$(),outerWidth:this._containerObserver.getWidth(),outerHeight:this._containerObserver.getHeight(),emptySelectionClipboard:E.Tc||E.gm,pixelRatio:j.c.getInstance((0,l.ZF)(this._targetWindowId,!0).window).value,accessibilitySupport:this._accessibilityService.isScreenReaderOptimized()?2:this._accessibilityService.getAccessibilitySupport()}}_readFontInfo(e){return T.T.readFontInfo((0,l.ZF)(this._targetWindowId,!0).window,e)}getRawOptions(){return this._rawOptions}updateOptions(e){const t=Q(e);G.applyUpdate(this._rawOptions,t)&&(this._validatedOptions=G.validateOptions(this._rawOptions),this._recomputeOptions())}observeContainer(e){this._containerObserver.observe(e)}setIsDominatedByLongLines(e){this._isDominatedByLongLines!==e&&(this._isDominatedByLongLines=e,this._recomputeOptions())}setModelLineCount(e){const t=function(e){let t=0;for(;e;)e=Math.floor(e/10),t++;return t||1}(e);this._lineNumbersDigitCount!==t&&(this._lineNumbersDigitCount=t,this._recomputeOptions())}setViewLineCount(e){this._viewLineCount!==e&&(this._viewLineCount=e,this._recomputeOptions())}setReservedHeight(e){this._reservedHeight!==e&&(this._reservedHeight=e,this._recomputeOptions())}setGlyphMarginDecorationLaneCount(e){this._glyphMarginDecorationLaneCount!==e&&(this._glyphMarginDecorationLaneCount=e,this._recomputeOptions())}};function $(){let e="";return E.nr||E.c8||(e+="no-user-select "),E.nr&&(e+="no-minimap-shadow ",e+="enable-user-select "),M.zx&&(e+="mac "),e}U=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([function(e,t){return function(i,n){t(i,n,e)}}(4,z.j)],U);class K{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class q{constructor(){this._values=[]}_read(e){if(e>=this._values.length)throw new Error("Cannot read uninitialized value");return this._values[e]}get(e){return this._read(e)}_write(e,t){this._values[e]=t}}class G{static validateOptions(e){const t=new K;for(const i of W.BE){const n="_never_"===i.name?void 0:e[i.name];t._write(i.id,i.validate(n))}return t}static computeOptions(e,t){const i=new q;for(const n of W.BE)i._write(n.id,n.compute(t,i,e._read(n.id)));return i}static _deepEquals(e,t){if("object"!=typeof e||"object"!=typeof t||!e||!t)return e===t;if(Array.isArray(e)||Array.isArray(t))return!(!Array.isArray(e)||!Array.isArray(t))&&I.aI(e,t);if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(!G._deepEquals(e[i],t[i]))return!1;return!0}static checkEquals(e,t){const i=[];let n=!1;for(const o of W.BE){const s=!G._deepEquals(e._read(o.id),t._read(o.id));i[o.id]=s,s&&(n=!0)}return n?new W.lw(i):null}static applyUpdate(e,t){let i=!1;for(const n of W.BE)if(t.hasOwnProperty(n.name)){const o=n.applyUpdate(e[n.name],t[n.name]);e[n.name]=o.newValue,i=i||o.didChange}return i}}function Q(e){const t=N.Go(e);return function(e){R.items.forEach((t=>t.apply(e)))}(t),t}var Z=i(87301),Y=i(5043),X=i(42863),J=i(58574);class ee extends h.jG{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onCompositionStart(e){return!1}onCompositionEnd(e){return!1}onConfigurationChanged(e){return!1}onCursorStateChanged(e){return!1}onDecorationsChanged(e){return!1}onFlushed(e){return!1}onFocusChanged(e){return!1}onLanguageConfigurationChanged(e){return!1}onLineMappingChanged(e){return!1}onLinesChanged(e){return!1}onLinesDeleted(e){return!1}onLinesInserted(e){return!1}onRevealRangeRequest(e){return!1}onScrollChanged(e){return!1}onThemeChanged(e){return!1}onTokensChanged(e){return!1}onTokensColorsChanged(e){return!1}onZonesChanged(e){return!1}handleEvents(e){let t=!1;for(let i=0,n=e.length;i=4&&3===e[0]&&8===e[3]}static isStrictChildOfViewLines(e){return e.length>4&&3===e[0]&&8===e[3]}static isChildOfScrollableElement(e){return e.length>=2&&3===e[0]&&6===e[1]}static isChildOfMinimap(e){return e.length>=2&&3===e[0]&&9===e[1]}static isChildOfContentWidgets(e){return e.length>=4&&3===e[0]&&1===e[3]}static isChildOfOverflowGuard(e){return e.length>=1&&3===e[0]}static isChildOfOverflowingContentWidgets(e){return e.length>=1&&2===e[0]}static isChildOfOverlayWidgets(e){return e.length>=2&&3===e[0]&&4===e[1]}static isChildOfOverflowingOverlayWidgets(e){return e.length>=1&&5===e[0]}}class me{constructor(e,t,i){this.viewModel=e.viewModel;const n=e.configuration.options;this.layoutInfo=n.get(146),this.viewDomNode=t.viewDomNode,this.lineHeight=n.get(67),this.stickyTabStops=n.get(117),this.typicalHalfwidthCharacterWidth=n.get(50).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=e,this._viewHelper=t}getZoneAtCoord(e){return me.getZoneAtCoord(this._context,e)}static getZoneAtCoord(e,t){const i=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(i){const n=i.verticalOffset+i.height/2,o=e.viewModel.getLineCount();let s,r=null,a=null;return i.afterLineNumber!==o&&(a=new se.y(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(r=new se.y(i.afterLineNumber,e.viewModel.getLineMaxColumn(i.afterLineNumber))),s=null===a?r:null===r?a:t=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,we._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}}class ve extends fe{get target(){return this._useHitTestTarget?this.hitTestResult.value.hitTarget:this._eventTarget}get targetPath(){return this._targetPathCacheElement!==this.target&&(this._targetPathCacheElement=this.target,this._targetPathCacheValue=ie.collect(this.target,this._ctx.viewDomNode)),this._targetPathCacheValue}constructor(e,t,i,n,o){super(e,t,i,n),this.hitTestResult=new de.d((()=>we.doHitTest(this._ctx,this))),this._targetPathCacheElement=null,this._targetPathCacheValue=new Uint8Array(0),this._ctx=e,this._eventTarget=o;const s=Boolean(this._eventTarget);this._useHitTestTarget=!s}toString(){return`pos(${this.pos.x},${this.pos.y}), editorPos(${this.editorPos.x},${this.editorPos.y}), relativePos(${this.relativePos.x},${this.relativePos.y}), mouseVerticalOffset: ${this.mouseVerticalOffset}, mouseContentHorizontalOffset: ${this.mouseContentHorizontalOffset}\n\ttarget: ${this.target?this.target.outerHTML:null}`}get wouldBenefitFromHitTestTargetSwitch(){return!this._useHitTestTarget&&null!==this.hitTestResult.value.hitTarget&&this.target!==this.hitTestResult.value.hitTarget}switchToHitTestTarget(){this._useHitTestTarget=!0}_getMouseColumn(e=null){return e&&e.columns.contentLeft+s.width)continue;const i=e.getVerticalOffsetForLineNumber(s.position.lineNumber);if(i<=o&&o<=i+s.height)return t.fulfillContentText(s.position,null,{mightBeForeignElement:!1,injectedText:null})}}return null}static _hitTestViewZone(e,t){const i=e.getZoneAtCoord(t.mouseVerticalOffset);if(i){const e=t.isInContentArea?8:5;return t.fulfillViewZone(e,i.position,i)}return null}static _hitTestTextArea(e,t){return pe.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfillContentText(e.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1,injectedText:null}):t.fulfillTextarea():null}static _hitTestMargin(e,t){if(t.isInMarginArea){const i=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),n=i.range.getStartPosition();let o=Math.abs(t.relativePos.x);const s={isAfterLines:i.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:o};if(o-=e.layoutInfo.glyphMarginLeft,o<=e.layoutInfo.glyphMarginWidth){const r=e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(i.range.getStartPosition()),a=e.viewModel.glyphLanes.getLanesAtLine(r.lineNumber);return s.glyphMarginLane=a[Math.floor(o/e.lineHeight)],t.fulfillMargin(2,n,i.range,s)}return o-=e.layoutInfo.glyphMarginWidth,o<=e.layoutInfo.lineNumbersWidth?t.fulfillMargin(3,n,i.range,s):(o-=e.layoutInfo.lineNumbersWidth,t.fulfillMargin(4,n,i.range,s))}return null}static _hitTestViewLines(e,t){if(!pe.isChildOfViewLines(t.targetPath))return null;if(e.isInTopPadding(t.mouseVerticalOffset))return t.fulfillContentEmpty(new se.y(1,1),_e);if(e.isAfterLines(t.mouseVerticalOffset)||e.isInBottomPadding(t.mouseVerticalOffset)){const i=e.viewModel.getLineCount(),n=e.viewModel.getLineMaxColumn(i);return t.fulfillContentEmpty(new se.y(i,n),_e)}if(pe.isStrictChildOfViewLines(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(0===e.viewModel.getLineLength(i)){const n=e.getLineWidth(i),o=be(t.mouseContentHorizontalOffset-n);return t.fulfillContentEmpty(new se.y(i,1),o)}const n=e.getLineWidth(i);if(t.mouseContentHorizontalOffset>=n){const o=be(t.mouseContentHorizontalOffset-n),s=new se.y(i,e.viewModel.getLineMaxColumn(i));return t.fulfillContentEmpty(s,o)}}const i=t.hitTestResult.value;return 1===i.type?we.createMouseTargetFromHitTestPosition(e,t,i.spanNode,i.position,i.injectedText):t.wouldBenefitFromHitTestTargetSwitch?(t.switchToHitTestTarget(),this._createMouseTarget(e,t)):t.fulfillUnknown()}static _hitTestMinimap(e,t){if(pe.isChildOfMinimap(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new se.y(i,n))}return null}static _hitTestScrollbarSlider(e,t){if(pe.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){const i=t.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new se.y(i,n))}}return null}static _hitTestScrollbar(e,t){if(pe.isChildOfScrollableElement(t.targetPath)){const i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),n=e.viewModel.getLineMaxColumn(i);return t.fulfillScrollbar(new se.y(i,n))}return null}getMouseColumn(e){const t=this._context.configuration.options,i=t.get(146),n=this._context.viewLayout.getCurrentScrollLeft()+e.x-i.contentLeft;return we._getMouseColumn(n,t.get(50).typicalHalfwidthCharacterWidth)}static _getMouseColumn(e,t){return e<0?1:Math.round(e/t)+1}static createMouseTargetFromHitTestPosition(e,t,i,n,o){const s=n.lineNumber,r=n.column,a=e.getLineWidth(s);if(t.mouseContentHorizontalOffset>a){const e=be(t.mouseContentHorizontalOffset-a);return t.fulfillContentEmpty(n,e)}const d=e.visibleRangeForPosition(s,r);if(!d)return t.fulfillUnknown(n);const c=d.left;if(Math.abs(t.mouseContentHorizontalOffset-c)<1)return t.fulfillContentText(n,null,{mightBeForeignElement:!!o,injectedText:o});const h=[];if(h.push({offset:d.left,column:r}),r>1){const t=e.visibleRangeForPosition(s,r-1);t&&h.push({offset:t.left,column:r-1})}if(re.offset-t.offset));const u=t.pos.toClientCoordinates(l.zk(e.viewDomNode)),g=i.getBoundingClientRect(),p=g.left<=u.clientX&&u.clientX<=g.right;let m=null;for(let e=1;eo)){const i=Math.floor((n+o)/2);let s=t.pos.y+(i-t.mouseVerticalOffset);s<=t.editorPos.y&&(s=t.editorPos.y+1),s>=t.editorPos.y+t.editorPos.height&&(s=t.editorPos.y+t.editorPos.height-1);const r=new J.nz(t.pos.x,s),a=this._actualDoHitTestWithCaretRangeFromPoint(e,r.toClientCoordinates(l.zk(e.viewDomNode)));if(1===a.type)return a}return this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates(l.zk(e.viewDomNode)))}static _actualDoHitTestWithCaretRangeFromPoint(e,t){const i=l.jG(e.viewDomNode);let n;if(n=i?void 0===i.caretRangeFromPoint?function(e,t,i){const n=document.createRange();let o=e.elementFromPoint(t,i);if(null!==o){for(;o&&o.firstChild&&o.firstChild.nodeType!==o.firstChild.TEXT_NODE&&o.lastChild&&o.lastChild.firstChild;)o=o.lastChild;const e=o.getBoundingClientRect(),i=l.zk(o),s=`${i.getComputedStyle(o,null).getPropertyValue("font-style")} ${i.getComputedStyle(o,null).getPropertyValue("font-variant")} ${i.getComputedStyle(o,null).getPropertyValue("font-weight")} ${i.getComputedStyle(o,null).getPropertyValue("font-size")}/${i.getComputedStyle(o,null).getPropertyValue("line-height")} ${i.getComputedStyle(o,null).getPropertyValue("font-family")}`,r=o.innerText;let a,d=e.left,c=0;if(t>e.left+e.width)c=r.length;else{const e=ye.getInstance();for(let i=0;ithis._createMouseTarget(e,t)),(e=>this._getMouseColumn(e)))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(146).height;const n=new J.$z(this.viewHelper.viewDomNode);this._register(n.onContextMenu(this.viewHelper.viewDomNode,(e=>this._onContextMenu(e,!0)))),this._register(n.onMouseMove(this.viewHelper.viewDomNode,(e=>{this._onMouseMove(e),this._mouseLeaveMonitor||(this._mouseLeaveMonitor=l.ko(this.viewHelper.viewDomNode.ownerDocument,"mousemove",(e=>{this.viewHelper.viewDomNode.contains(e.target)||this._onMouseLeave(new J.dO(e,!1,this.viewHelper.viewDomNode))})))}))),this._register(n.onMouseUp(this.viewHelper.viewDomNode,(e=>this._onMouseUp(e)))),this._register(n.onMouseLeave(this.viewHelper.viewDomNode,(e=>this._onMouseLeave(e))));let o=0;this._register(n.onPointerDown(this.viewHelper.viewDomNode,((e,t)=>{o=t}))),this._register(l.ko(this.viewHelper.viewDomNode,l.Bx.POINTER_UP,(e=>{this._mouseDownOperation.onPointerUp()}))),this._register(n.onMouseDown(this.viewHelper.viewDomNode,(e=>this._onMouseDown(e,o)))),this._setupMouseWheelZoomListener(),this._context.addEventHandler(this)}_setupMouseWheelZoomListener(){const e=De.QC.INSTANCE;let t=0,i=H.D.getZoomLevel(),n=!1,o=0;function s(e){return M.zx?(e.metaKey||e.ctrlKey)&&!e.shiftKey&&!e.altKey:e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey}this._register(l.ko(this.viewHelper.viewDomNode,l.Bx.MOUSE_WHEEL,(r=>{if(this.viewController.emitMouseWheel(r),!this._context.configuration.options.get(76))return;const a=new xe.$(r);if(e.acceptStandardWheelEvent(a),e.isPhysicalMouseWheel()){if(s(r)){const e=H.D.getZoomLevel(),t=a.deltaY>0?1:-1;H.D.setZoomLevel(e+t),a.preventDefault(),a.stopPropagation()}}else Date.now()-t>50&&(i=H.D.getZoomLevel(),n=s(r),o=0),t=Date.now(),o+=a.deltaY,n&&(H.D.setZoomLevel(i+o/5),a.preventDefault(),a.stopPropagation())}),{capture:!0,passive:!1}))}dispose(){this._context.removeEventHandler(this),this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),super.dispose()}onConfigurationChanged(e){if(e.hasChanged(146)){const e=this._context.configuration.options.get(146).height;this._height!==e&&(this._height=e,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}onFocusChanged(e){return!1}getTargetAtClientPoint(e,t){const i=new J.Hh(e,t).toPageCoordinates(l.zk(this.viewHelper.viewDomNode)),n=(0,J.wt)(this.viewHelper.viewDomNode);if(i.yn.y+n.height||i.xn.x+n.width)return null;const o=(0,J.i_)(this.viewHelper.viewDomNode,n,i);return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),n,i,o,null)}_createMouseTarget(e,t){let i=e.target;if(!this.viewHelper.viewDomNode.contains(i)){const t=l.jG(this.viewHelper.viewDomNode);t&&(i=t.elementsFromPoint(e.posx,e.posy).find((e=>this.viewHelper.viewDomNode.contains(e))))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,e.relativePos,t?i:null)}_getMouseColumn(e){return this.mouseTargetFactory.getMouseColumn(e.relativePos)}_onContextMenu(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})}_onMouseMove(e){this.mouseTargetFactory.mouseTargetIsWidget(e)||e.preventDefault(),this._mouseDownOperation.isActive()||e.timestamp{e.preventDefault(),this.viewHelper.focusTextArea()};if(d&&(n||s&&r))c(),this._mouseDownOperation.start(i.type,e,t);else if(o)e.preventDefault();else if(a){const n=i.detail;d&&this.viewHelper.shouldSuppressMouseDownOnViewZone(n.viewZoneId)&&(c(),this._mouseDownOperation.start(i.type,e,t),e.preventDefault())}else l&&this.viewHelper.shouldSuppressMouseDownOnWidget(i.detail)&&(c(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:i})}}class Ie extends h.jG{constructor(e,t,i,n,o,s){super(),this._context=e,this._viewController=t,this._viewHelper=i,this._mouseTargetFactory=n,this._createMouseTarget=o,this._getMouseColumn=s,this._mouseMoveMonitor=this._register(new J.BA(this._viewHelper.viewDomNode)),this._topBottomDragScrolling=this._register(new Ne(this._context,this._viewHelper,this._mouseTargetFactory,((e,t,i)=>this._dispatchMouse(e,t,i)))),this._mouseState=new Ae,this._currentSelection=new Le.L(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);const t=this._findMousePosition(e,!1);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):13!==t.type||"above"!==t.outsidePosition&&"below"!==t.outsidePosition?(this._topBottomDragScrolling.stop(),this._dispatchMouse(t,!0,1)):this._topBottomDragScrolling.start(t,e))}start(e,t,i){this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(3===e),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);const n=this._findMousePosition(t,!0);if(!n||!n.position)return;this._mouseState.trySetCount(t.detail,n.position),t.detail=this._mouseState.count;const o=this._context.configuration.options;if(!o.get(92)&&o.get(35)&&!o.get(22)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===n.type&&n.position&&this._currentSelection.containsPosition(n.position))return this._mouseState.isDragAndDrop=!0,this._isActive=!0,void this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,(e=>this._onMouseDownThenMove(e)),(e=>{const t=this._findMousePosition(this._lastMouseEvent,!1);l.kx(e)?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:t?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()}));this._mouseState.isDragAndDrop=!1,this._dispatchMouse(n,t.shiftKey,1),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,i,t.buttons,(e=>this._onMouseDownThenMove(e)),(()=>this._stop())))}_stop(){this._isActive=!1,this._topBottomDragScrolling.stop()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onPointerUp(){this._mouseMoveMonitor.stopMonitoring()}onCursorStateChanged(e){this._currentSelection=e.selections[0]}_getPositionOutsideEditor(e){const t=e.editorPos,i=this._context.viewModel,n=this._context.viewLayout,o=this._getMouseColumn(e);if(e.posyt.y+t.height){const s=e.posy-t.y-t.height,r=n.getCurrentScrollTop()+e.relativePos.y,a=me.getZoneAtCoord(this._context,r);if(a){const e=this._helpPositionJumpOverViewZone(a);if(e)return ge.createOutsideEditor(o,e,"below",s)}const l=n.getLineNumberAtVerticalOffset(r);return ge.createOutsideEditor(o,new se.y(l,i.getLineMaxColumn(l)),"below",s)}const s=n.getLineNumberAtVerticalOffset(n.getCurrentScrollTop()+e.relativePos.y);if(e.posxt.x+t.width){const n=e.posx-t.x-t.width;return ge.createOutsideEditor(o,new se.y(s,i.getLineMaxColumn(s)),"right",n)}return null}_findMousePosition(e,t){const i=this._getPositionOutsideEditor(e);if(i)return i;const n=this._createMouseTarget(e,t);if(!n.position)return null;if(8===n.type||5===n.type){const e=this._helpPositionJumpOverViewZone(n.detail);if(e)return ge.createViewZone(n.type,n.element,n.mouseColumn,e,n.detail)}return n}_helpPositionJumpOverViewZone(e){const t=new se.y(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),i=e.positionBefore,n=e.positionAfter;return i&&n?i.isBefore(t)?i:n:null}_dispatchMouse(e,t,i){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,revealType:i,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton,onInjectedText:6===e.type&&null!==e.detail.injectedText})}}class Ne extends h.jG{constructor(e,t,i,n){super(),this._context=e,this._viewHelper=t,this._mouseTargetFactory=i,this._dispatchMouse=n,this._operation=null}dispose(){super.dispose(),this.stop()}start(e,t){this._operation?this._operation.setPosition(e,t):this._operation=new Me(this._context,this._viewHelper,this._mouseTargetFactory,this._dispatchMouse,e,t)}stop(){this._operation&&(this._operation.dispose(),this._operation=null)}}class Me extends h.jG{constructor(e,t,i,n,o,s){super(),this._context=e,this._viewHelper=t,this._mouseTargetFactory=i,this._dispatchMouse=n,this._position=o,this._mouseEvent=s,this._lastTime=Date.now(),this._animationFrameDisposable=l.PG(l.zk(s.browserEvent),(()=>this._execute()))}dispose(){this._animationFrameDisposable.dispose(),super.dispose()}setPosition(e,t){this._position=e,this._mouseEvent=t}_tick(){const e=Date.now(),t=e-this._lastTime;return this._lastTime=e,t}_getScrollSpeed(){const e=this._context.configuration.options.get(67),t=this._context.configuration.options.get(146).height/e,i=this._position.outsideDistance/e;return i<=1.5?Math.max(30,t*(1+i)):i<=3?Math.max(60,t*(2+i)):Math.max(200,t*(7+i))}_execute(){const e=this._context.configuration.options.get(67),t=this._getScrollSpeed()*(this._tick()/1e3)*e,i="above"===this._position.outsidePosition?-t:t;this._context.viewModel.viewLayout.deltaScrollNow(0,i),this._viewHelper.renderNow();const n=this._context.viewLayout.getLinesViewportData(),o="above"===this._position.outsidePosition?n.startLineNumber:n.endLineNumber;let s;{const e=(0,J.wt)(this._viewHelper.viewDomNode),t=this._context.configuration.options.get(146).horizontalScrollbarHeight,i=new J.nz(this._mouseEvent.pos.x,e.y+e.height-t-.1),n=(0,J.i_)(this._viewHelper.viewDomNode,e,i);s=this._mouseTargetFactory.createMouseTarget(this._viewHelper.getLastRenderData(),e,i,n,null)}s.position&&s.position.lineNumber===o||(s="above"===this._position.outsidePosition?ge.createOutsideEditor(this._position.mouseColumn,new se.y(o,1),"above",this._position.outsideDistance):ge.createOutsideEditor(this._position.mouseColumn,new se.y(o,this._context.viewModel.getLineMaxColumn(o)),"below",this._position.outsideDistance)),this._dispatchMouse(s,!0,2),this._animationFrameDisposable=l.PG(l.zk(s.element),(()=>this._execute()))}}class Ae{get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get count(){return this._lastMouseDownCount}setModifiers(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey}setStartButtons(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton}setStartedOnLineNumbers(e){this._startedOnLineNumbers=e}trySetCount(e,t){const i=(new Date).getTime();i-this._lastSetMouseDownCountTime>Ae.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=i,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)}}Ae.CLEAR_MOUSE_DOWN_COUNT_TIME=400;var Te=i(93344);class Re extends Ee{constructor(e,t,i){super(e,t,i),this._register(ke.q.addTarget(this.viewHelper.linesContentDomNode)),this._register(l.ko(this.viewHelper.linesContentDomNode,ke.B.Tap,(e=>this.onTap(e)))),this._register(l.ko(this.viewHelper.linesContentDomNode,ke.B.Change,(e=>this.onChange(e)))),this._register(l.ko(this.viewHelper.linesContentDomNode,ke.B.Contextmenu,(e=>this._onContextMenu(new J.dO(e,!1,this.viewHelper.viewDomNode),!1)))),this._lastPointerType="mouse",this._register(l.ko(this.viewHelper.linesContentDomNode,"pointerdown",(e=>{const t=e.pointerType;this._lastPointerType="mouse"!==t?"touch"===t?"touch":"pen":"mouse"})));const n=new J.DW(this.viewHelper.viewDomNode);this._register(n.onPointerMove(this.viewHelper.viewDomNode,(e=>this._onMouseMove(e)))),this._register(n.onPointerUp(this.viewHelper.viewDomNode,(e=>this._onMouseUp(e)))),this._register(n.onPointerLeave(this.viewHelper.viewDomNode,(e=>this._onMouseLeave(e)))),this._register(n.onPointerDown(this.viewHelper.viewDomNode,((e,t)=>this._onMouseDown(e,t))))}onTap(e){e.initialTarget&&this.viewHelper.linesContentDomNode.contains(e.initialTarget)&&(e.preventDefault(),this.viewHelper.focusTextArea(),this._dispatchGesture(e,!1))}onChange(e){"touch"===this._lastPointerType&&this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY),"pen"===this._lastPointerType&&this._dispatchGesture(e,!0)}_dispatchGesture(e,t){const i=this._createMouseTarget(new J.dO(e,!1,this.viewHelper.viewDomNode),!1);i.position&&this.viewController.dispatchMouse({position:i.position,mouseColumn:i.position.column,startedOnLineNumbers:!1,revealType:1,mouseDownCount:e.tapCount,inSelectionMode:t,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1,onInjectedText:6===i.type&&null!==i.detail.injectedText})}_onMouseDown(e,t){"touch"!==e.browserEvent.pointerType&&super._onMouseDown(e,t)}}class Pe extends Ee{constructor(e,t,i){super(e,t,i),this._register(ke.q.addTarget(this.viewHelper.linesContentDomNode)),this._register(l.ko(this.viewHelper.linesContentDomNode,ke.B.Tap,(e=>this.onTap(e)))),this._register(l.ko(this.viewHelper.linesContentDomNode,ke.B.Change,(e=>this.onChange(e)))),this._register(l.ko(this.viewHelper.linesContentDomNode,ke.B.Contextmenu,(e=>this._onContextMenu(new J.dO(e,!1,this.viewHelper.viewDomNode),!1))))}onTap(e){e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new J.dO(e,!1,this.viewHelper.viewDomNode),!1);if(t.position){const e=document.createEvent("CustomEvent");e.initEvent(Te.$D.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(e),this.viewController.moveTo(t.position,1)}}onChange(e){this._context.viewModel.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)}}class Oe extends h.jG{constructor(e,t,i){super(),(M.un||M.m0&&M.Fr)&&Ce.e.pointerEvents?this.handler=this._register(new Re(e,t,i)):Se.G.TouchEvent?this.handler=this._register(new Pe(e,t,i)):this.handler=this._register(new Ee(e,t,i))}getTargetAtClientPoint(e,t){return this.handler.getTargetAtClientPoint(e,t)}}var Fe=i(86307),Be={};Be.styleTagTransform=S(),Be.setAttributes=w(),Be.insert=_().bind(null,"head"),Be.domAPI=f(),Be.insertStyleElement=C(),p()(Fe.A,Be),Fe.A&&Fe.A.locals&&Fe.A.locals;var We=i(3765),He=i(16844),Ve=i(13377),ze=i(6953),je={};je.styleTagTransform=S(),je.setAttributes=w(),je.insert=_().bind(null,"head"),je.domAPI=f(),je.insertStyleElement=C(),p()(ze.A,je),ze.A&&ze.A.locals&&ze.A.locals;class Ue extends ee{}var $e=i(89044),Ke=i(48295);class qe extends Ue{constructor(e){super(),this._context=e,this._readConfig(),this._lastCursorModelPosition=new se.y(1,1),this._renderResult=null,this._activeLineNumber=1,this._context.addEventHandler(this)}_readConfig(){const e=this._context.configuration.options;this._lineHeight=e.get(67);const t=e.get(68);this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(96);const i=e.get(146);this._lineNumbersLeft=i.lineNumbersLeft,this._lineNumbersWidth=i.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return this._readConfig(),!0}onCursorStateChanged(e){const t=e.selections[0].getPosition();this._lastCursorModelPosition=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(t);let i=!1;return this._activeLineNumber!==t.lineNumber&&(this._activeLineNumber=t.lineNumber,i=!0),2!==this._renderLineNumbers&&3!==this._renderLineNumbers||(i=!0),i}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onDecorationsChanged(e){return e.affectsLineNumber}_getLineRenderLineNumber(e){const t=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new se.y(e,1));if(1!==t.column)return"";const i=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(i);if(2===this._renderLineNumbers){const e=Math.abs(this._lastCursorModelPosition.lineNumber-i);return 0===e?''+i+"":String(e)}return 3===this._renderLineNumbers?this._lastCursorModelPosition.lineNumber===i||i%10==0||i===this._context.viewModel.getLineCount()?String(i):"":String(i)}prepareRender(e){if(0===this._renderLineNumbers)return void(this._renderResult=null);const t=M.j9?this._lineHeight%2==0?" lh-even":" lh-odd":"",i=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,o=this._context.viewModel.getDecorationsInViewport(e.visibleRange).filter((e=>!!e.options.lineNumberClassName));o.sort(((e,t)=>re.Q.compareRangesUsingEnds(e.range,t.range)));let s=0;const r=this._context.viewModel.getLineCount(),a=[];for(let e=i;e<=n;e++){const n=e-i;let l=this._getLineRenderLineNumber(e),d="";for(;s${l}`):a[n]=""}this._renderResult=a}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}qe.CLASS_NAME="line-numbers",(0,$e.zy)(((e,t)=>{const i=e.getColor(Ke.Qt),n=e.getColor(Ke.JB);n?t.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${n}; }`):i&&t.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${i.transparent(.4)}; }`)}));var Ge=i(58731),Qe={};Qe.styleTagTransform=S(),Qe.setAttributes=w(),Qe.insert=_().bind(null,"head"),Qe.domAPI=f(),Qe.insertStyleElement=C(),p()(Ge.A,Qe),Ge.A&&Ge.A.locals&&Ge.A.locals;class Ze extends te{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(146);this._canUseLayerHinting=!t.get(32),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,this._domNode=(0,Y.Z)(document.createElement("div")),this._domNode.setClassName(Ze.OUTER_CLASS_NAME),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=(0,Y.Z)(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(Ze.CLASS_NAME),this._domNode.appendChild(this._glyphMarginBackgroundDomNode)}dispose(){super.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146);return this._canUseLayerHinting=!t.get(32),this._contentLeft=i.contentLeft,this._glyphMarginLeft=i.glyphMarginLeft,this._glyphMarginWidth=i.glyphMarginWidth,!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollTopChanged}prepareRender(e){}render(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");const t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);const i=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(i),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(i)}}Ze.CLASS_NAME="glyph-margin",Ze.OUTER_CLASS_NAME="margin";var Ye=i(82862),Xe=i(266),Je={};Je.styleTagTransform=S(),Je.setAttributes=w(),Je.insert=_().bind(null,"head"),Je.domAPI=f(),Je.insertStyleElement=C(),p()(Xe.A,Je),Xe.A&&Xe.A.locals&&Xe.A.locals;const et="monaco-mouse-cursor-text";var tt=i(47317),it=i(94901),nt=i(37043),ot=i(56071),st=i(82399),rt=function(e,t){return function(i,n){t(i,n,e)}};class at{constructor(e,t,i,n,o){this._context=e,this.modelLineNumber=t,this.distanceToModelLineStart=i,this.widthOfHiddenLineTextBefore=n,this.distanceToModelLineEnd=o,this._visibleTextAreaBrand=void 0,this.startPosition=null,this.endPosition=null,this.visibleTextareaStart=null,this.visibleTextareaEnd=null,this._previousPresentation=null}prepareRender(e){const t=new se.y(this.modelLineNumber,this.distanceToModelLineStart+1),i=new se.y(this.modelLineNumber,this._context.viewModel.model.getLineMaxColumn(this.modelLineNumber)-this.distanceToModelLineEnd);this.startPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(t),this.endPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i),this.startPosition.lineNumber===this.endPosition.lineNumber?(this.visibleTextareaStart=e.visibleRangeForPosition(this.startPosition),this.visibleTextareaEnd=e.visibleRangeForPosition(this.endPosition)):(this.visibleTextareaStart=null,this.visibleTextareaEnd=null)}definePresentation(e){return this._previousPresentation||(this._previousPresentation=e||{foreground:1,italic:!1,bold:!1,underline:!1,strikethrough:!1}),this._previousPresentation}}const lt=E.gm;let dt=class extends te{constructor(e,t,i,n,o){super(e),this._keybindingService=n,this._instantiationService=o,this._primaryCursorPosition=new se.y(1,1),this._primaryCursorVisibleRange=null,this._viewController=t,this._visibleRangeProvider=i,this._scrollLeft=0,this._scrollTop=0;const s=this._context.configuration.options,r=s.get(146);this._setAccessibilityOptions(s),this._contentLeft=r.contentLeft,this._contentWidth=r.contentWidth,this._contentHeight=r.height,this._fontInfo=s.get(50),this._lineHeight=s.get(67),this._emptySelectionClipboard=s.get(37),this._copyWithSyntaxHighlighting=s.get(25),this._visibleTextArea=null,this._selections=[new Le.L(1,1,1,1)],this._modelSelections=[new Le.L(1,1,1,1)],this._lastRenderPosition=null,this.textArea=(0,Y.Z)(document.createElement("textarea")),ie.write(this.textArea,7),this.textArea.setClassName(`inputarea ${et}`),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");const{tabSize:a}=this._context.viewModel.model.getOptions();this.textArea.domNode.style.tabSize=a*this._fontInfo.spaceWidth+"px",this.textArea.setAttribute("autocorrect","off"),this.textArea.setAttribute("autocapitalize","off"),this.textArea.setAttribute("autocomplete","off"),this.textArea.setAttribute("spellcheck","false"),this.textArea.setAttribute("aria-label",this._getAriaLabel(s)),this.textArea.setAttribute("aria-required",s.get(5)?"true":"false"),this.textArea.setAttribute("tabindex",String(s.get(125))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",We.k("editor","editor")),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-autocomplete",s.get(92)?"none":"both"),this._ensureReadOnlyAttribute(),this.textAreaCover=(0,Y.Z)(document.createElement("div")),this.textAreaCover.setPosition("absolute");const l={getLineCount:()=>this._context.viewModel.getLineCount(),getLineMaxColumn:e=>this._context.viewModel.getLineMaxColumn(e),getValueInRange:(e,t)=>this._context.viewModel.getValueInRange(e,t),getValueLengthInRange:(e,t)=>this._context.viewModel.getValueLengthInRange(e,t),modifyPosition:(e,t)=>this._context.viewModel.modifyPosition(e,t)},d={getDataToCopy:()=>{const e=this._context.viewModel.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,M.uF),t=this._context.viewModel.model.getEOL(),i=this._emptySelectionClipboard&&1===this._modelSelections.length&&this._modelSelections[0].isEmpty(),n=Array.isArray(e)?e:null,o=Array.isArray(e)?e.join(t):e;let s,r=null;if(Te.Eq.forceCopyWithSyntaxHighlighting||this._copyWithSyntaxHighlighting&&o.length<65536){const e=this._context.viewModel.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard);e&&(s=e.html,r=e.mode)}return{isFromEmptySelection:i,multicursorText:n,text:o,html:s,mode:r}},getScreenReaderContent:()=>{if(1===this._accessibilitySupport){const e=this._selections[0];if(M.zx&&e.isEmpty()){const t=e.getStartPosition();let i=this._getWordBeforePosition(t);if(0===i.length&&(i=this._getCharacterBeforePosition(t)),i.length>0)return new Ve._O(i,i.length,i.length,re.Q.fromPositions(t),0)}const t=500;if(M.zx&&!e.isEmpty()&&l.getValueLengthInRange(e,0)0)return new Ve._O(i,n,n,re.Q.fromPositions(t),0)}return Ve._O.EMPTY}return Ve.Al.fromEditorSelection(l,this._selections[0],this._accessibilityPageSize,0===this._accessibilitySupport)},deduceModelPosition:(e,t,i)=>this._context.viewModel.deduceModelPositionRelativeToViewPosition(e,t,i)},c=this._register(new Te.M0(this.textArea.domNode));this._textAreaInput=this._register(this._instantiationService.createInstance(Te.No,d,c,M.OS,{isAndroid:E.m0,isChrome:E.H8,isFirefox:E.gm,isSafari:E.nr})),this._register(this._textAreaInput.onKeyDown((e=>{this._viewController.emitKeyDown(e)}))),this._register(this._textAreaInput.onKeyUp((e=>{this._viewController.emitKeyUp(e)}))),this._register(this._textAreaInput.onPaste((e=>{let t=!1,i=null,n=null;e.metadata&&(t=this._emptySelectionClipboard&&!!e.metadata.isFromEmptySelection,i=void 0!==e.metadata.multicursorText?e.metadata.multicursorText:null,n=e.metadata.mode),this._viewController.paste(e.text,t,i,n)}))),this._register(this._textAreaInput.onCut((()=>{this._viewController.cut()}))),this._register(this._textAreaInput.onType((e=>{e.replacePrevCharCnt||e.replaceNextCharCnt||e.positionDelta?(Ve.Hf&&console.log(` => compositionType: <<${e.text}>>, ${e.replacePrevCharCnt}, ${e.replaceNextCharCnt}, ${e.positionDelta}`),this._viewController.compositionType(e.text,e.replacePrevCharCnt,e.replaceNextCharCnt,e.positionDelta)):(Ve.Hf&&console.log(` => type: <<${e.text}>>`),this._viewController.type(e.text))}))),this._register(this._textAreaInput.onSelectionChangeRequest((e=>{this._viewController.setSelection(e)}))),this._register(this._textAreaInput.onCompositionStart((e=>{const t=this.textArea.domNode,i=this._modelSelections[0],{distanceToModelLineStart:n,widthOfHiddenTextBefore:o}=(()=>{const e=t.value.substring(0,Math.min(t.selectionStart,t.selectionEnd)),n=e.lastIndexOf("\n"),o=e.substring(n+1),s=o.lastIndexOf("\t"),r=o.length-s-1,a=i.getStartPosition(),l=Math.min(a.column-1,r),d=a.column-1-l,c=o.substring(0,o.length-l),{tabSize:h}=this._context.viewModel.model.getOptions(),u=function(e,t,i,n){if(0===t.length)return 0;const o=e.createElement("div");o.style.position="absolute",o.style.top="-50000px",o.style.width="50000px";const s=e.createElement("span");(0,D.M)(s,i),s.style.whiteSpace="pre",s.style.tabSize=n*i.spaceWidth+"px",s.append(t),o.appendChild(s),e.body.appendChild(o);const r=s.offsetWidth;return o.remove(),r}(this.textArea.domNode.ownerDocument,c,this._fontInfo,h);return{distanceToModelLineStart:d,widthOfHiddenTextBefore:u}})(),{distanceToModelLineEnd:s}=(()=>{const e=t.value.substring(Math.max(t.selectionStart,t.selectionEnd)),n=e.indexOf("\n"),o=-1===n?e:e.substring(0,n),s=o.indexOf("\t"),r=-1===s?o.length:o.length-s-1,a=i.getEndPosition(),l=Math.min(this._context.viewModel.model.getLineMaxColumn(a.lineNumber)-a.column,r);return{distanceToModelLineEnd:this._context.viewModel.model.getLineMaxColumn(a.lineNumber)-a.column-l}})();this._context.viewModel.revealRange("keyboard",!0,re.Q.fromPositions(this._selections[0].getStartPosition()),0,1),this._visibleTextArea=new at(this._context,i.startLineNumber,n,o,s),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render(),this.textArea.setClassName(`inputarea ${et} ime-input`),this._viewController.compositionStart(),this._context.viewModel.onCompositionStart()}))),this._register(this._textAreaInput.onCompositionUpdate((e=>{this._visibleTextArea&&(this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render())}))),this._register(this._textAreaInput.onCompositionEnd((()=>{this._visibleTextArea=null,this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._render(),this.textArea.setClassName(`inputarea ${et}`),this._viewController.compositionEnd(),this._context.viewModel.onCompositionEnd()}))),this._register(this._textAreaInput.onFocus((()=>{this._context.viewModel.setHasFocus(!0)}))),this._register(this._textAreaInput.onBlur((()=>{this._context.viewModel.setHasFocus(!1)}))),this._register(nt.M.onDidChange((()=>{this._ensureReadOnlyAttribute()})))}writeScreenReaderContent(e){this._textAreaInput.writeNativeTextAreaContent(e)}dispose(){super.dispose()}_getAndroidWordAtPosition(e){const t=this._context.viewModel.getLineContent(e.lineNumber),i=(0,Ye.i)('`~!@#$%^&*()-=+[{]}\\|;:",.<>/?',[]);let n=!0,o=e.column,s=!0,r=e.column,a=0;for(;a<50&&(n||s);){if(n&&o<=1&&(n=!1),n){const e=t.charCodeAt(o-2);0!==i.get(e)?n=!1:o--}if(s&&r>t.length&&(s=!1),s){const e=t.charCodeAt(r-1);0!==i.get(e)?s=!1:r++}a++}return[t.substring(o-1,r-1),e.column-o]}_getWordBeforePosition(e){const t=this._context.viewModel.getLineContent(e.lineNumber),i=(0,Ye.i)(this._context.configuration.options.get(132),[]);let n=e.column,o=0;for(;n>1;){const s=t.charCodeAt(n-2);if(0!==i.get(s)||o>50)return t.substring(n-1,e.column-1);o++,n--}return t.substring(0,e.column-1)}_getCharacterBeforePosition(e){if(e.column>1){const t=this._context.viewModel.getLineContent(e.lineNumber).charAt(e.column-2);if(!He.pc(t.charCodeAt(0)))return t}return""}_getAriaLabel(e){var t,i,n;if(1===e.get(2)){const e=null===(t=this._keybindingService.lookupKeybinding("editor.action.toggleScreenReaderAccessibilityMode"))||void 0===t?void 0:t.getAriaLabel(),o=null===(i=this._keybindingService.lookupKeybinding("workbench.action.showCommands"))||void 0===i?void 0:i.getAriaLabel(),s=null===(n=this._keybindingService.lookupKeybinding("workbench.action.openGlobalKeybindings"))||void 0===n?void 0:n.getAriaLabel(),r=We.k("accessibilityModeOff","The editor is not accessible at this time.");return e?We.k("accessibilityOffAriaLabel","{0} To enable screen reader optimized mode, use {1}",r,e):o?We.k("accessibilityOffAriaLabelNoKb","{0} To enable screen reader optimized mode, open the quick pick with {1} and run the command Toggle Screen Reader Accessibility Mode, which is currently not triggerable via keyboard.",r,o):s?We.k("accessibilityOffAriaLabelNoKbs","{0} Please assign a keybinding for the command Toggle Screen Reader Accessibility Mode by accessing the keybindings editor with {1} and run it.",r,s):r}return e.get(4)}_setAccessibilityOptions(e){this._accessibilitySupport=e.get(2);const t=e.get(3);2===this._accessibilitySupport&&t===W.qB.accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=t;const i=e.get(146).wrappingColumn;if(-1!==i&&1!==this._accessibilitySupport){const t=e.get(50);this._textAreaWrapping=!0,this._textAreaWidth=Math.round(i*t.typicalHalfwidthCharacterWidth)}else this._textAreaWrapping=!1,this._textAreaWidth=lt?0:1}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146);this._setAccessibilityOptions(t),this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._contentHeight=i.height,this._fontInfo=t.get(50),this._lineHeight=t.get(67),this._emptySelectionClipboard=t.get(37),this._copyWithSyntaxHighlighting=t.get(25),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");const{tabSize:n}=this._context.viewModel.model.getOptions();return this.textArea.domNode.style.tabSize=n*this._fontInfo.spaceWidth+"px",this.textArea.setAttribute("aria-label",this._getAriaLabel(t)),this.textArea.setAttribute("aria-required",t.get(5)?"true":"false"),this.textArea.setAttribute("tabindex",String(t.get(125))),(e.hasChanged(34)||e.hasChanged(92))&&this._ensureReadOnlyAttribute(),e.hasChanged(2)&&this._textAreaInput.writeNativeTextAreaContent("strategy changed"),!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeNativeTextAreaContent("selection changed"),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0}onZonesChanged(e){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(e){e.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",e.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),e.role&&this.textArea.setAttribute("role",e.role)}_ensureReadOnlyAttribute(){const e=this._context.configuration.options;!nt.M.enabled||e.get(34)&&e.get(92)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")}prepareRender(e){var t;this._primaryCursorPosition=new se.y(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition),null===(t=this._visibleTextArea)||void 0===t||t.prepareRender(e)}render(e){this._textAreaInput.writeNativeTextAreaContent("render"),this._render()}_render(){var e;if(this._visibleTextArea){const e=this._visibleTextArea.visibleTextareaStart,t=this._visibleTextArea.visibleTextareaEnd,i=this._visibleTextArea.startPosition,n=this._visibleTextArea.endPosition;if(i&&n&&e&&t&&t.left>=this._scrollLeft&&e.left<=this._scrollLeft+this._contentWidth){const o=this._context.viewLayout.getVerticalOffsetForLineNumber(this._primaryCursorPosition.lineNumber)-this._scrollTop,s=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));let r=this._visibleTextArea.widthOfHiddenLineTextBefore,a=this._contentLeft+e.left-this._scrollLeft,l=t.left-e.left+1;if(athis._contentWidth&&(l=this._contentWidth);const d=this._context.viewModel.getViewLineData(i.lineNumber),c=d.tokens.findTokenIndexAtOffset(i.column-1),h=c===d.tokens.findTokenIndexAtOffset(n.column-1),u=this._visibleTextArea.definePresentation(h?d.tokens.getPresentation(c):null);this.textArea.domNode.scrollTop=s*this._lineHeight,this.textArea.domNode.scrollLeft=r,this._doRender({lastRenderPosition:null,top:o,left:a,width:l,height:this._lineHeight,useCover:!1,color:(tt.dG.getColorMap()||[])[u.foreground],italic:u.italic,bold:u.bold,underline:u.underline,strikethrough:u.strikethrough})}return}if(!this._primaryCursorVisibleRange)return void this._renderAtTopLeft();const t=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(tthis._contentLeft+this._contentWidth)return void this._renderAtTopLeft();const i=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(i<0||i>this._contentHeight)this._renderAtTopLeft();else if(M.zx||2===this._accessibilitySupport){this._doRender({lastRenderPosition:this._primaryCursorPosition,top:i,left:this._textAreaWrapping?this._contentLeft:t,width:this._textAreaWidth,height:this._lineHeight,useCover:!1}),this.textArea.domNode.scrollLeft=this._primaryCursorVisibleRange.left;const n=null!==(e=this._textAreaInput.textAreaState.newlineCountBeforeSelection)&&void 0!==e?e:this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));this.textArea.domNode.scrollTop=n*this._lineHeight}else this._doRender({lastRenderPosition:this._primaryCursorPosition,top:i,left:this._textAreaWrapping?this._contentLeft:t,width:this._textAreaWidth,height:lt?0:1,useCover:!1})}_newlinecount(e){let t=0,i=-1;for(;i=e.indexOf("\n",i+1),-1!==i;)t++;return t}_renderAtTopLeft(){this._doRender({lastRenderPosition:null,top:0,left:0,width:this._textAreaWidth,height:lt?0:1,useCover:!0})}_doRender(e){this._lastRenderPosition=e.lastRenderPosition;const t=this.textArea,i=this.textAreaCover;(0,D.M)(t,this._fontInfo),t.setTop(e.top),t.setLeft(e.left),t.setWidth(e.width),t.setHeight(e.height),t.setColor(e.color?it.Q1.Format.CSS.formatHex(e.color):""),t.setFontStyle(e.italic?"italic":""),e.bold&&t.setFontWeight("bold"),t.setTextDecoration(`${e.underline?" underline":""}${e.strikethrough?" line-through":""}`),i.setTop(e.useCover?e.top:0),i.setLeft(e.useCover?e.left:0),i.setWidth(e.useCover?e.width:0),i.setHeight(e.useCover?e.height:0);const n=this._context.configuration.options;n.get(57)?i.setClassName("monaco-editor-background textAreaCover "+Ze.OUTER_CLASS_NAME):0!==n.get(68).renderType?i.setClassName("monaco-editor-background textAreaCover "+qe.CLASS_NAME):i.setClassName("monaco-editor-background textAreaCover")}};dt=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([rt(3,ot.b),rt(4,st._Y)],dt);var ct=i(48664),ht=i(72521);class ut{constructor(e,t,i,n){this.configuration=e,this.viewModel=t,this.userInputEvents=i,this.commandDelegate=n}paste(e,t,i,n){this.commandDelegate.paste(e,t,i,n)}type(e){this.commandDelegate.type(e)}compositionType(e,t,i,n){this.commandDelegate.compositionType(e,t,i,n)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(e){ht.CoreNavigationCommands.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:e})}_validateViewColumn(e){const t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column=4?this._selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position,e.revealType):this._lastCursorLineSelect(e.position,e.revealType):e.inSelectionMode?this._lineSelectDrag(e.position,e.revealType):this._lineSelect(e.position,e.revealType):2===e.mouseDownCount?e.onInjectedText||(this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position,e.revealType):e.inSelectionMode?this._wordSelectDrag(e.position,e.revealType):this._wordSelect(e.position,e.revealType)):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position,e.revealType):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey||n?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position,e.revealType):this.moveTo(e.position,e.revealType)}_usualArgs(e,t){return e=this._validateViewColumn(e),{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,revealType:t}}moveTo(e,t){ht.CoreNavigationCommands.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_moveToSelect(e,t){ht.CoreNavigationCommands.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_columnSelect(e,t,i){e=this._validateViewColumn(e),ht.CoreNavigationCommands.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:i})}_createCursor(e,t){e=this._validateViewColumn(e),ht.CoreNavigationCommands.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})}_lastCursorMoveToSelect(e,t){ht.CoreNavigationCommands.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_wordSelect(e,t){ht.CoreNavigationCommands.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_wordSelectDrag(e,t){ht.CoreNavigationCommands.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorWordSelect(e,t){ht.CoreNavigationCommands.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lineSelect(e,t){ht.CoreNavigationCommands.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lineSelectDrag(e,t){ht.CoreNavigationCommands.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorLineSelect(e,t){ht.CoreNavigationCommands.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_lastCursorLineSelectDrag(e,t){ht.CoreNavigationCommands.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e,t))}_selectAll(){ht.CoreNavigationCommands.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)}emitKeyDown(e){this.userInputEvents.emitKeyDown(e)}emitKeyUp(e){this.userInputEvents.emitKeyUp(e)}emitContextMenu(e){this.userInputEvents.emitContextMenu(e)}emitMouseMove(e){this.userInputEvents.emitMouseMove(e)}emitMouseLeave(e){this.userInputEvents.emitMouseLeave(e)}emitMouseUp(e){this.userInputEvents.emitMouseUp(e)}emitMouseDown(e){this.userInputEvents.emitMouseDown(e)}emitMouseDrag(e){this.userInputEvents.emitMouseDrag(e)}emitMouseDrop(e){this.userInputEvents.emitMouseDrop(e)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(e){this.userInputEvents.emitMouseWheel(e)}}var gt=i(13021),pt=i(54324);class mt{constructor(e){this._createLine=e,this._set(1,[])}flush(){this._set(1,[])}_set(e,t){this._lines=t,this._rendLineNumberStart=e}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(e){const t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new d.D7("Illegal value for lineNumber");return this._lines[t]}onLinesDeleted(e,t){if(0===this.getCount())return null;const i=this.getStartLineNumber(),n=this.getEndLineNumber();if(tn)return null;let o=0,s=0;for(let r=i;r<=n;r++){const i=r-this._rendLineNumberStart;e<=r&&r<=t&&(0===s?(o=i,s=1):s++)}if(e=n&&t<=o&&(this._lines[t-this._rendLineNumberStart].onContentChanged(),s=!0);return s}onLinesInserted(e,t){if(0===this.getCount())return null;const i=t-e+1,n=this.getStartLineNumber(),o=this.getEndLineNumber();if(e<=n)return this._rendLineNumberStart+=i,null;if(e>o)return null;if(i+e>o)return this._lines.splice(e-this._rendLineNumberStart,o-e+1);const s=[];for(let e=0;ei)continue;const r=Math.max(t,s.fromLineNumber),a=Math.min(i,s.toLineNumber);for(let e=r;e<=a;e++){const t=e-this._rendLineNumberStart;this._lines[t].onTokensChanged(),n=!0}}return n}}class ft{constructor(e){this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new mt((()=>this._host.createVisibleLine()))}_createDomNode(){const e=(0,Y.Z)(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e}onConfigurationChanged(e){return!!e.hasChanged(146)}onFlushed(e){return this._linesCollection.flush(),!0}onLinesChanged(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.count)}onLinesDeleted(e){const t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(let e=0,i=t.length;et){const e=t,s=Math.min(i,o.rendLineNumberStart-1);e<=s&&(this._insertLinesBefore(o,e,s,n,t),o.linesLength+=s-e+1)}else if(o.rendLineNumberStart0&&(this._removeLinesBefore(o,e),o.linesLength-=e)}if(o.rendLineNumberStart=t,o.rendLineNumberStart+o.linesLength-1i){const e=Math.max(0,i-o.rendLineNumberStart+1),t=o.linesLength-1-e+1;t>0&&(this._removeLinesAfter(o,t),o.linesLength-=t)}return this._finishRendering(o,!1,n),o}_renderUntouchedLines(e,t,i,n,o){const s=e.rendLineNumberStart,r=e.lines;for(let e=t;e<=i;e++){const t=s+e;r[e].layoutLine(t,n[t-o],this.viewportData.lineHeight)}}_insertLinesBefore(e,t,i,n,o){const s=[];let r=0;for(let e=t;e<=i;e++)s[r++]=this.host.createVisibleLine();e.lines=s.concat(e.lines)}_removeLinesBefore(e,t){for(let i=0;i=0;t--){const i=e.lines[t];n[t]&&(i.setDomNode(s),s=s.previousSibling)}}_finishRenderingInvalidLines(e,t,i){const n=document.createElement("div");vt._ttPolicy&&(t=vt._ttPolicy.createHTML(t)),n.innerHTML=t;for(let t=0;te}),vt._sb=new pt.fe(1e5);class _t extends te{constructor(e){super(e),this._visibleLines=new ft(this),this.domNode=this._visibleLines.domNode;const t=this._context.configuration.options.get(50);(0,D.M)(this.domNode,t),this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let e=0,t=this._dynamicOverlays.length;ee.shouldRender()));for(let i=0,n=t.length;i'),o.appendString(s),o.appendString(""),!0)}layoutLine(e,t,i){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(i))}}class wt extends _t{constructor(e){super(e);const t=this._context.configuration.options.get(146);this._contentWidth=t.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(e){const t=this._context.configuration.options.get(146);return this._contentWidth=t.contentWidth,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollWidthChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))}}class yt extends _t{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(146);this._contentLeft=i.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),(0,D.M)(this.domNode,t.get(50))}onConfigurationChanged(e){const t=this._context.configuration.options;(0,D.M)(this.domNode,t.get(50));const i=t.get(146);return this._contentLeft=i.contentLeft,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollHeightChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e);const t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)}}class Ct{constructor(e){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseDropCanceled=null,this.onMouseWheel=null,this._coordinatesConverter=e}emitKeyDown(e){var t;null===(t=this.onKeyDown)||void 0===t||t.call(this,e)}emitKeyUp(e){var t;null===(t=this.onKeyUp)||void 0===t||t.call(this,e)}emitContextMenu(e){var t;null===(t=this.onContextMenu)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseMove(e){var t;null===(t=this.onMouseMove)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseLeave(e){var t;null===(t=this.onMouseLeave)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDown(e){var t;null===(t=this.onMouseDown)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseUp(e){var t;null===(t=this.onMouseUp)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDrag(e){var t;null===(t=this.onMouseDrag)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDrop(e){var t;null===(t=this.onMouseDrop)||void 0===t||t.call(this,this._convertViewToModelMouseEvent(e))}emitMouseDropCanceled(){var e;null===(e=this.onMouseDropCanceled)||void 0===e||e.call(this)}emitMouseWheel(e){var t;null===(t=this.onMouseWheel)||void 0===t||t.call(this,e)}_convertViewToModelMouseEvent(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e}_convertViewToModelMouseTarget(e){return Ct.convertViewToModelMouseTarget(e,this._coordinatesConverter)}static convertViewToModelMouseTarget(e,t){const i={...e};return i.position&&(i.position=t.convertViewPositionToModelPosition(i.position)),i.range&&(i.range=t.convertViewRangeToModelRange(i.range)),5!==i.type&&8!==i.type||(i.detail=this.convertViewToModelViewZoneData(i.detail,t)),i}static convertViewToModelViewZoneData(e,t){return{viewZoneId:e.viewZoneId,positionBefore:e.positionBefore?t.convertViewPositionToModelPosition(e.positionBefore):e.positionBefore,positionAfter:e.positionAfter?t.convertViewPositionToModelPosition(e.positionAfter):e.positionAfter,position:t.convertViewPositionToModelPosition(e.position),afterLineNumber:t.convertViewPositionToModelPosition(new se.y(e.afterLineNumber,1)).lineNumber}}}var kt=i(72035),St={};St.styleTagTransform=S(),St.setAttributes=w(),St.insert=_().bind(null,"head"),St.domAPI=f(),St.insertStyleElement=C(),p()(kt.A,St),kt.A&&kt.A.locals&&kt.A.locals;class xt extends te{constructor(e){super(e),this.blocks=[],this.contentWidth=-1,this.contentLeft=0,this.domNode=(0,Y.Z)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("blockDecorations-container"),this.update()}update(){let e=!1;const t=this._context.configuration.options.get(146),i=t.contentWidth-t.verticalScrollbarWidth;this.contentWidth!==i&&(this.contentWidth=i,e=!0);const n=t.contentLeft;return this.contentLeft!==n&&(this.contentLeft=n,e=!0),e}dispose(){super.dispose()}onConfigurationChanged(e){return this.update()}onScrollChanged(e){return e.scrollTopChanged||e.scrollLeftChanged}onDecorationsChanged(e){return!0}onZonesChanged(e){return!0}prepareRender(e){}render(e){var t;let i=0;const n=e.getDecorationsInViewport();for(const o of n){if(!o.options.blockClassName)continue;let n,s,r=this.blocks[i];r||(r=this.blocks[i]=(0,Y.Z)(document.createElement("div")),this.domNode.appendChild(r)),o.options.blockIsAfterEnd?(n=e.getVerticalOffsetAfterLineNumber(o.range.endLineNumber,!1),s=e.getVerticalOffsetAfterLineNumber(o.range.endLineNumber,!0)):(n=e.getVerticalOffsetForLineNumber(o.range.startLineNumber,!0),s=o.range.isEmpty()&&!o.options.blockDoesNotCollapse?e.getVerticalOffsetForLineNumber(o.range.startLineNumber,!1):e.getVerticalOffsetAfterLineNumber(o.range.endLineNumber,!0));const[a,l,d,c]=null!==(t=o.options.blockPadding)&&void 0!==t?t:[0,0,0,0];r.setClassName("blockDecorations-block "+o.options.blockClassName),r.setLeft(this.contentLeft-c),r.setWidth(this.contentWidth+c+l),r.setTop(n-e.scrollTop-a),r.setHeight(s-n+a+d),i++}for(let e=i;e0?this.domNode.setDisplay("block"):this.domNode.setDisplay("none"),this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1}_layoutBoxInViewport(e,t,i,n){const o=e.top,s=o,r=e.top+e.height,a=o-i,l=s>=i,d=r,c=n.viewportHeight-r>=i;let h=e.left;return h+t>n.scrollLeft+n.viewportWidth&&(h=n.scrollLeft+n.viewportWidth-t),hr){const e=l-(r-n);l-=e,i-=e}if(l=22,_=g+i<=p.height-22;return this._fixedOverflowWidgets?{fitsAbove:v,aboveTop:Math.max(u,22),fitsBelow:_,belowTop:g,left:f}:{fitsAbove:v,aboveTop:r,fitsBelow:_,belowTop:a,left:m}}_prepareRenderWidgetAtExactPositionOverflowing(e){return new It(e.top,e.left+this._contentLeft)}_getAnchorsCoordinates(e){var t,i;return{primary:n(this._primaryAnchor.viewPosition,this._affinity,this._lineHeight),secondary:n((null===(t=this._secondaryAnchor.viewPosition)||void 0===t?void 0:t.lineNumber)===(null===(i=this._primaryAnchor.viewPosition)||void 0===i?void 0:i.lineNumber)?this._secondaryAnchor.viewPosition:null,this._affinity,this._lineHeight)};function n(t,i,n){if(!t)return null;const o=e.visibleRangeForPosition(t);if(!o)return null;const s=1===t.column&&3===i?0:o.left,r=e.getVerticalOffsetForLineNumber(t.lineNumber)-e.scrollTop;return new Nt(r,s,n)}}_reduceAnchorCoordinates(e,t,i){if(!t)return e;const n=this._context.configuration.options.get(50);let o=t.left;return o=oe.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))}prepareRender(e){this._renderData=this._prepareRenderWidget(e)}render(e){var t;if(!this._renderData||"offViewport"===this._renderData.kind)return this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,"offViewport"===(null===(t=this._renderData)||void 0===t?void 0:t.kind)&&this._renderData.preserveFocus?this.domNode.setTop(-1e3):this.domNode.setVisibility("hidden")),void("function"==typeof this._actual.afterRender&&Mt(this._actual.afterRender,this._actual,null));this.allowEditorOverflow?(this.domNode.setTop(this._renderData.coordinate.top),this.domNode.setLeft(this._renderData.coordinate.left)):(this.domNode.setTop(this._renderData.coordinate.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),"function"==typeof this._actual.afterRender&&Mt(this._actual.afterRender,this._actual,this._renderData.position)}}class Et{constructor(e,t){this.modelPosition=e,this.viewPosition=t}}class It{constructor(e,t){this.top=e,this.left=t,this._coordinateBrand=void 0}}class Nt{constructor(e,t,i){this.top=e,this.left=t,this.height=i,this._anchorCoordinateBrand=void 0}}function Mt(e,t,...i){try{return e.call(t,...i)}catch(e){return null}}var At=i(28405),Tt={};Tt.styleTagTransform=S(),Tt.setAttributes=w(),Tt.insert=_().bind(null,"head"),Tt.domAPI=f(),Tt.insertStyleElement=C(),p()(At.A,Tt),At.A&&At.A.locals&&At.A.locals;var Rt=i(89563);class Pt extends Ue{constructor(e){super(),this._context=e;const t=this._context.configuration.options,i=t.get(146);this._renderLineHighlight=t.get(97),this._renderLineHighlightOnlyWhenFocus=t.get(98),this._wordWrap=i.isViewportWrapping,this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[1],this._selections=[new Le.L(1,1,1,1)],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let e=!1;const t=new Set;for(const e of this._selections)t.add(e.positionLineNumber);const i=Array.from(t);i.sort(((e,t)=>e-t)),I.aI(this._cursorLineNumbers,i)||(this._cursorLineNumbers=i,e=!0);const n=this._selections.every((e=>e.isEmpty()));return this._selectionIsEmpty!==n&&(this._selectionIsEmpty=n,e=!0),e}onThemeChanged(e){return this._readFromSelections()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(146);return this._renderLineHighlight=t.get(97),this._renderLineHighlightOnlyWhenFocus=t.get(98),this._wordWrap=i.isViewportWrapping,this._contentLeft=i.contentLeft,this._contentWidth=i.contentWidth,!0}onCursorStateChanged(e){return this._selections=e.selections,this._readFromSelections()}onFlushed(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollWidthChanged||e.scrollTopChanged}onZonesChanged(e){return!0}onFocusChanged(e){return!!this._renderLineHighlightOnlyWhenFocus&&(this._focused=e.isFocused,!0)}prepareRender(e){if(!this._shouldRenderThis())return void(this._renderData=null);const t=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,n=[];for(let e=t;e<=i;e++)n[e-t]="";if(this._wordWrap){const o=this._renderOne(e,!1);for(const e of this._cursorLineNumbers){const s=this._context.viewModel.coordinatesConverter,r=s.convertViewPositionToModelPosition(new se.y(e,1)).lineNumber,a=s.convertModelPositionToViewPosition(new se.y(r,1)).lineNumber,l=s.convertModelPositionToViewPosition(new se.y(r,this._context.viewModel.model.getLineMaxColumn(r))).lineNumber,d=Math.max(a,t),c=Math.min(l,i);for(let e=d;e<=c;e++)n[e-t]=o}}const o=this._renderOne(e,!0);for(const e of this._cursorLineNumbers)ei||(n[e-t]=o);this._renderData=n}render(e,t){if(!this._renderData)return"";const i=t-e;return i>=this._renderData.length?"":this._renderData[i]}_shouldRenderInMargin(){return("gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderInContent(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}class Ot extends Pt{_renderOne(e,t){return`
    `}_shouldRenderThis(){return this._shouldRenderInContent()}_shouldRenderOther(){return this._shouldRenderInMargin()}}class Ft extends Pt{_renderOne(e,t){return`
    `}_shouldRenderThis(){return!0}_shouldRenderOther(){return this._shouldRenderInContent()}}(0,$e.zy)(((e,t)=>{const i=e.getColor(Ke.kG);if(i&&(t.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${i}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${i}; border: none; }`)),!i||i.isTransparent()||e.defines(Ke.Mf)){const i=e.getColor(Ke.Mf);i&&(t.addRule(`.monaco-editor .view-overlays .current-line-exact { border: 2px solid ${i}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-exact-margin { border: 2px solid ${i}; }`),(0,Rt.Bb)(e.type)&&(t.addRule(".monaco-editor .view-overlays .current-line-exact { border-width: 1px; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-exact-margin { border-width: 1px; }")))}}));var Bt=i(83093),Wt={};Wt.styleTagTransform=S(),Wt.setAttributes=w(),Wt.insert=_().bind(null,"head"),Wt.domAPI=f(),Wt.insertStyleElement=C(),p()(Bt.A,Wt),Bt.A&&Bt.A.locals&&Bt.A.locals;class Ht extends Ue{constructor(e){super(),this._context=e;const t=this._context.configuration.options;this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}prepareRender(e){const t=e.getDecorationsInViewport();let i=[],n=0;for(let e=0,o=t.length;e{if(e.options.zIndext.options.zIndex)return 1;const i=e.options.className,n=t.options.className;return in?1:re.Q.compareRangesUsingStarts(e.range,t.range)}));const o=e.visibleRange.startLineNumber,s=e.visibleRange.endLineNumber,r=[];for(let e=o;e<=s;e++)r[e-o]="";this._renderWholeLineDecorations(e,i,r),this._renderNormalDecorations(e,i,r),this._renderResult=r}_renderWholeLineDecorations(e,t,i){const n=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber;for(let e=0,s=t.length;e',a=Math.max(s.range.startLineNumber,n),l=Math.min(s.range.endLineNumber,o);for(let e=a;e<=l;e++)i[e-n]+=r}}_renderNormalDecorations(e,t,i){var n;const o=e.visibleRange.startLineNumber;let s=null,r=!1,a=null,l=!1;for(let d=0,c=t.length;d';r[l]+=d}}}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class Vt extends te{constructor(e,t,i,n){super(e);const o=this._context.configuration.options,s=o.get(104),r=o.get(75),a=o.get(40),d=o.get(107),c={listenOnDomNode:i.domNode,className:"editor-scrollable "+(0,$e.Pz)(e.theme.type),useShadows:!1,lazyRender:!0,vertical:s.vertical,horizontal:s.horizontal,verticalHasArrows:s.verticalHasArrows,horizontalHasArrows:s.horizontalHasArrows,verticalScrollbarSize:s.verticalScrollbarSize,verticalSliderSize:s.verticalSliderSize,horizontalScrollbarSize:s.horizontalScrollbarSize,horizontalSliderSize:s.horizontalSliderSize,handleMouseWheel:s.handleMouseWheel,alwaysConsumeMouseWheel:s.alwaysConsumeMouseWheel,arrowSize:s.arrowSize,mouseWheelScrollSensitivity:r,fastScrollSensitivity:a,scrollPredominantAxis:d,scrollByPage:s.scrollByPage};this.scrollbar=this._register(new De.oO(t.domNode,c,this._context.viewLayout.getScrollable())),ie.write(this.scrollbar.getDomNode(),6),this.scrollbarDomNode=(0,Y.Z)(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();const h=(e,t,i)=>{const n={};if(t){const t=e.scrollTop;t&&(n.scrollTop=this._context.viewLayout.getCurrentScrollTop()+t,e.scrollTop=0)}if(i){const t=e.scrollLeft;t&&(n.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+t,e.scrollLeft=0)}this._context.viewModel.viewLayout.setScrollPosition(n,1)};this._register(l.ko(i.domNode,"scroll",(e=>h(i.domNode,!0,!0)))),this._register(l.ko(t.domNode,"scroll",(e=>h(t.domNode,!0,!1)))),this._register(l.ko(n.domNode,"scroll",(e=>h(n.domNode,!0,!1)))),this._register(l.ko(this.scrollbarDomNode.domNode,"scroll",(e=>h(this.scrollbarDomNode.domNode,!0,!1))))}dispose(){super.dispose()}_setLayout(){const e=this._context.configuration.options,t=e.get(146);this.scrollbarDomNode.setLeft(t.contentLeft),"right"===e.get(73).side?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarPointerDown(e){this.scrollbar.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this.scrollbar.delegateScrollFromMouseWheelEvent(e)}onConfigurationChanged(e){if(e.hasChanged(104)||e.hasChanged(75)||e.hasChanged(40)){const e=this._context.configuration.options,t=e.get(104),i=e.get(75),n=e.get(40),o=e.get(107),s={vertical:t.vertical,horizontal:t.horizontal,verticalScrollbarSize:t.verticalScrollbarSize,horizontalScrollbarSize:t.horizontalScrollbarSize,scrollByPage:t.scrollByPage,handleMouseWheel:t.handleMouseWheel,mouseWheelScrollSensitivity:i,fastScrollSensitivity:n,scrollPredominantAxis:o};this.scrollbar.updateOptions(s)}return e.hasChanged(146)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+(0,$e.Pz)(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}var zt=i(98081),jt={};jt.styleTagTransform=S(),jt.setAttributes=w(),jt.insert=_().bind(null,"head"),jt.domAPI=f(),jt.insertStyleElement=C(),p()(zt.A,jt),zt.A&&zt.A.locals&&zt.A.locals;var Ut=i(66055);class $t{constructor(e,t,i,n,o){this.startLineNumber=e,this.endLineNumber=t,this.className=i,this.tooltip=n,this._decorationToRenderBrand=void 0,this.zIndex=null!=o?o:0}}class Kt{constructor(e,t,i){this.className=e,this.zIndex=t,this.tooltip=i}}class qt{constructor(){this.decorations=[]}add(e){this.decorations.push(e)}getDecorations(){return this.decorations}}class Gt extends Ue{_render(e,t,i){const n=[];for(let i=e;i<=t;i++)n[i-e]=new qt;if(0===i.length)return n;i.sort(((e,t)=>e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.classNamen)continue;const a=Math.max(s,i),l=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new se.y(a,0)),d=this._context.viewModel.glyphLanes.getLanesAtLine(l.lineNumber).indexOf(e.preference.lane);t.push(new Yt(a,d,e.preference.zIndex,e))}}_collectSortedGlyphRenderRequests(e){const t=[];return this._collectDecorationBasedGlyphRenderRequest(e,t),this._collectWidgetBasedGlyphRenderRequest(e,t),t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.laneIndex===t.laneIndex?e.zIndex===t.zIndex?t.type===e.type?0===e.type&&0===t.type?e.className0;){const e=t.peek();if(!e)break;const n=t.takeWhile((t=>t.lineNumber===e.lineNumber&&t.laneIndex===e.laneIndex));if(!n||0===n.length)break;const o=n[0];if(0===o.type){const e=[];for(const t of n){if(t.zIndex!==o.zIndex||t.type!==o.type)break;0!==e.length&&e[e.length-1]===t.className||e.push(t.className)}i.push(o.accept(e.join(" ")))}else o.widget.renderInfo={lineNumber:o.lineNumber,laneIndex:o.laneIndex}}this._decorationGlyphsToRender=i}render(e){if(!this._glyphMargin){for(const e of Object.values(this._widgets))e.domNode.setDisplay("none");for(;this._managedDomNodes.length>0;){const e=this._managedDomNodes.pop();null==e||e.domNode.remove()}return}const t=Math.round(this._glyphMarginWidth/this._glyphMarginDecorationLaneCount);for(const i of Object.values(this._widgets))if(i.renderInfo){const n=e.viewportData.relativeVerticalOffset[i.renderInfo.lineNumber-e.viewportData.startLineNumber],o=this._glyphMarginLeft+i.renderInfo.laneIndex*this._lineHeight;i.domNode.setDisplay("block"),i.domNode.setTop(n),i.domNode.setLeft(o),i.domNode.setWidth(t),i.domNode.setHeight(this._lineHeight)}else i.domNode.setDisplay("none");for(let i=0;ithis._decorationGlyphsToRender.length;){const e=this._managedDomNodes.pop();null==e||e.domNode.remove()}}}class Zt{constructor(e,t,i,n){this.lineNumber=e,this.laneIndex=t,this.zIndex=i,this.className=n,this.type=0}accept(e){return new Xt(this.lineNumber,this.laneIndex,e)}}class Yt{constructor(e,t,i,n){this.lineNumber=e,this.laneIndex=t,this.zIndex=i,this.widget=n,this.type=1}}class Xt{constructor(e,t,i){this.lineNumber=e,this.laneIndex=t,this.combinedClassName=i}}var Jt=i(93777),ei={};ei.styleTagTransform=S(),ei.setAttributes=w(),ei.insert=_().bind(null,"head"),ei.domAPI=f(),ei.insertStyleElement=C(),p()(Jt.A,ei),Jt.A&&Jt.A.locals&&Jt.A.locals;var ti=i(79359),ii=i(52818),ni=i(60779);class oi extends Ue{constructor(e){super(),this._context=e,this._primaryPosition=null;const t=this._context.configuration.options,i=t.get(147),n=t.get(50);this._spaceWidth=n.spaceWidth,this._maxIndentLeft=-1===i.wrappingColumn?-1:i.wrappingColumn*n.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=t.get(16),this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(147),n=t.get(50);return this._spaceWidth=n.spaceWidth,this._maxIndentLeft=-1===i.wrappingColumn?-1:i.wrappingColumn*n.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=t.get(16),!0}onCursorStateChanged(e){var t;const i=e.selections[0].getPosition();return!(null===(t=this._primaryPosition)||void 0===t?void 0:t.equals(i))&&(this._primaryPosition=i,!0)}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onLanguageConfigurationChanged(e){return!0}prepareRender(e){var t,i,n,o;if(!this._bracketPairGuideOptions.indentation&&!1===this._bracketPairGuideOptions.bracketPairs)return void(this._renderResult=null);const s=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,a=e.scrollWidth,l=this._primaryPosition,d=this.getGuidesByLine(s,Math.min(r+1,this._context.viewModel.getLineCount()),l),c=[];for(let l=s;l<=r;l++){const r=l-s,h=d[r];let u="";const g=null!==(i=null===(t=e.visibleRangeForPosition(new se.y(l,1)))||void 0===t?void 0:t.left)&&void 0!==i?i:0;for(const t of h){const i=-1===t.column?g+(t.visibleColumn-1)*this._spaceWidth:e.visibleRangeForPosition(new se.y(l,t.column)).left;if(i>a||this._maxIndentLeft>0&&i>this._maxIndentLeft)break;const s=t.horizontalLine?t.horizontalLine.top?"horizontal-top":"horizontal-bottom":"vertical",r=t.horizontalLine?(null!==(o=null===(n=e.visibleRangeForPosition(new se.y(l,t.horizontalLine.endColumn)))||void 0===n?void 0:n.left)&&void 0!==o?o:i+this._spaceWidth)-i:this._spaceWidth;u+=`
    `}c[r]=u}this._renderResult=c}getGuidesByLine(e,t,i){const n=!1!==this._bracketPairGuideOptions.bracketPairs?this._context.viewModel.getBracketGuidesInRangeByLine(e,t,i,{highlightActive:this._bracketPairGuideOptions.highlightActiveBracketPair,horizontalGuides:!0===this._bracketPairGuideOptions.bracketPairsHorizontal?ni.N6.Enabled:"active"===this._bracketPairGuideOptions.bracketPairsHorizontal?ni.N6.EnabledForActive:ni.N6.Disabled,includeInactive:!0===this._bracketPairGuideOptions.bracketPairs}):null,o=this._bracketPairGuideOptions.indentation?this._context.viewModel.getLinesIndentGuides(e,t):null;let s=0,r=0,a=0;if(!1!==this._bracketPairGuideOptions.highlightActiveIndentation&&i){const n=this._context.viewModel.getActiveIndentGuide(i.lineNumber,e,t);s=n.startLineNumber,r=n.endLineNumber,a=n.indent}const{indentSize:l}=this._context.viewModel.model.getOptions(),d=[];for(let i=e;i<=t;i++){const t=new Array;d.push(t);const c=n?n[i-e]:[],h=new I.j3(c),u=o?o[i-e]:0;for(let e=1;e<=u;e++){const n=(e-1)*l+1,o=("always"===this._bracketPairGuideOptions.highlightActiveIndentation||0===c.length)&&s<=i&&i<=r&&e===a;t.push(...h.takeWhile((e=>e.visibleColumn!0))||[])}return d}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function si(e){if(!e||!e.isTransparent())return e}(0,$e.zy)(((e,t)=>{const i=[{bracketColor:Ke.sN,guideColor:Ke.n4,guideColorActive:Ke.bB},{bracketColor:Ke.lQ,guideColor:Ke.I2,guideColorActive:Ke.WS},{bracketColor:Ke.ss,guideColor:Ke.Bo,guideColorActive:Ke.Pe},{bracketColor:Ke.l5,guideColor:Ke.If,guideColorActive:Ke.WD},{bracketColor:Ke.sH,guideColor:Ke.BD,guideColorActive:Ke.P1},{bracketColor:Ke.zp,guideColor:Ke.IW,guideColorActive:Ke.WY}],n=new ii.k,o=[{indentColor:Ke.vV,indentColorActive:Ke.H0},{indentColor:Ke.ob,indentColorActive:Ke.Am},{indentColor:Ke.hz,indentColorActive:Ke.tK},{indentColor:Ke.ow,indentColorActive:Ke.A3},{indentColor:Ke.vP,indentColorActive:Ke.tp},{indentColor:Ke.CM,indentColorActive:Ke.As}],s=i.map((t=>{var i,n;const o=e.getColor(t.bracketColor),s=e.getColor(t.guideColor),r=e.getColor(t.guideColorActive),a=si(null!==(i=si(s))&&void 0!==i?i:null==o?void 0:o.transparent(.3)),l=si(null!==(n=si(r))&&void 0!==n?n:o);if(a&&l)return{guideColor:a,guideColorActive:l}})).filter(ti.O9),r=o.map((t=>{const i=e.getColor(t.indentColor),n=e.getColor(t.indentColorActive),o=si(i),s=si(n);if(o&&s)return{indentColor:o,indentColorActive:s}})).filter(ti.O9);if(s.length>0){for(let e=0;e<30;e++){const i=s[e%s.length];t.addRule(`.monaco-editor .${n.getInlineClassNameOfLevel(e).replace(/ /g,".")} { --guide-color: ${i.guideColor}; --guide-color-active: ${i.guideColorActive}; }`)}t.addRule(".monaco-editor .vertical { box-shadow: 1px 0 0 0 var(--guide-color) inset; }"),t.addRule(".monaco-editor .horizontal-top { border-top: 1px solid var(--guide-color); }"),t.addRule(".monaco-editor .horizontal-bottom { border-bottom: 1px solid var(--guide-color); }"),t.addRule(`.monaco-editor .vertical.${n.activeClassName} { box-shadow: 1px 0 0 0 var(--guide-color-active) inset; }`),t.addRule(`.monaco-editor .horizontal-top.${n.activeClassName} { border-top: 1px solid var(--guide-color-active); }`),t.addRule(`.monaco-editor .horizontal-bottom.${n.activeClassName} { border-bottom: 1px solid var(--guide-color-active); }`)}if(r.length>0){for(let e=0;e<30;e++){const i=r[e%r.length];t.addRule(`.monaco-editor .lines-content .core-guide-indent.lvl-${e} { --indent-color: ${i.indentColor}; --indent-color-active: ${i.indentColorActive}; }`)}t.addRule(".monaco-editor .lines-content .core-guide-indent { box-shadow: 1px 0 0 0 var(--indent-color) inset; }"),t.addRule(".monaco-editor .lines-content .core-guide-indent.indent-active { box-shadow: 1px 0 0 0 var(--indent-color-active) inset; }")}}));var ri=i(65958),ai=i(65876),li={};li.styleTagTransform=S(),li.setAttributes=w(),li.insert=_().bind(null,"head"),li.domAPI=f(),li.insertStyleElement=C(),p()(ai.A,li),ai.A&&ai.A.locals&&ai.A.locals;class di{get didDomLayout(){return this._didDomLayout}readClientRect(){if(!this._clientRectRead){this._clientRectRead=!0;const e=this._domNode.getBoundingClientRect();this.markDidDomLayout(),this._clientRectDeltaLeft=e.left,this._clientRectScale=e.width/this._domNode.offsetWidth}}get clientRectDeltaLeft(){return this._clientRectRead||this.readClientRect(),this._clientRectDeltaLeft}get clientRectScale(){return this._clientRectRead||this.readClientRect(),this._clientRectScale}constructor(e,t){this._domNode=e,this.endNode=t,this._didDomLayout=!1,this._clientRectDeltaLeft=0,this._clientRectScale=1,this._clientRectRead=!1}markDidDomLayout(){this._didDomLayout=!0}}class ci{constructor(){this._currentVisibleRange=new re.Q(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(e){this._currentVisibleRange=e}}class hi{constructor(e,t,i,n,o,s,r){this.minimalReveal=e,this.lineNumber=t,this.startColumn=i,this.endColumn=n,this.startScrollTop=o,this.stopScrollTop=s,this.scrollType=r,this.type="range",this.minLineNumber=t,this.maxLineNumber=t}}class ui{constructor(e,t,i,n,o){this.minimalReveal=e,this.selections=t,this.startScrollTop=i,this.stopScrollTop=n,this.scrollType=o,this.type="selections";let s=t[0].startLineNumber,r=t[0].endLineNumber;for(let e=1,i=t.length;e{this._updateLineWidthsSlow()}),200),this._asyncCheckMonospaceFontAssumptions=new ri.uC((()=>{this._checkMonospaceFontAssumptions()}),2e3),this._lastRenderedData=new ci,this._horizontalRevealRequest=null,this._stickyScrollEnabled=n.get(116).enabled,this._maxNumberStickyLines=n.get(116).maxLineCount}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}createVisibleLine(){return new oe.Gb(this._viewLineOptions)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(147)&&(this._maxLineWidth=0);const t=this._context.configuration.options,i=t.get(50),n=t.get(147);return this._lineHeight=t.get(67),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._isViewportWrapping=n.isViewportWrapping,this._revealHorizontalRightPadding=t.get(101),this._cursorSurroundingLines=t.get(29),this._cursorSurroundingLinesStyle=t.get(30),this._canUseLayerHinting=!t.get(32),this._stickyScrollEnabled=t.get(116).enabled,this._maxNumberStickyLines=t.get(116).maxLineCount,(0,D.M)(this.domNode,i),this._onOptionsMaybeChanged(),e.hasChanged(146)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){const e=this._context.configuration,t=new oe.Ax(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;const e=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let t=e;t<=i;t++)this._visibleLines.getVisibleLine(t).onOptionsChanged(this._viewLineOptions);return!0}return!1}onCursorStateChanged(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=!1;for(let e=t;e<=i;e++)n=this._visibleLines.getVisibleLine(e).onSelectionChanged()||n;return n}onDecorationsChanged(e){{const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let i=e;i<=t;i++)this._visibleLines.getVisibleLine(i).onDecorationsChanged()}return!0}onFlushed(e){const t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onRevealRangeRequest(e){const t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.minimalReveal,e.range,e.selections,e.verticalType);if(-1===t)return!1;let i=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range&&e.range.startLineNumber!==e.range.endLineNumber?i={scrollTop:i.scrollTop,scrollLeft:0}:e.range?this._horizontalRevealRequest=new hi(e.minimalReveal,e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType):e.selections&&e.selections.length>0&&(this._horizontalRevealRequest=new ui(e.minimalReveal,e.selections,this._context.viewLayout.getCurrentScrollTop(),i.scrollTop,e.scrollType)):this._horizontalRevealRequest=null;const n=Math.abs(this._context.viewLayout.getCurrentScrollTop()-i.scrollTop)<=this._lineHeight?1:e.scrollType;return this._context.viewModel.viewLayout.setScrollPosition(i,n),!0}onScrollChanged(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){const t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),i=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTopi)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(e)}onThemeChanged(e){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(e,t){const i=this._getViewLineDomNode(e);if(null===i)return null;const n=this._getLineNumberFor(i);if(-1===n)return null;if(n<1||n>this._context.viewModel.getLineCount())return null;if(1===this._context.viewModel.getLineMaxColumn(n))return new se.y(n,1);const o=this._visibleLines.getStartLineNumber(),s=this._visibleLines.getEndLineNumber();if(ns)return null;let r=this._visibleLines.getVisibleLine(n).getColumnOfNodeOffset(e,t);const a=this._context.viewModel.getLineMinColumn(n);return ri)return-1;const n=new di(this.domNode.domNode,this._textRangeRestingSpot),o=this._visibleLines.getVisibleLine(e).getWidth(n);return this._updateLineWidthsSlowIfDomDidLayout(n),o}linesVisibleRangesForRange(e,t){if(this.shouldRender())return null;const i=e.endLineNumber,n=re.Q.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!n)return null;const o=[];let s=0;const r=new di(this.domNode.domNode,this._textRangeRestingSpot);let a=0;t&&(a=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new se.y(n.startLineNumber,1)).lineNumber);const l=this._visibleLines.getStartLineNumber(),d=this._visibleLines.getEndLineNumber();for(let e=n.startLineNumber;e<=n.endLineNumber;e++){if(ed)continue;const c=e===n.startLineNumber?n.startColumn:1,h=e!==n.endLineNumber,u=h?this._context.viewModel.getLineMaxColumn(e):n.endColumn,g=this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,c,u,r);if(g){if(t&&ethis._visibleLines.getEndLineNumber())return null;const n=new di(this.domNode.domNode,this._textRangeRestingSpot),o=this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(e,t,i,n);return this._updateLineWidthsSlowIfDomDidLayout(n),o}visibleRangeForPosition(e){const t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new ct.qN(t.outsideRenderedLine,t.ranges[0].left):null}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidthsSlowIfDomDidLayout(e){e.didDomLayout&&(this._asyncUpdateLineWidths.isScheduled()||(this._asyncUpdateLineWidths.cancel(),this._updateLineWidthsSlow()))}_updateLineWidths(e){const t=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();let n=1,o=!0;for(let s=t;s<=i;s++){const t=this._visibleLines.getVisibleLine(s);!e||t.getWidthIsFast()?n=Math.max(n,t.getWidth(null)):o=!1}return o&&1===t&&i===this._context.viewModel.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(n),o}_checkMonospaceFontAssumptions(){let e=-1,t=-1;const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let o=i;o<=n;o++){const i=this._visibleLines.getVisibleLine(o);if(i.needsMonospaceFontCheck()){const n=i.getWidth(null);n>t&&(t=n,e=o)}}if(-1!==e&&!this._visibleLines.getVisibleLine(e).monospaceAssumptionsAreValid())for(let e=i;e<=n;e++)this._visibleLines.getVisibleLine(e).onMonospaceAssumptionsInvalidated()}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){const t=this._horizontalRevealRequest;if(e.startLineNumber<=t.minLineNumber&&t.maxLineNumber<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();const e=this._computeScrollLeftToReveal(t);e&&(this._isViewportWrapping||this._ensureMaxLineWidth(e.maxHorizontalOffset),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:e.scrollLeft},t.scrollType))}}if(this._updateLineWidthsFast()?this._asyncUpdateLineWidths.cancel():this._asyncUpdateLineWidths.schedule(),M.j9&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let i=e;i<=t;i++)if(this._visibleLines.getVisibleLine(i).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");const t=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-t),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(e){const t=Math.ceil(e);this._maxLineWidth0){let e=o[0].startLineNumber,t=o[0].endLineNumber;for(let i=1,n=o.length;ia){if(!d)return-1;u=c}else if(5===s||6===s)if(6===s&&r<=c&&h<=l)u=r;else{const e=c-Math.max(5*this._lineHeight,.2*a),t=h-a;u=Math.max(t,e)}else if(1===s||2===s)if(2===s&&r<=c&&h<=l)u=r;else{const e=(c+h)/2;u=Math.max(0,e-a/2)}else u=this._computeMinimumScrolling(r,l,c,h,3===s,4===s);return u}_computeScrollLeftToReveal(e){const t=this._context.viewLayout.getCurrentViewport(),i=this._context.configuration.options.get(146),n=t.left,o=n+t.width-i.verticalScrollbarWidth;let s=1073741824,r=0;if("range"===e.type){const t=this._visibleRangesForLineRange(e.lineNumber,e.startColumn,e.endColumn);if(!t)return null;for(const e of t.ranges)s=Math.min(s,Math.round(e.left)),r=Math.max(r,Math.round(e.left+e.width))}else for(const t of e.selections){if(t.startLineNumber!==t.endLineNumber)return null;const e=this._visibleRangesForLineRange(t.startLineNumber,t.startColumn,t.endColumn);if(!e)return null;for(const t of e.ranges)s=Math.min(s,Math.round(t.left)),r=Math.max(r,Math.round(t.left+t.width))}return e.minimalReveal||(s=Math.max(0,s-gi.HORIZONTAL_EXTRA_PX),r+=this._revealHorizontalRightPadding),"selections"===e.type&&r-s>t.width?null:{scrollLeft:this._computeMinimumScrolling(n,o,s,r),maxHorizontalOffset:r}}_computeMinimumScrolling(e,t,i,n,o,s){o=!!o,s=!!s;const r=(t|=0)-(e|=0);return(n|=0)-(i|=0)t?Math.max(0,n-r):e:i}}gi.HORIZONTAL_EXTRA_PX=30;var pi=i(57375),mi={};mi.styleTagTransform=S(),mi.setAttributes=w(),mi.insert=_().bind(null,"head"),mi.domAPI=f(),mi.insertStyleElement=C(),p()(pi.A,mi),pi.A&&pi.A.locals&&pi.A.locals;class fi extends Gt{constructor(e){super(),this._context=e;const t=this._context.configuration.options.get(146);this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options.get(146);return this._decorationsLeft=t.decorationsLeft,this._decorationsWidth=t.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){var t,i;const n=e.getDecorationsInViewport(),o=[];let s=0;for(let e=0,r=n.length;e',s=[];for(let e=t;e<=i;e++){const i=e-t,r=n[i].getDecorations();let a="";for(const e of r){let t='
    ';o[i]=r}this._renderResult=o}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}var wi=i(36493),yi={};yi.styleTagTransform=S(),yi.setAttributes=w(),yi.insert=_().bind(null,"head"),yi.domAPI=f(),yi.insertStyleElement=C(),p()(wi.A,yi),wi.A&&wi.A.locals&&wi.A.locals;var Ci=i(10176);class ki{constructor(e,t,i,n){this._rgba8Brand=void 0,this.r=ki._clamp(e),this.g=ki._clamp(t),this.b=ki._clamp(i),this.a=ki._clamp(n)}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}static _clamp(e){return e<0?0:e>255?255:0|e}}ki.Empty=new ki(0,0,0,0);class Si extends h.jG{static getInstance(){return this._INSTANCE||(this._INSTANCE=(0,h.lC)(new Si)),this._INSTANCE}constructor(){super(),this._onDidChange=new c.vl,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(tt.dG.onDidChange((e=>{e.changedColorMap&&this._updateColorMap()})))}_updateColorMap(){const e=tt.dG.getColorMap();if(!e)return this._colors=[ki.Empty],void(this._backgroundIsLight=!0);this._colors=[ki.Empty];for(let t=1;t=.5,this._onDidChange.fire(void 0)}getColor(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]}backgroundIsLight(){return this._backgroundIsLight}}Si._INSTANCE=null;var xi=i(11608),Li=i(70559);const Di=(()=>{const e=[];for(let t=32;t<=126;t++)e.push(t);return e.push(65533),e})();var Ei=i(37512);class Ii{constructor(e,t){this.scale=t,this._minimapCharRendererBrand=void 0,this.charDataNormal=Ii.soften(e,.8),this.charDataLight=Ii.soften(e,50/60)}static soften(e,t){const i=new Uint8ClampedArray(e.length);for(let n=0,o=e.length;ne.width||i+g>e.height)return void console.warn("bad render request outside image data");const p=d?this.charDataLight:this.charDataNormal,m=((e,t)=>(e-=32)<0||e>96?t<=2?(e+96)%96:95:e)(n,l),f=4*e.width,v=r.r,_=r.g,b=r.b,w=o.r-v,y=o.g-_,C=o.b-b,k=Math.max(s,a),S=e.data;let x=m*h*u,L=i*f+4*t;for(let e=0;ee.width||i+c>e.height)return void console.warn("bad render request outside image data");const h=4*e.width,u=o/255*.5,g=s.r,p=s.g,m=s.b,f=g+(n.r-g)*u,v=p+(n.g-p)*u,_=m+(n.b-m)*u,b=Math.max(o,r),w=e.data;let y=i*h+4*t;for(let e=0;e{const t=new Uint8ClampedArray(e.length/2);for(let i=0;i>1]=Mi[e[i]]<<4|15&Mi[e[i+1]];return t},Ti={1:(0,Ni.P)((()=>Ai("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792"))),2:(0,Ni.P)((()=>Ai("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")))};class Ri{static create(e,t){if(this.lastCreated&&e===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;let i;return i=Ti[e]?new Ii(Ti[e](),e):Ri.createFromSampleData(Ri.createSampleData(t).data,e),this.lastFontFamily=t,this.lastCreated=i,i}static createSampleData(e){const t=document.createElement("canvas"),i=t.getContext("2d");t.style.height="16px",t.height=16,t.width=960,t.style.width="960px",i.fillStyle="#ffffff",i.font=`bold 16px ${e}`,i.textBaseline="middle";let n=0;for(const e of Di)i.fillText(String.fromCharCode(e),n,8),n+=10;return i.getImageData(0,0,960,16)}static createFromSampleData(e,t){if(61440!==e.length)throw new Error("Unexpected source in MinimapCharRenderer");const i=Ri._downsample(e,t);return new Ii(i,t)}static _downsampleChar(e,t,i,n,o){const s=1*o,r=2*o;let a=n,l=0;for(let n=0;n0){const e=255/a;for(let t=0;tRi.create(this.fontScale,a.fontFamily))),this.defaultBackgroundColor=i.getColor(2),this.backgroundColor=Fi._getMinimapBackground(t,this.defaultBackgroundColor),this.foregroundAlpha=Fi._getMinimapForegroundOpacity(t)}static _getMinimapBackground(e,t){const i=e.getColor(Li.ILr);return i?new ki(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}static _getMinimapForegroundOpacity(e){const t=e.getColor(Li.K1Z);return t?ki._clamp(Math.round(255*t.rgba.a)):255}static _getSectionHeaderColor(e,t){const i=e.getColor(Li.By2);return i?new ki(i.rgba.r,i.rgba.g,i.rgba.b,Math.round(255*i.rgba.a)):t}equals(e){return this.renderMinimap===e.renderMinimap&&this.size===e.size&&this.minimapHeightIsEditorHeight===e.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.paddingTop===e.paddingTop&&this.paddingBottom===e.paddingBottom&&this.showSlider===e.showSlider&&this.autohide===e.autohide&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight&&this.isSampling===e.isSampling&&this.editorHeight===e.editorHeight&&this.fontScale===e.fontScale&&this.minimapLineHeight===e.minimapLineHeight&&this.minimapCharWidth===e.minimapCharWidth&&this.sectionHeaderFontSize===e.sectionHeaderFontSize&&this.sectionHeaderLetterSpacing===e.sectionHeaderLetterSpacing&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(e.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(e.backgroundColor)&&this.foregroundAlpha===e.foregroundAlpha}}class Bi{constructor(e,t,i,n,o,s,r,a,l){this.scrollTop=e,this.scrollHeight=t,this.sliderNeeded=i,this._computedSliderRatio=n,this.sliderTop=o,this.sliderHeight=s,this.topPaddingLineCount=r,this.startLineNumber=a,this.endLineNumber=l}getDesiredScrollTopFromDelta(e){return Math.round(this.scrollTop+e/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)}intersectWithViewport(e){const t=Math.max(this.startLineNumber,e.startLineNumber),i=Math.min(this.endLineNumber,e.endLineNumber);return t>i?null:[t,i]}getYForLineNumber(e,t){return+(e-this.startLineNumber+this.topPaddingLineCount)*t}static create(e,t,i,n,o,s,r,a,l,d,c){const h=e.pixelRatio,u=e.minimapLineHeight,g=Math.floor(e.canvasInnerHeight/u),p=e.lineHeight;if(e.minimapHeightIsEditorHeight){let t=a*e.lineHeight+e.paddingTop+e.paddingBottom;e.scrollBeyondLastLine&&(t+=Math.max(0,o-e.lineHeight-e.paddingBottom));const i=Math.max(1,Math.floor(o*o/t)),n=Math.max(0,e.minimapHeight-i),s=n/(d-o),c=l*s,h=n>0,u=Math.floor(e.canvasInnerHeight/e.minimapLineHeight),g=Math.floor(e.paddingTop/e.lineHeight);return new Bi(l,d,h,s,c,i,g,1,Math.min(r,u))}let m;if(s&&i!==r){const e=i-t+1;m=Math.floor(e*u/h)}else{const e=o/p;m=Math.floor(e*u/h)}const f=Math.floor(e.paddingTop/p);let v,_=Math.floor(e.paddingBottom/p);if(e.scrollBeyondLastLine){const e=o/p;_=Math.max(_,e-1)}v=_>0?(f+r+_-o/p-1)*u/h:Math.max(0,(f+r)*u/h-m),v=Math.min(e.minimapHeight-m,v);const b=v/(d-o),w=l*b;if(g>=f+r+_)return new Bi(l,d,v>0,b,w,m,f,1,r);{let i,o;i=t>1?t+f:Math.max(1,l/p);let s=Math.max(1,Math.floor(i-w*h/u));sl&&(s=Math.min(s,c.startLineNumber),o=Math.max(o,c.topPaddingLineCount)),c.scrollTop=e.paddingTop?(t-s+o+v)*u/h:l/e.paddingTop*(o+v)*u/h,new Bi(l,d,!0,b,_,m,o,s,a)}}}class Wi{constructor(e){this.dy=e}onContentChanged(){this.dy=-1}onTokensChanged(){this.dy=-1}}Wi.INVALID=new Wi(-1);class Hi{constructor(e,t,i){this.renderedLayout=e,this._imageData=t,this._renderedLines=new mt((()=>Wi.INVALID)),this._renderedLines._set(e.startLineNumber,i)}linesEquals(e){if(!this.scrollEquals(e))return!1;const t=this._renderedLines._get().lines;for(let e=0,i=t.length;e1){for(let t=0,i=n-1;t0&&this.minimapLines[i-1]>=e;)i--;let n=this.modelLineToMinimapLine(t)-1;for(;n+1t)return null}return[i+1,n+1]}decorationLineRangeToMinimapLineRange(e,t){let i=this.modelLineToMinimapLine(e),n=this.modelLineToMinimapLine(t);return e!==t&&n===i&&(n===this.minimapLines.length?i>1&&i--:n++),[i,n]}onLinesDeleted(e){const t=e.toLineNumber-e.fromLineNumber+1;let i=this.minimapLines.length,n=0;for(let o=this.minimapLines.length-1;o>=0&&!(this.minimapLines[o]=0&&!(this.minimapLines[i]0,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,viewportStartLineNumber:t,viewportEndLineNumber:i,viewportStartLineNumberVerticalOffset:e.getVerticalOffsetForLineNumber(t),scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight};this._actual.render(n)}_recreateLineSampling(){this._minimapSelections=null;const e=Boolean(this._samplingState),[t,i]=zi.compute(this.options,this._context.viewModel.getLineCount(),this._samplingState);if(this._samplingState=t,e&&this._samplingState)for(const e of i)switch(e.type){case"deleted":this._actual.onLinesDeleted(e.deleteFromLineNumber,e.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(e.insertFromLineNumber,e.insertToLineNumber);break;case"flush":this._actual.onFlushed()}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.viewModel.getLineCount()}getRealLineCount(){return this._context.viewModel.getLineCount()}getLineContent(e){return this._samplingState?this._context.viewModel.getLineContent(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineContent(e)}getLineMaxColumn(e){return this._samplingState?this._context.viewModel.getLineMaxColumn(this._samplingState.minimapLines[e-1]):this._context.viewModel.getLineMaxColumn(e)}getMinimapLinesRenderingData(e,t,i){if(this._samplingState){const n=[];for(let o=0,s=t-e+1;o{var t;return!(null===(t=e.options.minimap)||void 0===t?void 0:t.sectionHeaderStyle)}));if(this._samplingState){const e=[];for(const t of i){if(!t.options.minimap)continue;const i=t.range,n=this._samplingState.modelLineToMinimapLine(i.startLineNumber),o=this._samplingState.modelLineToMinimapLine(i.endLineNumber);e.push(new xi.vo(new re.Q(n,i.startColumn,o,i.endColumn),t.options))}return e}return i}getSectionHeaderDecorationsInViewport(e,t){const i=this.options.minimapLineHeight,n=this.options.sectionHeaderFontSize/i;return e=Math.floor(Math.max(1,e-n)),this._getMinimapDecorationsInViewport(e,t).filter((e=>{var t;return!!(null===(t=e.options.minimap)||void 0===t?void 0:t.sectionHeaderStyle)}))}_getMinimapDecorationsInViewport(e,t){let i;if(this._samplingState){const n=this._samplingState.minimapLines[e-1],o=this._samplingState.minimapLines[t-1];i=new re.Q(n,1,o,this._context.viewModel.getLineMaxColumn(o))}else i=new re.Q(e,1,t,this._context.viewModel.getLineMaxColumn(t));return this._context.viewModel.getMinimapDecorationsInRange(i)}getSectionHeaderText(e,t){var i;const n=null===(i=e.options.minimap)||void 0===i?void 0:i.sectionHeaderText;if(!n)return null;const o=this._sectionHeaderCache.get(n);if(o)return o;const s=t(n);return this._sectionHeaderCache.set(n,s),s}getOptions(){return this._context.viewModel.model.getOptions()}revealLineNumber(e){this._samplingState&&(e=this._samplingState.minimapLines[e-1]),this._context.viewModel.revealRange("mouse",!1,new re.Q(e,1,e,1),1,0)}setScrollTop(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e},1)}}class Ui extends h.jG{constructor(e,t){super(),this._renderDecorations=!1,this._gestureInProgress=!1,this._theme=e,this._model=t,this._lastRenderData=null,this._buffers=null,this._selectionColor=this._theme.getColor(Li.yr0),this._domNode=(0,Y.Z)(document.createElement("div")),ie.write(this._domNode,9),this._domNode.setClassName(this._getMinimapDomNodeClassName()),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._shadow=(0,Y.Z)(document.createElement("div")),this._shadow.setClassName("minimap-shadow-hidden"),this._domNode.appendChild(this._shadow),this._canvas=(0,Y.Z)(document.createElement("canvas")),this._canvas.setPosition("absolute"),this._canvas.setLeft(0),this._domNode.appendChild(this._canvas),this._decorationsCanvas=(0,Y.Z)(document.createElement("canvas")),this._decorationsCanvas.setPosition("absolute"),this._decorationsCanvas.setClassName("minimap-decorations-layer"),this._decorationsCanvas.setLeft(0),this._domNode.appendChild(this._decorationsCanvas),this._slider=(0,Y.Z)(document.createElement("div")),this._slider.setPosition("absolute"),this._slider.setClassName("minimap-slider"),this._slider.setLayerHinting(!0),this._slider.setContain("strict"),this._domNode.appendChild(this._slider),this._sliderHorizontal=(0,Y.Z)(document.createElement("div")),this._sliderHorizontal.setPosition("absolute"),this._sliderHorizontal.setClassName("minimap-slider-horizontal"),this._slider.appendChild(this._sliderHorizontal),this._applyLayout(),this._pointerDownListener=l.b2(this._domNode.domNode,l.Bx.POINTER_DOWN,(e=>{if(e.preventDefault(),0===this._model.options.renderMinimap)return;if(!this._lastRenderData)return;if("proportional"!==this._model.options.size){if(0===e.button&&this._lastRenderData){const t=l.BK(this._slider.domNode),i=t.top+t.height/2;this._startSliderDragging(e,i,this._lastRenderData.renderedLayout)}return}const t=this._model.options.minimapLineHeight,i=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*e.offsetY;let n=Math.floor(i/t)+this._lastRenderData.renderedLayout.startLineNumber-this._lastRenderData.renderedLayout.topPaddingLineCount;n=Math.min(n,this._model.getLineCount()),this._model.revealLineNumber(n)})),this._sliderPointerMoveMonitor=new Ci._,this._sliderPointerDownListener=l.b2(this._slider.domNode,l.Bx.POINTER_DOWN,(e=>{e.preventDefault(),e.stopPropagation(),0===e.button&&this._lastRenderData&&this._startSliderDragging(e,e.pageY,this._lastRenderData.renderedLayout)})),this._gestureDisposable=ke.q.addTarget(this._domNode.domNode),this._sliderTouchStartListener=l.ko(this._domNode.domNode,ke.B.Start,(e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(e))}),{passive:!1}),this._sliderTouchMoveListener=l.ko(this._domNode.domNode,ke.B.Change,(e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(e)}),{passive:!1}),this._sliderTouchEndListener=l.b2(this._domNode.domNode,ke.B.End,(e=>{e.preventDefault(),e.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)}))}_startSliderDragging(e,t,i){if(!(e.target&&e.target instanceof Element))return;const n=e.pageX;this._slider.toggleClassName("active",!0);const o=(e,o)=>{const s=l.BK(this._domNode.domNode),r=Math.min(Math.abs(o-n),Math.abs(o-s.left),Math.abs(o-s.left-s.width));if(M.uF&&r>140)return void this._model.setScrollTop(i.scrollTop);const a=e-t;this._model.setScrollTop(i.getDesiredScrollTopFromDelta(a))};e.pageY!==t&&o(e.pageY,n),this._sliderPointerMoveMonitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>o(e.pageY,e.pageX)),(()=>{this._slider.toggleClassName("active",!1)}))}scrollDueToTouchEvent(e){const t=this._domNode.domNode.getBoundingClientRect().top,i=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._model.setScrollTop(i)}dispose(){this._pointerDownListener.dispose(),this._sliderPointerMoveMonitor.dispose(),this._sliderPointerDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){const e=["minimap"];return"always"===this._model.options.showSlider?e.push("slider-always"):e.push("slider-mouseover"),this._model.options.autohide&&e.push("autohide"),e.join(" ")}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new Vi(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(e,t){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e,t)}onLinesDeleted(e,t){var i;return null===(i=this._lastRenderData)||void 0===i||i.onLinesDeleted(e,t),!0}onLinesInserted(e,t){var i;return null===(i=this._lastRenderData)||void 0===i||i.onLinesInserted(e,t),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(Li.yr0),this._renderDecorations=!0,!0}onTokensChanged(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(e){if(0===this._model.options.renderMinimap)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");const t=Bi.create(this._model.options,e.viewportStartLineNumber,e.viewportEndLineNumber,e.viewportStartLineNumberVerticalOffset,e.viewportHeight,e.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(t.sliderNeeded?"block":"none"),this._slider.setTop(t.sliderTop),this._slider.setHeight(t.sliderHeight),this._sliderHorizontal.setLeft(0),this._sliderHorizontal.setWidth(this._model.options.minimapWidth),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(t.sliderHeight),this.renderDecorations(t),this._lastRenderData=this.renderLines(t)}renderDecorations(e){if(this._renderDecorations){this._renderDecorations=!1;const t=this._model.getSelections();t.sort(re.Q.compareRangesUsingStarts);const i=this._model.getMinimapDecorationsInViewport(e.startLineNumber,e.endLineNumber);i.sort(((e,t)=>(e.options.zIndex||0)-(t.options.zIndex||0)));const{canvasInnerWidth:n,canvasInnerHeight:o}=this._model.options,s=this._model.options.minimapLineHeight,r=this._model.options.minimapCharWidth,a=this._model.getOptions().tabSize,l=this._decorationsCanvas.domNode.getContext("2d");l.clearRect(0,0,n,o);const d=new $i(e.startLineNumber,e.endLineNumber,!1);this._renderSelectionLineHighlights(l,t,d,e,s),this._renderDecorationsLineHighlights(l,i,d,e,s);const c=new $i(e.startLineNumber,e.endLineNumber,null);this._renderSelectionsHighlights(l,t,c,e,s,a,r,n),this._renderDecorationsHighlights(l,i,c,e,s,a,r,n),this._renderSectionHeaders(e)}}_renderSelectionLineHighlights(e,t,i,n,o){if(!this._selectionColor||this._selectionColor.isTransparent())return;e.fillStyle=this._selectionColor.transparent(.5).toString();let s=0,r=0;for(const a of t){const t=n.intersectWithViewport(a);if(!t)continue;const[l,d]=t;for(let e=l;e<=d;e++)i.set(e,!0);const c=n.getYForLineNumber(l,o),h=n.getYForLineNumber(d,o);r>=c||(r>s&&e.fillRect(W.xq,s,e.canvas.width,r-s),s=c),r=h}r>s&&e.fillRect(W.xq,s,e.canvas.width,r-s)}_renderDecorationsLineHighlights(e,t,i,n,o){const s=new Map;for(let r=t.length-1;r>=0;r--){const a=t[r],l=a.options.minimap;if(!l||1!==l.position)continue;const d=n.intersectWithViewport(a.range);if(!d)continue;const[c,h]=d,u=l.getColor(this._theme.value);if(!u||u.isTransparent())continue;let g=s.get(u.toString());g||(g=u.transparent(.5).toString(),s.set(u.toString(),g)),e.fillStyle=g;for(let t=c;t<=h;t++){if(i.has(t))continue;i.set(t,!0);const s=n.getYForLineNumber(c,o);e.fillRect(W.xq,s,e.canvas.width,o)}}}_renderSelectionsHighlights(e,t,i,n,o,s,r,a){if(this._selectionColor&&!this._selectionColor.isTransparent())for(const l of t){const t=n.intersectWithViewport(l);if(!t)continue;const[d,c]=t;for(let t=d;t<=c;t++)this.renderDecorationOnLine(e,i,l,this._selectionColor,n,t,o,o,s,r,a)}}_renderDecorationsHighlights(e,t,i,n,o,s,r,a){for(const l of t){const t=l.options.minimap;if(!t)continue;const d=n.intersectWithViewport(l.range);if(!d)continue;const[c,h]=d,u=t.getColor(this._theme.value);if(u&&!u.isTransparent())for(let d=c;d<=h;d++)switch(t.position){case 1:this.renderDecorationOnLine(e,i,l.range,u,n,d,o,o,s,r,a);continue;case 2:{const t=n.getYForLineNumber(d,o),i=2;this.renderDecoration(e,u,i,t,2,o);continue}}}}renderDecorationOnLine(e,t,i,n,o,s,r,a,l,d,c){const h=o.getYForLineNumber(s,a);if(h+r<0||h>this._model.options.canvasInnerHeight)return;const{startLineNumber:u,endLineNumber:g}=i,p=u===s?i.startColumn:1,m=g===s?i.endColumn:this._model.getLineMaxColumn(s),f=this.getXOffsetForPosition(t,s,p,l,d,c),v=this.getXOffsetForPosition(t,s,m,l,d,c);this.renderDecoration(e,n,f,h,v-f,r)}getXOffsetForPosition(e,t,i,n,o,s){if(1===i)return W.xq;if((i-1)*o>=s)return s;let r=e.get(t);if(!r){const i=this._model.getLineContent(t);r=[W.xq];let a=W.xq;for(let e=1;e=s){r[e]=s;break}r[e]=l,a=l}e.set(t,r)}return i-1e.range.startLineNumber-t.range.startLineNumber));const p=Ui._fitSectionHeader.bind(null,u,r-W.xq);for(const o of g){const a=e.getYForLineNumber(o.range.startLineNumber,i)+n,d=a-n,h=d+2,g=this._model.getSectionHeaderText(o,p);Ui._renderSectionLabel(u,g,2===(null===(t=o.options.minimap)||void 0===t?void 0:t.sectionHeaderStyle),l,c,r,d,s,a,h)}}static _fitSectionHeader(e,t,i){if(!i)return i;const n=e.measureText(i).width,o=e.measureText("…").width;if(n<=t||n<=o)return i;const s=i.length,r=n/i.length,a=Math.floor((t-o)/r)-1;let l=Math.ceil(a/2);for(;l>0&&/\s/.test(i[l-1]);)--l;return i.substring(0,l)+"…"+i.substring(s-(a-l))}static _renderSectionLabel(e,t,i,n,o,s,r,a,l,d){t&&(e.fillStyle=n,e.fillRect(0,r,s,a),e.fillStyle=o,e.fillText(t,W.xq,l)),i&&(e.beginPath(),e.moveTo(0,d),e.lineTo(s,d),e.closePath(),e.stroke())}renderLines(e){const t=e.startLineNumber,i=e.endLineNumber,n=this._model.options.minimapLineHeight;if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){const t=this._lastRenderData._get();return new Hi(e,t.imageData,t.lines)}const o=this._getBuffer();if(!o)return null;const[s,r,a]=Ui._renderUntouchedLines(o,e.topPaddingLineCount,t,i,n,this._lastRenderData),l=this._model.getMinimapLinesRenderingData(t,i,a),d=this._model.getOptions().tabSize,c=this._model.options.defaultBackgroundColor,h=this._model.options.backgroundColor,u=this._model.options.foregroundAlpha,g=this._model.tokensColorTracker,p=g.backgroundIsLight(),m=this._model.options.renderMinimap,f=this._model.options.charRenderer(),v=this._model.options.fontScale,_=this._model.options.minimapCharWidth,b=(1===m?2:3)*v,w=n>b?Math.floor((n-b)/2):0,y=h.a/255,C=new ki(Math.round((h.r-c.r)*y+c.r),Math.round((h.g-c.g)*y+c.g),Math.round((h.b-c.b)*y+c.b),255);let k=e.topPaddingLineCount*n;const S=[];for(let e=0,s=i-t+1;e=0&&nv)return;const r=m.charCodeAt(w);if(9===r){const e=h-(w+y)%h;y+=e-1,b+=e*s}else if(32===r)b+=s;else{const h=He.ne(r)?2:1;for(let u=0;uv)return}}}}}class $i{constructor(e,t,i){this._startLineNumber=e,this._endLineNumber=t,this._defaultValue=i,this._values=[];for(let e=0,t=this._endLineNumber-this._startLineNumber+1;ethis._endLineNumber||(this._values[e-this._startLineNumber]=t)}get(e){return ethis._endLineNumber?this._defaultValue:this._values[e-this._startLineNumber]}}var Ki=i(80213),qi={};qi.styleTagTransform=S(),qi.setAttributes=w(),qi.insert=_().bind(null,"head"),qi.domAPI=f(),qi.insertStyleElement=C(),p()(Ki.A,qi),Ki.A&&Ki.A.locals&&Ki.A.locals;class Gi extends te{constructor(e,t){super(e),this._viewDomNode=t;const i=this._context.configuration.options.get(146);this._widgets={},this._verticalScrollbarWidth=i.verticalScrollbarWidth,this._minimapWidth=i.minimap.minimapWidth,this._horizontalScrollbarHeight=i.horizontalScrollbarHeight,this._editorHeight=i.height,this._editorWidth=i.width,this._viewDomNodeRect={top:0,left:0,width:0,height:0},this._domNode=(0,Y.Z)(document.createElement("div")),ie.write(this._domNode,4),this._domNode.setClassName("overlayWidgets"),this.overflowingOverlayWidgetsDomNode=(0,Y.Z)(document.createElement("div")),ie.write(this.overflowingOverlayWidgetsDomNode,5),this.overflowingOverlayWidgetsDomNode.setClassName("overflowingOverlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options.get(146);return this._verticalScrollbarWidth=t.verticalScrollbarWidth,this._minimapWidth=t.minimap.minimapWidth,this._horizontalScrollbarHeight=t.horizontalScrollbarHeight,this._editorHeight=t.height,this._editorWidth=t.width,!0}addWidget(e){const t=(0,Y.Z)(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),e.allowEditorOverflow?this.overflowingOverlayWidgetsDomNode.appendChild(t):this._domNode.appendChild(t),this.setShouldRender(),this._updateMaxMinWidth()}setWidgetPosition(e,t){const i=this._widgets[e.getId()],n=t?t.preference:null,o=null==t?void 0:t.stackOridinal;return i.preference===n&&i.stack===o?(this._updateMaxMinWidth(),!1):(i.preference=n,i.stack=o,this.setShouldRender(),this._updateMaxMinWidth(),!0)}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t].domNode.domNode;delete this._widgets[t],e.remove(),this.setShouldRender(),this._updateMaxMinWidth()}}_updateMaxMinWidth(){var e,t;let i=0;const n=Object.keys(this._widgets);for(let o=0,s=n.length;o0));t.sort(((e,t)=>(this._widgets[e].stack||0)-(this._widgets[t].stack||0)));for(let e=0,n=t.length;e=3){const t=Math.floor(n/3),i=Math.floor(n/3),o=n-t-i,s=e+t;return[[0,e,s,e,e+t+o,e,s,e],[0,t,o,t+o,i,t+o+i,o+i,t+o+i]]}if(2===i){const t=Math.floor(n/2),i=n-t;return[[0,e,e,e,e+t,e,e,e],[0,t,t,t,i,t+i,t+i,t+i]]}return[[0,e,e,e,e,e,e,e],[0,n,n,n,n,n,n,n]]}equals(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColorSingle===e.cursorColorSingle&&this.cursorColorPrimary===e.cursorColorPrimary&&this.cursorColorSecondary===e.cursorColorSecondary&&this.themeType===e.themeType&&it.Q1.equals(this.backgroundColor,e.backgroundColor)&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight}}class Zi extends te{constructor(e){super(e),this._actualShouldRender=0,this._renderedDecorations=[],this._renderedCursorPositions=[],this._domNode=(0,Y.Z)(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=tt.dG.onDidChange((e=>{e.changedColorMap&&this._updateSettings(!0)})),this._cursorPositions=[{position:new se.y(1,1),color:this._settings.cursorColorSingle}]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(e){const t=new Qi(this._context.configuration,this._context.theme);return!(this._settings&&this._settings.equals(t)||(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),0))}_markRenderingIsNeeded(){return this._actualShouldRender=2,!0}_markRenderingIsMaybeNeeded(){return this._actualShouldRender=1,!0}onConfigurationChanged(e){return!!this._updateSettings(!1)&&this._markRenderingIsNeeded()}onCursorStateChanged(e){this._cursorPositions=[];for(let t=0,i=e.selections.length;t1&&(n=0===t?this._settings.cursorColorPrimary:this._settings.cursorColorSecondary),this._cursorPositions.push({position:e.selections[t].getPosition(),color:n})}return this._cursorPositions.sort(((e,t)=>se.y.compare(e.position,t.position))),this._markRenderingIsMaybeNeeded()}onDecorationsChanged(e){return!!e.affectsOverviewRuler&&this._markRenderingIsMaybeNeeded()}onFlushed(e){return this._markRenderingIsNeeded()}onScrollChanged(e){return!!e.scrollHeightChanged&&this._markRenderingIsNeeded()}onZonesChanged(e){return this._markRenderingIsNeeded()}onThemeChanged(e){return!!this._updateSettings(!1)&&this._markRenderingIsNeeded()}getDomNode(){return this._domNode.domNode}prepareRender(e){}render(e){this._render(),this._actualShouldRender=0}_render(){const e=this._settings.backgroundColor;if(0===this._settings.overviewRulerLanes)return this._domNode.setBackgroundColor(e?it.Q1.Format.CSS.formatHexA(e):""),void this._domNode.setDisplay("none");const t=this._context.viewModel.getAllOverviewRulerDecorations(this._context.theme);if(t.sort(xi.Uv.compareByRenderingProps),1!==this._actualShouldRender||xi.Uv.equalsArr(this._renderedDecorations,t)||(this._actualShouldRender=2),1!==this._actualShouldRender||(0,I.aI)(this._renderedCursorPositions,this._cursorPositions,((e,t)=>e.position.lineNumber===t.position.lineNumber&&e.color===t.color))||(this._actualShouldRender=2),1===this._actualShouldRender)return;this._renderedDecorations=t,this._renderedCursorPositions=this._cursorPositions,this._domNode.setDisplay("block");const i=this._settings.canvasWidth,n=this._settings.canvasHeight,o=this._settings.lineHeight,s=this._context.viewLayout,r=n/this._context.viewLayout.getScrollHeight(),a=6*this._settings.pixelRatio|0,l=a/2|0,d=this._domNode.domNode.getContext("2d");e?e.isOpaque()?(d.fillStyle=it.Q1.Format.CSS.formatHexA(e),d.fillRect(0,0,i,n)):(d.clearRect(0,0,i,n),d.fillStyle=it.Q1.Format.CSS.formatHexA(e),d.fillRect(0,0,i,n)):d.clearRect(0,0,i,n);const c=this._settings.x,h=this._settings.w;for(const e of t){const t=e.color,i=e.data;d.fillStyle=t;let u=0,g=0,p=0;for(let e=0,t=i.length/3;en&&(e=n-l),v=e-l,_=e+l}v>p+1||t!==u?(0!==e&&d.fillRect(c[u],g,h[u],p-g),u=t,g=v,p=_):_>p&&(p=_)}d.fillRect(c[u],g,h[u],p-g)}if(!this._settings.hideCursor){const e=2*this._settings.pixelRatio|0,t=e/2|0,i=this._settings.x[7],o=this._settings.w[7];let a=-100,l=-100,c=null;for(let h=0,u=this._cursorPositions.length;hn&&(p=n-t);const m=p-t,f=m+e;m>l+1||u!==c?(0!==h&&c&&d.fillRect(i,a,o,l-a),a=m,l=f):f>l&&(l=f),c=u,d.fillStyle=u}c&&d.fillRect(i,a,o,l-a)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(d.beginPath(),d.lineWidth=1,d.strokeStyle=this._settings.borderColor,d.moveTo(0,0),d.lineTo(0,n),d.stroke(),d.moveTo(0,0),d.lineTo(i,0),d.stroke())}}var Yi=i(96803);class Xi extends ee{constructor(e,t){super(),this._context=e;const i=this._context.configuration.options;this._domNode=(0,Y.Z)(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new Yi.rW((e=>this._context.viewLayout.getVerticalOffsetForLineNumber(e))),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(i.get(67)),this._zoneManager.setPixelRatio(i.get(144)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return e.hasChanged(67)&&(this._zoneManager.setLineHeight(t.get(67)),this._render()),e.hasChanged(144)&&(this._zoneManager.setPixelRatio(t.get(144)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);let t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,t=this._zoneManager.setDOMHeight(e.height)||t,t&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(e){this._zoneManager.setZones(e),this._render()}_render(){if(0===this._zoneManager.getOuterHeight())return!1;const e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),n=this._zoneManager.getId2Color(),o=this._domNode.domNode.getContext("2d");return o.clearRect(0,0,e,t),i.length>0&&this._renderOneLane(o,i,n,e),!0}_renderOneLane(e,t,i,n){let o=0,s=0,r=0;for(const a of t){const t=a.colorId,l=a.from,d=a.to;t!==o?(e.fillRect(0,s,n,r-s),o=t,e.fillStyle=i[o],s=l,r=d):r>=l?r=Math.max(r,d):(e.fillRect(0,s,n,r-s),s=l,r=d)}e.fillRect(0,s,n,r-s)}}var Ji=i(81637),en={};en.styleTagTransform=S(),en.setAttributes=w(),en.insert=_().bind(null,"head"),en.domAPI=f(),en.insertStyleElement=C(),p()(Ji.A,en),Ji.A&&Ji.A.locals&&Ji.A.locals;class tn extends te{constructor(e){super(e),this.domNode=(0,Y.Z)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];const t=this._context.configuration.options;this._rulers=t.get(103),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._rulers=t.get(103),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onScrollChanged(e){return e.scrollHeightChanged}prepareRender(e){}_ensureRulersCount(){const e=this._renderedRulers.length,t=this._rulers.length;if(e===t)return;if(e0;){const e=(0,Y.Z)(document.createElement("div"));e.setClassName("view-ruler"),e.setWidth(n),this.domNode.appendChild(e),this._renderedRulers.push(e),o--}return}let i=e-t;for(;i>0;){const e=this._renderedRulers.pop();this.domNode.removeChild(e),i--}}render(e){this._ensureRulersCount();for(let t=0,i=this._rulers.length;t0;return this._shouldShow!==e&&(this._shouldShow=e,!0)}getDomNode(){return this._domNode}_updateWidth(){const e=this._context.configuration.options.get(146);0===e.minimap.renderMinimap||e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?this._width=e.width:this._width=e.width-e.verticalScrollbarWidth}onConfigurationChanged(e){const t=this._context.configuration.options.get(104);return this._useShadows=t.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()}prepareRender(e){}render(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}var rn=i(48829),an={};an.styleTagTransform=S(),an.setAttributes=w(),an.insert=_().bind(null,"head"),an.domAPI=f(),an.insertStyleElement=C(),p()(rn.A,an),rn.A&&rn.A.locals&&rn.A.locals;class ln{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class dn{constructor(e,t){this.lineNumber=e,this.ranges=t}}function cn(e){return new ln(e)}function hn(e){return new dn(e.lineNumber,e.ranges.map(cn))}class un extends Ue{constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;const t=this._context.configuration.options;this._roundedSelection=t.get(102),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._roundedSelection=t.get(102),this._typicalHalfwidthCharacterWidth=t.get(50).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_visibleRangesHaveGaps(e){for(let t=0,i=e.length;t1)return!0;return!1}_enrichVisibleRangesWithStyle(e,t,i){const n=this._typicalHalfwidthCharacterWidth/4;let o=null,s=null;if(i&&i.length>0&&t.length>0){const n=t[0].lineNumber;if(n===e.startLineNumber)for(let e=0;!o&&e=0;e--)i[e].lineNumber===r&&(s=i[e].ranges[0]);o&&!o.startStyle&&(o=null),s&&!s.startStyle&&(s=null)}for(let e=0,i=t.length;e0){const i=t[e-1].ranges[0].left,o=t[e-1].ranges[0].left+t[e-1].ranges[0].width;gn(a-i)i&&(d.top=1),gn(l-o)'}_actualRenderOneSelection(e,t,i,n){if(0===n.length)return;const o=!!n[0].ranges[0].startStyle,s=n[0].lineNumber,r=n[n.length-1].lineNumber;for(let a=0,l=n.length;a1,r)}this._previousFrameVisibleRangesWithStyle=o,this._renderResult=t.map((([e,t])=>e+t))}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function gn(e){return e<0?-e:e}un.SELECTION_CLASS_NAME="selected-text",un.SELECTION_TOP_LEFT="top-left-radius",un.SELECTION_BOTTOM_LEFT="bottom-left-radius",un.SELECTION_TOP_RIGHT="top-right-radius",un.SELECTION_BOTTOM_RIGHT="bottom-right-radius",un.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",un.ROUNDED_PIECE_WIDTH=10,(0,$e.zy)(((e,t)=>{const i=e.getColor(Li.rm4);i&&!i.isTransparent()&&t.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${i}; }`)}));var pn,mn=i(2289),fn={};fn.styleTagTransform=S(),fn.setAttributes=w(),fn.insert=_().bind(null,"head"),fn.domAPI=f(),fn.insertStyleElement=C(),p()(mn.A,fn),mn.A&&mn.A.locals&&mn.A.locals;class vn{constructor(e,t,i,n,o,s,r){this.top=e,this.left=t,this.paddingLeft=i,this.width=n,this.height=o,this.textContent=s,this.textContentClassName=r}}!function(e){e[e.Single=0]="Single",e[e.MultiPrimary=1]="MultiPrimary",e[e.MultiSecondary=2]="MultiSecondary"}(pn||(pn={}));class _n{constructor(e,t){this._context=e;const i=this._context.configuration.options,n=i.get(50);this._cursorStyle=i.get(28),this._lineHeight=i.get(67),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(i.get(31),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=(0,Y.Z)(document.createElement("div")),this._domNode.setClassName(`cursor ${et}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),(0,D.M)(this._domNode,n),this._domNode.setDisplay("none"),this._position=new se.y(1,1),this._pluralityClass="",this.setPlurality(t),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}setPlurality(e){switch(e){default:case pn.Single:this._pluralityClass="";break;case pn.MultiPrimary:this._pluralityClass="cursor-primary";break;case pn.MultiSecondary:this._pluralityClass="cursor-secondary"}}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(e){const t=this._context.configuration.options,i=t.get(50);return this._cursorStyle=t.get(28),this._lineHeight=t.get(67),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(31),this._typicalHalfwidthCharacterWidth),(0,D.M)(this._domNode,i),!0}onCursorPositionChanged(e,t){return this._domNode.domNode.style.transitionProperty=t?"none":"",this._position=e,!0}_getGraphemeAwarePosition(){const{lineNumber:e,column:t}=this._position,i=this._context.viewModel.getLineContent(e),[n,o]=He.m(i,t-1);return[new se.y(e,n+1),i.substring(n,o)]}_prepareRender(e){let t="",i="";const[n,o]=this._getGraphemeAwarePosition();if(this._cursorStyle===W.m9.Line||this._cursorStyle===W.m9.LineThin){const s=e.visibleRangeForPosition(n);if(!s||s.outsideRenderedLine)return null;const r=l.zk(this._domNode.domNode);let a;this._cursorStyle===W.m9.Line?(a=l.vT(r,this._lineCursorWidth>0?this._lineCursorWidth:2),a>2&&(t=o,i=this._getTokenClassName(n))):a=l.vT(r,1);let d=s.left,c=0;a>=2&&d>=1&&(c=1,d-=c);const h=e.getVerticalOffsetForLineNumber(n.lineNumber)-e.bigNumbersDelta;return new vn(h,d,c,a,this._lineHeight,t,i)}const s=e.linesVisibleRangesForRange(new re.Q(n.lineNumber,n.column,n.lineNumber,n.column+o.length),!1);if(!s||0===s.length)return null;const r=s[0];if(r.outsideRenderedLine||0===r.ranges.length)return null;const a=r.ranges[0],d="\t"===o||a.width<1?this._typicalHalfwidthCharacterWidth:a.width;this._cursorStyle===W.m9.Block&&(t=o,i=this._getTokenClassName(n));let c=e.getVerticalOffsetForLineNumber(n.lineNumber)-e.bigNumbersDelta,h=this._lineHeight;return this._cursorStyle!==W.m9.Underline&&this._cursorStyle!==W.m9.UnderlineThin||(c+=this._lineHeight-2,h=2),new vn(c,a.left,0,d,h,t,i)}_getTokenClassName(e){const t=this._context.viewModel.getViewLineData(e.lineNumber),i=t.tokens.findTokenIndexAtOffset(e.column-1);return t.tokens.getClassName(i)}prepareRender(e){this._renderData=this._prepareRender(e)}render(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${this._pluralityClass} ${et} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setPaddingLeft(this._renderData.paddingLeft),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}class bn extends te{constructor(e){super(e);const t=this._context.configuration.options;this._readOnly=t.get(92),this._cursorBlinking=t.get(26),this._cursorStyle=t.get(28),this._cursorSmoothCaretAnimation=t.get(27),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new _n(this._context,pn.Single),this._secondaryCursors=[],this._renderData=[],this._domNode=(0,Y.Z)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new ri.pc,this._cursorFlatBlinkInterval=new l.Be,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(e){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(e){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(e){const t=this._context.configuration.options;this._readOnly=t.get(92),this._cursorBlinking=t.get(26),this._cursorStyle=t.get(28),this._cursorSmoothCaretAnimation=t.get(27),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let t=0,i=this._secondaryCursors.length;tt.length){const e=this._secondaryCursors.length-t.length;for(let t=0;t{for(let i=0,n=e.ranges.length;i{this._isVisible?this._hide():this._show()}),bn.BLINK_INTERVAL,(0,l.zk)(this._domNode.domNode)):this._startCursorBlinkAnimation.setIfNotSet((()=>{this._blinkingEnabled=!0,this._updateDomClassName()}),bn.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case W.m9.Line:e+=" cursor-line-style";break;case W.m9.Block:e+=" cursor-block-style";break;case W.m9.Underline:e+=" cursor-underline-style";break;case W.m9.LineThin:e+=" cursor-line-thin-style";break;case W.m9.BlockOutline:e+=" cursor-block-outline-style";break;case W.m9.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return"on"!==this._cursorSmoothCaretAnimation&&"explicit"!==this._cursorSmoothCaretAnimation||(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e{const i=[{class:".cursor",foreground:Ke.D0,background:Ke.kM},{class:".cursor-primary",foreground:Ke.sC,background:Ke.je},{class:".cursor-secondary",foreground:Ke.we,background:Ke.L0}];for(const n of i){const i=e.getColor(n.foreground);if(i){let o=e.getColor(n.background);o||(o=i.opposite()),t.addRule(`.monaco-editor .cursors-layer ${n.class} { background-color: ${i}; border-color: ${i}; color: ${o}; }`),(0,Rt.Bb)(e.type)&&t.addRule(`.monaco-editor .cursors-layer.has-selection ${n.class} { border-left: 1px solid ${o}; border-right: 1px solid ${o}; }`)}}}));const wn=()=>{throw new Error("Invalid change accessor")};class yn extends te{constructor(e){super(e);const t=this._context.configuration.options,i=t.get(146);this._lineHeight=t.get(67),this._contentWidth=i.contentWidth,this._contentLeft=i.contentLeft,this.domNode=(0,Y.Z)(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=(0,Y.Z)(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){const e=this._context.viewLayout.getWhitespaces(),t=new Map;for(const i of e)t.set(i.id,i);let i=!1;return this._context.viewModel.changeWhitespace((e=>{const n=Object.keys(this._zones);for(let o=0,s=n.length;o{const n={addZone:e=>(t=!0,this._addZone(i,e)),removeZone:e=>{e&&(t=this._removeZone(i,e)||t)},layoutZone:e=>{e&&(t=this._layoutZone(i,e)||t)}};!function(e,t){try{return e(t)}catch(e){(0,d.dz)(e)}}(e,n),n.addZone=wn,n.removeZone=wn,n.layoutZone=wn})),t}_addZone(e,t){const i=this._computeWhitespaceProps(t),n={whitespaceId:e.insertWhitespace(i.afterViewLineNumber,this._getZoneOrdinal(t),i.heightInPx,i.minWidthInPx),delegate:t,isInHiddenArea:i.isInHiddenArea,isVisible:!1,domNode:(0,Y.Z)(t.domNode),marginDomNode:t.marginDomNode?(0,Y.Z)(t.marginDomNode):null};return this._safeCallOnComputedHeight(n.delegate,i.heightInPx),n.domNode.setPosition("absolute"),n.domNode.domNode.style.width="100%",n.domNode.setDisplay("none"),n.domNode.setAttribute("monaco-view-zone",n.whitespaceId),this.domNode.appendChild(n.domNode),n.marginDomNode&&(n.marginDomNode.setPosition("absolute"),n.marginDomNode.domNode.style.width="100%",n.marginDomNode.setDisplay("none"),n.marginDomNode.setAttribute("monaco-view-zone",n.whitespaceId),this.marginDomNode.appendChild(n.marginDomNode)),this._zones[n.whitespaceId]=n,this.setShouldRender(),n.whitespaceId}_removeZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t];return delete this._zones[t],e.removeWhitespace(i.whitespaceId),i.domNode.removeAttribute("monaco-visible-view-zone"),i.domNode.removeAttribute("monaco-view-zone"),i.domNode.domNode.remove(),i.marginDomNode&&(i.marginDomNode.removeAttribute("monaco-visible-view-zone"),i.marginDomNode.removeAttribute("monaco-view-zone"),i.marginDomNode.domNode.remove()),this.setShouldRender(),!0}return!1}_layoutZone(e,t){if(this._zones.hasOwnProperty(t)){const i=this._zones[t],n=this._computeWhitespaceProps(i.delegate);return i.isInHiddenArea=n.isInHiddenArea,e.changeOneWhitespace(i.whitespaceId,n.afterViewLineNumber,n.heightInPx),this._safeCallOnComputedHeight(i.delegate,n.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(e){if(this._zones.hasOwnProperty(e)){const t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1}_heightInPixels(e){return"number"==typeof e.heightInPx?e.heightInPx:"number"==typeof e.heightInLines?this._lineHeight*e.heightInLines:this._lineHeight}_minWidthInPixels(e){return"number"==typeof e.minWidthInPx?e.minWidthInPx:0}_safeCallOnComputedHeight(e,t){if("function"==typeof e.onComputedHeight)try{e.onComputedHeight(t)}catch(e){(0,d.dz)(e)}}_safeCallOnDomNodeTop(e,t){if("function"==typeof e.onDomNodeTop)try{e.onDomNodeTop(t)}catch(e){(0,d.dz)(e)}}prepareRender(e){}render(e){const t=e.viewportData.whitespaceViewportData,i={};let n=!1;for(const e of t)this._zones[e.id].isInHiddenArea||(i[e.id]=e,n=!0);const o=Object.keys(this._zones);for(let t=0,n=o.length;tt)continue;const e=i.startLineNumber===t?i.startColumn:n.minColumn,o=i.endLineNumber===t?i.endColumn:n.maxColumn;e=k.endOffset&&(C++,k=i&&i[C]),9!==o&&32!==o)continue;if(h&&!w&&n<=_)continue;if(c&&n>=y&&n<=_&&32===o){const e=n-1>=0?r.charCodeAt(n-1):0,t=n+1=0?r.charCodeAt(n-1):0;if(32===o&&32!==e&&9!==e)continue}if(i&&(!k||k.startOffset>n||k.endOffset<=n))continue;const d=e.visibleRangeForPosition(new se.y(t,n+1));d&&(s?(S=Math.max(S,d.left),b+=9===o?this._renderArrow(u,m,d.left):``):b+=9===o?`
    ${v?String.fromCharCode(65515):String.fromCharCode(8594)}
    `:`
    ${String.fromCharCode(f)}
    `)}return s?(S=Math.round(S+m),``+b+""):b}_renderArrow(e,t,i){const n=e/2,o=i,s={x:0,y:t/7/2},r={x:.8*t,y:s.y},a={x:r.x-.2*r.x,y:r.y+.2*r.x},l={x:a.x+.1*r.x,y:a.y+.1*r.x},d={x:l.x+.35*r.x,y:l.y-.35*r.x};return``}render(e,t){if(!this._renderResult)return"";const i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}class Ln{constructor(e){const t=e.options,i=t.get(50),n=t.get(38);"off"===n?(this.renderWhitespace="none",this.renderWithSVG=!1):"svg"===n?(this.renderWhitespace=t.get(100),this.renderWithSVG=!0):(this.renderWhitespace=t.get(100),this.renderWithSVG=!1),this.spaceWidth=i.spaceWidth,this.middotWidth=i.middotWidth,this.wsmiddotWidth=i.wsmiddotWidth,this.canUseHalfwidthRightwardsArrow=i.canUseHalfwidthRightwardsArrow,this.lineHeight=t.get(67),this.stopRenderingLineAfter=t.get(118)}equals(e){return this.renderWhitespace===e.renderWhitespace&&this.renderWithSVG===e.renderWithSVG&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter}}class Dn{constructor(e,t,i,n){this.selections=e,this.startLineNumber=0|t.startLineNumber,this.endLineNumber=0|t.endLineNumber,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=0|t.bigNumbersDelta,this.lineHeight=0|t.lineHeight,this.whitespaceViewportData=i,this._model=n,this.visibleRange=new re.Q(t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}getViewLineRenderingData(e){return this._model.getViewportViewLineRenderingData(this.visibleRange,e)}getDecorationsInViewport(){return this._model.getDecorationsInViewport(this.visibleRange)}}class En{get type(){return this._theme.type}get value(){return this._theme}constructor(e){this._theme=e}update(e){this._theme=e}getColor(e){return this._theme.getColor(e)}}class In{constructor(e,t,i){this.configuration=e,this.theme=new En(t),this.viewModel=i,this.viewLayout=i.viewLayout}addEventHandler(e){this.viewModel.addViewEventHandler(e)}removeEventHandler(e){this.viewModel.removeViewEventHandler(e)}}let Nn=class extends ee{constructor(e,t,i,n,o,s,r){super(),this._instantiationService=r,this._shouldRecomputeGlyphMarginLanes=!1,this._selections=[new Le.L(1,1,1,1)],this._renderAnimationFrame=null;const a=new ut(t,n,o,e);this._context=new In(t,i,n),this._context.addEventHandler(this),this._viewParts=[],this._textAreaHandler=this._instantiationService.createInstance(dt,this._context,a,this._createTextAreaHandlerHelper()),this._viewParts.push(this._textAreaHandler),this._linesContent=(0,Y.Z)(document.createElement("div")),this._linesContent.setClassName("lines-content monaco-editor-background"),this._linesContent.setPosition("absolute"),this.domNode=(0,Y.Z)(document.createElement("div")),this.domNode.setClassName(this._getEditorClassName()),this.domNode.setAttribute("role","code"),this._overflowGuardContainer=(0,Y.Z)(document.createElement("div")),ie.write(this._overflowGuardContainer,3),this._overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new Vt(this._context,this._linesContent,this.domNode,this._overflowGuardContainer),this._viewParts.push(this._scrollbar),this._viewLines=new gi(this._context,this._linesContent),this._viewZones=new yn(this._context),this._viewParts.push(this._viewZones);const l=new Zi(this._context);this._viewParts.push(l);const d=new sn(this._context);this._viewParts.push(d);const c=new wt(this._context);this._viewParts.push(c),c.addDynamicOverlay(new Ot(this._context)),c.addDynamicOverlay(new un(this._context)),c.addDynamicOverlay(new oi(this._context)),c.addDynamicOverlay(new Ht(this._context)),c.addDynamicOverlay(new xn(this._context));const h=new yt(this._context);this._viewParts.push(h),h.addDynamicOverlay(new Ft(this._context)),h.addDynamicOverlay(new bi(this._context)),h.addDynamicOverlay(new fi(this._context)),h.addDynamicOverlay(new qe(this._context)),this._glyphMarginWidgets=new Qt(this._context),this._viewParts.push(this._glyphMarginWidgets);const u=new Ze(this._context);u.getDomNode().appendChild(this._viewZones.marginDomNode),u.getDomNode().appendChild(h.getDomNode()),u.getDomNode().appendChild(this._glyphMarginWidgets.domNode),this._viewParts.push(u),this._contentWidgets=new Lt(this._context,this.domNode),this._viewParts.push(this._contentWidgets),this._viewCursors=new bn(this._context),this._viewParts.push(this._viewCursors),this._overlayWidgets=new Gi(this._context,this.domNode),this._viewParts.push(this._overlayWidgets);const g=new tn(this._context);this._viewParts.push(g);const p=new xt(this._context);this._viewParts.push(p);const m=new ji(this._context);if(this._viewParts.push(m),l){const e=this._scrollbar.getOverviewRulerLayoutInfo();e.parent.insertBefore(l.getDomNode(),e.insertBefore)}this._linesContent.appendChild(c.getDomNode()),this._linesContent.appendChild(g.domNode),this._linesContent.appendChild(this._viewZones.domNode),this._linesContent.appendChild(this._viewLines.getDomNode()),this._linesContent.appendChild(this._contentWidgets.domNode),this._linesContent.appendChild(this._viewCursors.getDomNode()),this._overflowGuardContainer.appendChild(u.getDomNode()),this._overflowGuardContainer.appendChild(this._scrollbar.getDomNode()),this._overflowGuardContainer.appendChild(d.getDomNode()),this._overflowGuardContainer.appendChild(this._textAreaHandler.textArea),this._overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover),this._overflowGuardContainer.appendChild(this._overlayWidgets.getDomNode()),this._overflowGuardContainer.appendChild(m.getDomNode()),this._overflowGuardContainer.appendChild(p.domNode),this.domNode.appendChild(this._overflowGuardContainer),s?(s.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode.domNode),s.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode.domNode)):(this.domNode.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode),this.domNode.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode)),this._applyLayout(),this._pointerHandler=this._register(new Oe(this._context,a,this._createPointerHandlerHelper()))}_computeGlyphMarginLanes(){const e=this._context.viewModel.model,t=this._context.viewModel.glyphLanes;let i=[],n=0;i=i.concat(e.getAllMarginDecorations().map((e=>{var t,i,o;const s=null!==(i=null===(t=e.options.glyphMargin)||void 0===t?void 0:t.position)&&void 0!==i?i:Ut.ZS.Center;return n=Math.max(n,e.range.endLineNumber),{range:e.range,lane:s,persist:null===(o=e.options.glyphMargin)||void 0===o?void 0:o.persistLane}}))),i=i.concat(this._glyphMarginWidgets.getWidgets().map((t=>{const i=e.validateRange(t.preference.range);return n=Math.max(n,i.endLineNumber),{range:i,lane:t.preference.lane}}))),i.sort(((e,t)=>re.Q.compareRangesUsingStarts(e.range,t.range))),t.reset(n);for(const e of i)t.push(e.lane,e.range,e.persist);return t}_createPointerHandlerHelper(){return{viewDomNode:this.domNode.domNode,linesContentDomNode:this._linesContent.domNode,viewLinesDomNode:this._viewLines.getDomNode().domNode,focusTextArea:()=>{this.focus()},dispatchTextAreaEvent:e=>{this._textAreaHandler.textArea.domNode.dispatchEvent(e)},getLastRenderData:()=>{const e=this._viewCursors.getLastRenderData()||[],t=this._textAreaHandler.getLastRenderData();return new ue(e,t)},renderNow:()=>{this.render(!0,!1)},shouldSuppressMouseDownOnViewZone:e=>this._viewZones.shouldSuppressMouseDownOnViewZone(e),shouldSuppressMouseDownOnWidget:e=>this._contentWidgets.shouldSuppressMouseDownOnWidget(e),getPositionFromDOMInfo:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(e,t)),visibleRangeForPosition:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new se.y(e,t))),getLineWidth:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(e))}}_createTextAreaHandlerHelper(){return{visibleRangeForPosition:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(e))}}_applyLayout(){const e=this._context.configuration.options.get(146);this.domNode.setWidth(e.width),this.domNode.setHeight(e.height),this._overflowGuardContainer.setWidth(e.width),this._overflowGuardContainer.setHeight(e.height),this._linesContent.setWidth(16777216),this._linesContent.setHeight(16777216)}_getEditorClassName(){const e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(143)+" "+(0,$e.Pz)(this._context.theme.type)+e}handleEvents(e){super.handleEvents(e),this._scheduleRender()}onConfigurationChanged(e){return this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(e){return this._selections=e.selections,!1}onDecorationsChanged(e){return e.affectsGlyphMargin&&(this._shouldRecomputeGlyphMarginLanes=!0),!1}onFocusChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(e){return this._context.theme.update(e.theme),this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(const e of this._viewParts)e.dispose();super.dispose()}_scheduleRender(){if(this._store.isDisposed)throw new d.D7;if(null===this._renderAnimationFrame){const e=this._createCoordinatedRendering();this._renderAnimationFrame=An.INSTANCE.scheduleCoordinatedRendering({window:l.zk(this.domNode.domNode),prepareRenderText:()=>{if(this._store.isDisposed)throw new d.D7;try{return e.prepareRenderText()}finally{this._renderAnimationFrame=null}},renderText:()=>{if(this._store.isDisposed)throw new d.D7;return e.renderText()},prepareRender:(t,i)=>{if(this._store.isDisposed)throw new d.D7;return e.prepareRender(t,i)},render:(t,i)=>{if(this._store.isDisposed)throw new d.D7;return e.render(t,i)}})}}_flushAccumulatedAndRenderNow(){const e=this._createCoordinatedRendering();Mn((()=>e.prepareRenderText()));const t=Mn((()=>e.renderText()));if(t){const[i,n]=t;Mn((()=>e.prepareRender(i,n))),Mn((()=>e.render(i,n)))}}_getViewPartsToRender(){const e=[];let t=0;for(const i of this._viewParts)i.shouldRender()&&(e[t++]=i);return e}_createCoordinatedRendering(){return{prepareRenderText:()=>{if(this._shouldRecomputeGlyphMarginLanes){this._shouldRecomputeGlyphMarginLanes=!1;const e=this._computeGlyphMarginLanes();this._context.configuration.setGlyphMarginDecorationLaneCount(e.requiredLanes)}X.p.onRenderStart()},renderText:()=>{if(!this.domNode.domNode.isConnected)return null;let e=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&0===e.length)return null;const t=this._context.viewLayout.getLinesViewportData();this._context.viewModel.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);const i=new Dn(this._selections,t,this._context.viewLayout.getWhitespaceViewportData(),this._context.viewModel);return this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(i),this._viewLines.shouldRender()&&(this._viewLines.renderText(i),this._viewLines.onDidRender(),e=this._getViewPartsToRender()),[e,new ct.eh(this._context.viewLayout,i,this._viewLines)]},prepareRender:(e,t)=>{for(const i of e)i.prepareRender(t)},render:(e,t)=>{for(const i of e)i.render(t),i.onDidRender()}}}delegateVerticalScrollbarPointerDown(e){this._scrollbar.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this._scrollbar.delegateScrollFromMouseWheelEvent(e)}restoreState(e){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft},1),this._context.viewModel.visibleLinesStabilized()}getOffsetForColumn(e,t){const i=this._context.viewModel.model.validatePosition({lineNumber:e,column:t}),n=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i);this._flushAccumulatedAndRenderNow();const o=this._viewLines.visibleRangeForPosition(new se.y(n.lineNumber,n.column));return o?o.left:-1}getTargetAtClientPoint(e,t){const i=this._pointerHandler.getTargetAtClientPoint(e,t);return i?Ct.convertViewToModelMouseTarget(i,this._context.viewModel.coordinatesConverter):null}createOverviewRuler(e){return new Xi(this._context,e)}change(e){this._viewZones.changeViewZones(e),this._scheduleRender()}render(e,t){if(t){this._viewLines.forceShouldRender();for(const e of this._viewParts)e.forceShouldRender()}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()}writeScreenReaderContent(e){this._textAreaHandler.writeScreenReaderContent(e)}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(e){this._textAreaHandler.setAriaOptions(e)}addContentWidget(e){this._contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()}layoutContentWidget(e){var t,i,n,o,s,r,a,l;this._contentWidgets.setWidgetPosition(e.widget,null!==(i=null===(t=e.position)||void 0===t?void 0:t.position)&&void 0!==i?i:null,null!==(o=null===(n=e.position)||void 0===n?void 0:n.secondaryPosition)&&void 0!==o?o:null,null!==(r=null===(s=e.position)||void 0===s?void 0:s.preference)&&void 0!==r?r:null,null!==(l=null===(a=e.position)||void 0===a?void 0:a.positionAffinity)&&void 0!==l?l:null),this._scheduleRender()}removeContentWidget(e){this._contentWidgets.removeWidget(e.widget),this._scheduleRender()}addOverlayWidget(e){this._overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()}layoutOverlayWidget(e){this._overlayWidgets.setWidgetPosition(e.widget,e.position)&&this._scheduleRender()}removeOverlayWidget(e){this._overlayWidgets.removeWidget(e.widget),this._scheduleRender()}addGlyphMarginWidget(e){this._glyphMarginWidgets.addWidget(e.widget),this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender()}layoutGlyphMarginWidget(e){const t=e.position;this._glyphMarginWidgets.setWidgetPosition(e.widget,t)&&(this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender())}removeGlyphMarginWidget(e){this._glyphMarginWidgets.removeWidget(e.widget),this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender()}};function Mn(e){try{return e()}catch(e){return(0,d.dz)(e),null}}Nn=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([function(e,t){return function(i,n){t(i,n,e)}}(6,st._Y)],Nn);class An{constructor(){this._coordinatedRenderings=[],this._animationFrameRunners=new Map}scheduleCoordinatedRendering(e){return this._coordinatedRenderings.push(e),this._scheduleRender(e.window),{dispose:()=>{const t=this._coordinatedRenderings.indexOf(e);if(-1!==t&&(this._coordinatedRenderings.splice(t,1),0===this._coordinatedRenderings.length)){for(const[e,t]of this._animationFrameRunners)t.dispose();this._animationFrameRunners.clear()}}}}_scheduleRender(e){if(!this._animationFrameRunners.has(e)){const t=()=>{this._animationFrameRunners.delete(e),this._onRenderScheduled()};this._animationFrameRunners.set(e,l.Oq(e,t,100))}}_onRenderScheduled(){const e=this._coordinatedRenderings.slice(0);this._coordinatedRenderings=[];for(const t of e)Mn((()=>t.prepareRenderText()));const t=[];for(let i=0,n=e.length;in.renderText()))}for(let i=0,n=e.length;in.prepareRender(s,r)))}for(let i=0,n=e.length;in.render(s,r)))}}}An.INSTANCE=new An;var Tn=i(87110);class Rn{constructor(e,t,i,n,o){this.injectionOffsets=e,this.injectionOptions=t,this.breakOffsets=i,this.breakOffsetsVisibleColumn=n,this.wrappedTextIndentLength=o}getOutputLineCount(){return this.breakOffsets.length}getMinOutputOffset(e){return e>0?this.wrappedTextIndentLength:0}getLineLength(e){const t=e>0?this.breakOffsets[e-1]:0;let i=this.breakOffsets[e]-t;return e>0&&(i+=this.wrappedTextIndentLength),i}getMaxOutputOffset(e){return this.getLineLength(e)}translateToInputOffset(e,t){e>0&&(t=Math.max(0,t-this.wrappedTextIndentLength));let i=0===e?t:this.breakOffsets[e-1]+t;if(null!==this.injectionOffsets)for(let e=0;ethis.injectionOffsets[e];e++)i0?this.breakOffsets[o-1]:0,0===t)if(e<=s)n=o-1;else{if(!(e>r))break;i=o+1}else if(e=r))break;i=o+1}}let r=e-s;return o>0&&(r+=this.wrappedTextIndentLength),new Fn(o,r)}normalizeOutputPosition(e,t,i){if(null!==this.injectionOffsets){const n=this.outputPositionToOffsetInInputWithInjections(e,t),o=this.normalizeOffsetInInputWithInjectionsAroundInjections(n,i);if(o!==n)return this.offsetInInputWithInjectionsToOutputPosition(o,i)}if(0===i){if(e>0&&t===this.getMinOutputOffset(e))return new Fn(e-1,this.getMaxOutputOffset(e-1))}else if(1===i&&e0&&(t=Math.max(0,t-this.wrappedTextIndentLength)),(e>0?this.breakOffsets[e-1]:0)+t}normalizeOffsetInInputWithInjectionsAroundInjections(e,t){const i=this.getInjectedTextAtOffset(e);if(!i)return e;if(2===t){if(e===i.offsetInInputWithInjections+i.length&&Pn(this.injectionOptions[i.injectedTextIndex].cursorStops))return i.offsetInInputWithInjections+i.length;{let e=i.offsetInInputWithInjections;if(On(this.injectionOptions[i.injectedTextIndex].cursorStops))return e;let t=i.injectedTextIndex-1;for(;t>=0&&this.injectionOffsets[t]===this.injectionOffsets[i.injectedTextIndex]&&!Pn(this.injectionOptions[t].cursorStops)&&(e-=this.injectionOptions[t].content.length,!On(this.injectionOptions[t].cursorStops));)t--;return e}}if(1===t||4===t){let e=i.offsetInInputWithInjections+i.length,t=i.injectedTextIndex;for(;t+1=0&&this.injectionOffsets[t-1]===this.injectionOffsets[t];)e-=this.injectionOptions[t-1].content.length,t--;return e}(0,Tn.xb)(t)}getInjectedText(e,t){const i=this.outputPositionToOffsetInInputWithInjections(e,t),n=this.getInjectedTextAtOffset(i);return n?{options:this.injectionOptions[n.injectedTextIndex]}:null}getInjectedTextAtOffset(e){const t=this.injectionOffsets,i=this.injectionOptions;if(null!==t){let n=0;for(let o=0;oe)break;if(e<=a)return{injectedTextIndex:o,offsetInInputWithInjections:r,length:s};n+=s}}}}function Pn(e){return null==e||e===Ut.VW.Right||e===Ut.VW.Both}function On(e){return null==e||e===Ut.VW.Left||e===Ut.VW.Both}class Fn{constructor(e,t){this.outputLineIndex=e,this.outputOffset=t}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(e){return new se.y(e+this.outputLineIndex,this.outputOffset+1)}}var Bn=i(83455);const Wn=(0,gt.H)("domLineBreaksComputer",{createHTML:e=>e});class Hn{static create(e){return new Hn(new WeakRef(e))}constructor(e){this.targetWindow=e}createLineBreaksComputer(e,t,i,n,o){const s=[],r=[];return{addRequest:(e,t,i)=>{s.push(e),r.push(t)},finalize:()=>function(e,t,i,n,o,s,r,a){var l;function d(e){const i=a[e];if(i){const n=Bn.uK.applyInjectedText(t[e],i),o=i.map((e=>e.options)),s=i.map((e=>e.column-1));return new Rn(s,o,[n.length],[],0)}return null}if(-1===o){const e=[];for(let i=0,n=t.length;ic?(r=0,l=0):d=c-e}const h=o.substr(r),u=Vn(h,l,n,d,m,g);f[e]=r,v[e]=l,_[e]=h,b[e]=u[0],w[e]=u[1]}const y=m.build(),C=null!==(l=null==Wn?void 0:Wn.createHTML(y))&&void 0!==l?l:y;p.innerHTML=C,p.style.position="absolute",p.style.top="10000","keepAll"===r?(p.style.wordBreak="keep-all",p.style.overflowWrap="anywhere"):(p.style.wordBreak="inherit",p.style.overflowWrap="break-word"),e.document.body.appendChild(p);const k=document.createRange(),S=Array.prototype.slice.call(p.children,0),x=[];for(let e=0;ee.options)),l=c.map((e=>e.column-1))):(r=null,l=null),x[e]=new Rn(l,r,t,s,n)}return p.remove(),x}((0,ti.eU)(this.targetWindow.deref()),s,e,t,i,n,o,r)}}}function Vn(e,t,i,n,o,s){if(0!==s){const e=String(s);o.appendString('
    ');const r=e.length;let a=t,l=0;const d=[],c=[];let h=0");for(let t=0;t"),d[t]=l,c[t]=a;const n=h;h=t+1"),d[e.length]=l,c[e.length]=a,o.appendString("
    "),[d,c]}function zn(e,t,i,n){if(i.length<=1)return null;const o=Array.prototype.slice.call(t.children,0),s=[];try{jn(e,o,n,0,null,i.length-1,null,s)}catch(e){return console.log(e),null}return 0===s.length?null:(s.push(i.length),s)}function jn(e,t,i,n,o,s,r,a){if(n===s)return;if(o=o||Un(e,t,i[n],i[n+1]),r=r||Un(e,t,i[s],i[s+1]),Math.abs(o[0].top-r[0].top)<=.1)return;if(n+1===s)return void a.push(s);const l=n+(s-n)/2|0,d=Un(e,t,i[l],i[l+1]);jn(e,t,i,n,o,l,d,a),jn(e,t,i,l,d,s,r,a)}function Un(e,t,i,n){return e.setStart(t[i/16384|0].firstChild,i%16384),e.setEnd(t[n/16384|0].firstChild,n%16384),e.getClientRects()}class $n extends h.jG{constructor(){super(),this._editor=null,this._instantiationService=null,this._instances=this._register(new h.$w),this._pending=new Map,this._finishedInstantiation=[],this._finishedInstantiation[0]=!1,this._finishedInstantiation[1]=!1,this._finishedInstantiation[2]=!1,this._finishedInstantiation[3]=!1}initialize(e,t,i){this._editor=e,this._instantiationService=i;for(const e of t)this._pending.has(e.id)?(0,d.dz)(new Error(`Cannot have two contributions with the same id ${e.id}`)):this._pending.set(e.id,e);this._instantiateSome(0),this._register((0,l.U3)((0,l.zk)(this._editor.getDomNode()),(()=>{this._instantiateSome(1)}))),this._register((0,l.U3)((0,l.zk)(this._editor.getDomNode()),(()=>{this._instantiateSome(2)}))),this._register((0,l.U3)((0,l.zk)(this._editor.getDomNode()),(()=>{this._instantiateSome(3)}),5e3))}saveViewState(){const e={};for(const[t,i]of this._instances)"function"==typeof i.saveViewState&&(e[t]=i.saveViewState());return e}restoreViewState(e){for(const[t,i]of this._instances)"function"==typeof i.restoreViewState&&i.restoreViewState(e[t])}get(e){return this._instantiateById(e),this._instances.get(e)||null}onBeforeInteractionEvent(){this._instantiateSome(2)}onAfterModelAttached(){var e;return(0,l.U3)((0,l.zk)(null===(e=this._editor)||void 0===e?void 0:e.getDomNode()),(()=>{this._instantiateSome(1)}),50)}_instantiateSome(e){if(this._finishedInstantiation[e])return;this._finishedInstantiation[e]=!0;const t=this._findPendingContributionsByInstantiation(e);for(const e of t)this._instantiateById(e.id)}_findPendingContributionsByInstantiation(e){const t=[];for(const[,i]of this._pending)i.instantiation===e&&t.push(i);return t}_instantiateById(e){const t=this._pending.get(e);if(t){if(this._pending.delete(e),!this._instantiationService||!this._editor)throw new Error("Cannot instantiate contributions before being initialized!");try{const e=this._instantiationService.createInstance(t.ctor,this._editor);this._instances.set(t.id,e),"function"==typeof e.restoreViewState&&0!==t.instantiation&&console.warn(`Editor contribution '${t.id}' should be eager instantiated because it uses saveViewState / restoreViewState.`)}catch(e){(0,d.dz)(e)}}}}var Kn=i(89673),qn=i(22595),Gn=i(12596),Qn=i(38122),Zn=i(52394),Yn=i(74774),Xn=i(52230),Jn=i(27454);class eo{static create(e){return new eo(e.get(135),e.get(134))}constructor(e,t){this.classifier=new to(e,t)}createLineBreaksComputer(e,t,i,n,o){const s=[],r=[],a=[];return{addRequest:(e,t,i)=>{s.push(e),r.push(t),a.push(i)},finalize:()=>{const l=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth,d=[];for(let e=0,c=s.length;e=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue}}let io=[],no=[];function oo(e,t,i,n,o,s,r,a){if(-1===o)return null;const l=i.length;if(l<=1)return null;const d="keepAll"===a,c=t.breakOffsets,h=t.breakOffsetsVisibleColumn,u=co(i,n,o,s,r),g=o-u,p=io,m=no;let f=0,v=0,_=0,b=o;const w=c.length;let y=0;if(y>=0){let e=Math.abs(h[y]-b);for(;y+1=e)break;e=t,y++}}for(;yt&&(t=v,o=_);let r=0,a=0,u=0,C=0;if(o<=b){let _=o,w=0===t?0:i.charCodeAt(t-1),y=0===t?0:e.get(w),k=!0;for(let o=t;ov&&lo(0,y,l,c,d)&&(r=t,a=_),_+=h,_>b){t>v?(u=t,C=_-h):(u=o+1,C=_),_-a>g&&(r=0),k=!1;break}w=l,y=c}if(k){f>0&&(p[f]=c[c.length-1],m[f]=h[c.length-1],f++);break}}if(0===r){let l=o,c=i.charCodeAt(t),h=e.get(c),p=!1;for(let n=t-1;n>=v;n--){const t=n+1,o=i.charCodeAt(n);if(9===o){p=!0;break}let m,f;if(He.LJ(o)?(n--,m=0,f=2):(m=e.get(o),f=He.ne(o)?s:1),l<=b){if(0===u&&(u=t,C=l),l<=b-g)break;if(lo(0,m,c,h,d)){r=t,a=l;break}}l-=f,c=o,h=m}if(0!==r){const e=g-(C-a);if(e<=n){const t=i.charCodeAt(u);let o;o=He.pc(t)?2:ro(t,C,n,s),e-o<0&&(r=0)}}if(p){y--;continue}}if(0===r&&(r=u,a=C),r<=v){const e=i.charCodeAt(v);He.pc(e)?(r=v+2,a=_+2):(r=v+1,a=_+ro(e,_,n,s))}for(v=r,p[f]=r,_=a,m[f]=a,f++,b=a+g;y<0||y=k)break;k=e,y++}}return 0===f?null:(p.length=f,m.length=f,io=t.breakOffsets,no=t.breakOffsetsVisibleColumn,t.breakOffsets=p,t.breakOffsetsVisibleColumn=m,t.wrappedTextIndentLength=u,t)}function so(e,t,i,n,o,s,r,a){const l=Bn.uK.applyInjectedText(t,i);let d,c;if(i&&i.length>0?(d=i.map((e=>e.options)),c=i.map((e=>e.column-1))):(d=null,c=null),-1===o)return d?new Rn(c,d,[l.length],[],0):null;const h=l.length;if(h<=1)return d?new Rn(c,d,[l.length],[],0):null;const u="keepAll"===a,g=co(l,n,o,s,r),p=o-g,m=[],f=[];let v=0,_=0,b=0,w=o,y=l.charCodeAt(0),C=e.get(y),k=ro(y,0,n,s),S=1;He.pc(y)&&(k+=1,y=l.charCodeAt(1),C=e.get(y),S++);for(let t=S;tw&&((0===_||k-b>p)&&(_=i,b=k-a),m[v]=_,f[v]=b,v++,w=b+p,_=0),y=o,C=r}return 0!==v||i&&0!==i.length?(m[v]=h,f[v]=k,new Rn(c,d,m,f,g)):null}function ro(e,t,i,n){return 9===e?i-t%i:He.ne(e)||e<32?n:1}function ao(e,t){return t-e%t}function lo(e,t,i,n,o){return 32!==i&&(2===t&&2!==n||1!==t&&1===n||!o&&3===t&&2!==n||!o&&3===n&&1!==t)}function co(e,t,i,n,o){let s=0;if(0!==o){const r=He.HG(e);if(-1!==r){for(let i=0;ii&&(s=0)}}return s}var ho=i(97393),uo=i(29895);class go{constructor(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new uo.mG(new re.Q(1,1,1,1),0,0,new se.y(1,1),0),new uo.mG(new re.Q(1,1,1,1),0,0,new se.y(1,1),0))}dispose(e){this._removeTrackedRange(e)}startTrackingSelection(e){this._trackSelection=!0,this._updateTrackedRange(e)}stopTrackingSelection(e){this._trackSelection=!1,this._removeTrackedRange(e)}_updateTrackedRange(e){this._trackSelection&&(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new uo.MF(this.modelState,this.viewState)}readSelectionFromMarkers(e){const t=e.model._getTrackedRange(this._selTrackedRange);return this.modelState.selection.isEmpty()&&!t.isEmpty()?Le.L.fromRange(t.collapseToEnd(),this.modelState.selection.getDirection()):Le.L.fromRange(t,this.modelState.selection.getDirection())}ensureValidState(e){this._setState(e,this.modelState,this.viewState)}setState(e,t,i){this._setState(e,t,i)}static _validatePositionWithCache(e,t,i,n){return t.equals(i)?n:e.normalizePosition(t,2)}static _validateViewState(e,t){const i=t.position,n=t.selectionStart.getStartPosition(),o=t.selectionStart.getEndPosition(),s=e.normalizePosition(i,2),r=this._validatePositionWithCache(e,n,i,s),a=this._validatePositionWithCache(e,o,n,r);return i.equals(s)&&n.equals(r)&&o.equals(a)?t:new uo.mG(re.Q.fromPositions(r,a),t.selectionStartKind,t.selectionStartLeftoverVisibleColumns+n.column-r.column,s,t.leftoverVisibleColumns+i.column-s.column)}_setState(e,t,i){if(i&&(i=go._validateViewState(e.viewModel,i)),t){const i=e.model.validateRange(t.selectionStart),n=t.selectionStart.equalsRange(i)?t.selectionStartLeftoverVisibleColumns:0,o=e.model.validatePosition(t.position),s=t.position.equals(o)?t.leftoverVisibleColumns:0;t=new uo.mG(i,t.selectionStartKind,n,o,s)}else{if(!i)return;const n=e.model.validateRange(e.coordinatesConverter.convertViewRangeToModelRange(i.selectionStart)),o=e.model.validatePosition(e.coordinatesConverter.convertViewPositionToModelPosition(i.position));t=new uo.mG(n,i.selectionStartKind,i.selectionStartLeftoverVisibleColumns,o,i.leftoverVisibleColumns)}if(i){const n=e.coordinatesConverter.validateViewRange(i.selectionStart,t.selectionStart),o=e.coordinatesConverter.validateViewPosition(i.position,t.position);i=new uo.mG(n,t.selectionStartKind,t.selectionStartLeftoverVisibleColumns,o,t.leftoverVisibleColumns)}else{const n=e.coordinatesConverter.convertModelPositionToViewPosition(new se.y(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),o=e.coordinatesConverter.convertModelPositionToViewPosition(new se.y(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),s=new re.Q(n.lineNumber,n.column,o.lineNumber,o.column),r=e.coordinatesConverter.convertModelPositionToViewPosition(t.position);i=new uo.mG(s,t.selectionStartKind,t.selectionStartLeftoverVisibleColumns,r,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=i,this._updateTrackedRange(e)}}class po{constructor(e){this.context=e,this.cursors=[new go(e)],this.lastAddedCursorIndex=0}dispose(){for(const e of this.cursors)e.dispose(this.context)}startTrackingSelections(){for(const e of this.cursors)e.startTrackingSelection(this.context)}stopTrackingSelections(){for(const e of this.cursors)e.stopTrackingSelection(this.context)}updateContext(e){this.context=e}ensureValidState(){for(const e of this.cursors)e.ensureValidState(this.context)}readSelectionFromMarkers(){return this.cursors.map((e=>e.readSelectionFromMarkers(this.context)))}getAll(){return this.cursors.map((e=>e.asCursorState()))}getViewPositions(){return this.cursors.map((e=>e.viewState.position))}getTopMostViewPosition(){return(0,ho.kh)(this.cursors,(0,I.VE)((e=>e.viewState.position),se.y.compare)).viewState.position}getBottomMostViewPosition(){return(0,ho.ot)(this.cursors,(0,I.VE)((e=>e.viewState.position),se.y.compare)).viewState.position}getSelections(){return this.cursors.map((e=>e.modelState.selection))}getViewSelections(){return this.cursors.map((e=>e.viewState.selection))}setSelections(e){this.setStates(uo.MF.fromModelSelections(e))}getPrimaryCursor(){return this.cursors[0].asCursorState()}setStates(e){null!==e&&(this.cursors[0].setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))}_setSecondaryStates(e){const t=this.cursors.length-1,i=e.length;if(ti){const e=t-i;for(let t=0;t=e+1&&this.lastAddedCursorIndex--,this.cursors[e+1].dispose(this.context),this.cursors.splice(e+1,1)}normalize(){if(1===this.cursors.length)return;const e=this.cursors.slice(0),t=[];for(let i=0,n=e.length;ie.selection),re.Q.compareRangesUsingStarts));for(let i=0;ia&&e.index--;e.splice(a,1),t.splice(r,1),this._removeSecondaryCursor(a-1),i--}}}}class mo{constructor(e,t,i,n){this._cursorContextBrand=void 0,this.model=e,this.viewModel=t,this.coordinatesConverter=i,this.cursorConfig=n}}var fo=i(97666),vo=i(96137),_o=i(62885);class bo{constructor(){this.type=0}}class wo{constructor(){this.type=1}}class yo{constructor(e){this.type=2,this._source=e}hasChanged(e){return this._source.hasChanged(e)}}class Co{constructor(e,t,i){this.selections=e,this.modelSelections=t,this.reason=i,this.type=3}}class ko{constructor(e){this.type=4,e?(this.affectsMinimap=e.affectsMinimap,this.affectsOverviewRuler=e.affectsOverviewRuler,this.affectsGlyphMargin=e.affectsGlyphMargin,this.affectsLineNumber=e.affectsLineNumber):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0,this.affectsGlyphMargin=!0,this.affectsLineNumber=!0)}}class So{constructor(){this.type=5}}class xo{constructor(e){this.type=6,this.isFocused=e}}class Lo{constructor(){this.type=7}}class Do{constructor(){this.type=8}}class Eo{constructor(e,t){this.fromLineNumber=e,this.count=t,this.type=9}}class Io{constructor(e,t){this.type=10,this.fromLineNumber=e,this.toLineNumber=t}}class No{constructor(e,t){this.type=11,this.fromLineNumber=e,this.toLineNumber=t}}class Mo{constructor(e,t,i,n,o,s,r){this.source=e,this.minimalReveal=t,this.range=i,this.selections=n,this.verticalType=o,this.revealHorizontal=s,this.scrollType=r,this.type=12}}class Ao{constructor(e){this.type=13,this.scrollWidth=e.scrollWidth,this.scrollLeft=e.scrollLeft,this.scrollHeight=e.scrollHeight,this.scrollTop=e.scrollTop,this.scrollWidthChanged=e.scrollWidthChanged,this.scrollLeftChanged=e.scrollLeftChanged,this.scrollHeightChanged=e.scrollHeightChanged,this.scrollTopChanged=e.scrollTopChanged}}class To{constructor(e){this.theme=e,this.type=14}}class Ro{constructor(e){this.type=15,this.ranges=e}}class Po{constructor(){this.type=16}}class Oo{constructor(){this.type=17}}class Fo extends h.jG{constructor(){super(),this._onEvent=this._register(new c.vl),this.onEvent=this._onEvent.event,this._eventHandlers=[],this._viewEventQueue=null,this._isConsumingViewEventQueue=!1,this._collector=null,this._collectorCnt=0,this._outgoingEvents=[]}emitOutgoingEvent(e){this._addOutgoingEvent(e),this._emitOutgoingEvents()}_addOutgoingEvent(e){for(let t=0,i=this._outgoingEvents.length;t0;){if(this._collector||this._isConsumingViewEventQueue)return;const e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}addViewEventHandler(e){for(let t=0,i=this._eventHandlers.length;t0&&this._emitMany(t)}this._emitOutgoingEvents()}emitSingleViewEvent(e){try{this.beginEmitViewEvents().emitViewEvent(e)}finally{this.endEmitViewEvents()}}_emitMany(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){const e=this._viewEventQueue;this._viewEventQueue=null;const t=this._eventHandlers.slice(0);for(const i of t)i.handleEvents(e)}}}class Bo{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(e){this.viewEvents.push(e)}emitOutgoingEvent(e){this.outgoingEvents.push(e)}}class Wo{constructor(e,t,i,n){this.kind=0,this._oldContentWidth=e,this._oldContentHeight=t,this.contentWidth=i,this.contentHeight=n,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}attemptToMerge(e){return e.kind!==this.kind?null:new Wo(this._oldContentWidth,this._oldContentHeight,e.contentWidth,e.contentHeight)}}class Ho{constructor(e,t){this.kind=1,this.oldHasFocus=e,this.hasFocus=t}isNoOp(){return this.oldHasFocus===this.hasFocus}attemptToMerge(e){return e.kind!==this.kind?null:new Ho(this.oldHasFocus,e.hasFocus)}}class Vo{constructor(e,t,i,n,o,s,r,a){this.kind=2,this._oldScrollWidth=e,this._oldScrollLeft=t,this._oldScrollHeight=i,this._oldScrollTop=n,this.scrollWidth=o,this.scrollLeft=s,this.scrollHeight=r,this.scrollTop=a,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!(this.scrollWidthChanged||this.scrollLeftChanged||this.scrollHeightChanged||this.scrollTopChanged)}attemptToMerge(e){return e.kind!==this.kind?null:new Vo(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop)}}class zo{constructor(){this.kind=3}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class jo{constructor(){this.kind=4}isNoOp(){return!1}attemptToMerge(e){return e.kind!==this.kind?null:this}}class Uo{constructor(e,t,i,n,o,s,r){this.kind=6,this.oldSelections=e,this.selections=t,this.oldModelVersionId=i,this.modelVersionId=n,this.source=o,this.reason=s,this.reachedMaxCursorCount=r}static _selectionsAreEqual(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;const i=e.length;if(i!==t.length)return!1;for(let n=0;n0){const e=this._cursors.getSelections();for(let t=0;ts&&(n=n.slice(0,s),o=!0);const r=Jo.from(this._model,this);return this._cursors.setStates(n),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,i,r,o)}setCursorColumnSelectData(e){this._columnSelectData=e}revealAll(e,t,i,n,o,s){const r=this._cursors.getViewPositions();let a=null,l=null;r.length>1?l=this._cursors.getViewSelections():a=re.Q.fromPositions(r[0],r[0]),e.emitViewEvent(new Mo(t,i,a,l,n,o,s))}revealPrimary(e,t,i,n,o,s){const r=[this._cursors.getPrimaryCursor().viewState.selection];e.emitViewEvent(new Mo(t,i,null,r,n,o,s))}saveState(){const e=[],t=this._cursors.getSelections();for(let i=0,n=t.length;i0){const t=uo.MF.fromModelSelections(i.resultingSelection);this.setStates(e,"modelChange",i.isUndoing?5:i.isRedoing?6:2,t)&&this.revealAll(e,"modelChange",!1,0,!0,0)}else{const t=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,uo.MF.fromModelSelections(t))}}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;const e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),i=e.viewState.position;return{isReal:!1,fromViewLineNumber:t.lineNumber,fromViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,t),toViewLineNumber:i.lineNumber,toViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,i)}}getSelections(){return this._cursors.getSelections()}setSelections(e,t,i,n){this.setStates(e,t,n,uo.MF.fromModelSelections(i))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(e){this._prevEditOperationType=e}_pushAutoClosedAction(e,t){const i=[],n=[];for(let o=0,s=e.length;o0&&this._pushAutoClosedAction(i,n),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(e){e&&0!==e.length||(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}_emitStateChangedIfNecessary(e,t,i,n,o){const s=Jo.from(this._model,this);if(s.equals(n))return!1;const r=this._cursors.getSelections(),a=this._cursors.getViewSelections();if(e.emitViewEvent(new Co(a,r,i)),!n||n.cursorState.length!==s.cursorState.length||s.cursorState.some(((e,t)=>!e.modelState.equals(n.cursorState[t].modelState)))){const a=n?n.cursorState.map((e=>e.modelState.selection)):null,l=n?n.modelVersionId:0;e.emitOutgoingEvent(new Uo(a,r,l,s.modelVersionId,t||"keyboard",i,o))}return!0}_findAutoClosingPairs(e){if(!e.length)return null;const t=[];for(let i=0,n=e.length;i=0)return null;const o=n.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!o)return null;const s=o[1],r=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(s);if(!r||1!==r.length)return null;const a=r[0].open,l=n.text.length-o[2].length-1,d=n.text.lastIndexOf(a,l-1);if(-1===d)return null;t.push([d,l])}return t}executeEdits(e,t,i,n){let o=null;"snippet"===t&&(o=this._findAutoClosingPairs(i)),o&&(i[0]._isTracked=!0);const s=[],r=[],a=this._model.pushEditOperations(this.getSelections(),i,(e=>{if(o)for(let t=0,i=o.length;t0&&this._pushAutoClosedAction(s,r)}_executeEdit(e,t,i,n=0){if(this.context.cursorConfig.readOnly)return;const o=Jo.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(e){(0,d.dz)(e)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,i,n,o,!1)&&this.revealAll(t,i,!1,0,!0,0)}getAutoClosedCharacters(){return es.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(e){this._compositionState=new ns(this._model,this.getSelections())}endComposition(e,t){const i=this._compositionState?this._compositionState.deduceOutcome(this._model,this.getSelections()):null;this._compositionState=null,this._executeEdit((()=>{"keyboard"===t&&this._executeEditOperation(vo.T.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,i,this.getSelections(),this.getAutoClosedCharacters()))}),e,t)}type(e,t,i){this._executeEdit((()=>{if("keyboard"===i){const e=t.length;let i=0;for(;i{this._executeEditOperation(vo.T.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t,i,n,o))}),e,s);else if(0!==o){const t=this.getSelections().map((e=>{const t=e.getPosition();return new Le.L(t.lineNumber,t.column+o,t.lineNumber,t.column+o)}));this.setSelections(e,s,t,0)}}paste(e,t,i,n,o){this._executeEdit((()=>{this._executeEditOperation(vo.T.paste(this.context.cursorConfig,this._model,this.getSelections(),t,i,n||[]))}),e,o,4)}cut(e,t){this._executeEdit((()=>{this._executeEditOperation(fo.g.cut(this.context.cursorConfig,this._model,this.getSelections()))}),e,t)}executeCommand(e,t,i){this._executeEdit((()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new uo.vY(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))}),e,i)}executeCommands(e,t,i){this._executeEdit((()=>{this._executeEditOperation(new uo.vY(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))}),e,i)}}class Jo{static from(e,t){return new Jo(e.getVersionId(),t.getCursorStates())}constructor(e,t){this.modelVersionId=e,this.cursorState=t}equals(e){if(!e)return!1;if(this.modelVersionId!==e.modelVersionId)return!1;if(this.cursorState.length!==e.cursorState.length)return!1;for(let t=0,i=this.cursorState.length;t=t.length)return!1;if(!t[i].strictContainsRange(e[i]))return!1}return!0}}class ts{static executeCommands(e,t,i){const n={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},o=this._innerExecuteCommands(n,i);for(let e=0,t=n.trackedRanges.length;e0&&(s[0]._isTracked=!0);let r=e.model.pushEditOperations(e.selectionsBefore,s,(i=>{const n=[];for(let t=0;te.identifier.minor-t.identifier.minor,s=[];for(let i=0;i0?(n[i].sort(o),s[i]=t[i].computeCursorState(e.model,{getInverseEditOperations:()=>n[i],getTrackedSelection:t=>{const i=parseInt(t,10),n=e.model._getTrackedRange(e.trackedRanges[i]);return 0===e.trackedRangesDirection[i]?new Le.L(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn):new Le.L(n.endLineNumber,n.endColumn,n.startLineNumber,n.startColumn)}})):s[i]=e.selectionsBefore[i];return s}));r||(r=e.selectionsBefore);const a=[];for(const e in o)o.hasOwnProperty(e)&&a.push(parseInt(e,10));a.sort(((e,t)=>t-e));for(const e of a)r.splice(e,1);return r}static _arrayIsEmpty(e){for(let t=0,i=e.length;t{re.Q.isEmpty(e)&&""===s||n.push({identifier:{major:t,minor:o++},range:e,text:s,forceMoveMarkers:r,isAutoWhitespaceEdit:i.insertsAutoWhitespace})};let r=!1;const a={addEditOperation:s,addTrackedEditOperation:(e,t,i)=>{r=!0,s(e,t,i)},trackSelection:(t,i)=>{const n=Le.L.liftSelection(t);let o;if(n.isEmpty())if("boolean"==typeof i)o=i?2:3;else{const t=e.model.getLineMaxColumn(n.startLineNumber);o=n.startColumn===t?2:3}else o=1;const s=e.trackedRanges.length,r=e.model._setTrackedRange(null,n,o);return e.trackedRanges[s]=r,e.trackedRangesDirection[s]=n.getDirection(),s.toString()}};try{i.getEditOperations(e.model,a)}catch(e){return(0,d.dz)(e),{operations:[],hadTrackedEditOperation:!1}}return{operations:n,hadTrackedEditOperation:r}}static _getLoserCursorMap(e){(e=e.slice(0)).sort(((e,t)=>-re.Q.compareRangesUsingEnds(e.range,t.range)));const t={};for(let i=1;io.identifier.major?n.identifier.major:o.identifier.major,t[s.toString()]=!0;for(let t=0;t0&&i--}}return t}}class is{constructor(e,t,i){this.text=e,this.startSelection=t,this.endSelection=i}}class ns{static _capture(e,t){const i=[];for(const n of t){if(n.startLineNumber!==n.endLineNumber)return null;i.push(new is(e.getLineContent(n.startLineNumber),n.startColumn-1,n.endColumn-1))}return i}constructor(e,t){this._original=ns._capture(e,t)}deduceOutcome(e,t){if(!this._original)return null;const i=ns._capture(e,t);if(!i)return null;if(this._original.length!==i.length)return null;const n=[];for(let e=0,t=this._original.length;e>>1;t===e[s].afterLineNumber?i{t=!0,e|=0,i|=0,n|=0,o|=0;const s=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new ls(s,e,i,n,o)),s},changeOneWhitespace:(e,i,n)=>{t=!0,i|=0,n|=0,this._pendingChanges.change({id:e,newAfterLineNumber:i,newHeight:n})},removeWhitespace:e=>{t=!0,this._pendingChanges.remove({id:e})}})}finally{this._pendingChanges.commit(this)}return t}_commitPendingChanges(e,t,i){if((e.length>0||i.length>0)&&(this._minWidth=-1),e.length+t.length+i.length<=1){for(const t of e)this._insertWhitespace(t);for(const e of t)this._changeOneWhitespace(e.id,e.newAfterLineNumber,e.newHeight);for(const e of i){const t=this._findWhitespaceIndex(e.id);-1!==t&&this._removeWhitespace(t)}return}const n=new Set;for(const e of i)n.add(e.id);const o=new Map;for(const e of t)o.set(e.id,e);const s=e=>{const t=[];for(const i of e)if(!n.has(i.id)){if(o.has(i.id)){const e=o.get(i.id);i.afterLineNumber=e.newAfterLineNumber,i.height=e.newHeight}t.push(i)}return t},r=s(this._arr).concat(s(e));r.sort(((e,t)=>e.afterLineNumber===t.afterLineNumber?e.ordinal-t.ordinal:e.afterLineNumber-t.afterLineNumber)),this._arr=r,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(e){const t=ds.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(t,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)}_findWhitespaceIndex(e){const t=this._arr;for(let i=0,n=t.length;it&&(this._arr[i].afterLineNumber-=t-e+1)}}onLinesInserted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount+=t-e+1;for(let i=0,n=this._arr.length;i=t.length||t[o+1].afterLineNumber>=e)return o;i=o+1|0}else n=o-1|0}return-1}_findFirstWhitespaceAfterLineNumber(e){e|=0;const t=this._findLastWhitespaceBeforeLineNumber(e)+1;return t1?this._lineHeight*(e-1):0,i+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e-(t?1:0))+this._paddingTop}getVerticalOffsetAfterLineNumber(e,t=!1){return this._checkPendingChanges(),e|=0,this._lineHeight*e+this.getWhitespaceAccumulatedHeightBeforeLineNumber(e+(t?1:0))+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),-1===this._minWidth){let e=0;for(let t=0,i=this._arr.length;tthis.getLinesTotalHeight()}isInTopPadding(e){return 0!==this._paddingTop&&(this._checkPendingChanges(),e=this.getLinesTotalHeight()-this._paddingBottom)}getLineNumberAtOrAfterVerticalOffset(e){if(this._checkPendingChanges(),(e|=0)<0)return 1;const t=0|this._lineCount,i=this._lineHeight;let n=1,o=t;for(;n=s+i)n=t+1;else{if(e>=s)return t;o=t}}return n>t?t:n}getLinesViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const i=this._lineHeight,n=0|this.getLineNumberAtOrAfterVerticalOffset(e),o=0|this.getVerticalOffsetForLineNumber(n);let s=0|this._lineCount,r=0|this.getFirstWhitespaceIndexAfterLineNumber(n);const a=0|this.getWhitespacesCount();let l,d;-1===r?(r=a,d=s+1,l=0):(d=0|this.getAfterLineNumberForWhitespaceIndex(r),l=0|this.getHeightForWhitespaceIndex(r));let c=o,h=c;const u=5e5;let g=0;o>=u&&(g=Math.floor(o/u)*u,g=Math.floor(g/i)*i,h-=g);const p=[],m=e+(t-e)/2;let f=-1;for(let e=n;e<=s;e++){for(-1===f&&(c<=m&&mm)&&(f=e),c+=i,p[e-n]=h,h+=i;d===e;)h+=l,c+=l,r++,r>=a?d=s+1:(d=0|this.getAfterLineNumberForWhitespaceIndex(r),l=0|this.getHeightForWhitespaceIndex(r));if(c>=t){s=e;break}}-1===f&&(f=s);const v=0|this.getVerticalOffsetForLineNumber(s);let _=n,b=s;return _t&&b--,{bigNumbersDelta:g,startLineNumber:n,endLineNumber:s,relativeVerticalOffset:p,centeredLineNumber:f,completelyVisibleStartLineNumber:_,completelyVisibleEndLineNumber:b,lineHeight:this._lineHeight}}getVerticalOffsetForWhitespaceIndex(e){this._checkPendingChanges(),e|=0;const t=this.getAfterLineNumberForWhitespaceIndex(e);let i,n;return i=t>=1?this._lineHeight*t:0,n=e>0?this.getWhitespacesAccumulatedHeight(e-1):0,i+n+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(e){this._checkPendingChanges(),e|=0;let t=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;if(e>=this.getVerticalOffsetForWhitespaceIndex(i)+this.getHeightForWhitespaceIndex(i))return-1;for(;t=o+this.getHeightForWhitespaceIndex(n))t=n+1;else{if(e>=o)return n;i=n}}return t}getWhitespaceAtVerticalOffset(e){this._checkPendingChanges(),e|=0;const t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this.getWhitespacesCount())return null;const i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>e)return null;const n=this.getHeightForWhitespaceIndex(t);return{id:this.getIdForWhitespaceIndex(t),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:i,height:n}}getWhitespaceViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const i=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),n=this.getWhitespacesCount()-1;if(i<0)return[];const o=[];for(let e=i;e<=n;e++){const i=this.getVerticalOffsetForWhitespaceIndex(e),n=this.getHeightForWhitespaceIndex(e);if(i>=t)break;o.push({id:this.getIdForWhitespaceIndex(e),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(e),verticalOffset:i,height:n})}return o}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].id}getAfterLineNumberForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].afterLineNumber}getHeightForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].height}}ds.INSTANCE_COUNT=0;class cs{constructor(e,t,i,n){(e|=0)<0&&(e=0),(t|=0)<0&&(t=0),(i|=0)<0&&(i=0),(n|=0)<0&&(n=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=i,this.contentHeight=n,this.scrollHeight=Math.max(i,n)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}}class hs extends h.jG{constructor(e,t){super(),this._onDidContentSizeChange=this._register(new c.vl),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new cs(0,0,0,0),this._scrollable=this._register(new rs.yE({forceIntegerValues:!0,smoothScrollDuration:e,scheduleAtNextAnimationFrame:t})),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(e){this._scrollable.setSmoothScrollDuration(e)}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}getScrollDimensions(){return this._dimensions}setScrollDimensions(e){if(this._dimensions.equals(e))return;const t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);const i=t.contentWidth!==e.contentWidth,n=t.contentHeight!==e.contentHeight;(i||n)&&this._onDidContentSizeChange.fire(new Wo(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(e){this._scrollable.setScrollPositionNow(e)}setScrollPositionSmooth(e){this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}}class us extends h.jG{constructor(e,t,i){super(),this._configuration=e;const n=this._configuration.options,o=n.get(146),s=n.get(84);this._linesLayout=new ds(t,n.get(67),s.top,s.bottom),this._maxLineWidth=0,this._overlayWidgetsMinWidth=0,this._scrollable=this._register(new hs(0,i)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new cs(o.contentWidth,0,o.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(115)?125:0)}onConfigurationChanged(e){const t=this._configuration.options;if(e.hasChanged(67)&&this._linesLayout.setLineHeight(t.get(67)),e.hasChanged(84)){const e=t.get(84);this._linesLayout.setPadding(e.top,e.bottom)}if(e.hasChanged(146)){const e=t.get(146),i=e.contentWidth,n=e.height,o=this._scrollable.getScrollDimensions(),s=o.contentWidth;this._scrollable.setScrollDimensions(new cs(i,o.contentWidth,n,this._getContentHeight(i,n,s)))}else this._updateHeight();e.hasChanged(115)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,t){this._linesLayout.onLinesDeleted(e,t)}onLinesInserted(e,t){this._linesLayout.onLinesInserted(e,t)}_getHorizontalScrollbarHeight(e,t){const i=this._configuration.options.get(104);return 2===i.horizontal||e>=t?0:i.horizontalScrollbarSize}_getContentHeight(e,t,i){const n=this._configuration.options;let o=this._linesLayout.getLinesTotalHeight();return n.get(106)?o+=Math.max(0,t-n.get(67)-n.get(84).bottom):n.get(104).ignoreHorizontalScrollbarInContentHeight||(o+=this._getHorizontalScrollbarHeight(e,i)),o}_updateHeight(){const e=this._scrollable.getScrollDimensions(),t=e.width,i=e.height,n=e.contentWidth;this._scrollable.setScrollDimensions(new cs(t,e.contentWidth,i,this._getContentHeight(t,i,n)))}getCurrentViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new xi.LM(t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new xi.LM(t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(){const e=this._configuration.options,t=this._maxLineWidth,i=e.get(147),n=e.get(50),o=e.get(146);if(i.isViewportWrapping){const i=e.get(73);return t>o.contentWidth+n.typicalHalfwidthCharacterWidth&&i.enabled&&"right"===i.side?t+o.verticalScrollbarWidth:t}{const i=e.get(105)*n.typicalHalfwidthCharacterWidth,s=this._linesLayout.getWhitespaceMinWidth();return Math.max(t+i+o.verticalScrollbarWidth,s,this._overlayWidgetsMinWidth)}}setMaxLineWidth(e){this._maxLineWidth=e,this._updateContentWidth()}setOverlayWidgetsMinWidth(e){this._overlayWidgetsMinWidth=e,this._updateContentWidth()}_updateContentWidth(){const e=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new cs(e.width,this._computeContentWidth(),e.height,e.contentHeight)),this._updateHeight()}saveState(){const e=this._scrollable.getFutureScrollPosition(),t=e.scrollTop,i=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(i),scrollLeft:e.scrollLeft}}changeWhitespace(e){const t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}getVerticalOffsetForLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetForLineNumber(e,t)}getVerticalOffsetAfterLineNumber(e,t=!1){return this._linesLayout.getVerticalOffsetAfterLineNumber(e,t)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}isInTopPadding(e){return this._linesLayout.isInTopPadding(e)}isInBottomPadding(e){return this._linesLayout.isInBottomPadding(e)}getLineNumberAtVerticalOffset(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){const t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)}getWhitespaceViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){1===t?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}deltaScrollNow(e,t){const i=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:i.scrollLeft+e,scrollTop:i.scrollTop+t})}}var gs=i(31430),ps=i(57445);function ms(e,t){return null===e?t?vs.INSTANCE:_s.INSTANCE:new fs(e,t)}class fs{constructor(e,t){this._projectionData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getProjectionData(){return this._projectionData}getViewLineCount(){return this._isVisible?this._projectionData.getOutputLineCount():0}getViewLineContent(e,t,i){this._assertVisible();const n=i>0?this._projectionData.breakOffsets[i-1]:0,o=this._projectionData.breakOffsets[i];let s;if(null!==this._projectionData.injectionOffsets){const i=this._projectionData.injectionOffsets.map(((e,t)=>new Bn.uK(0,0,e+1,this._projectionData.injectionOptions[t],0)));s=Bn.uK.applyInjectedText(e.getLineContent(t),i).substring(n,o)}else s=e.getValueInRange({startLineNumber:t,startColumn:n+1,endLineNumber:t,endColumn:o+1});return i>0&&(s=ws(this._projectionData.wrappedTextIndentLength)+s),s}getViewLineLength(e,t,i){return this._assertVisible(),this._projectionData.getLineLength(i)}getViewLineMinColumn(e,t,i){return this._assertVisible(),this._projectionData.getMinOutputOffset(i)+1}getViewLineMaxColumn(e,t,i){return this._assertVisible(),this._projectionData.getMaxOutputOffset(i)+1}getViewLineData(e,t,i){const n=new Array;return this.getViewLinesData(e,t,i,1,0,[!0],n),n[0]}getViewLinesData(e,t,i,n,o,s,r){this._assertVisible();const a=this._projectionData,l=a.injectionOffsets,d=a.injectionOptions;let c,h=null;if(l){h=[];let e=0,t=0;for(let i=0;i0?a.breakOffsets[i-1]:0,s=a.breakOffsets[i];for(;ts)break;if(o0?a.wrappedTextIndentLength:0,r=t+Math.max(c-o,0),l=t+Math.min(h-o,s-o);r!==l&&n.push(new xi.or(r,l,e.inlineClassName,e.inlineClassNameAffectsLetterSpacing))}}if(!(h<=s))break;e+=r,t++}}}c=l?e.tokenization.getLineTokens(t).withInserted(l.map(((e,t)=>({offset:e,text:d[t].content,tokenMetadata:ps.f.defaultTokenMetadata})))):e.tokenization.getLineTokens(t);for(let e=i;e0?n.wrappedTextIndentLength:0,s=i>0?n.breakOffsets[i-1]:0,r=n.breakOffsets[i],a=e.sliceAndInflate(s,r,o);let l=a.getLineContent();i>0&&(l=ws(n.wrappedTextIndentLength)+l);const d=this._projectionData.getMinOutputOffset(i)+1,c=l.length+1,h=i+1=bs.length)for(let t=1;t<=e;t++)bs[t]=ys(t);return bs[e]}function ys(e){return new Array(e+1).join(" ")}var Cs=i(56158);class ks{constructor(e,t,i,n,o,s,r,a,l,d){this._editorId=e,this.model=t,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=i,this._monospaceLineBreaksComputerFactory=n,this.fontInfo=o,this.tabSize=s,this.wrappingStrategy=r,this.wrappingColumn=a,this.wrappingIndent=l,this.wordBreak=d,this._constructLines(!0,null)}dispose(){this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[])}createCoordinatesConverter(){return new Ls(this)}_constructLines(e,t){this.modelLineProjections=[],e&&(this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[]));const i=this.model.getLinesContent(),n=this.model.getInjectedTextDecorations(this._editorId),o=i.length,s=this.createLineBreaksComputer(),r=new I.j3(Bn.uK.fromDecorations(n));for(let e=0;et.lineNumber===e+1));s.addRequest(i[e],n,t?t[e]:null)}const a=s.finalize(),l=[],d=this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e))).sort(re.Q.compareRangesUsingStarts);let c=1,h=0,u=-1,g=u+1=c&&t<=h,n=ms(a[e],!i);l[e]=n.getViewLineCount(),this.modelLineProjections[e]=n}this._validModelVersionId=this.model.getVersionId(),this.projectedModelLineLineCounts=new Cs.c2(l)}getHiddenAreas(){return this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e)))}setHiddenAreas(e){const t=function(e){if(0===e.length)return[];const t=e.slice();t.sort(re.Q.compareRangesUsingStarts);const i=[];let n=t[0].startLineNumber,o=t[0].endLineNumber;for(let e=1,s=t.length;eo+1?(i.push(new re.Q(n,1,o,1)),n=s.startLineNumber,o=s.endLineNumber):s.endLineNumber>o&&(o=s.endLineNumber)}return i.push(new re.Q(n,1,o,1)),i}(e.map((e=>this.model.validateRange(e)))),i=this.hiddenAreasDecorationIds.map((e=>this.model.getDecorationRange(e))).sort(re.Q.compareRangesUsingStarts);if(t.length===i.length){let e=!1;for(let n=0;n({range:e,options:Yn.kI.EMPTY})));this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,n);const o=t;let s=1,r=0,a=-1,l=a+1=s&&t<=r?this.modelLineProjections[e].isVisible()&&(this.modelLineProjections[e]=this.modelLineProjections[e].setVisible(!1),i=!0):(d=!0,this.modelLineProjections[e].isVisible()||(this.modelLineProjections[e]=this.modelLineProjections[e].setVisible(!0),i=!0)),i){const t=this.modelLineProjections[e].getViewLineCount();this.projectedModelLineLineCounts.setValue(e,t)}}return d||this.setHiddenAreas([]),!0}modelPositionIsVisible(e,t){return!(e<1||e>this.modelLineProjections.length)&&this.modelLineProjections[e-1].isVisible()}getModelLineViewLineCount(e){return e<1||e>this.modelLineProjections.length?1:this.modelLineProjections[e-1].getViewLineCount()}setTabSize(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1,null),!0)}setWrappingSettings(e,t,i,n,o){const s=this.fontInfo.equals(e),r=this.wrappingStrategy===t,a=this.wrappingColumn===i,l=this.wrappingIndent===n,d=this.wordBreak===o;if(s&&r&&a&&l&&d)return!1;const c=s&&r&&!a&&l&&d;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=i,this.wrappingIndent=n,this.wordBreak=o;let h=null;if(c){h=[];for(let e=0,t=this.modelLineProjections.length;e2&&!this.modelLineProjections[t-2].isVisible(),s=1===t?1:this.projectedModelLineLineCounts.getPrefixSum(t-1)+1;let r=0;const a=[],l=[];for(let e=0,t=n.length;er?(l=this.projectedModelLineLineCounts.getPrefixSum(t-1)+1,d=l+r-1,u=d+1,g=u+(o-r)-1,a=!0):ot?t:0|e}getActiveIndentGuide(e,t,i){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),i=this._toValidViewLineNumber(i);const n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),o=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),s=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),r=this.model.guides.getActiveIndentGuide(n.lineNumber,o.lineNumber,s.lineNumber),a=this.convertModelPositionToViewPosition(r.startLineNumber,1),l=this.convertModelPositionToViewPosition(r.endLineNumber,this.model.getLineMaxColumn(r.endLineNumber));return{startLineNumber:a.lineNumber,endLineNumber:l.lineNumber,indent:r.indent}}getViewLineInfo(e){e=this._toValidViewLineNumber(e);const t=this.projectedModelLineLineCounts.getIndexOf(e-1),i=t.index,n=t.remainder;return new Ss(i+1,n)}getMinColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getMaxColumnOfViewLine(e){return this.modelLineProjections[e.modelLineNumber-1].getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx)}getModelStartPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMinColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new se.y(e.modelLineNumber,n)}getModelEndPositionOfViewLine(e){const t=this.modelLineProjections[e.modelLineNumber-1],i=t.getViewLineMaxColumn(this.model,e.modelLineNumber,e.modelLineWrappedLineIdx),n=t.getModelColumnOfViewPosition(e.modelLineWrappedLineIdx,i);return new se.y(e.modelLineNumber,n)}getViewLineInfosGroupedByModelRanges(e,t){const i=this.getViewLineInfo(e),n=this.getViewLineInfo(t),o=new Array;let s=this.getModelStartPositionOfViewLine(i),r=new Array;for(let e=i.modelLineNumber;e<=n.modelLineNumber;e++){const t=this.modelLineProjections[e-1];if(t.isVisible()){const o=e===i.modelLineNumber?i.modelLineWrappedLineIdx:0,s=e===n.modelLineNumber?n.modelLineWrappedLineIdx+1:t.getViewLineCount();for(let t=o;t{if(-1!==e.forWrappedLinesAfterColumn&&this.modelLineProjections[n.modelLineNumber-1].getViewPositionOfModelPosition(0,e.forWrappedLinesAfterColumn).lineNumber>=n.modelLineWrappedLineIdx)return;if(-1!==e.forWrappedLinesBeforeOrAtColumn&&this.modelLineProjections[n.modelLineNumber-1].getViewPositionOfModelPosition(0,e.forWrappedLinesBeforeOrAtColumn).lineNumbern.modelLineWrappedLineIdx)return}const i=this.convertModelPositionToViewPosition(n.modelLineNumber,e.horizontalLine.endColumn),o=this.modelLineProjections[n.modelLineNumber-1].getViewPositionOfModelPosition(0,e.horizontalLine.endColumn);return o.lineNumber===n.modelLineWrappedLineIdx?new ni.TH(e.visibleColumn,t,e.className,new ni.pv(e.horizontalLine.top,i.column),-1,-1):o.lineNumber!!e)))}}return s}getViewLinesIndentGuides(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),n=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t));let o=[];const s=[],r=[],a=i.lineNumber-1,l=n.lineNumber-1;let d=null;for(let e=a;e<=l;e++){const t=this.modelLineProjections[e];if(t.isVisible()){const n=t.getViewLineNumberOfModelPosition(0,e===a?i.column:1),o=t.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(e+1)),l=o-n+1;let c=0;l>1&&1===t.getViewLineMinColumn(this.model,e+1,o)&&(c=0===n?1:2),s.push(l),r.push(c),null===d&&(d=new se.y(e+1,0))}else null!==d&&(o=o.concat(this.model.guides.getLinesIndentGuides(d.lineNumber,e)),d=null)}null!==d&&(o=o.concat(this.model.guides.getLinesIndentGuides(d.lineNumber,n.lineNumber)),d=null);const c=t-e+1,h=new Array(c);let u=0;for(let e=0,t=o.length;et&&(h=!0,c=t-o+1),l.getViewLinesData(this.model,n+1,d,c,o-e,i,a),o+=c,h)break}return a}validateViewPosition(e,t,i){e=this._toValidViewLineNumber(e);const n=this.projectedModelLineLineCounts.getIndexOf(e-1),o=n.index,s=n.remainder,r=this.modelLineProjections[o],a=r.getViewLineMinColumn(this.model,o+1,s),l=r.getViewLineMaxColumn(this.model,o+1,s);tl&&(t=l);const d=r.getModelColumnOfViewPosition(s,t);return this.model.validatePosition(new se.y(o+1,d)).equals(i)?new se.y(e,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)}validateViewRange(e,t){const i=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),n=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new re.Q(i.lineNumber,i.column,n.lineNumber,n.column)}convertViewPositionToModelPosition(e,t){const i=this.getViewLineInfo(e),n=this.modelLineProjections[i.modelLineNumber-1].getModelColumnOfViewPosition(i.modelLineWrappedLineIdx,t);return this.model.validatePosition(new se.y(i.modelLineNumber,n))}convertViewRangeToModelRange(e){const t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),i=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new re.Q(t.lineNumber,t.column,i.lineNumber,i.column)}convertModelPositionToViewPosition(e,t,i=2,n=!1,o=!1){const s=this.model.validatePosition(new se.y(e,t)),r=s.lineNumber,a=s.column;let l=r-1,d=!1;if(o)for(;l0&&!this.modelLineProjections[l].isVisible();)l--,d=!0;if(0===l&&!this.modelLineProjections[l].isVisible())return new se.y(n?0:1,1);const c=1+this.projectedModelLineLineCounts.getPrefixSum(l);let h;return h=d?o?this.modelLineProjections[l].getViewPositionOfModelPosition(c,1,i):this.modelLineProjections[l].getViewPositionOfModelPosition(c,this.model.getLineMaxColumn(l+1),i):this.modelLineProjections[r-1].getViewPositionOfModelPosition(c,a,i),h}convertModelRangeToViewRange(e,t=0){if(e.isEmpty()){const i=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,t);return re.Q.fromPositions(i)}{const t=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,1),i=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn,0);return new re.Q(t.lineNumber,t.column,i.lineNumber,i.column)}}getViewLineNumberOfModelPosition(e,t){let i=e-1;if(this.modelLineProjections[i].isVisible()){const e=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(e,t)}for(;i>0&&!this.modelLineProjections[i].isVisible();)i--;if(0===i&&!this.modelLineProjections[i].isVisible())return 1;const n=1+this.projectedModelLineLineCounts.getPrefixSum(i);return this.modelLineProjections[i].getViewLineNumberOfModelPosition(n,this.model.getLineMaxColumn(i+1))}getDecorationsInRange(e,t,i,n,o){const s=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),r=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(r.lineNumber-s.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new re.Q(s.lineNumber,1,r.lineNumber,r.column),t,i,n,o);let a=[];const l=s.lineNumber-1,d=r.lineNumber-1;let c=null;for(let e=l;e<=d;e++)if(this.modelLineProjections[e].isVisible())null===c&&(c=new se.y(e+1,e===l?s.column:1));else if(null!==c){const o=this.model.getLineMaxColumn(e);a=a.concat(this.model.getDecorationsInRange(new re.Q(c.lineNumber,c.column,e,o),t,i,n)),c=null}null!==c&&(a=a.concat(this.model.getDecorationsInRange(new re.Q(c.lineNumber,c.column,r.lineNumber,r.column),t,i,n)),c=null),a.sort(((e,t)=>{const i=re.Q.compareRangesUsingStarts(e.range,t.range);return 0===i?e.idt.id?1:0:i}));const h=[];let u=0,g=null;for(const e of a){const t=e.id;g!==t&&(g=t,h[u++]=e)}return h}getInjectedTextAt(e){const t=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[t.modelLineNumber-1].getInjectedTextAt(t.modelLineWrappedLineIdx,e.column)}normalizePosition(e,t){const i=this.getViewLineInfo(e.lineNumber);return this.modelLineProjections[i.modelLineNumber-1].normalizePosition(i.modelLineWrappedLineIdx,e,t)}getLineIndentColumn(e){const t=this.getViewLineInfo(e);return 0===t.modelLineWrappedLineIdx?this.model.getLineIndentColumn(t.modelLineNumber):0}}class Ss{constructor(e,t){this.modelLineNumber=e,this.modelLineWrappedLineIdx=t}}class xs{constructor(e,t){this.modelRange=e,this.viewLines=t}}class Ls{constructor(e){this._lines=e}convertViewPositionToModelPosition(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)}convertViewRangeToModelRange(e){return this._lines.convertViewRangeToModelRange(e)}validateViewPosition(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)}validateViewRange(e,t){return this._lines.validateViewRange(e,t)}convertModelPositionToViewPosition(e,t,i,n){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column,t,i,n)}convertModelRangeToViewRange(e,t){return this._lines.convertModelRangeToViewRange(e,t)}modelPositionIsVisible(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)}getModelLineViewLineCount(e){return this._lines.getModelLineViewLineCount(e)}getViewLineNumberOfModelPosition(e,t){return this._lines.getViewLineNumberOfModelPosition(e,t)}}class Ds{constructor(e){this.model=e}dispose(){}createCoordinatesConverter(){return new Es(this)}getHiddenAreas(){return[]}setHiddenAreas(e){return!1}setTabSize(e){return!1}setWrappingSettings(e,t,i,n){return!1}createLineBreaksComputer(){const e=[];return{addRequest:(t,i,n)=>{e.push(null)},finalize:()=>e}}onModelFlushed(){}onModelLinesDeleted(e,t,i){return new Io(t,i)}onModelLinesInserted(e,t,i,n){return new No(t,i)}onModelLineChanged(e,t,i){return[!1,new Eo(t,1),null,null]}acceptVersionId(e){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(e,t,i){return{startLineNumber:e,endLineNumber:e,indent:0}}getViewLinesBracketGuides(e,t,i){return new Array(t-e+1).fill([])}getViewLinesIndentGuides(e,t){const i=t-e+1,n=new Array(i);for(let e=0;et)}getModelLineViewLineCount(e){return 1}getViewLineNumberOfModelPosition(e,t){return e}}const Is=Ut.ZS.Right;class Ns{constructor(e){this.persist=0,this._requiredLanes=1,this.lanes=new Uint8Array(Math.ceil((e+1)*Is/8))}reset(e){const t=Math.ceil((e+1)*Is/8);this.lanes.length>>3]|=1<>>3]&1<>>3]&1<this._updateConfigurationViewLineCountNow()),0)),this._hasFocus=!1,this._viewportStart=As.create(this.model),this.glyphLanes=new Ns(0),this.model.isTooLargeForTokenization())this._lines=new Ds(this.model);else{const e=this._configuration.options,t=e.get(50),i=e.get(140),s=e.get(147),r=e.get(139),a=e.get(130);this._lines=new ks(this._editorId,this.model,n,o,t,this.model.getOptions().tabSize,i,s.wrappingColumn,r,a)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new Xo(i,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new us(this._configuration,this.getLineCount(),s)),this._register(this.viewLayout.onDidScroll((e=>{e.scrollTopChanged&&this._handleVisibleLinesChanged(),e.scrollTopChanged&&this._viewportStart.invalidate(),this._eventDispatcher.emitSingleViewEvent(new Ao(e)),this._eventDispatcher.emitOutgoingEvent(new Vo(e.oldScrollWidth,e.oldScrollLeft,e.oldScrollHeight,e.oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop))}))),this._register(this.viewLayout.onDidContentSizeChange((e=>{this._eventDispatcher.emitOutgoingEvent(e)}))),this._decorations=new gs.UB(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast((e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}}))),this._register(Si.getInstance().onDidChange((()=>{this._eventDispatcher.emitSingleViewEvent(new Po)}))),this._register(this._themeService.onDidColorThemeChange((e=>{this._invalidateDecorationsColorCache(),this._eventDispatcher.emitSingleViewEvent(new To(e))}))),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this._viewportStart.dispose(),this._eventDispatcher.dispose()}createLineBreaksComputer(){return this._lines.createLineBreaksComputer()}addViewEventHandler(e){this._eventDispatcher.addViewEventHandler(e)}removeViewEventHandler(e){this._eventDispatcher.removeViewEventHandler(e)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}getModelVisibleRanges(){const e=this.viewLayout.getLinesViewportData(),t=new re.Q(e.startLineNumber,this.getLineMinColumn(e.startLineNumber),e.endLineNumber,this.getLineMaxColumn(e.endLineNumber));return this._toModelVisibleRanges(t)}visibleLinesStabilized(){const e=this.getModelVisibleRanges();this._attachedView.setVisibleLines(e,!0)}_handleVisibleLinesChanged(){const e=this.getModelVisibleRanges();this._attachedView.setVisibleLines(e,!1)}setHasFocus(e){this._hasFocus=e,this._cursor.setHasFocus(e),this._eventDispatcher.emitSingleViewEvent(new xo(e)),this._eventDispatcher.emitOutgoingEvent(new Ho(!e,e))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new bo)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new wo)}_captureStableViewport(){if(this._viewportStart.isValid&&this.viewLayout.getCurrentScrollTop()>0){const e=new se.y(this._viewportStart.viewLineNumber,this.getLineMinColumn(this._viewportStart.viewLineNumber)),t=this.coordinatesConverter.convertViewPositionToModelPosition(e);return new Os(t,this._viewportStart.startLineDelta)}return new Os(null,0)}_onConfigurationChanged(e,t){const i=this._captureStableViewport(),n=this._configuration.options,o=n.get(50),s=n.get(140),r=n.get(147),a=n.get(139),l=n.get(130);this._lines.setWrappingSettings(o,s,r.wrappingColumn,a,l)&&(e.emitViewEvent(new So),e.emitViewEvent(new Do),e.emitViewEvent(new ko(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this._updateConfigurationViewLineCount.schedule()),t.hasChanged(92)&&(this._decorations.reset(),e.emitViewEvent(new ko(null))),t.hasChanged(99)&&(this._decorations.reset(),e.emitViewEvent(new ko(null))),e.emitViewEvent(new yo(t)),this.viewLayout.onConfigurationChanged(t),i.recoverViewportStart(this.coordinatesConverter,this.viewLayout),uo.d$.shouldRecreate(t)&&(this.cursorConfig=new uo.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText((e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();let i=!1,n=!1;const o=e instanceof Bn.Ic?e.rawContentChangedEvent.changes:e.changes,s=e instanceof Bn.Ic?e.rawContentChangedEvent.versionId:null,r=this._lines.createLineBreaksComputer();for(const e of o)switch(e.changeType){case 4:for(let t=0;t!e.ownerId||e.ownerId===this._editorId))),r.addRequest(i,n,null)}break;case 2:{let t=null;e.injectedText&&(t=e.injectedText.filter((e=>!e.ownerId||e.ownerId===this._editorId))),r.addRequest(e.detail,t,null);break}}const a=r.finalize(),l=new I.j3(a);for(const e of o)switch(e.changeType){case 1:this._lines.onModelFlushed(),t.emitViewEvent(new So),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),i=!0;break;case 3:{const n=this._lines.onModelLinesDeleted(s,e.fromLineNumber,e.toLineNumber);null!==n&&(t.emitViewEvent(n),this.viewLayout.onLinesDeleted(n.fromLineNumber,n.toLineNumber)),i=!0;break}case 4:{const n=l.takeCount(e.detail.length),o=this._lines.onModelLinesInserted(s,e.fromLineNumber,e.toLineNumber,n);null!==o&&(t.emitViewEvent(o),this.viewLayout.onLinesInserted(o.fromLineNumber,o.toLineNumber)),i=!0;break}case 2:{const i=l.dequeue(),[o,r,a,d]=this._lines.onModelLineChanged(s,e.lineNumber,i);n=o,r&&t.emitViewEvent(r),a&&(t.emitViewEvent(a),this.viewLayout.onLinesInserted(a.fromLineNumber,a.toLineNumber)),d&&(t.emitViewEvent(d),this.viewLayout.onLinesDeleted(d.fromLineNumber,d.toLineNumber));break}}null!==s&&this._lines.acceptVersionId(s),this.viewLayout.onHeightMaybeChanged(),!i&&n&&(t.emitViewEvent(new Do),t.emitViewEvent(new ko(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}const t=this._viewportStart.isValid;if(this._viewportStart.invalidate(),this._configuration.setModelLineCount(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&t){const e=this.model._getTrackedRange(this._viewportStart.modelTrackedRange);if(e){const t=this.coordinatesConverter.convertModelPositionToViewPosition(e.getStartPosition()),i=this.viewLayout.getVerticalOffsetForLineNumber(t.lineNumber);this.viewLayout.setScrollPosition({scrollTop:i+this._viewportStart.startLineDelta},1)}}try{const t=this._eventDispatcher.beginEmitViewEvents();e instanceof Bn.Ic&&t.emitOutgoingEvent(new Qo(e.contentChangedEvent)),this._cursor.onModelContentChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}this._handleVisibleLinesChanged()}))),this._register(this.model.onDidChangeTokens((e=>{const t=[];for(let i=0,n=e.ranges.length;i{this._eventDispatcher.emitSingleViewEvent(new Lo),this.cursorConfig=new uo.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new Go(e))}))),this._register(this.model.onDidChangeLanguage((e=>{this.cursorConfig=new uo.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new qo(e))}))),this._register(this.model.onDidChangeOptions((e=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{const e=this._eventDispatcher.beginEmitViewEvents();e.emitViewEvent(new So),e.emitViewEvent(new Do),e.emitViewEvent(new ko(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new uo.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new Zo(e))}))),this._register(this.model.onDidChangeDecorations((e=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new ko(e)),this._eventDispatcher.emitOutgoingEvent(new Ko(e))})))}setHiddenAreas(e,t){var i;this.hiddenAreasModel.setHiddenAreas(t,e);const n=this.hiddenAreasModel.getMergedRanges();if(n===this.previousHiddenAreas)return;this.previousHiddenAreas=n;const o=this._captureStableViewport();let s=!1;try{const e=this._eventDispatcher.beginEmitViewEvents();s=this._lines.setHiddenAreas(n),s&&(e.emitViewEvent(new So),e.emitViewEvent(new Do),e.emitViewEvent(new ko(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged());const t=null===(i=o.viewportStartModelPosition)||void 0===i?void 0:i.lineNumber;t&&n.some((e=>e.startLineNumber<=t&&t<=e.endLineNumber))||o.recoverViewportStart(this.coordinatesConverter,this.viewLayout)}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule(),s&&this._eventDispatcher.emitOutgoingEvent(new jo)}getVisibleRangesPlusViewportAboveBelow(){const e=this._configuration.options.get(146),t=this._configuration.options.get(67),i=Math.max(20,Math.round(e.height/t)),n=this.viewLayout.getLinesViewportData(),o=Math.max(1,n.completelyVisibleStartLineNumber-i),s=Math.min(this.getLineCount(),n.completelyVisibleEndLineNumber+i);return this._toModelVisibleRanges(new re.Q(o,this.getLineMinColumn(o),s,this.getLineMaxColumn(s)))}getVisibleRanges(){const e=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(e)}getHiddenAreas(){return this._lines.getHiddenAreas()}_toModelVisibleRanges(e){const t=this.coordinatesConverter.convertViewRangeToModelRange(e),i=this._lines.getHiddenAreas();if(0===i.length)return[t];const n=[];let o=0,s=t.startLineNumber,r=t.startColumn;const a=t.endLineNumber,l=t.endColumn;for(let e=0,t=i.length;ea||(st.toInlineDecoration(e)))]),new xi.qL(s.minColumn,s.maxColumn,s.content,s.continuesWithWrappedLine,i,n,s.tokens,t,o,s.startVisibleColumn)}getViewLineData(e){return this._lines.getViewLineData(e)}getMinimapLinesRenderingData(e,t,i){const n=this._lines.getViewLinesData(e,t,i);return new xi.nt(this.getTabSize(),n)}getAllOverviewRulerDecorations(e){const t=this.model.getOverviewRulerDecorations(this._editorId,(0,W.$C)(this._configuration.options)),i=new Ts;for(const n of t){const t=n.options,o=t.overviewRuler;if(!o)continue;const s=o.position;if(0===s)continue;const r=o.getColor(e.value),a=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.startLineNumber,n.range.startColumn),l=this.coordinatesConverter.getViewLineNumberOfModelPosition(n.range.endLineNumber,n.range.endColumn);i.accept(r,t.zIndex,a,l,s)}return i.asArray}_invalidateDecorationsColorCache(){const e=this.model.getOverviewRulerDecorations();for(const t of e){const e=t.options.overviewRuler;null==e||e.invalidateCachedColor();const i=t.options.minimap;null==i||i.invalidateCachedColor()}}getValueInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(i,t)}getValueLengthInRange(e,t){const i=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueLengthInRange(i,t)}modifyPosition(e,t){const i=this.coordinatesConverter.convertViewPositionToModelPosition(e),n=this.model.modifyPosition(i,t);return this.coordinatesConverter.convertModelPositionToViewPosition(n)}deduceModelPositionRelativeToViewPosition(e,t,i){const n=this.coordinatesConverter.convertViewPositionToModelPosition(e);2===this.model.getEOL().length&&(t<0?t-=i:t+=i);const o=this.model.getOffsetAt(n)+t;return this.model.getPositionAt(o)}getPlainTextToCopy(e,t,i){const n=i?"\r\n":this.model.getEOL();(e=e.slice(0)).sort(re.Q.compareRangesUsingStarts);let o=!1,s=!1;for(const t of e)t.isEmpty()?o=!0:s=!0;if(!s){if(!t)return"";const i=e.map((e=>e.startLineNumber));let o="";for(let e=0;e0&&i[e-1]===i[e]||(o+=this.model.getLineContent(i[e])+n);return o}if(o&&t){const t=[];let n=0;for(const o of e){const e=o.startLineNumber;o.isEmpty()?e!==n&&t.push(this.model.getLineContent(e)):t.push(this.model.getValueInRange(o,i?2:0)),n=e}return 1===t.length?t[0]:t}const r=[];for(const t of e)t.isEmpty()||r.push(this.model.getValueInRange(t,i?2:0));return 1===r.length?r[0]:r}getRichTextToCopy(e,t){const i=this.model.getLanguageId();if(i===os.vH)return null;if(1!==e.length)return null;let n=e[0];if(n.isEmpty()){if(!t)return null;const e=n.startLineNumber;n=new re.Q(e,this.model.getLineMinColumn(e),e,this.model.getLineMaxColumn(e))}const o=this._configuration.options.get(50),s=this._getColorMap();let r;return/[:;\\\/<>]/.test(o.fontFamily)||o.fontFamily===W.jU.fontFamily?r=W.jU.fontFamily:(r=o.fontFamily,r=r.replace(/"/g,"'"),/[,']/.test(r)||/[+ ]/.test(r)&&(r=`'${r}'`),r=`${r}, ${W.jU.fontFamily}`),{mode:i,html:`
    `+this._getHTMLToCopy(n,s)+"
    "}}_getHTMLToCopy(e,t){const i=e.startLineNumber,n=e.startColumn,o=e.endLineNumber,s=e.endColumn,r=this.getTabSize();let a="";for(let e=i;e<=o;e++){const l=this.model.tokenization.getLineTokens(e),d=l.getLineContent(),c=e===i?n-1:0,h=e===o?s-1:d.length;a+=""===d?"
    ":(0,ss.s0)(d,l.inflate(),t,c,h,r,M.uF)}return a}_getColorMap(){const e=tt.dG.getColorMap(),t=["#000000"];if(e)for(let i=1,n=e.length;ithis._cursor.setStates(n,e,t,i)))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(e){this._cursor.setCursorColumnSelectData(e)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(e){this._cursor.setPrevEditOperationType(e)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(e,t,i=0){this._withViewEventsCollector((n=>this._cursor.setSelections(n,e,t,i)))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(e){this._withViewEventsCollector((t=>this._cursor.restoreState(t,e)))}_executeCursorEdit(e){this._cursor.context.cursorConfig.readOnly?this._eventDispatcher.emitOutgoingEvent(new $o):this._withViewEventsCollector(e)}executeEdits(e,t,i){this._executeCursorEdit((n=>this._cursor.executeEdits(n,e,t,i)))}startComposition(){this._executeCursorEdit((e=>this._cursor.startComposition(e)))}endComposition(e){this._executeCursorEdit((t=>this._cursor.endComposition(t,e)))}type(e,t){this._executeCursorEdit((i=>this._cursor.type(i,e,t)))}compositionType(e,t,i,n,o){this._executeCursorEdit((s=>this._cursor.compositionType(s,e,t,i,n,o)))}paste(e,t,i,n){this._executeCursorEdit((o=>this._cursor.paste(o,e,t,i,n)))}cut(e){this._executeCursorEdit((t=>this._cursor.cut(t,e)))}executeCommand(e,t){this._executeCursorEdit((i=>this._cursor.executeCommand(i,e,t)))}executeCommands(e,t){this._executeCursorEdit((i=>this._cursor.executeCommands(i,e,t)))}revealAllCursors(e,t,i=!1){this._withViewEventsCollector((n=>this._cursor.revealAll(n,e,i,0,t,0)))}revealPrimaryCursor(e,t,i=!1){this._withViewEventsCollector((n=>this._cursor.revealPrimary(n,e,i,0,t,0)))}revealTopMostCursor(e){const t=this._cursor.getTopMostViewPosition(),i=new re.Q(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((t=>t.emitViewEvent(new Mo(e,!1,i,null,0,!0,0))))}revealBottomMostCursor(e){const t=this._cursor.getBottomMostViewPosition(),i=new re.Q(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector((t=>t.emitViewEvent(new Mo(e,!1,i,null,0,!0,0))))}revealRange(e,t,i,n,o){this._withViewEventsCollector((s=>s.emitViewEvent(new Mo(e,!1,i,null,n,t,o))))}changeWhitespace(e){this.viewLayout.changeWhitespace(e)&&(this._eventDispatcher.emitSingleViewEvent(new Oo),this._eventDispatcher.emitOutgoingEvent(new zo))}_withViewEventsCollector(e){return this._transactionalTarget.batchChanges((()=>{try{const t=this._eventDispatcher.beginEmitViewEvents();return e(t)}finally{this._eventDispatcher.endEmitViewEvents()}}))}batchEvents(e){this._withViewEventsCollector((()=>{e()}))}normalizePosition(e,t){return this._lines.normalizePosition(e,t)}getLineIndentColumn(e){return this._lines.getLineIndentColumn(e)}}class As{static create(e){const t=e._setTrackedRange(null,new re.Q(1,1,1,1),1);return new As(e,1,!1,t,0)}get viewLineNumber(){return this._viewLineNumber}get isValid(){return this._isValid}get modelTrackedRange(){return this._modelTrackedRange}get startLineDelta(){return this._startLineDelta}constructor(e,t,i,n,o){this._model=e,this._viewLineNumber=t,this._isValid=i,this._modelTrackedRange=n,this._startLineDelta=o}dispose(){this._model._setTrackedRange(this._modelTrackedRange,null,1)}update(e,t){const i=e.coordinatesConverter.convertViewPositionToModelPosition(new se.y(t,e.getLineMinColumn(t))),n=e.model._setTrackedRange(this._modelTrackedRange,new re.Q(i.lineNumber,i.column,i.lineNumber,i.column),1),o=e.viewLayout.getVerticalOffsetForLineNumber(t),s=e.viewLayout.getCurrentScrollTop();this._viewLineNumber=t,this._isValid=!0,this._modelTrackedRange=n,this._startLineDelta=s-o}invalidate(){this._isValid=!1}}class Ts{constructor(){this._asMap=Object.create(null),this.asArray=[]}accept(e,t,i,n,o){const s=this._asMap[e];if(s){const e=s.data,t=e[e.length-3],r=e[e.length-1];if(t===o&&r+1>=i)return void(n>r&&(e[e.length-1]=n));e.push(o,i,n)}else{const s=new xi.Uv(e,t,[o,i,n]);this._asMap[e]=s,this.asArray.push(s)}}}class Rs{constructor(){this.hiddenAreas=new Map,this.shouldRecompute=!1,this.ranges=[]}setHiddenAreas(e,t){const i=this.hiddenAreas.get(e);i&&Ps(i,t)||(this.hiddenAreas.set(e,t),this.shouldRecompute=!0)}getMergedRanges(){if(!this.shouldRecompute)return this.ranges;this.shouldRecompute=!1;const e=Array.from(this.hiddenAreas.values()).reduce(((e,t)=>function(e,t){const i=[];let n=0,o=0;for(;n{this._onDidChangeConfiguration.fire(e);const t=this._configuration.options;if(e.hasChanged(146)){const e=t.get(146);this._onDidLayoutChange.fire(e)}}))),this._contextKeyService=this._register(a.createScoped(this._domElement)),this._notificationService=u,this._codeEditorService=s,this._commandService=r,this._themeService=h,this._register(new Qs(this,this._contextKeyService)),this._register(new Zs(this,this._contextKeyService,m)),this._instantiationService=this._register(n.createChild(new Hs.a([Ws.fN,this._contextKeyService]))),this._modelData=null,this._focusTracker=new Ys(e,this._overflowWidgetsDomNode),this._register(this._focusTracker.onChange((()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())}))),this._contentWidgets={},this._overlayWidgets={},this._glyphMarginWidgets={},b=Array.isArray(i.contributions)?i.contributions:o.dS.getEditorContributions(),this._contributions.initialize(this,b,this._instantiationService);for(const e of o.dS.getEditorActions()){if(this._actions.has(e.id)){(0,d.dz)(new Error(`Cannot have two actions with the same id ${e.id}`));continue}const t=new qn.f(e.id,e.label,e.alias,e.metadata,null!==(v=e.precondition)&&void 0!==v?v:void 0,(t=>this._instantiationService.invokeFunction((i=>Promise.resolve(e.runEditorCommand(i,this,t))))),this._contextKeyService);this._actions.set(t.id,t)}const w=()=>!this._configuration.options.get(92)&&this._configuration.options.get(36).enabled;this._register(new l.pN(this._domElement,{onDragOver:e=>{if(!w())return;const t=this.getTargetAtClientPoint(e.clientX,e.clientY);(null==t?void 0:t.position)&&this.showDropIndicatorAt(t.position)},onDrop:async e=>{if(!w())return;if(this.removeDropIndicator(),!e.dataTransfer)return;const t=this.getTargetAtClientPoint(e.clientX,e.clientY);(null==t?void 0:t.position)&&this._onDropIntoEditor.fire({position:t.position,event:e})},onDragLeave:()=>{this.removeDropIndicator()},onDragEnd:()=>{this.removeDropIndicator()}})),this._codeEditorService.addCodeEditor(this)}writeScreenReaderContent(e){var t;null===(t=this._modelData)||void 0===t||t.view.writeScreenReaderContent(e)}_createConfiguration(e,t,i,n){return new U(e,t,i,this._domElement,n)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return Gn._.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose(),this._actions.clear(),this._contentWidgets={},this._overlayWidgets={},this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),super.dispose()}invokeWithinContext(e){return this._instantiationService.invokeFunction(e)}updateOptions(e){this._configuration.updateOptions(e||{})}getOptions(){return this._configuration.options}getOption(e){return this._configuration.options.get(e)}getRawOptions(){return this._configuration.getRawOptions()}getOverflowWidgetsDomNode(){return this._overflowWidgetsDomNode}getConfiguredWordAtPosition(e){return this._modelData?Kn.z.getWordAtPosition(this._modelData.model,this._configuration.options.get(132),this._configuration.options.get(131),e):null}getValue(e=null){if(!this._modelData)return"";const t=!(!e||!e.preserveBOM);let i=0;return e&&e.lineEnding&&"\n"===e.lineEnding?i=1:e&&e.lineEnding&&"\r\n"===e.lineEnding&&(i=2),this._modelData.model.getValue(i,t)}setValue(e){try{if(this._beginUpdate(),!this._modelData)return;this._modelData.model.setValue(e)}finally{this._endUpdate()}}getModel(){return this._modelData?this._modelData.model:null}setModel(e=null){var t;try{this._beginUpdate();const i=e;if(null===this._modelData&&null===i)return;if(this._modelData&&this._modelData.model===i)return;const n={oldModelUrl:(null===(t=this._modelData)||void 0===t?void 0:t.model.uri)||null,newModelUrl:(null==i?void 0:i.uri)||null};this._onWillChangeModel.fire(n);const o=this.hasTextFocus(),s=this._detachModel();this._attachModel(i),o&&this.hasModel()&&this.focus(),this._removeDecorationTypes(),this._onDidChangeModel.fire(n),this._postDetachModelCleanup(s),this._contributionsDisposable=this._contributions.onAfterModelAttached()}finally{this._endUpdate()}}_removeDecorationTypes(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(const e in this._decorationTypeSubtypes){const t=this._decorationTypeSubtypes[e];for(const i in t)this._removeDecorationType(e+"-"+i)}this._decorationTypeSubtypes={}}}getVisibleRanges(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]}getVisibleRangesPlusViewportAboveBelow(){return this._modelData?this._modelData.viewModel.getVisibleRangesPlusViewportAboveBelow():[]}getWhitespaces(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]}static _getVerticalOffsetAfterPosition(e,t,i,n){const o=e.model.validatePosition({lineNumber:t,column:i}),s=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(o);return e.viewModel.viewLayout.getVerticalOffsetAfterLineNumber(s.lineNumber,n)}getTopForLineNumber(e,t=!1){return this._modelData?Fs._getVerticalOffsetForPosition(this._modelData,e,1,t):-1}getTopForPosition(e,t){return this._modelData?Fs._getVerticalOffsetForPosition(this._modelData,e,t,!1):-1}static _getVerticalOffsetForPosition(e,t,i,n=!1){const o=e.model.validatePosition({lineNumber:t,column:i}),s=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(o);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(s.lineNumber,n)}getBottomForLineNumber(e,t=!1){return this._modelData?Fs._getVerticalOffsetAfterPosition(this._modelData,e,1,t):-1}setHiddenAreas(e,t){var i;null===(i=this._modelData)||void 0===i||i.viewModel.setHiddenAreas(e.map((e=>re.Q.lift(e))),t)}getVisibleColumnFromPosition(e){if(!this._modelData)return e.column;const t=this._modelData.model.validatePosition(e),i=this._modelData.model.getOptions().tabSize;return ae.A.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,i)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(e,t="api"){if(this._modelData){if(!se.y.isIPosition(e))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}}_sendRevealRange(e,t,i,n){if(!this._modelData)return;if(!re.Q.isIRange(e))throw new Error("Invalid arguments");const o=this._modelData.model.validateRange(e),s=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(o);this._modelData.viewModel.revealRange("api",i,s,t,n)}revealLine(e,t=0){this._revealLine(e,0,t)}revealLineInCenter(e,t=0){this._revealLine(e,1,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._revealLine(e,2,t)}revealLineNearTop(e,t=0){this._revealLine(e,5,t)}_revealLine(e,t,i){if("number"!=typeof e)throw new Error("Invalid arguments");this._sendRevealRange(new re.Q(e,1,e,1),t,!1,i)}revealPosition(e,t=0){this._revealPosition(e,0,!0,t)}revealPositionInCenter(e,t=0){this._revealPosition(e,1,!0,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._revealPosition(e,2,!0,t)}revealPositionNearTop(e,t=0){this._revealPosition(e,5,!0,t)}_revealPosition(e,t,i,n){if(!se.y.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new re.Q(e.lineNumber,e.column,e.lineNumber,e.column),t,i,n)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(e,t="api"){const i=Le.L.isISelection(e),n=re.Q.isIRange(e);if(!i&&!n)throw new Error("Invalid arguments");if(i)this._setSelectionImpl(e,t);else if(n){const i={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(i,t)}}_setSelectionImpl(e,t){if(!this._modelData)return;const i=new Le.L(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.viewModel.setSelections(t,[i])}revealLines(e,t,i=0){this._revealLines(e,t,0,i)}revealLinesInCenter(e,t,i=0){this._revealLines(e,t,1,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._revealLines(e,t,2,i)}revealLinesNearTop(e,t,i=0){this._revealLines(e,t,5,i)}_revealLines(e,t,i,n){if("number"!=typeof e||"number"!=typeof t)throw new Error("Invalid arguments");this._sendRevealRange(new re.Q(e,1,t,1),i,!1,n)}revealRange(e,t=0,i=!1,n=!0){this._revealRange(e,i?1:0,n,t)}revealRangeInCenter(e,t=0){this._revealRange(e,1,!0,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._revealRange(e,2,!0,t)}revealRangeNearTop(e,t=0){this._revealRange(e,5,!0,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._revealRange(e,6,!0,t)}revealRangeAtTop(e,t=0){this._revealRange(e,3,!0,t)}_revealRange(e,t,i,n){if(!re.Q.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(re.Q.lift(e),t,i,n)}setSelections(e,t="api",i=0){if(this._modelData){if(!e||0===e.length)throw new Error("Invalid arguments");for(let t=0,i=e.length;t0&&this._modelData.viewModel.restoreCursorState(e):this._modelData.viewModel.restoreCursorState([e]),this._contributions.restoreViewState(t.contributionsState||{});const i=this._modelData.viewModel.reduceRestoreState(t.viewState);this._modelData.view.restoreState(i)}}handleInitialized(){var e;null===(e=this._getViewModel())||void 0===e||e.visibleLinesStabilized()}getContribution(e){return this._contributions.get(e)}getActions(){return Array.from(this._actions.values())}getSupportedActions(){let e=this.getActions();return e=e.filter((e=>e.isSupported())),e}getAction(e){return this._actions.get(e)||null}trigger(e,t,i){i=i||{};try{switch(this._beginUpdate(),t){case"compositionStart":return void this._startComposition();case"compositionEnd":return void this._endComposition(e);case"type":{const t=i;return void this._type(e,t.text||"")}case"replacePreviousChar":{const t=i;return void this._compositionType(e,t.text||"",t.replaceCharCnt||0,0,0)}case"compositionType":{const t=i;return void this._compositionType(e,t.text||"",t.replacePrevCharCnt||0,t.replaceNextCharCnt||0,t.positionDelta||0)}case"paste":{const t=i;return void this._paste(e,t.text||"",t.pasteOnNewLine||!1,t.multicursorText||null,t.mode||null,t.clipboardEvent)}case"cut":return void this._cut(e)}const n=this.getAction(t);if(n)return void Promise.resolve(n.run(i)).then(void 0,d.dz);if(!this._modelData)return;if(this._triggerEditorCommand(e,t,i))return;this._triggerCommand(t,i)}finally{this._endUpdate()}}_triggerCommand(e,t){this._commandService.executeCommand(e,t)}_startComposition(){this._modelData&&(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(e){this._modelData&&(this._modelData.viewModel.endComposition(e),this._onDidCompositionEnd.fire())}_type(e,t){this._modelData&&0!==t.length&&("keyboard"===e&&this._onWillType.fire(t),this._modelData.viewModel.type(t,e),"keyboard"===e&&this._onDidType.fire(t))}_compositionType(e,t,i,n,o){this._modelData&&this._modelData.viewModel.compositionType(t,i,n,o,e)}_paste(e,t,i,n,o,s){if(!this._modelData)return;const r=this._modelData.viewModel,a=r.getSelection().getStartPosition();r.paste(t,i,n,e);const l=r.getSelection().getStartPosition();"keyboard"===e&&this._onDidPaste.fire({clipboardEvent:s,range:new re.Q(a.lineNumber,a.column,l.lineNumber,l.column),languageId:o})}_cut(e){this._modelData&&this._modelData.viewModel.cut(e)}_triggerEditorCommand(e,t,i){const n=o.dS.getEditorCommand(t);return!!n&&((i=i||{}).source=e,this._instantiationService.invokeFunction((e=>{Promise.resolve(n.runEditorCommand(e,this,i)).then(void 0,d.dz)})),!0)}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!!this._modelData&&!this._configuration.options.get(92)&&(this._modelData.model.pushStackElement(),!0)}popUndoStop(){return!!this._modelData&&!this._configuration.options.get(92)&&(this._modelData.model.popStackElement(),!0)}executeEdits(e,t,i){if(!this._modelData)return!1;if(this._configuration.options.get(92))return!1;let n;return n=i?Array.isArray(i)?()=>i:i:()=>null,this._modelData.viewModel.executeEdits(e,t,n),!0}executeCommand(e,t){this._modelData&&this._modelData.viewModel.executeCommand(t,e)}executeCommands(e,t){this._modelData&&this._modelData.viewModel.executeCommands(t,e)}createDecorationsCollection(e){return new Xs(this,e)}changeDecorations(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null}getLineDecorations(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,(0,W.$C)(this._configuration.options)):null}getDecorationsInRange(e){return this._modelData?this._modelData.model.getDecorationsInRange(e,this._id,(0,W.$C)(this._configuration.options)):null}deltaDecorations(e,t){return this._modelData?0===e.length&&0===t.length?e:this._modelData.model.deltaDecorations(e,t,this._id):[]}removeDecorations(e){this._modelData&&0!==e.length&&this._modelData.model.changeDecorations((t=>{t.deltaDecorations(e,[])}))}removeDecorationsByType(e){const t=this._decorationTypeKeysToIds[e];t&&this.changeDecorations((e=>e.deltaDecorations(t,[]))),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]}getLayoutInfo(){return this._configuration.options.get(146)}createOverviewRuler(e){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(e):null}getContainerDomNode(){return this._domElement}getDomNode(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null}delegateVerticalScrollbarPointerDown(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarPointerDown(e)}delegateScrollFromMouseWheelEvent(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateScrollFromMouseWheelEvent(e)}layout(e,t=!1){this._configuration.observeContainer(e),t||this.render()}focus(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus()}hasTextFocus(){return!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(e){const t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id:"+e.getId()),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)}layoutContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const i=this._contentWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(i)}}removeContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const e=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(e)}}addOverlayWidget(e){const t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)}layoutOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const i=this._overlayWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(i)}}removeOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const e=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(e)}}addGlyphMarginWidget(e){const t={widget:e,position:e.getPosition()};this._glyphMarginWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a glyph margin widget with the same id."),this._glyphMarginWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addGlyphMarginWidget(t)}layoutGlyphMarginWidget(e){const t=e.getId();if(this._glyphMarginWidgets.hasOwnProperty(t)){const i=this._glyphMarginWidgets[t];i.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutGlyphMarginWidget(i)}}removeGlyphMarginWidget(e){const t=e.getId();if(this._glyphMarginWidgets.hasOwnProperty(t)){const e=this._glyphMarginWidgets[t];delete this._glyphMarginWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeGlyphMarginWidget(e)}}changeViewZones(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.change(e)}getTargetAtClientPoint(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(e,t):null}getScrolledVisiblePosition(e){if(!this._modelData||!this._modelData.hasRealView)return null;const t=this._modelData.model.validatePosition(e),i=this._configuration.options,n=i.get(146);return{top:Fs._getVerticalOffsetForPosition(this._modelData,t.lineNumber,t.column)-this.getScrollTop(),left:this._modelData.view.getOffsetForColumn(t.lineNumber,t.column)+n.glyphMarginWidth+n.lineNumbersWidth+n.decorationsWidth-this.getScrollLeft(),height:i.get(67)}}getOffsetForColumn(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(e,t):-1}render(e=!1){this._modelData&&this._modelData.hasRealView&&this._modelData.viewModel.batchEvents((()=>{this._modelData.view.render(!0,e)}))}setAriaOptions(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.setAriaOptions(e)}applyFontInfo(e){(0,D.M)(e,this._configuration.options.get(50))}setBanner(e,t){this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._bannerDomNode.remove(),this._bannerDomNode=e,this._configuration.setReservedHeight(e?t:0),this._bannerDomNode&&this._domElement.prepend(this._bannerDomNode)}_attachModel(e){if(!e)return void(this._modelData=null);const t=[];this._domElement.setAttribute("data-mode-id",e.getLanguageId()),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setModelLineCount(e.getLineCount());const i=e.onBeforeAttached(),n=new Ms(this._id,this._configuration,e,Hn.create(l.zk(this._domElement)),eo.create(this._configuration.options),(e=>l.PG(l.zk(this._domElement),e)),this.languageConfigurationService,this._themeService,i,{batchChanges:e=>{try{return this._beginUpdate(),e()}finally{this._endUpdate()}}});t.push(e.onWillDispose((()=>this.setModel(null)))),t.push(n.onEvent((t=>{switch(t.kind){case 0:this._onDidContentSizeChange.fire(t);break;case 1:this._editorTextFocus.setValue(t.hasFocus);break;case 2:this._onDidScrollChange.fire(t);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidChangeHiddenAreas.fire();break;case 5:this._onDidAttemptReadOnlyEdit.fire();break;case 6:{if(t.reachedMaxCursorCount){const e=this.getOption(80),t=We.k("cursors.maximum","The number of cursors has been limited to {0}. Consider using [find and replace](https://code.visualstudio.com/docs/editor/codebasics#_find-and-replace) for larger changes or increase the editor multi cursor limit setting.",e);this._notificationService.prompt(Vs.AI.Warning,t,[{label:"Find and Replace",run:()=>{this._commandService.executeCommand("editor.action.startFindReplaceAction")}},{label:We.k("goToSetting","Increase Multi Cursor Limit"),run:()=>{this._commandService.executeCommand("workbench.action.openSettings2",{query:"editor.multiCursorLimit"})}}])}const e=[];for(let i=0,n=t.selections.length;i{this._paste("keyboard",e,t,i,n)},type:e=>{this._type("keyboard",e)},compositionType:(e,t,i,n)=>{this._compositionType("keyboard",e,t,i,n)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:{paste:(e,t,i,n)=>{const o={text:e,pasteOnNewLine:t,multicursorText:i,mode:n};this._commandService.executeCommand("paste",o)},type:e=>{const t={text:e};this._commandService.executeCommand("type",t)},compositionType:(e,t,i,n)=>{if(i||n){const o={text:e,replacePrevCharCnt:t,replaceNextCharCnt:i,positionDelta:n};this._commandService.executeCommand("compositionType",o)}else{const i={text:e,replaceCharCnt:t};this._commandService.executeCommand("replacePreviousChar",i)}},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};const i=new Ct(e.coordinatesConverter);return i.onKeyDown=e=>this._onKeyDown.fire(e),i.onKeyUp=e=>this._onKeyUp.fire(e),i.onContextMenu=e=>this._onContextMenu.fire(e),i.onMouseMove=e=>this._onMouseMove.fire(e),i.onMouseLeave=e=>this._onMouseLeave.fire(e),i.onMouseDown=e=>this._onMouseDown.fire(e),i.onMouseUp=e=>this._onMouseUp.fire(e),i.onMouseDrag=e=>this._onMouseDrag.fire(e),i.onMouseDrop=e=>this._onMouseDrop.fire(e),i.onMouseDropCanceled=e=>this._onMouseDropCanceled.fire(e),i.onMouseWheel=e=>this._onMouseWheel.fire(e),[new Nn(t,this._configuration,this._themeService.getColorTheme(),e,i,this._overflowWidgetsDomNode,this._instantiationService),!0]}_postDetachModelCleanup(e){null==e||e.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){var e;if(null===(e=this._contributionsDisposable)||void 0===e||e.dispose(),this._contributionsDisposable=void 0,!this._modelData)return null;const t=this._modelData.model,i=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),i&&this._domElement.contains(i)&&i.remove(),this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._bannerDomNode.remove(),t}_removeDecorationType(e){this._codeEditorService.removeDecorationType(e)}hasModel(){return null!==this._modelData}showDropIndicatorAt(e){const t=[{range:new re.Q(e.lineNumber,e.column,e.lineNumber,e.column),options:Fs.dropIntoEditorDecorationOptions}];this._dropIntoEditorDecorations.set(t),this.revealPosition(e,1)}removeDropIndicator(){this._dropIntoEditorDecorations.clear()}setContextValue(e,t){this._contextKeyService.createKey(e,t)}_beginUpdate(){this._updateCounter++,1===this._updateCounter&&this._onBeginUpdate.fire()}_endUpdate(){this._updateCounter--,0===this._updateCounter&&this._onEndUpdate.fire()}};Us.dropIntoEditorDecorationOptions=Yn.kI.register({description:"workbench-dnd-target",className:"dnd-target"}),Us=Fs=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([js(3,st._Y),js(4,Z.T),js(5,Bs.d),js(6,Ws.fN),js(7,$e.Gy),js(8,Vs.Ot),js(9,z.j),js(10,Zn.JZ),js(11,Xn.u)],Us);let $s=0;class Ks{constructor(e,t,i,n,o,s){this.model=e,this.viewModel=t,this.view=i,this.hasRealView=n,this.listenersToRemove=o,this.attachedView=s}dispose(){(0,h.AS)(this.listenersToRemove),this.model.onBeforeDetached(this.attachedView),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}}class qs extends h.jG{constructor(e){super(),this._emitterOptions=e,this._onDidChangeToTrue=this._register(new c.vl(this._emitterOptions)),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new c.vl(this._emitterOptions)),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(e){const t=e?2:1;this._value!==t&&(this._value=t,2===this._value?this._onDidChangeToTrue.fire():1===this._value&&this._onDidChangeToFalse.fire())}}class Gs extends c.vl{constructor(e,t){super({deliveryQueue:t}),this._contributions=e}fire(e){this._contributions.onBeforeInteractionEvent(),super.fire(e)}}class Qs extends h.jG{constructor(e,t){super(),this._editor=e,t.createKey("editorId",e.getId()),this._editorSimpleInput=Qn.R.editorSimpleInput.bindTo(t),this._editorFocus=Qn.R.focus.bindTo(t),this._textInputFocus=Qn.R.textInputFocus.bindTo(t),this._editorTextFocus=Qn.R.editorTextFocus.bindTo(t),this._tabMovesFocus=Qn.R.tabMovesFocus.bindTo(t),this._editorReadonly=Qn.R.readOnly.bindTo(t),this._inDiffEditor=Qn.R.inDiffEditor.bindTo(t),this._editorColumnSelection=Qn.R.columnSelection.bindTo(t),this._hasMultipleSelections=Qn.R.hasMultipleSelections.bindTo(t),this._hasNonEmptySelection=Qn.R.hasNonEmptySelection.bindTo(t),this._canUndo=Qn.R.canUndo.bindTo(t),this._canRedo=Qn.R.canRedo.bindTo(t),this._register(this._editor.onDidChangeConfiguration((()=>this._updateFromConfig()))),this._register(this._editor.onDidChangeCursorSelection((()=>this._updateFromSelection()))),this._register(this._editor.onDidFocusEditorWidget((()=>this._updateFromFocus()))),this._register(this._editor.onDidBlurEditorWidget((()=>this._updateFromFocus()))),this._register(this._editor.onDidFocusEditorText((()=>this._updateFromFocus()))),this._register(this._editor.onDidBlurEditorText((()=>this._updateFromFocus()))),this._register(this._editor.onDidChangeModel((()=>this._updateFromModel()))),this._register(this._editor.onDidChangeConfiguration((()=>this._updateFromModel()))),this._register(B.M.onDidChangeTabFocus((e=>this._tabMovesFocus.set(e)))),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){const e=this._editor.getOptions();this._tabMovesFocus.set(B.M.getTabFocusMode()),this._editorReadonly.set(e.get(92)),this._inDiffEditor.set(e.get(61)),this._editorColumnSelection.set(e.get(22))}_updateFromSelection(){const e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some((e=>!e.isEmpty())))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){const e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))}}class Zs extends h.jG{constructor(e,t,i){super(),this._editor=e,this._contextKeyService=t,this._languageFeaturesService=i,this._langId=Qn.R.languageId.bindTo(t),this._hasCompletionItemProvider=Qn.R.hasCompletionItemProvider.bindTo(t),this._hasCodeActionsProvider=Qn.R.hasCodeActionsProvider.bindTo(t),this._hasCodeLensProvider=Qn.R.hasCodeLensProvider.bindTo(t),this._hasDefinitionProvider=Qn.R.hasDefinitionProvider.bindTo(t),this._hasDeclarationProvider=Qn.R.hasDeclarationProvider.bindTo(t),this._hasImplementationProvider=Qn.R.hasImplementationProvider.bindTo(t),this._hasTypeDefinitionProvider=Qn.R.hasTypeDefinitionProvider.bindTo(t),this._hasHoverProvider=Qn.R.hasHoverProvider.bindTo(t),this._hasDocumentHighlightProvider=Qn.R.hasDocumentHighlightProvider.bindTo(t),this._hasDocumentSymbolProvider=Qn.R.hasDocumentSymbolProvider.bindTo(t),this._hasReferenceProvider=Qn.R.hasReferenceProvider.bindTo(t),this._hasRenameProvider=Qn.R.hasRenameProvider.bindTo(t),this._hasSignatureHelpProvider=Qn.R.hasSignatureHelpProvider.bindTo(t),this._hasInlayHintsProvider=Qn.R.hasInlayHintsProvider.bindTo(t),this._hasDocumentFormattingProvider=Qn.R.hasDocumentFormattingProvider.bindTo(t),this._hasDocumentSelectionFormattingProvider=Qn.R.hasDocumentSelectionFormattingProvider.bindTo(t),this._hasMultipleDocumentFormattingProvider=Qn.R.hasMultipleDocumentFormattingProvider.bindTo(t),this._hasMultipleDocumentSelectionFormattingProvider=Qn.R.hasMultipleDocumentSelectionFormattingProvider.bindTo(t),this._isInEmbeddedEditor=Qn.R.isInEmbeddedEditor.bindTo(t);const n=()=>this._update();this._register(e.onDidChangeModel(n)),this._register(e.onDidChangeModelLanguage(n)),this._register(i.completionProvider.onDidChange(n)),this._register(i.codeActionProvider.onDidChange(n)),this._register(i.codeLensProvider.onDidChange(n)),this._register(i.definitionProvider.onDidChange(n)),this._register(i.declarationProvider.onDidChange(n)),this._register(i.implementationProvider.onDidChange(n)),this._register(i.typeDefinitionProvider.onDidChange(n)),this._register(i.hoverProvider.onDidChange(n)),this._register(i.documentHighlightProvider.onDidChange(n)),this._register(i.documentSymbolProvider.onDidChange(n)),this._register(i.referenceProvider.onDidChange(n)),this._register(i.renameProvider.onDidChange(n)),this._register(i.documentFormattingEditProvider.onDidChange(n)),this._register(i.documentRangeFormattingEditProvider.onDidChange(n)),this._register(i.signatureHelpProvider.onDidChange(n)),this._register(i.inlayHintsProvider.onDidChange(n)),n()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents((()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInEmbeddedEditor.reset()}))}_update(){const e=this._editor.getModel();e?this._contextKeyService.bufferChangeEvents((()=>{this._langId.set(e.getLanguageId()),this._hasCompletionItemProvider.set(this._languageFeaturesService.completionProvider.has(e)),this._hasCodeActionsProvider.set(this._languageFeaturesService.codeActionProvider.has(e)),this._hasCodeLensProvider.set(this._languageFeaturesService.codeLensProvider.has(e)),this._hasDefinitionProvider.set(this._languageFeaturesService.definitionProvider.has(e)),this._hasDeclarationProvider.set(this._languageFeaturesService.declarationProvider.has(e)),this._hasImplementationProvider.set(this._languageFeaturesService.implementationProvider.has(e)),this._hasTypeDefinitionProvider.set(this._languageFeaturesService.typeDefinitionProvider.has(e)),this._hasHoverProvider.set(this._languageFeaturesService.hoverProvider.has(e)),this._hasDocumentHighlightProvider.set(this._languageFeaturesService.documentHighlightProvider.has(e)),this._hasDocumentSymbolProvider.set(this._languageFeaturesService.documentSymbolProvider.has(e)),this._hasReferenceProvider.set(this._languageFeaturesService.referenceProvider.has(e)),this._hasRenameProvider.set(this._languageFeaturesService.renameProvider.has(e)),this._hasSignatureHelpProvider.set(this._languageFeaturesService.signatureHelpProvider.has(e)),this._hasInlayHintsProvider.set(this._languageFeaturesService.inlayHintsProvider.has(e)),this._hasDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.has(e)||this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.has(e)),this._hasMultipleDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.all(e).length+this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.all(e).length>1),this._isInEmbeddedEditor.set(e.uri.scheme===u.ny.walkThroughSnippet||e.uri.scheme===u.ny.vscodeChatCodeBlock)})):this.reset()}}class Ys extends h.jG{constructor(e,t){super(),this._onChange=this._register(new c.vl),this.onChange=this._onChange.event,this._hadFocus=void 0,this._hasDomElementFocus=!1,this._domFocusTracker=this._register(l.w5(e)),this._overflowWidgetsDomNodeHasFocus=!1,this._register(this._domFocusTracker.onDidFocus((()=>{this._hasDomElementFocus=!0,this._update()}))),this._register(this._domFocusTracker.onDidBlur((()=>{this._hasDomElementFocus=!1,this._update()}))),t&&(this._overflowWidgetsDomNode=this._register(l.w5(t)),this._register(this._overflowWidgetsDomNode.onDidFocus((()=>{this._overflowWidgetsDomNodeHasFocus=!0,this._update()}))),this._register(this._overflowWidgetsDomNode.onDidBlur((()=>{this._overflowWidgetsDomNodeHasFocus=!1,this._update()}))))}_update(){const e=this._hasDomElementFocus||this._overflowWidgetsDomNodeHasFocus;this._hadFocus!==e&&(this._hadFocus=e,this._onChange.fire(void 0))}hasFocus(){var e;return null!==(e=this._hadFocus)&&void 0!==e&&e}}class Xs{get length(){return this._decorationIds.length}constructor(e,t){this._editor=e,this._decorationIds=[],this._isChangingDecorations=!1,Array.isArray(t)&&t.length>0&&this.set(t)}onDidChange(e,t,i){return this._editor.onDidChangeModelDecorations((i=>{this._isChangingDecorations||e.call(t,i)}),i)}getRange(e){return this._editor.hasModel()?e>=this._decorationIds.length?null:this._editor.getModel().getDecorationRange(this._decorationIds[e]):null}getRanges(){if(!this._editor.hasModel())return[];const e=this._editor.getModel(),t=[];for(const i of this._decorationIds){const n=e.getDecorationRange(i);n&&t.push(n)}return t}has(e){return this._decorationIds.includes(e.id)}clear(){0!==this._decorationIds.length&&this.set([])}set(e){try{this._isChangingDecorations=!0,this._editor.changeDecorations((t=>{this._decorationIds=t.deltaDecorations(this._decorationIds,e)}))}finally{this._isChangingDecorations=!1}return this._decorationIds}append(e){let t=[];try{this._isChangingDecorations=!0,this._editor.changeDecorations((i=>{t=i.deltaDecorations([],e),this._decorationIds=this._decorationIds.concat(t)}))}finally{this._isChangingDecorations=!1}return t}}const Js=encodeURIComponent("");function tr(e){return Js+encodeURIComponent(e.toString())+er}const ir=encodeURIComponent('');(0,$e.zy)(((e,t)=>{const i=e.getColor(Li.Rbi);i&&t.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${tr(i)}") repeat-x bottom left; }`);const n=e.getColor(Li.Hng);n&&t.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${tr(n)}") repeat-x bottom left; }`);const o=e.getColor(Li.pOz);o&&t.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${tr(o)}") repeat-x bottom left; }`);const s=e.getColor(Li.i61);s&&t.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${function(e){return ir+encodeURIComponent(e.toString())+nr}(s)}") no-repeat bottom left; }`);const r=e.getColor(Ke.yw);r&&t.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${r.rgba.a}; }`)}))},24665:(e,t,i)=>{"use strict";i.d(t,{t:()=>m});var n=i(71386),o=i(87301),s=i(6233),r=i(52394),a=i(52230),l=i(53909),d=i(59715),c=i(31540),h=i(82399),u=i(29879),g=i(89044),p=function(e,t){return function(i,n){t(i,n,e)}};let m=class extends s.CodeEditorWidget{constructor(e,t,i,n,o,s,r,a,l,d,c,h,u){super(e,{...n.getRawOptions(),overflowWidgetsDomNode:n.getOverflowWidgetsDomNode()},i,o,s,r,a,l,d,c,h,u),this._parentEditor=n,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(n.onDidChangeConfiguration((e=>this._onParentConfigurationChanged(e))))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){n.co(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};m=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([p(4,h._Y),p(5,o.T),p(6,d.d),p(7,c.fN),p(8,g.Gy),p(9,u.Ot),p(10,l.j),p(11,r.JZ),p(12,a.u)],m)},35143:(e,t,i)=>{"use strict";i.r(t);var n=i(26048),o=i(14333),s=i(50946),r=i(87301),a=i(85518),l=i(38122),d=i(3765),c=i(58067),h=i(85753),u=i(31540);i(36811);class g extends c.L{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:(0,d.a)("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:n.W.map,toggled:u.M$.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:u.M$.has("isInDiffEditor"),menu:{when:u.M$.has("isInDiffEditor"),id:c.D8.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(h.pG),n=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",n)}}class p extends c.L{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:(0,d.a)("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:u.M$.has("isInDiffEditor")})}run(e,...t){const i=e.get(h.pG),n=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",n)}}class m extends c.L{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:(0,d.a)("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:u.M$.has("isInDiffEditor")})}run(e,...t){const i=e.get(h.pG),n=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",n)}}const f=(0,d.a)("diffEditor","Diff Editor");class v extends s.qO{constructor(){super({id:"diffEditor.switchSide",title:(0,d.a)("switchSide","Switch Side"),icon:n.W.arrowSwap,precondition:u.M$.has("isInDiffEditor"),f1:!0,category:f})}runEditorCommand(e,t,i){const n=x(e);if(n instanceof a.T){if(i&&i.dryRun)return{destinationSelection:n.mapToOtherSide().destinationSelection};n.switchSide()}}}class _ extends s.qO{constructor(){super({id:"diffEditor.exitCompareMove",title:(0,d.a)("exitCompareMove","Exit Compare Move"),icon:n.W.close,precondition:l.R.comparingMovedCode,f1:!1,category:f,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const n=x(e);n instanceof a.T&&n.exitCompareMove()}}class b extends s.qO{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:(0,d.a)("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:n.W.fold,precondition:u.M$.has("isInDiffEditor"),f1:!0,category:f})}runEditorCommand(e,t,...i){const n=x(e);n instanceof a.T&&n.collapseAllUnchangedRegions()}}class w extends s.qO{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:(0,d.a)("showAllUnchangedRegions","Show All Unchanged Regions"),icon:n.W.unfold,precondition:u.M$.has("isInDiffEditor"),f1:!0,category:f})}runEditorCommand(e,t,...i){const n=x(e);n instanceof a.T&&n.showAllUnchangedRegions()}}class y extends c.L{constructor(){super({id:"diffEditor.revert",title:(0,d.a)("revert","Revert"),f1:!1,category:f})}run(e,t){var i;const n=function(e,t,i){return e.get(r.T).listDiffEditors().find((e=>{var n,o;const s=e.getModifiedEditor(),r=e.getOriginalEditor();return s&&(null===(n=s.getModel())||void 0===n?void 0:n.uri.toString())===i.toString()&&r&&(null===(o=r.getModel())||void 0===o?void 0:o.uri.toString())===t.toString()}))||null}(e,t.originalUri,t.modifiedUri);n instanceof a.T&&n.revertRangeMappings(null!==(i=t.mapping.innerChanges)&&void 0!==i?i:[])}}const C=(0,d.a)("accessibleDiffViewer","Accessible Diff Viewer");class k extends c.L{constructor(){super({id:k.id,title:(0,d.a)("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:C,precondition:u.M$.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){const t=x(e);null==t||t.accessibleDiffViewerNext()}}k.id="editor.action.accessibleDiffViewer.next";class S extends c.L{constructor(){super({id:S.id,title:(0,d.a)("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:C,precondition:u.M$.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){const t=x(e);null==t||t.accessibleDiffViewerPrev()}}function x(e){const t=e.get(r.T).listDiffEditors(),i=(0,o.bq)();if(i)for(const e of t)if(L(e.getContainerDomNode(),i))return e;return null}function L(e,t){let i=t;for(;i;){if(i===e)return!0;i=i.parentElement}return!1}S.id="editor.action.accessibleDiffViewer.prev";var D=i(59715);(0,c.ug)(g),(0,c.ug)(p),(0,c.ug)(m),c.ZG.appendMenuItem(c.D8.EditorTitle,{command:{id:(new m).desc.id,title:(0,d.k)("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:u.M$.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:u.M$.has("isInDiffEditor")},order:11,group:"1_diff",when:u.M$.and(l.R.diffEditorRenderSideBySideInlineBreakpointReached,u.M$.has("isInDiffEditor"))}),c.ZG.appendMenuItem(c.D8.EditorTitle,{command:{id:(new p).desc.id,title:(0,d.k)("showMoves","Show Moved Code Blocks"),icon:n.W.move,toggled:u.f1.create("config.diffEditor.experimental.showMoves",!0),precondition:u.M$.has("isInDiffEditor")},order:10,group:"1_diff",when:u.M$.has("isInDiffEditor")}),(0,c.ug)(y);for(const e of[{icon:n.W.arrowRight,key:l.R.diffEditorInlineMode.toNegated()},{icon:n.W.discard,key:l.R.diffEditorInlineMode}])c.ZG.appendMenuItem(c.D8.DiffEditorHunkToolbar,{command:{id:(new y).desc.id,title:(0,d.k)("revertHunk","Revert Block"),icon:e.icon},when:u.M$.and(l.R.diffEditorModifiedWritable,e.key),order:5,group:"primary"}),c.ZG.appendMenuItem(c.D8.DiffEditorSelectionToolbar,{command:{id:(new y).desc.id,title:(0,d.k)("revertSelection","Revert Selection"),icon:e.icon},when:u.M$.and(l.R.diffEditorModifiedWritable,e.key),order:5,group:"primary"});(0,c.ug)(v),(0,c.ug)(_),(0,c.ug)(b),(0,c.ug)(w),c.ZG.appendMenuItem(c.D8.EditorTitle,{command:{id:k.id,title:(0,d.k)("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:u.M$.has("isInDiffEditor")},order:10,group:"2_diff",when:u.M$.and(l.R.accessibleDiffViewerVisible.negate(),u.M$.has("isInDiffEditor"))}),D.w.registerCommandAlias("editor.action.diffReview.next",k.id),(0,c.ug)(k),D.w.registerCommandAlias("editor.action.diffReview.prev",S.id),(0,c.ug)(S)},85518:(e,t,i)=>{"use strict";i.d(t,{T:()=>Ut});var n=i(14333),o=i(97393),s=i(94327),r=i(2106),a=i(10998),l=i(16311),d=i(18366),c=i(85072),h=i.n(c),u=i(97825),g=i.n(u),p=i(77659),m=i.n(p),f=i(55056),v=i.n(f),_=i(10540),b=i.n(_),w=i(41113),y=i.n(w),C=i(41921),k={};k.styleTagTransform=y(),k.setAttributes=v(),k.insert=m().bind(null,"head"),k.domAPI=g(),k.insertStyleElement=b(),h()(C.A,k),C.A&&C.A.locals&&C.A.locals;var S=i(50946),x=i(87301),L=i(80878),D=i(6233),E=i(13021),I=i(77439),N=i(75239),M=i(27969),A=i(13338),T=i(26048),R=i(58881),P=i(25837),O=i(2744),F=i(66476),B=i(79955),W=i(72532),H=i(15365),V=i(28061),z=i(39331),j=i(77922),U=i(57445),$=i(39723),K=i(11608),q=i(3765),G=i(71285),Q=i(82399),Z=i(11210),Y=i(52180),X={};X.styleTagTransform=y(),X.setAttributes=v(),X.insert=m().bind(null,"head"),X.domAPI=g(),X.insertStyleElement=b(),h()(Y.A,X),Y.A&&Y.A.locals&&Y.A.locals;var J=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},ee=function(e,t){return function(i,n){t(i,n,e)}};const te=(0,Z.pU)("diff-review-insert",T.W.add,(0,q.k)("accessibleDiffViewerInsertIcon","Icon for 'Insert' in accessible diff viewer.")),ie=(0,Z.pU)("diff-review-remove",T.W.remove,(0,q.k)("accessibleDiffViewerRemoveIcon","Icon for 'Remove' in accessible diff viewer.")),ne=(0,Z.pU)("diff-review-close",T.W.close,(0,q.k)("accessibleDiffViewerCloseIcon","Icon for 'Close' in accessible diff viewer."));let oe=class extends a.jG{constructor(e,t,i,n,o,s,r,a,d){super(),this._parentNode=e,this._visible=t,this._setVisible=i,this._canClose=n,this._width=o,this._height=s,this._diffs=r,this._models=a,this._instantiationService=d,this._state=(0,l.rm)(this,((e,t)=>{const i=this._visible.read(e);if(this._parentNode.style.visibility=i?"visible":"hidden",!i)return null;const n=t.add(this._instantiationService.createInstance(se,this._diffs,this._models,this._setVisible,this._canClose));return{model:n,view:t.add(this._instantiationService.createInstance(ge,this._parentNode,n,this._width,this._height,this._models))}})).recomputeInitiallyAndOnChange(this._store)}next(){(0,l.Rn)((e=>{const t=this._visible.get();this._setVisible(!0,e),t&&this._state.get().model.nextGroup(e)}))}prev(){(0,l.Rn)((e=>{this._setVisible(!0,e),this._state.get().model.previousGroup(e)}))}close(){(0,l.Rn)((e=>{this._setVisible(!1,e)}))}};oe._ttPolicy=(0,E.H)("diffReview",{createHTML:e=>e}),oe=J([ee(8,Q._Y)],oe);let se=class extends a.jG{constructor(e,t,i,n,o){super(),this._diffs=e,this._models=t,this._setVisible=i,this.canClose=n,this._accessibilitySignalService=o,this._groups=(0,l.FY)(this,[]),this._currentGroupIdx=(0,l.FY)(this,0),this._currentElementIdx=(0,l.FY)(this,0),this.groups=this._groups,this.currentGroup=this._currentGroupIdx.map(((e,t)=>this._groups.read(t)[e])),this.currentGroupIndex=this._currentGroupIdx,this.currentElement=this._currentElementIdx.map(((e,t)=>{var i;return null===(i=this.currentGroup.read(t))||void 0===i?void 0:i.lines[e]})),this._register((0,l.fm)((e=>{const t=this._diffs.read(e);if(!t)return void this._groups.set([],void 0);const i=function(e,t,i){const n=[];for(const o of(0,A.n)(e,((e,t)=>t.modified.startLineNumber-e.modified.endLineNumberExclusive<2*re))){const e=[];e.push(new de);const s=new B.M(Math.max(1,o[0].original.startLineNumber-re),Math.min(o[o.length-1].original.endLineNumberExclusive+re,t+1)),r=new B.M(Math.max(1,o[0].modified.startLineNumber-re),Math.min(o[o.length-1].modified.endLineNumberExclusive+re,i+1));(0,A.pN)(o,((t,i)=>{const n=new B.M(t?t.original.endLineNumberExclusive:s.startLineNumber,i?i.original.startLineNumber:s.endLineNumberExclusive),o=new B.M(t?t.modified.endLineNumberExclusive:r.startLineNumber,i?i.modified.startLineNumber:r.endLineNumberExclusive);n.forEach((t=>{e.push(new ue(t,o.startLineNumber+(t-n.startLineNumber)))})),i&&(i.original.forEach((t=>{e.push(new ce(i,t))})),i.modified.forEach((t=>{e.push(new he(i,t))})))}));const a=o[0].modified.join(o[o.length-1].modified),l=o[0].original.join(o[o.length-1].original);n.push(new le(new z.WL(a,l),e))}return n}(t,this._models.getOriginalModel().getLineCount(),this._models.getModifiedModel().getLineCount());(0,l.Rn)((e=>{const t=this._models.getModifiedPosition();if(t){const n=i.findIndex((e=>(null==t?void 0:t.lineNumber){const t=this.currentElement.read(e);(null==t?void 0:t.type)===ae.Deleted?this._accessibilitySignalService.playSignal(G.Rh.diffLineDeleted,{source:"accessibleDiffViewer.currentElementChanged"}):(null==t?void 0:t.type)===ae.Added&&this._accessibilitySignalService.playSignal(G.Rh.diffLineInserted,{source:"accessibleDiffViewer.currentElementChanged"})}))),this._register((0,l.fm)((e=>{var t;const i=this.currentElement.read(e);if(i&&i.type!==ae.Header){const e=null!==(t=i.modifiedLineNumber)&&void 0!==t?t:i.diff.modified.startLineNumber;this._models.modifiedSetSelection(V.Q.fromPositions(new H.y(e,1)))}})))}_goToGroupDelta(e,t){const i=this.groups.get();!i||i.length<=1||(0,l.PO)(t,(t=>{this._currentGroupIdx.set(W.L.ofLength(i.length).clipCyclic(this._currentGroupIdx.get()+e),t),this._currentElementIdx.set(0,t)}))}nextGroup(e){this._goToGroupDelta(1,e)}previousGroup(e){this._goToGroupDelta(-1,e)}_goToLineDelta(e){const t=this.currentGroup.get();!t||t.lines.length<=1||(0,l.Rn)((i=>{this._currentElementIdx.set(W.L.ofLength(t.lines.length).clip(this._currentElementIdx.get()+e),i)}))}goToNextLine(){this._goToLineDelta(1)}goToPreviousLine(){this._goToLineDelta(-1)}goToLine(e){const t=this.currentGroup.get();if(!t)return;const i=t.lines.indexOf(e);-1!==i&&(0,l.Rn)((e=>{this._currentElementIdx.set(i,e)}))}revealCurrentElementInEditor(){if(!this.canClose.get())return;this._setVisible(!1,void 0);const e=this.currentElement.get();e&&(e.type===ae.Deleted?this._models.originalReveal(V.Q.fromPositions(new H.y(e.originalLineNumber,1))):this._models.modifiedReveal(e.type!==ae.Header?V.Q.fromPositions(new H.y(e.modifiedLineNumber,1)):void 0))}close(){this.canClose.get()&&(this._setVisible(!1,void 0),this._models.modifiedFocus())}};se=J([ee(4,G.Nt)],se);const re=3;var ae;!function(e){e[e.Header=0]="Header",e[e.Unchanged=1]="Unchanged",e[e.Deleted=2]="Deleted",e[e.Added=3]="Added"}(ae||(ae={}));class le{constructor(e,t){this.range=e,this.lines=t}}class de{constructor(){this.type=ae.Header}}class ce{constructor(e,t){this.diff=e,this.originalLineNumber=t,this.type=ae.Deleted,this.modifiedLineNumber=void 0}}class he{constructor(e,t){this.diff=e,this.modifiedLineNumber=t,this.type=ae.Added,this.originalLineNumber=void 0}}class ue{constructor(e,t){this.originalLineNumber=e,this.modifiedLineNumber=t,this.type=ae.Unchanged}}let ge=class extends a.jG{constructor(e,t,i,o,s,r){super(),this._element=e,this._model=t,this._width=i,this._height=o,this._models=s,this._languageService=r,this.domNode=this._element,this.domNode.className="monaco-component diff-review monaco-editor-background";const d=document.createElement("div");d.className="diff-review-actions",this._actionBar=this._register(new I.E(d)),this._register((0,l.fm)((e=>{this._actionBar.clear(),this._model.canClose.read(e)&&this._actionBar.push(new M.rc("diffreview.close",(0,q.k)("label.close","Close"),"close-diff-review "+R.L.asClassName(ne),!0,(async()=>t.close())),{label:!1,icon:!0})}))),this._content=document.createElement("div"),this._content.className="diff-review-content",this._content.setAttribute("role","code"),this._scrollbar=this._register(new N.MU(this._content,{})),(0,n.Ln)(this.domNode,this._scrollbar.getDomNode(),d),this._register((0,l.fm)((e=>{this._height.read(e),this._width.read(e),this._scrollbar.scanDomNode()}))),this._register((0,a.s)((()=>{(0,n.Ln)(this.domNode)}))),this._register((0,O.AV)(this.domNode,{width:this._width,height:this._height})),this._register((0,O.AV)(this._content,{width:this._width,height:this._height})),this._register((0,l.yC)(((e,t)=>{this._model.currentGroup.read(e),this._render(t)}))),this._register((0,n.b2)(this.domNode,"keydown",(e=>{(e.equals(18)||e.equals(2066)||e.equals(530))&&(e.preventDefault(),this._model.goToNextLine()),(e.equals(16)||e.equals(2064)||e.equals(528))&&(e.preventDefault(),this._model.goToPreviousLine()),(e.equals(9)||e.equals(2057)||e.equals(521)||e.equals(1033))&&(e.preventDefault(),this._model.close()),(e.equals(10)||e.equals(3))&&(e.preventDefault(),this._model.revealCurrentElementInEditor())})))}_render(e){const t=this._models.getOriginalOptions(),i=this._models.getModifiedOptions(),o=document.createElement("div");o.className="diff-review-table",o.setAttribute("role","list"),o.setAttribute("aria-label",(0,q.k)("ariaLabel","Accessible Diff Viewer. Use arrow up and down to navigate.")),(0,P.M)(o,i.get(50)),(0,n.Ln)(this._content,o);const s=this._models.getOriginalModel(),r=this._models.getModifiedModel();if(!s||!r)return;const a=s.getOptions(),d=r.getOptions(),c=i.get(67),h=this._model.currentGroup.get();for(const u of(null==h?void 0:h.lines)||[]){if(!h)break;let g;if(u.type===ae.Header){const e=document.createElement("div");e.className="diff-review-row",e.setAttribute("role","listitem");const t=h.range,i=this._model.currentGroupIndex.get(),n=this._model.groups.get().length,o=e=>0===e?(0,q.k)("no_lines_changed","no lines changed"):1===e?(0,q.k)("one_line_changed","1 line changed"):(0,q.k)("more_lines_changed","{0} lines changed",e),s=o(t.original.length),r=o(t.modified.length);e.setAttribute("aria-label",(0,q.k)({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",i+1,n,t.original.startLineNumber,s,t.modified.startLineNumber,r));const a=document.createElement("div");a.className="diff-review-cell diff-review-summary",a.appendChild(document.createTextNode(`${i+1}/${n}: @@ -${t.original.startLineNumber},${t.original.length} +${t.modified.startLineNumber},${t.modified.length} @@`)),e.appendChild(a),g=e}else g=this._createRow(u,c,this._width.get(),t,s,a,i,r,d);o.appendChild(g);const p=(0,l.un)((e=>this._model.currentElement.read(e)===u));e.add((0,l.fm)((e=>{const t=p.read(e);g.tabIndex=t?0:-1,t&&g.focus()}))),e.add((0,n.ko)(g,"focus",(()=>{this._model.goToLine(u)})))}this._scrollbar.scanDomNode()}_createRow(e,t,i,n,o,s,r,a,l){const d=n.get(146),c=d.glyphMarginWidth+d.lineNumbersWidth,h=r.get(146),u=10+h.glyphMarginWidth+h.lineNumbersWidth;let g="diff-review-row",p="",m=null;switch(e.type){case ae.Added:g="diff-review-row line-insert",p=" char-insert",m=te;break;case ae.Deleted:g="diff-review-row line-delete",p=" char-delete",m=ie}const f=document.createElement("div");f.style.minWidth=i+"px",f.className=g,f.setAttribute("role","listitem"),f.ariaLevel="";const v=document.createElement("div");v.className="diff-review-cell",v.style.height=`${t}px`,f.appendChild(v);const _=document.createElement("span");_.style.width=c+"px",_.style.minWidth=c+"px",_.className="diff-review-line-number"+p,void 0!==e.originalLineNumber?_.appendChild(document.createTextNode(String(e.originalLineNumber))):_.innerText=" ",v.appendChild(_);const b=document.createElement("span");b.style.width=u+"px",b.style.minWidth=u+"px",b.style.paddingRight="10px",b.className="diff-review-line-number"+p,void 0!==e.modifiedLineNumber?b.appendChild(document.createTextNode(String(e.modifiedLineNumber))):b.innerText=" ",v.appendChild(b);const w=document.createElement("span");if(w.className="diff-review-spacer",m){const e=document.createElement("span");e.className=R.L.asClassName(m),e.innerText="  ",w.appendChild(e)}else w.innerText="  ";let y;if(v.appendChild(w),void 0!==e.modifiedLineNumber){let t=this._getLineHtml(a,r,l.tabSize,e.modifiedLineNumber,this._languageService.languageIdCodec);oe._ttPolicy&&(t=oe._ttPolicy.createHTML(t)),v.insertAdjacentHTML("beforeend",t),y=a.getLineContent(e.modifiedLineNumber)}else{let t=this._getLineHtml(o,n,s.tabSize,e.originalLineNumber,this._languageService.languageIdCodec);oe._ttPolicy&&(t=oe._ttPolicy.createHTML(t)),v.insertAdjacentHTML("beforeend",t),y=o.getLineContent(e.originalLineNumber)}0===y.length&&(y=(0,q.k)("blankLine","blank"));let C="";switch(e.type){case ae.Unchanged:C=e.originalLineNumber===e.modifiedLineNumber?(0,q.k)({key:"unchangedLine",comment:["The placeholders are contents of the line and should not be translated."]},"{0} unchanged line {1}",y,e.originalLineNumber):(0,q.k)("equalLine","{0} original line {1} modified line {2}",y,e.originalLineNumber,e.modifiedLineNumber);break;case ae.Added:C=(0,q.k)("insertLine","+ {0} modified line {1}",y,e.modifiedLineNumber);break;case ae.Deleted:C=(0,q.k)("deleteLine","- {0} original line {1}",y,e.originalLineNumber)}return f.setAttribute("aria-label",C),f}_getLineHtml(e,t,i,n,o){const s=e.getLineContent(n),r=t.get(50),a=U.f.createEmpty(s,o),l=K.qL.isBasicASCII(s,e.mightContainNonBasicASCII()),d=K.qL.containsRTL(s,l,e.mightContainRTL());return(0,$.Md)(new $.zL(r.isMonospace&&!t.get(33),r.canUseHalfwidthRightwardsArrow,s,!1,l,d,0,a,[],i,0,r.spaceWidth,r.middotWidth,r.wsmiddotWidth,t.get(118),t.get(100),t.get(95),t.get(51)!==F.Bc.OFF,null)).html}};ge=J([ee(5,j.L)],ge);class pe{constructor(e){this.editors=e}getOriginalModel(){return this.editors.original.getModel()}getOriginalOptions(){return this.editors.original.getOptions()}originalReveal(e){this.editors.original.revealRange(e),this.editors.original.setSelection(e),this.editors.original.focus()}getModifiedModel(){return this.editors.modified.getModel()}getModifiedOptions(){return this.editors.modified.getOptions()}modifiedReveal(e){e&&(this.editors.modified.revealRange(e),this.editors.modified.setSelection(e)),this.editors.modified.focus()}modifiedSetSelection(e){this.editors.modified.setSelection(e)}modifiedFocus(){this.editors.modified.focus()}getModifiedPosition(){var e;return null!==(e=this.editors.modified.getPosition())&&void 0!==e?e:void 0}}class me extends a.jG{constructor(e,t,i,n,o){super(),this._rootElement=e,this._diffModel=t,this._originalEditorLayoutInfo=i,this._modifiedEditorLayoutInfo=n,this._editors=o,this._originalScrollTop=(0,l.y0)(this,this._editors.original.onDidScrollChange,(()=>this._editors.original.getScrollTop())),this._modifiedScrollTop=(0,l.y0)(this,this._editors.modified.onDidScrollChange,(()=>this._editors.modified.getScrollTop())),this._viewZonesChanged=(0,l.yQ)("onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this.width=(0,l.FY)(this,0),this._modifiedViewZonesChangedSignal=(0,l.yQ)("modified.onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this._originalViewZonesChangedSignal=(0,l.yQ)("original.onDidChangeViewZones",this._editors.original.onDidChangeViewZones),this._state=(0,l.rm)(this,((e,t)=>{var i;this._element.replaceChildren();const n=this._diffModel.read(e),o=null===(i=null==n?void 0:n.diff.read(e))||void 0===i?void 0:i.movedTexts;if(!o||0===o.length)return void this.width.set(0,void 0);this._viewZonesChanged.read(e);const s=this._originalEditorLayoutInfo.read(e),r=this._modifiedEditorLayoutInfo.read(e);if(!s||!r)return void this.width.set(0,void 0);this._modifiedViewZonesChangedSignal.read(e),this._originalViewZonesChangedSignal.read(e);const a=o.map((t=>{function i(e,t){return(t.getTopForLineNumber(e.startLineNumber,!0)+t.getTopForLineNumber(e.endLineNumberExclusive,!0))/2}const n=i(t.lineRangeMapping.original,this._editors.original),o=this._originalScrollTop.read(e),s=i(t.lineRangeMapping.modified,this._editors.modified),r=n-o,a=s-this._modifiedScrollTop.read(e),l=Math.min(n,s),d=Math.max(n,s);return{range:new W.L(l,d),from:r,to:a,fromWithoutScroll:n,toWithoutScroll:s,move:t}}));a.sort((0,A.nH)((0,A.VE)((e=>e.fromWithoutScroll>e.toWithoutScroll),A.TS),(0,A.VE)((e=>e.fromWithoutScroll>e.toWithoutScroll?e.fromWithoutScroll:-e.toWithoutScroll),A.U9)));const d=fe.compute(a.map((e=>e.range))),c=s.verticalScrollbarWidth,h=10*(d.getTrackCount()-1)+20,u=c+h+(r.contentLeft-me.movedCodeBlockPadding);let g=0;for(const e of a){const i=c+10+10*d.getTrack(g),o=15,s=15,a=u,h=r.glyphMarginWidth+r.lineNumbersWidth,p=18,m=document.createElementNS("http://www.w3.org/2000/svg","rect");m.classList.add("arrow-rectangle"),m.setAttribute("x",""+(a-h)),m.setAttribute("y",""+(e.to-p/2)),m.setAttribute("width",`${h}`),m.setAttribute("height",`${p}`),this._element.appendChild(m);const f=document.createElementNS("http://www.w3.org/2000/svg","g"),v=document.createElementNS("http://www.w3.org/2000/svg","path");v.setAttribute("d",`M 0 ${e.from} L ${i} ${e.from} L ${i} ${e.to} L ${a-s} ${e.to}`),v.setAttribute("fill","none"),f.appendChild(v);const _=document.createElementNS("http://www.w3.org/2000/svg","polygon");_.classList.add("arrow"),t.add((0,l.fm)((t=>{v.classList.toggle("currentMove",e.move===n.activeMovedText.read(t)),_.classList.toggle("currentMove",e.move===n.activeMovedText.read(t))}))),_.setAttribute("points",`${a-s},${e.to-o/2} ${a},${e.to} ${a-s},${e.to+o/2}`),f.appendChild(_),this._element.appendChild(f),g++}this.width.set(h,void 0)})),this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("class","moved-blocks-lines"),this._rootElement.appendChild(this._element),this._register((0,a.s)((()=>this._element.remove()))),this._register((0,l.fm)((e=>{const t=this._originalEditorLayoutInfo.read(e),i=this._modifiedEditorLayoutInfo.read(e);t&&i&&(this._element.style.left=t.width-t.verticalScrollbarWidth+"px",this._element.style.height=`${t.height}px`,this._element.style.width=`${t.verticalScrollbarWidth+t.contentLeft-me.movedCodeBlockPadding+this.width.read(e)}px`)}))),this._register((0,l.OI)(this._state));const s=(0,l.un)((e=>{const t=this._diffModel.read(e),i=null==t?void 0:t.diff.read(e);return i?i.movedTexts.map((e=>({move:e,original:new O.D1((0,l.lk)(e.lineRangeMapping.original.startLineNumber-1),18),modified:new O.D1((0,l.lk)(e.lineRangeMapping.modified.startLineNumber-1),18)}))):[]}));this._register((0,O.Vs)(this._editors.original,s.map((e=>e.map((e=>e.original)))))),this._register((0,O.Vs)(this._editors.modified,s.map((e=>e.map((e=>e.modified)))))),this._register((0,l.yC)(((e,t)=>{const i=s.read(e);for(const e of i)t.add(new ve(this._editors.original,e.original,e.move,"original",this._diffModel.get())),t.add(new ve(this._editors.modified,e.modified,e.move,"modified",this._diffModel.get()))})));const r=(0,l.yQ)("original.onDidFocusEditorWidget",(e=>this._editors.original.onDidFocusEditorWidget((()=>setTimeout((()=>e(void 0)),0))))),d=(0,l.yQ)("modified.onDidFocusEditorWidget",(e=>this._editors.modified.onDidFocusEditorWidget((()=>setTimeout((()=>e(void 0)),0)))));let c="modified";this._register((0,l.Y)({createEmptyChangeSummary:()=>{},handleChange:(e,t)=>(e.didChange(r)&&(c="original"),e.didChange(d)&&(c="modified"),!0)},(e=>{r.read(e),d.read(e);const t=this._diffModel.read(e);if(!t)return;const i=t.diff.read(e);let n;if(i&&"original"===c){const t=this._editors.originalCursor.read(e);t&&(n=i.movedTexts.find((e=>e.lineRangeMapping.original.contains(t.lineNumber))))}if(i&&"modified"===c){const t=this._editors.modifiedCursor.read(e);t&&(n=i.movedTexts.find((e=>e.lineRangeMapping.modified.contains(t.lineNumber))))}n!==t.movedTextToCompare.get()&&t.movedTextToCompare.set(void 0,void 0),t.setActiveMovedText(n)})))}}me.movedCodeBlockPadding=4;class fe{static compute(e){const t=[],i=[];for(const n of e){let e=t.findIndex((e=>!e.intersectsStrict(n)));if(-1===e){const i=6;t.length>=i?e=(0,o.TM)(t,(0,A.VE)((e=>e.intersectWithRangeLength(n)),A.U9)):(e=t.length,t.push(new W.h))}t[e].addRange(n),i.push(e)}return new fe(t.length,i)}constructor(e,t){this._trackCount=e,this.trackPerLineIdx=t}getTrack(e){return this.trackPerLineIdx[e]}getTrackCount(){return this._trackCount}}class ve extends O.uN{constructor(e,t,i,o,s){const r=(0,n.h)("div.diff-hidden-lines-widget");super(e,t,r.root),this._editor=e,this._move=i,this._kind=o,this._diffModel=s,this._nodes=(0,n.h)("div.diff-moved-code-block",{style:{marginRight:"4px"}},[(0,n.h)("div.text-content@textContent"),(0,n.h)("div.action-bar@actionBar")]),r.root.appendChild(this._nodes.root);const a=(0,l.y0)(this._editor.onDidLayoutChange,(()=>this._editor.getLayoutInfo()));let d;this._register((0,O.AV)(this._nodes.root,{paddingRight:a.map((e=>e.verticalScrollbarWidth))})),d=i.changes.length>0?"original"===this._kind?(0,q.k)("codeMovedToWithChanges","Code moved with changes to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):(0,q.k)("codeMovedFromWithChanges","Code moved with changes from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1):"original"===this._kind?(0,q.k)("codeMovedTo","Code moved to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):(0,q.k)("codeMovedFrom","Code moved from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1);const c=this._register(new I.E(this._nodes.actionBar,{highlightToggledItems:!0})),h=new M.rc("",d,"",!1);c.push(h,{icon:!1,label:!0});const u=new M.rc("","Compare",R.L.asClassName(T.W.compareChanges),!0,(()=>{this._editor.focus(),this._diffModel.movedTextToCompare.set(this._diffModel.movedTextToCompare.get()===i?void 0:this._move,void 0)}));this._register((0,l.fm)((e=>{const t=this._diffModel.movedTextToCompare.read(e)===i;u.checked=t}))),c.push(u,{icon:!1,label:!0})}}var _e=i(36811);class be extends a.jG{constructor(e,t,i,n){super(),this._editors=e,this._diffModel=t,this._options=i,this._decorations=(0,l.un)(this,(e=>{var t;const i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.diff.read(e);if(!i)return null;const n=this._diffModel.read(e).movedTextToCompare.read(e),o=this._options.renderIndicators.read(e),s=this._options.showEmptyDecorations.read(e),r=[],a=[];if(!n)for(const e of i.mappings)if(e.lineRangeMapping.original.isEmpty||r.push({range:e.lineRangeMapping.original.toInclusiveRange(),options:o?_e.Ob:_e.XT}),e.lineRangeMapping.modified.isEmpty||a.push({range:e.lineRangeMapping.modified.toInclusiveRange(),options:o?_e.Kl:_e.Zw}),e.lineRangeMapping.modified.isEmpty||e.lineRangeMapping.original.isEmpty)e.lineRangeMapping.original.isEmpty||r.push({range:e.lineRangeMapping.original.toInclusiveRange(),options:_e.KL}),e.lineRangeMapping.modified.isEmpty||a.push({range:e.lineRangeMapping.modified.toInclusiveRange(),options:_e.Ou});else for(const t of e.lineRangeMapping.innerChanges||[])e.lineRangeMapping.original.contains(t.originalRange.startLineNumber)&&r.push({range:t.originalRange,options:t.originalRange.isEmpty()&&s?_e.wp:_e.Zb}),e.lineRangeMapping.modified.contains(t.modifiedRange.startLineNumber)&&a.push({range:t.modifiedRange,options:t.modifiedRange.isEmpty()&&s?_e.GM:_e.bk});if(n)for(const e of n.changes){const t=e.original.toInclusiveRange();t&&r.push({range:t,options:o?_e.Ob:_e.XT});const i=e.modified.toInclusiveRange();i&&a.push({range:i,options:o?_e.Kl:_e.Zw});for(const t of e.innerChanges||[])r.push({range:t.originalRange,options:_e.Zb}),a.push({range:t.modifiedRange,options:_e.bk})}const l=this._diffModel.read(e).activeMovedText.read(e);for(const e of i.movedTexts)r.push({range:e.lineRangeMapping.original.toInclusiveRange(),options:{description:"moved",blockClassName:"movedOriginal"+(e===l?" currentMove":""),blockPadding:[me.movedCodeBlockPadding,0,me.movedCodeBlockPadding,me.movedCodeBlockPadding]}}),a.push({range:e.lineRangeMapping.modified.toInclusiveRange(),options:{description:"moved",blockClassName:"movedModified"+(e===l?" currentMove":""),blockPadding:[4,0,4,4]}});return{originalDecorations:r,modifiedDecorations:a}})),this._register((0,O.pY)(this._editors.original,this._decorations.map((e=>(null==e?void 0:e.originalDecorations)||[])))),this._register((0,O.pY)(this._editors.modified,this._decorations.map((e=>(null==e?void 0:e.modifiedDecorations)||[]))))}}var we=i(1910);class ye{resetSash(){this._sashRatio.set(void 0,void 0)}constructor(e,t){this._options=e,this.dimensions=t,this.sashLeft=(0,d.dQ)(this,(e=>{var t;const i=null!==(t=this._sashRatio.read(e))&&void 0!==t?t:this._options.splitViewDefaultRatio.read(e);return this._computeSashLeft(i,e)}),((e,t)=>{const i=this.dimensions.width.get();this._sashRatio.set(e/i,t)})),this._sashRatio=(0,l.FY)(this,void 0)}_computeSashLeft(e,t){const i=this.dimensions.width.read(t),n=Math.floor(this._options.splitViewDefaultRatio.read(t)*i),o=this._options.enableSplitViewResizing.read(t)?Math.floor(e*i):n,s=100;return i<=200?n:oi-s?i-s:o}}class Ce extends a.jG{constructor(e,t,i,n,o,s){super(),this._domNode=e,this._dimensions=t,this._enabled=i,this._boundarySashes=n,this.sashLeft=o,this._resetSash=s,this._sash=this._register(new we.m(this._domNode,{getVerticalSashTop:e=>0,getVerticalSashLeft:e=>this.sashLeft.get(),getVerticalSashHeight:e=>this._dimensions.height.get()},{orientation:0})),this._startSashPosition=void 0,this._register(this._sash.onDidStart((()=>{this._startSashPosition=this.sashLeft.get()}))),this._register(this._sash.onDidChange((e=>{this.sashLeft.set(this._startSashPosition+(e.currentX-e.startX),void 0)}))),this._register(this._sash.onDidEnd((()=>this._sash.layout()))),this._register(this._sash.onDidReset((()=>this._resetSash()))),this._register((0,l.fm)((e=>{const t=this._boundarySashes.read(e);t&&(this._sash.orthogonalEndSash=t.bottom)}))),this._register((0,l.fm)((e=>{const t=this._enabled.read(e);this._sash.state=t?3:0,this.sashLeft.read(e),this._dimensions.height.read(e),this._sash.layout()})))}}var ke=i(65958),Se=i(79359),xe=i(78903),Le=i(31602),De=i(41807),Ee=i(2205),Ie=i(22994),Ne=i(47132),Me=i(52542),Ae=i(87110);let Te=class extends a.jG{setActiveMovedText(e){this._activeMovedText.set(e,void 0)}constructor(e,t,i){super(),this.model=e,this._options=t,this._diffProviderFactoryService=i,this._isDiffUpToDate=(0,l.FY)(this,!1),this.isDiffUpToDate=this._isDiffUpToDate,this._diff=(0,l.FY)(this,void 0),this.diff=this._diff,this._unchangedRegions=(0,l.FY)(this,void 0),this.unchangedRegions=(0,l.un)(this,(e=>{var t,i;return this._options.hideUnchangedRegions.read(e)?null!==(i=null===(t=this._unchangedRegions.read(e))||void 0===t?void 0:t.regions)&&void 0!==i?i:[]:((0,l.Rn)((e=>{var t;for(const i of(null===(t=this._unchangedRegions.get())||void 0===t?void 0:t.regions)||[])i.collapseAll(e)})),[])})),this.movedTextToCompare=(0,l.FY)(this,void 0),this._activeMovedText=(0,l.FY)(this,void 0),this._hoveredMovedText=(0,l.FY)(this,void 0),this.activeMovedText=(0,l.un)(this,(e=>{var t,i;return null!==(i=null!==(t=this.movedTextToCompare.read(e))&&void 0!==t?t:this._hoveredMovedText.read(e))&&void 0!==i?i:this._activeMovedText.read(e)})),this._cancellationTokenSource=new xe.Qi,this._diffProvider=(0,l.un)(this,(e=>{const t=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:this._options.diffAlgorithm.read(e)});return{diffProvider:t,onChangeSignal:(0,l.yQ)("onDidChange",t.onDidChange)}})),this._register((0,a.s)((()=>this._cancellationTokenSource.cancel())));const n=(0,l.Yd)("contentChangedSignal"),o=this._register(new ke.uC((()=>n.trigger(void 0)),200));this._register((0,l.fm)((t=>{const i=this._unchangedRegions.read(t);if(!i||i.regions.some((e=>e.isDragged.read(t))))return;const n=i.originalDecorationIds.map((t=>e.original.getDecorationRange(t))).map((e=>e?B.M.fromRangeInclusive(e):void 0)),o=i.modifiedDecorationIds.map((t=>e.modified.getDecorationRange(t))).map((e=>e?B.M.fromRangeInclusive(e):void 0)),s=i.regions.map(((e,i)=>n[i]&&o[i]?new Be(n[i].startLineNumber,o[i].startLineNumber,n[i].length,e.visibleLineCountTop.read(t),e.visibleLineCountBottom.read(t)):void 0)).filter(Se.O9),r=[];let a=!1;for(const e of(0,A.n)(s,((e,i)=>e.getHiddenModifiedRange(t).endLineNumberExclusive===i.getHiddenModifiedRange(t).startLineNumber)))if(e.length>1){a=!0;const t=e.reduce(((e,t)=>e+t.lineCount),0),i=new Be(e[0].originalLineNumber,e[0].modifiedLineNumber,t,e[0].visibleLineCountTop.get(),e[e.length-1].visibleLineCountBottom.get());r.push(i)}else r.push(e[0]);if(a){const t=e.original.deltaDecorations(i.originalDecorationIds,r.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})))),n=e.modified.deltaDecorations(i.modifiedDecorationIds,r.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))));(0,l.Rn)((e=>{this._unchangedRegions.set({regions:r,originalDecorationIds:t,modifiedDecorationIds:n},e)}))}})));const s=(t,i,n)=>{const o=Be.fromDiffs(t.changes,e.original.getLineCount(),e.modified.getLineCount(),this._options.hideUnchangedRegionsMinimumLineCount.read(n),this._options.hideUnchangedRegionsContextLineCount.read(n));let s;const r=this._unchangedRegions.get();if(r){const t=r.originalDecorationIds.map((t=>e.original.getDecorationRange(t))).map((e=>e?B.M.fromRangeInclusive(e):void 0)),i=r.modifiedDecorationIds.map((t=>e.modified.getDecorationRange(t))).map((e=>e?B.M.fromRangeInclusive(e):void 0));let o=(0,O.EK)(r.regions.map(((e,n)=>{if(!t[n]||!i[n])return;const o=t[n].length;return new Be(t[n].startLineNumber,i[n].startLineNumber,o,Math.min(e.visibleLineCountTop.get(),o),Math.min(e.visibleLineCountBottom.get(),o-e.visibleLineCountTop.get()))})).filter(Se.O9),((e,t)=>!t||e.modifiedLineNumber>=t.modifiedLineNumber+t.lineCount&&e.originalLineNumber>=t.originalLineNumber+t.lineCount)).map((e=>new z.WL(e.getHiddenOriginalRange(n),e.getHiddenModifiedRange(n))));o=z.WL.clip(o,B.M.ofLength(1,e.original.getLineCount()),B.M.ofLength(1,e.modified.getLineCount())),s=z.WL.inverse(o,e.original.getLineCount(),e.modified.getLineCount())}const a=[];if(s)for(const e of o){const t=s.filter((t=>t.original.intersectsStrict(e.originalUnchangedRange)&&t.modified.intersectsStrict(e.modifiedUnchangedRange)));a.push(...e.setVisibleRanges(t,i))}else a.push(...o);const l=e.original.deltaDecorations((null==r?void 0:r.originalDecorationIds)||[],a.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})))),d=e.modified.deltaDecorations((null==r?void 0:r.modifiedDecorationIds)||[],a.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))));this._unchangedRegions.set({regions:a,originalDecorationIds:l,modifiedDecorationIds:d},i)};this._register(e.modified.onDidChangeContent((t=>{if(this._diff.get()){Ie.c.fromModelContentChanges(t.changes);const i=(this._lastDiff,e.original,void e.modified);i&&(this._lastDiff=i,(0,l.Rn)((e=>{this._diff.set(Oe.fromDiffResult(this._lastDiff),e),s(i,e);const t=this.movedTextToCompare.get();this.movedTextToCompare.set(t?this._lastDiff.moves.find((e=>e.lineRangeMapping.modified.intersect(t.lineRangeMapping.modified))):void 0,e)})))}this._isDiffUpToDate.set(!1,void 0),o.schedule()}))),this._register(e.original.onDidChangeContent((t=>{if(this._diff.get()){Ie.c.fromModelContentChanges(t.changes);const i=(this._lastDiff,e.original,void e.modified);i&&(this._lastDiff=i,(0,l.Rn)((e=>{this._diff.set(Oe.fromDiffResult(this._lastDiff),e),s(i,e);const t=this.movedTextToCompare.get();this.movedTextToCompare.set(t?this._lastDiff.moves.find((e=>e.lineRangeMapping.modified.intersect(t.lineRangeMapping.modified))):void 0,e)})))}this._isDiffUpToDate.set(!1,void 0),o.schedule()}))),this._register((0,l.yC)((async(t,i)=>{var r,a;this._options.hideUnchangedRegionsMinimumLineCount.read(t),this._options.hideUnchangedRegionsContextLineCount.read(t),o.cancel(),n.read(t);const d=this._diffProvider.read(t);d.onChangeSignal.read(t),(0,De.b)(Ee.D8,t),(0,De.b)(Me.NC,t),this._isDiffUpToDate.set(!1,void 0);let c=[];i.add(e.original.onDidChangeContent((e=>{const t=Ie.c.fromModelContentChanges(e.changes);c=(0,Ne.M)(c,t)})));let h=[];i.add(e.modified.onDidChangeContent((e=>{const t=Ie.c.fromModelContentChanges(e.changes);h=(0,Ne.M)(h,t)})));let u=await d.diffProvider.computeDiff(e.original,e.modified,{ignoreTrimWhitespace:this._options.ignoreTrimWhitespace.read(t),maxComputationTimeMs:this._options.maxComputationTimeMs.read(t),computeMoves:this._options.showMoves.read(t)},this._cancellationTokenSource.token);var g,p,m;this._cancellationTokenSource.token.isCancellationRequested||e.original.isDisposed()||e.modified.isDisposed()||(g=u,p=e.original,m=e.modified,u={changes:g.changes.map((e=>new z.wm(e.original,e.modified,e.innerChanges?e.innerChanges.map((e=>function(e,t,i){let n=e.originalRange,o=e.modifiedRange;return(1!==n.endColumn||1!==o.endColumn)&&n.endColumn===t.getLineMaxColumn(n.endLineNumber)&&o.endColumn===i.getLineMaxColumn(o.endLineNumber)&&n.endLineNumber{s(u,e),this._lastDiff=u;const t=Oe.fromDiffResult(u);this._diff.set(t,e),this._isDiffUpToDate.set(!0,e);const i=this.movedTextToCompare.get();this.movedTextToCompare.set(i?this._lastDiff.moves.find((e=>e.lineRangeMapping.modified.intersect(i.lineRangeMapping.modified))):void 0,e)})))})))}ensureModifiedLineIsVisible(e,t,i){var n,o;if(0===(null===(n=this.diff.get())||void 0===n?void 0:n.mappings.length))return;const s=(null===(o=this._unchangedRegions.get())||void 0===o?void 0:o.regions)||[];for(const n of s)if(n.getHiddenModifiedRange(void 0).contains(e))return void n.showModifiedLine(e,t,i)}ensureOriginalLineIsVisible(e,t,i){var n,o;if(0===(null===(n=this.diff.get())||void 0===n?void 0:n.mappings.length))return;const s=(null===(o=this._unchangedRegions.get())||void 0===o?void 0:o.regions)||[];for(const n of s)if(n.getHiddenOriginalRange(void 0).contains(e))return void n.showOriginalLine(e,t,i)}async waitForDiff(){await(0,l.oJ)(this.isDiffUpToDate,(e=>e))}serializeState(){const e=this._unchangedRegions.get();return{collapsedRegions:null==e?void 0:e.regions.map((e=>({range:e.getHiddenModifiedRange(void 0).serialize()})))}}restoreSerializedState(e){var t;const i=null===(t=e.collapsedRegions)||void 0===t?void 0:t.map((e=>B.M.deserialize(e.range))),n=this._unchangedRegions.get();n&&i&&(0,l.Rn)((e=>{for(const t of n.regions)for(const n of i)if(t.modifiedUnchangedRange.intersect(n)){t.setHiddenModifiedRange(n,e);break}}))}};var Re,Pe;Te=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(Re=2,Pe=Le.Hg,function(e,t){Pe(e,t,Re)})],Te);class Oe{static fromDiffResult(e){return new Oe(e.changes.map((e=>new Fe(e))),e.moves||[],e.identical,e.quitEarly)}constructor(e,t,i,n){this.mappings=e,this.movedTexts=t,this.identical=i,this.quitEarly=n}}class Fe{constructor(e){this.lineRangeMapping=e}}class Be{static fromDiffs(e,t,i,n,o){const s=z.wm.inverse(e,t,i),r=[];for(const e of s){let s=e.original.startLineNumber,a=e.modified.startLineNumber,l=e.original.length;const d=1===s&&1===a,c=s+l===t+1&&a+l===i+1;(d||c)&&l>=o+n?(d&&!c&&(l-=o),c&&!d&&(s+=o,a+=o,l-=o),r.push(new Be(s,a,l,0,0))):l>=2*o+n&&(s+=o,a+=o,l-=2*o,r.push(new Be(s,a,l,0,0)))}return r}get originalUnchangedRange(){return B.M.ofLength(this.originalLineNumber,this.lineCount)}get modifiedUnchangedRange(){return B.M.ofLength(this.modifiedLineNumber,this.lineCount)}constructor(e,t,i,n,o){this.originalLineNumber=e,this.modifiedLineNumber=t,this.lineCount=i,this._visibleLineCountTop=(0,l.FY)(this,0),this.visibleLineCountTop=this._visibleLineCountTop,this._visibleLineCountBottom=(0,l.FY)(this,0),this.visibleLineCountBottom=this._visibleLineCountBottom,this._shouldHideControls=(0,l.un)(this,(e=>this.visibleLineCountTop.read(e)+this.visibleLineCountBottom.read(e)===this.lineCount&&!this.isDragged.read(e))),this.isDragged=(0,l.FY)(this,void 0);const s=Math.max(Math.min(n,this.lineCount),0),r=Math.max(Math.min(o,this.lineCount-n),0);(0,Ae.V7)(n===s),(0,Ae.V7)(o===r),this._visibleLineCountTop.set(s,void 0),this._visibleLineCountBottom.set(r,void 0)}setVisibleRanges(e,t){const i=[],n=new B.S(e.map((e=>e.modified))).subtractFrom(this.modifiedUnchangedRange);let o=this.originalLineNumber,s=this.modifiedLineNumber;const r=this.modifiedLineNumber+this.lineCount;if(0===n.ranges.length)this.showAll(t),i.push(this);else{let e=0;for(const a of n.ranges){const l=e===n.ranges.length-1;e++;const d=(l?r:a.endLineNumberExclusive)-s,c=new Be(o,s,d,0,0);c.setHiddenModifiedRange(a,t),i.push(c),o=c.originalUnchangedRange.endLineNumberExclusive,s=c.modifiedUnchangedRange.endLineNumberExclusive}}return i}shouldHideControls(e){return this._shouldHideControls.read(e)}getHiddenOriginalRange(e){return B.M.ofLength(this.originalLineNumber+this._visibleLineCountTop.read(e),this.lineCount-this._visibleLineCountTop.read(e)-this._visibleLineCountBottom.read(e))}getHiddenModifiedRange(e){return B.M.ofLength(this.modifiedLineNumber+this._visibleLineCountTop.read(e),this.lineCount-this._visibleLineCountTop.read(e)-this._visibleLineCountBottom.read(e))}setHiddenModifiedRange(e,t){const i=e.startLineNumber-this.modifiedLineNumber,n=this.modifiedLineNumber+this.lineCount-e.endLineNumberExclusive;this.setState(i,n,t)}getMaxVisibleLineCountTop(){return this.lineCount-this._visibleLineCountBottom.get()}getMaxVisibleLineCountBottom(){return this.lineCount-this._visibleLineCountTop.get()}showMoreAbove(e=10,t){const i=this.getMaxVisibleLineCountTop();this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+e,i),t)}showMoreBelow(e=10,t){const i=this.lineCount-this._visibleLineCountTop.get();this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+e,i),t)}showAll(e){this._visibleLineCountBottom.set(this.lineCount-this._visibleLineCountTop.get(),e)}showModifiedLine(e,t,i){const n=e+1-(this.modifiedLineNumber+this._visibleLineCountTop.get()),o=this.modifiedLineNumber-this._visibleLineCountBottom.get()+this.lineCount-e;0===t&&n{var n;this._contextMenuService.showContextMenu({domForShadowRoot:u&&null!==(n=i.getDomNode())&&void 0!==n?n:void 0,getAnchor:()=>({x:e,y:t}),getActions:()=>{const e=[],t=o.modified.isEmpty;return e.push(new M.rc("diff.clipboard.copyDeletedContent",t?o.original.length>1?(0,q.k)("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):(0,q.k)("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"):o.original.length>1?(0,q.k)("diff.clipboard.copyChangedLinesContent.label","Copy changed lines"):(0,q.k)("diff.clipboard.copyChangedLinesContent.single.label","Copy changed line"),void 0,!0,(async()=>{const e=this._originalTextModel.getValueInRange(o.original.toExclusiveRange());await this._clipboardService.writeText(e)}))),o.original.length>1&&e.push(new M.rc("diff.clipboard.copyDeletedLineContent",t?(0,q.k)("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",o.original.startLineNumber+h):(0,q.k)("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",o.original.startLineNumber+h),void 0,!0,(async()=>{let e=this._originalTextModel.getLineContent(o.original.startLineNumber+h);""===e&&(e=0===this._originalTextModel.getEndOfLineSequence()?"\n":"\r\n"),await this._clipboardService.writeText(e)}))),i.getOption(92)||e.push(new M.rc("diff.inline.revertChange",(0,q.k)("diff.inline.revertChange.label","Revert this change"),void 0,!0,(async()=>{this._editor.revert(this._diff)}))),e},autoSelectFirstItem:!0})};this._register((0,n.b2)(this._diffActions,"mousedown",(e=>{if(!e.leftButton)return;const{top:t,height:i}=(0,n.BK)(this._diffActions),o=Math.floor(c/3);e.preventDefault(),g(e.posx,t+i+o)}))),this._register(i.onMouseMove((e=>{8!==e.target.type&&5!==e.target.type||e.target.detail.viewZoneId!==this._getViewZoneId()?this.visibility=!1:(h=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,c),this.visibility=!0)}))),this._register(i.onMouseDown((e=>{!e.event.leftButton||8!==e.target.type&&5!==e.target.type||e.target.detail.viewZoneId===this._getViewZoneId()&&(e.event.preventDefault(),h=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,c),g(e.event.posx,e.event.posy+c))})))}_updateLightBulbPosition(e,t,i){const{top:o}=(0,n.BK)(e),s=t-o,r=Math.floor(s/i),a=r*i;if(this._diffActions.style.top=`${a}px`,this._viewLineCounts){let e=0;for(let t=0;te});function Ue(e,t,i,n){(0,P.M)(n,t.fontInfo);const o=i.length>0,s=new Ve.fe(1e4);let r=0,a=0;const l=[];for(let n=0;n');const l=t.getLineContent(),d=K.qL.isBasicASCII(l,o),c=K.qL.containsRTL(l,d,s),h=(0,$.UW)(new $.zL(r.fontInfo.isMonospace&&!r.disableMonospaceOptimizations,r.fontInfo.canUseHalfwidthRightwardsArrow,l,!1,d,c,0,t,i,r.tabSize,0,r.fontInfo.spaceWidth,r.fontInfo.middotWidth,r.fontInfo.wsmiddotWidth,r.stopRenderingLineAfter,r.renderWhitespace,r.renderControlCharacters,r.fontLigatures!==F.Bc.OFF,null),a);return a.appendString(""),h.characterMapping.getHorizontalOffset(h.characterMapping.length)}var Ge=i(3338),Qe=i(52348),Ze=function(e,t){return function(i,n){t(i,n,e)}};let Ye=class extends a.jG{constructor(e,t,i,o,s,r,d,c,h,u){super(),this._targetWindow=e,this._editors=t,this._diffModel=i,this._options=o,this._diffEditorWidget=s,this._canIgnoreViewZoneUpdateEvent=r,this._origViewZonesToIgnore=d,this._modViewZonesToIgnore=c,this._clipboardService=h,this._contextMenuService=u,this._originalTopPadding=(0,l.FY)(this,0),this._originalScrollOffset=(0,l.FY)(this,0),this._originalScrollOffsetAnimated=(0,O.Nu)(this._targetWindow,this._originalScrollOffset,this._store),this._modifiedTopPadding=(0,l.FY)(this,0),this._modifiedScrollOffset=(0,l.FY)(this,0),this._modifiedScrollOffsetAnimated=(0,O.Nu)(this._targetWindow,this._modifiedScrollOffset,this._store);const g=(0,l.FY)("invalidateAlignmentsState",0),p=this._register(new ke.uC((()=>{g.set(g.get()+1,void 0)}),0));this._register(this._editors.original.onDidChangeViewZones((e=>{this._canIgnoreViewZoneUpdateEvent()||p.schedule()}))),this._register(this._editors.modified.onDidChangeViewZones((e=>{this._canIgnoreViewZoneUpdateEvent()||p.schedule()}))),this._register(this._editors.original.onDidChangeConfiguration((e=>{(e.hasChanged(147)||e.hasChanged(67))&&p.schedule()}))),this._register(this._editors.modified.onDidChangeConfiguration((e=>{(e.hasChanged(147)||e.hasChanged(67))&&p.schedule()})));const m=this._diffModel.map((e=>e?(0,l.y0)(this,e.model.original.onDidChangeTokens,(()=>2===e.model.original.tokenization.backgroundTokenizationState)):void 0)).map(((e,t)=>null==e?void 0:e.read(t))),f=(0,l.un)((e=>{const t=this._diffModel.read(e),i=null==t?void 0:t.diff.read(e);if(!t||!i)return null;g.read(e);const n=this._options.renderSideBySide.read(e);return Xe(this._editors.original,this._editors.modified,i.mappings,this._origViewZonesToIgnore,this._modViewZonesToIgnore,n)})),v=(0,l.un)((e=>{var t;const i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.movedTextToCompare.read(e);if(!i)return null;g.read(e);const n=i.changes.map((e=>new Fe(e)));return Xe(this._editors.original,this._editors.modified,n,this._origViewZonesToIgnore,this._modViewZonesToIgnore,!0)}));function _(){const e=document.createElement("div");return e.className="diagonal-fill",e}const b=this._register(new a.Cm);this.viewZones=(0,l.rm)(this,((e,t)=>{var i,o,r,a,l,d,c,h;b.clear();const u=f.read(e)||[],g=[],p=[],w=this._modifiedTopPadding.read(e);w>0&&p.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:w,showInHiddenAreas:!0,suppressMouseDown:!0});const y=this._originalTopPadding.read(e);y>0&&g.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:y,showInHiddenAreas:!0,suppressMouseDown:!0});const C=this._options.renderSideBySide.read(e),k=C||null===(i=this._editors.modified._getViewModel())||void 0===i?void 0:i.createLineBreaksComputer();if(k){const M=this._editors.original.getModel();for(const A of u)if(A.diff)for(let O=A.originalRange.startLineNumber;OM.getLineCount())return{orig:g,mod:p};null==k||k.addRequest(M.getLineContent(O),null,null)}}const S=null!==(o=null==k?void 0:k.finalize())&&void 0!==o?o:[];let x=0;const L=this._editors.modified.getOption(67),D=null===(r=this._diffModel.read(e))||void 0===r?void 0:r.movedTextToCompare.read(e),E=null!==(l=null===(a=this._editors.original.getModel())||void 0===a?void 0:a.mightContainNonBasicASCII())&&void 0!==l&&l,I=null!==(c=null===(d=this._editors.original.getModel())||void 0===d?void 0:d.mightContainRTL())&&void 0!==c&&c,N=Ke.fromEditor(this._editors.modified);for(const F of u)if(F.diff&&!C){if(!F.originalRange.isEmpty){m.read(e);const W=document.createElement("div");W.classList.add("view-lines","line-delete","monaco-mouse-cursor-text");const H=this._editors.original.getModel();if(F.originalRange.endLineNumberExclusive-1>H.getLineCount())return{orig:g,mod:p};const V=new $e(F.originalRange.mapToLineArray((e=>H.tokenization.getLineTokens(e))),F.originalRange.mapToLineArray((e=>S[x++])),E,I),z=[];for(const q of F.diff.innerChanges||[])z.push(new K.kI(q.originalRange.delta(-(F.diff.original.startLineNumber-1)),_e.Zb.className,0));const j=Ue(V,N,z,W),U=document.createElement("div");if(U.className="inline-deleted-margin-view-zone",(0,P.M)(U,N.fontInfo),this._options.renderIndicators.read(e))for(let G=0;G(0,Se.eU)($)),U,this._editors.modified,F.diff,this._diffEditorWidget,j.viewLineCounts,this._editors.original.getModel(),this._contextMenuService,this._clipboardService));for(let Z=0;Z1&&g.push({afterLineNumber:F.originalRange.startLineNumber+Z,domNode:_(),heightInPx:(Y-1)*L,showInHiddenAreas:!0,suppressMouseDown:!0})}p.push({afterLineNumber:F.modifiedRange.startLineNumber-1,domNode:W,heightInPx:j.heightInLines*L,minWidthInPx:j.minWidthInPx,marginDomNode:U,setZoneId(e){$=e},showInHiddenAreas:!0,suppressMouseDown:!0})}const B=document.createElement("div");B.className="gutter-delete",g.push({afterLineNumber:F.originalRange.endLineNumberExclusive-1,domNode:_(),heightInPx:F.modifiedHeightInPx,marginDomNode:B,showInHiddenAreas:!0,suppressMouseDown:!0})}else{const X=F.modifiedHeightInPx-F.originalHeightInPx;if(X>0){if(null==D?void 0:D.lineRangeMapping.original.delta(-1).deltaLength(2).contains(F.originalRange.endLineNumberExclusive-1))continue;g.push({afterLineNumber:F.originalRange.endLineNumberExclusive-1,domNode:_(),heightInPx:X,showInHiddenAreas:!0,suppressMouseDown:!0})}else{if(null==D?void 0:D.lineRangeMapping.modified.delta(-1).deltaLength(2).contains(F.modifiedRange.endLineNumberExclusive-1))continue;function J(){const e=document.createElement("div");return e.className="arrow-revert-change "+R.L.asClassName(T.W.arrowRight),t.add((0,n.ko)(e,"mousedown",(e=>e.stopPropagation()))),t.add((0,n.ko)(e,"click",(e=>{e.stopPropagation(),s.revert(F.diff)}))),(0,n.$)("div",{},e)}let ee;F.diff&&F.diff.modified.isEmpty&&this._options.shouldRenderOldRevertArrows.read(e)&&(ee=J()),p.push({afterLineNumber:F.modifiedRange.endLineNumberExclusive-1,domNode:_(),heightInPx:-X,marginDomNode:ee,showInHiddenAreas:!0,suppressMouseDown:!0})}}for(const te of null!==(h=v.read(e))&&void 0!==h?h:[]){if(!(null==D?void 0:D.lineRangeMapping.original.intersect(te.originalRange))||!(null==D?void 0:D.lineRangeMapping.modified.intersect(te.modifiedRange)))continue;const ie=te.modifiedHeightInPx-te.originalHeightInPx;ie>0?g.push({afterLineNumber:te.originalRange.endLineNumberExclusive-1,domNode:_(),heightInPx:ie,showInHiddenAreas:!0,suppressMouseDown:!0}):p.push({afterLineNumber:te.modifiedRange.endLineNumberExclusive-1,domNode:_(),heightInPx:-ie,showInHiddenAreas:!0,suppressMouseDown:!0})}return{orig:g,mod:p}}));let w=!1;this._register(this._editors.original.onDidScrollChange((e=>{e.scrollLeftChanged&&!w&&(w=!0,this._editors.modified.setScrollLeft(e.scrollLeft),w=!1)}))),this._register(this._editors.modified.onDidScrollChange((e=>{e.scrollLeftChanged&&!w&&(w=!0,this._editors.original.setScrollLeft(e.scrollLeft),w=!1)}))),this._originalScrollTop=(0,l.y0)(this._editors.original.onDidScrollChange,(()=>this._editors.original.getScrollTop())),this._modifiedScrollTop=(0,l.y0)(this._editors.modified.onDidScrollChange,(()=>this._editors.modified.getScrollTop())),this._register((0,l.fm)((e=>{const t=this._originalScrollTop.read(e)-(this._originalScrollOffsetAnimated.get()-this._modifiedScrollOffsetAnimated.read(e))-(this._originalTopPadding.get()-this._modifiedTopPadding.read(e));t!==this._editors.modified.getScrollTop()&&this._editors.modified.setScrollTop(t,1)}))),this._register((0,l.fm)((e=>{const t=this._modifiedScrollTop.read(e)-(this._modifiedScrollOffsetAnimated.get()-this._originalScrollOffsetAnimated.read(e))-(this._modifiedTopPadding.get()-this._originalTopPadding.read(e));t!==this._editors.original.getScrollTop()&&this._editors.original.setScrollTop(t,1)}))),this._register((0,l.fm)((e=>{var t;const i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.movedTextToCompare.read(e);let n=0;if(i){const e=this._editors.original.getTopForLineNumber(i.lineRangeMapping.original.startLineNumber,!0)-this._originalTopPadding.get();n=this._editors.modified.getTopForLineNumber(i.lineRangeMapping.modified.startLineNumber,!0)-this._modifiedTopPadding.get()-e}n>0?(this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(n,void 0)):n<0?(this._modifiedTopPadding.set(-n,void 0),this._originalTopPadding.set(0,void 0)):setTimeout((()=>{this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(0,void 0)}),400),this._editors.modified.hasTextFocus()?this._originalScrollOffset.set(this._modifiedScrollOffset.get()-n,void 0,!0):this._modifiedScrollOffset.set(this._originalScrollOffset.get()+n,void 0,!0)})))}};function Xe(e,t,i,n,o,s){const r=new A.j3(Je(e,n)),a=new A.j3(Je(t,o)),l=e.getOption(67),d=t.getOption(67),c=[];let h=0,u=0;function g(e,t){for(;;){let i=r.peek(),n=a.peek();if(i&&i.lineNumber>=e&&(i=void 0),n&&n.lineNumber>=t&&(n=void 0),!i&&!n)break;const o=i?i.lineNumber-h:Number.MAX_VALUE,s=n?n.lineNumber-u:Number.MAX_VALUE;os?(a.dequeue(),i={lineNumber:n.lineNumber-u+h,heightInPx:0}):(r.dequeue(),a.dequeue()),c.push({originalRange:B.M.ofLength(i.lineNumber,1),modifiedRange:B.M.ofLength(n.lineNumber,1),originalHeightInPx:l+i.heightInPx,modifiedHeightInPx:d+n.heightInPx,diff:void 0})}}for(const p of i){const m=p.lineRangeMapping;g(m.original.startLineNumber,m.modified.startLineNumber);let f=!0,v=m.modified.startLineNumber,_=m.original.startLineNumber;function b(e,t,i=!1){var n,o,s,h;if(e<_||tt.lineNumbere+t.heightInPx),0))&&void 0!==o?o:0,b=null!==(h=null===(s=a.takeWhile((e=>e.lineNumbere+t.heightInPx),0))&&void 0!==h?h:0;c.push({originalRange:u,modifiedRange:g,originalHeightInPx:u.length*l+m,modifiedHeightInPx:g.length*d+b,diff:p.lineRangeMapping}),_=e,v=t}if(s)for(const w of m.innerChanges||[]){w.originalRange.startColumn>1&&w.modifiedRange.startColumn>1&&b(w.originalRange.startLineNumber,w.modifiedRange.startLineNumber);const y=e.getModel(),C=w.originalRange.endLineNumber<=y.getLineCount()?y.getLineMaxColumn(w.originalRange.endLineNumber):Number.MAX_SAFE_INTEGER;w.originalRange.endColumn1&&n.push({lineNumber:t,heightInPx:r*(e-1)})}for(const n of e.getWhitespaces()){if(t.has(n.id))continue;const e=0===n.afterLineNumber?0:s.convertViewPositionToModelPosition(new H.y(n.afterLineNumber,1)).lineNumber;i.push({lineNumber:e,heightInPx:n.height})}return(0,O.Am)(i,n,(e=>e.lineNumber),((e,t)=>({lineNumber:e.lineNumber,heightInPx:e.heightInPx+t.heightInPx})))}Ye=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Ze(8,Ge.h),Ze(9,Qe.Z)],Ye);class et extends a.jG{constructor(e,t,i){super(),this._editor=e,this._domNode=t,this.itemProvider=i,this.scrollTop=(0,l.y0)(this,this._editor.onDidScrollChange,(e=>this._editor.getScrollTop())),this.isScrollTopZero=this.scrollTop.map((e=>0===e)),this.modelAttached=(0,l.y0)(this,this._editor.onDidChangeModel,(e=>this._editor.hasModel())),this.editorOnDidChangeViewZones=(0,l.yQ)("onDidChangeViewZones",this._editor.onDidChangeViewZones),this.editorOnDidContentSizeChange=(0,l.yQ)("onDidContentSizeChange",this._editor.onDidContentSizeChange),this.domNodeSizeChanged=(0,l.Yd)("domNodeSizeChanged"),this.views=new Map,this._domNode.className="gutter monaco-editor";const o=this._domNode.appendChild((0,n.h)("div.scroll-decoration",{role:"presentation",ariaHidden:"true",style:{width:"100%"}}).root),s=new ResizeObserver((()=>{(0,l.Rn)((e=>{this.domNodeSizeChanged.trigger(e)}))}));s.observe(this._domNode),this._register((0,a.s)((()=>s.disconnect()))),this._register((0,l.fm)((e=>{o.className=this.isScrollTopZero.read(e)?"":"scroll-decoration"}))),this._register((0,l.fm)((e=>this.render(e))))}dispose(){super.dispose(),(0,n.Ln)(this._domNode)}render(e){if(!this.modelAttached.read(e))return;this.domNodeSizeChanged.read(e),this.editorOnDidChangeViewZones.read(e),this.editorOnDidContentSizeChange.read(e);const t=this.scrollTop.read(e),i=this._editor.getVisibleRanges(),n=new Set(this.views.keys()),o=W.L.ofStartAndLength(0,this._domNode.clientHeight);if(!o.isEmpty)for(const s of i){const i=new B.M(s.startLineNumber,s.endLineNumber+1),r=this.itemProvider.getIntersectingGutterItems(i,e);(0,l.Rn)((e=>{for(const s of r){if(!s.range.intersect(i))continue;n.delete(s.id);let r=this.views.get(s.id);if(r)r.item.set(s,e);else{const e=document.createElement("div");this._domNode.appendChild(e);const t=(0,l.FY)("item",s),i=this.itemProvider.createView(t,e);r=new tt(t,i,e),this.views.set(s.id,r)}const a=s.range.startLineNumber<=this._editor.getModel().getLineCount()?this._editor.getTopForLineNumber(s.range.startLineNumber,!0)-t:this._editor.getBottomForLineNumber(s.range.startLineNumber-1,!1)-t,d=(s.range.isEmpty?a:this._editor.getBottomForLineNumber(s.range.endLineNumberExclusive-1,!0)-t)-a;r.domNode.style.top=`${a}px`,r.domNode.style.height=`${d}px`,r.gutterItemView.layout(W.L.ofStartAndLength(a,d),o)}}))}for(const e of n){const t=this.views.get(e);t.gutterItemView.dispose(),t.domNode.remove(),this.views.delete(e)}}}class tt{constructor(e,t,i){this.item=e,this.gutterItemView=t,this.domNode=i}}var it=i(16551),nt=i(84941),ot=i(58357);class st extends nt.CO{constructor(e){super(),this._textModel=e}getValueOfRange(e){return this._textModel.getValueInRange(e)}get length(){const e=this._textModel.getLineCount(),t=this._textModel.getLineLength(e);return new ot.W(e-1,t)}}var rt=i(534),at=i(58067),lt=i(31540),dt=i(90428),ct=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},ht=function(e,t){return function(i,n){t(i,n,e)}};const ut=[];let gt=class extends a.jG{constructor(e,t,i,o,s,r,a,c,h){super(),this._diffModel=t,this._editors=i,this._options=o,this._sashLayout=s,this._boundarySashes=r,this._instantiationService=a,this._contextKeyService=c,this._menuService=h,this._menu=this._register(this._menuService.createMenu(at.D8.DiffEditorHunkToolbar,this._contextKeyService)),this._actions=(0,l.y0)(this,this._menu.onDidChange,(()=>this._menu.getActions())),this._hasActions=this._actions.map((e=>e.length>0)),this._showSash=(0,l.un)(this,(e=>this._options.renderSideBySide.read(e)&&this._hasActions.read(e))),this.width=(0,l.un)(this,(e=>this._hasActions.read(e)?35:0)),this.elements=(0,n.h)("div.gutter@gutter",{style:{position:"absolute",height:"100%",width:"35px"}},[]),this._currentDiff=(0,l.un)(this,(e=>{var t;const i=this._diffModel.read(e);if(!i)return;const n=null===(t=i.diff.read(e))||void 0===t?void 0:t.mappings,o=this._editors.modifiedCursor.read(e);return o?null==n?void 0:n.find((e=>e.lineRangeMapping.modified.contains(o.lineNumber))):void 0})),this._selectedDiffs=(0,l.un)(this,(e=>{const t=this._diffModel.read(e),i=null==t?void 0:t.diff.read(e);if(!i)return ut;const n=this._editors.modifiedSelections.read(e);if(n.every((e=>e.isEmpty())))return ut;const o=new B.S(n.map((e=>B.M.fromRangeInclusive(e)))),s=i.mappings.filter((e=>e.lineRangeMapping.innerChanges&&o.intersects(e.lineRangeMapping.modified))).map((e=>({mapping:e,rangeMappings:e.lineRangeMapping.innerChanges.filter((e=>n.some((t=>V.Q.areIntersecting(e.modifiedRange,t)))))})));return 0===s.length||s.every((e=>0===e.rangeMappings.length))?ut:s})),this._register((0,O.$y)(e,this.elements.root)),this._register((0,n.ko)(this.elements.root,"click",(()=>{this._editors.modified.focus()}))),this._register((0,O.AV)(this.elements.root,{display:this._hasActions.map((e=>e?"block":"none"))})),(0,d.a0)(this,(t=>this._showSash.read(t)?new Ce(e,this._sashLayout.dimensions,this._options.enableSplitViewResizing,this._boundarySashes,(0,d.dQ)(this,(e=>this._sashLayout.sashLeft.read(e)-35),((e,t)=>this._sashLayout.sashLeft.set(e+35,t))),(()=>this._sashLayout.resetSash())):void 0)).recomputeInitiallyAndOnChange(this._store),this._register(new et(this._editors.modified,this.elements.root,{getIntersectingGutterItems:(e,t)=>{const i=this._diffModel.read(t);if(!i)return[];const n=i.diff.read(t);if(!n)return[];const o=this._selectedDiffs.read(t);if(o.length>0){const e=z.wm.fromRangeMappings(o.flatMap((e=>e.rangeMappings)));return[new pt(e,!0,at.D8.DiffEditorSelectionToolbar,void 0,i.model.original.uri,i.model.modified.uri)]}const s=this._currentDiff.read(t);return n.mappings.map((e=>new pt(e.lineRangeMapping.withInnerChangesFromLineRanges(),e.lineRangeMapping===(null==s?void 0:s.lineRangeMapping),at.D8.DiffEditorHunkToolbar,void 0,i.model.original.uri,i.model.modified.uri)))},createView:(e,t)=>this._instantiationService.createInstance(mt,e,t,this)})),this._register((0,n.ko)(this.elements.gutter,n.Bx.MOUSE_WHEEL,(e=>{this._editors.modified.getOption(104).handleMouseWheel&&this._editors.modified.delegateScrollFromMouseWheelEvent(e)}),{passive:!1}))}computeStagedValue(e){var t;const i=null!==(t=e.innerChanges)&&void 0!==t?t:[],n=new st(this._editors.modifiedModel.get()),o=new st(this._editors.original.getModel()),s=new nt.mF(i.map((e=>e.toTextEdit(n))));return s.apply(o)}layout(e){this.elements.gutter.style.left=e+"px"}};gt=ct([ht(6,Q._Y),ht(7,lt.fN),ht(8,at.ez)],gt);class pt{constructor(e,t,i,n,o,s){this.mapping=e,this.showAlways=t,this.menuId=i,this.rangeOverride=n,this.originalUri=o,this.modifiedUri=s}get id(){return this.mapping.modified.toString()}get range(){var e;return null!==(e=this.rangeOverride)&&void 0!==e?e:this.mapping.modified}}let mt=class extends a.jG{constructor(e,t,i,o){super(),this._item=e,this._elements=(0,n.h)("div.gutterItem",{style:{height:"20px",width:"34px"}},[(0,n.h)("div.background@background",{},[]),(0,n.h)("div.buttons@buttons",{},[])]),this._showAlways=this._item.map(this,(e=>e.showAlways)),this._menuId=this._item.map(this,(e=>e.menuId)),this._isSmall=(0,l.FY)(this,!1),this._lastItemRange=void 0,this._lastViewRange=void 0;const s=this._register(o.createInstance(dt.fO,"element",!0,{position:{hoverPosition:1}}));this._register((0,O.rX)(t,this._elements.root)),this._register((0,l.fm)((e=>{const t=this._showAlways.read(e);this._elements.root.classList.toggle("noTransition",!0),this._elements.root.classList.toggle("showAlways",t),setTimeout((()=>{this._elements.root.classList.toggle("noTransition",!1)}),0)}))),this._register((0,l.yC)(((e,t)=>{this._elements.buttons.replaceChildren();const n=t.add(o.createInstance(rt.m,this._elements.buttons,this._menuId.read(e),{orientation:1,hoverDelegate:s,toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},overflowBehavior:{maxItems:this._isSmall.read(e)?1:3},hiddenItemStrategy:0,actionRunner:new it.I((()=>{const e=this._item.get(),t=e.mapping;return{mapping:t,originalWithModifiedChanges:i.computeStagedValue(t),originalUri:e.originalUri,modifiedUri:e.modifiedUri}})),menuOptions:{shouldForwardArgs:!0}}));t.add(n.onDidChangeMenuItems((()=>{this._lastItemRange&&this.layout(this._lastItemRange,this._lastViewRange)})))})))}layout(e,t){this._lastItemRange=e,this._lastViewRange=t;let i=this._elements.buttons.clientHeight;this._isSmall.set(1===this._item.get().mapping.original.startLineNumber&&e.length<30,void 0),i=this._elements.buttons.clientHeight;const n=e.length/2-i/2,o=i;let s=e.start+n;const r=W.L.tryCreate(o,t.endExclusive-o-i),a=W.L.tryCreate(e.start+o,e.endExclusive-i-o);a&&r&&a.startthis._themeService.getColorTheme())),c=(0,l.un)((e=>{const t=d.read(e);return{insertColor:t.getColor(yt.ld8)||(t.getColor(yt.Gj6)||yt.EY1).transparent(2),removeColor:t.getColor(yt.$BZ)||(t.getColor(yt.GNm)||yt.ZEf).transparent(2)}})),h=(0,_t.Z)(document.createElement("div"));h.setClassName("diffViewport"),h.setPosition("absolute");const u=(0,n.h)("div.diffOverview",{style:{position:"absolute",top:"0px",width:ft.ENTIRE_DIFF_OVERVIEW_WIDTH+"px"}}).root;this._register((0,O.rX)(u,h.domNode)),this._register((0,n.b2)(u,n.Bx.POINTER_DOWN,(e=>{this._editors.modified.delegateVerticalScrollbarPointerDown(e)}))),this._register((0,n.ko)(u,n.Bx.MOUSE_WHEEL,(e=>{this._editors.modified.delegateScrollFromMouseWheelEvent(e)}),{passive:!1})),this._register((0,O.rX)(this._rootElement,u)),this._register((0,l.yC)(((e,t)=>{const i=this._diffModel.read(e),n=this._editors.original.createOverviewRuler("original diffOverviewRuler");n&&(t.add(n),t.add((0,O.rX)(u,n.getDomNode())));const o=this._editors.modified.createOverviewRuler("modified diffOverviewRuler");if(o&&(t.add(o),t.add((0,O.rX)(u,o.getDomNode()))),!n||!o)return;const s=(0,l.yQ)("viewZoneChanged",this._editors.original.onDidChangeViewZones),r=(0,l.yQ)("viewZoneChanged",this._editors.modified.onDidChangeViewZones),a=(0,l.yQ)("hiddenRangesChanged",this._editors.original.onDidChangeHiddenAreas),d=(0,l.yQ)("hiddenRangesChanged",this._editors.modified.onDidChangeHiddenAreas);t.add((0,l.fm)((e=>{var t;s.read(e),r.read(e),a.read(e),d.read(e);const l=c.read(e),h=null===(t=null==i?void 0:i.diff.read(e))||void 0===t?void 0:t.mappings;function u(e,t,i){const n=i._getViewModel();return n?e.filter((e=>e.length>0)).map((e=>{const i=n.coordinatesConverter.convertModelPositionToViewPosition(new H.y(e.startLineNumber,1)),o=n.coordinatesConverter.convertModelPositionToViewPosition(new H.y(e.endLineNumberExclusive,1)),s=o.lineNumber-i.lineNumber;return new wt.iE(i.lineNumber,o.lineNumber,s,t.toString())})):[]}const g=u((h||[]).map((e=>e.lineRangeMapping.original)),l.removeColor,this._editors.original),p=u((h||[]).map((e=>e.lineRangeMapping.modified)),l.insertColor,this._editors.modified);null==n||n.setZones(g),null==o||o.setZones(p)}))),t.add((0,l.fm)((e=>{const t=this._rootHeight.read(e),i=this._rootWidth.read(e),s=this._modifiedEditorLayoutInfo.read(e);if(s){const i=ft.ENTIRE_DIFF_OVERVIEW_WIDTH-2*ft.ONE_OVERVIEW_WIDTH;n.setLayout({top:0,height:t,right:i+ft.ONE_OVERVIEW_WIDTH,width:ft.ONE_OVERVIEW_WIDTH}),o.setLayout({top:0,height:t,right:0,width:ft.ONE_OVERVIEW_WIDTH});const r=this._editors.modifiedScrollTop.read(e),a=this._editors.modifiedScrollHeight.read(e),l=this._editors.modified.getOption(104),d=new bt.m(l.verticalHasArrows?l.arrowSize:0,l.verticalScrollbarSize,0,s.height,a,r);h.setTop(d.getSliderPosition()),h.setHeight(d.getSliderSize())}else h.setTop(0),h.setHeight(0);u.style.height=t+"px",u.style.left=i-ft.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",h.setWidth(ft.ENTIRE_DIFF_OVERVIEW_WIDTH)})))})))}};kt.ONE_OVERVIEW_WIDTH=15,kt.ENTIRE_DIFF_OVERVIEW_WIDTH=2*ft.ONE_OVERVIEW_WIDTH,kt=ft=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([function(e,t){return function(i,n){t(i,n,e)}}(6,Ct.Gy)],kt);var St=i(91818),xt=i(66055);const Lt=[];class Dt extends a.jG{constructor(e,t,i,n){super(),this._editors=e,this._diffModel=t,this._options=i,this._widget=n,this._selectedDiffs=(0,l.un)(this,(e=>{const t=this._diffModel.read(e),i=null==t?void 0:t.diff.read(e);if(!i)return Lt;const n=this._editors.modifiedSelections.read(e);if(n.every((e=>e.isEmpty())))return Lt;const o=new B.S(n.map((e=>B.M.fromRangeInclusive(e)))),s=i.mappings.filter((e=>e.lineRangeMapping.innerChanges&&o.intersects(e.lineRangeMapping.modified))).map((e=>({mapping:e,rangeMappings:e.lineRangeMapping.innerChanges.filter((e=>n.some((t=>V.Q.areIntersecting(e.modifiedRange,t)))))})));return 0===s.length||s.every((e=>0===e.rangeMappings.length))?Lt:s})),this._register((0,l.yC)(((e,t)=>{if(!this._options.shouldRenderOldRevertArrows.read(e))return;const i=this._diffModel.read(e),n=null==i?void 0:i.diff.read(e);if(!i||!n)return;if(i.movedTextToCompare.read(e))return;const o=[],s=this._selectedDiffs.read(e),r=new Set(s.map((e=>e.mapping)));if(s.length>0){const i=this._editors.modifiedSelections.read(e),n=t.add(new Et(i[i.length-1].positionLineNumber,this._widget,s.flatMap((e=>e.rangeMappings)),!0));this._editors.modified.addGlyphMarginWidget(n),o.push(n)}for(const e of n.mappings)if(!r.has(e)&&!e.lineRangeMapping.modified.isEmpty&&e.lineRangeMapping.innerChanges){const i=t.add(new Et(e.lineRangeMapping.modified.startLineNumber,this._widget,e.lineRangeMapping,!1));this._editors.modified.addGlyphMarginWidget(i),o.push(i)}t.add((0,a.s)((()=>{for(const e of o)this._editors.modified.removeGlyphMarginWidget(e)})))})))}}class Et extends a.jG{getId(){return this._id}constructor(e,t,i,o){super(),this._lineNumber=e,this._widget=t,this._diffs=i,this._revertSelection=o,this._id="revertButton"+Et.counter++,this._domNode=(0,n.h)("div.revertButton",{title:this._revertSelection?(0,q.k)("revertSelectedChanges","Revert Selected Changes"):(0,q.k)("revertChange","Revert Change")},[(0,St.s)(T.W.arrowRight)]).root,this._register((0,n.ko)(this._domNode,n.Bx.MOUSE_DOWN,(e=>{2!==e.button&&(e.stopPropagation(),e.preventDefault())}))),this._register((0,n.ko)(this._domNode,n.Bx.MOUSE_UP,(e=>{e.stopPropagation(),e.preventDefault()}))),this._register((0,n.ko)(this._domNode,n.Bx.CLICK,(e=>{this._diffs instanceof z.WL?this._widget.revert(this._diffs):this._widget.revertRangeMappings(this._diffs),e.stopPropagation(),e.preventDefault()})))}getDomNode(){return this._domNode}getPosition(){return{lane:xt.ZS.Right,range:{startColumn:1,startLineNumber:this._lineNumber,endColumn:1,endLineNumber:this._lineNumber},zIndex:10001}}}Et.counter=0;var It=i(24975),Nt=i(12596),Mt=i(38122),At=i(30657),Tt=i(44023),Rt=i(61988),Pt=i(56071),Ot=function(e,t){return function(i,n){t(i,n,e)}};let Ft=class extends a.jG{get onDidContentSizeChange(){return this._onDidContentSizeChange.event}constructor(e,t,i,n,o,s,a){super(),this.originalEditorElement=e,this.modifiedEditorElement=t,this._options=i,this._argCodeEditorWidgetOptions=n,this._createInnerEditor=o,this._instantiationService=s,this._keybindingService=a,this.original=this._register(this._createLeftHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.originalEditor||{})),this.modified=this._register(this._createRightHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.modifiedEditor||{})),this._onDidContentSizeChange=this._register(new r.vl),this.modifiedScrollTop=(0,l.y0)(this,this.modified.onDidScrollChange,(()=>this.modified.getScrollTop())),this.modifiedScrollHeight=(0,l.y0)(this,this.modified.onDidScrollChange,(()=>this.modified.getScrollHeight())),this.modifiedModel=(0,Rt.Ud)(this.modified).model,this.modifiedSelections=(0,l.y0)(this,this.modified.onDidChangeCursorSelection,(()=>{var e;return null!==(e=this.modified.getSelections())&&void 0!==e?e:[]})),this.modifiedCursor=(0,l.C)({owner:this,equalsFn:H.y.equals},(e=>{var t,i;return null!==(i=null===(t=this.modifiedSelections.read(e)[0])||void 0===t?void 0:t.getPosition())&&void 0!==i?i:new H.y(1,1)})),this.originalCursor=(0,l.y0)(this,this.original.onDidChangeCursorPosition,(()=>{var e;return null!==(e=this.original.getPosition())&&void 0!==e?e:new H.y(1,1)})),this._argCodeEditorWidgetOptions=null,this._register((0,l.Y)({createEmptyChangeSummary:()=>({}),handleChange:(e,t)=>(e.didChange(i.editorOptions)&&Object.assign(t,e.change.changedOptions),!0)},((e,t)=>{i.editorOptions.read(e),this._options.renderSideBySide.read(e),this.modified.updateOptions(this._adjustOptionsForRightHandSide(e,t)),this.original.updateOptions(this._adjustOptionsForLeftHandSide(e,t))})))}_createLeftHandSideEditor(e,t){const i=this._adjustOptionsForLeftHandSide(void 0,e),n=this._constructInnerEditor(this._instantiationService,this.originalEditorElement,i,t);return n.setContextValue("isInDiffLeftEditor",!0),n}_createRightHandSideEditor(e,t){const i=this._adjustOptionsForRightHandSide(void 0,e),n=this._constructInnerEditor(this._instantiationService,this.modifiedEditorElement,i,t);return n.setContextValue("isInDiffRightEditor",!0),n}_constructInnerEditor(e,t,i,n){const o=this._createInnerEditor(e,t,i,n);return this._register(o.onDidContentSizeChange((e=>{const t=this.original.getContentWidth()+this.modified.getContentWidth()+kt.ENTIRE_DIFF_OVERVIEW_WIDTH,i=Math.max(this.modified.getContentHeight(),this.original.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:i,contentWidth:t,contentHeightChanged:e.contentHeightChanged,contentWidthChanged:e.contentWidthChanged})}))),o}_adjustOptionsForLeftHandSide(e,t){const i=this._adjustOptionsForSubEditor(t);return this._options.renderSideBySide.get()?(i.unicodeHighlight=this._options.editorOptions.get().unicodeHighlight||{},i.wordWrapOverride1=this._options.diffWordWrap.get()):(i.wordWrapOverride1="off",i.wordWrapOverride2="off",i.stickyScroll={enabled:!1},i.unicodeHighlight={nonBasicASCII:!1,ambiguousCharacters:!1,invisibleCharacters:!1}),i.glyphMargin=this._options.renderSideBySide.get(),t.originalAriaLabel&&(i.ariaLabel=t.originalAriaLabel),i.ariaLabel=this._updateAriaLabel(i.ariaLabel),i.readOnly=!this._options.originalEditable.get(),i.dropIntoEditor={enabled:!i.readOnly},i.extraEditorClassName="original-in-monaco-diff-editor",i}_adjustOptionsForRightHandSide(e,t){const i=this._adjustOptionsForSubEditor(t);return t.modifiedAriaLabel&&(i.ariaLabel=t.modifiedAriaLabel),i.ariaLabel=this._updateAriaLabel(i.ariaLabel),i.wordWrapOverride1=this._options.diffWordWrap.get(),i.revealHorizontalRightPadding=F.qB.revealHorizontalRightPadding.defaultValue+kt.ENTIRE_DIFF_OVERVIEW_WIDTH,i.scrollbar.verticalHasArrows=!1,i.extraEditorClassName="modified-in-monaco-diff-editor",i}_adjustOptionsForSubEditor(e){const t={...e,dimension:{height:0,width:0}};return t.inDiffEditor=!0,t.automaticLayout=!1,t.scrollbar={...t.scrollbar||{}},t.folding=!1,t.codeLens=this._options.diffCodeLens.get(),t.fixedOverflowWidgets=!0,t.minimap={...t.minimap||{}},t.minimap.enabled=!1,this._options.hideUnchangedRegions.get()?t.stickyScroll={enabled:!1}:t.stickyScroll=this._options.editorOptions.get().stickyScroll,t}_updateAriaLabel(e){var t;e||(e="");const i=(0,q.k)("diff-aria-navigation-tip"," use {0} to open the accessibility help.",null===(t=this._keybindingService.lookupKeybinding("editor.action.accessibilityHelp"))||void 0===t?void 0:t.getAriaLabel());return this._options.accessibilityVerbose.get()?e+i:e?e.replaceAll(i,""):""}};Ft=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Ot(5,Q._Y),Ot(6,Pt.b)],Ft);class Bt extends a.jG{constructor(){super(...arguments),this._id=++Bt.idCounter,this._onDidDispose=this._register(new r.vl),this.onDidDispose=this._onDidDispose.event}getId(){return this.getEditorType()+":v2:"+this._id}getVisibleColumnFromPosition(e){return this._targetEditor.getVisibleColumnFromPosition(e)}getPosition(){return this._targetEditor.getPosition()}setPosition(e,t="api"){this._targetEditor.setPosition(e,t)}revealLine(e,t=0){this._targetEditor.revealLine(e,t)}revealLineInCenter(e,t=0){this._targetEditor.revealLineInCenter(e,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealLineInCenterIfOutsideViewport(e,t)}revealLineNearTop(e,t=0){this._targetEditor.revealLineNearTop(e,t)}revealPosition(e,t=0){this._targetEditor.revealPosition(e,t)}revealPositionInCenter(e,t=0){this._targetEditor.revealPositionInCenter(e,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealPositionInCenterIfOutsideViewport(e,t)}revealPositionNearTop(e,t=0){this._targetEditor.revealPositionNearTop(e,t)}getSelection(){return this._targetEditor.getSelection()}getSelections(){return this._targetEditor.getSelections()}setSelection(e,t="api"){this._targetEditor.setSelection(e,t)}setSelections(e,t="api"){this._targetEditor.setSelections(e,t)}revealLines(e,t,i=0){this._targetEditor.revealLines(e,t,i)}revealLinesInCenter(e,t,i=0){this._targetEditor.revealLinesInCenter(e,t,i)}revealLinesInCenterIfOutsideViewport(e,t,i=0){this._targetEditor.revealLinesInCenterIfOutsideViewport(e,t,i)}revealLinesNearTop(e,t,i=0){this._targetEditor.revealLinesNearTop(e,t,i)}revealRange(e,t=0,i=!1,n=!0){this._targetEditor.revealRange(e,t,i,n)}revealRangeInCenter(e,t=0){this._targetEditor.revealRangeInCenter(e,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._targetEditor.revealRangeInCenterIfOutsideViewport(e,t)}revealRangeNearTop(e,t=0){this._targetEditor.revealRangeNearTop(e,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._targetEditor.revealRangeNearTopIfOutsideViewport(e,t)}revealRangeAtTop(e,t=0){this._targetEditor.revealRangeAtTop(e,t)}getSupportedActions(){return this._targetEditor.getSupportedActions()}focus(){this._targetEditor.focus()}trigger(e,t,i){this._targetEditor.trigger(e,t,i)}createDecorationsCollection(e){return this._targetEditor.createDecorationsCollection(e)}changeDecorations(e){return this._targetEditor.changeDecorations(e)}}Bt.idCounter=0;var Wt=i(36427),Ht=i(53909);let Vt=class{get editorOptions(){return this._options}constructor(e,t){this._accessibilityService=t,this._diffEditorWidth=(0,l.FY)(this,0),this._screenReaderMode=(0,l.y0)(this,this._accessibilityService.onDidChangeScreenReaderOptimized,(()=>this._accessibilityService.isScreenReaderOptimized())),this.couldShowInlineViewBecauseOfSize=(0,l.un)(this,(e=>this._options.read(e).renderSideBySide&&this._diffEditorWidth.read(e)<=this._options.read(e).renderSideBySideInlineBreakpoint)),this.renderOverviewRuler=(0,l.un)(this,(e=>this._options.read(e).renderOverviewRuler)),this.renderSideBySide=(0,l.un)(this,(e=>this._options.read(e).renderSideBySide&&!(this._options.read(e).useInlineViewWhenSpaceIsLimited&&this.couldShowInlineViewBecauseOfSize.read(e)&&!this._screenReaderMode.read(e)))),this.readOnly=(0,l.un)(this,(e=>this._options.read(e).readOnly)),this.shouldRenderOldRevertArrows=(0,l.un)(this,(e=>!(!this._options.read(e).renderMarginRevertIcon||!this.renderSideBySide.read(e)||this.readOnly.read(e)||this.shouldRenderGutterMenu.read(e)))),this.shouldRenderGutterMenu=(0,l.un)(this,(e=>this._options.read(e).renderGutterMenu)),this.renderIndicators=(0,l.un)(this,(e=>this._options.read(e).renderIndicators)),this.enableSplitViewResizing=(0,l.un)(this,(e=>this._options.read(e).enableSplitViewResizing)),this.splitViewDefaultRatio=(0,l.un)(this,(e=>this._options.read(e).splitViewDefaultRatio)),this.ignoreTrimWhitespace=(0,l.un)(this,(e=>this._options.read(e).ignoreTrimWhitespace)),this.maxComputationTimeMs=(0,l.un)(this,(e=>this._options.read(e).maxComputationTime)),this.showMoves=(0,l.un)(this,(e=>this._options.read(e).experimental.showMoves&&this.renderSideBySide.read(e))),this.isInEmbeddedEditor=(0,l.un)(this,(e=>this._options.read(e).isInEmbeddedEditor)),this.diffWordWrap=(0,l.un)(this,(e=>this._options.read(e).diffWordWrap)),this.originalEditable=(0,l.un)(this,(e=>this._options.read(e).originalEditable)),this.diffCodeLens=(0,l.un)(this,(e=>this._options.read(e).diffCodeLens)),this.accessibilityVerbose=(0,l.un)(this,(e=>this._options.read(e).accessibilityVerbose)),this.diffAlgorithm=(0,l.un)(this,(e=>this._options.read(e).diffAlgorithm)),this.showEmptyDecorations=(0,l.un)(this,(e=>this._options.read(e).experimental.showEmptyDecorations)),this.onlyShowAccessibleDiffViewer=(0,l.un)(this,(e=>this._options.read(e).onlyShowAccessibleDiffViewer)),this.hideUnchangedRegions=(0,l.un)(this,(e=>this._options.read(e).hideUnchangedRegions.enabled)),this.hideUnchangedRegionsRevealLineCount=(0,l.un)(this,(e=>this._options.read(e).hideUnchangedRegions.revealLineCount)),this.hideUnchangedRegionsContextLineCount=(0,l.un)(this,(e=>this._options.read(e).hideUnchangedRegions.contextLineCount)),this.hideUnchangedRegionsMinimumLineCount=(0,l.un)(this,(e=>this._options.read(e).hideUnchangedRegions.minimumLineCount));const i={...e,...zt(e,Wt.q)};this._options=(0,l.FY)(this,i)}updateOptions(e){const t=zt(e,this._options.get()),i={...this._options.get(),...e,...t};this._options.set(i,void 0,{changedOptions:e})}setWidth(e){this._diffEditorWidth.set(e,void 0)}};function zt(e,t){var i,n,o,s,r,a,l,d;return{enableSplitViewResizing:(0,F.zM)(e.enableSplitViewResizing,t.enableSplitViewResizing),splitViewDefaultRatio:(0,F.ls)(e.splitViewDefaultRatio,.5,.1,.9),renderSideBySide:(0,F.zM)(e.renderSideBySide,t.renderSideBySide),renderMarginRevertIcon:(0,F.zM)(e.renderMarginRevertIcon,t.renderMarginRevertIcon),maxComputationTime:(0,F.wA)(e.maxComputationTime,t.maxComputationTime,0,1073741824),maxFileSize:(0,F.wA)(e.maxFileSize,t.maxFileSize,0,1073741824),ignoreTrimWhitespace:(0,F.zM)(e.ignoreTrimWhitespace,t.ignoreTrimWhitespace),renderIndicators:(0,F.zM)(e.renderIndicators,t.renderIndicators),originalEditable:(0,F.zM)(e.originalEditable,t.originalEditable),diffCodeLens:(0,F.zM)(e.diffCodeLens,t.diffCodeLens),renderOverviewRuler:(0,F.zM)(e.renderOverviewRuler,t.renderOverviewRuler),diffWordWrap:(0,F.O4)(e.diffWordWrap,t.diffWordWrap,["off","on","inherit"]),diffAlgorithm:(0,F.O4)(e.diffAlgorithm,t.diffAlgorithm,["legacy","advanced"],{smart:"legacy",experimental:"advanced"}),accessibilityVerbose:(0,F.zM)(e.accessibilityVerbose,t.accessibilityVerbose),experimental:{showMoves:(0,F.zM)(null===(i=e.experimental)||void 0===i?void 0:i.showMoves,t.experimental.showMoves),showEmptyDecorations:(0,F.zM)(null===(n=e.experimental)||void 0===n?void 0:n.showEmptyDecorations,t.experimental.showEmptyDecorations)},hideUnchangedRegions:{enabled:(0,F.zM)(null!==(s=null===(o=e.hideUnchangedRegions)||void 0===o?void 0:o.enabled)&&void 0!==s?s:null===(r=e.experimental)||void 0===r?void 0:r.collapseUnchangedRegions,t.hideUnchangedRegions.enabled),contextLineCount:(0,F.wA)(null===(a=e.hideUnchangedRegions)||void 0===a?void 0:a.contextLineCount,t.hideUnchangedRegions.contextLineCount,0,1073741824),minimumLineCount:(0,F.wA)(null===(l=e.hideUnchangedRegions)||void 0===l?void 0:l.minimumLineCount,t.hideUnchangedRegions.minimumLineCount,0,1073741824),revealLineCount:(0,F.wA)(null===(d=e.hideUnchangedRegions)||void 0===d?void 0:d.revealLineCount,t.hideUnchangedRegions.revealLineCount,0,1073741824)},isInEmbeddedEditor:(0,F.zM)(e.isInEmbeddedEditor,t.isInEmbeddedEditor),onlyShowAccessibleDiffViewer:(0,F.zM)(e.onlyShowAccessibleDiffViewer,t.onlyShowAccessibleDiffViewer),renderSideBySideInlineBreakpoint:(0,F.wA)(e.renderSideBySideInlineBreakpoint,t.renderSideBySideInlineBreakpoint,0,1073741824),useInlineViewWhenSpaceIsLimited:(0,F.zM)(e.useInlineViewWhenSpaceIsLimited,t.useInlineViewWhenSpaceIsLimited),renderGutterMenu:(0,F.zM)(e.renderGutterMenu,t.renderGutterMenu)}}Vt=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([function(e,t){return function(i,n){t(i,n,e)}}(1,Ht.j)],Vt);var jt=function(e,t){return function(i,n){t(i,n,e)}};let Ut=class extends Bt{get onDidContentSizeChange(){return this._editors.onDidContentSizeChange}constructor(e,t,i,o,c,h,u,g){var p;super(),this._domElement=e,this._parentContextKeyService=o,this._parentInstantiationService=c,this._accessibilitySignalService=u,this._editorProgressService=g,this.elements=(0,n.h)("div.monaco-diff-editor.side-by-side",{style:{position:"relative",height:"100%"}},[(0,n.h)("div.editor.original@original",{style:{position:"absolute",height:"100%"}}),(0,n.h)("div.editor.modified@modified",{style:{position:"absolute",height:"100%"}}),(0,n.h)("div.accessibleDiffViewer@accessibleDiffViewer",{style:{position:"absolute",height:"100%"}})]),this._diffModel=(0,l.FY)(this,void 0),this._shouldDisposeDiffModel=!1,this.onDidChangeModel=r.Jh.fromObservableLight(this._diffModel),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._domElement)),this._instantiationService=this._register(this._parentInstantiationService.createChild(new At.a([lt.fN,this._contextKeyService]))),this._boundarySashes=(0,l.FY)(this,void 0),this._accessibleDiffViewerShouldBeVisible=(0,l.FY)(this,!1),this._accessibleDiffViewerVisible=(0,l.un)(this,(e=>!!this._options.onlyShowAccessibleDiffViewer.read(e)||this._accessibleDiffViewerShouldBeVisible.read(e))),this._movedBlocksLinesPart=(0,l.FY)(this,void 0),this._layoutInfo=(0,l.un)(this,(e=>{var t,i,n,o,s;const r=this._rootSizeObserver.width.read(e),a=this._rootSizeObserver.height.read(e);this._rootSizeObserver.automaticLayout?this.elements.root.style.height="100%":this.elements.root.style.height=a+"px";const l=this._sash.read(e),d=this._gutter.read(e),c=null!==(t=null==d?void 0:d.width.read(e))&&void 0!==t?t:0,h=null!==(n=null===(i=this._overviewRulerPart.read(e))||void 0===i?void 0:i.width)&&void 0!==n?n:0;let u,g,p,m,f;if(l){const t=l.sashLeft.read(e);u=0,g=t-c-(null!==(s=null===(o=this._movedBlocksLinesPart.read(e))||void 0===o?void 0:o.width.read(e))&&void 0!==s?s:0),f=t-c,p=t,m=r-p-h}else f=0,u=c,g=Math.max(5,this._editors.original.getLayoutInfo().decorationsLeft),p=c+g,m=r-p-h;return this.elements.original.style.left=u+"px",this.elements.original.style.width=g+"px",this._editors.original.layout({width:g,height:a},!0),null==d||d.layout(f),this.elements.modified.style.left=p+"px",this.elements.modified.style.width=m+"px",this._editors.modified.layout({width:m,height:a},!0),{modifiedEditor:this._editors.modified.getLayoutInfo(),originalEditor:this._editors.original.getLayoutInfo()}})),this._diffValue=this._diffModel.map(((e,t)=>null==e?void 0:e.diff.read(t))),this.onDidUpdateDiff=r.Jh.fromObservableLight(this._diffValue),h.willCreateDiffEditor(),this._contextKeyService.createKey("isInDiffEditor",!0),this._domElement.appendChild(this.elements.root),this._register((0,a.s)((()=>this.elements.root.remove()))),this._rootSizeObserver=this._register(new O.pN(this.elements.root,t.dimension)),this._rootSizeObserver.setAutomaticLayout(null!==(p=t.automaticLayout)&&void 0!==p&&p),this._options=this._instantiationService.createInstance(Vt,t),this._register((0,l.fm)((e=>{this._options.setWidth(this._rootSizeObserver.width.read(e))}))),this._contextKeyService.createKey(Mt.R.isEmbeddedDiffEditor.key,!1),this._register((0,It.w)(Mt.R.isEmbeddedDiffEditor,this._contextKeyService,(e=>this._options.isInEmbeddedEditor.read(e)))),this._register((0,It.w)(Mt.R.comparingMovedCode,this._contextKeyService,(e=>{var t;return!!(null===(t=this._diffModel.read(e))||void 0===t?void 0:t.movedTextToCompare.read(e))}))),this._register((0,It.w)(Mt.R.diffEditorRenderSideBySideInlineBreakpointReached,this._contextKeyService,(e=>this._options.couldShowInlineViewBecauseOfSize.read(e)))),this._register((0,It.w)(Mt.R.diffEditorInlineMode,this._contextKeyService,(e=>!this._options.renderSideBySide.read(e)))),this._register((0,It.w)(Mt.R.hasChanges,this._contextKeyService,(e=>{var t,i,n;return(null!==(n=null===(i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.diff.read(e))||void 0===i?void 0:i.mappings.length)&&void 0!==n?n:0)>0}))),this._editors=this._register(this._instantiationService.createInstance(Ft,this.elements.original,this.elements.modified,this._options,i,((e,t,i,n)=>this._createInnerEditor(e,t,i,n)))),this._register((0,It.w)(Mt.R.diffEditorOriginalWritable,this._contextKeyService,(e=>this._options.originalEditable.read(e)))),this._register((0,It.w)(Mt.R.diffEditorModifiedWritable,this._contextKeyService,(e=>!this._options.readOnly.read(e)))),this._register((0,It.w)(Mt.R.diffEditorOriginalUri,this._contextKeyService,(e=>{var t,i;return null!==(i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.model.original.uri.toString())&&void 0!==i?i:""}))),this._register((0,It.w)(Mt.R.diffEditorModifiedUri,this._contextKeyService,(e=>{var t,i;return null!==(i=null===(t=this._diffModel.read(e))||void 0===t?void 0:t.model.modified.uri.toString())&&void 0!==i?i:""}))),this._overviewRulerPart=(0,d.a0)(this,(e=>this._options.renderOverviewRuler.read(e)?this._instantiationService.createInstance((0,De.b)(kt,e),this._editors,this.elements.root,this._diffModel,this._rootSizeObserver.width,this._rootSizeObserver.height,this._layoutInfo.map((e=>e.modifiedEditor))):void 0)).recomputeInitiallyAndOnChange(this._store);const m={height:this._rootSizeObserver.height,width:this._rootSizeObserver.width.map(((e,t)=>{var i,n;return e-(null!==(n=null===(i=this._overviewRulerPart.read(t))||void 0===i?void 0:i.width)&&void 0!==n?n:0)}))};this._sashLayout=new ye(this._options,m),this._sash=(0,d.a0)(this,(e=>{const t=this._options.renderSideBySide.read(e);return this.elements.root.classList.toggle("side-by-side",t),t?new Ce(this.elements.root,m,this._options.enableSplitViewResizing,this._boundarySashes,this._sashLayout.sashLeft,(()=>this._sashLayout.resetSash())):void 0})).recomputeInitiallyAndOnChange(this._store);const f=(0,d.a0)(this,(e=>this._instantiationService.createInstance((0,De.b)(vt.N,e),this._editors,this._diffModel,this._options))).recomputeInitiallyAndOnChange(this._store);(0,d.a0)(this,(e=>this._instantiationService.createInstance((0,De.b)(be,e),this._editors,this._diffModel,this._options,this))).recomputeInitiallyAndOnChange(this._store);const v=new Set,_=new Set;let b=!1;const w=(0,d.a0)(this,(e=>this._instantiationService.createInstance((0,De.b)(Ye,e),(0,n.zk)(this._domElement),this._editors,this._diffModel,this._options,this,(()=>b||f.get().isUpdatingHiddenAreas),v,_))).recomputeInitiallyAndOnChange(this._store),y=(0,l.un)(this,(e=>{const t=w.read(e).viewZones.read(e).orig,i=f.read(e).viewZones.read(e).origViewZones;return t.concat(i)})),C=(0,l.un)(this,(e=>{const t=w.read(e).viewZones.read(e).mod,i=f.read(e).viewZones.read(e).modViewZones;return t.concat(i)}));let k;this._register((0,O.Vs)(this._editors.original,y,(e=>{b=e}),v)),this._register((0,O.Vs)(this._editors.modified,C,(e=>{b=e,b?k=L.D.capture(this._editors.modified):(null==k||k.restore(this._editors.modified),k=void 0)}),_)),this._accessibleDiffViewer=(0,d.a0)(this,(e=>this._instantiationService.createInstance((0,De.b)(oe,e),this.elements.accessibleDiffViewer,this._accessibleDiffViewerVisible,((e,t)=>this._accessibleDiffViewerShouldBeVisible.set(e,t)),this._options.onlyShowAccessibleDiffViewer.map((e=>!e)),this._rootSizeObserver.width,this._rootSizeObserver.height,this._diffModel.map(((e,t)=>{var i;return null===(i=null==e?void 0:e.diff.read(t))||void 0===i?void 0:i.mappings.map((e=>e.lineRangeMapping))})),new pe(this._editors)))).recomputeInitiallyAndOnChange(this._store);const S=this._accessibleDiffViewerVisible.map((e=>e?"hidden":"visible"));this._register((0,O.AV)(this.elements.modified,{visibility:S})),this._register((0,O.AV)(this.elements.original,{visibility:S})),this._createDiffEditorContributions(),h.addDiffEditor(this),this._gutter=(0,d.a0)(this,(e=>this._options.shouldRenderGutterMenu.read(e)?this._instantiationService.createInstance((0,De.b)(gt,e),this.elements.root,this._diffModel,this._editors,this._options,this._sashLayout,this._boundarySashes):void 0)),this._register((0,l.OI)(this._layoutInfo)),(0,d.a0)(this,(e=>new((0,De.b)(me,e))(this.elements.root,this._diffModel,this._layoutInfo.map((e=>e.originalEditor)),this._layoutInfo.map((e=>e.modifiedEditor)),this._editors))).recomputeInitiallyAndOnChange(this._store,(e=>{this._movedBlocksLinesPart.set(e,void 0)})),this._register(r.Jh.runAndSubscribe(this._editors.modified.onDidChangeCursorPosition,(e=>this._handleCursorPositionChange(e,!0)))),this._register(r.Jh.runAndSubscribe(this._editors.original.onDidChangeCursorPosition,(e=>this._handleCursorPositionChange(e,!1))));const x=this._diffModel.map(this,((e,t)=>{if(e)return void 0===e.diff.read(t)&&!e.isDiffUpToDate.read(t)}));this._register((0,l.yC)(((e,t)=>{if(!0===x.read(e)){const e=this._editorProgressService.show(!0,1e3);t.add((0,a.s)((()=>e.done())))}}))),this._register((0,a.s)((()=>{var e;this._shouldDisposeDiffModel&&(null===(e=this._diffModel.get())||void 0===e||e.dispose())}))),this._register((0,l.yC)(((e,t)=>{t.add(new((0,De.b)(Dt,e))(this._editors,this._diffModel,this._options,this))}))),this._register((0,l.yC)(((e,t)=>{const i=this._diffModel.read(e);if(i)for(const e of[i.model.original,i.model.modified])t.add(e.onWillDispose((e=>{(0,s.dz)(new s.D7("TextModel got disposed before DiffEditorWidget model got reset")),this.setModel(null)})))})))}_createInnerEditor(e,t,i,n){return e.createInstance(D.CodeEditorWidget,t,i,n)}_createDiffEditorContributions(){const e=S.dS.getDiffEditorContributions();for(const t of e)try{this._register(this._instantiationService.createInstance(t.ctor,this))}catch(e){(0,s.dz)(e)}}get _targetEditor(){return this._editors.modified}getEditorType(){return Nt._.IDiffEditor}layout(e){this._rootSizeObserver.observe(e)}hasTextFocus(){return this._editors.original.hasTextFocus()||this._editors.modified.hasTextFocus()}saveViewState(){var e;return{original:this._editors.original.saveViewState(),modified:this._editors.modified.saveViewState(),modelState:null===(e=this._diffModel.get())||void 0===e?void 0:e.serializeState()}}restoreViewState(e){var t;if(e&&e.original&&e.modified){const i=e;this._editors.original.restoreViewState(i.original),this._editors.modified.restoreViewState(i.modified),i.modelState&&(null===(t=this._diffModel.get())||void 0===t||t.restoreSerializedState(i.modelState))}}handleInitialized(){this._editors.original.handleInitialized(),this._editors.modified.handleInitialized()}createViewModel(e){return this._instantiationService.createInstance(Te,e,this._options)}getModel(){var e,t;return null!==(t=null===(e=this._diffModel.get())||void 0===e?void 0:e.model)&&void 0!==t?t:null}setModel(e,t){!e&&this._diffModel.get()&&this._accessibleDiffViewer.get().close();const i=e?"model"in e?{model:e,shouldDispose:!1}:{model:this.createViewModel(e),shouldDispose:!0}:void 0;this._diffModel.get()!==(null==i?void 0:i.model)&&(0,l.PO)(t,(e=>{var t;l.y0.batchEventsGlobally(e,(()=>{this._editors.original.setModel(i?i.model.model.original:null),this._editors.modified.setModel(i?i.model.model.modified:null)}));const n=this._diffModel.get(),o=this._shouldDisposeDiffModel;this._shouldDisposeDiffModel=null!==(t=null==i?void 0:i.shouldDispose)&&void 0!==t&&t,this._diffModel.set(null==i?void 0:i.model,e),o&&(null==n||n.dispose())}))}updateOptions(e){this._options.updateOptions(e)}getContainerDomNode(){return this._domElement}getOriginalEditor(){return this._editors.original}getModifiedEditor(){return this._editors.modified}getLineChanges(){var e;const t=null===(e=this._diffModel.get())||void 0===e?void 0:e.diff.get();return t?t.mappings.map((e=>{const t=e.lineRangeMapping;let i,n,o,s,r=t.innerChanges;return t.original.isEmpty?(i=t.original.startLineNumber-1,n=0,r=void 0):(i=t.original.startLineNumber,n=t.original.endLineNumberExclusive-1),t.modified.isEmpty?(o=t.modified.startLineNumber-1,s=0,r=void 0):(o=t.modified.startLineNumber,s=t.modified.endLineNumberExclusive-1),{originalStartLineNumber:i,originalEndLineNumber:n,modifiedStartLineNumber:o,modifiedEndLineNumber:s,charChanges:null==r?void 0:r.map((e=>({originalStartLineNumber:e.originalRange.startLineNumber,originalStartColumn:e.originalRange.startColumn,originalEndLineNumber:e.originalRange.endLineNumber,originalEndColumn:e.originalRange.endColumn,modifiedStartLineNumber:e.modifiedRange.startLineNumber,modifiedStartColumn:e.modifiedRange.startColumn,modifiedEndLineNumber:e.modifiedRange.endLineNumber,modifiedEndColumn:e.modifiedRange.endColumn})))}})):null}revert(e){const t=this._diffModel.get();t&&t.isDiffUpToDate.get()&&this._editors.modified.executeEdits("diffEditor",[{range:e.modified.toExclusiveRange(),text:t.model.original.getValueInRange(e.original.toExclusiveRange())}])}revertRangeMappings(e){const t=this._diffModel.get();if(!t||!t.isDiffUpToDate.get())return;const i=e.map((e=>({range:e.modifiedRange,text:t.model.original.getValueInRange(e.originalRange)})));this._editors.modified.executeEdits("diffEditor",i)}_goTo(e){this._editors.modified.setPosition(new H.y(e.lineRangeMapping.modified.startLineNumber,1)),this._editors.modified.revealRangeInCenter(e.lineRangeMapping.modified.toExclusiveRange())}goToDiff(e){var t,i,n,s;const r=null===(i=null===(t=this._diffModel.get())||void 0===t?void 0:t.diff.get())||void 0===i?void 0:i.mappings;if(!r||0===r.length)return;const a=this._editors.modified.getPosition().lineNumber;let l;l="next"===e?null!==(n=r.find((e=>e.lineRangeMapping.modified.startLineNumber>a)))&&void 0!==n?n:r[0]:null!==(s=(0,o.Uk)(r,(e=>e.lineRangeMapping.modified.startLineNumber{var t;const i=null===(t=e.diff.get())||void 0===t?void 0:t.mappings;i&&0!==i.length&&this._goTo(i[0])}))}accessibleDiffViewerNext(){this._accessibleDiffViewer.get().next()}accessibleDiffViewerPrev(){this._accessibleDiffViewer.get().prev()}async waitForDiff(){const e=this._diffModel.get();e&&await e.waitForDiff()}mapToOtherSide(){var e,t;const i=this._editors.modified.hasWidgetFocus(),n=i?this._editors.modified:this._editors.original,o=i?this._editors.original:this._editors.modified;let s;const r=n.getSelection();if(r){const n=null===(t=null===(e=this._diffModel.get())||void 0===e?void 0:e.diff.get())||void 0===t?void 0:t.mappings.map((e=>i?e.lineRangeMapping.flip():e.lineRangeMapping));if(n){const e=(0,O.Mu)(r.getStartPosition(),n),t=(0,O.Mu)(r.getEndPosition(),n);s=V.Q.plusRange(e,t)}}return{destination:o,destinationSelection:s}}switchSide(){const{destination:e,destinationSelection:t}=this.mapToOtherSide();e.focus(),t&&e.setSelection(t)}exitCompareMove(){const e=this._diffModel.get();e&&e.movedTextToCompare.set(void 0,void 0)}collapseAllUnchangedRegions(){var e;const t=null===(e=this._diffModel.get())||void 0===e?void 0:e.unchangedRegions.get();t&&(0,l.Rn)((e=>{for(const i of t)i.collapseAll(e)}))}showAllUnchangedRegions(){var e;const t=null===(e=this._diffModel.get())||void 0===e?void 0:e.unchangedRegions.get();t&&(0,l.Rn)((e=>{for(const i of t)i.showAll(e)}))}_handleCursorPositionChange(e,t){var i,n;if(3===(null==e?void 0:e.reason)){const o=null===(n=null===(i=this._diffModel.get())||void 0===i?void 0:i.diff.get())||void 0===n?void 0:n.mappings.find((i=>t?i.lineRangeMapping.modified.contains(e.position.lineNumber):i.lineRangeMapping.original.contains(e.position.lineNumber)));(null==o?void 0:o.lineRangeMapping.modified.isEmpty)?this._accessibilitySignalService.playSignal(G.Rh.diffLineDeleted,{source:"diffEditor.cursorPositionChanged"}):(null==o?void 0:o.lineRangeMapping.original.isEmpty)?this._accessibilitySignalService.playSignal(G.Rh.diffLineInserted,{source:"diffEditor.cursorPositionChanged"}):o&&this._accessibilitySignalService.playSignal(G.Rh.diffLineModified,{source:"diffEditor.cursorPositionChanged"})}}};Ut=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([jt(3,lt.fN),jt(4,Q._Y),jt(5,x.T),jt(6,G.Nt),jt(7,Tt.N8)],Ut)},31602:(e,t,i)=>{"use strict";i.d(t,{Hg:()=>p});var n,o=i(66726),s=i(82399),r=i(2106),a=i(23013),l=i(79955),d=i(39331),c=i(90304),h=i(76243),u=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},g=function(e,t){return function(i,n){t(i,n,e)}};const p=(0,s.u1)("diffProviderFactoryService");let m=class{constructor(e){this.instantiationService=e}createDiffProvider(e){return this.instantiationService.createInstance(f,e)}};m=u([g(0,s._Y)],m),(0,o.v)(p,m,1);let f=n=class{constructor(e,t,i){this.editorWorkerService=t,this.telemetryService=i,this.onDidChangeEventEmitter=new r.vl,this.onDidChange=this.onDidChangeEventEmitter.event,this.diffAlgorithm="advanced",this.diffAlgorithmOnDidChangeSubscription=void 0,this.setOptions(e)}dispose(){var e;null===(e=this.diffAlgorithmOnDidChangeSubscription)||void 0===e||e.dispose()}async computeDiff(e,t,i,o){var s,r;if("string"!=typeof this.diffAlgorithm)return this.diffAlgorithm.computeDiff(e,t,i,o);if(e.isDisposed()||t.isDisposed())return{changes:[],identical:!0,quitEarly:!1,moves:[]};if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return 1===t.getLineCount()&&1===t.getLineMaxColumn(1)?{changes:[],identical:!0,quitEarly:!1,moves:[]}:{changes:[new d.wm(new l.M(1,2),new l.M(1,t.getLineCount()+1),[new d.q6(e.getFullModelRange(),t.getFullModelRange())])],identical:!1,quitEarly:!1,moves:[]};const c=JSON.stringify([e.uri.toString(),t.uri.toString()]),h=JSON.stringify([e.id,t.id,e.getAlternativeVersionId(),t.getAlternativeVersionId(),JSON.stringify(i)]),u=n.diffCache.get(c);if(u&&u.context===h)return u.result;const g=a.W.create(),p=await this.editorWorkerService.computeDiff(e.uri,t.uri,i,this.diffAlgorithm),m=g.elapsed();if(this.telemetryService.publicLog2("diffEditor.computeDiff",{timeMs:m,timedOut:null===(s=null==p?void 0:p.quitEarly)||void 0===s||s,detectedMoves:i.computeMoves?null!==(r=null==p?void 0:p.moves.length)&&void 0!==r?r:0:-1}),o.isCancellationRequested)return{changes:[],identical:!1,quitEarly:!0,moves:[]};if(!p)throw new Error("no diff result available");return n.diffCache.size>10&&n.diffCache.delete(n.diffCache.keys().next().value),n.diffCache.set(c,{result:p,context:h}),p}setOptions(e){var t;let i=!1;e.diffAlgorithm&&this.diffAlgorithm!==e.diffAlgorithm&&(null===(t=this.diffAlgorithmOnDidChangeSubscription)||void 0===t||t.dispose(),this.diffAlgorithmOnDidChangeSubscription=void 0,this.diffAlgorithm=e.diffAlgorithm,"string"!=typeof e.diffAlgorithm&&(this.diffAlgorithmOnDidChangeSubscription=e.diffAlgorithm.onDidChange((()=>this.onDidChangeEventEmitter.fire()))),i=!0),i&&this.onDidChangeEventEmitter.fire()}};f.diffCache=new Map,f=n=u([g(1,c.w),g(2,h.k)],f)},97965:(e,t,i)=>{"use strict";i.d(t,{N:()=>w});var n,o=i(14333),s=i(91818),r=i(26048),a=i(90028),l=i(10998),d=i(16311),c=i(18366),h=i(58881),u=i(79359),g=i(2744),p=i(79955),m=i(15365),f=i(28061),v=i(47317),_=i(3765),b=i(82399);let w=n=class extends l.jG{static setBreadcrumbsSourceFactory(e){this._breadcrumbsSourceFactory.set(e,void 0)}get isUpdatingHiddenAreas(){return this._isUpdatingHiddenAreas}constructor(e,t,i,o){super(),this._editors=e,this._diffModel=t,this._options=i,this._instantiationService=o,this._modifiedOutlineSource=(0,c.a0)(this,(e=>{const t=this._editors.modifiedModel.read(e),i=n._breadcrumbsSourceFactory.read(e);return t&&i?i(t,this._instantiationService):void 0})),this._isUpdatingHiddenAreas=!1,this._register(this._editors.original.onDidChangeCursorPosition((e=>{if(1===e.reason)return;const t=this._diffModel.get();(0,d.Rn)((e=>{for(const i of this._editors.original.getSelections()||[])null==t||t.ensureOriginalLineIsVisible(i.getStartPosition().lineNumber,0,e),null==t||t.ensureOriginalLineIsVisible(i.getEndPosition().lineNumber,0,e)}))}))),this._register(this._editors.modified.onDidChangeCursorPosition((e=>{if(1===e.reason)return;const t=this._diffModel.get();(0,d.Rn)((e=>{for(const i of this._editors.modified.getSelections()||[])null==t||t.ensureModifiedLineIsVisible(i.getStartPosition().lineNumber,0,e),null==t||t.ensureModifiedLineIsVisible(i.getEndPosition().lineNumber,0,e)}))})));const s=this._diffModel.map(((e,t)=>{var i,n;const o=null!==(i=null==e?void 0:e.unchangedRegions.read(t))&&void 0!==i?i:[];return 1===o.length&&1===o[0].modifiedLineNumber&&o[0].lineCount===(null===(n=this._editors.modifiedModel.read(t))||void 0===n?void 0:n.getLineCount())?[]:o}));this.viewZones=(0,d.rm)(this,((e,t)=>{const i=this._modifiedOutlineSource.read(e);if(!i)return{origViewZones:[],modViewZones:[]};const n=[],o=[],r=this._options.renderSideBySide.read(e),a=s.read(e);for(const s of a)if(!s.shouldHideControls(e)){{const e=(0,d.un)(this,(e=>s.getHiddenOriginalRange(e).startLineNumber-1)),o=new g.D1(e,24);n.push(o),t.add(new k(this._editors.original,o,s,s.originalUnchangedRange,!r,i,(e=>this._diffModel.get().ensureModifiedLineIsVisible(e,2,void 0)),this._options))}{const e=(0,d.un)(this,(e=>s.getHiddenModifiedRange(e).startLineNumber-1)),n=new g.D1(e,24);o.push(n),t.add(new k(this._editors.modified,n,s,s.modifiedUnchangedRange,!1,i,(e=>this._diffModel.get().ensureModifiedLineIsVisible(e,2,void 0)),this._options))}}return{origViewZones:n,modViewZones:o}}));const l={description:"unchanged lines",className:"diff-unchanged-lines",isWholeLine:!0},v={description:"Fold Unchanged",glyphMarginHoverMessage:new a.Bc(void 0,{isTrusted:!0,supportThemeIcons:!0}).appendMarkdown((0,_.k)("foldUnchanged","Fold Unchanged Region")),glyphMarginClassName:"fold-unchanged "+h.L.asClassName(r.W.fold),zIndex:10001};this._register((0,g.pY)(this._editors.original,(0,d.un)(this,(e=>{const t=s.read(e),i=t.map((e=>({range:e.originalUnchangedRange.toInclusiveRange(),options:l})));for(const n of t)n.shouldHideControls(e)&&i.push({range:f.Q.fromPositions(new m.y(n.originalLineNumber,1)),options:v});return i})))),this._register((0,g.pY)(this._editors.modified,(0,d.un)(this,(e=>{const t=s.read(e),i=t.map((e=>({range:e.modifiedUnchangedRange.toInclusiveRange(),options:l})));for(const n of t)n.shouldHideControls(e)&&i.push({range:p.M.ofLength(n.modifiedLineNumber,1).toInclusiveRange(),options:v});return i})))),this._register((0,d.fm)((e=>{const t=s.read(e);this._isUpdatingHiddenAreas=!0;try{this._editors.original.setHiddenAreas(t.map((t=>t.getHiddenOriginalRange(e).toInclusiveRange())).filter(u.O9)),this._editors.modified.setHiddenAreas(t.map((t=>t.getHiddenModifiedRange(e).toInclusiveRange())).filter(u.O9))}finally{this._isUpdatingHiddenAreas=!1}}))),this._register(this._editors.modified.onMouseUp((e=>{var t;if(!e.event.rightButton&&e.target.position&&(null===(t=e.target.element)||void 0===t?void 0:t.className.includes("fold-unchanged"))){const t=e.target.position.lineNumber,i=this._diffModel.get();if(!i)return;const n=i.unchangedRegions.get().find((e=>e.modifiedUnchangedRange.includes(t)));if(!n)return;n.collapseAll(void 0),e.event.stopPropagation(),e.event.preventDefault()}}))),this._register(this._editors.original.onMouseUp((e=>{var t;if(!e.event.rightButton&&e.target.position&&(null===(t=e.target.element)||void 0===t?void 0:t.className.includes("fold-unchanged"))){const t=e.target.position.lineNumber,i=this._diffModel.get();if(!i)return;const n=i.unchangedRegions.get().find((e=>e.originalUnchangedRange.includes(t)));if(!n)return;n.collapseAll(void 0),e.event.stopPropagation(),e.event.preventDefault()}})))}};var y,C;w._breadcrumbsSourceFactory=(0,d.FY)("breadcrumbsSourceFactory",void 0),w=n=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(y=3,C=b._Y,function(e,t){C(e,t,y)})],w);class k extends g.uN{constructor(e,t,i,n,a,l,c,h){const u=(0,o.h)("div.diff-hidden-lines-widget");super(e,t,u.root),this._editor=e,this._unchangedRegion=i,this._unchangedRegionRange=n,this._hide=a,this._modifiedOutlineSource=l,this._revealModifiedHiddenLine=c,this._options=h,this._nodes=(0,o.h)("div.diff-hidden-lines",[(0,o.h)("div.top@top",{title:(0,_.k)("diff.hiddenLines.top","Click or drag to show more above")}),(0,o.h)("div.center@content",{style:{display:"flex"}},[(0,o.h)("div@first",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0"}},[(0,o.$)("a",{title:(0,_.k)("showUnchangedRegion","Show Unchanged Region"),role:"button",onclick:()=>{this._unchangedRegion.showAll(void 0)}},...(0,s.n)("$(unfold)"))]),(0,o.h)("div@others",{style:{display:"flex",justifyContent:"center",alignItems:"center"}})]),(0,o.h)("div.bottom@bottom",{title:(0,_.k)("diff.bottom","Click or drag to show more below"),role:"button"})]),u.root.appendChild(this._nodes.root);const p=(0,d.y0)(this._editor.onDidLayoutChange,(()=>this._editor.getLayoutInfo()));this._hide?(0,o.Ln)(this._nodes.first):this._register((0,g.AV)(this._nodes.first,{width:p.map((e=>e.contentLeft))})),this._register((0,d.fm)((e=>{const t=this._unchangedRegion.visibleLineCountTop.read(e)+this._unchangedRegion.visibleLineCountBottom.read(e)===this._unchangedRegion.lineCount;this._nodes.bottom.classList.toggle("canMoveTop",!t),this._nodes.bottom.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(e)>0),this._nodes.top.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(e)>0),this._nodes.top.classList.toggle("canMoveBottom",!t);const i=this._unchangedRegion.isDragged.read(e),n=this._editor.getDomNode();n&&(n.classList.toggle("draggingUnchangedRegion",!!i),"top"===i?(n.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(e)>0),n.classList.toggle("canMoveBottom",!t)):"bottom"===i?(n.classList.toggle("canMoveTop",!t),n.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(e)>0)):(n.classList.toggle("canMoveTop",!1),n.classList.toggle("canMoveBottom",!1)))})));const m=this._editor;this._register((0,o.ko)(this._nodes.top,"mousedown",(e=>{if(0!==e.button)return;this._nodes.top.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),e.preventDefault();const t=e.clientY;let i=!1;const n=this._unchangedRegion.visibleLineCountTop.get();this._unchangedRegion.isDragged.set("top",void 0);const s=(0,o.zk)(this._nodes.top),r=(0,o.ko)(s,"mousemove",(e=>{const o=e.clientY-t;i=i||Math.abs(o)>2;const s=Math.round(o/m.getOption(67)),r=Math.max(0,Math.min(n+s,this._unchangedRegion.getMaxVisibleLineCountTop()));this._unchangedRegion.visibleLineCountTop.set(r,void 0)})),a=(0,o.ko)(s,"mouseup",(e=>{i||this._unchangedRegion.showMoreAbove(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0),this._nodes.top.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),this._unchangedRegion.isDragged.set(void 0,void 0),r.dispose(),a.dispose()}))}))),this._register((0,o.ko)(this._nodes.bottom,"mousedown",(e=>{if(0!==e.button)return;this._nodes.bottom.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),e.preventDefault();const t=e.clientY;let i=!1;const n=this._unchangedRegion.visibleLineCountBottom.get();this._unchangedRegion.isDragged.set("bottom",void 0);const s=(0,o.zk)(this._nodes.bottom),r=(0,o.ko)(s,"mousemove",(e=>{const o=e.clientY-t;i=i||Math.abs(o)>2;const s=Math.round(o/m.getOption(67)),r=Math.max(0,Math.min(n-s,this._unchangedRegion.getMaxVisibleLineCountBottom())),a=this._unchangedRegionRange.endLineNumberExclusive>m.getModel().getLineCount()?m.getContentHeight():m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.visibleLineCountBottom.set(r,void 0);const l=this._unchangedRegionRange.endLineNumberExclusive>m.getModel().getLineCount()?m.getContentHeight():m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);m.setScrollTop(m.getScrollTop()+(l-a))})),a=(0,o.ko)(s,"mouseup",(e=>{if(this._unchangedRegion.isDragged.set(void 0,void 0),!i){const e=m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.showMoreBelow(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0);const t=m.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);m.setScrollTop(m.getScrollTop()+(t-e))}this._nodes.bottom.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),r.dispose(),a.dispose()}))}))),this._register((0,d.fm)((e=>{const t=[];if(!this._hide){const n=i.getHiddenModifiedRange(e).length,a=(0,_.k)("hiddenLines","{0} hidden lines",n),l=(0,o.$)("span",{title:(0,_.k)("diff.hiddenLines.expandAll","Double click to unfold")},a);l.addEventListener("dblclick",(e=>{0===e.button&&(e.preventDefault(),this._unchangedRegion.showAll(void 0))})),t.push(l);const d=this._unchangedRegion.getHiddenModifiedRange(e),c=this._modifiedOutlineSource.getBreadcrumbItems(d,e);if(c.length>0){t.push((0,o.$)("span",void 0,"  |  "));for(let e=0;e{this._revealModifiedHiddenLine(i.startLineNumber)}}}}(0,o.Ln)(this._nodes.others,...t)})))}}},36811:(e,t,i)=>{"use strict";i.d(t,{GM:()=>v,KL:()=>b,Kl:()=>h,Ob:()=>u,Ou:()=>f,XT:()=>p,Zb:()=>_,Zw:()=>g,bk:()=>m,dv:()=>c,wp:()=>w});var n=i(26048),o=i(58881),s=i(74774),r=i(3765),a=i(70559),l=i(11210);(0,a.x1A)("diffEditor.move.border","#8b8b8b9c",(0,r.k)("diffEditor.move.border","The border color for text that got moved in the diff editor.")),(0,a.x1A)("diffEditor.moveActive.border","#FFA500",(0,r.k)("diffEditor.moveActive.border","The active border color for text that got moved in the diff editor.")),(0,a.x1A)("diffEditor.unchangedRegionShadow",{dark:"#000000",light:"#737373BF",hcDark:"#000000",hcLight:"#737373BF"},(0,r.k)("diffEditor.unchangedRegionShadow","The color of the shadow around unchanged region widgets."));const d=(0,l.pU)("diff-insert",n.W.add,(0,r.k)("diffInsertIcon","Line decoration for inserts in the diff editor.")),c=(0,l.pU)("diff-remove",n.W.remove,(0,r.k)("diffRemoveIcon","Line decoration for removals in the diff editor.")),h=s.kI.register({className:"line-insert",description:"line-insert",isWholeLine:!0,linesDecorationsClassName:"insert-sign "+o.L.asClassName(d),marginClassName:"gutter-insert"}),u=s.kI.register({className:"line-delete",description:"line-delete",isWholeLine:!0,linesDecorationsClassName:"delete-sign "+o.L.asClassName(c),marginClassName:"gutter-delete"}),g=s.kI.register({className:"line-insert",description:"line-insert",isWholeLine:!0,marginClassName:"gutter-insert"}),p=s.kI.register({className:"line-delete",description:"line-delete",isWholeLine:!0,marginClassName:"gutter-delete"}),m=s.kI.register({className:"char-insert",description:"char-insert",shouldFillLineOnLineBreak:!0}),f=s.kI.register({className:"char-insert",description:"char-insert",isWholeLine:!0}),v=s.kI.register({className:"char-insert diff-range-empty",description:"char-insert diff-range-empty"}),_=s.kI.register({className:"char-delete",description:"char-delete",shouldFillLineOnLineBreak:!0}),b=s.kI.register({className:"char-delete",description:"char-delete",isWholeLine:!0}),w=s.kI.register({className:"char-delete diff-range-empty",description:"char-delete diff-range-empty"})},2744:(e,t,i)=>{"use strict";i.d(t,{$y:()=>p,AV:()=>w,Am:()=>h,D1:()=>_,EK:()=>S,MZ:()=>C,Mu:()=>k,Nu:()=>f,Vs:()=>y,pN:()=>m,pY:()=>u,rX:()=>g,uN:()=>v});var n=i(97393),o=i(78903),s=i(10998),r=i(16311),a=i(5711),l=i(15365),d=i(28061),c=i(58357);function h(e,t,i,n){if(0===e.length)return t;if(0===t.length)return e;const o=[];let s=0,r=0;for(;sc?(o.push(l),r++):(o.push(n(a,l)),s++,r++)}for(;s`Apply decorations from ${t.debugName}`},(e=>{const i=t.read(e);n.set(i)}))),i.add({dispose:()=>{n.clear()}}),i}function g(e,t){return e.appendChild(t),(0,s.s)((()=>{t.remove()}))}function p(e,t){return e.prepend(t),(0,s.s)((()=>{t.remove()}))}class m extends s.jG{get width(){return this._width}get height(){return this._height}get automaticLayout(){return this._automaticLayout}constructor(e,t){super(),this._automaticLayout=!1,this.elementSizeObserver=this._register(new a.u(e,t)),this._width=(0,r.FY)(this,this.elementSizeObserver.getWidth()),this._height=(0,r.FY)(this,this.elementSizeObserver.getHeight()),this._register(this.elementSizeObserver.onDidChange((e=>(0,r.Rn)((e=>{this._width.set(this.elementSizeObserver.getWidth(),e),this._height.set(this.elementSizeObserver.getHeight(),e)})))))}observe(e){this.elementSizeObserver.observe(e)}setAutomaticLayout(e){this._automaticLayout=e,e?this.elementSizeObserver.startObserving():this.elementSizeObserver.stopObserving()}}function f(e,t,i){let n=t.get(),o=n,s=n;const a=(0,r.FY)("animatedValue",n);let l,d=-1;function c(){const t=Date.now()-d;var i,r,h;s=Math.floor((r=o,h=n-o,(i=t)===300?r+h:h*(1-Math.pow(2,-10*i/300))+r)),t<300?l=e.requestAnimationFrame(c):s=n,a.set(s,void 0)}return i.add((0,r.Y)({createEmptyChangeSummary:()=>({animate:!1}),handleChange:(e,i)=>(e.didChange(t)&&(i.animate=i.animate||e.change),!0)},((i,r)=>{void 0!==l&&(e.cancelAnimationFrame(l),l=void 0),o=s,n=t.read(i),d=Date.now()-(r.animate?0:300),c()}))),a}class v extends s.jG{constructor(e,t,i){super(),this._register(new b(e,i)),this._register(w(i,{height:t.actualHeight,top:t.actualTop}))}}class _{get afterLineNumber(){return this._afterLineNumber.get()}constructor(e,t){this._afterLineNumber=e,this.heightInPx=t,this.domNode=document.createElement("div"),this._actualTop=(0,r.FY)(this,void 0),this._actualHeight=(0,r.FY)(this,void 0),this.actualTop=this._actualTop,this.actualHeight=this._actualHeight,this.showInHiddenAreas=!0,this.onChange=this._afterLineNumber,this.onDomNodeTop=e=>{this._actualTop.set(e,void 0)},this.onComputedHeight=e=>{this._actualHeight.set(e,void 0)}}}class b{constructor(e,t){this._editor=e,this._domElement=t,this._overlayWidgetId="managedOverlayWidget-"+b._counter++,this._overlayWidget={getId:()=>this._overlayWidgetId,getDomNode:()=>this._domElement,getPosition:()=>null},this._editor.addOverlayWidget(this._overlayWidget)}dispose(){this._editor.removeOverlayWidget(this._overlayWidget)}}function w(e,t){return(0,r.fm)((i=>{for(let[n,o]of Object.entries(t))o&&"object"==typeof o&&"read"in o&&(o=o.read(i)),"number"==typeof o&&(o=`${o}px`),n=n.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),e.style[n]=o}))}function y(e,t,i,n){const o=new s.Cm,a=[];return o.add((0,r.yC)(((o,s)=>{const l=t.read(o),d=new Map,c=new Map;i&&i(!0),e.changeViewZones((e=>{for(const t of a)e.removeZone(t),null==n||n.delete(t);a.length=0;for(const t of l){const i=e.addZone(t);t.setZoneId&&t.setZoneId(i),a.push(i),null==n||n.add(i),d.set(t,i)}})),i&&i(!1),s.add((0,r.Y)({createEmptyChangeSummary:()=>({zoneIds:[]}),handleChange(e,t){const i=c.get(e.changedObservable);return void 0!==i&&t.zoneIds.push(i),!0}},((t,n)=>{for(const e of l)e.onChange&&(c.set(e.onChange,d.get(e)),e.onChange.read(t));i&&i(!0),e.changeViewZones((e=>{for(const t of n.zoneIds)e.layoutZone(t)})),i&&i(!1)})))}))),o.add({dispose(){i&&i(!0),e.changeViewZones((e=>{for(const t of a)e.removeZone(t)})),null==n||n.clear(),i&&i(!1)}}),o}b._counter=0;class C extends o.Qi{dispose(){super.dispose(!0)}}function k(e,t){const i=(0,n.Uk)(t,(t=>t.original.startLineNumber<=e.lineNumber));if(!i)return d.Q.fromPositions(e);if(i.original.endLineNumberExclusive<=e.lineNumber){const t=e.lineNumber-i.original.endLineNumberExclusive+i.modified.endLineNumberExclusive;return d.Q.fromPositions(new l.y(t,e.column))}if(!i.innerChanges)return d.Q.fromPositions(new l.y(i.modified.startLineNumber,1));const o=(0,n.Uk)(i.innerChanges,(t=>t.originalRange.getStartPosition().isBeforeOrEqual(e)));if(!o){const t=e.lineNumber-i.original.startLineNumber+i.modified.startLineNumber;return d.Q.fromPositions(new l.y(t,e.column))}if(o.originalRange.containsPosition(e))return o.modifiedRange;{const t=(s=o.originalRange.getEndPosition(),r=e,s.lineNumber===r.lineNumber?new c.W(0,r.column-s.column):new c.W(r.lineNumber-s.lineNumber,r.column-1));return d.Q.fromPositions(t.addToPosition(o.modifiedRange.getEndPosition()))}var s,r}function S(e,t){let i;return e.filter((e=>{const n=t(e,i);return i=e,n}))}},86708:(e,t,i)=>{"use strict";i.d(t,{T:()=>I,i:()=>N});var n=i(36930),o=i(13021),s=i(94327),r=i(2106),a=i(10998),l=i(85072),d=i.n(l),c=i(97825),h=i.n(c),u=i(77659),g=i.n(u),p=i(55056),m=i.n(p),f=i(10540),v=i.n(f),_=i(41113),b=i.n(_),w=i(46835),y={};y.styleTagTransform=b(),y.setAttributes=m(),y.insert=g().bind(null,"head"),y.domAPI=h(),y.insertStyleElement=v(),d()(w.A,y),w.A&&w.A.locals&&w.A.locals;var C,k=i(25837),S=i(77922),x=i(54957),L=i(1458),D=i(54435),E=function(e,t){return function(i,n){t(i,n,e)}};let I=C=class{constructor(e,t,i){this._options=e,this._languageService=t,this._openerService=i,this._onDidRenderAsync=new r.vl,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,i){if(!e)return{element:document.createElement("span"),dispose:()=>{}};const o=new a.Cm,s=o.add((0,n.Gc)(e,{...this._getRenderOptions(e,o),...t},i));return s.element.classList.add("rendered-markdown"),{element:s.element,dispose:()=>o.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:async(e,t)=>{var i,n,o;let s;e?s=this._languageService.getLanguageIdByLanguageName(e):this._options.editor&&(s=null===(i=this._options.editor.getModel())||void 0===i?void 0:i.getLanguageId()),s||(s=x.vH);const r=await(0,L.Yj)(this._languageService,t,s),a=document.createElement("span");if(a.innerHTML=null!==(o=null===(n=C._ttpTokenizer)||void 0===n?void 0:n.createHTML(r))&&void 0!==o?o:r,this._options.editor){const e=this._options.editor.getOption(50);(0,k.M)(a,e)}else this._options.codeBlockFontFamily&&(a.style.fontFamily=this._options.codeBlockFontFamily);return void 0!==this._options.codeBlockFontSize&&(a.style.fontSize=this._options.codeBlockFontSize),a},asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:t=>N(this._openerService,t,e.isTrusted),disposables:t}}}};async function N(e,t,i){try{return await e.open(t,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:M(i)})}catch(e){return(0,s.dz)(e),!1}}function M(e){return!0===e||!(!e||!Array.isArray(e.enabledCommands))&&e.enabledCommands}I._ttpTokenizer=(0,o.H)("tokenizeToString",{createHTML:e=>e}),I=C=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([E(1,S.L),E(2,D.C)],I)},16551:(e,t,i)=>{"use strict";i.d(t,{I:()=>o});var n=i(27969);class o extends n.LN{constructor(e){super(),this._getContext=e}runAction(e,t){const i=this._getContext();return super.runAction(e,i)}}},66316:(e,t,i)=>{"use strict";i.d(t,{iP:()=>a,iu:()=>o,q2:()=>r,tA:()=>s,ui:()=>l});var n=i(93702);class o{constructor(e,t,i=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=i}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return n.L.fromPositions(i.getEndPosition())}}class s{constructor(e,t){this._range=e,this._text=t}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return n.L.fromRange(i,0)}}class r{constructor(e,t,i=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=i}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return n.L.fromPositions(i.getStartPosition())}}class a{constructor(e,t,i,n,o=!1){this._range=e,this._text=t,this._columnDeltaOffset=n,this._lineNumberDeltaOffset=i,this.insertsAutoWhitespace=o}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return n.L.fromPositions(i.getEndPosition().delta(this._lineNumberDeltaOffset,this._columnDeltaOffset))}}class l{constructor(e,t,i,n=!1){this._range=e,this._text=t,this._initialSelection=i,this._forceMoveMarkers=n,this._selectionId=null}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=t.trackSelection(this._initialSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}},41672:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ShiftCommand:()=>u});var n,o=i(16844),s=i(62549),r=i(28061),a=i(93702),l=i(80794),d=i(52394);const c=Object.create(null);function h(e,t){if(t<=0)return"";c[e]||(c[e]=["",e]);const i=c[e];for(let n=i.length;n<=t;n++)i[n]=i[n-1]+e;return i[t]}let u=n=class{static unshiftIndent(e,t,i,n,o){const r=s.A.visibleColumnFromColumn(e,t,i);if(o){const e=h(" ",n);return h(e,s.A.prevIndentTabStop(r,n)/n)}return h("\t",s.A.prevRenderTabStop(r,i)/i)}static shiftIndent(e,t,i,n,o){const r=s.A.visibleColumnFromColumn(e,t,i);if(o){const e=h(" ",n);return h(e,s.A.nextIndentTabStop(r,n)/n)}return h("\t",s.A.nextRenderTabStop(r,i)/i)}constructor(e,t,i){this._languageConfigurationService=i,this._opts=t,this._selection=e,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}_addEditOperation(e,t,i){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,i):e.addEditOperation(t,i)}getEditOperations(e,t){const i=this._selection.startLineNumber;let a=this._selection.endLineNumber;1===this._selection.endColumn&&i!==a&&(a-=1);const{tabSize:d,indentSize:c,insertSpaces:u}=this._opts,g=i===a;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(e.getLineContent(i))&&(this._useLastEditRangeForCursorEndPosition=!0);let h=0,p=0;for(let m=i;m<=a;m++,h=p){p=0;const a=e.getLineContent(m);let f,v=o.HG(a);if((!this._opts.isUnshift||0!==a.length&&0!==v)&&(g||this._opts.isUnshift||0!==a.length)){if(-1===v&&(v=a.length),m>1&&s.A.visibleColumnFromColumn(a,v+1,d)%c!=0&&e.tokenization.isCheapToTokenize(m-1)){const t=(0,l.h)(this._opts.autoIndent,e,new r.Q(m-1,e.getLineMaxColumn(m-1),m-1,e.getLineMaxColumn(m-1)),this._languageConfigurationService);if(t){if(p=h,t.appendText)for(let e=0,i=t.appendText.length;e=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(g=2,p=d.JZ,function(e,t){p(e,t,g)})],u)},6020:(e,t,i)=>{"use strict";i.d(t,{i:()=>s,y:()=>r});var n=i(28061),o=i(93702);class s{constructor(e,t,i){this._range=e,this._charBeforeSelection=t,this._charAfterSelection=i}getEditOperations(e,t){t.addTrackedEditOperation(new n.Q(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new n.Q(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)}computeCursorState(e,t){const i=t.getInverseEditOperations(),n=i[0].range,s=i[1].range;return new o.L(n.endLineNumber,n.endColumn,s.endLineNumber,s.endColumn-this._charAfterSelection.length)}}class r{constructor(e,t,i){this._position=e,this._text=t,this._charAfter=i}getEditOperations(e,t){t.addTrackedEditOperation(new n.Q(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column),this._text+this._charAfter)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return new o.L(i.endLineNumber,i.startColumn,i.endLineNumber,i.endColumn-this._charAfter.length)}}},36427:(e,t,i)=>{"use strict";i.d(t,{q:()=>n});const n={enableSplitViewResizing:!0,splitViewDefaultRatio:.5,renderSideBySide:!0,renderMarginRevertIcon:!0,renderGutterMenu:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit",diffAlgorithm:"advanced",accessibilityVerbose:!1,experimental:{showMoves:!1,showEmptyDecorations:!0},hideUnchangedRegions:{enabled:!1,contextLineCount:3,minimumLineCount:3,revealLineCount:20},isInEmbeddedEditor:!1,onlyShowAccessibleDiffViewer:!1,renderSideBySideInlineBreakpoint:900,useInlineViewWhenSpaceIsLimited:!0}},85003:(e,t,i)=>{"use strict";i.d(t,{Gn:()=>m,JJ:()=>d,vf:()=>p});var n=i(36427),o=i(66476),s=i(12590),r=i(3765),a=i(27142),l=i(67167);const d=Object.freeze({id:"editor",order:5,type:"object",title:r.k("editorConfigurationTitle","Editor"),scope:5}),c={...d,properties:{"editor.tabSize":{type:"number",default:s.R.tabSize,minimum:1,markdownDescription:r.k("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.indentSize":{anyOf:[{type:"string",enum:["tabSize"]},{type:"number",minimum:1}],default:"tabSize",markdownDescription:r.k("indentSize",'The number of spaces used for indentation or `"tabSize"` to use the value from `#editor.tabSize#`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.')},"editor.insertSpaces":{type:"boolean",default:s.R.insertSpaces,markdownDescription:r.k("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.detectIndentation":{type:"boolean",default:s.R.detectIndentation,markdownDescription:r.k("detectIndentation","Controls whether {0} and {1} will be automatically detected when a file is opened based on the file contents.","`#editor.tabSize#`","`#editor.insertSpaces#`")},"editor.trimAutoWhitespace":{type:"boolean",default:s.R.trimAutoWhitespace,description:r.k("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:s.R.largeFileOptimizations,description:r.k("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{enum:["off","currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[r.k("wordBasedSuggestions.off","Turn off Word Based Suggestions."),r.k("wordBasedSuggestions.currentDocument","Only suggest words from the active document."),r.k("wordBasedSuggestions.matchingDocuments","Suggest words from all open documents of the same language."),r.k("wordBasedSuggestions.allDocuments","Suggest words from all open documents.")],description:r.k("wordBasedSuggestions","Controls whether completions should be computed based on words in the document and from which documents they are computed.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[r.k("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),r.k("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),r.k("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:r.k("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:r.k("stablePeek","Keep peek editors open even when double-clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:r.k("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.experimental.asyncTokenization":{type:"boolean",default:!1,description:r.k("editor.experimental.asyncTokenization","Controls whether the tokenization should happen asynchronously on a web worker."),tags:["experimental"]},"editor.experimental.asyncTokenizationLogging":{type:"boolean",default:!1,description:r.k("editor.experimental.asyncTokenizationLogging","Controls whether async tokenization should be logged. For debugging only.")},"editor.experimental.asyncTokenizationVerification":{type:"boolean",default:!1,description:r.k("editor.experimental.asyncTokenizationVerification","Controls whether async tokenization should be verified against legacy background tokenization. Might slow down tokenization. For debugging only."),tags:["experimental"]},"editor.language.brackets":{type:["array","null"],default:null,description:r.k("schema.brackets","Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:r.k("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:r.k("schema.closeBracket","The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:["array","null"],default:null,description:r.k("schema.colorizedBracketPairs","Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled."),items:{type:"array",items:[{type:"string",description:r.k("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:r.k("schema.closeBracket","The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:n.q.maxComputationTime,description:r.k("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:n.q.maxFileSize,description:r.k("maxFileSize","Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:n.q.renderSideBySide,description:r.k("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.renderSideBySideInlineBreakpoint":{type:"number",default:n.q.renderSideBySideInlineBreakpoint,description:r.k("renderSideBySideInlineBreakpoint","If the diff editor width is smaller than this value, the inline view is used.")},"diffEditor.useInlineViewWhenSpaceIsLimited":{type:"boolean",default:n.q.useInlineViewWhenSpaceIsLimited,description:r.k("useInlineViewWhenSpaceIsLimited","If enabled and the editor width is too small, the inline view is used.")},"diffEditor.renderMarginRevertIcon":{type:"boolean",default:n.q.renderMarginRevertIcon,description:r.k("renderMarginRevertIcon","When enabled, the diff editor shows arrows in its glyph margin to revert changes.")},"diffEditor.renderGutterMenu":{type:"boolean",default:n.q.renderGutterMenu,description:r.k("renderGutterMenu","When enabled, the diff editor shows a special gutter for revert and stage actions.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:n.q.ignoreTrimWhitespace,description:r.k("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:n.q.renderIndicators,description:r.k("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:n.q.diffCodeLens,description:r.k("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:n.q.diffWordWrap,markdownEnumDescriptions:[r.k("wordWrap.off","Lines will never wrap."),r.k("wordWrap.on","Lines will wrap at the viewport width."),r.k("wordWrap.inherit","Lines will wrap according to the {0} setting.","`#editor.wordWrap#`")]},"diffEditor.diffAlgorithm":{type:"string",enum:["legacy","advanced"],default:n.q.diffAlgorithm,markdownEnumDescriptions:[r.k("diffAlgorithm.legacy","Uses the legacy diffing algorithm."),r.k("diffAlgorithm.advanced","Uses the advanced diffing algorithm.")],tags:["experimental"]},"diffEditor.hideUnchangedRegions.enabled":{type:"boolean",default:n.q.hideUnchangedRegions.enabled,markdownDescription:r.k("hideUnchangedRegions.enabled","Controls whether the diff editor shows unchanged regions.")},"diffEditor.hideUnchangedRegions.revealLineCount":{type:"integer",default:n.q.hideUnchangedRegions.revealLineCount,markdownDescription:r.k("hideUnchangedRegions.revealLineCount","Controls how many lines are used for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.minimumLineCount":{type:"integer",default:n.q.hideUnchangedRegions.minimumLineCount,markdownDescription:r.k("hideUnchangedRegions.minimumLineCount","Controls how many lines are used as a minimum for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.contextLineCount":{type:"integer",default:n.q.hideUnchangedRegions.contextLineCount,markdownDescription:r.k("hideUnchangedRegions.contextLineCount","Controls how many lines are used as context when comparing unchanged regions."),minimum:1},"diffEditor.experimental.showMoves":{type:"boolean",default:n.q.experimental.showMoves,markdownDescription:r.k("showMoves","Controls whether the diff editor should show detected code moves.")},"diffEditor.experimental.showEmptyDecorations":{type:"boolean",default:n.q.experimental.showEmptyDecorations,description:r.k("showEmptyDecorations","Controls whether the diff editor shows empty decorations to see where characters got inserted or deleted.")}}};for(const e of o.BE){const t=e.schema;if(void 0!==t)if(void 0!==(h=t).type||void 0!==h.anyOf)c.properties[`editor.${e.name}`]=t;else for(const e in t)Object.hasOwnProperty.call(t,e)&&(c.properties[e]=t[e])}var h;let u=null;function g(){return null===u&&(u=Object.create(null),Object.keys(c.properties).forEach((e=>{u[e]=!0}))),u}function p(e){return g()[`editor.${e}`]||!1}function m(e){return g()[`diffEditor.${e}`]||!1}l.O.as(a.Fd.Configuration).registerConfiguration(c)},66476:(e,t,i)=>{"use strict";i.d(t,{$C:()=>T,BE:()=>W,Bc:()=>I,O4:()=>S,Of:()=>O,XR:()=>P,hZ:()=>g,jT:()=>E,jU:()=>B,ls:()=>y,lw:()=>c,m9:()=>D,n0:()=>h,qB:()=>V,r_:()=>N,wA:()=>b,xZ:()=>A,xq:()=>d,zM:()=>v});var n=i(13338),o=i(71386),s=i(63339),r=i(12590),a=i(18782),l=i(3765);const d=8;class c{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class h{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class u{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return p(e,t)}compute(e,t,i){return i}}class g{constructor(e,t){this.newValue=e,this.didChange=t}}function p(e,t){if("object"!=typeof e||"object"!=typeof t||!e||!t)return new g(t,e!==t);if(Array.isArray(e)||Array.isArray(t)){const i=Array.isArray(e)&&Array.isArray(t)&&n.aI(e,t);return new g(t,!i)}let i=!1;for(const n in t)if(t.hasOwnProperty(n)){const o=p(e[n],t[n]);o.didChange&&(e[n]=o.newValue,i=!0)}return new g(e,i)}class m{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return p(e,t)}validate(e){return this.defaultValue}}class f{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return p(e,t)}validate(e){return void 0===e?this.defaultValue:e}compute(e,t,i){return i}}function v(e,t){return void 0===e?t:"false"!==e&&Boolean(e)}class _ extends f{constructor(e,t,i,n=void 0){void 0!==n&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return v(e,this.defaultValue)}}function b(e,t,i,n){if(void 0===e)return t;let o=parseInt(e,10);return isNaN(o)?t:(o=Math.max(i,o),o=Math.min(n,o),0|o)}class w extends f{static clampedInt(e,t,i,n){return b(e,t,i,n)}constructor(e,t,i,n,o,s=void 0){void 0!==s&&(s.type="integer",s.default=i,s.minimum=n,s.maximum=o),super(e,t,i,s),this.minimum=n,this.maximum=o}validate(e){return w.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function y(e,t,i,n){if(void 0===e)return t;const o=C.float(e,t);return C.clamp(o,i,n)}class C extends f{static clamp(e,t,i){return ei?i:e}static float(e,t){if("number"==typeof e)return e;if(void 0===e)return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,o){void 0!==o&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=n}validate(e){return this.validationFn(C.float(e,this.defaultValue))}}class k extends f{static string(e,t){return"string"!=typeof e?t:e}constructor(e,t,i,n=void 0){void 0!==n&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return k.string(e,this.defaultValue)}}function S(e,t,i,n){return"string"!=typeof e?t:n&&e in n?n[e]:-1===i.indexOf(e)?t:e}class x extends f{constructor(e,t,i,n,o=void 0){void 0!==o&&(o.type="string",o.enum=n,o.default=i),super(e,t,i,o),this._allowedValues=n}validate(e){return S(e,this.defaultValue,this._allowedValues)}}class L extends u{constructor(e,t,i,n,o,s,r=void 0){void 0!==r&&(r.type="string",r.enum=o,r.default=n),super(e,t,i,r),this._allowedValues=o,this._convert=s}validate(e){return"string"!=typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)}}var D,E;!function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(D||(D={}));class I extends u{constructor(){super(51,"fontLigatures",I.OFF,{anyOf:[{type:"boolean",description:l.k("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:l.k("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:l.k("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return void 0===e?this.defaultValue:"string"==typeof e?"false"===e||0===e.length?I.OFF:"true"===e?I.ON:e:Boolean(e)?I.ON:I.OFF}}I.OFF='"liga" off, "calt" off',I.ON='"liga" on, "calt" on';class N extends u{constructor(){super(54,"fontVariations",N.OFF,{anyOf:[{type:"boolean",description:l.k("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:l.k("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:l.k("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return void 0===e?this.defaultValue:"string"==typeof e?"false"===e?N.OFF:"true"===e?N.TRANSLATE:e:Boolean(e)?N.TRANSLATE:N.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}N.OFF="normal",N.TRANSLATE="translate";class M extends u{constructor(){super(53,"fontWeight",B.fontWeight,{anyOf:[{type:"number",minimum:M.MINIMUM_VALUE,maximum:M.MAXIMUM_VALUE,errorMessage:l.k("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:M.SUGGESTION_VALUES}],default:B.fontWeight,description:l.k("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return"normal"===e||"bold"===e?e:String(w.clampedInt(e,B.fontWeight,M.MINIMUM_VALUE,M.MAXIMUM_VALUE))}}M.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],M.MINIMUM_VALUE=1,M.MAXIMUM_VALUE=1e3;class A extends m{constructor(){super(146)}compute(e,t,i){return A.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const o=(i+e.viewLineCount+n)/(e.pixelRatio*e.height);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:o,minimapLineCount:Math.floor(e.viewLineCount/o)}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const s=t.stableMinimapLayoutInput,r=s&&e.outerHeight===s.outerHeight&&e.lineHeight===s.lineHeight&&e.typicalHalfwidthCharacterWidth===s.typicalHalfwidthCharacterWidth&&e.pixelRatio===s.pixelRatio&&e.scrollBeyondLastLine===s.scrollBeyondLastLine&&e.paddingTop===s.paddingTop&&e.paddingBottom===s.paddingBottom&&e.minimap.enabled===s.minimap.enabled&&e.minimap.side===s.minimap.side&&e.minimap.size===s.minimap.size&&e.minimap.showSlider===s.minimap.showSlider&&e.minimap.renderCharacters===s.minimap.renderCharacters&&e.minimap.maxColumn===s.minimap.maxColumn&&e.minimap.scale===s.minimap.scale&&e.verticalScrollbarWidth===s.verticalScrollbarWidth&&e.isViewportWrapping===s.isViewportWrapping,a=e.lineHeight,l=e.typicalHalfwidthCharacterWidth,c=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let u=o>=2?Math.round(2*e.minimap.scale):e.minimap.scale;const g=e.minimap.maxColumn,p=e.minimap.size,m=e.minimap.side,f=e.verticalScrollbarWidth,v=e.viewLineCount,_=e.remainingWidth,b=e.isViewportWrapping,w=h?2:3;let y=Math.floor(o*n);const C=y/o;let k=!1,S=!1,x=w*u,L=u/o,D=1;if("fill"===p||"fit"===p){const{typicalViewportLineCount:i,extraLinesBeforeFirstLine:s,extraLinesBeyondLastLine:l,desiredRatio:d,minimapLineCount:h}=A.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:c,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:a,pixelRatio:o});if(v/h>1)k=!0,S=!0,u=1,x=1,L=u/o;else{let n=!1,c=u+1;if("fit"===p){const e=Math.ceil((s+v+l)*x);b&&r&&_<=t.stableFitRemainingWidth?(n=!0,c=t.stableFitMaxMinimapScale):n=e>y}if("fill"===p||n){k=!0;const n=u;x=Math.min(a*o,Math.max(1,Math.floor(1/d))),b&&r&&_<=t.stableFitRemainingWidth&&(c=t.stableFitMaxMinimapScale),u=Math.min(c,Math.max(1,Math.floor(x/w))),u>n&&(D=Math.min(2,u/n)),L=u/o/D,y=Math.ceil(Math.max(i,s+v+l)*x),b?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=_,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const E=Math.floor(g*L),I=Math.min(E,Math.max(0,Math.floor((_-f-2)*L/(l+L)))+d);let N=Math.floor(o*I);const M=N/o;return N=Math.floor(N*D),{renderMinimap:h?1:2,minimapLeft:"left"===m?0:i-I-f,minimapWidth:I,minimapHeightIsEditorHeight:k,minimapIsSampling:S,minimapScale:u,minimapLineHeight:x,minimapCanvasInnerWidth:N,minimapCanvasInnerHeight:y,minimapCanvasOuterWidth:M,minimapCanvasOuterHeight:C}}static computeLayout(e,t){const i=0|t.outerWidth,n=0|t.outerHeight,o=0|t.lineHeight,s=0|t.lineNumbersDigitCount,r=t.typicalHalfwidthCharacterWidth,a=t.maxDigitWidth,l=t.pixelRatio,d=t.viewLineCount,c=e.get(138),u="inherit"===c?e.get(137):c,g="inherit"===u?e.get(133):u,p=e.get(136),m=t.isDominatedByLongLines,f=e.get(57),v=0!==e.get(68).renderType,_=e.get(69),b=e.get(106),w=e.get(84),y=e.get(73),C=e.get(104),k=C.verticalScrollbarSize,S=C.verticalHasArrows,x=C.arrowSize,L=C.horizontalScrollbarSize,D=e.get(43),E="never"!==e.get(111);let I=e.get(66);D&&E&&(I+=16);let N=0;if(v){const e=Math.max(s,_);N=Math.round(e*a)}let M=0;f&&(M=o*t.glyphMarginDecorationLaneCount);let T=0,R=T+M,P=R+N,O=P+I;const F=i-M-N-I;let B=!1,W=!1,H=-1;"inherit"===u&&m?(B=!0,W=!0):"on"===g||"bounded"===g?W=!0:"wordWrapColumn"===g&&(H=p);const V=A._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:o,typicalHalfwidthCharacterWidth:r,pixelRatio:l,scrollBeyondLastLine:b,paddingTop:w.top,paddingBottom:w.bottom,minimap:y,verticalScrollbarWidth:k,viewLineCount:d,remainingWidth:F,isViewportWrapping:W},t.memory||new h);0!==V.renderMinimap&&0===V.minimapLeft&&(T+=V.minimapWidth,R+=V.minimapWidth,P+=V.minimapWidth,O+=V.minimapWidth);const z=F-V.minimapWidth,j=Math.max(1,Math.floor((z-k-2)/r)),U=S?x:0;return W&&(H=Math.max(1,j),"bounded"===g&&(H=Math.min(H,p))),{width:i,height:n,glyphMarginLeft:T,glyphMarginWidth:M,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:R,lineNumbersWidth:N,decorationsLeft:P,decorationsWidth:I,contentLeft:O,contentWidth:z,minimap:V,viewportColumn:j,isWordWrapMinified:B,isViewportWrapping:W,wrappingColumn:H,verticalScrollbarWidth:k,horizontalScrollbarHeight:L,overviewRuler:{top:U,width:k,height:n-2*U,right:0}}}}function T(e){const t=e.get(99);return"editable"===t?e.get(92):"on"!==t}function R(e,t){if("string"!=typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}!function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(E||(E={}));const P="inUntrustedWorkspace",O={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};function F(e,t,i){const n=i.indexOf(e);return-1===n?t:i[n]}const B={fontFamily:s.zx?"Menlo, Monaco, 'Courier New', monospace":s.j9?"'Droid Sans Mono', 'monospace', monospace":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:s.zx?12:14,lineHeight:0,letterSpacing:0},W=[];function H(e){return W[e.id]=e,e}const V={acceptSuggestionOnCommitCharacter:H(new _(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:l.k("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:H(new x(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",l.k("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:l.k("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:H(new class extends u{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[l.k("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),l.k("accessibilitySupport.on","Optimize for usage with a Screen Reader."),l.k("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:l.k("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return 0===i?e.accessibilitySupport:i}}),accessibilityPageSize:H(new w(3,"accessibilityPageSize",10,1,1073741824,{description:l.k("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:H(new k(4,"ariaLabel",l.k("editorViewAccessibleLabel","Editor content"))),ariaRequired:H(new _(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:H(new _(8,"screenReaderAnnounceInlineSuggestion",!0,{description:l.k("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:H(new x(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",l.k("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),l.k("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:l.k("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:H(new x(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",l.k("editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),l.k("editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:l.k("autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:H(new x(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",l.k("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:l.k("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:H(new x(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",l.k("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:l.k("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:H(new x(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",l.k("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),l.k("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:l.k("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:H(new L(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],(function(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}),{enumDescriptions:[l.k("editor.autoIndent.none","The editor will not insert indentation automatically."),l.k("editor.autoIndent.keep","The editor will keep the current line's indentation."),l.k("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),l.k("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),l.k("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:l.k("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:H(new _(13,"automaticLayout",!1)),autoSurround:H(new x(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[l.k("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),l.k("editor.autoSurround.quotes","Surround with quotes but not brackets."),l.k("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:l.k("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:H(new class extends u{constructor(){const e={enabled:r.R.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:r.R.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:l.k("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:l.k("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:v(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:v(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}),bracketPairGuides:H(new class extends u{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[l.k("editor.guides.bracketPairs.true","Enables bracket pair guides."),l.k("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),l.k("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:l.k("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[l.k("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),l.k("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),l.k("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:l.k("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:l.k("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:l.k("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[l.k("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),l.k("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),l.k("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:l.k("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{bracketPairs:F(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:F(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:v(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:v(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:F(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}),stickyTabStops:H(new _(117,"stickyTabStops",!1,{description:l.k("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:H(new _(17,"codeLens",!0,{description:l.k("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:H(new k(18,"codeLensFontFamily","",{description:l.k("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:H(new w(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:l.k("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:H(new _(20,"colorDecorators",!0,{description:l.k("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:H(new x(149,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[l.k("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),l.k("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),l.k("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:l.k("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:H(new w(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:l.k("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:H(new _(22,"columnSelection",!1,{description:l.k("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:H(new class extends u{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:l.k("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:l.k("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{insertSpace:v(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:v(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}),contextmenu:H(new _(24,"contextmenu",!0)),copyWithSyntaxHighlighting:H(new _(25,"copyWithSyntaxHighlighting",!0,{description:l.k("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:H(new L(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],(function(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}),{description:l.k("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:H(new x(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[l.k("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),l.k("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),l.k("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:l.k("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:H(new L(28,"cursorStyle",D.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],(function(e){switch(e){case"line":return D.Line;case"block":return D.Block;case"underline":return D.Underline;case"line-thin":return D.LineThin;case"block-outline":return D.BlockOutline;case"underline-thin":return D.UnderlineThin}}),{description:l.k("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:H(new w(29,"cursorSurroundingLines",0,0,1073741824,{description:l.k("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:H(new x(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[l.k("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),l.k("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:l.k("cursorSurroundingLinesStyle","Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:H(new w(31,"cursorWidth",0,0,1073741824,{markdownDescription:l.k("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:H(new _(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:H(new _(33,"disableMonospaceOptimizations",!1)),domReadOnly:H(new _(34,"domReadOnly",!1)),dragAndDrop:H(new _(35,"dragAndDrop",!0,{description:l.k("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:H(new class extends _{constructor(){super(37,"emptySelectionClipboard",!0,{description:l.k("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}),dropIntoEditor:H(new class extends u{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:l.k("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:l.k("dropIntoEditor.showDropSelector","Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[l.k("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),l.k("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:v(t.enabled,this.defaultValue.enabled),showDropSelector:S(t.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}),stickyScroll:H(new class extends u{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(116,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:l.k("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:l.k("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:l.k("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:l.k("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:v(t.enabled,this.defaultValue.enabled),maxLineCount:w.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:S(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:v(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}),experimentalWhitespaceRendering:H(new x(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[l.k("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),l.k("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),l.k("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:l.k("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:H(new k(39,"extraEditorClassName","")),fastScrollSensitivity:H(new C(40,"fastScrollSensitivity",5,(e=>e<=0?5:e),{markdownDescription:l.k("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:H(new class extends u{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:l.k("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[l.k("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),l.k("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),l.k("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:l.k("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[l.k("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),l.k("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),l.k("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:l.k("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:l.k("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:s.zx},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:l.k("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:l.k("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{cursorMoveOnType:v(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:"boolean"==typeof e.seedSearchStringFromSelection?e.seedSearchStringFromSelection?"always":"never":S(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:"boolean"==typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":S(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:v(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:v(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:v(t.loop,this.defaultValue.loop)}}}),fixedOverflowWidgets:H(new _(42,"fixedOverflowWidgets",!1)),folding:H(new _(43,"folding",!0,{description:l.k("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:H(new x(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[l.k("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),l.k("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:l.k("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:H(new _(45,"foldingHighlight",!0,{description:l.k("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:H(new _(46,"foldingImportsByDefault",!1,{description:l.k("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:H(new w(47,"foldingMaximumRegions",5e3,10,65e3,{description:l.k("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:H(new _(48,"unfoldOnClickAfterEndOfLine",!1,{description:l.k("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:H(new k(49,"fontFamily",B.fontFamily,{description:l.k("fontFamily","Controls the font family.")})),fontInfo:H(new class extends m{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}),fontLigatures2:H(new I),fontSize:H(new class extends f{constructor(){super(52,"fontSize",B.fontSize,{type:"number",minimum:6,maximum:100,default:B.fontSize,description:l.k("fontSize","Controls the font size in pixels.")})}validate(e){const t=C.float(e,this.defaultValue);return 0===t?B.fontSize:C.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}),fontWeight:H(new M),fontVariations:H(new N),formatOnPaste:H(new _(55,"formatOnPaste",!1,{description:l.k("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:H(new _(56,"formatOnType",!1,{description:l.k("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:H(new _(57,"glyphMargin",!0,{description:l.k("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:H(new class extends u{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[l.k("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),l.k("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),l.k("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:l.k("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:l.k("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:l.k("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:l.k("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:l.k("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:l.k("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...t},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:l.k("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:l.k("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:l.k("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:l.k("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:l.k("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,n,o,s;if(!e||"object"!=typeof e)return this.defaultValue;const r=e;return{multiple:S(r.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:null!==(t=r.multipleDefinitions)&&void 0!==t?t:S(r.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:null!==(i=r.multipleTypeDefinitions)&&void 0!==i?i:S(r.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:null!==(n=r.multipleDeclarations)&&void 0!==n?n:S(r.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:null!==(o=r.multipleImplementations)&&void 0!==o?o:S(r.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:null!==(s=r.multipleReferences)&&void 0!==s?s:S(r.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:k.string(r.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:k.string(r.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:k.string(r.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:k.string(r.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:k.string(r.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}),hideCursorInOverviewRuler:H(new _(59,"hideCursorInOverviewRuler",!1,{description:l.k("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:H(new class extends u{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:l.k("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:l.k("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:l.k("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:l.k("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:l.k("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:v(t.enabled,this.defaultValue.enabled),delay:w.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:v(t.sticky,this.defaultValue.sticky),hidingDelay:w.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:v(t.above,this.defaultValue.above)}}}),inDiffEditor:H(new _(61,"inDiffEditor",!1)),letterSpacing:H(new C(64,"letterSpacing",B.letterSpacing,(e=>C.clamp(e,-5,20)),{description:l.k("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:H(new class extends u{constructor(){const e={enabled:E.On};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[E.Off,E.OnCode,E.On],default:e.enabled,enumDescriptions:[l.k("editor.lightbulb.enabled.off","Disable the code action menu."),l.k("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),l.k("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:l.k("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){return e&&"object"==typeof e?{enabled:S(e.enabled,this.defaultValue.enabled,[E.Off,E.OnCode,E.On])}:this.defaultValue}}),lineDecorationsWidth:H(new class extends u{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return"string"==typeof e&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):w.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?w.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}),lineHeight:H(new class extends C{constructor(){super(67,"lineHeight",B.lineHeight,(e=>C.clamp(e,0,150)),{markdownDescription:l.k("lineHeight","Controls the line height. \n - Use 0 to automatically compute the line height from the font size.\n - Values between 0 and 8 will be used as a multiplier with the font size.\n - Values greater than or equal to 8 will be used as effective values.")})}compute(e,t,i){return e.fontInfo.lineHeight}}),lineNumbers:H(new class extends u{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[l.k("lineNumbers.off","Line numbers are not rendered."),l.k("lineNumbers.on","Line numbers are rendered as absolute number."),l.k("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),l.k("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:l.k("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return void 0!==e&&("function"==typeof e?(t=4,i=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:i}}}),lineNumbersMinChars:H(new w(69,"lineNumbersMinChars",5,1,300)),linkedEditing:H(new _(70,"linkedEditing",!1,{description:l.k("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:H(new _(71,"links",!0,{description:l.k("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:H(new x(72,"matchBrackets","always",["always","near","never"],{description:l.k("matchBrackets","Highlight matching brackets.")})),minimap:H(new class extends u{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9,sectionHeaderLetterSpacing:1};super(73,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:l.k("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:l.k("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[l.k("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),l.k("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),l.k("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:l.k("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:l.k("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:l.k("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:l.k("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:l.k("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:l.k("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:e.showRegionSectionHeaders,description:l.k("minimap.showRegionSectionHeaders","Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:l.k("minimap.showMarkSectionHeaders","Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:l.k("minimap.sectionHeaderFontSize","Controls the font size of section headers in the minimap.")},"editor.minimap.sectionHeaderLetterSpacing":{type:"number",default:e.sectionHeaderLetterSpacing,description:l.k("minimap.sectionHeaderLetterSpacing","Controls the amount of space (in pixels) between characters of section header. This helps the readability of the header in small font sizes.")}})}validate(e){var t,i;if(!e||"object"!=typeof e)return this.defaultValue;const n=e;return{enabled:v(n.enabled,this.defaultValue.enabled),autohide:v(n.autohide,this.defaultValue.autohide),size:S(n.size,this.defaultValue.size,["proportional","fill","fit"]),side:S(n.side,this.defaultValue.side,["right","left"]),showSlider:S(n.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:v(n.renderCharacters,this.defaultValue.renderCharacters),scale:w.clampedInt(n.scale,1,1,3),maxColumn:w.clampedInt(n.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:v(n.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:v(n.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:C.clamp(null!==(t=n.sectionHeaderFontSize)&&void 0!==t?t:this.defaultValue.sectionHeaderFontSize,4,32),sectionHeaderLetterSpacing:C.clamp(null!==(i=n.sectionHeaderLetterSpacing)&&void 0!==i?i:this.defaultValue.sectionHeaderLetterSpacing,0,5)}}}),mouseStyle:H(new x(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:H(new C(75,"mouseWheelScrollSensitivity",1,(e=>0===e?1:e),{markdownDescription:l.k("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:H(new _(76,"mouseWheelZoom",!1,{markdownDescription:s.zx?l.k("mouseWheelZoom.mac","Zoom the font of the editor when using mouse wheel and holding `Cmd`."):l.k("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:H(new _(77,"multiCursorMergeOverlapping",!0,{description:l.k("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:H(new L(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],(function(e){return"ctrlCmd"===e?s.zx?"metaKey":"ctrlKey":"altKey"}),{markdownEnumDescriptions:[l.k("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),l.k("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:l.k({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:H(new x(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[l.k("multiCursorPaste.spread","Each cursor pastes a single line of the text."),l.k("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:l.k("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:H(new w(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:l.k("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:H(new x(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[l.k("occurrencesHighlight.off","Does not highlight occurrences."),l.k("occurrencesHighlight.singleFile","Highlights occurrences only in the current file."),l.k("occurrencesHighlight.multiFile","Experimental: Highlights occurrences across all valid open files.")],markdownDescription:l.k("occurrencesHighlight","Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:H(new _(82,"overviewRulerBorder",!0,{description:l.k("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:H(new w(83,"overviewRulerLanes",3,0,3)),padding:H(new class extends u{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:l.k("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:l.k("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{top:w.clampedInt(t.top,0,0,1e3),bottom:w.clampedInt(t.bottom,0,0,1e3)}}}),pasteAs:H(new class extends u{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:l.k("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:l.k("pasteAs.showPasteSelector","Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[l.k("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),l.k("pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:v(t.enabled,this.defaultValue.enabled),showPasteSelector:S(t.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}),parameterHints:H(new class extends u{constructor(){const e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:l.k("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:l.k("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:v(t.enabled,this.defaultValue.enabled),cycle:v(t.cycle,this.defaultValue.cycle)}}}),peekWidgetDefaultFocus:H(new x(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[l.k("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),l.k("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:l.k("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),placeholder:H(new class extends u{constructor(){super(88,"placeholder",void 0)}validate(e){return void 0===e?this.defaultValue:"string"==typeof e?e:this.defaultValue}}),definitionLinkOpensInPeek:H(new _(89,"definitionLinkOpensInPeek",!1,{description:l.k("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:H(new class extends u{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[l.k("on","Quick suggestions show inside the suggest widget"),l.k("inline","Quick suggestions show as ghost text"),l.k("off","Quick suggestions are disabled")]}];super(90,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:l.k("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:l.k("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:l.k("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:l.k("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the {0}-setting which controls if suggestions are triggered by special characters.","`#editor.suggestOnTriggerCharacters#`")}),this.defaultValue=e}validate(e){if("boolean"==typeof e){const t=e?"on":"off";return{comments:t,strings:t,other:t}}if(!e||"object"!=typeof e)return this.defaultValue;const{other:t,comments:i,strings:n}=e,o=["on","inline","off"];let s,r,a;return s="boolean"==typeof t?t?"on":"off":S(t,this.defaultValue.other,o),r="boolean"==typeof i?i?"on":"off":S(i,this.defaultValue.comments,o),a="boolean"==typeof n?n?"on":"off":S(n,this.defaultValue.strings,o),{other:s,comments:r,strings:a}}}),quickSuggestionsDelay:H(new w(91,"quickSuggestionsDelay",10,0,1073741824,{description:l.k("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:H(new _(92,"readOnly",!1)),readOnlyMessage:H(new class extends u{constructor(){super(93,"readOnlyMessage",void 0)}validate(e){return e&&"object"==typeof e?e:this.defaultValue}}),renameOnType:H(new _(94,"renameOnType",!1,{description:l.k("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:l.k("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:H(new _(95,"renderControlCharacters",!0,{description:l.k("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:H(new x(96,"renderFinalNewline",s.j9?"dimmed":"on",["off","on","dimmed"],{description:l.k("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:H(new x(97,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",l.k("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:l.k("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:H(new _(98,"renderLineHighlightOnlyWhenFocus",!1,{description:l.k("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:H(new x(99,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:H(new x(100,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",l.k("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),l.k("renderWhitespace.selection","Render whitespace characters only on selected text."),l.k("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:l.k("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:H(new w(101,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:H(new _(102,"roundedSelection",!0,{description:l.k("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:H(new class extends u{constructor(){const e=[],t={type:"number",description:l.k("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(103,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:l.k("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:l.k("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const i of e)if("number"==typeof i)t.push({column:w.clampedInt(i,0,0,1e4),color:null});else if(i&&"object"==typeof i){const e=i;t.push({column:w.clampedInt(e.column,0,0,1e4),color:e.color})}return t.sort(((e,t)=>e.column-t.column)),t}return this.defaultValue}}),scrollbar:H(new class extends u{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(104,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[l.k("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),l.k("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),l.k("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:l.k("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[l.k("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),l.k("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),l.k("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:l.k("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:l.k("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:l.k("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:l.k("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:l.k("scrollbar.ignoreHorizontalScrollbarInContentHeight","When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e,i=w.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=w.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:w.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:R(t.vertical,this.defaultValue.vertical),horizontal:R(t.horizontal,this.defaultValue.horizontal),useShadows:v(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:v(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:v(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:v(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:v(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:w.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:w.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:v(t.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:v(t.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}}),scrollBeyondLastColumn:H(new w(105,"scrollBeyondLastColumn",4,0,1073741824,{description:l.k("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:H(new _(106,"scrollBeyondLastLine",!0,{description:l.k("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:H(new _(107,"scrollPredominantAxis",!0,{description:l.k("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:H(new _(108,"selectionClipboard",!0,{description:l.k("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:s.j9})),selectionHighlight:H(new _(109,"selectionHighlight",!0,{description:l.k("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:H(new _(110,"selectOnLineNumbers",!0)),showFoldingControls:H(new x(111,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[l.k("showFoldingControls.always","Always show the folding controls."),l.k("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),l.k("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:l.k("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:H(new _(112,"showUnused",!0,{description:l.k("showUnused","Controls fading out of unused code.")})),showDeprecated:H(new _(141,"showDeprecated",!0,{description:l.k("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:H(new class extends u{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(142,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:l.k("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[l.k("editor.inlayHints.on","Inlay hints are enabled"),l.k("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",s.zx?"Ctrl+Option":"Ctrl+Alt"),l.k("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",s.zx?"Ctrl+Option":"Ctrl+Alt"),l.k("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:l.k("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:l.k("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:l.k("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return"boolean"==typeof t.enabled&&(t.enabled=t.enabled?"on":"off"),{enabled:S(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:w.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:k.string(t.fontFamily,this.defaultValue.fontFamily),padding:v(t.padding,this.defaultValue.padding)}}}),snippetSuggestions:H(new x(113,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[l.k("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),l.k("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),l.k("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),l.k("snippetSuggestions.none","Do not show snippet suggestions.")],description:l.k("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:H(new class extends u{constructor(){super(114,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:l.k("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:l.k("selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return e&&"object"==typeof e?{selectLeadingAndTrailingWhitespace:v(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:v(e.selectSubwords,this.defaultValue.selectSubwords)}:this.defaultValue}}),smoothScrolling:H(new _(115,"smoothScrolling",!1,{description:l.k("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:H(new w(118,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:H(new class extends u{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(119,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[l.k("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),l.k("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:l.k("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:l.k("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:l.k("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:l.k("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[l.k("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),l.k("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),l.k("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),l.k("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:l.k("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions ({0} and {1}) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.","`#editor.quickSuggestions#`","`#editor.suggestOnTriggerCharacters#`")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:l.k("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:l.k("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:l.k("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:l.k("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:l.k("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:l.k("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:l.k("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:l.k("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{insertMode:S(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:v(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:v(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:v(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:v(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:S(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:v(t.showIcons,this.defaultValue.showIcons),showStatusBar:v(t.showStatusBar,this.defaultValue.showStatusBar),preview:v(t.preview,this.defaultValue.preview),previewMode:S(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:v(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:v(t.showMethods,this.defaultValue.showMethods),showFunctions:v(t.showFunctions,this.defaultValue.showFunctions),showConstructors:v(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:v(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:v(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:v(t.showFields,this.defaultValue.showFields),showVariables:v(t.showVariables,this.defaultValue.showVariables),showClasses:v(t.showClasses,this.defaultValue.showClasses),showStructs:v(t.showStructs,this.defaultValue.showStructs),showInterfaces:v(t.showInterfaces,this.defaultValue.showInterfaces),showModules:v(t.showModules,this.defaultValue.showModules),showProperties:v(t.showProperties,this.defaultValue.showProperties),showEvents:v(t.showEvents,this.defaultValue.showEvents),showOperators:v(t.showOperators,this.defaultValue.showOperators),showUnits:v(t.showUnits,this.defaultValue.showUnits),showValues:v(t.showValues,this.defaultValue.showValues),showConstants:v(t.showConstants,this.defaultValue.showConstants),showEnums:v(t.showEnums,this.defaultValue.showEnums),showEnumMembers:v(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:v(t.showKeywords,this.defaultValue.showKeywords),showWords:v(t.showWords,this.defaultValue.showWords),showColors:v(t.showColors,this.defaultValue.showColors),showFiles:v(t.showFiles,this.defaultValue.showFiles),showReferences:v(t.showReferences,this.defaultValue.showReferences),showFolders:v(t.showFolders,this.defaultValue.showFolders),showTypeParameters:v(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:v(t.showSnippets,this.defaultValue.showSnippets),showUsers:v(t.showUsers,this.defaultValue.showUsers),showIssues:v(t.showIssues,this.defaultValue.showIssues)}}}),inlineSuggest:H(new class extends u{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:l.k("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[l.k("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),l.k("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),l.k("inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:l.k("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:l.k("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.fontFamily":{type:"string",default:e.fontFamily,description:l.k("inlineSuggest.fontFamily","Controls the font family of the inline suggestions.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:v(t.enabled,this.defaultValue.enabled),mode:S(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:S(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:v(t.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:v(t.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:k.string(t.fontFamily,this.defaultValue.fontFamily)}}}),inlineEdit:H(new class extends u{constructor(){const e={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1,backgroundColoring:!1};super(63,"experimentalInlineEdit",e,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:e.enabled,description:l.k("inlineEdit.enabled","Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[l.k("inlineEdit.showToolbar.always","Show the inline edit toolbar whenever an inline suggestion is shown."),l.k("inlineEdit.showToolbar.onHover","Show the inline edit toolbar when hovering over an inline suggestion."),l.k("inlineEdit.showToolbar.never","Never show the inline edit toolbar.")],description:l.k("inlineEdit.showToolbar","Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:l.k("inlineEdit.fontFamily","Controls the font family of the inline edit.")},"editor.experimentalInlineEdit.backgroundColoring":{type:"boolean",default:e.backgroundColoring,description:l.k("inlineEdit.backgroundColoring","Controls whether to color the background of inline edits.")}})}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{enabled:v(t.enabled,this.defaultValue.enabled),showToolbar:S(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:k.string(t.fontFamily,this.defaultValue.fontFamily),keepOnBlur:v(t.keepOnBlur,this.defaultValue.keepOnBlur),backgroundColoring:v(t.backgroundColoring,this.defaultValue.backgroundColoring)}}}),inlineCompletionsAccessibilityVerbose:H(new _(150,"inlineCompletionsAccessibilityVerbose",!1,{description:l.k("inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:H(new w(120,"suggestFontSize",0,0,1e3,{markdownDescription:l.k("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:H(new w(121,"suggestLineHeight",0,0,1e3,{markdownDescription:l.k("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:H(new _(122,"suggestOnTriggerCharacters",!0,{description:l.k("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:H(new x(123,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[l.k("suggestSelection.first","Always select the first suggestion."),l.k("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),l.k("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:l.k("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:H(new x(124,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[l.k("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),l.k("tabCompletion.off","Disable tab completions."),l.k("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:l.k("tabCompletion","Enables tab completions.")})),tabIndex:H(new w(125,"tabIndex",0,-1,1073741824)),unicodeHighlight:H(new class extends u{constructor(){const e={nonBasicASCII:P,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:P,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(126,"unicodeHighlight",e,{[O.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,P],default:e.nonBasicASCII,description:l.k("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[O.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:l.k("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[O.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:l.k("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[O.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,P],default:e.includeComments,description:l.k("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[O.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,P],default:e.includeStrings,description:l.k("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[O.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:l.k("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[O.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:l.k("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&(o.aI(e.allowedCharacters,t.allowedCharacters)||(e={...e,allowedCharacters:t.allowedCharacters},i=!0)),t.allowedLocales&&e&&(o.aI(e.allowedLocales,t.allowedLocales)||(e={...e,allowedLocales:t.allowedLocales},i=!0));const n=super.applyUpdate(e,t);return i?new g(n.newValue,!0):n}validate(e){if(!e||"object"!=typeof e)return this.defaultValue;const t=e;return{nonBasicASCII:F(t.nonBasicASCII,P,[!0,!1,P]),invisibleCharacters:v(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:v(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:F(t.includeComments,P,[!0,!1,P]),includeStrings:F(t.includeStrings,P,[!0,!1,P]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if("object"!=typeof e||!e)return t;const i={};for(const[t,n]of Object.entries(e))!0===n&&(i[t]=!0);return i}}),unusualLineTerminators:H(new x(127,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[l.k("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),l.k("unusualLineTerminators.off","Unusual line terminators are ignored."),l.k("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:l.k("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:H(new _(128,"useShadowDOM",!0)),useTabStops:H(new _(129,"useTabStops",!0,{description:l.k("useTabStops","Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:H(new x(130,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[l.k("wordBreak.normal","Use the default line break rule."),l.k("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:l.k("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:H(new class extends u{constructor(){super(131,"wordSegmenterLocales",[],{anyOf:[{description:l.k("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"string"},{description:l.k("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"}}]})}validate(e){if("string"==typeof e&&(e=[e]),Array.isArray(e)){const t=[];for(const i of e)if("string"==typeof i)try{Intl.Segmenter.supportedLocalesOf(i).length>0&&t.push(i)}catch(e){}return t}return this.defaultValue}}),wordSeparators:H(new k(132,"wordSeparators",a.J3,{description:l.k("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:H(new x(133,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[l.k("wordWrap.off","Lines will never wrap."),l.k("wordWrap.on","Lines will wrap at the viewport width."),l.k({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),l.k({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:l.k({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:H(new k(134,"wordWrapBreakAfterCharacters"," \t})]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:H(new k(135,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:H(new w(136,"wordWrapColumn",80,1,1073741824,{markdownDescription:l.k({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:H(new x(137,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:H(new x(138,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:H(new class extends m{constructor(){super(143)}compute(e,t,i){const n=["monaco-editor"];return t.get(39)&&n.push(t.get(39)),e.extraEditorClassName&&n.push(e.extraEditorClassName),"default"===t.get(74)?n.push("mouse-default"):"copy"===t.get(74)&&n.push("mouse-copy"),t.get(112)&&n.push("showUnused"),t.get(141)&&n.push("showDeprecated"),n.join(" ")}}),defaultColorDecorators:H(new _(148,"defaultColorDecorators",!1,{markdownDescription:l.k("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:H(new class extends m{constructor(){super(144)}compute(e,t,i){return e.pixelRatio}}),tabFocusMode:H(new _(145,"tabFocusMode",!1,{markdownDescription:l.k("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:H(new A),wrappingInfo:H(new class extends m{constructor(){super(147)}compute(e,t,i){const n=t.get(146);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}}),wrappingIndent:H(new class extends u{constructor(){super(139,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[l.k("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),l.k("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),l.k("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),l.k("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:l.k("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,i){return 2===t.get(2)?0:i}}),wrappingStrategy:H(new class extends u{constructor(){super(140,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[l.k("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),l.k("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:l.k("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return S(e,"simple",["simple","advanced"])}compute(e,t,i){return 2===t.get(2)?"advanced":i}})}},84587:(e,t,i)=>{"use strict";i.d(t,{D:()=>o});var n=i(2106);const o=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new n.vl,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}getZoomLevel(){return this._zoomLevel}setZoomLevel(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel))}}},28060:(e,t,i)=>{"use strict";i.d(t,{YJ:()=>l,_8:()=>a});var n=i(63339),o=i(66476),s=i(84587);const r=n.zx?1.5:1.35;class a{static createFromValidatedSettings(e,t,i){const n=e.get(49),o=e.get(53),s=e.get(52),r=e.get(51),l=e.get(54),d=e.get(67),c=e.get(64);return a._create(n,o,s,r,l,d,c,t,i)}static _create(e,t,i,n,l,d,c,h,u){0===d?d=r*i:d<8&&(d*=i),(d=Math.round(d))<8&&(d=8);const g=1+(u?0:.1*s.D.getZoomLevel());return i*=g,d*=g,l===o.r_.TRANSLATE&&("normal"===t||"bold"===t?l=o.r_.OFF:(l=`'wght' ${parseInt(t,10)}`,t="normal")),new a({pixelRatio:h,fontFamily:e,fontWeight:t,fontSize:i,fontFeatureSettings:n,fontVariationSettings:l,lineHeight:d,letterSpacing:c})}constructor(e){this._bareFontInfoBrand=void 0,this.pixelRatio=e.pixelRatio,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.fontFeatureSettings=e.fontFeatureSettings,this.fontVariationSettings=e.fontVariationSettings,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing}getId(){return`${this.pixelRatio}-${this.fontFamily}-${this.fontWeight}-${this.fontSize}-${this.fontFeatureSettings}-${this.fontVariationSettings}-${this.lineHeight}-${this.letterSpacing}`}getMassagedFontFamily(){const e=o.jU.fontFamily,t=a._wrapInQuotes(this.fontFamily);return e&&this.fontFamily!==e?`${t}, ${e}`:t}static _wrapInQuotes(e){return/[,"']/.test(e)?e:/[+ ]/.test(e)?`"${e}"`:e}}class l extends a{constructor(e,t){super(e),this._editorStylingBrand=void 0,this.version=2,this.isTrusted=t,this.isMonospace=e.isMonospace,this.typicalHalfwidthCharacterWidth=e.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=e.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,this.spaceWidth=e.spaceWidth,this.middotWidth=e.middotWidth,this.wsmiddotWidth=e.wsmiddotWidth,this.maxDigitWidth=e.maxDigitWidth}equals(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.fontFeatureSettings===e.fontFeatureSettings&&this.fontVariationSettings===e.fontVariationSettings&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.maxDigitWidth===e.maxDigitWidth}}},27454:(e,t,i)=>{"use strict";i.d(t,{V:()=>o,y:()=>s});var n=i(37512);class o{constructor(e){const t=(0,n.W)(e);this._defaultValue=t,this._asciiMap=o._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const i=(0,n.W)(t);e>=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class s{constructor(){this._actual=new o(0)}add(e){this._actual.set(e,1)}has(e){return 1===this._actual.get(e)}clear(){return this._actual.clear()}}},62549:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var n=i(16844);class o{static _nextVisibleColumn(e,t,i){return 9===e?o.nextRenderTabStop(t,i):n.ne(e)||n.Ss(e)?t+2:t+1}static visibleColumnFromColumn(e,t,i){const o=Math.min(t-1,e.length),s=e.substring(0,o),r=new n.km(s);let a=0;for(;!r.eol();){const e=n.Z5(s,o,r.offset);r.nextGraphemeLength(),a=this._nextVisibleColumn(e,a,i)}return a}static columnFromVisibleColumn(e,t,i){if(t<=0)return 1;const o=e.length,s=new n.km(e);let r=0,a=1;for(;!s.eol();){const l=n.Z5(e,o,s.offset);s.nextGraphemeLength();const d=this._nextVisibleColumn(l,r,i),c=s.offset+1;if(d>=t)return d-t{"use strict";i.d(t,{k:()=>o});var n=i(28061);class o{static insert(e,t){return{range:new n.Q(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}}static delete(e){return{range:e,text:null}}static replace(e,t){return{range:e,text:t}}static replaceMove(e,t){return{range:e,text:t,forceMoveMarkers:!0}}}},48295:(e,t,i)=>{"use strict";i.d(t,{A3:()=>E,AQ:()=>V,Am:()=>L,As:()=>N,BD:()=>J,Bo:()=>Y,CM:()=>S,D0:()=>d,Ek:()=>O,H0:()=>x,I2:()=>Z,IW:()=>ee,If:()=>X,JB:()=>A,L0:()=>p,Mf:()=>l,P1:()=>se,Pe:()=>ne,Qt:()=>f,WD:()=>oe,WS:()=>ie,WY:()=>re,Xr:()=>R,aZ:()=>H,bB:()=>te,hz:()=>y,je:()=>u,kG:()=>a,kM:()=>c,l5:()=>$,lQ:()=>j,n4:()=>Q,ob:()=>w,ow:()=>C,s7:()=>G,sC:()=>h,sH:()=>K,sN:()=>z,ss:()=>U,tK:()=>D,tp:()=>I,vP:()=>k,vV:()=>b,vp:()=>B,w4:()=>m,we:()=>g,x9:()=>T,yI:()=>W,yw:()=>P,zp:()=>q});var n=i(3765),o=i(94901),s=i(70559),r=i(89044);const a=(0,s.x1A)("editor.lineHighlightBackground",null,n.k("lineHighlight","Background color for the highlight of line at the cursor position.")),l=(0,s.x1A)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:s.b1q},n.k("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),d=((0,s.x1A)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},n.k("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:s.buw,hcLight:s.buw},n.k("rangeHighlightBorder","Background color of the border around highlighted ranges.")),(0,s.x1A)("editor.symbolHighlightBackground",{dark:s.Ubg,light:s.Ubg,hcDark:null,hcLight:null},n.k("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),(0,s.x1A)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:s.buw,hcLight:s.buw},n.k("symbolHighlightBorder","Background color of the border around highlighted symbols.")),(0,s.x1A)("editorCursor.foreground",{dark:"#AEAFAD",light:o.Q1.black,hcDark:o.Q1.white,hcLight:"#0F4A85"},n.k("caret","Color of the editor cursor."))),c=(0,s.x1A)("editorCursor.background",null,n.k("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),h=(0,s.x1A)("editorMultiCursor.primary.foreground",d,n.k("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),u=(0,s.x1A)("editorMultiCursor.primary.background",c,n.k("editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),g=(0,s.x1A)("editorMultiCursor.secondary.foreground",d,n.k("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),p=(0,s.x1A)("editorMultiCursor.secondary.background",c,n.k("editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),m=(0,s.x1A)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},n.k("editorWhitespaces","Color of whitespace characters in the editor.")),f=(0,s.x1A)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:o.Q1.white,hcLight:"#292929"},n.k("editorLineNumbers","Color of editor line numbers.")),v=(0,s.x1A)("editorIndentGuide.background",m,n.k("editorIndentGuides","Color of the editor indentation guides."),!1,n.k("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead.")),_=(0,s.x1A)("editorIndentGuide.activeBackground",m,n.k("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,n.k("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),b=(0,s.x1A)("editorIndentGuide.background1",v,n.k("editorIndentGuides1","Color of the editor indentation guides (1).")),w=(0,s.x1A)("editorIndentGuide.background2","#00000000",n.k("editorIndentGuides2","Color of the editor indentation guides (2).")),y=(0,s.x1A)("editorIndentGuide.background3","#00000000",n.k("editorIndentGuides3","Color of the editor indentation guides (3).")),C=(0,s.x1A)("editorIndentGuide.background4","#00000000",n.k("editorIndentGuides4","Color of the editor indentation guides (4).")),k=(0,s.x1A)("editorIndentGuide.background5","#00000000",n.k("editorIndentGuides5","Color of the editor indentation guides (5).")),S=(0,s.x1A)("editorIndentGuide.background6","#00000000",n.k("editorIndentGuides6","Color of the editor indentation guides (6).")),x=(0,s.x1A)("editorIndentGuide.activeBackground1",_,n.k("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),L=(0,s.x1A)("editorIndentGuide.activeBackground2","#00000000",n.k("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),D=(0,s.x1A)("editorIndentGuide.activeBackground3","#00000000",n.k("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),E=(0,s.x1A)("editorIndentGuide.activeBackground4","#00000000",n.k("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),I=(0,s.x1A)("editorIndentGuide.activeBackground5","#00000000",n.k("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),N=(0,s.x1A)("editorIndentGuide.activeBackground6","#00000000",n.k("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),M=(0,s.x1A)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:s.buw,hcLight:s.buw},n.k("editorActiveLineNumber","Color of editor active line number"),!1,n.k("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),A=((0,s.x1A)("editorLineNumber.activeForeground",M,n.k("editorActiveLineNumber","Color of editor active line number")),(0,s.x1A)("editorLineNumber.dimmedForeground",null,n.k("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed."))),T=((0,s.x1A)("editorRuler.foreground",{dark:"#5A5A5A",light:o.Q1.lightgrey,hcDark:o.Q1.white,hcLight:"#292929"},n.k("editorRuler","Color of the editor rulers.")),(0,s.x1A)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},n.k("editorCodeLensForeground","Foreground color of editor CodeLens")),(0,s.x1A)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},n.k("editorBracketMatchBackground","Background color behind matching brackets")),(0,s.x1A)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:s.b1q,hcLight:s.b1q},n.k("editorBracketMatchBorder","Color for matching brackets boxes")),(0,s.x1A)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},n.k("editorOverviewRulerBorder","Color of the overview ruler border."))),R=(0,s.x1A)("editorOverviewRuler.background",null,n.k("editorOverviewRulerBackground","Background color of the editor overview ruler.")),P=((0,s.x1A)("editorGutter.background",s.YtV,n.k("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),(0,s.x1A)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:o.Q1.fromHex("#fff").transparent(.8),hcLight:s.b1q},n.k("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),(0,s.x1A)("editorUnnecessaryCode.opacity",{dark:o.Q1.fromHex("#000a"),light:o.Q1.fromHex("#0007"),hcDark:null,hcLight:null},n.k("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out."))),O=((0,s.x1A)("editorGhostText.border",{dark:null,light:null,hcDark:o.Q1.fromHex("#fff").transparent(.8),hcLight:o.Q1.fromHex("#292929").transparent(.8)},n.k("editorGhostTextBorder","Border color of ghost text in the editor.")),(0,s.x1A)("editorGhostText.foreground",{dark:o.Q1.fromHex("#ffffff56"),light:o.Q1.fromHex("#0007"),hcDark:null,hcLight:null},n.k("editorGhostTextForeground","Foreground color of the ghost text in the editor."))),F=((0,s.x1A)("editorGhostText.background",null,n.k("editorGhostTextBackground","Background color of the ghost text in the editor.")),new o.Q1(new o.bU(0,122,204,.6))),B=(0,s.x1A)("editorOverviewRuler.rangeHighlightForeground",F,n.k("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),W=(0,s.x1A)("editorOverviewRuler.errorForeground",{dark:new o.Q1(new o.bU(255,18,18,.7)),light:new o.Q1(new o.bU(255,18,18,.7)),hcDark:new o.Q1(new o.bU(255,50,50,1)),hcLight:"#B5200D"},n.k("overviewRuleError","Overview ruler marker color for errors.")),H=(0,s.x1A)("editorOverviewRuler.warningForeground",{dark:s.Hng,light:s.Hng,hcDark:s.Stt,hcLight:s.Stt},n.k("overviewRuleWarning","Overview ruler marker color for warnings.")),V=(0,s.x1A)("editorOverviewRuler.infoForeground",{dark:s.pOz,light:s.pOz,hcDark:s.IIb,hcLight:s.IIb},n.k("overviewRuleInfo","Overview ruler marker color for infos.")),z=(0,s.x1A)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},n.k("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),j=(0,s.x1A)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},n.k("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),U=(0,s.x1A)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},n.k("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),$=(0,s.x1A)("editorBracketHighlight.foreground4","#00000000",n.k("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),K=(0,s.x1A)("editorBracketHighlight.foreground5","#00000000",n.k("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),q=(0,s.x1A)("editorBracketHighlight.foreground6","#00000000",n.k("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),G=(0,s.x1A)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new o.Q1(new o.bU(255,18,18,.8)),light:new o.Q1(new o.bU(255,18,18,.8)),hcDark:new o.Q1(new o.bU(255,50,50,1)),hcLight:""},n.k("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets.")),Q=(0,s.x1A)("editorBracketPairGuide.background1","#00000000",n.k("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),Z=(0,s.x1A)("editorBracketPairGuide.background2","#00000000",n.k("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),Y=(0,s.x1A)("editorBracketPairGuide.background3","#00000000",n.k("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),X=(0,s.x1A)("editorBracketPairGuide.background4","#00000000",n.k("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),J=(0,s.x1A)("editorBracketPairGuide.background5","#00000000",n.k("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),ee=(0,s.x1A)("editorBracketPairGuide.background6","#00000000",n.k("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),te=(0,s.x1A)("editorBracketPairGuide.activeBackground1","#00000000",n.k("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),ie=(0,s.x1A)("editorBracketPairGuide.activeBackground2","#00000000",n.k("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),ne=(0,s.x1A)("editorBracketPairGuide.activeBackground3","#00000000",n.k("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),oe=(0,s.x1A)("editorBracketPairGuide.activeBackground4","#00000000",n.k("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),se=(0,s.x1A)("editorBracketPairGuide.activeBackground5","#00000000",n.k("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),re=(0,s.x1A)("editorBracketPairGuide.activeBackground6","#00000000",n.k("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides."));(0,s.x1A)("editorUnicodeHighlight.border",s.Hng,n.k("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),(0,s.x1A)("editorUnicodeHighlight.background",s.whs,n.k("editorUnicodeHighlight.background","Background color used to highlight unicode characters.")),(0,r.zy)(((e,t)=>{const i=e.getColor(s.YtV),n=e.getColor(a),o=n&&!n.isTransparent()?n:i;o&&t.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${o}; }`)}))},3902:(e,t,i)=>{"use strict";function n(e){let t=0,i=0,n=0,o=0;for(let s=0,r=e.length;sn})},57999:(e,t,i)=>{"use strict";i.d(t,{P:()=>s});var n=i(16844),o=i(62549);function s(e,t,i){let s=n.HG(e);return-1===s&&(s=e.length),function(e,t,i){let n=0;for(let i=0;i{"use strict";i.d(t,{M:()=>a,S:()=>l});var n=i(94327),o=i(72532),s=i(28061),r=i(97393);class a{static fromRangeInclusive(e){return new a(e.startLineNumber,e.endLineNumber+1)}static joinMany(e){if(0===e.length)return[];let t=new l(e[0].slice());for(let i=1;it)throw new n.D7(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&et.endLineNumberExclusive>=e.startLineNumber)),i=(0,r.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===i)this._normalizedRanges.splice(t,0,e);else if(t===i-1){const i=this._normalizedRanges[t];this._normalizedRanges[t]=i.join(e)}else{const n=this._normalizedRanges[t].join(this._normalizedRanges[i-1]).join(e);this._normalizedRanges.splice(t,i-t,n)}}contains(e){const t=(0,r.lx)(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=(0,r.lx)(this._normalizedRanges,(t=>t.startLineNumbere.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let i=0,n=0,o=null;for(;i=s.startLineNumber?o=new a(o.startLineNumber,Math.max(o.endLineNumberExclusive,s.endLineNumberExclusive)):(t.push(o),o=s)}return null!==o&&t.push(o),new l(t)}subtractFrom(e){const t=(0,r.hw)(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),i=(0,r.iM)(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===i)return new l([e]);const n=[];let o=e.startLineNumber;for(let e=t;eo&&n.push(new a(o,t.startLineNumber)),o=t.endLineNumberExclusive}return oe.toString())).join(", ")}getIntersection(e){const t=[];let i=0,n=0;for(;it.delta(e))))}}},72532:(e,t,i)=>{"use strict";i.d(t,{L:()=>o,h:()=>s});var n=i(94327);class o{static addRange(e,t){let i=0;for(;it))return new o(e,t)}static ofLength(e){return new o(0,e)}static ofStartAndLength(e,t){return new o(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new n.D7(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new o(this.start+e,this.endExclusive+e)}deltaStart(e){return new o(this.start+e,this.endExclusive)}deltaEnd(e){return new o(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new n.D7(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new n.D7(`Invalid clipping range: ${this.toString()}`);return e=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let t=this.start;te.toString())).join(", ")}intersectsStrict(e){let t=0;for(;te+t.length),0)}}},15365:(e,t,i)=>{"use strict";i.d(t,{y:()=>n});class n{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new n(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return n.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return n.isBefore(this,e)}static isBefore(e,t){return e.lineNumber{"use strict";i.d(t,{a:()=>s});var n=i(72532),o=i(58357);class s{constructor(e){this.text=e,this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let t=0;t{"use strict";i.d(t,{Q:()=>o});var n=i(15365);class o{constructor(e,t,i,n){e>i||e===i&&t>n?(this.startLineNumber=i,this.startColumn=n,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=n)}isEmpty(){return o.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return o.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.columne.endColumn)}static strictContainsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<=e.startColumn||t.lineNumber===e.endLineNumber&&t.column>=e.endColumn)}containsRange(e){return o.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)}strictContainsRange(e){return o.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(e){return o.plusRange(this,e)}static plusRange(e,t){let i,n,s,r;return t.startLineNumbere.endLineNumber?(s=t.endLineNumber,r=t.endColumn):t.endLineNumber===e.endLineNumber?(s=t.endLineNumber,r=Math.max(t.endColumn,e.endColumn)):(s=e.endLineNumber,r=e.endColumn),new o(i,n,s,r)}intersectRanges(e){return o.intersectRanges(this,e)}static intersectRanges(e,t){let i=e.startLineNumber,n=e.startColumn,s=e.endLineNumber,r=e.endColumn;const a=t.startLineNumber,l=t.startColumn,d=t.endLineNumber,c=t.endColumn;return id?(s=d,r=c):s===d&&(r=Math.min(r,c)),i>s||i===s&&n>r?null:new o(i,n,s,r)}equalsRange(e){return o.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return o.getEndPosition(this)}static getEndPosition(e){return new n.y(e.endLineNumber,e.endColumn)}getStartPosition(){return o.getStartPosition(this)}static getStartPosition(e){return new n.y(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new o(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new o(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return o.collapseToStart(this)}static collapseToStart(e){return new o(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return o.collapseToEnd(this)}static collapseToEnd(e){return new o(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new o(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new o(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new o(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}}},93702:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});var n=i(15365),o=i(28061);class s extends o.Q{constructor(e,t,i,n){super(e,t,i,n),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=n}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return s.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new s(this.startLineNumber,this.startColumn,e,t):new s(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new n.y(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new n.y(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new s(e,t,this.endLineNumber,this.endColumn):new s(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new s(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new s(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new s(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new s(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,n=e.length;i{"use strict";i.d(t,{Su:()=>h,b7:()=>c,fe:()=>u});var n=i(16844),o=i(63339),s=i(42802);let r,a,l;function d(){return r||(r=new TextDecoder("UTF-16LE")),r}function c(){return l||(l=o.cm()?d():(a||(a=new TextDecoder("UTF-16BE")),a)),l}function h(e,t,i){const n=new Uint16Array(e.buffer,t,i);return i>0&&(65279===n[0]||65534===n[0])?function(e,t,i){const n=[];let o=0;for(let r=0;r=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(let i=0;i{"use strict";i.d(t,{k:()=>r,x:()=>a});var n=i(42802),o=i(54324);function s(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class r{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(e,t,i,n){this.oldPosition=e,this.oldText=t,this.newPosition=i,this.newText=n}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${s(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${s(this.oldText)}")`:`(replace@${this.oldPosition} "${s(this.oldText)}" with "${s(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,i){const o=t.length;n.Sw(e,o,i),i+=4;for(let s=0;s{"use strict";i.d(t,{CO:()=>u,WR:()=>c,mF:()=>d});var n=i(87110),o=i(94327),s=i(15365),r=i(66747),a=i(28061),l=i(58357);class d{constructor(e){this.edits=e,(0,n.Ft)((()=>(0,n.Xo)(e,((e,t)=>e.range.getEndPosition().isBeforeOrEqual(t.range.getStartPosition())))))}apply(e){let t="",i=new s.y(1,1);for(const n of this.edits){const o=n.range,s=o.getStartPosition(),r=o.getEndPosition(),a=h(i,s);a.isEmpty()||(t+=e.getValueOfRange(a)),t+=n.text,i=r}const n=h(i,e.endPositionExclusive);return n.isEmpty()||(t+=e.getValueOfRange(n)),t}applyToString(e){const t=new g(e);return this.apply(t)}getNewRanges(){const e=[];let t=0,i=0,n=0;for(const o of this.edits){const r=l.W.ofText(o.text),a=s.y.lift({lineNumber:o.range.startLineNumber+i,column:o.range.startColumn+(o.range.startLineNumber===t?n:0)}),d=r.createRange(a);e.push(d),i=d.endLineNumber-o.range.endLineNumber,n=d.endColumn-o.range.endColumn,t=o.range.endLineNumber}return e}}class c{constructor(e,t){this.range=e,this.text=t}toSingleEditOperation(){return{range:this.range,text:this.text}}}function h(e,t){if(e.lineNumber===t.lineNumber&&e.column===Number.MAX_SAFE_INTEGER)return a.Q.fromPositions(t,t);if(!e.isBeforeOrEqual(t))throw new o.D7("start must be before end");return new a.Q(e.lineNumber,e.column,t.lineNumber,t.column)}class u{get endPositionExclusive(){return this.length.addToPosition(new s.y(1,1))}}class g extends u{constructor(e){super(),this.value=e,this._t=new r.a(this.value)}getValueOfRange(e){return this._t.getOffsetRange(e).substring(this.value)}get length(){return this._t.textLength}}},58357:(e,t,i)=>{"use strict";i.d(t,{W:()=>s});var n=i(15365),o=i(28061);class s{static betweenPositions(e,t){return e.lineNumber===t.lineNumber?new s(0,t.column-e.column):new s(t.lineNumber-e.lineNumber,t.column-1)}static ofRange(e){return s.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let t=0,i=0;for(const n of e)"\n"===n?(t++,i=0):i++;return new s(t,i)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}createRange(e){return 0===this.lineCount?new o.Q(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new o.Q(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return 0===this.lineCount?new n.y(e.lineNumber,e.column+this.columnCount):new n.y(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}s.zero=new s(0,0)},12590:(e,t,i)=>{"use strict";i.d(t,{R:()=>n});const n={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}}},82862:(e,t,i)=>{"use strict";i.d(t,{i:()=>a});var n=i(27992),o=i(27454);class s extends o.V{constructor(e,t){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=t,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let t=0,i=e.length;tt)break;i=n}return i}findNextIntlWordAtOrAfterOffset(e,t){for(const i of this._getIntlSegmenterWordsOnLine(e))if(!(i.index{"use strict";i.d(t,{Io:()=>a,J3:()=>s,Ld:()=>r,Th:()=>d});var n=i(17954),o=i(85525);const s="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",r=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const i of s)e.indexOf(i)>=0||(t+="\\"+i);return t+="\\s]+)",new RegExp(t,"g")}();function a(e){let t=r;if(e&&e instanceof RegExp)if(e.global)t=e;else{let i="g";e.ignoreCase&&(i+="i"),e.multiline&&(i+="m"),e.unicode&&(i+="u"),t=new RegExp(e.source,i)}return t.lastIndex=0,t}const l=new o.w;function d(e,t,i,o,s){if(t=a(t),s||(s=n.f.first(l)),i.length>s.maxLen){let n=e-s.maxLen/2;return n<0?n=0:o+=n,d(e,t,i=i.substring(n,e+s.maxLen/2),o,s)}const r=Date.now(),h=e-1-o;let u=-1,g=null;for(let e=1;!(Date.now()-r>=s.timeBudget);e++){const n=h-s.windowSize*e;t.lastIndex=Math.max(0,n);const o=c(t,i,h,u);if(!o&&g)break;if(g=o,n<=0)break;u=n}if(g){const e={word:g[0],startColumn:o+1+g.index,endColumn:o+1+g.index+g[0].length};return t.lastIndex=0,e}return null}function c(e,t,i,n){let o;for(;o=e.exec(t);){const t=o.index||0;if(t<=i&&e.lastIndex>=i)return o;if(n>0&&t>n)return null}return null}l.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},71937:(e,t,i)=>{"use strict";i.d(t,{s:()=>o});var n=i(62549);class o{static whitespaceVisibleColumn(e,t,i){const o=e.length;let s=0,r=-1,a=-1;for(let l=0;l{"use strict";i.d(t,{g:()=>c});var n=i(16844),o=i(66316),s=i(29895),r=i(62549),a=i(50572),l=i(28061),d=i(15365);class c{static deleteRight(e,t,i,n){const s=[];let r=3!==e;for(let e=0,d=n.length;e=h.length+1)return!1;const u=h.charAt(c.column-2),g=n.get(u);if(!g)return!1;if((0,s.vG)(u)){if("never"===i)return!1}else if("never"===t)return!1;const p=h.charAt(c.column-1);let m=!1;for(const e of g)e.open===u&&e.close===p&&(m=!0);if(!m)return!1;if("auto"===e){let e=!1;for(let t=0,i=a.length;t1){const e=t.getLineContent(o.lineNumber),s=n.HG(e),a=-1===s?e.length+1:s+1;if(o.column<=a){const e=i.visibleColumnFromColumn(t,o),n=r.A.prevIndentTabStop(e,i.indentSize),s=i.columnFromVisibleColumn(t,o.lineNumber,n);return new l.Q(o.lineNumber,s,o.lineNumber,o.column)}}return l.Q.fromPositions(c.getPositionAfterDeleteLeft(o,t),o)}static getPositionAfterDeleteLeft(e,t){if(e.column>1){const i=n.Wd(e.column-1,t.getLineContent(e.lineNumber));return e.with(void 0,i+1)}if(e.lineNumber>1){const i=e.lineNumber-1;return new d.y(i,t.getLineMaxColumn(i))}return e}static cut(e,t,i){const n=[];let r=null;i.sort(((e,t)=>d.y.compare(e.getStartPosition(),t.getEndPosition())));for(let s=0,a=i.length;s1&&(null==r?void 0:r.endLineNumber)!==e.lineNumber?(i=e.lineNumber-1,d=t.getLineMaxColumn(e.lineNumber-1),c=e.lineNumber,h=t.getLineMaxColumn(e.lineNumber)):(i=e.lineNumber,d=1,c=e.lineNumber,h=t.getLineMaxColumn(e.lineNumber));const u=new l.Q(i,d,c,h);r=u,u.isEmpty()?n[s]=null:n[s]=new o.iu(u,"")}else n[s]=null;else n[s]=new o.iu(a,"")}return new s.vY(0,n,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}},27064:(e,t,i)=>{"use strict";i.d(t,{S:()=>n,c:()=>c});var n,o=i(79359),s=i(29895),r=i(50572),a=i(89673),l=i(15365),d=i(28061);class c{static addCursorDown(e,t,i){const n=[];let o=0;for(let a=0,l=t.length;at&&(i=t,n=e.model.getLineMaxColumn(i)),s.MF.fromModelState(new s.mG(new d.Q(r.lineNumber,1,i,n),2,0,new l.y(i,n),0))}const c=t.modelState.selectionStart.getStartPosition().lineNumber;if(r.lineNumberc){const i=e.getLineCount();let n=a.lineNumber+1,o=1;return n>i&&(n=i,o=e.getLineMaxColumn(n)),s.MF.fromViewState(t.viewState.move(!0,n,o,0))}{const e=t.modelState.selectionStart.getEndPosition();return s.MF.fromModelState(t.modelState.move(!0,e.lineNumber,e.column,0))}}static word(e,t,i,n){const o=e.model.validatePosition(n);return s.MF.fromModelState(a.z.word(e.cursorConfig,e.model,t.modelState,i,o))}static cancelSelection(e,t){if(!t.modelState.hasSelection())return new s.MF(t.modelState,t.viewState);const i=t.viewState.position.lineNumber,n=t.viewState.position.column;return s.MF.fromViewState(new s.mG(new d.Q(i,n,i,n),0,0,new l.y(i,n),0))}static moveTo(e,t,i,n,o){if(i){if(1===t.modelState.selectionStartKind)return this.word(e,t,i,n);if(2===t.modelState.selectionStartKind)return this.line(e,t,i,n,o)}const r=e.model.validatePosition(n),a=o?e.coordinatesConverter.validateViewPosition(new l.y(o.lineNumber,o.column),r):e.coordinatesConverter.convertModelPositionToViewPosition(r);return s.MF.fromViewState(t.viewState.move(i,a.lineNumber,a.column,0))}static simpleMove(e,t,i,n,o,a){switch(i){case 0:return 4===a?this._moveHalfLineLeft(e,t,n):this._moveLeft(e,t,n,o);case 1:return 4===a?this._moveHalfLineRight(e,t,n):this._moveRight(e,t,n,o);case 2:return 2===a?this._moveUpByViewLines(e,t,n,o):this._moveUpByModelLines(e,t,n,o);case 3:return 2===a?this._moveDownByViewLines(e,t,n,o):this._moveDownByModelLines(e,t,n,o);case 4:return 2===a?t.map((t=>s.MF.fromViewState(r.I.moveToPrevBlankLine(e.cursorConfig,e,t.viewState,n)))):t.map((t=>s.MF.fromModelState(r.I.moveToPrevBlankLine(e.cursorConfig,e.model,t.modelState,n))));case 5:return 2===a?t.map((t=>s.MF.fromViewState(r.I.moveToNextBlankLine(e.cursorConfig,e,t.viewState,n)))):t.map((t=>s.MF.fromModelState(r.I.moveToNextBlankLine(e.cursorConfig,e.model,t.modelState,n))));case 6:return this._moveToViewMinColumn(e,t,n);case 7:return this._moveToViewFirstNonWhitespaceColumn(e,t,n);case 8:return this._moveToViewCenterColumn(e,t,n);case 9:return this._moveToViewMaxColumn(e,t,n);case 10:return this._moveToViewLastNonWhitespaceColumn(e,t,n);default:return null}}static viewportMove(e,t,i,n,o){const s=e.getCompletelyVisibleViewRange(),r=e.coordinatesConverter.convertViewRangeToModelRange(s);switch(i){case 11:{const i=this._firstLineNumberInRange(e.model,r,o),s=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,s)]}case 13:{const i=this._lastLineNumberInRange(e.model,r,o),s=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,s)]}case 12:{const i=Math.round((r.startLineNumber+r.endLineNumber)/2),o=e.model.getLineFirstNonWhitespaceColumn(i);return[this._moveToModelPosition(e,t[0],n,i,o)]}case 14:{const i=[];for(let o=0,r=t.length;oi.endLineNumber-1?i.endLineNumber-1:os.MF.fromViewState(r.I.moveLeft(e.cursorConfig,e,t.viewState,i,n))))}static _moveHalfLineLeft(e,t,i){const n=[];for(let o=0,a=t.length;os.MF.fromViewState(r.I.moveRight(e.cursorConfig,e,t.viewState,i,n))))}static _moveHalfLineRight(e,t,i){const n=[];for(let o=0,a=t.length;o{"use strict";i.d(t,{I:()=>c});var n=i(16844),o=i(62549),s=i(15365),r=i(28061),a=i(71937),l=i(29895);class d{constructor(e,t,i){this._cursorPositionBrand=void 0,this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=i}}class c{static leftPosition(e,t){if(t.column>e.getLineMinColumn(t.lineNumber))return t.delta(void 0,-n.MV(e.getLineContent(t.lineNumber),t.column-1));if(t.lineNumber>1){const i=t.lineNumber-1;return new s.y(i,e.getLineMaxColumn(i))}return t}static leftPositionAtomicSoftTabs(e,t,i){if(t.column<=e.getLineIndentColumn(t.lineNumber)){const n=e.getLineMinColumn(t.lineNumber),o=e.getLineContent(t.lineNumber),r=a.s.atomicPosition(o,t.column-1,i,0);if(-1!==r&&r+1>=n)return new s.y(t.lineNumber,r+1)}return this.leftPosition(e,t)}static left(e,t,i){const n=e.stickyTabStops?c.leftPositionAtomicSoftTabs(t,i,e.tabSize):c.leftPosition(t,i);return new d(n.lineNumber,n.column,0)}static moveLeft(e,t,i,n,o){let s,r;if(i.hasSelection()&&!n)s=i.selection.startLineNumber,r=i.selection.startColumn;else{const n=i.position.delta(void 0,-(o-1)),a=t.normalizePosition(c.clipPositionColumn(n,t),0),l=c.left(e,t,a);s=l.lineNumber,r=l.column}return i.move(n,s,r,0)}static clipPositionColumn(e,t){return new s.y(e.lineNumber,c.clipRange(e.column,t.getLineMinColumn(e.lineNumber),t.getLineMaxColumn(e.lineNumber)))}static clipRange(e,t,i){return ei?i:e}static rightPosition(e,t,i){return iu?(i=u,n=l?t.getLineMaxColumn(i):Math.min(t.getLineMaxColumn(i),n)):n=e.columnFromVisibleColumn(t,i,h),r=m?0:h-o.A.visibleColumnFromColumn(t.getLineContent(i),n,e.tabSize),void 0!==c){const e=new s.y(i,n),o=t.normalizePosition(e,c);r+=n-o.column,i=o.lineNumber,n=o.column}return new d(i,n,r)}static down(e,t,i,n,o,s,r){return this.vertical(e,t,i,n,o,i+s,r,4)}static moveDown(e,t,i,n,o){let r,a;i.hasSelection()&&!n?(r=i.selection.endLineNumber,a=i.selection.endColumn):(r=i.position.lineNumber,a=i.position.column);let l,d=0;do{if(l=c.down(e,t,r+d,a,i.leftoverVisibleColumns,o,!0),t.normalizePosition(new s.y(l.lineNumber,l.column),2).lineNumber>r)break}while(d++<10&&r+d1&&this._isBlankLine(t,o);)o--;for(;o>1&&!this._isBlankLine(t,o);)o--;return i.move(n,o,t.getLineMinColumn(o),0)}static moveToNextBlankLine(e,t,i,n){const o=t.getLineCount();let s=i.position.lineNumber;for(;s{"use strict";i.d(t,{AO:()=>S,Dr:()=>x,Hs:()=>I,K4:()=>b,Ls:()=>k,UN:()=>D,YA:()=>L,dU:()=>v,ey:()=>H,h0:()=>E,is:()=>y,kr:()=>C,oi:()=>w,sx:()=>_});var n=i(94327),o=i(16844),s=i(66316),r=i(41672),a=i(6020),l=i(29895),d=i(82862),c=i(28061),h=i(15365),u=i(49550),g=i(52394),p=i(19184),m=i(70645),f=i(80794);class v{static getEdits(e,t,i,n,o){if(!o&&this._isAutoIndentType(e,t,i)){const o=[];for(const s of i){const i=this._findActualIndentationForSelection(e,t,s,n);if(null===i)return;o.push({selection:s,indentation:i})}const s=w.getAutoClosingPairClose(e,t,i,n,!1);return this._getIndentationAndAutoClosingPairEdits(e,t,o,n,s)}}static _isAutoIndentType(e,t,i){if(e.autoIndent<4)return!1;for(let e=0,n=i.length;eB(e,t),unshiftIndent:t=>W(e,t)},e.languageConfigurationService);if(null===o)return null;const s=(0,g.Cw)(t,i.startLineNumber,i.startColumn);return o===e.normalizeIndentation(s)?null:o}static _getIndentationAndAutoClosingPairEdits(e,t,i,n,o){const s=i.map((({selection:i,indentation:s})=>{if(null!==o){const r=this._getEditFromIndentationAndSelection(e,t,s,i,n,!1);return new M(r,i,n,o)}{const o=this._getEditFromIndentationAndSelection(e,t,s,i,n,!0);return F(o.range,o.text,!1)}}));return new l.vY(4,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static _getEditFromIndentationAndSelection(e,t,i,n,o,s=!0){const r=n.startLineNumber,a=t.getLineFirstNonWhitespaceColumn(r);let l=e.normalizeIndentation(i);return 0!==a&&(l+=t.getLineContent(r).substring(a-1,n.startColumn-1)),l+=s?o:"",{range:new c.Q(r,1,n.endLineNumber,n.endColumn),text:l}}}class _{static getEdits(e,t,i,n,o,s){if(O(t,i,n,o,s))return this._runAutoClosingOvertype(e,n,s)}static _runAutoClosingOvertype(e,t,i){const n=[];for(let e=0,o=t.length;enew s.iu(new c.Q(e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1)));return new l.vY(4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}}}class w{static getEdits(e,t,i,n,o,s){if(!s){const s=this.getAutoClosingPairClose(e,t,i,n,o);if(null!==s)return this._runAutoClosingOpenCharType(i,n,o,s)}}static _runAutoClosingOpenCharType(e,t,i,n){const o=[];for(let s=0,r=e.length;s{const t=e.getPosition();return o?{lineNumber:t.lineNumber,beforeColumn:t.column-n.length,afterColumn:t.column}:{lineNumber:t.lineNumber,beforeColumn:t.column,afterColumn:t.column}})),r=this._findAutoClosingPairOpen(e,t,s.map((e=>new h.y(e.lineNumber,e.beforeColumn))),n);if(!r)return null;let a,c;if((0,l.vG)(n)?(a=e.autoClosingQuotes,c=e.shouldAutoCloseBefore.quote):e.blockCommentStartToken&&r.open.includes(e.blockCommentStartToken)?(a=e.autoClosingComments,c=e.shouldAutoCloseBefore.comment):(a=e.autoClosingBrackets,c=e.shouldAutoCloseBefore.bracket),"never"===a)return null;const u=this._findContainedAutoClosingPair(e,r),g=u?u.close:"";let m=!0;for(const i of s){const{lineNumber:o,beforeColumn:s,afterColumn:l}=i,h=t.getLineContent(o),u=h.substring(0,s-1),f=h.substring(l-1);if(f.startsWith(g)||(m=!1),f.length>0){const t=f.charAt(0);if(!this._isBeforeClosingBrace(e,f)&&!c(t))return null}if(1===r.open.length&&("'"===n||'"'===n)&&"always"!==a){const t=(0,d.i)(e.wordSeparators,[]);if(u.length>0){const e=u.charCodeAt(u.length-1);if(0===t.get(e))return null}}if(!t.tokenization.isCheapToTokenize(o))return null;t.tokenization.forceTokenization(o);const v=t.tokenization.getLineTokens(o),_=(0,p.BQ)(v,s-1);if(!r.shouldAutoClose(_,s-_.firstCharOffset))return null;const b=r.findNeutralCharacter();if(b){const e=t.tokenization.getTokenTypeIfInsertingCharacter(o,s,b);if(!r.isOK(e))return null}}return m?r.close.substring(0,r.close.length-g.length):r.close}static _findContainedAutoClosingPair(e,t){if(t.open.length<=1)return null;const i=t.close.charAt(t.close.length-1),n=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(i)||[];let o=null;for(const e of n)e.open!==t.open&&t.open.includes(e.open)&&t.close.endsWith(e.close)&&(!o||e.open.length>o.open.length)&&(o=e);return o}static _findAutoClosingPairOpen(e,t,i,n){const o=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(n);if(!o)return null;let s=null;for(const e of o)if(null===s||e.open.length>s.open.length){let o=!0;for(const s of i)if(t.getValueInRange(new c.Q(s.lineNumber,s.column-e.open.length+1,s.lineNumber,s.column))+n!==e.open){o=!1;break}o&&(s=e)}return s}static _isBeforeClosingBrace(e,t){const i=t.charAt(0),n=e.autoClosingPairs.autoClosingPairsOpenByStart.get(i)||[],o=e.autoClosingPairs.autoClosingPairsCloseByStart.get(i)||[],s=n.some((e=>t.startsWith(e.open))),r=o.some((e=>t.startsWith(e.close)));return!s&&r}}class y{static getEdits(e,t,i,n,o){if(!o&&this._isSurroundSelectionType(e,t,i,n))return this._runSurroundSelectionType(e,i,n)}static _runSurroundSelectionType(e,t,i){const n=[];for(let o=0,s=t.length;o=4){const r=(0,m.MU)(e.autoIndent,t,n,{unshiftIndent:t=>W(e,t),shiftIndent:t=>B(e,t),normalizeIndentation:t=>e.normalizeIndentation(t)},e.languageConfigurationService);if(r){let a=e.visibleColumnFromColumn(t,n.getEndPosition());const l=n.endColumn,d=t.getLineContent(n.endLineNumber),c=o.HG(d);if(n=c>=0?n.setEndPosition(n.endLineNumber,Math.max(n.endColumn,c+1)):n.setEndPosition(n.endLineNumber,t.getLineMaxColumn(n.endLineNumber)),i)return new s.q2(n,"\n"+e.normalizeIndentation(r.afterEnter),!0);{let t=0;return l<=c+1&&(e.insertSpaces||(a=Math.ceil(a/e.indentSize)),t=Math.min(a+1-e.normalizeIndentation(r.afterEnter).length-1,0)),new s.iP(n,"\n"+e.normalizeIndentation(r.afterEnter),0,t,!0)}}}return F(n,"\n"+e.normalizeIndentation(l),i)}static lineInsertBefore(e,t,i){if(null===t||null===i)return[];const n=[];for(let o=0,r=i.length;othis._compositionType(i,e,o,s,r,a)));return new l.vY(4,d,{shouldPushStackElementBefore:T(e,4),shouldPushStackElementAfter:!1})}static _compositionType(e,t,i,n,o,r){if(!t.isEmpty())return null;const a=t.getPosition(),l=Math.max(1,a.column-n),d=Math.min(e.getLineMaxColumn(a.lineNumber),a.column+o),h=new c.Q(a.lineNumber,l,a.lineNumber,d);return e.getValueInRange(h)===i&&0===r?null:new s.iP(h,i,0,r)}}class D{static getEdits(e,t,i){const n=[];for(let e=0,o=t.length;e1){let n;for(n=i-1;n>=1;n--){const e=t.getLineContent(n);if(o.lT(e)>=0)break}if(n<1)return null;const r=t.getLineMaxColumn(n),a=(0,f.h)(e.autoIndent,t,new c.Q(n,r,n,r),e.languageConfigurationService);a&&(s=a.indentation+a.appendText)}return n&&(n===u.l.Indent&&(s=B(e,s)),n===u.l.Outdent&&(s=W(e,s)),s=e.normalizeIndentation(s)),s||null}static _replaceJumpToNextIndent(e,t,i,n){let o="";const r=i.getStartPosition();if(e.insertSpaces){const i=e.visibleColumnFromColumn(t,r),n=e.indentSize,s=n-i%n;for(let e=0;e2?d.charCodeAt(a.column-2):0)&&c)return!1;if("auto"===e.autoClosingOvertype){let e=!1;for(let t=0,i=n.length;t{"use strict";i.d(t,{T:()=>a,v:()=>l});var n=i(41672),o=i(6020),s=i(29895),r=i(62885);class a{static indent(e,t,i){if(null===t||null===i)return[];const o=[];for(let t=0,s=i.length;t{"use strict";i.d(t,{c:()=>c,z:()=>d});var n=i(16844),o=i(29895),s=i(97666),r=i(82862),a=i(15365),l=i(28061);class d{static _createWord(e,t,i,n,o){return{start:n,end:o,wordType:t,nextCharClass:i}}static _createIntlWord(e,t){return{start:e.index,end:e.index+e.segment.length,wordType:1,nextCharClass:t}}static _findPreviousWordOnLine(e,t,i){const n=t.getLineContent(i.lineNumber);return this._doFindPreviousWordOnLine(n,e,i)}static _doFindPreviousWordOnLine(e,t,i){let n=0;const o=t.findPrevIntlWordBeforeOrAtOffset(e,i.column-2);for(let s=i.column-2;s>=0;s--){const i=e.charCodeAt(s),r=t.get(i);if(o&&s===o.index)return this._createIntlWord(o,r);if(0===r){if(2===n)return this._createWord(e,n,r,s+1,this._findEndOfWord(e,t,n,s+1));n=1}else if(2===r){if(1===n)return this._createWord(e,n,r,s+1,this._findEndOfWord(e,t,n,s+1));n=2}else if(1===r&&0!==n)return this._createWord(e,n,r,s+1,this._findEndOfWord(e,t,n,s+1))}return 0!==n?this._createWord(e,n,1,0,this._findEndOfWord(e,t,n,0)):null}static _findEndOfWord(e,t,i,n){const o=t.findNextIntlWordAtOrAfterOffset(e,n),s=e.length;for(let r=n;r=0;s--){const n=e.charCodeAt(s),r=t.get(n);if(o&&s===o.index)return s;if(1===r)return s+1;if(1===i&&2===r)return s+1;if(2===i&&0===r)return s+1}return 0}static moveWordLeft(e,t,i,n,o){let s=i.lineNumber,r=i.column;1===r&&s>1&&(s-=1,r=t.getLineMaxColumn(s));let l=d._findPreviousWordOnLine(e,t,new a.y(s,r));if(0===n)return new a.y(s,l?l.start+1:1);if(1===n)return!o&&l&&2===l.wordType&&l.end-l.start==1&&0===l.nextCharClass&&(l=d._findPreviousWordOnLine(e,t,new a.y(s,l.start+1))),new a.y(s,l?l.start+1:1);if(3===n){for(;l&&2===l.wordType;)l=d._findPreviousWordOnLine(e,t,new a.y(s,l.start+1));return new a.y(s,l?l.start+1:1)}return l&&r<=l.end+1&&(l=d._findPreviousWordOnLine(e,t,new a.y(s,l.start+1))),new a.y(s,l?l.end+1:1)}static _moveWordPartLeft(e,t){const i=t.lineNumber,o=e.getLineMaxColumn(i);if(1===t.column)return i>1?new a.y(i-1,e.getLineMaxColumn(i-1)):t;const s=e.getLineContent(i);for(let e=t.column-1;e>1;e--){const t=s.charCodeAt(e-2),r=s.charCodeAt(e-1);if(95===t&&95!==r)return new a.y(i,e);if(45===t&&45!==r)return new a.y(i,e);if((n.Lv(t)||n.DB(t))&&n.Wv(r))return new a.y(i,e);if(n.Wv(t)&&n.Wv(r)&&e+1=l.start+1&&(l=d._findNextWordOnLine(e,t,new a.y(o,l.end+1))),s=l?l.start+1:t.getLineMaxColumn(o);return new a.y(o,s)}static _moveWordPartRight(e,t){const i=t.lineNumber,o=e.getLineMaxColumn(i);if(t.column===o)return i1?u=1:(h--,u=n.getLineMaxColumn(h)):(g&&u<=g.end+1&&(g=d._findPreviousWordOnLine(i,n,new a.y(h,g.start+1))),g?u=g.end+1:u>1?u=1:(h--,u=n.getLineMaxColumn(h))),new l.Q(h,u,c.lineNumber,c.column)}static deleteInsideWord(e,t,i){if(!i.isEmpty())return i;const n=new a.y(i.positionLineNumber,i.positionColumn);return this._deleteInsideWordWhitespace(t,n)||this._deleteInsideWordDetermineDeleteRange(e,t,n)}static _charAtIsWhitespace(e,t){const i=e.charCodeAt(t);return 32===i||9===i}static _deleteInsideWordWhitespace(e,t){const i=e.getLineContent(t.lineNumber),n=i.length;if(0===n)return null;let o=Math.max(t.column-2,0);if(!this._charAtIsWhitespace(i,o))return null;let s=Math.min(t.column-1,n-1);if(!this._charAtIsWhitespace(i,s))return null;for(;o>0&&this._charAtIsWhitespace(i,o-1);)o--;for(;s+11?new l.Q(i.lineNumber-1,t.getLineMaxColumn(i.lineNumber-1),i.lineNumber,1):i.lineNumbere.start+1<=i.column&&i.column<=e.end+1,r=(e,t)=>(e=Math.min(e,i.column),t=Math.max(t,i.column),new l.Q(i.lineNumber,e,i.lineNumber,t)),a=e=>{let t=e.start+1,i=e.end+1,s=!1;for(;i-11&&this._charAtIsWhitespace(n,t-2);)t--;return r(t,i)},c=d._findPreviousWordOnLine(e,t,i);if(c&&s(c))return a(c);const h=d._findNextWordOnLine(e,t,i);return h&&s(h)?a(h):c&&h?r(c.end+1,h.start+1):c?r(c.start+1,c.end+1):h?r(h.start+1,h.end+1):r(1,o+1)}static _deleteWordPartLeft(e,t){if(!t.isEmpty())return t;const i=t.getPosition(),n=d._moveWordPartLeft(e,i);return new l.Q(i.lineNumber,i.column,n.lineNumber,n.column)}static _findFirstNonWhitespaceChar(e,t){const i=e.length;for(let n=t;n=p.start+1&&(p=d._findNextWordOnLine(i,n,new a.y(c,p.end+1))),p?h=p.start+1:hBoolean(e)))}},29895:(e,t,i)=>{"use strict";i.d(t,{MF:()=>g,d$:()=>u,mG:()=>f,vG:()=>_,vY:()=>v});var n=i(15365),o=i(28061),s=i(93702),r=i(19184),a=i(62549),l=i(57999);const d=()=>!0,c=()=>!1,h=e=>" "===e||"\t"===e;class u{static shouldRecreate(e){return e.hasChanged(146)||e.hasChanged(132)||e.hasChanged(37)||e.hasChanged(77)||e.hasChanged(79)||e.hasChanged(80)||e.hasChanged(6)||e.hasChanged(7)||e.hasChanged(11)||e.hasChanged(9)||e.hasChanged(10)||e.hasChanged(14)||e.hasChanged(129)||e.hasChanged(50)||e.hasChanged(92)||e.hasChanged(131)}constructor(e,t,i,n){var o;this.languageConfigurationService=n,this._cursorMoveConfigurationBrand=void 0,this._languageId=e;const s=i.options,r=s.get(146),a=s.get(50);this.readOnly=s.get(92),this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.stickyTabStops=s.get(117),this.lineHeight=a.lineHeight,this.typicalHalfwidthCharacterWidth=a.typicalHalfwidthCharacterWidth,this.pageSize=Math.max(1,Math.floor(r.height/this.lineHeight)-2),this.useTabStops=s.get(129),this.wordSeparators=s.get(132),this.emptySelectionClipboard=s.get(37),this.copyWithSyntaxHighlighting=s.get(25),this.multiCursorMergeOverlapping=s.get(77),this.multiCursorPaste=s.get(79),this.multiCursorLimit=s.get(80),this.autoClosingBrackets=s.get(6),this.autoClosingComments=s.get(7),this.autoClosingQuotes=s.get(11),this.autoClosingDelete=s.get(9),this.autoClosingOvertype=s.get(10),this.autoSurround=s.get(14),this.autoIndent=s.get(12),this.wordSegmenterLocales=s.get(131),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:this._getShouldAutoClose(e,this.autoClosingQuotes,!0),comment:this._getShouldAutoClose(e,this.autoClosingComments,!1),bracket:this._getShouldAutoClose(e,this.autoClosingBrackets,!1)},this.autoClosingPairs=this.languageConfigurationService.getLanguageConfiguration(e).getAutoClosingPairs();const l=this.languageConfigurationService.getLanguageConfiguration(e).getSurroundingPairs();if(l)for(const e of l)this.surroundingPairs[e.open]=e.close;const d=this.languageConfigurationService.getLanguageConfiguration(e).comments;this.blockCommentStartToken=null!==(o=null==d?void 0:d.blockCommentStartToken)&&void 0!==o?o:null}get electricChars(){var e;if(!this._electricChars){this._electricChars={};const t=null===(e=this.languageConfigurationService.getLanguageConfiguration(this._languageId).electricCharacter)||void 0===e?void 0:e.getElectricCharacters();if(t)for(const e of t)this._electricChars[e]=!0}return this._electricChars}onElectricCharacter(e,t,i){const n=(0,r.BQ)(t,i-1),o=this.languageConfigurationService.getLanguageConfiguration(n.languageId).electricCharacter;return o?o.onElectricCharacter(e,n,i-n.firstCharOffset):null}normalizeIndentation(e){return(0,l.P)(e,this.indentSize,this.insertSpaces)}_getShouldAutoClose(e,t,i){switch(t){case"beforeWhitespace":return h;case"languageDefined":return this._getLanguageDefinedShouldAutoClose(e,i);case"always":return d;case"never":return c}}_getLanguageDefinedShouldAutoClose(e,t){const i=this.languageConfigurationService.getLanguageConfiguration(e).getAutoCloseBeforeSet(t);return e=>-1!==i.indexOf(e)}visibleColumnFromColumn(e,t){return a.A.visibleColumnFromColumn(e.getLineContent(t.lineNumber),t.column,this.tabSize)}columnFromVisibleColumn(e,t,i){const n=a.A.columnFromVisibleColumn(e.getLineContent(t),i,this.tabSize),o=e.getLineMinColumn(t);if(ns?s:n}}class g{static fromModelState(e){return new p(e)}static fromViewState(e){return new m(e)}static fromModelSelection(e){const t=s.L.liftSelection(e),i=new f(o.Q.fromPositions(t.getSelectionStart()),0,0,t.getPosition(),0);return g.fromModelState(i)}static fromModelSelections(e){const t=[];for(let i=0,n=e.length;i{"use strict";i.d(t,{$8:()=>a,SL:()=>r,_3:()=>l,aY:()=>c,uY:()=>d});var n=i(13338),o=i(94327),s=i(72532);class r{static trivial(e,t){return new r([new a(s.L.ofLength(e.length),s.L.ofLength(t.length))],!1)}static trivialTimedOut(e,t){return new r([new a(s.L.ofLength(e.length),s.L.ofLength(t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class a{static invert(e,t){const i=[];return(0,n.pN)(e,((e,n)=>{i.push(a.fromOffsetPairs(e?e.getEndExclusives():l.zero,n?n.getStarts():new l(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),i}static fromOffsetPairs(e,t){return new a(new s.L(e.offset1,t.offset1),new s.L(e.offset2,t.offset2))}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new a(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new a(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new a(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new a(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new a(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),i=this.seq2Range.intersect(e.seq2Range);if(t&&i)return new a(t,i)}getStarts(){return new l(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new l(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class l{constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new l(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}l.zero=new l(0,0),l.max=new l(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class d{isValid(){return!0}}d.instance=new d;class c{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new o.D7("timeout must be positive")}isValid(){return!(Date.now()-this.startTime{"use strict";i.d(t,{m:()=>r});var n=i(72532),o=i(75090),s=i(74550);class r{compute(e,t,i=o.uY.instance,r){if(0===e.length||0===t.length)return o.SL.trivial(e,t);const a=new s.ew(e.length,t.length),l=new s.ew(e.length,t.length),d=new s.ew(e.length,t.length);for(let n=0;n0&&s>0&&3===l.get(n-1,s-1)&&(u+=d.get(n-1,s-1)),u+=r?r(n,s):1):u=-1;const g=Math.max(c,h,u);if(g===u){const e=n>0&&s>0?d.get(n-1,s-1):0;d.set(n,s,e+1),l.set(n,s,3)}else g===c?(d.set(n,s,0),l.set(n,s,1)):g===h&&(d.set(n,s,0),l.set(n,s,2));a.set(n,s,g)}const c=[];let h=e.length,u=t.length;function g(e,t){e+1===h&&t+1===u||c.push(new o.$8(new n.L(e+1,h),new n.L(t+1,u))),h=e,u=t}let p=e.length-1,m=t.length-1;for(;p>=0&&m>=0;)3===l.get(p,m)?(g(p,m),p--,m--):1===l.get(p,m)?p--:m--;return g(-1,-1),c.reverse(),new o.SL(c,!1)}}},7298:(e,t,i)=>{"use strict";i.d(t,{f:()=>s});var n=i(72532),o=i(75090);class s{compute(e,t,i=o.uY.instance){if(0===e.length||0===t.length)return o.SL.trivial(e,t);const s=e,d=t;function c(e,t){for(;es.length||l>d.length)continue;const h=c(a,l);u.set(p,h);const m=a===n?g.get(p+1):g.get(p-1);if(g.set(p,h!==a?new r(m,a,l,h-a):m),u.get(p)===s.length&&u.get(p)-p===d.length)break e}}let m=g.get(p);const f=[];let v=s.length,_=d.length;for(;;){const e=m?m.x+m.length:0,t=m?m.y+m.length:0;if(e===v&&t===_||f.push(new o.$8(new n.L(e,v),new n.L(t,_))),!m)break;v=m.x,_=m.y,m=m.prev}return f.reverse(),new o.SL(f,!1)}}class r{constructor(e,t,i,n){this.prev=e,this.x=t,this.y=i,this.length=n}}class a{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if((e=-e-1)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class l{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}},63556:(e,t,i)=>{"use strict";i.d(t,{y:()=>g});var n=i(75090),o=i(39331),s=i(13338),r=i(97393),a=i(27992),l=i(79955),d=i(72532),c=i(57413),h=i(74550),u=i(7298);function g(e,t,i,n,d,c){let{moves:u,excludedChanges:g}=function(e,t,i,n){const s=[],r=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new h._q(e.original,t,e))),a=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new h._q(e.modified,i,e)))),l=new Set;for(const e of r){let t,i=-1;for(const n of a){const o=e.computeSimilarity(n);o>i&&(i=o,t=n)}if(i>.9&&t&&(a.delete(t),s.push(new o.WL(e.range,t.range)),l.add(e.source),l.add(t.source)),!n.isValid())return{moves:s,excludedChanges:l}}return{moves:s,excludedChanges:l}}(e,t,i,c);if(!c.isValid())return[];const m=function(e,t,i,n,d,c){const h=[],u=new a.db;for(const i of e)for(let e=i.original.startLineNumber;ee.modified.startLineNumber),s.U9));for(const t of e){let e=[];for(let n=t.modified.startLineNumber;n{for(const i of e)if(i.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&i.modifiedLineRange.endLineNumberExclusive+1===o.endLineNumberExclusive)return i.originalLineRange=new l.M(i.originalLineRange.startLineNumber,t.endLineNumberExclusive),i.modifiedLineRange=new l.M(i.modifiedLineRange.startLineNumber,o.endLineNumberExclusive),void s.push(i);const i={modifiedLineRange:o,originalLineRange:t};g.push(i),s.push(i)})),e=s}if(!c.isValid())return[]}g.sort((0,s.Hw)((0,s.VE)((e=>e.modifiedLineRange.length),s.U9)));const m=new l.S,f=new l.S;for(const e of g){const t=e.modifiedLineRange.startLineNumber-e.originalLineRange.startLineNumber,i=m.subtractFrom(e.modifiedLineRange),n=f.subtractFrom(e.originalLineRange).getWithDelta(t),s=i.getIntersection(n);for(const e of s.ranges){if(e.length<3)continue;const i=e,n=e.delta(-t);h.push(new o.WL(n,i)),m.addRange(i),f.addRange(n)}}h.sort((0,s.VE)((e=>e.original.startLineNumber),s.U9));const v=new r.vJ(e);for(let t=0;te.original.startLineNumber<=i.original.startLineNumber)),a=(0,r.lx)(e,(e=>e.modified.startLineNumber<=i.modified.startLineNumber)),u=Math.max(i.original.startLineNumber-s.original.startLineNumber,i.modified.startLineNumber-a.modified.startLineNumber),g=v.findLastMonotonous((e=>e.original.startLineNumbere.modified.startLineNumbern.length||t>d.length)break;if(m.contains(t)||f.contains(e))break;if(!p(n[e-1],d[t-1],c))break}for(w>0&&(f.addRange(new l.M(i.original.startLineNumber-w,i.original.startLineNumber)),m.addRange(new l.M(i.modified.startLineNumber-w,i.modified.startLineNumber))),y=0;yn.length||t>d.length)break;if(m.contains(t)||f.contains(e))break;if(!p(n[e-1],d[t-1],c))break}y>0&&(f.addRange(new l.M(i.original.endLineNumberExclusive,i.original.endLineNumberExclusive+y)),m.addRange(new l.M(i.modified.endLineNumberExclusive,i.modified.endLineNumberExclusive+y))),(w>0||y>0)&&(h[t]=new o.WL(new l.M(i.original.startLineNumber-w,i.original.endLineNumberExclusive+y),new l.M(i.modified.startLineNumber-w,i.modified.endLineNumberExclusive+y)))}return h}(e.filter((e=>!g.has(e))),n,d,t,i,c);return(0,s.E4)(u,m),u=function(e){if(0===e.length)return e;e.sort((0,s.VE)((e=>e.original.startLineNumber),s.U9));const t=[e[0]];for(let i=1;i=0&&r>=0&&s+r<=2?t[t.length-1]=n.join(o):t.push(o)}return t}(u),u=u.filter((e=>{const i=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return i.join("\n").length>=15&&function(e,t){let i=0;for(const t of e)t.length>=2&&i++;return i}(i)>=2})),u=function(e,t){const i=new r.vJ(e);return t=t.filter((t=>(i.findLastMonotonous((e=>e.original.startLineNumbere.modified.startLineNumber300&&t.length>300)return!1;const o=(new u.f).compute(new c.T([e],new d.L(0,1),!1),new c.T([t],new d.L(0,1),!1),i);let s=0;const r=n.$8.invert(o.diffs,e.length);for(const t of r)t.seq1Range.forEach((t=>{(0,h.xC)(e.charCodeAt(t))||s++}));const a=function(t){let i=0;for(let n=0;nt.length?e:t);return s/a>.6&&a>10}},2205:(e,t,i)=>{"use strict";i.d(t,{D8:()=>v});var n=i(13338),o=i(87110),s=i(79955),r=i(72532),a=i(28061),l=i(75090),d=i(54269),c=i(7298),h=i(63556),u=i(52542),g=i(31920),p=i(57413),m=i(23837),f=i(39331);class v{constructor(){this.dynamicProgrammingDiffing=new d.m,this.myersDiffingAlgorithm=new c.f}computeDiff(e,t,i){if(e.length<=1&&(0,n.aI)(e,t,((e,t)=>e===t)))return new m.p([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new m.p([new f.wm(new s.M(1,e.length+1),new s.M(1,t.length+1),[new f.q6(new a.Q(1,1,e.length,e[e.length-1].length+1),new a.Q(1,1,t.length,t[t.length-1].length+1))])],[],!1);const d=0===i.maxComputationTimeMs?l.uY.instance:new l.aY(i.maxComputationTimeMs),c=!i.ignoreTrimWhitespace,h=new Map;function p(e){let t=h.get(e);return void 0===t&&(t=h.size,h.set(e,t)),t}const v=e.map((e=>p(e.trim()))),b=t.map((e=>p(e.trim()))),w=new g.u(v,e),y=new g.u(b,t),C=(()=>w.length+y.length<1700?this.dynamicProgrammingDiffing.compute(w,y,d,((i,n)=>e[i]===t[n]?0===t[n].length?.1:1+Math.log(1+t[n].length):.99)):this.myersDiffingAlgorithm.compute(w,y,d))();let k=C.diffs,S=C.hitTimeout;k=(0,u.NC)(w,y,k),k=(0,u.X5)(w,y,k);const x=[],L=i=>{if(c)for(let n=0;ni.seq1Range.start-D==i.seq2Range.start-E)),L(i.seq1Range.start-D),D=i.seq1Range.endExclusive,E=i.seq2Range.endExclusive;const n=this.refineDiff(e,t,i,d,c);n.hitTimeout&&(S=!0);for(const e of n.mappings)x.push(e)}L(e.length-D);const I=_(x,e,t);let N=[];return i.computeMoves&&(N=this.computeMoves(I,e,t,v,b,d,c)),(0,o.Ft)((()=>{function i(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const i=t[e.lineNumber-1];return!(e.column<1||e.column>i.length+1)}function n(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1||e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(const o of I){if(!o.innerChanges)return!1;for(const n of o.innerChanges)if(!(i(n.modifiedRange.getStartPosition(),t)&&i(n.modifiedRange.getEndPosition(),t)&&i(n.originalRange.getStartPosition(),e)&&i(n.originalRange.getEndPosition(),e)))return!1;if(!n(o.modified,t)||!n(o.original,e))return!1}return!0})),new m.p(I,N,S)}computeMoves(e,t,i,n,o,s,r){return(0,h.y)(e,t,i,n,o,s).map((e=>{const n=_(this.refineDiff(t,i,new l.$8(e.original.toOffsetRange(),e.modified.toOffsetRange()),s,r).mappings,t,i,!0);return new m.t(e,n)}))}refineDiff(e,t,i,n,o){const s=new p.T(e,i.seq1Range,o),r=new p.T(t,i.seq2Range,o),a=s.length+r.length<500?this.dynamicProgrammingDiffing.compute(s,r,n):this.myersDiffingAlgorithm.compute(s,r,n);let l=a.diffs;return l=(0,u.NC)(s,r,l),l=(0,u.Lk)(s,r,l),l=(0,u.sq)(s,r,l),l=(0,u.Rl)(s,r,l),{mappings:l.map((e=>new f.q6(s.translateRange(e.seq1Range),r.translateRange(e.seq2Range)))),hitTimeout:a.hitTimeout}}}function _(e,t,i,r=!1){const a=[];for(const o of(0,n.n)(e.map((e=>function(e,t,i){let n=0,o=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+n<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+n<=e.modifiedRange.endLineNumber&&(o=-1),e.modifiedRange.startColumn-1>=i[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+o&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+o&&(n=1);const r=new s.M(e.originalRange.startLineNumber+n,e.originalRange.endLineNumber+1+o),a=new s.M(e.modifiedRange.startLineNumber+n,e.modifiedRange.endLineNumber+1+o);return new f.wm(r,a,[e])}(e,t,i))),((e,t)=>e.original.overlapOrTouch(t.original)||e.modified.overlapOrTouch(t.modified)))){const e=o[0],t=o[o.length-1];a.push(new f.wm(e.original.join(t.original),e.modified.join(t.modified),o.map((e=>e.innerChanges[0]))))}return(0,o.Ft)((()=>{if(!r&&a.length>0){if(a[0].modified.startLineNumber!==a[0].original.startLineNumber)return!1;if(i.length-a[a.length-1].modified.endLineNumberExclusive!=t.length-a[a.length-1].original.endLineNumberExclusive)return!1}return(0,o.Xo)(a,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive==t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive{"use strict";i.d(t,{Lk:()=>c,NC:()=>r,Rl:()=>u,X5:()=>h,sq:()=>d});var n=i(13338),o=i(72532),s=i(75090);function r(e,t,i){let n=i;return n=a(e,t,n),n=a(e,t,n),n=function(e,t,i){if(!e.getBoundaryScore||!t.getBoundaryScore)return i;for(let n=0;n0?i[n-1]:void 0,r=i[n],a=n+10&&(l=l.delta(d))}r.push(l)}return n.length>0&&r.push(n[n.length-1]),r}function l(e,t,i,n,o){let s=1;for(;e.seq1Range.start-s>=n.start&&e.seq2Range.start-s>=o.start&&i.isStronglyEqual(e.seq2Range.start-s,e.seq2Range.endExclusive-s)&&s<100;)s++;s--;let r=0;for(;e.seq1Range.start+rl&&(l=d,a=n)}return e.delta(a)}function d(e,t,i){const n=[];for(const e of i){const t=n[n.length-1];t&&(e.seq1Range.start-t.seq1Range.endExclusive<=2||e.seq2Range.start-t.seq2Range.endExclusive<=2)?n[n.length-1]=new s.$8(t.seq1Range.join(e.seq1Range),t.seq2Range.join(e.seq2Range)):n.push(e)}return n}function c(e,t,i){const n=s.$8.invert(i,e.length),o=[];let r=new s._3(0,0);function a(i,a){if(i.offset10;){const i=n[0];if(!i.seq1Range.intersects(c.seq1Range)&&!i.seq2Range.intersects(c.seq2Range))break;const o=e.findWordContaining(i.seq1Range.start),r=t.findWordContaining(i.seq2Range.start),a=new s.$8(o,r),l=a.intersect(i);if(u+=l.seq1Range.length,g+=l.seq2Range.length,c=c.join(a),!(c.seq1Range.endExclusive>=i.seq1Range.endExclusive))break;n.shift()}u+g<2*(c.seq1Range.length+c.seq2Range.length)/3&&o.push(c),r=c.getEndExclusives()}for(;n.length>0;){const e=n.shift();e.seq1Range.isEmpty||(a(e.getStarts(),e),a(e.getEndExclusives().delta(-1),e))}return function(e,t){const i=[];for(;e.length>0||t.length>0;){const n=e[0],o=t[0];let s;s=n&&(!o||n.seq1Range.start0&&i[i.length-1].seq1Range.endExclusive>=s.seq1Range.start?i[i.length-1]=i[i.length-1].join(s):i.push(s)}return i}(i,o)}function h(e,t,i){let n=i;if(0===n.length)return n;let s,r=0;do{s=!1;const a=[n[0]];for(let l=1;l5||i.seq1Range.length+i.seq2Range.length>5)}h(c,d)?(s=!0,a[a.length-1]=a[a.length-1].join(d)):a.push(d)}n=a}while(r++<10&&s);return n}function u(e,t,i){let r=i;if(0===r.length)return r;let a,l=0;do{a=!1;const c=[r[0]];for(let h=1;h5||s.length>500)return!1;const r=e.getText(s).trim();if(r.length>20||r.split(/\r\n|\r|\n/).length>1)return!1;const a=e.countLinesIn(i.seq1Range),l=i.seq1Range.length,d=t.countLinesIn(i.seq2Range),c=i.seq2Range.length,h=e.countLinesIn(n.seq1Range),p=n.seq1Range.length,m=t.countLinesIn(n.seq2Range),f=n.seq2Range.length;function v(e){return Math.min(e,130)}return Math.pow(Math.pow(v(40*a+l),1.5)+Math.pow(v(40*d+c),1.5),1.5)+Math.pow(Math.pow(v(40*h+p),1.5)+Math.pow(v(40*m+f),1.5),1.5)>74184.96480721243}p(g,u)?(a=!0,c[c.length-1]=c[c.length-1].join(u)):c.push(u)}r=c}while(l++<10&&a);const d=[];return(0,n.kj)(r,((t,i,n)=>{let r=i;function a(e){return e.length>0&&e.trim().length<=3&&i.seq1Range.length+i.seq2Range.length>100}const l=e.extendToFullLines(i.seq1Range),c=e.getText(new o.L(l.start,i.seq1Range.start));a(c)&&(r=r.deltaStart(-c.length));const h=e.getText(new o.L(i.seq1Range.endExclusive,l.endExclusive));a(h)&&(r=r.deltaEnd(h.length));const u=s.$8.fromOffsetPairs(t?t.getEndExclusives():s._3.zero,n?n.getStarts():s._3.max),g=r.intersect(u);d.length>0&&g.getStarts().equals(d[d.length-1].getEndExclusives())?d[d.length-1]=d[d.length-1].join(g):d.push(g)})),d}},31920:(e,t,i)=>{"use strict";i.d(t,{u:()=>n});class n{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((0===e?0:o(this.lines[e-1]))+(e===this.lines.length?0:o(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function o(e){let t=0;for(;t{"use strict";i.d(t,{T:()=>l});var n=i(97393),o=i(72532),s=i(15365),r=i(28061),a=i(74550);class l{constructor(e,t,i){this.lines=e,this.considerWhitespaceChanges=i,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let n=!1;t.start>0&&t.endExclusive>=e.length&&(t=new o.L(t.start-1,t.endExclusive),n=!0),this.lineRange=t,this.firstCharOffsetByLine[0]=0;for(let t=this.lineRange.start;tString.fromCharCode(e))).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const t=u(e>0?this.elements[e-1]:-1),i=u(et<=e));return new s.y(this.lineRange.start+t+1,e-this.firstCharOffsetByLine[t]+this.additionalOffsetByLine[t]+1)}translateRange(e){return r.Q.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!d(this.elements[e]))return;let t=e;for(;t>0&&d(this.elements[t-1]);)t--;let i=e;for(;it<=e.start)))&&void 0!==t?t:0,r=null!==(i=(0,n.XP)(this.firstCharOffsetByLine,(t=>e.endExclusive<=t)))&&void 0!==i?i:this.elements.length;return new o.L(s,r)}}function d(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const c={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function h(e){return c[e]}function u(e){return 10===e?8:13===e?7:(0,a.xC)(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}},74550:(e,t,i)=>{"use strict";i.d(t,{_q:()=>s,ew:()=>n,xC:()=>o});class n{constructor(e,t){this.width=e,this.height=t,this.array=[],this.array=new Array(e*t)}get(e,t){return this.array[e+t*this.width]}set(e,t,i){this.array[e+t*this.width]=i}}function o(e){return 32===e||9===e}class s{static getKey(e){let t=this.chrKeys.get(e);return void 0===t&&(t=this.chrKeys.size,this.chrKeys.set(e,t)),t}constructor(e,t,i){this.range=e,this.lines=t,this.source=i,this.histogram=[];let n=0;for(let i=e.startLineNumber-1;i{"use strict";i.d(t,{h:()=>f,n:()=>c});var n=i(6341),o=i(23837),s=i(39331),r=i(16844),a=i(28061),l=i(87110),d=i(79955);class c{computeDiff(e,t,i){var n;const r=new f(e,t,{maxComputationTime:i.maxComputationTimeMs,shouldIgnoreTrimWhitespace:i.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),c=[];let h=null;for(const e of r.changes){let t,i;t=0===e.originalEndLineNumber?new d.M(e.originalStartLineNumber+1,e.originalStartLineNumber+1):new d.M(e.originalStartLineNumber,e.originalEndLineNumber+1),i=0===e.modifiedEndLineNumber?new d.M(e.modifiedStartLineNumber+1,e.modifiedStartLineNumber+1):new d.M(e.modifiedStartLineNumber,e.modifiedEndLineNumber+1);let o=new s.wm(t,i,null===(n=e.charChanges)||void 0===n?void 0:n.map((e=>new s.q6(new a.Q(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new a.Q(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));h&&(h.modified.endLineNumberExclusive!==o.modified.startLineNumber&&h.original.endLineNumberExclusive!==o.original.startLineNumber||(o=new s.wm(h.original.join(o.original),h.modified.join(o.modified),h.innerChanges&&o.innerChanges?h.innerChanges.concat(o.innerChanges):void 0),c.pop())),c.push(o),h=o}return(0,l.Ft)((()=>(0,l.Xo)(c,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive==t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class p{constructor(e,t,i,n,o,s,r,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=i,this.originalEndColumn=n,this.modifiedStartLineNumber=o,this.modifiedStartColumn=s,this.modifiedEndLineNumber=r,this.modifiedEndColumn=a}static createFromDiffChange(e,t,i){const n=t.getStartLineNumber(e.originalStart),o=t.getStartColumn(e.originalStart),s=t.getEndLineNumber(e.originalStart+e.originalLength-1),r=t.getEndColumn(e.originalStart+e.originalLength-1),a=i.getStartLineNumber(e.modifiedStart),l=i.getStartColumn(e.modifiedStart),d=i.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),c=i.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new p(n,o,s,r,a,l,d,c)}}class m{constructor(e,t,i,n,o){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=i,this.modifiedEndLineNumber=n,this.charChanges=o}static createFromDiffResult(e,t,i,n,o,s,r){let a,l,d,c,u;if(0===t.originalLength?(a=i.getStartLineNumber(t.originalStart)-1,l=0):(a=i.getStartLineNumber(t.originalStart),l=i.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(d=n.getStartLineNumber(t.modifiedStart)-1,c=0):(d=n.getStartLineNumber(t.modifiedStart),c=n.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),s&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&o()){const s=i.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=n.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(s.getElements().length>0&&a.getElements().length>0){let e=h(s,a,o,!0).changes;r&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let i=t[0];for(let n=1,o=e.length;n1&&r>1&&e.charCodeAt(i-2)===t.charCodeAt(r-2);)i--,r--;(i>1||r>1)&&this._pushTrimWhitespaceCharChange(n,o+1,1,i,s+1,1,r)}{let i=_(e,1),r=_(t,1);const a=e.length+1,l=t.length+1;for(;i!0;const t=Date.now();return()=>Date.now()-t{"use strict";i.d(t,{p:()=>n,t:()=>o});class n{constructor(e,t,i){this.changes=e,this.moves=t,this.hitTimeout=i}}class o{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}},39331:(e,t,i)=>{"use strict";i.d(t,{WL:()=>a,q6:()=>d,wm:()=>l});var n=i(94327),o=i(79955),s=i(28061),r=i(84941);class a{static inverse(e,t,i){const n=[];let s=1,r=1;for(const t of e){const e=new a(new o.M(s,t.original.startLineNumber),new o.M(r,t.modified.startLineNumber));e.modified.isEmpty||n.push(e),s=t.original.endLineNumberExclusive,r=t.modified.endLineNumberExclusive}const l=new a(new o.M(s,t+1),new o.M(r,i+1));return l.modified.isEmpty||n.push(l),n}static clip(e,t,i){const n=[];for(const o of e){const e=o.original.intersect(t),s=o.modified.intersect(i);e&&!e.isEmpty&&s&&!s.isEmpty&&n.push(new a(e,s))}return n}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new a(this.modified,this.original)}join(e){return new a(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new d(e,t);if(1===this.original.startLineNumber||1===this.modified.startLineNumber){if(1!==this.modified.startLineNumber||1!==this.original.startLineNumber)throw new n.D7("not a valid diff");return new d(new s.Q(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new s.Q(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}return new d(new s.Q(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new s.Q(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}}class l extends a{static fromRangeMappings(e){const t=o.M.join(e.map((e=>o.M.fromRangeInclusive(e.originalRange)))),i=o.M.join(e.map((e=>o.M.fromRangeInclusive(e.modifiedRange))));return new l(t,i,e)}constructor(e,t,i){super(e,t),this.innerChanges=i}flip(){var e;return new l(this.modified,this.original,null===(e=this.innerChanges)||void 0===e?void 0:e.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new l(this.original,this.modified,[this.toRangeMapping()])}}class d{constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new d(this.modifiedRange,this.originalRange)}toTextEdit(e){const t=e.getValueOfRange(this.modifiedRange);return new r.WR(this.originalRange,t)}}},22595:(e,t,i)=>{"use strict";i.d(t,{f:()=>n});class n{constructor(e,t,i,n,o,s,r){this.id=e,this.label=t,this.alias=i,this.metadata=n,this._precondition=o,this._run=s,this._contextKeyService=r}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(e){return this.isSupported()?this._run(e):Promise.resolve(void 0)}}},12596:(e,t,i)=>{"use strict";i.d(t,{_:()=>n});const n={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"}},38122:(e,t,i)=>{"use strict";i.d(t,{R:()=>n});var n,o=i(3765),s=i(31540);!function(e){e.editorSimpleInput=new s.N1("editorSimpleInput",!1,!0),e.editorTextFocus=new s.N1("editorTextFocus",!1,o.k("editorTextFocus","Whether the editor text has focus (cursor is blinking)")),e.focus=new s.N1("editorFocus",!1,o.k("editorFocus","Whether the editor or an editor widget has focus (e.g. focus is in the find widget)")),e.textInputFocus=new s.N1("textInputFocus",!1,o.k("textInputFocus","Whether an editor or a rich text input has focus (cursor is blinking)")),e.readOnly=new s.N1("editorReadonly",!1,o.k("editorReadonly","Whether the editor is read-only")),e.inDiffEditor=new s.N1("inDiffEditor",!1,o.k("inDiffEditor","Whether the context is a diff editor")),e.isEmbeddedDiffEditor=new s.N1("isEmbeddedDiffEditor",!1,o.k("isEmbeddedDiffEditor","Whether the context is an embedded diff editor")),e.inMultiDiffEditor=new s.N1("inMultiDiffEditor",!1,o.k("inMultiDiffEditor","Whether the context is a multi diff editor")),e.multiDiffEditorAllCollapsed=new s.N1("multiDiffEditorAllCollapsed",void 0,o.k("multiDiffEditorAllCollapsed","Whether all files in multi diff editor are collapsed")),e.hasChanges=new s.N1("diffEditorHasChanges",!1,o.k("diffEditorHasChanges","Whether the diff editor has changes")),e.comparingMovedCode=new s.N1("comparingMovedCode",!1,o.k("comparingMovedCode","Whether a moved code block is selected for comparison")),e.accessibleDiffViewerVisible=new s.N1("accessibleDiffViewerVisible",!1,o.k("accessibleDiffViewerVisible","Whether the accessible diff viewer is visible")),e.diffEditorRenderSideBySideInlineBreakpointReached=new s.N1("diffEditorRenderSideBySideInlineBreakpointReached",!1,o.k("diffEditorRenderSideBySideInlineBreakpointReached","Whether the diff editor render side by side inline breakpoint is reached")),e.diffEditorInlineMode=new s.N1("diffEditorInlineMode",!1,o.k("diffEditorInlineMode","Whether inline mode is active")),e.diffEditorOriginalWritable=new s.N1("diffEditorOriginalWritable",!1,o.k("diffEditorOriginalWritable","Whether modified is writable in the diff editor")),e.diffEditorModifiedWritable=new s.N1("diffEditorModifiedWritable",!1,o.k("diffEditorModifiedWritable","Whether modified is writable in the diff editor")),e.diffEditorOriginalUri=new s.N1("diffEditorOriginalUri","",o.k("diffEditorOriginalUri","The uri of the original document")),e.diffEditorModifiedUri=new s.N1("diffEditorModifiedUri","",o.k("diffEditorModifiedUri","The uri of the modified document")),e.columnSelection=new s.N1("editorColumnSelection",!1,o.k("editorColumnSelection","Whether `editor.columnSelection` is enabled")),e.writable=e.readOnly.toNegated(),e.hasNonEmptySelection=new s.N1("editorHasSelection",!1,o.k("editorHasSelection","Whether the editor has text selected")),e.hasOnlyEmptySelection=e.hasNonEmptySelection.toNegated(),e.hasMultipleSelections=new s.N1("editorHasMultipleSelections",!1,o.k("editorHasMultipleSelections","Whether the editor has multiple selections")),e.hasSingleSelection=e.hasMultipleSelections.toNegated(),e.tabMovesFocus=new s.N1("editorTabMovesFocus",!1,o.k("editorTabMovesFocus","Whether `Tab` will move focus out of the editor")),e.tabDoesNotMoveFocus=e.tabMovesFocus.toNegated(),e.isInEmbeddedEditor=new s.N1("isInEmbeddedEditor",!1,!0),e.canUndo=new s.N1("canUndo",!1,!0),e.canRedo=new s.N1("canRedo",!1,!0),e.hoverVisible=new s.N1("editorHoverVisible",!1,o.k("editorHoverVisible","Whether the editor hover is visible")),e.hoverFocused=new s.N1("editorHoverFocused",!1,o.k("editorHoverFocused","Whether the editor hover is focused")),e.stickyScrollFocused=new s.N1("stickyScrollFocused",!1,o.k("stickyScrollFocused","Whether the sticky scroll is focused")),e.stickyScrollVisible=new s.N1("stickyScrollVisible",!1,o.k("stickyScrollVisible","Whether the sticky scroll is visible")),e.standaloneColorPickerVisible=new s.N1("standaloneColorPickerVisible",!1,o.k("standaloneColorPickerVisible","Whether the standalone color picker is visible")),e.standaloneColorPickerFocused=new s.N1("standaloneColorPickerFocused",!1,o.k("standaloneColorPickerFocused","Whether the standalone color picker is focused")),e.inCompositeEditor=new s.N1("inCompositeEditor",void 0,o.k("inCompositeEditor","Whether the editor is part of a larger editor (e.g. notebooks)")),e.notInCompositeEditor=e.inCompositeEditor.toNegated(),e.languageId=new s.N1("editorLangId","",o.k("editorLangId","The language identifier of the editor")),e.hasCompletionItemProvider=new s.N1("editorHasCompletionItemProvider",!1,o.k("editorHasCompletionItemProvider","Whether the editor has a completion item provider")),e.hasCodeActionsProvider=new s.N1("editorHasCodeActionsProvider",!1,o.k("editorHasCodeActionsProvider","Whether the editor has a code actions provider")),e.hasCodeLensProvider=new s.N1("editorHasCodeLensProvider",!1,o.k("editorHasCodeLensProvider","Whether the editor has a code lens provider")),e.hasDefinitionProvider=new s.N1("editorHasDefinitionProvider",!1,o.k("editorHasDefinitionProvider","Whether the editor has a definition provider")),e.hasDeclarationProvider=new s.N1("editorHasDeclarationProvider",!1,o.k("editorHasDeclarationProvider","Whether the editor has a declaration provider")),e.hasImplementationProvider=new s.N1("editorHasImplementationProvider",!1,o.k("editorHasImplementationProvider","Whether the editor has an implementation provider")),e.hasTypeDefinitionProvider=new s.N1("editorHasTypeDefinitionProvider",!1,o.k("editorHasTypeDefinitionProvider","Whether the editor has a type definition provider")),e.hasHoverProvider=new s.N1("editorHasHoverProvider",!1,o.k("editorHasHoverProvider","Whether the editor has a hover provider")),e.hasDocumentHighlightProvider=new s.N1("editorHasDocumentHighlightProvider",!1,o.k("editorHasDocumentHighlightProvider","Whether the editor has a document highlight provider")),e.hasDocumentSymbolProvider=new s.N1("editorHasDocumentSymbolProvider",!1,o.k("editorHasDocumentSymbolProvider","Whether the editor has a document symbol provider")),e.hasReferenceProvider=new s.N1("editorHasReferenceProvider",!1,o.k("editorHasReferenceProvider","Whether the editor has a reference provider")),e.hasRenameProvider=new s.N1("editorHasRenameProvider",!1,o.k("editorHasRenameProvider","Whether the editor has a rename provider")),e.hasSignatureHelpProvider=new s.N1("editorHasSignatureHelpProvider",!1,o.k("editorHasSignatureHelpProvider","Whether the editor has a signature help provider")),e.hasInlayHintsProvider=new s.N1("editorHasInlayHintsProvider",!1,o.k("editorHasInlayHintsProvider","Whether the editor has an inline hints provider")),e.hasDocumentFormattingProvider=new s.N1("editorHasDocumentFormattingProvider",!1,o.k("editorHasDocumentFormattingProvider","Whether the editor has a document formatting provider")),e.hasDocumentSelectionFormattingProvider=new s.N1("editorHasDocumentSelectionFormattingProvider",!1,o.k("editorHasDocumentSelectionFormattingProvider","Whether the editor has a document selection formatting provider")),e.hasMultipleDocumentFormattingProvider=new s.N1("editorHasMultipleDocumentFormattingProvider",!1,o.k("editorHasMultipleDocumentFormattingProvider","Whether the editor has multiple document formatting providers")),e.hasMultipleDocumentSelectionFormattingProvider=new s.N1("editorHasMultipleDocumentSelectionFormattingProvider",!1,o.k("editorHasMultipleDocumentSelectionFormattingProvider","Whether the editor has multiple document selection formatting providers"))}(n||(n={}))},90426:(e,t,i)=>{"use strict";i.d(t,{T:()=>s,x:()=>o});const n=[];function o(e){n.push(e)}function s(){return n.slice(0)}},15910:(e,t,i)=>{"use strict";i.d(t,{x:()=>n});class n{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return!!(1024&e)}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);const i=this.getFontStyle(e);return 1&i&&(t+=" mtki"),2&i&&(t+=" mtkb"),4&i&&(t+=" mtku"),8&i&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){const i=this.getForeground(e),n=this.getFontStyle(e);let o=`color: ${t[i]};`;1&n&&(o+="font-style: italic;"),2&n&&(o+="font-weight: bold;");let s="";return 4&n&&(s+=" underline"),8&n&&(s+=" line-through"),s&&(o+=`text-decoration:${s};`),o}static getPresentationFromMetadata(e){const t=this.getForeground(e),i=this.getFontStyle(e);return{foreground:t,italic:Boolean(1&i),bold:Boolean(2&i),underline:Boolean(4&i),strikethrough:Boolean(8&i)}}}},74403:(e,t,i)=>{"use strict";i.d(t,{f:()=>s});var n=i(83958),o=i(18019);function s(e,t,i,r,a,l){if(Array.isArray(e)){let n=0;for(const o of e){const e=s(o,t,i,r,a,l);if(10===e)return e;e>n&&(n=e)}return n}if("string"==typeof e)return r?"*"===e?5:e===i?10:0:0;if(e){const{language:s,pattern:d,scheme:c,hasAccessToAllModels:h,notebookType:u}=e;if(!r&&!h)return 0;u&&a&&(t=a);let g=0;if(c)if(c===t.scheme)g=10;else{if("*"!==c)return 0;g=5}if(s)if(s===i)g=10;else{if("*"!==s)return 0;g=Math.max(g,5)}if(u)if(u===l)g=10;else{if("*"!==u||void 0===l)return 0;g=Math.max(g,5)}if(d){let e;if(e="string"==typeof d?d:{...d,base:(0,o.S8)(d.base)},e!==t.fsPath&&!(0,n.YW)(e,t.fsPath))return 0;g=10}return g}return 0}},47317:(e,t,i)=>{"use strict";i.d(t,{$M:()=>m,FX:()=>r,GE:()=>v,HC:()=>o,Iu:()=>_,Kb:()=>l,M$:()=>n,OV:()=>C,PK:()=>w,WA:()=>a,YT:()=>k,dG:()=>E,gP:()=>y,lO:()=>L,ou:()=>p,qw:()=>s,r4:()=>x,rY:()=>f,sm:()=>I,uB:()=>S,v_:()=>D});var n,o,s,r,a,l,d=i(26048),c=i(37264),h=i(28061),u=i(72564),g=i(3765);class p{constructor(e,t,i){this.offset=e,this.type=t,this.language=i,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class m{constructor(e,t){this.tokens=e,this.endState=t,this._tokenizationResultBrand=void 0}}class f{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}!function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(n||(n={})),function(e){const t=new Map;t.set(0,d.W.symbolMethod),t.set(1,d.W.symbolFunction),t.set(2,d.W.symbolConstructor),t.set(3,d.W.symbolField),t.set(4,d.W.symbolVariable),t.set(5,d.W.symbolClass),t.set(6,d.W.symbolStruct),t.set(7,d.W.symbolInterface),t.set(8,d.W.symbolModule),t.set(9,d.W.symbolProperty),t.set(10,d.W.symbolEvent),t.set(11,d.W.symbolOperator),t.set(12,d.W.symbolUnit),t.set(13,d.W.symbolValue),t.set(15,d.W.symbolEnum),t.set(14,d.W.symbolConstant),t.set(15,d.W.symbolEnum),t.set(16,d.W.symbolEnumMember),t.set(17,d.W.symbolKeyword),t.set(27,d.W.symbolSnippet),t.set(18,d.W.symbolText),t.set(19,d.W.symbolColor),t.set(20,d.W.symbolFile),t.set(21,d.W.symbolReference),t.set(22,d.W.symbolCustomColor),t.set(23,d.W.symbolFolder),t.set(24,d.W.symbolTypeParameter),t.set(25,d.W.account),t.set(26,d.W.issues),e.toIcon=function(e){let i=t.get(e);return i||(console.info("No codicon found for CompletionItemKind "+e),i=d.W.symbolProperty),i};const i=new Map;i.set("method",0),i.set("function",1),i.set("constructor",2),i.set("field",3),i.set("variable",4),i.set("class",5),i.set("struct",6),i.set("interface",7),i.set("module",8),i.set("property",9),i.set("event",10),i.set("operator",11),i.set("unit",12),i.set("value",13),i.set("constant",14),i.set("enum",15),i.set("enum-member",16),i.set("enumMember",16),i.set("keyword",17),i.set("snippet",27),i.set("text",18),i.set("color",19),i.set("file",20),i.set("reference",21),i.set("customcolor",22),i.set("folder",23),i.set("type-parameter",24),i.set("typeParameter",24),i.set("account",25),i.set("issue",26),e.fromString=function(e,t){let n=i.get(e);return void 0!==n||t||(n=9),n}}(o||(o={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(s||(s={}));class v{constructor(e,t,i,n){this.range=e,this.text=t,this.completionKind=i,this.isSnippetText=n}equals(e){return h.Q.lift(this.range).equalsRange(e.range)&&this.text===e.text&&this.completionKind===e.completionKind&&this.isSnippetText===e.isSnippetText}}function _(e){return e&&c.r.isUri(e.uri)&&h.Q.isIRange(e.range)&&(h.Q.isIRange(e.originSelectionRange)||h.Q.isIRange(e.targetSelectionRange))}!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(r||(r={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(a||(a={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(l||(l={}));const b={17:(0,g.k)("Array","array"),16:(0,g.k)("Boolean","boolean"),4:(0,g.k)("Class","class"),13:(0,g.k)("Constant","constant"),8:(0,g.k)("Constructor","constructor"),9:(0,g.k)("Enum","enumeration"),21:(0,g.k)("EnumMember","enumeration member"),23:(0,g.k)("Event","event"),7:(0,g.k)("Field","field"),0:(0,g.k)("File","file"),11:(0,g.k)("Function","function"),10:(0,g.k)("Interface","interface"),19:(0,g.k)("Key","key"),5:(0,g.k)("Method","method"),1:(0,g.k)("Module","module"),2:(0,g.k)("Namespace","namespace"),20:(0,g.k)("Null","null"),15:(0,g.k)("Number","number"),18:(0,g.k)("Object","object"),24:(0,g.k)("Operator","operator"),3:(0,g.k)("Package","package"),6:(0,g.k)("Property","property"),14:(0,g.k)("String","string"),22:(0,g.k)("Struct","struct"),25:(0,g.k)("TypeParameter","type parameter"),12:(0,g.k)("Variable","variable")};function w(e,t){return(0,g.k)("symbolAriaLabel","{0} ({1})",e,b[t])}var y,C,k,S,x;!function(e){const t=new Map;t.set(0,d.W.symbolFile),t.set(1,d.W.symbolModule),t.set(2,d.W.symbolNamespace),t.set(3,d.W.symbolPackage),t.set(4,d.W.symbolClass),t.set(5,d.W.symbolMethod),t.set(6,d.W.symbolProperty),t.set(7,d.W.symbolField),t.set(8,d.W.symbolConstructor),t.set(9,d.W.symbolEnum),t.set(10,d.W.symbolInterface),t.set(11,d.W.symbolFunction),t.set(12,d.W.symbolVariable),t.set(13,d.W.symbolConstant),t.set(14,d.W.symbolString),t.set(15,d.W.symbolNumber),t.set(16,d.W.symbolBoolean),t.set(17,d.W.symbolArray),t.set(18,d.W.symbolObject),t.set(19,d.W.symbolKey),t.set(20,d.W.symbolNull),t.set(21,d.W.symbolEnumMember),t.set(22,d.W.symbolStruct),t.set(23,d.W.symbolEvent),t.set(24,d.W.symbolOperator),t.set(25,d.W.symbolTypeParameter),e.toIcon=function(e){let i=t.get(e);return i||(console.info("No codicon found for SymbolKind "+e),i=d.W.symbolProperty),i}}(y||(y={}));class L{static fromValue(e){switch(e){case"comment":return L.Comment;case"imports":return L.Imports;case"region":return L.Region}return new L(e)}constructor(e){this.value=e}}L.Comment=new L("comment"),L.Imports=new L("imports"),L.Region=new L("region"),function(e){e[e.AIGenerated=1]="AIGenerated"}(C||(C={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(k||(k={})),function(e){e.is=function(e){return!(!e||"object"!=typeof e)&&"string"==typeof e.id&&"string"==typeof e.title}}(S||(S={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(x||(x={}));class D{constructor(e){this.createSupport=e,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then((e=>{e&&e.dispose()}))}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const E=new u.d;var I;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(I||(I={}))},70645:(e,t,i)=>{"use strict";i.d(t,{$f:()=>a,MU:()=>l,Yb:()=>c,_t:()=>d,vn:()=>r});var n=i(16844),o=i(49550),s=i(1032);function r(e,t,i,r=!0,a){if(e<4)return null;const l=a.getLanguageConfiguration(t.tokenization.getLanguageId()).indentRulesSupport;if(!l)return null;const d=new s.no(t,l,a);if(i<=1)return{indentation:"",action:null};for(let e=i-1;e>0&&""===t.getLineContent(e);e--)if(1===e)return{indentation:"",action:null};const c=function(e,t,i){const n=e.tokenization.getLanguageIdAtPosition(t,0);if(t>1){let o,s=-1;for(o=t-1;o>=1;o--){if(e.tokenization.getLanguageIdAtPosition(o,0)!==n)return s;const t=e.getLineContent(o);if(!i.shouldIgnore(o)&&!/^\s+$/.test(t)&&""!==t)return o;s=o}}return-1}(t,i,d);if(c<0)return null;if(c<1)return{indentation:"",action:null};if(d.shouldIncrease(c)||d.shouldIndentNextLine(c)){const e=t.getLineContent(c);return{indentation:n.UU(e),action:o.l.Indent,line:c}}if(d.shouldDecrease(c)){const e=t.getLineContent(c);return{indentation:n.UU(e),action:null,line:c}}{if(1===c)return{indentation:n.UU(t.getLineContent(c)),action:null,line:c};const e=c-1,i=l.getIndentMetadata(t.getLineContent(e));if(!(3&i)&&4&i){let i=0;for(let t=e-1;t>0;t--)if(!d.shouldIndentNextLine(t)){i=t;break}return{indentation:n.UU(t.getLineContent(i+1)),action:null,line:i+1}}if(r)return{indentation:n.UU(t.getLineContent(c)),action:null,line:c};for(let e=c;e>0;e--){if(d.shouldIncrease(e))return{indentation:n.UU(t.getLineContent(e)),action:o.l.Indent,line:e};if(d.shouldIndentNextLine(e)){let i=0;for(let t=e-1;t>0;t--)if(!d.shouldIndentNextLine(e)){i=t;break}return{indentation:n.UU(t.getLineContent(i+1)),action:null,line:i+1}}if(d.shouldDecrease(e))return{indentation:n.UU(t.getLineContent(e)),action:null,line:e}}return{indentation:n.UU(t.getLineContent(1)),action:null,line:1}}}function a(e,t,i,a,l,d){if(e<4)return null;const c=d.getLanguageConfiguration(i);if(!c)return null;const h=d.getLanguageConfiguration(i).indentRulesSupport;if(!h)return null;const u=new s.no(t,h,d),g=r(e,t,a,void 0,d);if(g){const i=g.line;if(void 0!==i){let s=!0;for(let e=i;en===t?i:e.tokenization.getLineTokens(n),getLanguageId:()=>e.getLanguageId(),getLanguageIdAtPosition:(t,i)=>e.getLanguageIdAtPosition(t,i)},getLineContent:n=>n===t?i.getLineContent():e.getLineContent(n)}}(t,i.startLineNumber,g),f=(0,s.WR)(t,i.getStartPosition()),v=t.getLineContent(i.startLineNumber),_=n.UU(v),b=r(e,m,i.startLineNumber+1,void 0,l);if(!b){const e=f?_:p;return{beforeEnter:e,afterEnter:e}}let w=f?_:b.indentation;return b.action===o.l.Indent&&(w=a.shiftIndent(w)),c.shouldDecrease(u.getLineContent())&&(w=a.unshiftIndent(w)),{beforeEnter:f?_:p,afterEnter:w}}function d(e,t,i,a,l,d){const c=e.autoIndent;if(c<4)return null;if((0,s.WR)(t,i.getStartPosition()))return null;const h=t.getLanguageIdAtPosition(i.startLineNumber,i.startColumn),u=d.getLanguageConfiguration(h).indentRulesSupport;if(!u)return null;const g=new s.V(t,d).getProcessedTokenContextAroundRange(i),p=g.beforeRangeProcessedTokens.getLineContent(),m=g.afterRangeProcessedTokens.getLineContent(),f=p+m,v=p+a+m;if(!u.shouldDecrease(f)&&u.shouldDecrease(v)){const e=r(c,t,i.startLineNumber,!1,d);if(!e)return null;let n=e.indentation;return e.action!==o.l.Indent&&(n=l.unshiftIndent(n)),n}const _=i.startLineNumber-1;if(_>0){const o=t.getLineContent(_);if(u.shouldIndentNextLine(o)&&u.shouldIncrease(v)){const o=r(c,t,i.startLineNumber,!1,d),s=null==o?void 0:o.indentation;if(void 0!==s){const o=t.getLineContent(i.startLineNumber),r=n.UU(o),d=l.shiftIndent(s)===r,c=/^\s*$/.test(f),h=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(a),u=h&&h.length>0;if(d&&u&&c)return s}}}return null}function c(e,t,i){const n=i.getLanguageConfiguration(e.getLanguageId()).indentRulesSupport;return n?t<1||t>e.getLineCount()?null:n.getIndentMetadata(e.getLineContent(t)):null}},80794:(e,t,i)=>{"use strict";i.d(t,{h:()=>r});var n=i(49550),o=i(52394),s=i(1032);function r(e,t,i,r){t.tokenization.forceTokenization(i.startLineNumber);const a=t.getLanguageIdAtPosition(i.startLineNumber,i.startColumn),l=r.getLanguageConfiguration(a);if(!l)return null;const d=new s.V(t,r).getProcessedTokenContextAroundRange(i),c=d.previousLineProcessedTokens.getLineContent(),h=d.beforeRangeProcessedTokens.getLineContent(),u=d.afterRangeProcessedTokens.getLineContent(),g=l.onEnter(e,c,h,u);if(!g)return null;const p=g.indentAction;let m=g.appendText;const f=g.removeText||0;m?p===n.l.Indent&&(m="\t"+m):m=p===n.l.Indent||p===n.l.IndentOutdent?"\t":"";let v=(0,o.Cw)(t,i.startLineNumber,i.startColumn);return f&&(v=v.substring(0,v.length-f)),{indentAction:p,appendText:m,removeText:f,indentation:v}}},77922:(e,t,i)=>{"use strict";i.d(t,{L:()=>n});const n=(0,i(82399).u1)("languageService")},49550:(e,t,i)=>{"use strict";var n;i.d(t,{GB:()=>s,i3:()=>o,l:()=>n}),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(n||(n={}));class o{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,i=e.notIn.length;t{"use strict";i.d(t,{JZ:()=>N,Cw:()=>R});var n=i(2106),o=i(10998),s=i(16844),r=i(18782),a=i(49550);class l{constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map((e=>new a.i3(e))):e.brackets?this._autoClosingPairs=e.brackets.map((e=>new a.i3({open:e[0],close:e[1]}))):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new a.i3({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes="string"==typeof e.autoCloseBefore?e.autoCloseBefore:l.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets="string"==typeof e.autoCloseBefore?e.autoCloseBefore:l.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}l.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=";:.,=}])> \n\t",l.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS="'\"`;:.,=}])> \n\t";var d=i(13338),c=i(19184),h=i(1804);class u{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const i of t.close){const t=i.charAt(i.length-1);e.push(t)}return(0,d.dM)(e)}onElectricCharacter(e,t,i){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const n=t.findTokenIndexAtOffset(i-1);if((0,c.Yo)(t.getStandardTokenType(n)))return null;const o=this._richEditBrackets.reversedRegex,s=t.getLineContent().substring(0,i-1)+e,r=h.Fu.findPrevBracketInRange(o,1,s,0,s.length);if(!r)return null;const a=s.substring(r.startColumn-1,r.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[a])return null;const l=t.getActualLineContentBefore(r.startColumn-1);return/^\s*$/.test(l)?{matchOpenBracket:a}:null}}function g(e){return e.global&&(e.lastIndex=0),!0}class p{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&g(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&g(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&g(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&g(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}var m=i(94327);class f{constructor(e){(e=e||{}).brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach((e=>{const t=f._createOpenBracketRegExp(e[0]),i=f._createCloseBracketRegExp(e[1]);t&&i&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:i})})),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,i,n){if(e>=3)for(let e=0,o=this._regExpRules.length;e!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)))))return o.action}if(e>=2&&i.length>0&&n.length>0)for(let e=0,t=this._brackets.length;e=2&&i.length>0)for(let e=0,t=this._brackets.length;e{const t=new Set;return{info:new L(this,e,t),closing:t}})),o=new C.VV((e=>{const t=new Set,i=new Set;return{info:new D(this,e,t,i),opening:t,openingColorized:i}}));for(const[e,t]of i){const i=n.get(e),s=o.get(t);i.closing.add(s.info),s.opening.add(i.info)}const s=t.colorizedBracketPairs?S(t.colorizedBracketPairs):i.filter((e=>!("<"===e[0]&&">"===e[1])));for(const[e,t]of s){const i=n.get(e),s=o.get(t);i.closing.add(s.info),s.openingColorized.add(i.info),s.opening.add(i.info)}this._openingBrackets=new Map([...n.cachedValues].map((([e,t])=>[e,t.info]))),this._closingBrackets=new Map([...o.cachedValues].map((([e,t])=>[e,t.info])))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}getBracketRegExp(e){const t=Array.from([...this._openingBrackets.keys(),...this._closingBrackets.keys()]);return(0,h.xb)(t,e)}}function S(e){return e.filter((([e,t])=>""!==e&&""!==t))}class x{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class L extends x{constructor(e,t,i){super(e,t),this.openedBrackets=i,this.isOpeningBracket=!0}}class D extends x{constructor(e,t,i,n){super(e,t),this.openingBrackets=i,this.openingColorizedBrackets=n,this.isOpeningBracket=!1}closes(e){return e.config===this.config&&this.openingBrackets.has(e)}closesColorized(e){return e.config===this.config&&this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var E=function(e,t){return function(i,n){t(i,n,e)}};class I{constructor(e){this.languageId=e}affects(e){return!this.languageId||this.languageId===e}}const N=(0,v.u1)("languageConfigurationService");let M=class extends o.jG{constructor(e,t){super(),this.configurationService=e,this.languageService=t,this._registry=this._register(new W),this.onDidChangeEmitter=this._register(new n.vl),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const i=new Set(Object.values(A));this._register(this.configurationService.onDidChangeConfiguration((e=>{const t=e.change.keys.some((e=>i.has(e))),n=e.change.overrides.filter((([e,t])=>t.some((e=>i.has(e))))).map((([e])=>e));if(t)this.configurations.clear(),this.onDidChangeEmitter.fire(new I(void 0));else for(const e of n)this.languageService.isRegisteredLanguageId(e)&&(this.configurations.delete(e),this.onDidChangeEmitter.fire(new I(e)))}))),this._register(this._registry.onDidChange((e=>{this.configurations.delete(e.languageId),this.onDidChangeEmitter.fire(new I(e.languageId))})))}register(e,t,i){return this._registry.register(e,t,i)}getLanguageConfiguration(e){let t=this.configurations.get(e);return t||(t=function(e,t,i,n){let o=t.getLanguageConfiguration(e);if(!o){if(!n.isRegisteredLanguageId(e))return new H(e,{});o=new H(e,{})}const s=function(e,t){const i=t.getValue(A.brackets,{overrideIdentifier:e}),n=t.getValue(A.colorizedBracketPairs,{overrideIdentifier:e});return{brackets:T(i),colorizedBracketPairs:T(n)}}(o.languageId,i),r=O([o.underlyingConfig,s]);return new H(o.languageId,r)}(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,t)),t}};M=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([E(0,_.pG),E(1,b.L)],M);const A={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function T(e){if(Array.isArray(e))return e.map((e=>{if(Array.isArray(e)&&2===e.length)return[e[0],e[1]]})).filter((e=>!!e))}function R(e,t,i){const n=e.getLineContent(t);let o=s.UU(n);return o.length>i-1&&(o=o.substring(0,i-1)),o}class P{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const i=new F(e,t,++this._order);return this._entries.push(i),this._resolved=null,(0,o.s)((()=>{for(let e=0;ee.configuration))))}}function O(e){let t={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const i of e)t={comments:i.comments||t.comments,brackets:i.brackets||t.brackets,wordPattern:i.wordPattern||t.wordPattern,indentationRules:i.indentationRules||t.indentationRules,onEnterRules:i.onEnterRules||t.onEnterRules,autoClosingPairs:i.autoClosingPairs||t.autoClosingPairs,surroundingPairs:i.surroundingPairs||t.surroundingPairs,autoCloseBefore:i.autoCloseBefore||t.autoCloseBefore,folding:i.folding||t.folding,colorizedBracketPairs:i.colorizedBracketPairs||t.colorizedBracketPairs,__electricCharacterSupport:i.__electricCharacterSupport||t.__electricCharacterSupport};return t}class F{constructor(e,t,i){this.configuration=e,this.priority=t,this.order=i}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class B{constructor(e){this.languageId=e}}class W extends o.jG{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new n.vl),this.onDidChange=this._onDidChange.event,this._register(this.register(y.vH,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,i=0){let n=this._entries.get(e);n||(n=new P(e),this._entries.set(e,n));const s=n.register(t,i);return this._onDidChange.fire(new B(e)),(0,o.s)((()=>{s.dispose(),this._onDidChange.fire(new B(e))}))}getLanguageConfiguration(e){const t=this._entries.get(e);return(null==t?void 0:t.getResolvedConfiguration())||null}}class H{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new f(this.underlyingConfig):null,this.comments=H._handleComments(this.underlyingConfig),this.characterPair=new l(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||r.Ld,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new p(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new k(e,this.underlyingConfig)}getWordDefinition(){return(0,r.Io)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new h.az(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new u(this.brackets)),this._electricCharacter}onEnter(e,t,i,n){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,i,n):null}getAutoClosingPairs(){return new a.GB(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const i={};if(t.lineComment&&(i.lineCommentToken=t.lineComment),t.blockComment){const[e,n]=t.blockComment;i.blockCommentStartToken=e,i.blockCommentEndToken=n}return i}}(0,w.v)(N,M,1)},54957:(e,t,i)=>{"use strict";i.d(t,{W6:()=>l,vH:()=>d});var n=i(3765),o=i(2106),s=i(67167),r=i(53720),a=i(27142);const l=new class{constructor(){this._onDidChangeLanguages=new o.vl,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,i=this._languages.length;t{"use strict";i.d(t,{$H:()=>s,Lh:()=>r,r3:()=>o});var n=i(47317);const o=new class{clone(){return this}equals(e){return this===e}};function s(e,t){return new n.$M([new n.ou(0,"",e)],t)}function r(e,t){const i=new Uint32Array(2);return i[0]=0,i[1]=(32768|e|2<<24)>>>0,new n.rY(i,null===t?o:t)}},19184:(e,t,i)=>{"use strict";function n(e,t){const i=e.getCount(),n=e.findTokenIndexAtOffset(t),s=e.getLanguageId(n);let r=n;for(;r+10&&e.getLanguageId(a-1)===s;)a--;return new o(e,s,a,r+1,e.getStartOffset(a),e.getEndOffset(r))}i.d(t,{BQ:()=>n,Yo:()=>s});class o{constructor(e,t,i,n,o,s){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=i,this._lastTokenIndex=n,this.firstCharOffset=o,this._lastCharOffset=s,this.languageIdCodec=e.languageIdCodec}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getLineLength(){return this._lastCharOffset-this.firstCharOffset}getActualLineContentBefore(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}toIViewLineTokens(){return this._actual.sliceAndInflate(this.firstCharOffset,this._lastCharOffset,0)}}function s(e){return!!(3&e)}},1032:(e,t,i)=>{"use strict";i.d(t,{V:()=>a,WR:()=>d,no:()=>r});var n=i(16844),o=i(19184),s=i(57445);class r{constructor(e,t,i){this._indentRulesSupport=t,this._indentationLineProcessor=new l(e,i)}shouldIncrease(e,t){const i=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldIncrease(i)}shouldDecrease(e,t){const i=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldDecrease(i)}shouldIgnore(e,t){const i=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldIgnore(i)}shouldIndentNextLine(e,t){const i=this._indentationLineProcessor.getProcessedLine(e,t);return this._indentRulesSupport.shouldIndentNextLine(i)}}class a{constructor(e,t){this.model=e,this.indentationLineProcessor=new l(e,t)}getProcessedTokenContextAroundRange(e){return{beforeRangeProcessedTokens:this._getProcessedTokensBeforeRange(e),afterRangeProcessedTokens:this._getProcessedTokensAfterRange(e),previousLineProcessedTokens:this._getProcessedPreviousLineTokens(e)}}_getProcessedTokensBeforeRange(e){this.model.tokenization.forceTokenization(e.startLineNumber);const t=this.model.tokenization.getLineTokens(e.startLineNumber),i=(0,o.BQ)(t,e.startColumn-1);let n;if(d(this.model,e.getStartPosition())){const o=e.startColumn-1-i.firstCharOffset,s=i.firstCharOffset,r=s+o;n=t.sliceAndInflate(s,r,0)}else{const i=e.startColumn-1;n=t.sliceAndInflate(0,i,0)}return this.indentationLineProcessor.getProcessedTokens(n)}_getProcessedTokensAfterRange(e){const t=e.isEmpty()?e.getStartPosition():e.getEndPosition();this.model.tokenization.forceTokenization(t.lineNumber);const i=this.model.tokenization.getLineTokens(t.lineNumber),n=(0,o.BQ)(i,t.column-1),s=t.column-1-n.firstCharOffset,r=n.firstCharOffset+s,a=n.firstCharOffset+n.getLineLength(),l=i.sliceAndInflate(r,a,0);return this.indentationLineProcessor.getProcessedTokens(l)}_getProcessedPreviousLineTokens(e){this.model.tokenization.forceTokenization(e.startLineNumber);const t=this.model.tokenization.getLineTokens(e.startLineNumber),i=(0,o.BQ)(t,e.startColumn-1),n=s.f.createEmpty("",i.languageIdCodec),r=e.startLineNumber-1;if(0===r)return n;if(0!==i.firstCharOffset)return n;const a=(e=>{this.model.tokenization.forceTokenization(e);const t=this.model.tokenization.getLineTokens(e),i=this.model.getLineMaxColumn(e)-1;return(0,o.BQ)(t,i)})(r);if(i.languageId!==a.languageId)return n;const l=a.toIViewLineTokens();return this.indentationLineProcessor.getProcessedTokens(l)}}class l{constructor(e,t){this.model=e,this.languageConfigurationService=t}getProcessedLine(e,t){var i,o;null===(o=(i=this.model.tokenization).forceTokenization)||void 0===o||o.call(i,e);const s=this.model.tokenization.getLineTokens(e);let r=this.getProcessedTokens(s).getLineContent();return void 0!==t&&(r=((e,t)=>{const i=n.UU(e);return t+e.substring(i.length)})(r,t)),r}getProcessedTokens(e){const t=e.getLanguageId(0),i=this.languageConfigurationService.getLanguageConfiguration(t).bracketsNew.getBracketRegExp({global:!0}),n=[];return e.forEach((t=>{const o=e.getStandardTokenType(t);let s=e.getTokenText(t);(e=>2===e||3===e||1===e)(o)&&(s=s.replace(i,""));const r=e.getMetadata(t);n.push({text:s,metadata:r})})),s.f.createFromTextAndMetadata(n,e.languageIdCodec)}}function d(e,t){e.tokenization.forceTokenization(t.lineNumber);const i=e.tokenization.getLineTokens(t.lineNumber),n=(0,o.BQ)(i,t.column-1),s=0===n.firstCharOffset,r=i.getLanguageId(0)===n.languageId;return!s&&!r}},1804:(e,t,i)=>{"use strict";i.d(t,{Fu:()=>p,az:()=>a,xb:()=>u});var n=i(16844),o=i(54324),s=i(28061);class r{constructor(e,t,i,n,o,s){this._richEditBracketBrand=void 0,this.languageId=e,this.index=t,this.open=i,this.close=n,this.forwardRegex=o,this.reversedRegex=s,this._openSet=r._toSet(this.open),this._closeSet=r._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const i of e)t.add(i);return t}}class a{constructor(e,t){this._richEditBracketsBrand=void 0;const i=function(e){const t=e.length;e=e.map((e=>[e[0].toLowerCase(),e[1].toLowerCase()]));const i=[];for(let e=0;e{const[i,n]=e,[o,s]=t;return i===o||i===s||n===o||n===s},o=(e,n)=>{const o=Math.min(e,n),s=Math.max(e,n);for(let e=0;e0&&s.push({open:o,close:r})}return s}(t);this.brackets=i.map(((t,n)=>new r(e,n,t.open,t.close,function(e,t,i,n){let o=[];o=o.concat(e),o=o.concat(t);for(let e=0,t=o.length;e=0&&n.push(t);for(const t of s.close)t.indexOf(e)>=0&&n.push(t)}}function d(e,t){return e.length-t.length}function c(e){if(e.length<=1)return e;const t=[],i=new Set;for(const n of e)i.has(n)||(t.push(n),i.add(n));return t}function h(e){const t=/^[\w ]+$/.test(e);return e=n.bm(e),t?`\\b${e}\\b`:e}function u(e,t){const i=`(${e.map(h).join(")|(")})`;return n.OS(i,!0,t)}const g=function(){let e=null,t=null;return function(i){return e!==i&&(e=i,t=function(e){const t=new Uint16Array(e.length);let i=0;for(let n=e.length-1;n>=0;n--)t[i++]=e.charCodeAt(n);return o.b7().decode(t)}(e)),t}}();class p{static _findPrevBracketInText(e,t,i,n){const o=i.match(e);if(!o)return null;const r=i.length-(o.index||0),a=o[0].length,l=n+r;return new s.Q(t,l-a+1,t,l+1)}static findPrevBracketInRange(e,t,i,n,o){const s=g(i).substring(i.length-o,i.length-n);return this._findPrevBracketInText(e,t,s,n)}static findNextBracketInText(e,t,i,n){const o=i.match(e);if(!o)return null;const r=o.index||0,a=o[0].length;if(0===a)return null;const l=n+r;return new s.Q(t,l+1,t,l+1+a)}static findNextBracketInRange(e,t,i,n,o){const s=i.substring(n,o);return this.findNextBracketInText(e,t,s,n)}}},18676:(e,t,i)=>{"use strict";i.d(t,{TQ:()=>a,nh:()=>h});var n=i(94901);class o{constructor(e,t,i,n,o){this._parsedThemeRuleBrand=void 0,this.token=e,this.index=t,this.fontStyle=i,this.foreground=n,this.background=o}}const s=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/;class r{constructor(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}getId(e){if(null===e)return 0;const t=e.match(s);if(!t)throw new Error("Illegal value for token color: "+e);e=t[1].toUpperCase();let i=this._color2id.get(e);return i||(i=++this._lastColorId,this._color2id.set(e,i),this._id2color[i]=n.Q1.fromHex("#"+e),i)}getColorMap(){return this._id2color.slice(0)}}class a{static createFromRawTokenTheme(e,t){return this.createFromParsedTokenTheme(function(e){if(!e||!Array.isArray(e))return[];const t=[];let i=0;for(let n=0,s=e.length;n{const i=function(e,t){return et?1:0}(e.token,t.token);return 0!==i?i:e.index-t.index}));let i=0,n="000000",o="ffffff";for(;e.length>=1&&""===e[0].token;){const t=e.shift();-1!==t.fontStyle&&(i=t.fontStyle),null!==t.foreground&&(n=t.foreground),null!==t.background&&(o=t.background)}const s=new r;for(const e of t)s.getId(e);const l=s.getId(n),h=s.getId(o),u=new d(i,l,h),g=new c(u);for(let t=0,i=e.length;t>>0,this._cache.set(t,i)}return(i|e)>>>0}}const l=/\b(comment|string|regex|regexp)\b/;class d{constructor(e,t,i){this._themeTrieElementRuleBrand=void 0,this._fontStyle=e,this._foreground=t,this._background=i,this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}clone(){return new d(this._fontStyle,this._foreground,this._background)}acceptOverwrite(e,t,i){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==i&&(this._background=i),this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}}class c{constructor(e){this._themeTrieElementBrand=void 0,this._mainRule=e,this._children=new Map}match(e){if(""===e)return this._mainRule;const t=e.indexOf(".");let i,n;-1===t?(i=e,n=""):(i=e.substring(0,t),n=e.substring(t+1));const o=this._children.get(i);return void 0!==o?o.match(n):this._mainRule}insert(e,t,i,n){if(""===e)return void this._mainRule.acceptOverwrite(t,i,n);const o=e.indexOf(".");let s,r;-1===o?(s=e,r=""):(s=e.substring(0,o),r=e.substring(o+1));let a=this._children.get(s);void 0===a&&(a=new c(this._mainRule.clone()),this._children.set(s,a)),a.insert(r,t,i,n)}}function h(e){const t=[];for(let i=1,n=e.length;i{"use strict";i.d(t,{Yj:()=>l,s0:()=>d});var n=i(16844),o=i(57445),s=i(47317),r=i(97036);const a={getInitialState:()=>r.r3,tokenizeEncoded:(e,t,i)=>(0,r.Lh)(0,i)};async function l(e,t,i){if(!i)return c(t,e.languageIdCodec,a);const n=await s.dG.getOrCreate(i);return c(t,e.languageIdCodec,n||a)}function d(e,t,i,n,o,s,r){let a="
    ",l=n,d=0,c=!0;for(let h=0,u=t.getCount();h0;)r&&c?(g+=" ",c=!1):(g+=" ",c=!0),e--;break}case 60:g+="<",c=!1;break;case 62:g+=">",c=!1;break;case 38:g+="&",c=!1;break;case 0:g+="�",c=!1;break;case 65279:case 8232:case 8233:case 133:g+="�",c=!1;break;case 13:g+="​",c=!1;break;case 32:r&&c?(g+=" ",c=!1):(g+=" ",c=!0);break;default:g+=String.fromCharCode(t),c=!1}}if(a+=`${g}`,u>o||l>=o)break}return a+="
    ",a}function c(e,t,i){let s='
    ';const r=n.uz(e);let a=i.getInitialState();for(let e=0,l=r.length;e0&&(s+="
    ");const d=i.tokenizeEncoded(l,!0,a);o.f.convertToEndOffset(d.tokens,l.length);const c=new o.f(d.tokens,l,t).inflate();let h=0;for(let e=0,t=c.getCount();e${n.ih(l.substring(h,i))}`,h=i}a=d.endState}return s+="
    ",s}},66055:(e,t,i)=>{"use strict";i.d(t,{A5:()=>n,Dg:()=>l,F4:()=>u,L5:()=>h,VW:()=>s,Wo:()=>c,X2:()=>a,ZS:()=>o,nk:()=>d,vd:()=>g});var n,o,s,r=i(71386);!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(n||(n={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(o||(o={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(s||(s={}));class a{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(e){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,0|e.tabSize),"tabSize"===e.indentSize?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,0|e.indentSize),this._indentSizeIsTabSize=!1),this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace),this.bracketPairColorizationOptions=e.bracketPairColorizationOptions}equals(e){return this.tabSize===e.tabSize&&this._indentSizeIsTabSize===e._indentSizeIsTabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace&&(0,r.aI)(this.bracketPairColorizationOptions,e.bracketPairColorizationOptions)}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class l{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}function d(e){return e&&"function"==typeof e.read}class c{constructor(e,t,i,n,o,s){this.identifier=e,this.range=t,this.text=i,this.forceMoveMarkers=n,this.isAutoWhitespaceEdit=o,this._isTracked=s}}class h{constructor(e,t,i){this.regex=e,this.wordSeparators=t,this.simpleSearch=i}}class u{constructor(e,t,i){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=i}}function g(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},64651:(e,t,i)=>{"use strict";i.d(t,{Gc:()=>_,Nn:()=>l,Xw:()=>d,rh:()=>v,yF:()=>f});var n=i(94327),o=i(62549),s=i(34883),r=i(60756);class a{get length(){return this._length}constructor(e){this._length=e}}class l extends a{static create(e,t,i){let n=e.length;return t&&(n=(0,s.QB)(n,t.length)),i&&(n=(0,s.QB)(n,i.length)),new l(n,e,t,i,t?t.missingOpeningBracketIds:r.gV.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(e){switch(e){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const e=[];return e.push(this.openingBracket),this.child&&e.push(this.child),this.closingBracket&&e.push(this.closingBracket),e}constructor(e,t,i,n,o){super(e),this.openingBracket=t,this.child=i,this.closingBracket=n,this.missingOpeningBracketIds=o}canBeReused(e){return null!==this.closingBracket&&!e.intersects(this.missingOpeningBracketIds)}deepClone(){return new l(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(e,t){return this.child?this.child.computeMinIndentation((0,s.QB)(e,this.openingBracket.length),t):Number.MAX_SAFE_INTEGER}}class d extends a{static create23(e,t,i,n=!1){let o=e.length,r=e.missingOpeningBracketIds;if(e.listHeight!==t.listHeight)throw new Error("Invalid list heights");if(o=(0,s.QB)(o,t.length),r=r.merge(t.missingOpeningBracketIds),i){if(e.listHeight!==i.listHeight)throw new Error("Invalid list heights");o=(0,s.QB)(o,i.length),r=r.merge(i.missingOpeningBracketIds)}return n?new h(o,e.listHeight+1,e,t,i,r):new c(o,e.listHeight+1,e,t,i,r)}static getEmpty(){return new g(s.Vp,0,[],r.gV.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(e,t,i){super(e),this.listHeight=t,this._missingOpeningBracketIds=i,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const e=this.childrenLength;if(0===e)return;const t=this.getChild(e-1),i=4===t.kind?t.toMutable():t;return t!==i&&this.setChild(e-1,i),i}makeFirstElementMutable(){if(this.throwIfImmutable(),0===this.childrenLength)return;const e=this.getChild(0),t=4===e.kind?e.toMutable():e;return e!==t&&this.setChild(0,t),t}canBeReused(e){if(e.intersects(this.missingOpeningBracketIds))return!1;if(0===this.childrenLength)return!1;let t=this;for(;4===t.kind;){const e=t.childrenLength;if(0===e)throw new n.D7;t=t.getChild(e-1)}return t.canBeReused(e)}handleChildrenChanged(){this.throwIfImmutable();const e=this.childrenLength;let t=this.getChild(0).length,i=this.getChild(0).missingOpeningBracketIds;for(let n=1;n{"use strict";i.d(t,{W:()=>r,c:()=>s});var n=i(28061),o=i(34883);class s{static fromModelContentChanges(e){return e.map((e=>{const t=n.Q.lift(e.range);return new s((0,o.VL)(t.getStartPosition()),(0,o.VL)(t.getEndPosition()),(0,o.rR)(e.text))})).reverse()}constructor(e,t,i){this.startOffset=e,this.endOffset=t,this.newLength=i}toString(){return`[${(0,o.l4)(this.startOffset)}...${(0,o.l4)(this.endOffset)}) -> ${(0,o.l4)(this.newLength)}`}}class r{constructor(e){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=e.map((e=>a.from(e)))}getOffsetBeforeChange(e){return this.adjustNextEdit(e),this.translateCurToOld(e)}getDistanceToNextChange(e){this.adjustNextEdit(e);const t=this.edits[this.nextEditIdx],i=t?this.translateOldToCur(t.offsetObj):null;return null===i?null:(0,o.MS)(e,i)}translateOldToCur(e){return e.lineCount===this.deltaLineIdxInOld?(0,o.qe)(e.lineCount+this.deltaOldToNewLineCount,e.columnCount+this.deltaOldToNewColumnCount):(0,o.qe)(e.lineCount+this.deltaOldToNewLineCount,e.columnCount)}translateCurToOld(e){const t=(0,o.l4)(e);return t.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?(0,o.qe)(t.lineCount-this.deltaOldToNewLineCount,t.columnCount-this.deltaOldToNewColumnCount):(0,o.qe)(t.lineCount-this.deltaOldToNewLineCount,t.columnCount)}adjustNextEdit(e){for(;this.nextEditIdx{"use strict";i.d(t,{Z:()=>d});var n=i(16844),o=i(64651),s=i(34883),r=i(60756),a=i(33206);class l{static createFromLanguage(e,t){function i(e){return t.getKey(`${e.languageId}:::${e.bracketText}`)}const n=new Map;for(const t of e.bracketsNew.openingBrackets){const e=(0,s.qe)(0,t.bracketText.length),l=i(t),d=r.gV.getEmpty().add(l,r.FD);n.set(t.bracketText,new a.ou(e,1,l,d,o.rh.create(e,t,d)))}for(const t of e.bracketsNew.closingBrackets){const e=(0,s.qe)(0,t.bracketText.length);let l=r.gV.getEmpty();const d=t.getOpeningBrackets();for(const e of d)l=l.add(i(e),r.FD);n.set(t.bracketText,new a.ou(e,2,i(d[0]),l,o.rh.create(e,t,l)))}return new l(n)}constructor(e){this.map=e,this.hasRegExp=!1,this._regExpGlobal=null}getRegExpStr(){if(this.isEmpty)return null;{const e=[...this.map.keys()];return e.sort(),e.reverse(),e.map((e=>function(e){let t=(0,n.bm)(e);return/^[\w ]+/.test(e)&&(t=`\\b${t}`),/[\w ]+$/.test(e)&&(t=`${t}\\b`),t}(e))).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const e=this.getRegExpStr();this._regExpGlobal=e?new RegExp(e,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(e){return this.map.get(e.toLowerCase())}findClosingTokenText(e){for(const[t,i]of this.map)if(2===i.kind&&i.bracketIds.intersects(e))return t}get isEmpty(){return 0===this.map.size}}class d{constructor(e,t){this.denseKeyProvider=e,this.getLanguageConfiguration=t,this.languageIdToBracketTokens=new Map}didLanguageChange(e){return this.languageIdToBracketTokens.has(e)}getSingleLanguageBracketTokens(e){let t=this.languageIdToBracketTokens.get(e);return t||(t=l.createFromLanguage(this.getLanguageConfiguration(e),this.denseKeyProvider),this.languageIdToBracketTokens.set(e,t)),t}}},47132:(e,t,i)=>{"use strict";i.d(t,{M:()=>r});var n=i(13338),o=i(22994),s=i(34883);function r(e,t){if(0===e.length)return t;if(0===t.length)return e;const i=new n.j3(l(e)),r=l(t);r.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let d=i.dequeue();function c(e){if(void 0===e){const e=i.takeWhile((e=>!0))||[];return d&&e.unshift(d),e}const t=[];for(;d&&!(0,s.Vh)(e);){const[n,o]=d.splitAt(e);t.push(n),e=(0,s.MS)(n.lengthAfter,e),d=null!=o?o:i.dequeue()}return(0,s.Vh)(e)||t.push(new a(!1,e,e)),t}const h=[];function u(e,t,i){if(h.length>0&&(0,s.wP)(h[h.length-1].endOffset,e)){const e=h[h.length-1];h[h.length-1]=new o.c(e.startOffset,t,(0,s.QB)(e.newLength,i))}else h.push({startOffset:e,endOffset:t,newLength:i})}let g=s.Vp;for(const e of r){const t=c(e.lengthBefore);if(e.modified){const i=(0,s.pW)(t,(e=>e.lengthBefore)),n=(0,s.QB)(g,i);u(g,n,e.lengthAfter),g=n}else for(const e of t){const t=g;g=(0,s.QB)(g,e.lengthBefore),e.modified&&u(t,g,e.lengthAfter)}}return h}class a{constructor(e,t,i){this.modified=e,this.lengthBefore=t,this.lengthAfter=i}splitAt(e){const t=(0,s.MS)(e,this.lengthAfter);return(0,s.wP)(t,s.Vp)?[this,void 0]:this.modified?[new a(this.modified,this.lengthBefore,e),new a(this.modified,s.Vp,t)]:[new a(this.modified,e,e),new a(this.modified,t,t)]}toString(){return`${this.modified?"M":"U"}:${(0,s.l4)(this.lengthBefore)} -> ${(0,s.l4)(this.lengthAfter)}`}}function l(e){const t=[];let i=s.Vp;for(const n of e){const e=(0,s.MS)(i,n.startOffset);(0,s.Vh)(e)||t.push(new a(!1,e,e));const o=(0,s.MS)(n.startOffset,n.endOffset);t.push(new a(!0,o,n.newLength)),i=n.endOffset}return t}},34883:(e,t,i)=>{"use strict";i.d(t,{C7:()=>r,MS:()=>v,QB:()=>p,Qx:()=>C,VL:()=>y,Vh:()=>l,Vp:()=>a,eu:()=>u,l4:()=>h,o0:()=>w,pW:()=>m,qe:()=>c,rR:()=>k,sS:()=>g,vr:()=>b,wP:()=>f,zG:()=>_});var n=i(16844),o=i(28061),s=i(58357);function r(e,t,i,n){return e!==i?c(i-e,n):c(0,n-t)}const a=0;function l(e){return 0===e}const d=2**26;function c(e,t){return e*d+t}function h(e){const t=e,i=Math.floor(t/d),n=t-i*d;return new s.W(i,n)}function u(e){return Math.floor(e/d)}function g(e){return e}function p(e,t){let i=e+t;return t>=d&&(i-=e%d),i}function m(e,t){return e.reduce(((e,i)=>p(e,t(i))),a)}function f(e,t){return e===t}function v(e,t){const i=e,n=t;if(n-i<=0)return a;const o=Math.floor(i/d),s=Math.floor(n/d),r=n-s*d;return o===s?c(0,r-(i-o*d)):c(s-o,r)}function _(e,t){return e=t}function y(e){return c(e.lineNumber-1,e.column-1)}function C(e,t){const i=e,n=Math.floor(i/d),s=i-n*d,r=t,a=Math.floor(r/d),l=r-a*d;return new o.Q(n+1,s+1,a+1,l+1)}function k(e){const t=(0,n.uz)(e);return c(t.length-1,t[t.length-1].length)}},68302:(e,t,i)=>{"use strict";i.d(t,{T:()=>g});var n=i(64651),o=i(22994),s=i(60756),r=i(34883);function a(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let i=e.length;for(;i>3;){const o=i>>1;for(let s=0;s=3?e[2]:null,t)}function l(e,t){return Math.abs(e.listHeight-t.listHeight)}function d(e,t){return e.listHeight===t.listHeight?n.Xw.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let i=e=e.toMutable();const o=[];let s;for(;;){if(t.listHeight===i.listHeight){s=t;break}if(4!==i.kind)throw new Error("unexpected");o.push(i),i=i.makeLastElementMutable()}for(let e=o.length-1;e>=0;e--){const t=o[e];s?t.childrenLength>=3?s=n.Xw.create23(t.unappendChild(),s,null,!1):(t.appendChildOfSameHeight(s),s=void 0):t.handleChildrenChanged()}return s?n.Xw.create23(e,s,null,!1):e}(e,t):function(e,t){let i=e=e.toMutable();const o=[];for(;t.listHeight!==i.listHeight;){if(4!==i.kind)throw new Error("unexpected");o.push(i),i=i.makeFirstElementMutable()}let s=t;for(let e=o.length-1;e>=0;e--){const t=o[e];s?t.childrenLength>=3?s=n.Xw.create23(s,t.unprependChild(),null,!1):(t.prependChildOfSameHeight(s),s=void 0):t.handleChildrenChanged()}return s?n.Xw.create23(s,e,null,!1):e}(t,e)}class c{constructor(e){this.lastOffset=r.Vp,this.nextNodes=[e],this.offsets=[r.Vp],this.idxs=[]}readLongestNodeAt(e,t){if((0,r.zG)(e,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=e;;){const i=u(this.nextNodes);if(!i)return;const n=u(this.offsets);if((0,r.zG)(e,n))return;if((0,r.zG)(n,e))if((0,r.QB)(n,i.length)<=e)this.nextNodeAfterCurrent();else{const e=h(i);-1!==e?(this.nextNodes.push(i.getChild(e)),this.offsets.push(n),this.idxs.push(e)):this.nextNodeAfterCurrent()}else{if(t(i))return this.nextNodeAfterCurrent(),i;{const e=h(i);if(-1===e)return void this.nextNodeAfterCurrent();this.nextNodes.push(i.getChild(e)),this.offsets.push(n),this.idxs.push(e)}}}}nextNodeAfterCurrent(){for(;;){const e=u(this.offsets),t=u(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),0===this.idxs.length)break;const i=u(this.nextNodes),n=h(i,this.idxs[this.idxs.length-1]);if(-1!==n){this.nextNodes.push(i.getChild(n)),this.offsets.push((0,r.QB)(e,t.length)),this.idxs[this.idxs.length-1]=n;break}this.idxs.pop()}}}function h(e,t=-1){for(;;){if(++t>=e.childrenLength)return-1;if(e.getChild(t))return t}}function u(e){return e.length>0?e[e.length-1]:void 0}function g(e,t,i,n){return new p(e,t,i,n).parseDocument()}class p{constructor(e,t,i,n){if(this.tokenizer=e,this.createImmutableLists=n,this._itemsConstructed=0,this._itemsFromCache=0,i&&n)throw new Error("Not supported");this.oldNodeReader=i?new c(i):void 0,this.positionMapper=new o.W(t)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let e=this.parseList(s.gV.getEmpty(),0);return e||(e=n.Xw.getEmpty()),e}parseList(e,t){const i=[];for(;;){let n=this.tryReadChildFromCache(e);if(!n){const i=this.tokenizer.peek();if(!i||2===i.kind&&i.bracketIds.intersects(e))break;n=this.parseChild(e,t+1)}4===n.kind&&0===n.childrenLength||i.push(n)}const n=this.oldNodeReader?function(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function i(){if(t>=e.length)return null;const i=t,n=e[i].listHeight;for(t++;t=2?a(0===i&&t===e.length?e:e.slice(i,t),!1):e[i]}let n=i(),o=i();if(!o)return n;for(let e=i();e;e=i())l(n,o)<=l(o,e)?(n=d(n,o),o=e):o=d(o,e);return d(n,o)}(i):a(i,this.createImmutableLists);return n}tryReadChildFromCache(e){if(this.oldNodeReader){const t=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(null===t||!(0,r.Vh)(t)){const i=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),(i=>!(null!==t&&!(0,r.zG)(i.length,t))&&i.canBeReused(e)));if(i)return this._itemsFromCache++,this.tokenizer.skip(i.length),i}}}parseChild(e,t){this._itemsConstructed++;const i=this.tokenizer.read();switch(i.kind){case 2:return new n.Gc(i.bracketIds,i.length);case 0:return i.astNode;case 1:{if(t>300)return new n.yF(i.length);const o=e.merge(i.bracketIds),s=this.parseList(o,t+1),r=this.tokenizer.peek();return r&&2===r.kind&&(r.bracketId===i.bracketId||r.bracketIds.intersects(i.bracketIds))?(this.tokenizer.read(),n.Nn.create(i.astNode,s,r.astNode)):n.Nn.create(i.astNode,s,null)}default:throw new Error("unexpected")}}}},60756:(e,t,i)=>{"use strict";i.d(t,{FD:()=>s,Mg:()=>r,gV:()=>o});const n=[];class o{static create(e,t){if(e<=128&&0===t.length){let i=o.cache[e];return i||(i=new o(e,t),o.cache[e]=i),i}return new o(e,t)}static getEmpty(){return this.empty}constructor(e,t){this.items=e,this.additionalItems=t}add(e,t){const i=t.getKey(e);let n=i>>5;if(0===n){const e=1<e};class r{constructor(){this.items=new Map}getKey(e){let t=this.items.get(e);return void 0===t&&(t=this.items.size,this.items.set(e,t)),t}}},33206:(e,t,i)=>{"use strict";i.d(t,{_:()=>h,ou:()=>l,tk:()=>d});var n=i(94327),o=i(15910),s=i(64651),r=i(34883),a=i(60756);class l{constructor(e,t,i,n,o){this.length=e,this.kind=t,this.bracketId=i,this.bracketIds=n,this.astNode=o}}class d{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.reader=new c(this.textModel,this.bracketTokens),this._offset=r.Vp,this.didPeek=!1,this.peeked=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}get offset(){return this._offset}get length(){return(0,r.qe)(this.textBufferLineCount-1,this.textBufferLastLineLength)}skip(e){this.didPeek=!1,this._offset=(0,r.QB)(this._offset,e);const t=(0,r.l4)(this._offset);this.reader.setPosition(t.lineCount,t.columnCount)}read(){let e;return this.peeked?(this.didPeek=!1,e=this.peeked):e=this.reader.read(),e&&(this._offset=(0,r.QB)(this._offset,e.length)),e}peek(){return this.didPeek||(this.peeked=this.reader.read(),this.didPeek=!0),this.peeked}}class c{constructor(e,t){this.textModel=e,this.bracketTokens=t,this.lineIdx=0,this.line=null,this.lineCharOffset=0,this.lineTokens=null,this.lineTokenOffset=0,this.peekedToken=null,this.textBufferLineCount=e.getLineCount(),this.textBufferLastLineLength=e.getLineLength(this.textBufferLineCount)}setPosition(e,t){e===this.lineIdx?(this.lineCharOffset=t,null!==this.line&&(this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset))):(this.lineIdx=e,this.lineCharOffset=t,this.line=null),this.peekedToken=null}read(){if(this.peekedToken){const e=this.peekedToken;return this.peekedToken=null,this.lineCharOffset+=(0,r.sS)(e.length),e}if(this.lineIdx>this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;null===this.line&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=0===this.lineCharOffset?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const e=this.lineIdx,t=this.lineCharOffset;let i=0;for(;;){const n=this.lineTokens,s=n.getCount();let a=null;if(this.lineTokenOffset1e3)break}if(i>1500)break}const n=(0,r.C7)(e,t,this.lineIdx,this.lineCharOffset);return new l(n,0,-1,a.gV.getEmpty(),new s.yF(n))}}class h{constructor(e,t){this.text=e,this._offset=r.Vp,this.idx=0;const i=t.getRegExpStr(),n=i?new RegExp(i+"|\n","gi"):null,o=[];let d,c=0,h=0,u=0,g=0;const p=[];for(let e=0;e<60;e++)p.push(new l((0,r.qe)(0,e),0,-1,a.gV.getEmpty(),new s.yF((0,r.qe)(0,e))));const m=[];for(let e=0;e<60;e++)m.push(new l((0,r.qe)(1,e),0,-1,a.gV.getEmpty(),new s.yF((0,r.qe)(1,e))));if(n)for(n.lastIndex=0;null!==(d=n.exec(e));){const e=d.index,i=d[0];if("\n"===i)c++,h=e+1;else{if(u!==e){let t;if(g===c){const i=e-u;if(i{"use strict";i.d(t,{Th:()=>m,z8:()=>f});var n=i(3765),o=i(94327),s=i(93702),r=i(37264),a=i(6949),l=i(42802),d=i(22467);function c(e){return e.toString()}class h{static create(e,t){const i=e.getAlternativeVersionId(),n=p(e);return new h(i,i,n,n,t,t,[])}constructor(e,t,i,n,o,s,r){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=i,this.afterEOL=n,this.beforeCursorState=o,this.afterCursorState=s,this.changes=r}append(e,t,i,n,o){t.length>0&&(this.changes=(0,a.x)(this.changes,t)),this.afterEOL=i,this.afterVersionId=n,this.afterCursorState=o}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,i){if(l.Sw(e,t?t.length:0,i),i+=4,t)for(const n of t)l.Sw(e,n.selectionStartLineNumber,i),i+=4,l.Sw(e,n.selectionStartColumn,i),i+=4,l.Sw(e,n.positionLineNumber,i),i+=4,l.Sw(e,n.positionColumn,i),i+=4;return i}static _readSelections(e,t,i){const n=l.bb(e,t);t+=4;for(let o=0;oe.toString())).join(", ")}matchesResource(e){return(r.r.isUri(this.model)?this.model:this.model.uri).toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof h}append(e,t,i,n,o){this._data instanceof h&&this._data.append(e,t,i,n,o)}close(){this._data instanceof h&&(this._data=this._data.serialize())}open(){this._data instanceof h||(this._data=h.deserialize(this._data))}undo(){if(r.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof h&&(this._data=this._data.serialize());const e=h.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(r.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof h&&(this._data=this._data.serialize());const e=h.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof h&&(this._data=this._data.serialize()),this._data.byteLength+168}}class g{get resources(){return this._editStackElementsArr.map((e=>e.resource))}constructor(e,t,i){this.label=e,this.code=t,this.type=1,this._isOpen=!0,this._editStackElementsArr=i.slice(0),this._editStackElementsMap=new Map;for(const e of this._editStackElementsArr){const t=c(e.resource);this._editStackElementsMap.set(t,e)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=c(e);return this._editStackElementsMap.has(t)}setModel(e){const t=c(r.r.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=c(e.uri);return!!this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).canAppend(e)}append(e,t,i,n,o){const s=c(e.uri);this._editStackElementsMap.get(s).append(e,t,i,n,o)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=c(e);return this._editStackElementsMap.has(t)?this._editStackElementsMap.get(t).heapSize():0}split(){return this._editStackElementsArr}toString(){const e=[];for(const t of this._editStackElementsArr)e.push(`${(0,d.P8)(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function p(e){return"\n"===e.getEOL()?0:1}function m(e){return!!e&&(e instanceof u||e instanceof g)}class f{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);m(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);m(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e,t){const i=this._undoRedoService.getLastElement(this._model.uri);if(m(i)&&i.canAppend(this._model))return i;const o=new u(n.k("edit","Typing"),"undoredo.textBufferEdit",this._model,e);return this._undoRedoService.pushElement(o,t),o}pushEOL(e){const t=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(e),t.append(this._model,[],p(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,i,n){const o=this._getOrCreateEditStackElement(e,n),s=this._model.applyEdits(t,!0),r=f._computeCursorState(i,s),a=s.map(((e,t)=>({index:t,textChange:e.textChange})));return a.sort(((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition)),o.append(this._model,a.map((e=>e.textChange)),p(this._model),this._model.getAlternativeVersionId(),r),r}static _computeCursorState(e,t){try{return e?e(t):null}catch(e){return(0,o.dz)(e),null}}}},52818:(e,t,i)=>{"use strict";i.d(t,{P:()=>h,k:()=>u});var n=i(97393),o=i(16844),s=i(62549),r=i(28061),a=i(32177),l=i(50969),d=i(60779),c=i(94327);class h extends a._{constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t}getLanguageConfiguration(e){return this.languageConfigurationService.getLanguageConfiguration(e)}_computeIndentLevel(e){return(0,l.G)(this.textModel.getLineContent(e+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(e,t,i){this.assertNotDisposed();const n=this.textModel.getLineCount();if(e<1||e>n)throw new c.D7("Illegal value for lineNumber");const o=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(o&&o.offSide);let r=-2,a=-1,l=-2,d=-1;const h=e=>{if(-1!==r&&(-2===r||r>e-1)){r=-1,a=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){r=t,a=e;break}}}if(-2===l){l=-1,d=-1;for(let t=e;t=0){l=t,d=e;break}}}};let u=-2,g=-1,p=-2,m=-1;const f=e=>{if(-2===u){u=-1,g=-1;for(let t=e-2;t>=0;t--){const e=this._computeIndentLevel(t);if(e>=0){u=t,g=e;break}}}if(-1!==p&&(-2===p||p=0){p=t,m=e;break}}}};let v=0,_=!0,b=0,w=!0,y=0,C=0;for(let o=0;_||w;o++){const r=e-o,c=e+o;o>1&&(r<1||r1&&(c>n||c>i)&&(w=!1),o>5e4&&(_=!1,w=!1);let p=-1;if(_&&r>=1){const e=this._computeIndentLevel(r-1);e>=0?(l=r-1,d=e,p=Math.ceil(e/this.textModel.getOptions().indentSize)):(h(r),p=this._getIndentLevelForWhitespaceLine(s,a,d))}let k=-1;if(w&&c<=n){const e=this._computeIndentLevel(c-1);e>=0?(u=c-1,g=e,k=Math.ceil(e/this.textModel.getOptions().indentSize)):(f(c),k=this._getIndentLevelForWhitespaceLine(s,g,m))}if(0!==o){if(1===o){if(c<=n&&k>=0&&C+1===k){_=!1,v=c,b=c,y=k;continue}if(r>=1&&p>=0&&p-1===C){w=!1,v=r,b=r,y=p;continue}if(v=e,b=e,y=C,0===y)return{startLineNumber:v,endLineNumber:b,indent:y}}_&&(p>=y?v=r:_=!1),w&&(k>=y?b=c:w=!1)}else C=p}return{startLineNumber:v,endLineNumber:b,indent:y}}getLinesBracketGuides(e,t,i,s){var a;const l=[];for(let i=e;i<=t;i++)l.push([]);const c=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new r.Q(e,1,t,this.textModel.getLineMaxColumn(t))).toArray();let h;if(i&&c.length>0){const o=(e<=i.lineNumber&&i.lineNumber<=t?c:this.textModel.bracketPairs.getBracketPairsInRange(r.Q.fromPositions(i)).toArray()).filter((e=>r.Q.strictContainsPosition(e.range,i)));h=null===(a=(0,n.Uk)(o,(e=>true)))||void 0===a?void 0:a.range}const g=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,p=new u;for(const i of c){if(!i.closingBracketRange)continue;const n=h&&i.range.equalsRange(h);if(!n&&!s.includeInactive)continue;const r=p.getInlineClassName(i.nestingLevel,i.nestingLevelOfEqualBracketType,g)+(s.highlightActive&&n?" "+p.activeClassName:""),a=i.openingBracketRange.getStartPosition(),c=i.closingBracketRange.getStartPosition(),u=s.horizontalGuides===d.N6.Enabled||s.horizontalGuides===d.N6.EnabledForActive&&n;if(i.range.startLineNumber===i.range.endLineNumber){u&&l[i.range.startLineNumber-e].push(new d.TH(-1,i.openingBracketRange.getEndPosition().column,r,new d.pv(!1,c.column),-1,-1));continue}const m=this.getVisibleColumnFromPosition(c),f=this.getVisibleColumnFromPosition(i.openingBracketRange.getStartPosition()),v=Math.min(f,m,i.minVisibleColumnIndentation+1);let _=!1;o.HG(this.textModel.getLineContent(i.closingBracketRange.startLineNumber))=e&&f>v&&l[a.lineNumber-e].push(new d.TH(v,-1,r,new d.pv(!1,a.column),-1,-1)),c.lineNumber<=t&&m>v&&l[c.lineNumber-e].push(new d.TH(v,-1,r,new d.pv(!_,c.column),-1,-1)))}for(const e of l)e.sort(((e,t)=>e.visibleColumn-t.visibleColumn));return l}getVisibleColumnFromPosition(e){return s.A.visibleColumnFromColumn(this.textModel.getLineContent(e.lineNumber),e.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(e,t){this.assertNotDisposed();const i=this.textModel.getLineCount();if(e<1||e>i)throw new Error("Illegal value for startLineNumber");if(t<1||t>i)throw new Error("Illegal value for endLineNumber");const n=this.textModel.getOptions(),o=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,s=Boolean(o&&o.offSide),r=new Array(t-e+1);let a=-2,l=-1,d=-2,c=-1;for(let o=e;o<=t;o++){const t=o-e,h=this._computeIndentLevel(o-1);if(h>=0)a=o-1,l=h,r[t]=Math.ceil(h/n.indentSize);else{if(-2===a){a=-1,l=-1;for(let e=o-2;e>=0;e--){const t=this._computeIndentLevel(e);if(t>=0){a=e,l=t;break}}}if(-1!==d&&(-2===d||d=0){d=e,c=t;break}}}r[t]=this._getIndentLevelForWhitespaceLine(s,l,c)}}return r}_getIndentLevelForWhitespaceLine(e,t,i){const n=this.textModel.getOptions();return-1===t||-1===i?0:t{"use strict";i.d(t,{N:()=>s,c2:()=>r});var n=i(13338),o=i(37512);class s{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,o.j)(e);const i=this.values,n=this.prefixSum,s=t.length;return 0!==s&&(this.values=new Uint32Array(i.length+s),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e),e+s),this.values.set(t,e),e-1=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=(0,o.j)(e),t=(0,o.j)(t),this.values[e]!==t&&(this.values[e]=t,e-1=i.length)return!1;const s=i.length-e;return t>=s&&(t=s),0!==t&&(this.values=new Uint32Array(i.length-t),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,o.j)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let i=t;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,i=this.values.length-1,n=0,o=0,s=0;for(;t<=i;)if(n=t+(i-t)/2|0,o=this.prefixSum[n],s=o-this.values[n],e=o))break;t=n+1}return new a(n,e-s)}}class r{constructor(e){this._values=e,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(e){return this._ensureValid(),0===e?0:this._prefixSum[e-1]}getIndexOf(e){this._ensureValid();const t=this._indexBySum[e],i=t>0?this._prefixSum[t-1]:0;return new a(t,e-i)}removeValues(e,t){this._values.splice(e,t),this._invalidate(e)}insertValues(e,t){this._values=(0,n.nK)(this._values,e,t),this._invalidate(e)}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,t=this._values.length;e0?this._prefixSum[e-1]:0;this._prefixSum[e]=i+t;for(let n=0;n{"use strict";i.d(t,{Ho:()=>Wt,kI:()=>Ht,Bz:()=>Nt});var n=i(13338),o=i(94901),s=i(94327),r=i(2106),a=i(10998),l=i(16844),d=i(37264),c=i(3902),h=i(57999),u=i(79955),g=i(15365),p=i(28061),m=i(93702),f=i(12590),v=i(77922),_=i(52394),b=i(66055),w=i(19184),y=i(1804);class C{constructor(e,t,i,n){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=i,this.isInvalid=n}}class k{constructor(e,t,i,n,o,s){this.range=e,this.openingBracketRange=t,this.closingBracketRange=i,this.nestingLevel=n,this.nestingLevelOfEqualBracketType=o,this.bracketPairNode=s}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}class S extends k{constructor(e,t,i,n,o,s,r){super(e,t,i,n,o,s),this.minVisibleColumnIndentation=r}}var x=i(22994),L=i(85702),D=i(34883),E=i(68302),I=i(60756),N=i(33206),M=i(47132);class A extends a.jG{didLanguageChange(e){return this.brackets.didLanguageChange(e)}constructor(e,t){if(super(),this.textModel=e,this.getLanguageConfiguration=t,this.didChangeEmitter=new r.vl,this.denseKeyProvider=new I.Mg,this.brackets=new L.Z(this.denseKeyProvider,this.getLanguageConfiguration),this.onDidChange=this.didChangeEmitter.event,this.queuedTextEditsForInitialAstWithoutTokens=[],this.queuedTextEdits=[],e.tokenization.hasTokens)2===e.tokenization.backgroundTokenizationState?(this.initialAstWithoutTokens=void 0,this.astWithTokens=this.parseDocumentFromTextBuffer([],void 0,!1)):(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer([],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens);else{const e=this.brackets.getSingleLanguageBracketTokens(this.textModel.getLanguageId()),t=new N._(this.textModel.getValue(),e);this.initialAstWithoutTokens=(0,E.T)(t,[],void 0,!0),this.astWithTokens=this.initialAstWithoutTokens}}handleDidChangeBackgroundTokenizationState(){if(2===this.textModel.tokenization.backgroundTokenizationState){const e=void 0===this.initialAstWithoutTokens;this.initialAstWithoutTokens=void 0,e||this.didChangeEmitter.fire()}}handleDidChangeTokens({ranges:e}){const t=e.map((e=>new x.c((0,D.qe)(e.fromLineNumber-1,0),(0,D.qe)(e.toLineNumber,0),(0,D.qe)(e.toLineNumber-e.fromLineNumber+1,0))));this.handleEdits(t,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(e){const t=x.c.fromModelContentChanges(e.changes);this.handleEdits(t,!1)}handleEdits(e,t){const i=(0,M.M)(this.queuedTextEdits,e);this.queuedTextEdits=i,this.initialAstWithoutTokens&&!t&&(this.queuedTextEditsForInitialAstWithoutTokens=(0,M.M)(this.queuedTextEditsForInitialAstWithoutTokens,e))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(e,t,i){const n=t,o=new N.tk(this.textModel,this.brackets);return(0,E.T)(o,e,n,i)}getBracketsInRange(e,t){this.flushQueue();const i=(0,D.qe)(e.startLineNumber-1,e.startColumn-1),o=(0,D.qe)(e.endLineNumber-1,e.endColumn-1);return new n.c1((e=>{const n=this.initialAstWithoutTokens||this.astWithTokens;P(n,D.Vp,n.length,i,o,e,0,0,new Map,t)}))}getBracketPairsInRange(e,t){this.flushQueue();const i=(0,D.VL)(e.getStartPosition()),o=(0,D.VL)(e.getEndPosition());return new n.c1((e=>{const n=this.initialAstWithoutTokens||this.astWithTokens,s=new O(e,t,this.textModel);F(n,D.Vp,n.length,i,o,s,0,new Map)}))}getFirstBracketAfter(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return R(t,D.Vp,t.length,(0,D.VL)(e))}getFirstBracketBefore(e){this.flushQueue();const t=this.initialAstWithoutTokens||this.astWithTokens;return T(t,D.Vp,t.length,(0,D.VL)(e))}}function T(e,t,i,n){if(4===e.kind||2===e.kind){const o=[];for(const n of e.children)i=(0,D.QB)(t,n.length),o.push({nodeOffsetStart:t,nodeOffsetEnd:i}),t=i;for(let t=o.length-1;t>=0;t--){const{nodeOffsetStart:i,nodeOffsetEnd:s}=o[t];if((0,D.zG)(i,n)){const o=T(e.children[t],i,s,n);if(o)return o}}return null}if(3===e.kind)return null;if(1===e.kind){const n=(0,D.Qx)(t,i);return{bracketInfo:e.bracketInfo,range:n}}return null}function R(e,t,i,n){if(4===e.kind||2===e.kind){for(const o of e.children){if(i=(0,D.QB)(t,o.length),(0,D.zG)(n,i)){const e=R(o,t,i,n);if(e)return e}t=i}return null}if(3===e.kind)return null;if(1===e.kind){const n=(0,D.Qx)(t,i);return{bracketInfo:e.bracketInfo,range:n}}return null}function P(e,t,i,n,o,s,r,a,l,d,c=!1){if(r>200)return!0;e:for(;;)switch(e.kind){case 4:{const a=e.childrenLength;for(let c=0;c200)return!0;let d=!0;if(2===e.kind){let c=0;if(a){let t=a.get(e.openingBracket.text);void 0===t&&(t=0),c=t,t++,a.set(e.openingBracket.text,t)}const h=(0,D.QB)(t,e.openingBracket.length);let u=-1;if(s.includeMinIndentation&&(u=e.computeMinIndentation(t,s.textModel)),d=s.push(new S((0,D.Qx)(t,i),(0,D.Qx)(t,h),e.closingBracket?(0,D.Qx)((0,D.QB)(h,(null===(l=e.child)||void 0===l?void 0:l.length)||D.Vp),i):void 0,r,c,e,u)),t=h,d&&e.child){const l=e.child;if(i=(0,D.QB)(t,l.length),(0,D.vr)(t,o)&&(0,D.o0)(i,n)&&(d=F(l,t,i,n,o,s,r+1,a),!d))return!1}null==a||a.set(e.openingBracket.text,c)}else{let i=t;for(const t of e.children){const e=i;if(i=(0,D.QB)(i,t.length),(0,D.vr)(e,o)&&(0,D.vr)(n,i)&&(d=F(t,e,i,n,o,s,r,a),!d))return!1}}return d}class B extends a.jG{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(e,t){super(),this.textModel=e,this.languageConfigurationService=t,this.bracketPairsTree=this._register(new a.HE),this.onDidChangeEmitter=new r.vl,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1}handleLanguageConfigurationServiceChange(e){var t;e.languageId&&!(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.didLanguageChange(e.languageId))||(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}handleDidChangeOptions(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(e){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(e){var t;null===(t=this.bracketPairsTree.value)||void 0===t||t.object.handleContentChanged(e)}handleDidChangeBackgroundTokenizationState(){var e;null===(e=this.bracketPairsTree.value)||void 0===e||e.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(e){var t;null===(t=this.bracketPairsTree.value)||void 0===t||t.object.handleDidChangeTokens(e)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const i=new a.Cm;this.bracketPairsTree.value=(e=i.add(new A(this.textModel,(e=>this.languageConfigurationService.getLanguageConfiguration(e)))),t=i,{object:e,dispose:()=>null==t?void 0:t.dispose()}),i.add(this.bracketPairsTree.value.object.onDidChange((e=>this.onDidChangeEmitter.fire(e)))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire());var e,t}getBracketPairsInRange(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.getBracketPairsInRange(e,!1))||n.c1.empty}getBracketPairsInRangeWithMinIndentation(e){var t;return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.getBracketPairsInRange(e,!0))||n.c1.empty}getBracketsInRange(e,t=!1){var i;return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(i=this.bracketPairsTree.value)||void 0===i?void 0:i.object.getBracketsInRange(e,t))||n.c1.empty}findMatchingBracketUp(e,t,i){const n=this.textModel.validatePosition(t),o=this.textModel.getLanguageIdAtPosition(n.lineNumber,n.column);if(this.canBuildAST){const i=this.languageConfigurationService.getLanguageConfiguration(o).bracketsNew.getClosingBracketInfo(e);if(!i)return null;const n=this.getBracketPairsInRange(p.Q.fromPositions(t,t)).findLast((e=>i.closes(e.openingBracketInfo)));return n?n.openingBracketRange:null}{const t=e.toLowerCase(),s=this.languageConfigurationService.getLanguageConfiguration(o).brackets;if(!s)return null;const r=s.textIsBracket[t];return r?V(this._findMatchingBracketUp(r,n,W(i))):null}}matchBracket(e,t){if(this.canBuildAST){const t=this.getBracketPairsInRange(p.Q.fromPositions(e,e)).filter((t=>void 0!==t.closingBracketRange&&(t.openingBracketRange.containsPosition(e)||t.closingBracketRange.containsPosition(e)))).findLastMaxBy((0,n.VE)((t=>t.openingBracketRange.containsPosition(e)?t.openingBracketRange:t.closingBracketRange),p.Q.compareRangesUsingStarts));return t?[t.openingBracketRange,t.closingBracketRange]:null}{const i=W(t);return this._matchBracket(this.textModel.validatePosition(e),i)}}_establishBracketSearchOffsets(e,t,i,n){const o=t.getCount(),s=t.getLanguageId(n);let r=Math.max(0,e.column-1-i.maxBracketLength);for(let e=n-1;e>=0;e--){const i=t.getEndOffset(e);if(i<=r)break;if((0,w.Yo)(t.getStandardTokenType(e))||t.getLanguageId(e)!==s){r=i;break}}let a=Math.min(t.getLineContent().length,e.column-1+i.maxBracketLength);for(let e=n+1;e=a)break;if((0,w.Yo)(t.getStandardTokenType(e))||t.getLanguageId(e)!==s){a=i;break}}return{searchStartOffset:r,searchEndOffset:a}}_matchBracket(e,t){const i=e.lineNumber,n=this.textModel.tokenization.getLineTokens(i),o=this.textModel.getLineContent(i),s=n.findTokenIndexAtOffset(e.column-1);if(s<0)return null;const r=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(s)).brackets;if(r&&!(0,w.Yo)(n.getStandardTokenType(s))){let{searchStartOffset:a,searchEndOffset:l}=this._establishBracketSearchOffsets(e,n,r,s),d=null;for(;;){const n=y.Fu.findNextBracketInRange(r.forwardRegex,i,o,a,l);if(!n)break;if(n.startColumn<=e.column&&e.column<=n.endColumn){const e=o.substring(n.startColumn-1,n.endColumn-1).toLowerCase(),i=this._matchFoundBracket(n,r.textIsBracket[e],r.textIsOpenBracket[e],t);if(i){if(i instanceof H)return null;d=i}}a=n.endColumn-1}if(d)return d}if(s>0&&n.getStartOffset(s)===e.column-1){const r=s-1,a=this.languageConfigurationService.getLanguageConfiguration(n.getLanguageId(r)).brackets;if(a&&!(0,w.Yo)(n.getStandardTokenType(r))){const{searchStartOffset:s,searchEndOffset:l}=this._establishBracketSearchOffsets(e,n,a,r),d=y.Fu.findPrevBracketInRange(a.reversedRegex,i,o,s,l);if(d&&d.startColumn<=e.column&&e.column<=d.endColumn){const e=o.substring(d.startColumn-1,d.endColumn-1).toLowerCase(),i=this._matchFoundBracket(d,a.textIsBracket[e],a.textIsOpenBracket[e],t);if(i)return i instanceof H?null:i}}}return null}_matchFoundBracket(e,t,i,n){if(!t)return null;const o=i?this._findMatchingBracketDown(t,e.getEndPosition(),n):this._findMatchingBracketUp(t,e.getStartPosition(),n);return o?o instanceof H?o:[e,o]:null}_findMatchingBracketUp(e,t,i){const n=e.languageId,o=e.reversedRegex;let s=-1,r=0;const a=(t,n,a,l)=>{for(;;){if(i&&++r%100==0&&!i())return H.INSTANCE;const d=y.Fu.findPrevBracketInRange(o,t,n,a,l);if(!d)break;const c=n.substring(d.startColumn-1,d.endColumn-1).toLowerCase();if(e.isOpen(c)?s++:e.isClose(c)&&s--,0===s)return d;l=d.startColumn-1}return null};for(let e=t.lineNumber;e>=1;e--){const i=this.textModel.tokenization.getLineTokens(e),o=i.getCount(),s=this.textModel.getLineContent(e);let r=o-1,l=s.length,d=s.length;e===t.lineNumber&&(r=i.findTokenIndexAtOffset(t.column-1),l=t.column-1,d=t.column-1);let c=!0;for(;r>=0;r--){const t=i.getLanguageId(r)===n&&!(0,w.Yo)(i.getStandardTokenType(r));if(t)c?l=i.getStartOffset(r):(l=i.getStartOffset(r),d=i.getEndOffset(r));else if(c&&l!==d){const t=a(e,s,l,d);if(t)return t}c=t}if(c&&l!==d){const t=a(e,s,l,d);if(t)return t}}return null}_findMatchingBracketDown(e,t,i){const n=e.languageId,o=e.forwardRegex;let s=1,r=0;const a=(t,n,a,l)=>{for(;;){if(i&&++r%100==0&&!i())return H.INSTANCE;const d=y.Fu.findNextBracketInRange(o,t,n,a,l);if(!d)break;const c=n.substring(d.startColumn-1,d.endColumn-1).toLowerCase();if(e.isOpen(c)?s++:e.isClose(c)&&s--,0===s)return d;a=d.endColumn-1}return null},l=this.textModel.getLineCount();for(let e=t.lineNumber;e<=l;e++){const i=this.textModel.tokenization.getLineTokens(e),o=i.getCount(),s=this.textModel.getLineContent(e);let r=0,l=0,d=0;e===t.lineNumber&&(r=i.findTokenIndexAtOffset(t.column-1),l=t.column-1,d=t.column-1);let c=!0;for(;r=1;e--){const t=this.textModel.tokenization.getLineTokens(e),r=t.getCount(),a=this.textModel.getLineContent(e);let l=r-1,d=a.length,c=a.length;if(e===i.lineNumber){l=t.findTokenIndexAtOffset(i.column-1),d=i.column-1,c=i.column-1;const e=t.getLanguageId(l);n!==e&&(n=e,o=this.languageConfigurationService.getLanguageConfiguration(n).brackets,s=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew)}let h=!0;for(;l>=0;l--){const i=t.getLanguageId(l);if(n!==i){if(o&&s&&h&&d!==c){const t=y.Fu.findPrevBracketInRange(o.reversedRegex,e,a,d,c);if(t)return this._toFoundBracket(s,t);h=!1}n=i,o=this.languageConfigurationService.getLanguageConfiguration(n).brackets,s=this.languageConfigurationService.getLanguageConfiguration(n).bracketsNew}const r=!!o&&!(0,w.Yo)(t.getStandardTokenType(l));if(r)h?d=t.getStartOffset(l):(d=t.getStartOffset(l),c=t.getEndOffset(l));else if(s&&o&&h&&d!==c){const t=y.Fu.findPrevBracketInRange(o.reversedRegex,e,a,d,c);if(t)return this._toFoundBracket(s,t)}h=r}if(s&&o&&h&&d!==c){const t=y.Fu.findPrevBracketInRange(o.reversedRegex,e,a,d,c);if(t)return this._toFoundBracket(s,t)}}return null}findNextBracket(e){var t;const i=this.textModel.validatePosition(e);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),(null===(t=this.bracketPairsTree.value)||void 0===t?void 0:t.object.getFirstBracketAfter(i))||null;const n=this.textModel.getLineCount();let o=null,s=null,r=null;for(let e=i.lineNumber;e<=n;e++){const t=this.textModel.tokenization.getLineTokens(e),n=t.getCount(),a=this.textModel.getLineContent(e);let l=0,d=0,c=0;if(e===i.lineNumber){l=t.findTokenIndexAtOffset(i.column-1),d=i.column-1,c=i.column-1;const e=t.getLanguageId(l);o!==e&&(o=e,s=this.languageConfigurationService.getLanguageConfiguration(o).brackets,r=this.languageConfigurationService.getLanguageConfiguration(o).bracketsNew)}let h=!0;for(;lvoid 0!==t.closingBracketRange&&t.range.strictContainsRange(e)));return t?[t.openingBracketRange,t.closingBracketRange]:null}const n=W(t),o=this.textModel.getLineCount(),s=new Map;let r=[];const a=(e,t)=>{if(!s.has(e)){const i=[];for(let e=0,n=t?t.brackets.length:0;e{for(;;){if(n&&++l%100==0&&!n())return H.INSTANCE;const a=y.Fu.findNextBracketInRange(e.forwardRegex,t,i,o,s);if(!a)break;const d=i.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),c=e.textIsBracket[d];if(c&&(c.isOpen(d)?r[c.index]++:c.isClose(d)&&r[c.index]--,-1===r[c.index]))return this._matchFoundBracket(a,c,!1,n);o=a.endColumn-1}return null};let c=null,h=null;for(let e=i.lineNumber;e<=o;e++){const t=this.textModel.tokenization.getLineTokens(e),n=t.getCount(),o=this.textModel.getLineContent(e);let s=0,r=0,l=0;if(e===i.lineNumber){s=t.findTokenIndexAtOffset(i.column-1),r=i.column-1,l=i.column-1;const e=t.getLanguageId(s);c!==e&&(c=e,h=this.languageConfigurationService.getLanguageConfiguration(c).brackets,a(c,h))}let u=!0;for(;s!0;{const t=Date.now();return()=>Date.now()-t<=e}}class H{constructor(){this._searchCanceledBrand=void 0}}function V(e){return e instanceof H?null:e}H.INSTANCE=new H;var z=i(48295),j=i(89044);class U extends a.jG{constructor(e){super(),this.textModel=e,this.colorProvider=new $,this.onDidChangeEmitter=new r.vl,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange((e=>{this.onDidChangeEmitter.fire()})))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,i,n){return n||void 0===t?[]:this.colorizationOptions.enabled?this.textModel.bracketPairs.getBracketsInRange(e,!0).map((e=>({id:`bracket${e.range.toString()}-${e.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(e,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:e.range}))).toArray():[]}getAllDecorations(e,t){return void 0===e?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new p.Q(1,1,this.textModel.getLineCount(),1),e,t):[]}}class ${constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return"bracket-highlighting-"+e%30}}(0,j.zy)(((e,t)=>{const i=[z.sN,z.lQ,z.ss,z.l5,z.sH,z.zp],n=new $;t.addRule(`.monaco-editor .${n.unexpectedClosingBracketClassName} { color: ${e.getColor(z.s7)}; }`);const o=i.map((t=>e.getColor(t))).filter((e=>!!e)).filter((e=>!e.isTransparent()));for(let e=0;e<30;e++){const i=o[e%o.length];t.addRule(`.monaco-editor .${n.getInlineClassNameOfLevel(e)} { color: ${i}; }`)}}));var K=i(54296),q=i(52818);class G{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function Q(e,t,i,n,o){let s;for(o.spacesDiff=0,o.looksLikeAlignment=!1,s=0;s0&&a>0)return;if(l>0&&d>0)return;const c=Math.abs(a-d),h=Math.abs(r-l);if(0===c)return o.spacesDiff=h,void(h>0&&0<=l-1&&l-10?o++:m>1&&s++,Q(r,a,h,p,c),c.looksLikeAlignment&&(!i||t!==c.spacesDiff))continue;const v=c.spacesDiff;v<=8&&d[v]++,r=h,a=p}let h=i;o!==s&&(h=o{const i=d[t];i>e&&(e=i,u=t)})),4===u&&d[4]>0&&d[2]>0&&d[2]>=d[4]/2&&(u=2)}return{insertSpaces:h,tabSize:u}}function Y(e){return(1&e.metadata)>>>0}function X(e,t){e.metadata=254&e.metadata|t}function J(e){return(2&e.metadata)>>>1==1}function ee(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function te(e){return(4&e.metadata)>>>2==1}function ie(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function ne(e){return(64&e.metadata)>>>6==1}function oe(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}function se(e,t){e.metadata=231&e.metadata|t<<3}function re(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class ae{constructor(e,t,i){this.metadata=0,this.parent=this,this.left=this,this.right=this,X(this,1),this.start=t,this.end=i,this.delta=0,this.maxEnd=i,this.id=e,this.ownerId=0,this.options=null,ie(this,!1),oe(this,!1),se(this,1),re(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=null,ee(this,!1)}reset(e,t,i,n){this.start=t,this.end=i,this.maxEnd=i,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=n}setOptions(e){this.options=e;const t=this.options.className;ie(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),oe(this,null!==this.options.glyphMarginClassName),se(this,this.options.stickiness),re(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,i){this.cachedVersionId!==i&&(this.range=null),this.cachedVersionId=i,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const le=new ae(null,0,0);le.parent=le,le.left=le,le.right=le,X(le,0);class de{constructor(){this.root=le,this.requestNormalizeDelta=!1}intervalSearch(e,t,i,n,o,s){return this.root===le?[]:function(e,t,i,n,o,s,r){let a=e.root,l=0,d=0,c=0,h=0;const u=[];let g=0;for(;a!==le;)if(J(a))ee(a.left,!1),ee(a.right,!1),a===a.parent.right&&(l-=a.parent.delta),a=a.parent;else{if(!J(a.left)){if(d=l+a.maxEnd,di)ee(a,!0);else{if(h=l+a.end,h>=t){a.setCachedOffsets(c,h,s);let e=!0;n&&a.ownerId&&a.ownerId!==n&&(e=!1),o&&te(a)&&(e=!1),r&&!ne(a)&&(e=!1),e&&(u[g++]=a)}ee(a,!0),a.right===le||J(a.right)||(l+=a.delta,a=a.right)}}return ee(e.root,!1),u}(this,e,t,i,n,o,s)}search(e,t,i,n){return this.root===le?[]:function(e,t,i,n,o){let s=e.root,r=0,a=0,l=0;const d=[];let c=0;for(;s!==le;){if(J(s)){ee(s.left,!1),ee(s.right,!1),s===s.parent.right&&(r-=s.parent.delta),s=s.parent;continue}if(s.left!==le&&!J(s.left)){s=s.left;continue}a=r+s.start,l=r+s.end,s.setCachedOffsets(a,l,n);let e=!0;t&&s.ownerId&&s.ownerId!==t&&(e=!1),i&&te(s)&&(e=!1),o&&!ne(s)&&(e=!1),e&&(d[c++]=s),ee(s,!0),s.right===le||J(s.right)||(r+=s.delta,s=s.right)}return ee(e.root,!1),d}(this,e,t,i,n)}collectNodesFromOwner(e){return function(e,t){let i=e.root;const n=[];let o=0;for(;i!==le;)J(i)?(ee(i.left,!1),ee(i.right,!1),i=i.parent):i.left===le||J(i.left)?(i.ownerId===t&&(n[o++]=i),ee(i,!0),i.right===le||J(i.right)||(i=i.right)):i=i.left;return ee(e.root,!1),n}(this,e)}collectNodesPostOrder(){return function(e){let t=e.root;const i=[];let n=0;for(;t!==le;)J(t)?(ee(t.left,!1),ee(t.right,!1),t=t.parent):t.left===le||J(t.left)?t.right===le||J(t.right)?(i[n++]=t,ee(t,!0)):t=t.right:t=t.left;return ee(e.root,!1),i}(this)}insert(e){ue(this,e),this._normalizeDeltaIfNecessary()}delete(e){ge(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const i=e;let n=0;for(;e!==this.root;)e===e.parent.right&&(n+=e.parent.delta),e=e.parent;const o=i.start+n,s=i.end+n;i.setCachedOffsets(o,s,t)}acceptReplace(e,t,i,n){const o=function(e,t,i){let n=e.root,o=0,s=0,r=0,a=0;const l=[];let d=0;for(;n!==le;)if(J(n))ee(n.left,!1),ee(n.right,!1),n===n.parent.right&&(o-=n.parent.delta),n=n.parent;else{if(!J(n.left)){if(s=o+n.maxEnd,si?ee(n,!0):(a=o+n.end,a>=t&&(n.setCachedOffsets(r,a,0),l[d++]=n),ee(n,!0),n.right===le||J(n.right)||(o+=n.delta,n=n.right))}return ee(e.root,!1),l}(this,e,e+t);for(let e=0,t=o.length;ei?(o.start+=l,o.end+=l,o.delta+=l,(o.delta<-1073741824||o.delta>1073741824)&&(e.requestNormalizeDelta=!0),ee(o,!0)):(ee(o,!0),o.right===le||J(o.right)||(s+=o.delta,o=o.right))}ee(e.root,!1)}(this,e,e+t,i),this._normalizeDeltaIfNecessary();for(let s=0,r=o.length;si)&&1!==n&&(2===n||t)}function he(e,t,i,n,o){const s=function(e){return(24&e.metadata)>>>3}(e),r=0===s||2===s,a=1===s||2===s,l=i-t,d=n,c=Math.min(l,d),h=e.start;let u=!1;const g=e.end;let p=!1;t<=h&&g<=i&&function(e){return(32&e.metadata)>>>5==1}(e)&&(e.start=t,u=!0,e.end=t,p=!0);{const e=o?1:l>0?2:0;!u&&ce(h,r,t,e)&&(u=!0),!p&&ce(g,a,t,e)&&(p=!0)}if(c>0&&!o){const e=l>d?2:0;!u&&ce(h,r,t+c,e)&&(u=!0),!p&&ce(g,a,t+c,e)&&(p=!0)}{const n=o?1:0;!u&&ce(h,r,i,n)&&(e.start=t+d,u=!0),!p&&ce(g,a,i,n)&&(e.end=t+d,p=!0)}const m=d-l;u||(e.start=Math.max(0,h+m)),p||(e.end=Math.max(0,g+m)),e.start>e.end&&(e.end=e.start)}function ue(e,t){if(e.root===le)return t.parent=le,t.left=le,t.right=le,X(t,0),e.root=t,e.root;!function(e,t){let i=0,n=e.root;const o=t.start,s=t.end;for(;;)if(r=o,a=s,l=n.start+i,d=n.end+i,(r===l?a-d:r-l)<0){if(n.left===le){t.start-=i,t.end-=i,t.maxEnd-=i,n.left=t;break}n=n.left}else{if(n.right===le){t.start-=i+n.delta,t.end-=i+n.delta,t.maxEnd-=i+n.delta,n.right=t;break}i+=n.delta,n=n.right}var r,a,l,d;t.parent=n,t.left=le,t.right=le,X(t,1)}(e,t),be(t.parent);let i=t;for(;i!==e.root&&1===Y(i.parent);)if(i.parent===i.parent.parent.left){const t=i.parent.parent.right;1===Y(t)?(X(i.parent,0),X(t,0),X(i.parent.parent,1),i=i.parent.parent):(i===i.parent.right&&(i=i.parent,me(e,i)),X(i.parent,0),X(i.parent.parent,1),fe(e,i.parent.parent))}else{const t=i.parent.parent.left;1===Y(t)?(X(i.parent,0),X(t,0),X(i.parent.parent,1),i=i.parent.parent):(i===i.parent.left&&(i=i.parent,fe(e,i)),X(i.parent,0),X(i.parent.parent,1),me(e,i.parent.parent))}return X(e.root,0),t}function ge(e,t){let i,n;if(t.left===le?(i=t.right,n=t,i.delta+=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta):t.right===le?(i=t.left,n=t):(n=function(e){for(;e.left!==le;)e=e.left;return e}(t.right),i=n.right,i.start+=n.delta,i.end+=n.delta,i.delta+=n.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,n.delta=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0)),n===e.root)return e.root=i,X(i,0),t.detach(),pe(),_e(i),void(e.root.parent=le);const o=1===Y(n);if(n===n.parent.left?n.parent.left=i:n.parent.right=i,n===t?i.parent=n.parent:(n.parent===t?i.parent=n:i.parent=n.parent,n.left=t.left,n.right=t.right,n.parent=t.parent,X(n,Y(t)),t===e.root?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left!==le&&(n.left.parent=n),n.right!==le&&(n.right.parent=n)),t.detach(),o)return be(i.parent),n!==t&&(be(n),be(n.parent)),void pe();let s;for(be(i),be(i.parent),n!==t&&(be(n),be(n.parent));i!==e.root&&0===Y(i);)i===i.parent.left?(s=i.parent.right,1===Y(s)&&(X(s,0),X(i.parent,1),me(e,i.parent),s=i.parent.right),0===Y(s.left)&&0===Y(s.right)?(X(s,1),i=i.parent):(0===Y(s.right)&&(X(s.left,0),X(s,1),fe(e,s),s=i.parent.right),X(s,Y(i.parent)),X(i.parent,0),X(s.right,0),me(e,i.parent),i=e.root)):(s=i.parent.left,1===Y(s)&&(X(s,0),X(i.parent,1),fe(e,i.parent),s=i.parent.left),0===Y(s.left)&&0===Y(s.right)?(X(s,1),i=i.parent):(0===Y(s.left)&&(X(s.right,0),X(s,1),me(e,s),s=i.parent.left),X(s,Y(i.parent)),X(i.parent,0),X(s.left,0),fe(e,i.parent),i=e.root));X(i,0),pe()}function pe(){le.parent=le,le.delta=0,le.start=0,le.end=0}function me(e,t){const i=t.right;i.delta+=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,t.right=i.left,i.left!==le&&(i.left.parent=t),i.parent=t.parent,t.parent===le?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left=t,t.parent=i,_e(t),_e(i)}function fe(e,t){const i=t.left;t.delta-=i.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=i.delta,t.end-=i.delta,t.left=i.right,i.right!==le&&(i.right.parent=t),i.parent=t.parent,t.parent===le?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,i.right=t,t.parent=i,_e(t),_e(i)}function ve(e){let t=e.end;if(e.left!==le){const i=e.left.maxEnd;i>t&&(t=i)}if(e.right!==le){const i=e.right.maxEnd+e.delta;i>t&&(t=i)}return t}function _e(e){e.maxEnd=ve(e)}function be(e){for(;e!==le;){const t=ve(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}class we{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==ye)return Ce(this.right);let e=this;for(;e.parent!==ye&&e.parent.left!==e;)e=e.parent;return e.parent===ye?ye:e.parent}prev(){if(this.left!==ye)return ke(this.left);let e=this;for(;e.parent!==ye&&e.parent.right!==e;)e=e.parent;return e.parent===ye?ye:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const ye=new we(null,0);function Ce(e){for(;e.left!==ye;)e=e.left;return e}function ke(e){for(;e.right!==ye;)e=e.right;return e}function Se(e){return e===ye?0:e.size_left+e.piece.length+Se(e.right)}function xe(e){return e===ye?0:e.lf_left+e.piece.lineFeedCnt+xe(e.right)}function Le(){ye.parent=ye}function De(e,t){const i=t.right;i.size_left+=t.size_left+(t.piece?t.piece.length:0),i.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=i.left,i.left!==ye&&(i.left.parent=t),i.parent=t.parent,t.parent===ye?e.root=i:t.parent.left===t?t.parent.left=i:t.parent.right=i,i.left=t,t.parent=i}function Ee(e,t){const i=t.left;t.left=i.right,i.right!==ye&&(i.right.parent=t),i.parent=t.parent,t.size_left-=i.size_left+(i.piece?i.piece.length:0),t.lf_left-=i.lf_left+(i.piece?i.piece.lineFeedCnt:0),t.parent===ye?e.root=i:t===t.parent.right?t.parent.right=i:t.parent.left=i,i.right=t,t.parent=i}function Ie(e,t){let i,n;if(t.left===ye?(n=t,i=n.right):t.right===ye?(n=t,i=n.left):(n=Ce(t.right),i=n.right),n===e.root)return e.root=i,i.color=0,t.detach(),Le(),void(e.root.parent=ye);const o=1===n.color;if(n===n.parent.left?n.parent.left=i:n.parent.right=i,n===t?(i.parent=n.parent,Ae(e,i)):(n.parent===t?i.parent=n:i.parent=n.parent,Ae(e,i),n.left=t.left,n.right=t.right,n.parent=t.parent,n.color=t.color,t===e.root?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left!==ye&&(n.left.parent=n),n.right!==ye&&(n.right.parent=n),n.size_left=t.size_left,n.lf_left=t.lf_left,Ae(e,n)),t.detach(),i.parent.left===i){const t=Se(i),n=xe(i);if(t!==i.parent.size_left||n!==i.parent.lf_left){const o=t-i.parent.size_left,s=n-i.parent.lf_left;i.parent.size_left=t,i.parent.lf_left=n,Me(e,i.parent,o,s)}}if(Ae(e,i.parent),o)return void Le();let s;for(;i!==e.root&&0===i.color;)i===i.parent.left?(s=i.parent.right,1===s.color&&(s.color=0,i.parent.color=1,De(e,i.parent),s=i.parent.right),0===s.left.color&&0===s.right.color?(s.color=1,i=i.parent):(0===s.right.color&&(s.left.color=0,s.color=1,Ee(e,s),s=i.parent.right),s.color=i.parent.color,i.parent.color=0,s.right.color=0,De(e,i.parent),i=e.root)):(s=i.parent.left,1===s.color&&(s.color=0,i.parent.color=1,Ee(e,i.parent),s=i.parent.left),0===s.left.color&&0===s.right.color?(s.color=1,i=i.parent):(0===s.left.color&&(s.right.color=0,s.color=1,De(e,s),s=i.parent.left),s.color=i.parent.color,i.parent.color=0,s.left.color=0,Ee(e,i.parent),i=e.root));i.color=0,Le()}function Ne(e,t){for(Ae(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){const i=t.parent.parent.right;1===i.color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&De(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Ee(e,t.parent.parent))}else{const i=t.parent.parent.left;1===i.color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&Ee(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,De(e,t.parent.parent))}e.root.color=0}function Me(e,t,i,n){for(;t!==e.root&&t!==ye;)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=n),t=t.parent}function Ae(e,t){let i=0,n=0;if(t!==e.root){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t!==e.root)for(i=Se((t=t.parent).left)-t.size_left,n=xe(t.left)-t.lf_left,t.size_left+=i,t.lf_left+=n;t!==e.root&&(0!==i||0!==n);)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=n),t=t.parent}}ye.parent=ye,ye.left=ye,ye.right=ye,ye.color=0;var Te=i(104);const Re=65535;function Pe(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class Oe{constructor(e,t,i,n,o){this.lineStarts=e,this.cr=t,this.lf=i,this.crlf=n,this.isBasicASCII=o}}function Fe(e,t=!0){const i=[0];let n=1;for(let t=0,o=e.length;t(e!==ye&&this._pieces.push(e.piece),!0)))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class Ve{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartOffset<=e&&i.nodeStartOffset+i.node.piece.length>=e)return i}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){const i=this._cache[t];if(i.nodeStartLineNumber&&i.nodeStartLineNumber=e)return i}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1;const i=this._cache;for(let n=0;n=e)&&(i[n]=null,t=!0)}if(t){const e=[];for(const t of i)null!==t&&e.push(t);this._cache=e}}}class ze{constructor(e,t,i){this.create(e,t,i)}create(e,t,i){this._buffers=[new We("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=ye,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=i;let n=null;for(let t=0,i=e.length;t0){e[t].lineStarts||(e[t].lineStarts=Fe(e[t].buffer));const i=new Be(t+1,{line:0,column:0},{line:e[t].lineStarts.length-1,column:e[t].buffer.length-e[t].lineStarts[e[t].lineStarts.length-1]},e[t].lineStarts.length-1,e[t].buffer.length);this._buffers.push(e[t]),n=this.rbInsertRight(n,i)}this._searchCache=new Ve(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){const t=65535-Math.floor(21845),i=2*t;let n="",o=0;const s=[];if(this.iterate(this.root,(r=>{const a=this.getNodeContent(r),l=a.length;if(o<=t||o+l0){const t=n.replace(/\r\n|\r|\n/g,e);s.push(new We(t,Fe(t)))}this.create(s,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new He(this,e)}getOffsetAt(e,t){let i=0,n=this.root;for(;n!==ye;)if(n.left!==ye&&n.lf_left+1>=e)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt+1>=e)return i+=n.size_left,i+(this.getAccumulatedValue(n,e-n.lf_left-2)+t-1);e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}return i}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,i=0;const n=e;for(;t!==ye;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){const o=this.getIndexOf(t,e-t.size_left);if(i+=t.lf_left+o.index,0===o.index){const e=n-this.getOffsetAt(i+1,1);return new g.y(i+1,e+1)}return new g.y(i+1,o.remainder+1)}if(e-=t.size_left+t.piece.length,i+=t.lf_left+t.piece.lineFeedCnt,t.right===ye){const t=n-e-this.getOffsetAt(i+1,1);return new g.y(i+1,t+1)}t=t.right}return new g.y(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";const i=this.nodeAt2(e.startLineNumber,e.startColumn),n=this.nodeAt2(e.endLineNumber,e.endColumn),o=this.getValueInRange2(i,n);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?o:o.replace(/\r\n|\r|\n/g,t):o}getValueInRange2(e,t){if(e.node===t.node){const i=e.node,n=this._buffers[i.piece.bufferIndex].buffer,o=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n.substring(o+e.remainder,o+t.remainder)}let i=e.node;const n=this._buffers[i.piece.bufferIndex].buffer,o=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);let s=n.substring(o+e.remainder,o+i.piece.length);for(i=i.next();i!==ye;){const e=this._buffers[i.piece.bufferIndex].buffer,n=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);if(i===t.node){s+=e.substring(n,n+t.remainder);break}s+=e.substr(n,i.piece.length),i=i.next()}return s}getLinesContent(){const e=[];let t=0,i="",n=!1;return this.iterate(this.root,(o=>{if(o===ye)return!0;const s=o.piece;let r=s.length;if(0===r)return!0;const a=this._buffers[s.bufferIndex].buffer,l=this._buffers[s.bufferIndex].lineStarts,d=s.start.line,c=s.end.line;let h=l[d]+s.start.column;if(n&&(10===a.charCodeAt(h)&&(h++,r--),e[t++]=i,i="",n=!1,0===r))return!0;if(d===c)return this._EOLNormalized||13!==a.charCodeAt(h+r-1)?i+=a.substr(h,r):(n=!0,i+=a.substr(h,r-1)),!0;i+=this._EOLNormalized?a.substring(h,Math.max(h,l[d+1]-this._EOLLength)):a.substring(h,l[d+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=i;for(let n=d+1;ne+g,t.reset(0)):(_=h.buffer,b=e=>e,t.reset(g));do{if(f=t.next(_),f){if(b(f.index)>=m)return d;this.positionInBuffer(e,b(f.index)-u,v);const t=this.getLineFeedCnt(e.piece.bufferIndex,o,v),s=v.line===o.line?v.column-o.column+n:v.column+1,r=s+f[0].length;if(c[d++]=(0,Te.dr)(new p.Q(i+t,s,i+t,r),f,a),b(f.index)+f[0].length>=m)return d;if(d>=l)return d}}while(f);return d}findMatchesLineByLine(e,t,i,n){const o=[];let s=0;const r=new Te.W5(t.wordSeparators,t.regex);let a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];const l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];let d=this.positionInBuffer(a.node,a.remainder);const c=this.positionInBuffer(l.node,l.remainder);if(a.node===l.node)return this.findMatchesInNode(a.node,r,e.startLineNumber,e.startColumn,d,c,t,i,n,s,o),o;let h=e.startLineNumber,u=a.node;for(;u!==l.node;){const l=this.getLineFeedCnt(u.piece.bufferIndex,d,u.piece.end);if(l>=1){const a=this._buffers[u.piece.bufferIndex].lineStarts,c=this.offsetInBuffer(u.piece.bufferIndex,u.piece.start),g=a[d.line+l],p=h===e.startLineNumber?e.startColumn:1;if(s=this.findMatchesInNode(u,r,h,p,d,this.positionInBuffer(u,g-c),t,i,n,s,o),s>=n)return o;h+=l}const c=h===e.startLineNumber?e.startColumn-1:0;if(h===e.endLineNumber){const a=this.getLineContent(h).substring(c,e.endColumn-1);return s=this._findMatchesInLine(t,r,a,e.endLineNumber,c,s,o,i,n),o}if(s=this._findMatchesInLine(t,r,this.getLineContent(h).substr(c),h,c,s,o,i,n),s>=n)return o;h++,a=this.nodeAt2(h,1),u=a.node,d=this.positionInBuffer(a.node,a.remainder)}if(h===e.endLineNumber){const a=h===e.startLineNumber?e.startColumn-1:0,l=this.getLineContent(h).substring(a,e.endColumn-1);return s=this._findMatchesInLine(t,r,l,e.endLineNumber,a,s,o,i,n),o}const g=h===e.startLineNumber?e.startColumn:1;return s=this.findMatchesInNode(l.node,r,h,g,d,c,t,i,n,s,o),o}_findMatchesInLine(e,t,i,n,o,s,r,a,l){const d=e.wordSeparators;if(!a&&e.simpleSearch){const t=e.simpleSearch,a=t.length,c=i.length;let h=-a;for(;-1!==(h=i.indexOf(t,h+a));)if((!d||(0,Te.wC)(d,i,c,h,a))&&(r[s++]=new b.Dg(new p.Q(n,h+1+o,n,h+1+a+o),null),s>=l))return s;return s}let c;t.reset(0);do{if(c=t.next(i),c&&(r[s++]=(0,Te.dr)(new p.Q(n,c.index+1+o,n,c.index+1+c[0].length+o),c,a),s>=l))return s}while(c);return s}insert(e,t,i=!1){if(this._EOLNormalized=this._EOLNormalized&&i,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==ye){const{node:i,remainder:n,nodeStartOffset:o}=this.nodeAt(e),s=i.piece,r=s.bufferIndex,a=this.positionInBuffer(i,n);if(0===i.piece.bufferIndex&&s.end.line===this._lastChangeBufferPos.line&&s.end.column===this._lastChangeBufferPos.column&&o+s.length===e&&t.lengthe){const e=[];let o=new Be(s.bufferIndex,a,s.end,this.getLineFeedCnt(s.bufferIndex,a,s.end),this.offsetInBuffer(r,s.end)-this.offsetInBuffer(r,a));if(this.shouldCheckCRLF()&&this.endWithCR(t)&&10===this.nodeCharCodeAt(i,n)){const e={line:o.start.line+1,column:0};o=new Be(o.bufferIndex,e,o.end,this.getLineFeedCnt(o.bufferIndex,e,o.end),o.length-1),t+="\n"}if(this.shouldCheckCRLF()&&this.startWithLF(t))if(13===this.nodeCharCodeAt(i,n-1)){const o=this.positionInBuffer(i,n-1);this.deleteNodeTail(i,o),t="\r"+t,0===i.piece.length&&e.push(i)}else this.deleteNodeTail(i,a);else this.deleteNodeTail(i,a);const l=this.createNewPieces(t);o.length>0&&this.rbInsertRight(i,o);let d=i;for(let e=0;e=0;e--)o=this.rbInsertLeft(o,n[e]);this.validateCRLFWithPrevNode(o),this.deleteNodes(i)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");const i=this.createNewPieces(e),n=this.rbInsertRight(t,i[0]);let o=n;for(let e=1;e=c))break;a=d+1}return i?(i.line=d,i.column=r-h,null):{line:d,column:r-h}}getLineFeedCnt(e,t,i){if(0===i.column)return i.line-t.line;const n=this._buffers[e].lineStarts;if(i.line===n.length-1)return i.line-t.line;const o=n[i.line+1],s=n[i.line]+i.column;if(o>s+1)return i.line-t.line;const r=s-1;return 13===this._buffers[e].buffer.charCodeAt(r)?i.line-t.line+1:i.line-t.line}offsetInBuffer(e,t){return this._buffers[e].lineStarts[t.line]+t.column}deleteNodes(e){for(let t=0;tRe){const t=[];for(;e.length>Re;){const i=e.charCodeAt(65534);let n;13===i||i>=55296&&i<=56319?(n=e.substring(0,65534),e=e.substring(65534)):(n=e.substring(0,Re),e=e.substring(Re));const o=Fe(n);t.push(new Be(this._buffers.length,{line:0,column:0},{line:o.length-1,column:n.length-o[o.length-1]},o.length-1,n.length)),this._buffers.push(new We(n,o))}const i=Fe(e);return t.push(new Be(this._buffers.length,{line:0,column:0},{line:i.length-1,column:e.length-i[i.length-1]},i.length-1,e.length)),this._buffers.push(new We(e,i)),t}let t=this._buffers[0].buffer.length;const i=Fe(e,!1);let n=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},n=this._lastChangeBufferPos;for(let e=0;e=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){const n=this.getAccumulatedValue(i,e-i.lf_left-2),r=this.getAccumulatedValue(i,e-i.lf_left-1),a=this._buffers[i.piece.bufferIndex].buffer,l=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return o+=i.size_left,this._searchCache.set({node:i,nodeStartOffset:o,nodeStartLineNumber:s-(e-1-i.lf_left)}),a.substring(l+n,l+r-t)}if(i.lf_left+i.piece.lineFeedCnt===e-1){const t=this.getAccumulatedValue(i,e-i.lf_left-2),o=this._buffers[i.piece.bufferIndex].buffer,s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n=o.substring(s+t,s+i.piece.length);break}e-=i.lf_left+i.piece.lineFeedCnt,o+=i.size_left+i.piece.length,i=i.right}}for(i=i.next();i!==ye;){const e=this._buffers[i.piece.bufferIndex].buffer;if(i.piece.lineFeedCnt>0){const o=this.getAccumulatedValue(i,0),s=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n+=e.substring(s,s+o-t),n}{const t=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n+=e.substr(t,i.piece.length)}i=i.next()}return n}computeBufferMetadata(){let e=this.root,t=1,i=0;for(;e!==ye;)t+=e.lf_left+e.piece.lineFeedCnt,i+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=i,this._searchCache.validate(this._length)}getIndexOf(e,t){const i=e.piece,n=this.positionInBuffer(e,t),o=n.line-i.start.line;if(this.offsetInBuffer(i.bufferIndex,i.end)-this.offsetInBuffer(i.bufferIndex,i.start)===t){const t=this.getLineFeedCnt(e.piece.bufferIndex,i.start,n);if(t!==o)return{index:t,remainder:0}}return{index:o,remainder:n.column}}getAccumulatedValue(e,t){if(t<0)return 0;const i=e.piece,n=this._buffers[i.bufferIndex].lineStarts,o=i.start.line+t+1;return o>i.end.line?n[i.end.line]+i.end.column-n[i.start.line]-i.start.column:n[o]-n[i.start.line]-i.start.column}deleteNodeTail(e,t){const i=e.piece,n=i.lineFeedCnt,o=this.offsetInBuffer(i.bufferIndex,i.end),s=t,r=this.offsetInBuffer(i.bufferIndex,s),a=this.getLineFeedCnt(i.bufferIndex,i.start,s),l=a-n,d=r-o,c=i.length+d;e.piece=new Be(i.bufferIndex,i.start,s,a,c),Me(this,e,d,l)}deleteNodeHead(e,t){const i=e.piece,n=i.lineFeedCnt,o=this.offsetInBuffer(i.bufferIndex,i.start),s=t,r=this.getLineFeedCnt(i.bufferIndex,s,i.end),a=r-n,l=o-this.offsetInBuffer(i.bufferIndex,s),d=i.length+l;e.piece=new Be(i.bufferIndex,s,i.end,r,d),Me(this,e,l,a)}shrinkNode(e,t,i){const n=e.piece,o=n.start,s=n.end,r=n.length,a=n.lineFeedCnt,l=t,d=this.getLineFeedCnt(n.bufferIndex,n.start,l),c=this.offsetInBuffer(n.bufferIndex,t)-this.offsetInBuffer(n.bufferIndex,o);e.piece=new Be(n.bufferIndex,n.start,l,d,c),Me(this,e,c-r,d-a);const h=new Be(n.bufferIndex,i,s,this.getLineFeedCnt(n.bufferIndex,i,s),this.offsetInBuffer(n.bufferIndex,s)-this.offsetInBuffer(n.bufferIndex,i)),u=this.rbInsertRight(e,h);this.validateCRLFWithPrevNode(u)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const i=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),n=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const o=Fe(t,!1);for(let e=0;ee)t=t.left;else{if(t.size_left+t.piece.length>=e){n+=t.size_left;const i={node:t,remainder:e-t.size_left,nodeStartOffset:n};return this._searchCache.set(i),i}e-=t.size_left+t.piece.length,n+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let i=this.root,n=0;for(;i!==ye;)if(i.left!==ye&&i.lf_left>=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){const o=this.getAccumulatedValue(i,e-i.lf_left-2),s=this.getAccumulatedValue(i,e-i.lf_left-1);return n+=i.size_left,{node:i,remainder:Math.min(o+t-1,s),nodeStartOffset:n}}if(i.lf_left+i.piece.lineFeedCnt===e-1){const o=this.getAccumulatedValue(i,e-i.lf_left-2);if(o+t-1<=i.piece.length)return{node:i,remainder:o+t-1,nodeStartOffset:n};t-=i.piece.length-o;break}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}for(i=i.next();i!==ye;){if(i.piece.lineFeedCnt>0){const e=this.getAccumulatedValue(i,0),n=this.offsetOfNode(i);return{node:i,remainder:Math.min(t-1,e),nodeStartOffset:n}}if(i.piece.length>=t-1)return{node:i,remainder:t-1,nodeStartOffset:this.offsetOfNode(i)};t-=i.piece.length,i=i.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;const i=this._buffers[e.piece.bufferIndex],n=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return i.buffer.charCodeAt(n)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;for(;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"==typeof e)return 10===e.charCodeAt(0);if(e===ye||0===e.piece.lineFeedCnt)return!1;const t=e.piece,i=this._buffers[t.bufferIndex].lineStarts,n=t.start.line,o=i[n]+t.start.column;return n!==i.length-1&&(!(i[n+1]>o+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(o))}endWithCR(e){return"string"==typeof e?13===e.charCodeAt(e.length-1):e!==ye&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){const t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){const t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){const i=[],n=this._buffers[e.piece.bufferIndex].lineStarts;let o;o=0===e.piece.end.column?{line:e.piece.end.line-1,column:n[e.piece.end.line]-n[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const s=e.piece.length-1,r=e.piece.lineFeedCnt-1;e.piece=new Be(e.piece.bufferIndex,e.piece.start,o,r,s),Me(this,e,-1,-1),0===e.piece.length&&i.push(e);const a={line:t.piece.start.line+1,column:0},l=t.piece.length-1,d=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new Be(t.piece.bufferIndex,a,t.piece.end,d,l),Me(this,t,-1,-1),0===t.piece.length&&i.push(t);const c=this.createNewPieces("\r\n");this.rbInsertRight(e,c[0]);for(let e=0;ee.sortIndex-t.sortIndex))}this._mightContainRTL=n,this._mightContainUnusualLineTerminators=o,this._mightContainNonBasicASCII=s;const p=this._doApplyEdits(a);let m=null;if(t&&u.length>0){u.sort(((e,t)=>t.lineNumber-e.lineNumber)),m=[];for(let e=0,t=u.length;e0&&u[e-1].lineNumber===t)continue;const i=u[e].oldContent,n=this.getLineContent(t);0!==n.length&&n!==i&&-1===l.HG(n)&&m.push(t)}}return this._onDidChangeContent.fire(),new b.F4(g,p,m)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const i=e[0].range,n=e[e.length-1].range,o=new p.Q(i.startLineNumber,i.startColumn,n.endLineNumber,n.endColumn);let s=i.startLineNumber,r=i.startColumn;const a=[];for(let i=0,n=e.length;i0&&a.push(n.text),s=o.endLineNumber,r=o.endColumn}const l=a.join(""),[d,h,u]=(0,c.W)(l);return{sortIndex:0,identifier:e[0].identifier,range:o,rangeOffset:this.getOffsetAt(o.startLineNumber,o.startColumn),rangeLength:this.getValueLengthInRange(o,0),text:l,eolCount:d,firstLineLength:h,lastLineLength:u,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(Ue._sortOpsDescending);const t=[];for(let i=0;i0){const e=r.eolCount+1;d=1===e?new p.Q(a,l,a,l+r.firstLineLength):new p.Q(a,l,a+e-1,r.lastLineLength+1)}else d=new p.Q(a,l,a,l);i=d.endLineNumber,n=d.endColumn,t.push(d),o=r}return t}static _sortOpsAscending(e,t){const i=p.Q.compareRangesUsingEnds(e.range,t.range);return 0===i?e.sortIndex-t.sortIndex:i}static _sortOpsDescending(e,t){const i=p.Q.compareRangesUsingEnds(e.range,t.range);return 0===i?t.sortIndex-e.sortIndex:-i}}class $e{constructor(e,t,i,n,o,s,r,a,l){this._chunks=e,this._bom=t,this._cr=i,this._lf=n,this._crlf=o,this._containsRTL=s,this._containsUnusualLineTerminators=r,this._isBasicASCII=a,this._normalizeEOL=l}_getEOL(e){const t=this._cr+this._lf+this._crlf,i=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":i>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e),i=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let e=0,n=i.length;e=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=function(e,t){e.length=0,e[0]=0;let i=1,n=0,o=0,s=0,r=!0;for(let a=0,l=t.length;a126)&&(r=!1)}const a=new Oe(Pe(e),n,o,s,r);return e.length=0,a}(this._tmpLineStarts,e);this.chunks.push(new We(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,t.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=l.E_(e)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=l.$X(e)))}finish(e=!0){return this._finish(),new $e(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);const t=Fe(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}var qe=i(65958),Ge=i(18782),Qe=i(47317),Ze=i(32177),Ye=i(63339),Xe=i(23013),Je=i(72532),et=i(97036);class tt{constructor(e){this._default=e,this._store=[]}get(e){return e=this._store.length;)this._store[this._store.length]=this._default;this._store[e]=t}replace(e,t,i){if(e>=this._store.length)return;if(0===t)return void this.insert(e,i);if(0===i)return void this.delete(e,t);const n=this._store.slice(0,e),o=this._store.slice(e+t),s=function(e,t){const i=[];for(let n=0;n=this._store.length||this._store.splice(e,t)}insert(e,t){if(0===t||e>=this._store.length)return;const i=[];for(let e=0;e0){const i=this._tokens[this._tokens.length-1];if(i.endLineNumber+1===e)return void i.appendLineTokens(t)}this._tokens.push(new it(e,[t]))}finalize(){return this._tokens}}var ot=i(57445);class st{constructor(e,t){this.tokenizationSupport=t,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new at(e)}getStartState(e){return this.store.getStartState(e,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}class rt extends st{constructor(e,t,i,n){super(e,t),this._textModel=i,this._languageIdCodec=n}updateTokensUntilLine(e,t){const i=this._textModel.getLanguageId();for(;;){const n=this.getFirstInvalidLine();if(!n||n.lineNumber>t)break;const o=this._textModel.getLineContent(n.lineNumber),s=ct(this._languageIdCodec,i,this.tokenizationSupport,o,!0,n.startState);e.add(n.lineNumber,s.tokens),this.store.setEndState(n.lineNumber,s.endState)}}getTokenTypeIfInsertingCharacter(e,t){const i=this.getStartState(e.lineNumber);if(!i)return 0;const n=this._textModel.getLanguageId(),o=this._textModel.getLineContent(e.lineNumber),s=o.substring(0,e.column-1)+t+o.substring(e.column-1),r=ct(this._languageIdCodec,n,this.tokenizationSupport,s,!0,i),a=new ot.f(r.tokens,s,this._languageIdCodec);if(0===a.getCount())return 0;const l=a.findTokenIndexAtOffset(e.column-1);return a.getStandardTokenType(l)}tokenizeLineWithEdit(e,t,i){const n=e.lineNumber,o=e.column,s=this.getStartState(n);if(!s)return null;const r=this._textModel.getLineContent(n),a=r.substring(0,o-1)+i+r.substring(o-1+t),l=this._textModel.getLanguageIdAtPosition(n,0),d=ct(this._languageIdCodec,l,this.tokenizationSupport,a,!0,s);return new ot.f(d.tokens,a,this._languageIdCodec)}hasAccurateTokensForLine(e){return e1&&o>=1;o--){const e=this._textModel.getLineFirstNonWhitespaceColumn(o);if(0!==e&&e0&&i>0&&(i--,t--),this._lineEndStates.replace(e.startLineNumber,i,t)}}class dt{constructor(){this._ranges=[]}get min(){return 0===this._ranges.length?null:this._ranges[0].start}delete(e){const t=this._ranges.findIndex((t=>t.contains(e)));if(-1!==t){const i=this._ranges[t];i.start===e?i.endExclusive===e+1?this._ranges.splice(t,1):this._ranges[t]=new Je.L(e+1,i.endExclusive):i.endExclusive===e+1?this._ranges[t]=new Je.L(i.start,e):this._ranges.splice(t,1,new Je.L(i.start,e),new Je.L(e+1,i.endExclusive))}}addRange(e){Je.L.addRange(e,this._ranges)}addRangeAndResize(e,t){let i=0;for(;!(i>=this._ranges.length||e.start<=this._ranges[i].endExclusive);)i++;let n=i;for(;!(n>=this._ranges.length||e.endExclusivee.toString())).join(" + ")}}function ct(e,t,i,n,o,r){let a=null;if(i)try{a=i.tokenizeEncoded(n,o,r.clone())}catch(e){(0,s.dz)(e)}return a||(a=(0,et.Lh)(e.encodeLanguageId(t),r)),ot.f.convertToEndOffset(a.tokens,n.length),a}class ht{constructor(e,t){this._tokenizerWithStateStore=e,this._backgroundTokenStore=t,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){!this._isScheduled&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._isScheduled=!0,(0,qe.$6)((e=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(e)})))}_backgroundTokenizeWithDeadline(e){const t=Date.now()+e.timeRemaining(),i=()=>{!this._isDisposed&&this._tokenizerWithStateStore._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&(this._backgroundTokenizeForAtLeast1ms(),Date.now()1)break;if(this._tokenizeOneInvalidLine(t)>=e)break}while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(t.finalize()),this.checkFinished()}_hasLinesToTokenize(){return!!this._tokenizerWithStateStore&&!this._tokenizerWithStateStore.store.allStatesValid()}_tokenizeOneInvalidLine(e){var t;const i=null===(t=this._tokenizerWithStateStore)||void 0===t?void 0:t.getFirstInvalidLine();return i?(this._tokenizerWithStateStore.updateTokensUntilLine(e,i.lineNumber),i.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(e,t){this._tokenizerWithStateStore.store.invalidateEndStateRange(new u.M(e,t))}}const ut=new Uint32Array(0).buffer;class gt{static deleteBeginning(e,t){return null===e||e===ut?e:gt.delete(e,0,t)}static deleteEnding(e,t){if(null===e||e===ut)return e;const i=pt(e),n=i[i.length-2];return gt.delete(e,t,n)}static delete(e,t,i){if(null===e||e===ut||t===i)return e;const n=pt(e),o=n.length>>>1;if(0===t&&n[n.length-2]===i)return ut;const s=ot.f.findIndexInTokensArray(n,t),r=s>0?n[s-1<<1]:0;if(il&&(n[a++]=t,n[a++]=n[1+(e<<1)],l=t)}if(a===n.length)return e;const c=new Uint32Array(a);return c.set(n.subarray(0,a),0),c.buffer}static append(e,t){if(t===ut)return e;if(e===ut)return t;if(null===e)return e;if(null===t)return null;const i=pt(e),n=pt(t),o=n.length>>>1,s=new Uint32Array(i.length+n.length);s.set(i,0);let r=i.length;const a=i[i.length-2];for(let e=0;e>>1;let s=ot.f.findIndexInTokensArray(n,t);s>0&&n[s-1<<1]===t&&s--;for(let e=s;e0}getTokens(e,t,i){let n=null;if(t1&&(t=mt.x.getLanguageId(n[1])!==e),!t)return ut}if(!n||0===n.length){const i=new Uint32Array(2);return i[0]=t,i[1]=vt(e),i.buffer}return n[n.length-2]=t,0===n.byteOffset&&n.byteLength===n.buffer.byteLength?n.buffer:n}_ensureLine(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;const i=[];for(let e=0;e=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=gt.delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=gt.deleteEnding(this._lineTokens[t],e.startColumn-1);const i=e.endLineNumber-1;let n=null;i=this._len||(0!==t?(this._lineTokens[n]=gt.deleteEnding(this._lineTokens[n],e.column-1),this._lineTokens[n]=gt.insert(this._lineTokens[n],e.column-1,i),this._insertLines(e.lineNumber,t)):this._lineTokens[n]=gt.insert(this._lineTokens[n],e.column-1,i))}setMultilineTokens(e,t){if(0===e.length)return{changes:[]};const i=[];for(let n=0,o=e.length;n>>0}class _t{constructor(e){this._pieces=[],this._isComplete=!1,this._languageIdCodec=e}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let i=e;if(t.length>0){const n=t[0].getRange(),o=t[t.length-1].getRange();if(!n||!o)return e;i=e.plusRange(n).plusRange(o)}let o=null;for(let e=0,t=this._pieces.length;ei.endLineNumber){o=o||{index:e};break}if(n.removeTokens(i),n.isEmpty()){this._pieces.splice(e,1),e--,t--;continue}if(n.endLineNumberi.endLineNumber){o=o||{index:e};continue}const[s,r]=n.split(i);s.isEmpty()?o=o||{index:e}:r.isEmpty()||(this._pieces.splice(e,1,s,r),e++,t++,o=o||{index:e})}return o=o||{index:this._pieces.length},t.length>0&&(this._pieces=n.nK(this._pieces,o.index,t)),i}isComplete(){return this._isComplete}addSparseTokens(e,t){if(0===t.getLineContent().length)return t;const i=this._pieces;if(0===i.length)return t;const n=i[_t._findFirstPieceWithLine(i,e)].getLineTokens(e);if(!n)return t;const o=t.getCount(),s=n.getCount();let r=0;const a=[];let l=0,d=0;const c=(e,t)=>{e!==d&&(d=e,a[l++]=e,a[l++]=t)};for(let e=0;e>>0,d=~l>>>0;for(;rt)){for(;o>i&&e[o-1].startLineNumber<=t&&t<=e[o-1].endLineNumber;)o--;return o}n=o-1}}return i}acceptEdit(e,t,i,n,o){for(const s of this._pieces)s.acceptEdit(e,t,i,n,o)}}class bt extends Ze._{constructor(e,t,i,n,o,s){super(),this._languageService=e,this._languageConfigurationService=t,this._textModel=i,this._bracketPairsTextModelPart=n,this._languageId=o,this._attachedViews=s,this._semanticTokens=new _t(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new r.vl),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new r.vl),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new r.vl),this.onDidChangeTokens=this._onDidChangeTokens.event,this.grammarTokens=this._register(new wt(this._languageService.languageIdCodec,this._textModel,(()=>this._languageId),this._attachedViews)),this._register(this.grammarTokens.onDidChangeTokens((e=>{this._emitModelTokensChangedEvent(e)}))),this._register(this.grammarTokens.onDidChangeBackgroundTokenizationState((e=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()})))}handleLanguageConfigurationServiceChange(e){e.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})}handleDidChangeContent(e){if(e.isFlush)this._semanticTokens.flush();else if(!e.isEolChange)for(const t of e.changes){const[e,i,n]=(0,c.W)(t.text);this._semanticTokens.acceptEdit(t.range,e,i,n,t.text.length>0?t.text.charCodeAt(0):0)}this.grammarTokens.handleDidChangeContent(e)}handleDidChangeAttached(){this.grammarTokens.handleDidChangeAttached()}getLineTokens(e){this.validateLineNumber(e);const t=this.grammarTokens.getLineTokens(e);return this._semanticTokens.addSparseTokens(e,t)}_emitModelTokensChangedEvent(e){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(e),this._onDidChangeTokens.fire(e))}validateLineNumber(e){if(e<1||e>this._textModel.getLineCount())throw new s.D7("Illegal value for lineNumber")}get hasTokens(){return this.grammarTokens.hasTokens}resetTokenization(){this.grammarTokens.resetTokenization()}get backgroundTokenizationState(){return this.grammarTokens.backgroundTokenizationState}forceTokenization(e){this.validateLineNumber(e),this.grammarTokens.forceTokenization(e)}hasAccurateTokensForLine(e){return this.validateLineNumber(e),this.grammarTokens.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return this.validateLineNumber(e),this.grammarTokens.isCheapToTokenize(e)}tokenizeIfCheap(e){this.validateLineNumber(e),this.grammarTokens.tokenizeIfCheap(e)}getTokenTypeIfInsertingCharacter(e,t,i){return this.grammarTokens.getTokenTypeIfInsertingCharacter(e,t,i)}tokenizeLineWithEdit(e,t,i){return this.grammarTokens.tokenizeLineWithEdit(e,t,i)}setSemanticTokens(e,t){this._semanticTokens.set(e,t),this._emitModelTokensChangedEvent({semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const i=this._textModel.validateRange(this._semanticTokens.setPartial(e,t));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:i.startLineNumber,toLineNumber:i.endLineNumber}]})}getWordAtPosition(e){this.assertNotDisposed();const t=this._textModel.validatePosition(e),i=this._textModel.getLineContent(t.lineNumber),n=this.getLineTokens(t.lineNumber),o=n.findTokenIndexAtOffset(t.column-1),[s,r]=bt._findLanguageBoundaries(n,o),a=(0,Ge.Th)(t.column,this.getLanguageConfiguration(n.getLanguageId(o)).getWordDefinition(),i.substring(s,r),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a;if(o>0&&s===t.column-1){const[s,r]=bt._findLanguageBoundaries(n,o-1),a=(0,Ge.Th)(t.column,this.getLanguageConfiguration(n.getLanguageId(o-1)).getWordDefinition(),i.substring(s,r),s);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a}return null}getLanguageConfiguration(e){return this._languageConfigurationService.getLanguageConfiguration(e)}static _findLanguageBoundaries(e,t){const i=e.getLanguageId(t);let n=0;for(let o=t;o>=0&&e.getLanguageId(o)===i;o--)n=e.getStartOffset(o);let o=e.getLineContent().length;for(let n=t,s=e.getCount();n{const t=this.getLanguageId();-1!==e.changedLanguages.indexOf(t)&&this.resetTokenization()}))),this.resetTokenization(),this._register(n.onDidChangeVisibleRanges((({view:e,state:t})=>{if(t){let i=this._attachedViewStates.get(e);i||(i=new yt((()=>this.refreshRanges(i.lineRanges))),this._attachedViewStates.set(e,i)),i.handleStateChange(t)}else this._attachedViewStates.deleteAndDispose(e)})))}resetTokenization(e=!0){var t;this._tokens.flush(),null===(t=this._debugBackgroundTokens)||void 0===t||t.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new at(this._textModel.getLineCount())),e&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const[i,n]=(()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const e=Qe.dG.get(this.getLanguageId());if(!e)return[null,null];let t;try{t=e.getInitialState()}catch(e){return(0,s.dz)(e),[null,null]}return[e,t]})();if(this._tokenizer=i&&n?new rt(this._textModel.getLineCount(),i,this._textModel,this._languageIdCodec):null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const e={setTokens:e=>{this.setTokens(e)},backgroundTokenizationFinished:()=>{2!==this._backgroundTokenizationState&&(this._backgroundTokenizationState=2,this._onDidChangeBackgroundTokenizationState.fire())},setEndState:(e,t)=>{var i;if(!this._tokenizer)return;const n=this._tokenizer.store.getFirstInvalidEndStateLineNumber();null!==n&&e>=n&&(null===(i=this._tokenizer)||void 0===i||i.store.setEndState(e,t))}};i&&i.createBackgroundTokenizer&&!i.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=i.createBackgroundTokenizer(this._textModel,e)),this._backgroundTokenizer.value||this._textModel.isTooLargeForTokenization()||(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new ht(this._tokenizer,e),this._defaultBackgroundTokenizer.handleChanges()),(null==i?void 0:i.backgroundTokenizerShouldOnlyVerifyTokens)&&i.createBackgroundTokenizer?(this._debugBackgroundTokens=new ft(this._languageIdCodec),this._debugBackgroundStates=new at(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=i.createBackgroundTokenizer(this._textModel,{setTokens:e=>{var t;null===(t=this._debugBackgroundTokens)||void 0===t||t.setMultilineTokens(e,this._textModel)},backgroundTokenizationFinished(){},setEndState:(e,t)=>{var i;null===(i=this._debugBackgroundStates)||void 0===i||i.setEndState(e,t)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){var e;null===(e=this._defaultBackgroundTokenizer)||void 0===e||e.handleChanges()}handleDidChangeContent(e){var t,i,n;if(e.isFlush)this.resetTokenization(!1);else if(!e.isEolChange){for(const i of e.changes){const[e,n]=(0,c.W)(i.text);this._tokens.acceptEdit(i.range,e,n),null===(t=this._debugBackgroundTokens)||void 0===t||t.acceptEdit(i.range,e,n)}null===(i=this._debugBackgroundStates)||void 0===i||i.acceptChanges(e.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(e.changes),null===(n=this._defaultBackgroundTokenizer)||void 0===n||n.handleChanges()}}setTokens(e){const{changes:t}=this._tokens.setMultilineTokens(e,this._textModel);return t.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:t}),{changes:t}}refreshAllVisibleLineTokens(){const e=u.M.joinMany([...this._attachedViewStates].map((([e,t])=>t.lineRanges)));this.refreshRanges(e)}refreshRanges(e){for(const t of e)this.refreshRange(t.startLineNumber,t.endLineNumberExclusive-1)}refreshRange(e,t){var i,n;if(!this._tokenizer)return;e=Math.max(1,Math.min(this._textModel.getLineCount(),e)),t=Math.min(this._textModel.getLineCount(),t);const o=new nt,{heuristicTokens:s}=this._tokenizer.tokenizeHeuristically(o,e,t),r=this.setTokens(o.finalize());if(s)for(const e of r.changes)null===(i=this._backgroundTokenizer.value)||void 0===i||i.requestTokens(e.fromLineNumber,e.toLineNumber+1);null===(n=this._defaultBackgroundTokenizer)||void 0===n||n.checkFinished()}forceTokenization(e){var t,i;const n=new nt;null===(t=this._tokenizer)||void 0===t||t.updateTokensUntilLine(n,e),this.setTokens(n.finalize()),null===(i=this._defaultBackgroundTokenizer)||void 0===i||i.checkFinished()}hasAccurateTokensForLine(e){return!this._tokenizer||this._tokenizer.hasAccurateTokensForLine(e)}isCheapToTokenize(e){return!this._tokenizer||this._tokenizer.isCheapToTokenize(e)}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}getLineTokens(e){var t;const i=this._textModel.getLineContent(e),n=this._tokens.getTokens(this._textModel.getLanguageId(),e-1,i);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>e&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>e){const o=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),e-1,i);!n.equals(o)&&(null===(t=this._debugBackgroundTokenizer.value)||void 0===t?void 0:t.reportMismatchingTokens)&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(e)}return n}getTokenTypeIfInsertingCharacter(e,t,i){if(!this._tokenizer)return 0;const n=this._textModel.validatePosition(new g.y(e,t));return this.forceTokenization(n.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(n,i)}tokenizeLineWithEdit(e,t,i){if(!this._tokenizer)return null;const n=this._textModel.validatePosition(e);return this.forceTokenization(n.lineNumber),this._tokenizer.tokenizeLineWithEdit(n,t,i)}get hasTokens(){return this._tokens.hasTokens}}class yt extends a.jG{get lineRanges(){return this._lineRanges}constructor(e){super(),this._refreshTokens=e,this.runner=this._register(new qe.uC((()=>this.update()),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){(0,n.aI)(this._computedLineRanges,this._lineRanges,((e,t)=>e.equals(t)))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(e){this._lineRanges=e.visibleLineRanges,e.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}var Ct,kt=i(83455),St=i(38803),xt=function(e,t){return function(i,n){t(i,n,e)}};function Lt(e,t){let i;return i="string"==typeof e?function(e){const t=new Ke;return t.acceptChunk(e),t.finish()}(e):b.nk(e)?function(e){const t=new Ke;let i;for(;"string"==typeof(i=e.read());)t.acceptChunk(i);return t.finish()}(e):e,i.create(t)}let Dt=0;class Et{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;const e=[];let t=0,i=0;for(;;){const n=this._source.read();if(null===n)return this._eos=!0,0===t?null:e.join("");if(n.length>0&&(e[t++]=n,i+=n.length),i>=65536)return e.join("")}}}const It=()=>{throw new Error("Invalid change accessor")};let Nt=Ct=class extends a.jG{static resolveOptions(e,t){if(t.detectIndentation){const i=Z(e,t.tabSize,t.insertSpaces);return new b.X2({tabSize:i.tabSize,indentSize:"tabSize",insertSpaces:i.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL,bracketPairColorizationOptions:t.bracketPairColorizationOptions})}return new b.X2(t)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(e){return this._eventEmitter.slowEvent((t=>e(t.contentChangedEvent)))}onDidChangeContentOrInjectedText(e){return(0,a.qE)(this._eventEmitter.fastEvent((t=>e(t))),this._onDidChangeInjectedText.event((t=>e(t))))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(e,t,i,n=null,o,s,c){super(),this._undoRedoService=o,this._languageService=s,this._languageConfigurationService=c,this._onWillDispose=this._register(new r.vl),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new jt((e=>this.handleBeforeFireDecorationsChangedEvent(e)))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new r.vl),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new r.vl),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new r.vl),this._eventEmitter=this._register(new Ut),this._languageSelectionListener=this._register(new a.HE),this._deltaDecorationCallCnt=0,this._attachedViews=new $t,Dt++,this.id="$model"+Dt,this.isForSimpleWidget=i.isForSimpleWidget,this._associatedResource=null==n?d.r.parse("inmemory://model/"+Dt):n,this._attachedEditorCount=0;const{textBuffer:h,disposable:u}=Lt(e,i.defaultEOL);this._buffer=h,this._bufferDisposable=u,this._options=Ct.resolveOptions(this._buffer,i);const g="string"==typeof t?t:t.languageId;"string"!=typeof t&&(this._languageSelectionListener.value=t.onDidChange((()=>this._setLanguage(t.languageId)))),this._bracketPairs=this._register(new B(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new q.P(this,this._languageConfigurationService)),this._decorationProvider=this._register(new U(this)),this._tokenizationTextModelPart=new bt(this._languageService,this._languageConfigurationService,this,this._bracketPairs,g,this._attachedViews);const m=this._buffer.getLineCount(),f=this._buffer.getValueLengthInRange(new p.Q(1,1,m,this._buffer.getLineLength(m)+1),0);i.largeFileOptimizations?(this._isTooLargeForTokenization=f>Ct.LARGE_FILE_SIZE_THRESHOLD||m>Ct.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=f>Ct.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=f>Ct._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=l.tk(Dt),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Tt,this._commandManager=new K.z8(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange((()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()}))),this._languageService.requestRichLanguageFeatures(g),this._register(this._languageConfigurationService.onDidChange((e=>{this._bracketPairs.handleLanguageConfigurationServiceChange(e),this._tokenizationTextModelPart.handleLanguageConfigurationServiceChange(e)})))}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const e=new Ue([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e,this._bufferDisposable=a.jG.None}_assertNotDisposed(){if(this._isDisposed)throw new s.D7("Model is disposed!")}_emitContentChangedEvent(e,t){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(t),this._bracketPairs.handleDidChangeContent(t),this._eventEmitter.fire(new kt.Ic(e,t)))}setValue(e){if(this._assertNotDisposed(),null==e)throw(0,s.Qg)();const{textBuffer:t,disposable:i}=Lt(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,i)}_createContentChanged2(e,t,i,n,o,s,r,a){return{changes:[{range:e,rangeOffset:t,rangeLength:i,text:n}],eol:this._buffer.getEOL(),isEolChange:a,versionId:this.getVersionId(),isUndoing:o,isRedoing:s,isFlush:r}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueLengthInRange(i),o=this.getLineCount(),s=this.getLineMaxColumn(o);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new Tt,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new kt.HP([new kt.Wn],this._versionId,!1,!1),this._createContentChanged2(new p.Q(1,1,o,s),0,n,this.getValue(),!1,!1,!0,!1))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const i=this.getFullModelRange(),n=this.getValueLengthInRange(i),o=this.getLineCount(),s=this.getLineMaxColumn(o);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new kt.HP([new kt.mS],this._versionId,!1,!1),this._createContentChanged2(new p.Q(1,1,o,s),0,n,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let i=0,n=t.length;i0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const i=this._buffer.getLineCount();for(let n=1;n<=i;n++){const i=this._buffer.getLineLength(n);i>=1e4?t+=i:e+=i}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();const t=void 0!==e.tabSize?e.tabSize:this._options.tabSize,i=void 0!==e.indentSize?e.indentSize:this._options.originalIndentSize,n=void 0!==e.insertSpaces?e.insertSpaces:this._options.insertSpaces,o=void 0!==e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,s=void 0!==e.bracketColorizationOptions?e.bracketColorizationOptions:this._options.bracketPairColorizationOptions,r=new b.X2({tabSize:t,indentSize:i,insertSpaces:n,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:o,bracketPairColorizationOptions:s});if(this._options.equals(r))return;const a=this._options.createChangeEvent(r);this._options=r,this._bracketPairs.handleDidChangeOptions(a),this._decorationProvider.handleDidChangeOptions(a),this._onDidChangeOptions.fire(a)}detectIndentation(e,t){this._assertNotDisposed();const i=Z(this._buffer,t,e);this.updateOptions({insertSpaces:i.insertSpaces,tabSize:i.tabSize,indentSize:i.tabSize})}normalizeIndentation(e){return this._assertNotDisposed(),(0,h.P)(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(l._J.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map((e=>({range:e.range,text:null}))),(()=>null))}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();const t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();const t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new s.D7("Operation would exceed heap memory limits");const i=this.getFullModelRange(),n=this.getValueInRange(i,e);return t?this._buffer.getBOM()+n:n}createSnapshot(e=!1){return new Et(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const i=this.getFullModelRange(),n=this.getValueLengthInRange(i,e);return t?this._buffer.getBOM().length+n:n}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new s.D7("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new s.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new s.D7("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new s.D7("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new s.D7("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new s.D7("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),i=e.startLineNumber,n=e.startColumn;let o=Math.floor("number"!=typeof i||isNaN(i)?1:i),s=Math.floor("number"!=typeof n||isNaN(n)?1:n);if(o<1)o=1,s=1;else if(o>t)o=t,s=this.getLineMaxColumn(o);else if(s<=1)s=1;else{const e=this.getLineMaxColumn(o);s>=e&&(s=e)}const r=e.endLineNumber,a=e.endColumn;let l=Math.floor("number"!=typeof r||isNaN(r)?1:r),d=Math.floor("number"!=typeof a||isNaN(a)?1:a);if(l<1)l=1,d=1;else if(l>t)l=t,d=this.getLineMaxColumn(l);else if(d<=1)d=1;else{const e=this.getLineMaxColumn(l);d>=e&&(d=e)}return i===o&&n===s&&r===l&&a===d&&e instanceof p.Q&&!(e instanceof m.L)?e:new p.Q(o,s,l,d)}_isValidPosition(e,t,i){if("number"!=typeof e||"number"!=typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(1===t)return!0;if(t>this.getLineMaxColumn(e))return!1;if(1===i){const i=this._buffer.getLineCharCode(e,t-2);if(l.pc(i))return!1}return!0}_validatePosition(e,t,i){const n=Math.floor("number"!=typeof e||isNaN(e)?1:e),o=Math.floor("number"!=typeof t||isNaN(t)?1:t),s=this._buffer.getLineCount();if(n<1)return new g.y(1,1);if(n>s)return new g.y(s,this.getLineMaxColumn(s));if(o<=1)return new g.y(n,1);const r=this.getLineMaxColumn(n);if(o>=r)return new g.y(n,r);if(1===i){const e=this._buffer.getLineCharCode(n,o-2);if(l.pc(e))return new g.y(n,o-1)}return new g.y(n,o)}validatePosition(e){return this._assertNotDisposed(),e instanceof g.y&&this._isValidPosition(e.lineNumber,e.column,1)?e:this._validatePosition(e.lineNumber,e.column,1)}_isValidRange(e,t){const i=e.startLineNumber,n=e.startColumn,o=e.endLineNumber,s=e.endColumn;if(!this._isValidPosition(i,n,0))return!1;if(!this._isValidPosition(o,s,0))return!1;if(1===t){const e=n>1?this._buffer.getLineCharCode(i,n-2):0,t=s>1&&s<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,s-2):0,r=l.pc(e),a=l.pc(t);return!r&&!a}return!0}validateRange(e){if(this._assertNotDisposed(),e instanceof p.Q&&!(e instanceof m.L)&&this._isValidRange(e,1))return e;const t=this._validatePosition(e.startLineNumber,e.startColumn,0),i=this._validatePosition(e.endLineNumber,e.endColumn,0),n=t.lineNumber,o=t.column,s=i.lineNumber,r=i.column;{const e=o>1?this._buffer.getLineCharCode(n,o-2):0,t=r>1&&r<=this._buffer.getLineLength(s)?this._buffer.getLineCharCode(s,r-2):0,i=l.pc(e),a=l.pc(t);return i||a?n===s&&o===r?new p.Q(n,o-1,s,r-1):i&&a?new p.Q(n,o-1,s,r+1):i?new p.Q(n,o-1,s,r):new p.Q(n,o,s,r+1):new p.Q(n,o,s,r)}}modifyPosition(e,t){this._assertNotDisposed();const i=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,i)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new p.Q(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,i,n){return this._buffer.findMatchesLineByLine(e,t,i,n)}findMatches(e,t,i,n,o,s,r=999){this._assertNotDisposed();let a=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every((e=>p.Q.isIRange(e)))&&(a=t.map((e=>this.validateRange(e))))),null===a&&(a=[this.getFullModelRange()]),a=a.sort(((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn));const l=[];let d;if(l.push(a.reduce(((e,t)=>p.Q.areIntersecting(e,t)?e.plusRange(t):(l.push(e),t)))),!i&&e.indexOf("\n")<0){const t=new Te.lt(e,i,n,o).parseSearchRequest();if(!t)return[];d=e=>this.findMatchesLineByLine(e,t,s,r)}else d=t=>Te.hB.findMatches(this,new Te.lt(e,i,n,o),t,s,r);return l.map(d).reduce(((e,t)=>e.concat(t)),[])}findNextMatch(e,t,i,n,o,s){this._assertNotDisposed();const r=this.validatePosition(t);if(!i&&e.indexOf("\n")<0){const t=new Te.lt(e,i,n,o).parseSearchRequest();if(!t)return null;const a=this.getLineCount();let l=new p.Q(r.lineNumber,r.column,a,this.getLineMaxColumn(a)),d=this.findMatchesLineByLine(l,t,s,1);return Te.hB.findNextMatch(this,new Te.lt(e,i,n,o),r,s),d.length>0?d[0]:(l=new p.Q(1,1,r.lineNumber,this.getLineMaxColumn(r.lineNumber)),d=this.findMatchesLineByLine(l,t,s,1),d.length>0?d[0]:null)}return Te.hB.findNextMatch(this,new Te.lt(e,i,n,o),r,s)}findPreviousMatch(e,t,i,n,o,s){this._assertNotDisposed();const r=this.validatePosition(t);return Te.hB.findPreviousMatch(this,new Te.lt(e,i,n,o),r,s)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof b.Wo?e:new b.Wo(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let i=0,n=e.length;i({range:this.validateRange(e.range),text:e.text})));let n=!0;if(e)for(let t=0,o=e.length;to.endLineNumber,r=o.startLineNumber>t.endLineNumber;if(!n&&!r){s=!0;break}}if(!s){n=!1;break}}if(n)for(let e=0,n=this._trimAutoWhitespaceLines.length;et.endLineNumber||n===t.startLineNumber&&t.startColumn===o&&t.isEmpty()&&r&&r.length>0&&"\n"===r.charAt(0)||n===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&r&&r.length>0&&"\n"===r.charAt(r.length-1))){s=!1;break}}if(s){const e=new p.Q(n,1,n,o);t.push(new b.Wo(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,i,n)}_applyUndo(e,t,i,n){const o=e.map((e=>{const t=this.getPositionAt(e.newPosition),i=this.getPositionAt(e.newEnd);return{range:new p.Q(t.lineNumber,t.column,i.lineNumber,i.column),text:e.oldText}}));this._applyUndoRedoEdits(o,t,!0,!1,i,n)}_applyRedo(e,t,i,n){const o=e.map((e=>{const t=this.getPositionAt(e.oldPosition),i=this.getPositionAt(e.oldEnd);return{range:new p.Q(t.lineNumber,t.column,i.lineNumber,i.column),text:e.newText}}));this._applyUndoRedoEdits(o,t,!1,!0,i,n)}_applyUndoRedoEdits(e,t,i,n,o,s){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=i,this._isRedoing=n,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(o)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(s),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const i=this._validateEditOperations(e);return this._doApplyEdits(i,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const i=this._buffer.getLineCount(),o=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),s=this._buffer.getLineCount(),r=o.changes;if(this._trimAutoWhitespaceLines=o.trimAutoWhitespaceLineNumbers,0!==r.length){for(let e=0,t=r.length;e=0;t--){const i=l+t,n=f+t;y.takeFromEndWhile((e=>e.lineNumber>n));const o=y.takeFromEndWhile((e=>e.lineNumber===n));e.push(new kt.U0(i,this.getLineContent(n),o))}if(pe.lineNumbere.lineNumber===t))}e.push(new kt.bg(o+1,l+u,c,d))}t+=m}this._emitContentChangedEvent(new kt.HP(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:r,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===o.reverseEdits?void 0:o.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;const t=Array.from(e).map((e=>new kt.U0(e,this.getLineContent(e),this._getInjectedTextInLine(e))));this._onDidChangeInjectedText.fire(new kt.vn(t))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){const i={addDecoration:(t,i)=>this._deltaDecorationsImpl(e,[],[{range:t,options:i}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,zt(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,i)=>0===t.length&&0===i.length?[]:this._deltaDecorationsImpl(e,t,i)};let n=null;try{n=t(i)}catch(e){(0,s.dz)(e)}return i.addDecoration=It,i.changeDecoration=It,i.changeDecorationOptions=It,i.removeDecoration=It,i.deltaDecorations=It,n}deltaDecorations(e,t,i=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,s.dz)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(i,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,i){const n=e?this._decorations[e]:null;if(!n)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:Vt[i]}],!0)[0]:null;if(!t)return this._decorationsTree.delete(n),delete this._decorations[n.id],null;const o=this._validateRangeRelaxedNoAllocations(t),s=this._buffer.getOffsetAt(o.startLineNumber,o.startColumn),r=this._buffer.getOffsetAt(o.endLineNumber,o.endColumn);return this._decorationsTree.delete(n),n.reset(this.getVersionId(),s,r,o),n.setOptions(Vt[i]),this._decorationsTree.insert(n),n.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let e=0,i=t.length;ethis.getLineCount()?[]:this.getLinesDecorations(e,e,t,i)}getLinesDecorations(e,t,i=0,o=!1,s=!1){const r=this.getLineCount(),a=Math.min(r,Math.max(1,e)),l=Math.min(r,Math.max(1,t)),d=this.getLineMaxColumn(l),c=new p.Q(a,1,l,d),h=this._getDecorationsInRange(c,i,o,s);return(0,n.E4)(h,this._decorationProvider.getDecorationsInRange(c,i,o)),h}getDecorationsInRange(e,t=0,i=!1,o=!1,s=!1){const r=this.validateRange(e),a=this._getDecorationsInRange(r,t,i,s);return(0,n.E4)(a,this._decorationProvider.getDecorationsInRange(r,t,i,o)),a}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0,!1)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),i=t+this._buffer.getLineLength(e),n=this._decorationsTree.getInjectedTextInInterval(this,t,i,0);return kt.uK.fromDecorations(n).filter((t=>t.lineNumber===e))}getAllDecorations(e=0,t=!1){let i=this._decorationsTree.getAll(this,e,t,!1,!1);return i=i.concat(this._decorationProvider.getAllDecorations(e,t)),i}getAllMarginDecorations(e=0){return this._decorationsTree.getAll(this,e,!1,!1,!0)}_getDecorationsInRange(e,t,i,n){const o=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),s=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,o,s,t,i,n)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const i=this._decorations[e];if(!i)return;if(i.options.after){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(i.options.before){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}const n=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(n.startLineNumber,n.startColumn),s=this._buffer.getOffsetAt(n.endLineNumber,n.endColumn);this._decorationsTree.delete(i),i.reset(this.getVersionId(),o,s,n),this._decorationsTree.insert(i),this._onDidChangeDecorations.checkAffectedAndFire(i.options),i.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.endLineNumber),i.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(n.startLineNumber)}_changeDecorationOptionsImpl(e,t){const i=this._decorations[e];if(!i)return;const n=!(!i.options.overviewRuler||!i.options.overviewRuler.color),o=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(i.options),this._onDidChangeDecorations.checkAffectedAndFire(t),i.options.after||t.after){const e=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(i.options.before||t.before){const e=this._decorationsTree.getNodeRange(this,i);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}const s=n!==o,r=function(e){return!!e.after||!!e.before}(t)!==At(i);s||r?(this._decorationsTree.delete(i),i.setOptions(t),this._decorationsTree.insert(i)):i.setOptions(t)}_deltaDecorationsImpl(e,t,i,n=!1){const o=this.getVersionId(),s=t.length;let r=0;const a=i.length;let l=0;this._onDidChangeDecorations.beginDeferredEmit();try{const d=new Array(a);for(;rthis._setLanguage(e.languageId,t))),this._setLanguage(e.languageId,t))}_setLanguage(e,t){this.tokenization.setLanguageId(e,t),this._languageService.requestRichLanguageFeatures(e)}getLanguageIdAtPosition(e,t){return this.tokenization.getLanguageIdAtPosition(e,t)}getWordAtPosition(e){return this._tokenizationTextModelPart.getWordAtPosition(e)}getWordUntilPosition(e){return this._tokenizationTextModelPart.getWordUntilPosition(e)}normalizePosition(e,t){return e}getLineIndentColumn(e){return function(e){let t=0;for(const i of e){if(" "!==i&&"\t"!==i)break;t++}return t}(this.getLineContent(e))+1}};function Mt(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function At(e){return!!e.options.after||!!e.options.before}Nt._MODEL_SYNC_LIMIT=52428800,Nt.LARGE_FILE_SIZE_THRESHOLD=20971520,Nt.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5,Nt.LARGE_FILE_HEAP_OPERATION_THRESHOLD=268435456,Nt.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:f.R.tabSize,indentSize:f.R.indentSize,insertSpaces:f.R.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:f.R.trimAutoWhitespace,largeFileOptimizations:f.R.largeFileOptimizations,bracketPairColorizationOptions:f.R.bracketPairColorizationOptions},Nt=Ct=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([xt(4,St.$D),xt(5,v.L),xt(6,_.JZ)],Nt);class Tt{constructor(){this._decorationsTree0=new de,this._decorationsTree1=new de,this._injectedTextDecorationsTree=new de}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1,!1)}_ensureNodesHaveRanges(e,t){for(const i of t)null===i.range&&(i.range=e.getRangeAt(i.cachedAbsoluteStart,i.cachedAbsoluteEnd));return t}getAllInInterval(e,t,i,n,o,s){const r=e.getVersionId(),a=this._intervalSearch(t,i,n,o,r,s);return this._ensureNodesHaveRanges(e,a)}_intervalSearch(e,t,i,n,o,s){const r=this._decorationsTree0.intervalSearch(e,t,i,n,o,s),a=this._decorationsTree1.intervalSearch(e,t,i,n,o,s),l=this._injectedTextDecorationsTree.intervalSearch(e,t,i,n,o,s);return r.concat(a).concat(l)}getInjectedTextInInterval(e,t,i,n){const o=e.getVersionId(),s=this._injectedTextDecorationsTree.intervalSearch(t,i,n,!1,o,!1);return this._ensureNodesHaveRanges(e,s).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAllInjectedText(e,t){const i=e.getVersionId(),n=this._injectedTextDecorationsTree.search(t,!1,i,!1);return this._ensureNodesHaveRanges(e,n).filter((e=>e.options.showIfCollapsed||!e.range.isEmpty()))}getAll(e,t,i,n,o){const s=e.getVersionId(),r=this._search(t,i,n,s,o);return this._ensureNodesHaveRanges(e,r)}_search(e,t,i,n,o){if(i)return this._decorationsTree1.search(e,t,n,o);{const i=this._decorationsTree0.search(e,t,n,o),s=this._decorationsTree1.search(e,t,n,o),r=this._injectedTextDecorationsTree.search(e,t,n,o);return i.concat(s).concat(r)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),i=this._decorationsTree1.collectNodesFromOwner(e),n=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(i).concat(n)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),i=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(i)}insert(e){At(e)?this._injectedTextDecorationsTree.insert(e):Mt(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){At(e)?this._injectedTextDecorationsTree.delete(e):Mt(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const i=e.getVersionId();return t.cachedVersionId!==i&&this._resolveNode(t,i),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){At(e)?this._injectedTextDecorationsTree.resolveNode(e,t):Mt(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,i,n){this._decorationsTree0.acceptReplace(e,t,i,n),this._decorationsTree1.acceptReplace(e,t,i,n),this._injectedTextDecorationsTree.acceptReplace(e,t,i,n)}}function Rt(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class Pt{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class Ot extends Pt{constructor(e){super(e),this._resolvedColor=null,this.position="number"==typeof e.position?e.position:b.A5.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"==typeof e)return e;const i=e?t.getColor(e.id):null;return i?i.toString():""}}class Ft{constructor(e){var t;this.position=null!==(t=null==e?void 0:e.position)&&void 0!==t?t:b.ZS.Center,this.persistLane=null==e?void 0:e.persistLane}}class Bt extends Pt{constructor(e){var t,i;super(e),this.position=e.position,this.sectionHeaderStyle=null!==(t=e.sectionHeaderStyle)&&void 0!==t?t:null,this.sectionHeaderText=null!==(i=e.sectionHeaderText)&&void 0!==i?i:null}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"==typeof e?o.Q1.fromHex(e):t.getColor(e.id)}}class Wt{static from(e){return e instanceof Wt?e:new Wt(e)}constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=e.attachedData||null,this.cursorStops=e.cursorStops||null}}class Ht{static register(e){return new Ht(e)}static createDynamic(e){return new Ht(e)}constructor(e){var t,i,n,o,s,r;this.description=e.description,this.blockClassName=e.blockClassName?Rt(e.blockClassName):null,this.blockDoesNotCollapse=null!==(t=e.blockDoesNotCollapse)&&void 0!==t?t:null,this.blockIsAfterEnd=null!==(i=e.blockIsAfterEnd)&&void 0!==i?i:null,this.blockPadding=null!==(n=e.blockPadding)&&void 0!==n?n:null,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?Rt(e.className):null,this.shouldFillLineOnLineBreak=null!==(o=e.shouldFillLineOnLineBreak)&&void 0!==o?o:null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=e.lineNumberHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new Ot(e.overviewRuler):null,this.minimap=e.minimap?new Bt(e.minimap):null,this.glyphMargin=e.glyphMarginClassName?new Ft(e.glyphMargin):null,this.glyphMarginClassName=e.glyphMarginClassName?Rt(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?Rt(e.linesDecorationsClassName):null,this.lineNumberClassName=e.lineNumberClassName?Rt(e.lineNumberClassName):null,this.linesDecorationsTooltip=e.linesDecorationsTooltip?l.jy(e.linesDecorationsTooltip):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?Rt(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?Rt(e.marginClassName):null,this.inlineClassName=e.inlineClassName?Rt(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?Rt(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?Rt(e.afterContentClassName):null,this.after=e.after?Wt.from(e.after):null,this.before=e.before?Wt.from(e.before):null,this.hideInCommentTokens=null!==(s=e.hideInCommentTokens)&&void 0!==s&&s,this.hideInStringTokens=null!==(r=e.hideInStringTokens)&&void 0!==r&&r}}Ht.EMPTY=Ht.register({description:"empty"});const Vt=[Ht.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),Ht.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),Ht.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),Ht.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function zt(e){return e instanceof Ht?e:Ht.createDynamic(e)}class jt extends a.jG{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new r.vl),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._affectsLineNumber=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){var e;this._deferredCnt--,0===this._deferredCnt&&(this._shouldFireDeferred&&this.doFire(),null===(e=this._affectedInjectedTextLines)||void 0===e||e.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){var t,i;this._affectsMinimap||(this._affectsMinimap=!!(null===(t=e.minimap)||void 0===t?void 0:t.position)),this._affectsOverviewRuler||(this._affectsOverviewRuler=!!(null===(i=e.overviewRuler)||void 0===i?void 0:i.color)),this._affectsGlyphMargin||(this._affectsGlyphMargin=!!e.glyphMarginClassName),this._affectsLineNumber||(this._affectsLineNumber=!!e.lineNumberClassName),this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){0===this._deferredCnt?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin,affectsLineNumber:this._affectsLineNumber};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(e)}}class Ut extends a.jG{constructor(){super(),this._fastEmitter=this._register(new r.vl),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new r.vl),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}class $t{constructor(){this._onDidChangeVisibleRanges=new r.vl,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const e=new Kt((t=>{this._onDidChangeVisibleRanges.fire({view:e,state:t})}));return this._views.add(e),e}detachView(e){this._views.delete(e),this._onDidChangeVisibleRanges.fire({view:e,state:void 0})}}class Kt{constructor(e){this.handleStateChange=e}setVisibleLines(e,t){const i=e.map((e=>new u.M(e.startLineNumber,e.endLineNumber+1)));this.handleStateChange({visibleLineRanges:i,stabilized:t})}}},32177:(e,t,i)=>{"use strict";i.d(t,{_:()=>o});var n=i(10998);class o extends n.jG{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}},104:(e,t,i)=>{"use strict";i.d(t,{W5:()=>g,dr:()=>d,hB:()=>h,lt:()=>l,wC:()=>u});var n=i(16844),o=i(82862),s=i(15365),r=i(28061),a=i(66055);class l{constructor(e,t,i,n){this.searchString=e,this.isRegex=t,this.matchCase=i,this.wordSeparators=n}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?function(e){if(!e||0===e.length)return!1;for(let t=0,i=e.length;t=i)break;const n=e.charCodeAt(t);if(110===n||114===n||87===n)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=n.OS(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(e){return null}if(!t)return null;let i=!this.isRegex&&!e;return i&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(i=this.matchCase),new a.L5(t,this.wordSeparators?(0,o.i)(this.wordSeparators,[]):null,i?this.searchString:null)}}function d(e,t,i){if(!i)return new a.Dg(e,null);const n=[];for(let e=0,i=t.length;e=e?n=o-1:t[o+1]>=e?(i=o,n=o):i=o+1}return i+1}}class h{static findMatches(e,t,i,n,o){const s=t.parseSearchRequest();return s?s.regex.multiline?this._doFindMatchesMultiline(e,i,new g(s.wordSeparators,s.regex),n,o):this._doFindMatchesLineByLine(e,i,s,n,o):[]}static _getMultilineMatchRange(e,t,i,n,o,s){let a,l,d=0;if(n?(d=n.findLineFeedCountBeforeOffset(o),a=t+o+d):a=t+o,n){const e=n.findLineFeedCountBeforeOffset(o+s.length)-d;l=a+s.length+e}else l=a+s.length;const c=e.getPositionAt(a),h=e.getPositionAt(l);return new r.Q(c.lineNumber,c.column,h.lineNumber,h.column)}static _doFindMatchesMultiline(e,t,i,n,o){const s=e.getOffsetAt(t.getStartPosition()),r=e.getValueInRange(t,1),a="\r\n"===e.getEOL()?new c(r):null,l=[];let h,u=0;for(i.reset(0);h=i.next(r);)if(l[u++]=d(this._getMultilineMatchRange(e,s,r,a,h.index,h[0]),h,n),u>=o)return l;return l}static _doFindMatchesLineByLine(e,t,i,n,o){const s=[];let r=0;if(t.startLineNumber===t.endLineNumber){const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return r=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,r,s,n,o),s}const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);r=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,r,s,n,o);for(let a=t.startLineNumber+1;a=c))return o;return o}const p=new g(e.wordSeparators,e.regex);let m;p.reset(0);do{if(m=p.next(t),m&&(s[o++]=d(new r.Q(i,m.index+1+n,i,m.index+1+m[0].length+n),m,l),o>=c))return o}while(m);return o}static findNextMatch(e,t,i,n){const o=t.parseSearchRequest();if(!o)return null;const s=new g(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindNextMatchMultiline(e,i,s,n):this._doFindNextMatchLineByLine(e,i,s,n)}static _doFindNextMatchMultiline(e,t,i,n){const o=new s.y(t.lineNumber,1),a=e.getOffsetAt(o),l=e.getLineCount(),h=e.getValueInRange(new r.Q(o.lineNumber,o.column,l,e.getLineMaxColumn(l)),1),u="\r\n"===e.getEOL()?new c(h):null;i.reset(t.column-1);const g=i.next(h);return g?d(this._getMultilineMatchRange(e,a,h,u,g.index,g[0]),g,n):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new s.y(1,1),i,n):null}static _doFindNextMatchLineByLine(e,t,i,n){const o=e.getLineCount(),s=t.lineNumber,r=e.getLineContent(s),a=this._findFirstMatchInLine(i,r,s,t.column,n);if(a)return a;for(let t=1;t<=o;t++){const r=(s+t-1)%o,a=e.getLineContent(r+1),l=this._findFirstMatchInLine(i,a,r+1,1,n);if(l)return l}return null}static _findFirstMatchInLine(e,t,i,n,o){e.reset(n-1);const s=e.next(t);return s?d(new r.Q(i,s.index+1,i,s.index+1+s[0].length),s,o):null}static findPreviousMatch(e,t,i,n){const o=t.parseSearchRequest();if(!o)return null;const s=new g(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindPreviousMatchMultiline(e,i,s,n):this._doFindPreviousMatchLineByLine(e,i,s,n)}static _doFindPreviousMatchMultiline(e,t,i,n){const o=this._doFindMatchesMultiline(e,new r.Q(1,1,t.lineNumber,t.column),i,n,9990);if(o.length>0)return o[o.length-1];const a=e.getLineCount();return t.lineNumber!==a||t.column!==e.getLineMaxColumn(a)?this._doFindPreviousMatchMultiline(e,new s.y(a,e.getLineMaxColumn(a)),i,n):null}static _doFindPreviousMatchLineByLine(e,t,i,n){const o=e.getLineCount(),s=t.lineNumber,r=e.getLineContent(s).substring(0,t.column-1),a=this._findLastMatchInLine(i,r,s,n);if(a)return a;for(let t=1;t<=o;t++){const r=(o+s-t-1)%o,a=e.getLineContent(r+1),l=this._findLastMatchInLine(i,a,r+1,n);if(l)return l}return null}static _findLastMatchInLine(e,t,i,n){let o,s=null;for(e.reset(0);o=e.next(t);)s=d(new r.Q(i,o.index+1,i,o.index+1+o[0].length),o,n);return s}}function u(e,t,i,n,o){return function(e,t,i,n,o){if(0===n)return!0;const s=t.charCodeAt(n-1);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(o>0){const i=t.charCodeAt(n);if(0!==e.get(i))return!0}return!1}(e,t,0,n,o)&&function(e,t,i,n,o){if(n+o===i)return!0;const s=t.charCodeAt(n+o);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(o>0){const i=t.charCodeAt(n+o-1);if(0!==e.get(i))return!0}return!1}(e,t,i,n,o)}class g{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let i;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(i=this._searchRegex.exec(e),!i)return null;const o=i.index,s=i[0].length;if(o===this._prevMatchStartIndex&&s===this._prevMatchLength){if(0===s){n.Z5(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=o,this._prevMatchLength=s,!this._wordSeparators||u(this._wordSeparators,e,t,o,s))return i}while(i);return null}}},50969:(e,t,i)=>{"use strict";function n(e,t){let i=0,n=0;const o=e.length;for(;nn})},93059:(e,t,i)=>{"use strict";i.d(t,{r:()=>g});var n=i(78903),o=i(2106),s=i(68387),r=i(37264),a=i(15365),l=i(28061),d=i(93702),c=i(47317),h=i(42783);class u{static chord(e,t){return(0,s.m5)(e,t)}}function g(){return{editor:void 0,languages:void 0,CancellationTokenSource:n.Qi,Emitter:o.vl,KeyCode:h.DD,KeyMod:u,Position:a.y,Range:l.Q,Selection:d.L,SelectionDirection:h.SB,MarkerSeverity:h.cj,MarkerTag:h.d_,Uri:r.r,Token:c.ou}}u.CtrlCmd=2048,u.Shift=1024,u.Alt=512,u.WinCtrl=256},90304:(e,t,i)=>{"use strict";i.d(t,{w:()=>n});const n=(0,i(82399).u1)("editorWorkerService")},12060:(e,t,i)=>{"use strict";i.d(t,{U:()=>u});var n=i(22344),o=i(27992),s=i(62992),r=i(88195),a=i(66726),l=i(82399),d=i(46441),c=i(13072),h=function(e,t){return function(i,n){t(i,n,e)}};const u=(0,l.u1)("ILanguageFeatureDebounceService");var g;!function(e){const t=new WeakMap;let i=0;e.of=function(e){let n=t.get(e);return void 0===n&&(n=++i,t.set(e,n)),n}}(g||(g={}));class p{constructor(e){this._default=e}get(e){return this._default}update(e,t){return this._default}default(){return this._default}}class m{constructor(e,t,i,n,s,r){this._logService=e,this._name=t,this._registry=i,this._default=n,this._min=s,this._max=r,this._cache=new o.qK(50,.7)}_key(e){return e.id+this._registry.all(e).reduce(((e,t)=>(0,n.sN)(g.of(t),e)),0)}get(e){const t=this._key(e),i=this._cache.get(t);return i?(0,s.qE)(i.value,this._min,this._max):this.default()}update(e,t){const i=this._key(e);let n=this._cache.get(i);n||(n=new s.mu(6),this._cache.set(i,n));const o=(0,s.qE)(n.update(t),this._min,this._max);return(0,c.v$)(e.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${e.uri.toString()} is ${o}ms`),o}_overall(){const e=new s.Uq;for(const[,t]of this._cache)e.update(t.value);return e.value}default(){const e=0|this._overall()||this._default;return(0,s.qE)(e,this._min,this._max)}}let f=class{constructor(e,t){this._logService=e,this._data=new Map,this._isDev=t.isExtensionDevelopment||!t.isBuilt}for(e,t,i){var n,o,s;const r=null!==(n=null==i?void 0:i.min)&&void 0!==n?n:50,a=null!==(o=null==i?void 0:i.max)&&void 0!==o?o:r**2,l=null!==(s=null==i?void 0:i.key)&&void 0!==s?s:void 0,d=`${g.of(e)},${r}${l?","+l:""}`;let c=this._data.get(d);return c||(this._isDev?(this._logService.debug(`[DEBOUNCE: ${t}] is disabled in developed mode`),c=new p(1.5*r)):c=new m(this._logService,t,e,0|this._overallAverage()||1.5*r,r,a),this._data.set(d,c)),c}_overallAverage(){const e=new s.Uq;for(const t of this._data.values())e.update(t.default());return e.value}};f=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([h(0,d.rr),h(1,r.k)],f),(0,a.v)(u,f,1)},52230:(e,t,i)=>{"use strict";i.d(t,{u:()=>n});const n=(0,i(82399).u1)("ILanguageFeaturesService")},80886:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});const n=(0,i(82399).u1)("markerDecorationsService")},64830:(e,t,i)=>{"use strict";i.d(t,{S:()=>n});const n=(0,i(82399).u1)("modelService")},37042:(e,t,i)=>{"use strict";i.d(t,{b:()=>n});const n=(0,i(82399).u1)("textModelService")},9520:(e,t,i)=>{"use strict";i.d(t,{i:()=>g,b:()=>p}),i(15910);var n=i(89044),o=i(46441),s=i(15365),r=i(28061),a=i(3902);class l{static create(e,t){return new l(e,new d(t))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(e,t){this._startLineNumber=e,this._tokens=t,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(e){return this._startLineNumber<=e&&e<=this._endLineNumber?this._tokens.getLineTokens(e-this._startLineNumber):null}getRange(){const e=this._tokens.getRange();return e?new r.Q(this._startLineNumber+e.startLineNumber,e.startColumn,this._startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(t,e.startColumn-1,i,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber,[n,o,s]=this._tokens.split(t,e.startColumn-1,i,e.endColumn-1);return[new l(this._startLineNumber,n),new l(this._startLineNumber+s,o)]}applyEdit(e,t){const[i,n,o]=(0,a.W)(t);this.acceptEdit(e,i,n,o,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,i,n,o){this._acceptDeleteRange(e),this._acceptInsertText(new s.y(e.startLineNumber,e.startColumn),t,i,n,o),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this._startLineNumber,i=e.endLineNumber-this._startLineNumber;if(i<0){const e=i-t;return void(this._startLineNumber-=e)}const n=this._tokens.getMaxDeltaLine();if(!(t>=n+1)){if(t<0&&i>=n+1)return this._startLineNumber=0,void this._tokens.clear();if(t<0){const n=-t;this._startLineNumber-=n,this._tokens.acceptDeleteRange(e.startColumn-1,0,0,i,e.endColumn-1)}else this._tokens.acceptDeleteRange(0,t,e.startColumn-1,i,e.endColumn-1)}}_acceptInsertText(e,t,i,n,o){if(0===t&&0===i)return;const s=e.lineNumber-this._startLineNumber;s<0?this._startLineNumber+=t:s>=this._tokens.getMaxDeltaLine()+1||this._tokens.acceptInsertText(s,e.column-1,t,i,n,o)}}class d{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){const t=[];for(let i=0;ie)){let o=n;for(;o>t&&this._getDeltaLine(o-1)===e;)o--;let s=n;for(;se||c===e&&u>=t)&&(ce||d===e&&g>=t){if(do?p-=o-i:p=i;else if(u===t&&g===i){if(!(u===n&&p>o)){d=!0;continue}p-=o-i}else if(uo)){d=!0;continue}u=t,g=i,p=g+(p-o)}else if(u>n){if(0===a&&!d){l=r;break}u-=a}else{if(!(u===n&&g>=o))throw new Error("Not possible!");e&&0===u&&(g+=e,p+=e),u-=a,g-=o-i,p-=o-i}const f=4*l;s[f]=u,s[f+1]=g,s[f+2]=p,s[f+3]=m,l++}this._tokenCount=l}acceptInsertText(e,t,i,n,o,s){const r=0===i&&1===n&&(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122),a=this._tokens,l=this._tokenCount;for(let s=0;s0&&t>=1;const n=this._themeService.getColorTheme().getTokenStyleMetadata(o,r,i);void 0===n?s=2147483647:(s=0,void 0!==n.italic&&(s|=1|(n.italic?1:0)<<11),void 0!==n.bold&&(s|=2|(n.bold?2:0)<<11),void 0!==n.underline&&(s|=4|(n.underline?4:0)<<11),void 0!==n.strikethrough&&(s|=8|(n.strikethrough?8:0)<<11),n.foreground&&(s|=16|n.foreground<<15),0===s&&(s=2147483647))}else s=2147483647,o="not-in-legend";this._hashTable.add(e,t,n,s)}return s}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}warnInvalidLengthSemanticTokens(e,t){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${e}, column ${t}`))}warnInvalidEditStart(e,t,i,n,o){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${e}, resultId: ${t}) at edit #${i}: The provided start offset ${n} is outside the previous data (length ${o}).`))}};function p(e,t,i){const n=e.data,o=e.data.length/5|0,s=Math.max(Math.ceil(o/1024),400),r=[];let a=0,d=1,c=0;for(;ae&&0===n[5*t];)t--;if(t-1===e){let e=h;for(;e+1l)t.warnOverlappingSemanticTokens(r,l+1);else{const e=t.getMetadata(v,_,i);2147483647!==e&&(0===p&&(p=r),u[g]=r-p,u[g+1]=l,u[g+2]=h,u[g+3]=e,g+=4,m=r,f=h)}d=r,c=l,a++}g!==u.length&&(u=u.subarray(0,g));const v=l.create(p,u);r.push(v)}return r}g=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([u(1,n.Gy),u(2,h.L),u(3,o.rr)],g);class m{constructor(e,t,i,n){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=i,this.metadata=n,this.next=null}}class f{constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=f._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=f._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1{"use strict";i.d(t,{F:()=>n});const n=(0,i(82399).u1)("semanticTokensStylingService")},41504:(e,t,i)=>{"use strict";i.d(t,{J:()=>s,U:()=>o});var n=i(82399);const o=(0,n.u1)("textResourceConfigurationService"),s=(0,n.u1)("textResourcePropertiesService")},49887:(e,t,i)=>{"use strict";i.d(t,{P:()=>l});var n=i(28061),o=i(104),s=i(16844),r=i(87110),a=i(18782);class l{static computeUnicodeHighlights(e,t,i){const l=i?i.startLineNumber:1,c=i?i.endLineNumber:e.getLineCount(),h=new d(t),u=h.getCandidateCodePoints();let g;var p;g="allNonBasicAscii"===u?new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):new RegExp((p=Array.from(u),`[${s.bm(p.map((e=>String.fromCodePoint(e))).join(""))}]`),"g");const m=new o.W5(null,g),f=[];let v,_=!1,b=0,w=0,y=0;e:for(let t=l,i=c;t<=i;t++){const i=e.getLineContent(t),o=i.length;m.reset(0);do{if(v=m.next(i),v){let e=v.index,l=v.index+v[0].length;if(e>0){const t=i.charCodeAt(e-1);s.pc(t)&&e--}if(l+1=i){_=!0;break e}f.push(new n.Q(t,e+1,t,l+1))}}}while(v)}return{ranges:f,hasMore:_,ambiguousCharacterCount:b,invisibleCharacterCount:w,nonBasicAsciiCharacterCount:y}}static computeUnicodeHighlightReason(e,t){const i=new d(t);switch(i.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const n=e.codePointAt(0),o=i.ambiguousCharacters.getPrimaryConfusable(n),r=s.tl.getLocales().filter((e=>!s.tl.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(n)));return{kind:0,confusableWith:String.fromCodePoint(o),notAmbiguousInLocales:r}}case 1:return{kind:2}}}}class d{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=s.tl.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of s.y_.codePoints)c(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const i=e.codePointAt(0);if(this.allowedCodePoints.has(i))return 0;if(this.options.nonBasicASCII)return 1;let n=!1,o=!1;if(t)for(const e of t){const t=e.codePointAt(0),i=s.aC(e);n=n||i,i||this.ambiguousCharacters.isAmbiguous(t)||s.y_.isInvisibleCharacter(t)||(o=!0)}return!n&&o?0:this.options.invisibleCharacters&&!c(e)&&s.y_.isInvisibleCharacter(i)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(i)?3:0}}function c(e){return" "===e||"\n"===e||"\t"===e}},42783:(e,t,i)=>{"use strict";var n,o,s,r,a,l,d,c,h,u,g,p,m,f,v,_,b,w,y,C,k,S,x,L,D,E,I,N,M,A,T,R,P,O,F,B,W,H,V,z,j,U,$,K,q,G;i.d(t,{A5:()=>T,Ah:()=>R,DD:()=>S,DO:()=>O,Gn:()=>n,H_:()=>U,Ic:()=>P,Io:()=>r,Kb:()=>u,M$:()=>_,OV:()=>N,QP:()=>a,Qj:()=>d,R3:()=>D,SB:()=>H,U7:()=>$,VW:()=>w,VX:()=>E,WA:()=>z,WU:()=>f,XR:()=>W,YT:()=>M,ZS:()=>v,_E:()=>s,cj:()=>x,dE:()=>A,d_:()=>L,e0:()=>g,h5:()=>c,hS:()=>I,hW:()=>F,jT:()=>V,kK:()=>q,kf:()=>m,l:()=>b,m9:()=>K,of:()=>h,ok:()=>o,ov:()=>B,p2:()=>p,qw:()=>C,r4:()=>y,sm:()=>k,t7:()=>l,tJ:()=>G,v0:()=>j}),function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(n||(n={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(o||(o={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(s||(s={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(r||(r={})),function(e){e[e.Deprecated=1]="Deprecated"}(a||(a={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(l||(l={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(d||(d={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(c||(c={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(h||(h={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(u||(u={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(g||(g={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"}(p||(p={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(m||(m={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(f||(f={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(v||(v={})),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(_||(_={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(b||(b={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(w||(w={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(y||(y={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(C||(C={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(k||(k={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"}(S||(S={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(x||(x={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(L||(L={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(D||(D={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(E||(E={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(I||(I={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(N||(N={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(M||(M={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(A||(A={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(T||(T={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(R||(R={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"}(P||(P={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(O||(O={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(F||(F={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(B||(B={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(W||(W={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(H||(H={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(V||(V={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(z||(z={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(j||(j={})),function(e){e[e.Deprecated=1]="Deprecated"}(U||(U={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}($||($={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(K||(K={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(q||(q={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(G||(G={}))},45933:(e,t,i)=>{"use strict";i.d(t,{E6:()=>d,Hw:()=>o,YN:()=>n,gf:()=>r,n9:()=>a,oq:()=>s,tu:()=>c,vp:()=>l});var n,o,s,r,a,l,d,c,h=i(3765);!function(e){e.inspectTokensAction=h.k("inspectTokens","Developer: Inspect Tokens")}(n||(n={})),function(e){e.gotoLineActionLabel=h.k("gotoLineActionLabel","Go to Line/Column...")}(o||(o={})),function(e){e.helpQuickAccessActionLabel=h.k("helpQuickAccess","Show all Quick Access Providers")}(s||(s={})),function(e){e.quickCommandActionLabel=h.k("quickCommandActionLabel","Command Palette"),e.quickCommandHelp=h.k("quickCommandActionHelp","Show And Run Commands")}(r||(r={})),function(e){e.quickOutlineActionLabel=h.k("quickOutlineActionLabel","Go to Symbol..."),e.quickOutlineByCategoryActionLabel=h.k("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")}(a||(a={})),function(e){e.editorViewAccessibleLabel=h.k("editorViewAccessibleLabel","Editor content"),e.accessibilityHelpMessage=h.k("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")}(l||(l={})),function(e){e.toggleHighContrast=h.k("toggleHighContrast","Toggle High Contrast Theme")}(d||(d={})),function(e){e.bulkEditServiceSummary=h.k("bulkEditServiceSummary","Made {0} edits in {1} files")}(c||(c={}))},83455:(e,t,i)=>{"use strict";i.d(t,{E$:()=>r,HP:()=>d,Ic:()=>h,U0:()=>s,Wn:()=>n,bg:()=>a,mS:()=>l,uK:()=>o,vn:()=>c});class n{constructor(){this.changeType=1}}class o{static applyInjectedText(e,t){if(!t||0===t.length)return e;let i="",n=0;for(const o of t)i+=e.substring(n,o.column-1),n=o.column-1,i+=o.options.content;return i+=e.substring(n),i}static fromDecorations(e){const t=[];for(const i of e)i.options.before&&i.options.before.content.length>0&&t.push(new o(i.ownerId,i.range.startLineNumber,i.range.startColumn,i.options.before,0)),i.options.after&&i.options.after.content.length>0&&t.push(new o(i.ownerId,i.range.endLineNumber,i.range.endColumn,i.options.after,1));return t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber)),t}constructor(e,t,i,n,o){this.ownerId=e,this.lineNumber=t,this.column=i,this.options=n,this.order=o}}class s{constructor(e,t,i){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=i}}class r{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class a{constructor(e,t,i,n){this.changeType=4,this.injectedTexts=n,this.fromLineNumber=e,this.toLineNumber=t,this.detail=i}}class l{constructor(){this.changeType=5}}class d{constructor(e,t,i,n){this.changes=e,this.versionId=t,this.isUndoing=i,this.isRedoing=n,this.resultingSelection=null}containsEvent(e){for(let t=0,i=this.changes.length;t{"use strict";var n;i.d(t,{N6:()=>n,TH:()=>o,pv:()=>s}),function(e){e[e.Disabled=0]="Disabled",e[e.EnabledForActive=1]="EnabledForActive",e[e.Enabled=2]="Enabled"}(n||(n={}));class o{constructor(e,t,i,n,o,s){if(this.visibleColumn=e,this.column=t,this.className=i,this.horizontalLine=n,this.forWrappedLinesAfterColumn=o,this.forWrappedLinesBeforeOrAtColumn=s,-1!==e==(-1!==t))throw new Error}}class s{constructor(e,t){this.top=e,this.endColumn=t}}},72564:(e,t,i)=>{"use strict";i.d(t,{d:()=>s});var n=i(2106),o=i(10998);class s{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new n.vl,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),(0,o.s)((()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))}))}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){var i;null===(i=this._factories.get(e))||void 0===i||i.dispose();const n=new r(this,e,t);return this._factories.set(e,n),(0,o.s)((()=>{const t=this._factories.get(e);t&&t===n&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const i=this._factories.get(e);return!i||i.isResolved?null:(await i.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class r extends o.jG{get isResolved(){return this._isResolved}constructor(e,t,i){super(),this._registry=e,this._languageId=t,this._factory=i,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const e=await this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))}}},57445:(e,t,i)=>{"use strict";i.d(t,{T:()=>r,f:()=>o});var n=i(15910);class o{static createEmpty(e,t){const i=o.defaultTokenMetadata,n=new Uint32Array(2);return n[0]=e.length,n[1]=i,new o(n,e,t)}static createFromTextAndMetadata(e,t){let i=0,n="";const s=new Array;for(const{text:t,metadata:o}of e)s.push(i+t.length,o),i+=t.length,n+=t;return new o(new Uint32Array(s),n,t)}constructor(e,t,i){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this.languageIdCodec=i}equals(e){return e instanceof o&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,i){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const n=t<<1,o=n+(i<<1);for(let t=n;t0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[1+(e<<1)]}getLanguageId(e){const t=this._tokens[1+(e<<1)],i=n.x.getLanguageId(t);return this.languageIdCodec.decodeLanguageId(i)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return n.x.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return n.x.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return n.x.getClassNameFromMetadata(t)}getInlineStyle(e,t){const i=this._tokens[1+(e<<1)];return n.x.getInlineStyleFromMetadata(i,t)}getPresentation(e){const t=this._tokens[1+(e<<1)];return n.x.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return o.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,i){return new s(this,e,t,i)}static convertToEndOffset(e,t){const i=(e.length>>>1)-1;for(let t=0;t>>1)-1;for(;it&&(n=o)}return i}withInserted(e){if(0===e.length)return this;let t=0,i=0,n="";const s=new Array;let r=0;for(;;){const o=tr){n+=this._text.substring(r,a.offset);const e=this._tokens[1+(t<<1)];s.push(n.length,e),r=a.offset}n+=a.text,s.push(n.length,a.tokenMetadata),i++}}return new o(new Uint32Array(s),n,this.languageIdCodec)}getTokenText(e){const t=this.getStartOffset(e),i=this.getEndOffset(e);return this._text.substring(t,i)}forEach(e){const t=this.getCount();for(let i=0;i=i);t++)this._tokensCount++}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof s&&this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount)}getCount(){return this._tokensCount}getStandardTokenType(e){return this._source.getStandardTokenType(this._firstTokenIndex+e)}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}getTokenText(e){const t=this._firstTokenIndex+e,i=this._source.getStartOffset(t),n=this._source.getEndOffset(t);let o=this._source.getTokenText(t);return ithis._endOffset&&(o=o.substring(0,o.length-(n-this._endOffset))),o}forEach(e){for(let t=0;t{"use strict";i.d(t,{Bs:()=>a,d:()=>o});var n=i(16844);class o{constructor(e,t,i,n){this.startColumn=e,this.endColumn=t,this.className=i,this.type=n,this._lineDecorationBrand=void 0}static _equals(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type}static equalsArr(e,t){const i=e.length;if(i!==t.length)return!1;for(let n=0;n=s||(a[l++]=new o(Math.max(1,t.startColumn-n+1),Math.min(r+1,t.endColumn-n+1),t.className,t.type));return a}static filter(e,t,i,n){if(0===e.length)return[];const s=[];let r=0;for(let a=0,l=e.length;at)continue;if(d.isEmpty()&&(0===l.type||3===l.type))continue;const c=d.startLineNumber===t?d.startColumn:i,h=d.endLineNumber===t?d.endColumn:n;s[r++]=new o(c,h,l.inlineClassName,l.type)}return s}static _typeCompare(e,t){const i=[2,0,1,3];return i[e]-i[t]}static compare(e,t){if(e.startColumn!==t.startColumn)return e.startColumn-t.startColumn;if(e.endColumn!==t.endColumn)return e.endColumn-t.endColumn;const i=o._typeCompare(e.type,t.type);return 0!==i?i:e.className!==t.className?e.className0&&this.stopOffsets[0]0&&t=e){this.stopOffsets.splice(n,0,e),this.classNames.splice(n,0,t),this.metadata.splice(n,0,i);break}this.count++}}class a{static normalize(e,t){if(0===t.length)return[];const i=[],o=new r;let s=0;for(let r=0,a=t.length;r1){const t=e.charCodeAt(l-2);n.pc(t)&&l--}if(d>1){const t=e.charCodeAt(d-2);n.pc(t)&&d--}const u=l-1,g=d-2;s=o.consumeLowerThan(u,s,i),0===o.count&&(s=u),o.insert(g,c,h)}return o.consumeLowerThan(1073741824,s,i),i}}},39723:(e,t,i)=>{"use strict";i.d(t,{wZ:()=>c,MT:()=>l,zL:()=>d,UW:()=>g,Md:()=>m});var n=i(3765),o=i(16844),s=i(54324),r=i(45561);class a{constructor(e,t,i,n){this.endIndex=e,this.type=t,this.metadata=i,this.containsRTL=n,this._linePartBrand=void 0}isWhitespace(){return!!(1&this.metadata)}isPseudoAfter(){return!!(4&this.metadata)}}class l{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class d{constructor(e,t,i,n,o,s,a,l,d,c,h,u,g,p,m,f,v,_,b){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.continuesWithWrappedLine=n,this.isBasicASCII=o,this.containsRTL=s,this.fauxIndentLength=a,this.lineTokens=l,this.lineDecorations=d.sort(r.d.compare),this.tabSize=c,this.startVisibleColumn=h,this.spaceWidth=u,this.stopRenderingLineAfter=m,this.renderWhitespace="all"===f?4:"boundary"===f?1:"selection"===f?2:"trailing"===f?3:0,this.renderControlCharacters=v,this.fontLigatures=_,this.selectionsOnLine=b&&b.sort(((e,t)=>e.startOffset>>16}static getCharIndex(e){return(65535&e)>>>0}constructor(e,t){this.length=e,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length)}setColumnInfo(e,t,i,n){const o=(t<<16|i)>>>0;this._data[e-1]=o,this._horizontalOffset[e-1]=n}getHorizontalOffset(e){return 0===this._horizontalOffset.length?0:this._horizontalOffset[e-1]}charOffsetToPartData(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}getDomPosition(e){const t=this.charOffsetToPartData(e-1),i=h.getPartIndex(t),n=h.getCharIndex(t);return new c(i,n)}getColumn(e,t){return this.partDataToCharOffset(e.partIndex,t,e.charIndex)+1}partDataToCharOffset(e,t,i){if(0===this.length)return 0;const n=(e<<16|i)>>>0;let o=0,s=this.length-1;for(;o+1>>1,t=this._data[e];if(t===n)return e;t>n?s=e:o=e}if(o===s)return o;const r=this._data[o],a=this._data[s];if(r===n)return o;if(a===n)return s;const l=h.getPartIndex(r),d=h.getCharIndex(r);let c;return c=l!==h.getPartIndex(a)?t:h.getCharIndex(a),i-d<=c-i?o:s}}class u{constructor(e,t,i){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=i}}function g(e,t){if(0===e.lineContent.length){if(e.lineDecorations.length>0){t.appendString("");let i=0,n=0,o=0;for(const s of e.lineDecorations)1!==s.type&&2!==s.type||(t.appendString(''),1===s.type&&(o|=1,i++),2===s.type&&(o|=2,n++));t.appendString("");const s=new h(1,i+n);return s.setColumnInfo(1,i,0,0),new u(s,!1,o)}return t.appendString(""),new u(new h(0,0),!1,0)}return function(e,t){const i=e.fontIsMonospace,s=e.canUseHalfwidthRightwardsArrow,r=e.containsForeignElements,a=e.lineContent,l=e.len,d=e.isOverflowing,c=e.overflowingCharCount,g=e.parts,p=e.fauxIndentLength,m=e.tabSize,f=e.startVisibleColumn,_=e.containsRTL,b=e.spaceWidth,w=e.renderSpaceCharCode,y=e.renderWhitespace,C=e.renderControlCharacters,k=new h(l+1,g.length);let S=!1,x=0,L=f,D=0,E=0,I=0;_?t.appendString(''):t.appendString("");for(let e=0,n=g.length;e=p&&(t+=n)}}for(f&&(t.appendString(' style="width:'),t.appendString(String(b*i)),t.appendString('px"')),t.appendASCIICharCode(62);x1?t.appendCharCode(8594):t.appendCharCode(65515);for(let e=2;e<=n;e++)t.appendCharCode(160)}else i=2,n=1,t.appendCharCode(w),t.appendCharCode(8204);D+=i,E+=n,x>=p&&(L+=n)}}else for(t.appendASCIICharCode(62);x=p&&(L+=s)}_?I++:I=0,x>=l&&!S&&n.isPseudoAfter()&&(S=!0,k.setColumnInfo(x+1,e,D,E)),t.appendString("")}return S||k.setColumnInfo(l+1,g.length-1,D,E),d&&(t.appendString(''),t.appendString(n.k("showMore","Show more ({0})",function(e){return e<1024?n.k("overflow.chars","{0} chars",e):e<1048576?`${(e/1024).toFixed(1)} KB`:`${(e/1024/1024).toFixed(1)} MB`}(c))),t.appendString("")),t.appendString(""),new u(k,_,r)}(function(e){const t=e.lineContent;let i,n,s;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter0&&(r[l++]=new a(n,"",0,!1));let d=n;for(let c=0,h=i.getCount();c=s){const i=!!t&&o.E_(e.substring(d,s));r[l++]=new a(s,u,0,i);break}const g=!!t&&o.E_(e.substring(d,h));r[l++]=new a(h,u,0,g),d=h}return r}(t,e.containsRTL,e.lineTokens,e.fauxIndentLength,s);e.renderControlCharacters&&!e.isBasicASCII&&(l=function(e,t){const i=[];let n=new a(0,"",0,!1),o=0;for(const s of t){const t=s.endIndex;for(;on.endIndex&&(n=new a(o,s.type,s.metadata,s.containsRTL),i.push(n)),n=new a(o+1,"mtkcontrol",s.metadata,!1),i.push(n));o>n.endIndex&&(n=new a(t,s.type,s.metadata,s.containsRTL),i.push(n))}return i}(t,l)),(4===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine||3===e.renderWhitespace&&!e.continuesWithWrappedLine)&&(l=function(e,t,i,n){const s=e.continuesWithWrappedLine,r=e.fauxIndentLength,l=e.tabSize,d=e.startVisibleColumn,c=e.useMonospaceOptimizations,h=e.selectionsOnLine,u=1===e.renderWhitespace,g=3===e.renderWhitespace,p=e.renderSpaceWidth!==e.spaceWidth,m=[];let f=0,v=0,_=n[v].type,b=n[v].containsRTL,w=n[v].endIndex;const y=n.length;let C,k=!1,S=o.HG(t);-1===S?(k=!0,S=i,C=i):C=o.lT(t);let x=!1,L=0,D=h&&h[L],E=d%l;for(let e=r;e=D.endOffset&&(L++,D=h&&h[L]),eC)d=!0;else if(9===s)d=!0;else if(32===s)if(u)if(x)d=!0;else{const n=e+1e),d&&g&&(d=k||e>C),d&&b&&e>=S&&e<=C&&(d=!1),x){if(!d||!c&&E>=l){if(p)for(let t=(f>0?m[f-1].endIndex:r)+1;t<=e;t++)m[f++]=new a(t,"mtkw",1,!1);else m[f++]=new a(e,"mtkw",1,!1);E%=l}}else(e===w||d&&e>r)&&(m[f++]=new a(e,_,0,b),E%=l);for(9===s?E=l:o.ne(s)?E+=2:E++,x=d;e===w&&(v++,v0?t.charCodeAt(i-1):0,n=i>1?t.charCodeAt(i-2):0;32===e&&32!==n&&9!==n||(I=!0)}else I=!0;if(I)if(p)for(let e=(f>0?m[f-1].endIndex:r)+1;e<=i;e++)m[f++]=new a(e,"mtkw",1,!1);else m[f++]=new a(i,"mtkw",1,!1);else m[f++]=new a(i,_,0,b);return m}(e,t,s,l));let d=0;if(e.lineDecorations.length>0){for(let t=0,i=e.lineDecorations.length;th&&(h=e.startOffset,d[c++]=new a(h,r,u,g)),!(e.endOffset+1<=n)){h=n,d[c++]=new a(h,r+" "+e.className,u|e.metadata,g);break}h=e.endOffset+1,d[c++]=new a(h,r+" "+e.className,u|e.metadata,g),l++}n>h&&(h=n,d[c++]=new a(h,r,u,g))}const u=i[i.length-1].endIndex;if(l=50&&(o[s++]=new a(c+1,t,i,d),h=c+1,c=-1);h!==l&&(o[s++]=new a(l,t,i,d))}else o[s++]=r;n=l}else for(let e=0,i=t.length;e50){const e=i.type,t=i.metadata,d=i.containsRTL,c=Math.ceil(l/50);for(let i=1;i=8234&&e<=8238||e>=8294&&e<=8297||e>=8206&&e<=8207||1564===e}},11608:(e,t,i)=>{"use strict";i.d(t,{GP:()=>l,LM:()=>r,Uv:()=>g,kI:()=>c,nt:()=>a,or:()=>h,qL:()=>d,vo:()=>u});var n=i(13338),o=i(16844),s=i(28061);class r{constructor(e,t,i,n){this._viewportBrand=void 0,this.top=0|e,this.left=0|t,this.width=0|i,this.height=0|n}}class a{constructor(e,t){this.tabSize=e,this.data=t}}class l{constructor(e,t,i,n,o,s,r){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=i,this.maxColumn=n,this.startVisibleColumn=o,this.tokens=s,this.inlineDecorations=r}}class d{constructor(e,t,i,n,o,s,r,a,l,c){this.minColumn=e,this.maxColumn=t,this.content=i,this.continuesWithWrappedLine=n,this.isBasicASCII=d.isBasicASCII(i,s),this.containsRTL=d.containsRTL(i,this.isBasicASCII,o),this.tokens=r,this.inlineDecorations=a,this.tabSize=l,this.startVisibleColumn=c}static isBasicASCII(e,t){return!t||o.aC(e)}static containsRTL(e,t,i){return!(t||!i)&&o.E_(e)}}class c{constructor(e,t,i){this.range=e,this.inlineClassName=t,this.type=i}}class h{constructor(e,t,i,n){this.startOffset=e,this.endOffset=t,this.inlineClassName=i,this.inlineClassNameAffectsLetterSpacing=n}toInlineDecoration(e){return new c(new s.Q(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class u{constructor(e,t){this._viewModelDecorationBrand=void 0,this.range=e,this.options=t}}class g{constructor(e,t,i){this.color=e,this.zIndex=t,this.data=i}static compareByRenderingProps(e,t){return e.zIndex===t.zIndex?e.colort.color?1:0:e.zIndex-t.zIndex}static equals(e,t){return e.color===t.color&&e.zIndex===t.zIndex&&n.aI(e.data,t.data)}static equalsArr(e,t){return n.aI(e,t,g.equals)}}},96803:(e,t,i)=>{"use strict";i.d(t,{iE:()=>o,rW:()=>s});class n{constructor(e,t,i){this._colorZoneBrand=void 0,this.from=0|e,this.to=0|t,this.colorId=0|i}static compare(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId}}class o{constructor(e,t,i,n){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=t,this.heightInLines=i,this.color=n,this._colorZone=null}static compare(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.heightInLines===t.heightInLines?e.endLineNumber-t.endLineNumber:e.heightInLines-t.heightInLines:e.startLineNumber-t.startLineNumber:e.colori&&(g=i-p);const m=l.color;let f=this._color2Id[m];f||(f=++this._lastAssignedId,this._color2Id[m]=f,this._id2Color[f]=m);const v=new n(g-p,g+p,f);l.setColorZone(v),r.push(v)}return this._colorZonesInvalid=!1,r.sort(n.compare),r}}},31430:(e,t,i)=>{"use strict";i.d(t,{GN:()=>l,UB:()=>a,a6:()=>d,wc:()=>c});var n=i(15365),o=i(28061),s=i(11608),r=i(66476);class a{constructor(e,t,i,n,o){this.editorId=e,this.model=t,this.configuration=i,this._linesCollection=n,this._coordinatesConverter=o,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(e){const t=e.id;let i=this._decorationsCache[t];if(!i){const r=e.range,a=e.options;let l;if(a.isWholeLine){const e=this._coordinatesConverter.convertModelPositionToViewPosition(new n.y(r.startLineNumber,1),0,!1,!0),t=this._coordinatesConverter.convertModelPositionToViewPosition(new n.y(r.endLineNumber,this.model.getLineMaxColumn(r.endLineNumber)),1);l=new o.Q(e.lineNumber,e.column,t.lineNumber,t.column)}else l=this._coordinatesConverter.convertModelRangeToViewRange(r,1);i=new s.vo(l,a),this._decorationsCache[t]=i}return i}getMinimapDecorationsInRange(e){return this._getDecorationsInRange(e,!0,!1).decorations}getDecorationsViewportData(e){let t=null!==this._cachedModelDecorationsResolver;return t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsInRange(e,!1,!1),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}getInlineDecorationsOnLine(e,t=!1,i=!1){const n=new o.Q(e,this._linesCollection.getViewLineMinColumn(e),e,this._linesCollection.getViewLineMaxColumn(e));return this._getDecorationsInRange(n,t,i).inlineDecorations[0]}_getDecorationsInRange(e,t,i){const n=this._linesCollection.getDecorationsInRange(e,this.editorId,(0,r.$C)(this.configuration.options),t,i),a=e.startLineNumber,d=e.endLineNumber,c=[];let h=0;const u=[];for(let e=a;e<=d;e++)u[e-a]=[];for(let e=0,t=n.length;e1===e))}function c(e,t){return h(e,t.range,(e=>2===e))}function h(e,t,i){for(let n=t.startLineNumber;n<=t.endLineNumber;n++){const o=e.tokenization.getLineTokens(n),s=n===t.startLineNumber,r=n===t.endLineNumber;let a=s?o.findTokenIndexAtOffset(t.startColumn-1):0;for(;at.endColumn-1);){if(!i(o.getStandardTokenType(a)))return!1;a++}}return!0}},99594:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SelectionAnchorSet:()=>L});var n=i(9009),o=i(90028),s=i(68387),r=i(85072),a=i.n(r),l=i(97825),d=i.n(l),c=i(77659),h=i.n(c),u=i(55056),g=i.n(u),p=i(10540),m=i.n(p),f=i(41113),v=i.n(f),_=i(42755),b={};b.styleTagTransform=v(),b.setAttributes=g(),b.insert=h().bind(null,"head"),b.domAPI=d(),b.insertStyleElement=m(),a()(_.A,b),_.A&&_.A.locals&&_.A.locals;var w,y=i(50946),C=i(93702),k=i(38122),S=i(3765),x=i(31540);const L=new x.N1("selectionAnchorSet",!1);let D=w=class{static get(e){return e.getContribution(w.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=L.bindTo(t),this.modelChangeListener=e.onDidChangeModel((()=>this.selectionAnchorSetContextKey.reset()))}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations((t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(C.L.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:(new o.Bc).appendText((0,S.k)("selectionAnchor","Selection Anchor")),className:"selection-anchor"})})),this.selectionAnchorSetContextKey.set(!!this.decorationId),(0,n.xE)((0,S.k)("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(C.L.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations((t=>{t.removeDecoration(e),this.decorationId=void 0})),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};var E,I;D.ID="editor.contrib.selectionAnchorController",D=w=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(E=1,I=x.fN,function(e,t){I(e,t,E)})],D);class N extends y.ks{constructor(){super({id:"editor.action.setSelectionAnchor",label:(0,S.k)("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:k.R.editorTextFocus,primary:(0,s.m5)(2089,2080),weight:100}})}async run(e,t){var i;null===(i=D.get(t))||void 0===i||i.setSelectionAnchor()}}class M extends y.ks{constructor(){super({id:"editor.action.goToSelectionAnchor",label:(0,S.k)("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:L})}async run(e,t){var i;null===(i=D.get(t))||void 0===i||i.goToSelectionAnchor()}}class A extends y.ks{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:(0,S.k)("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:L,kbOpts:{kbExpr:k.R.editorTextFocus,primary:(0,s.m5)(2089,2089),weight:100}})}async run(e,t){var i;null===(i=D.get(t))||void 0===i||i.selectFromAnchorToCursor()}}class T extends y.ks{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:(0,S.k)("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:L,kbOpts:{kbExpr:k.R.editorTextFocus,primary:9,weight:100}})}async run(e,t){var i;null===(i=D.get(t))||void 0===i||i.cancelSelectionAnchor()}}(0,y.HW)(D.ID,D,4),(0,y.Fl)(N),(0,y.Fl)(M),(0,y.Fl)(A),(0,y.Fl)(T)},21283:(e,t,i)=>{"use strict";i.r(t),i.d(t,{BracketMatchingController:()=>P});var n=i(65958),o=i(10998),s=i(85072),r=i.n(s),a=i(97825),l=i.n(a),d=i(77659),c=i.n(d),h=i(55056),u=i.n(h),g=i(10540),p=i.n(g),m=i(41113),f=i.n(m),v=i(7997),_={};_.styleTagTransform=f(),_.setAttributes=u(),_.insert=c().bind(null,"head"),_.domAPI=l(),_.insertStyleElement=p(),r()(v.A,_),v.A&&v.A.locals&&v.A.locals;var b=i(50946),w=i(15365),y=i(28061),C=i(93702),k=i(38122),S=i(66055),x=i(74774),L=i(3765),D=i(58067),E=i(70559),I=i(89044);const N=(0,E.x1A)("editorOverviewRuler.bracketMatchForeground","#A0A0A0",L.k("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class M extends b.ks{constructor(){super({id:"editor.action.jumpToBracket",label:L.k("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:k.R.editorTextFocus,primary:3165,weight:100}})}run(e,t){var i;null===(i=P.get(t))||void 0===i||i.jumpToBracket()}}class A extends b.ks{constructor(){super({id:"editor.action.selectToBracket",label:L.k("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:L.a("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var n;let o=!0;i&&!1===i.selectBrackets&&(o=!1),null===(n=P.get(t))||void 0===n||n.selectToBracket(o)}}class T extends b.ks{constructor(){super({id:"editor.action.removeBrackets",label:L.k("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:k.R.editorTextFocus,primary:2561,weight:100}})}run(e,t){var i;null===(i=P.get(t))||void 0===i||i.removeBrackets(this.id)}}class R{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}class P extends o.jG{static get(e){return e.getContribution(P.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new n.uC((()=>this._updateBrackets()),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition((e=>{"never"!==this._matchBrackets&&this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModelContent((e=>{this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModel((e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeModelLanguageConfiguration((e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()}))),this._register(e.onDidChangeConfiguration((e=>{e.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())}))),this._register(e.onDidBlurEditorWidget((()=>{this._updateBracketsSoon.schedule()}))),this._register(e.onDidFocusEditorWidget((()=>{this._updateBracketsSoon.schedule()})))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map((t=>{const i=t.getStartPosition(),n=e.bracketPairs.matchBracket(i);let o=null;if(n)n[0].containsPosition(i)&&!n[1].containsPosition(i)?o=n[1].getStartPosition():n[1].containsPosition(i)&&(o=n[0].getStartPosition());else{const t=e.bracketPairs.findEnclosingBrackets(i);if(t)o=t[1].getStartPosition();else{const t=e.bracketPairs.findNextBracket(i);t&&t.range&&(o=t.range.getStartPosition())}}return o?new C.L(o.lineNumber,o.column,o.lineNumber,o.column):new C.L(i.lineNumber,i.column,i.lineNumber,i.column)}));this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach((n=>{const o=n.getStartPosition();let s=t.bracketPairs.matchBracket(o);if(!s&&(s=t.bracketPairs.findEnclosingBrackets(o),!s)){const e=t.bracketPairs.findNextBracket(o);e&&e.range&&(s=t.bracketPairs.matchBracket(e.range.getStartPosition()))}let r=null,a=null;if(s){s.sort(y.Q.compareRangesUsingStarts);const[t,i]=s;if(r=e?t.getStartPosition():t.getEndPosition(),a=e?i.getEndPosition():i.getStartPosition(),i.containsPosition(o)){const e=r;r=a,a=e}}r&&a&&i.push(new C.L(r.lineNumber,r.column,a.lineNumber,a.column))})),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach((i=>{const n=i.getPosition();let 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("never"===this._matchBrackets)return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus())return this._lastBracketsData=[],void(this._lastVersionId=0);const e=this._editor.getSelections();if(e.length>100)return this._lastBracketsData=[],void(this._lastVersionId=0);const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const o=[];let s=0;for(let t=0,i=e.length;t1&&o.sort(w.y.compare);const r=[];let a=0,l=0;const d=n.length;for(let e=0,i=o.length;e{"use strict";i.r(t);var n=i(50946),o=i(38122),s=i(28061),r=i(93702);class a{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const i=this._selection.startLineNumber,n=this._selection.startColumn,o=this._selection.endColumn;if((!this._isMovingLeft||1!==n)&&(this._isMovingLeft||o!==e.getLineMaxColumn(i)))if(this._isMovingLeft){const r=new s.Q(i,n-1,i,n),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new s.Q(i,o,i,o),a)}else{const r=new s.Q(i,o,i,o+1),a=e.getValueInRange(r);t.addEditOperation(r,null),t.addEditOperation(new s.Q(i,n,i,n),a)}}computeCursorState(e,t){return this._isMovingLeft?new r.L(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new r.L(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}var l=i(3765);class d extends n.ks{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;const i=[],n=t.getSelections();for(const e of n)i.push(new a(e,this.left));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}(0,n.Fl)(class extends d{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:l.k("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:o.R.writable})}}),(0,n.Fl)(class extends d{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:l.k("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:o.R.writable})}})},86302:(e,t,i)=>{"use strict";i.r(t);var n=i(50946),o=i(66316),s=i(50572),r=i(28061),a=i(38122),l=i(3765);class d extends n.ks{constructor(){super({id:"editor.action.transposeLetters",label:l.k("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:a.R.writable,kbOpts:{kbExpr:a.R.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=[],a=t.getSelections();for(const e of a){if(!e.isEmpty())continue;const t=e.startLineNumber,a=e.startColumn,l=i.getLineMaxColumn(t);if(1===t&&(1===a||2===a&&2===l))continue;const d=a===l?e.getPosition():s.I.rightPosition(i,e.getPosition().lineNumber,e.getPosition().column),c=s.I.leftPosition(i,d),h=s.I.leftPosition(i,c),u=i.getValueInRange(r.Q.fromPositions(h,c)),g=i.getValueInRange(r.Q.fromPositions(c,d)),p=r.Q.fromPositions(h,d);n.push(new o.iu(p,g+u))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}(0,n.Fl)(d)},67860:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CopyAction:()=>y,CutAction:()=>w,PasteAction:()=>C});var n=i(55893),o=i(14333),s=i(63339),r=i(93344),a=i(50946),l=i(87301),d=i(38122),c=i(44033),h=i(3765),u=i(58067),g=i(3338),p=i(31540);const m="9_cutcopypaste",f=s.ib||document.queryCommandSupported("cut"),v=s.ib||document.queryCommandSupported("copy"),_=void 0!==navigator.clipboard&&!n.gm||document.queryCommandSupported("paste");function b(e){return e.register(),e}const w=f?b(new a.fE({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:s.ib?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:u.D8.MenubarEditMenu,group:"2_ccp",title:h.k({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:u.D8.EditorContext,group:m,title:h.k("actions.clipboard.cutLabel","Cut"),when:d.R.writable,order:1},{menuId:u.D8.CommandPalette,group:"",title:h.k("actions.clipboard.cutLabel","Cut"),order:1},{menuId:u.D8.SimpleEditorContext,group:m,title:h.k("actions.clipboard.cutLabel","Cut"),when:d.R.writable,order:1}]})):void 0,y=v?b(new a.fE({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:s.ib?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:u.D8.MenubarEditMenu,group:"2_ccp",title:h.k({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:u.D8.EditorContext,group:m,title:h.k("actions.clipboard.copyLabel","Copy"),order:2},{menuId:u.D8.CommandPalette,group:"",title:h.k("actions.clipboard.copyLabel","Copy"),order:1},{menuId:u.D8.SimpleEditorContext,group:m,title:h.k("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;u.ZG.appendMenuItem(u.D8.MenubarEditMenu,{submenu:u.D8.MenubarCopy,title:h.a("copy as","Copy As"),group:"2_ccp",order:3}),u.ZG.appendMenuItem(u.D8.EditorContext,{submenu:u.D8.EditorContextCopy,title:h.a("copy as","Copy As"),group:m,order:3}),u.ZG.appendMenuItem(u.D8.EditorContext,{submenu:u.D8.EditorContextShare,title:h.a("share","Share"),group:"11_share",order:-1,when:p.M$.and(p.M$.notEquals("resourceScheme","output"),d.R.editorTextFocus)}),u.ZG.appendMenuItem(u.D8.ExplorerContext,{submenu:u.D8.ExplorerContextShare,title:h.a("share","Share"),group:"11_share",order:-1});const C=_?b(new a.fE({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:s.ib?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:u.D8.MenubarEditMenu,group:"2_ccp",title:h.k({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:u.D8.EditorContext,group:m,title:h.k("actions.clipboard.pasteLabel","Paste"),when:d.R.writable,order:4},{menuId:u.D8.CommandPalette,group:"",title:h.k("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:u.D8.SimpleEditorContext,group:m,title:h.k("actions.clipboard.pasteLabel","Paste"),when:d.R.writable,order:4}]})):void 0;class k extends a.ks{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:h.k("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:d.R.textInputFocus,primary:0,weight:100}})}run(e,t){t.hasModel()&&(!t.getOption(37)&&t.getSelection().isEmpty()||(r.Eq.forceCopyWithSyntaxHighlighting=!0,t.focus(),t.getContainerDomNode().ownerDocument.execCommand("copy"),r.Eq.forceCopyWithSyntaxHighlighting=!1))}}function S(e,t){e&&(e.addImplementation(1e4,"code-editor",((e,i)=>{const n=e.get(l.T).getFocusedCodeEditor();if(n&&n.hasTextFocus()){const e=n.getOption(37),i=n.getSelection();return i&&i.isEmpty()&&!e||n.getContainerDomNode().ownerDocument.execCommand(t),!0}return!1})),e.addImplementation(0,"generic-dom",((e,i)=>((0,o.a)().execCommand(t),!0))))}S(w,"cut"),S(y,"copy"),C&&(C.addImplementation(1e4,"code-editor",((e,t)=>{var i,n;const o=e.get(l.T),a=e.get(g.h),d=o.getFocusedCodeEditor();return!(!d||!d.hasTextFocus())&&(d.getContainerDomNode().ownerDocument.execCommand("paste")?null!==(n=null===(i=c.Rj.get(d))||void 0===i?void 0:i.finishedPaste())&&void 0!==n?n:Promise.resolve():!s.HZ||(async()=>{const e=await a.readText();if(""!==e){const t=r.bs.INSTANCE.get(e);let i=!1,n=null,o=null;t&&(i=d.getOption(37)&&!!t.isFromEmptySelection,n=void 0!==t.multicursorText?t.multicursorText:null,o=t.mode),d.trigger("keyboard","paste",{text:e,pasteOnNewLine:i,multicursorText:n,mode:o})}})())})),C.addImplementation(0,"generic-dom",((e,t)=>((0,o.a)().execCommand("paste"),!0)))),v&&(0,a.Fl)(k)},73042:(e,t,i)=>{"use strict";i.d(t,{C9:()=>x,Qp:()=>A,Rw:()=>D,Uy:()=>L,W4:()=>T,Xj:()=>S,dU:()=>N,k_:()=>y,pQ:()=>C,pR:()=>k});var n=i(13338),o=i(78903),s=i(94327),r=i(10998),a=i(37264),l=i(98769),d=i(28061),c=i(93702),h=i(52230),u=i(64830),g=i(62105),p=i(3765),m=i(59715),f=i(29879),v=i(44023),_=i(76243),b=i(62919),w=i(14731);const y="editor.action.codeAction",C="editor.action.quickFix",k="editor.action.autoFix",S="editor.action.refactor",x="editor.action.sourceAction",L="editor.action.organizeImports",D="editor.action.fixAll";class E extends r.jG{static codeActionsPreferredComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:0}static codeActionsComparator({action:e},{action:t}){return e.isAI&&!t.isAI?1:!e.isAI&&t.isAI?-1:(0,n.EI)(e.diagnostics)?(0,n.EI)(t.diagnostics)?E.codeActionsPreferredComparator(e,t):-1:(0,n.EI)(t.diagnostics)?1:E.codeActionsPreferredComparator(e,t)}constructor(e,t,i){super(),this.documentation=t,this._register(i),this.allActions=[...e].sort(E.codeActionsComparator),this.validActions=this.allActions.filter((({action:e})=>!e.disabled))}get hasAutoFix(){return this.validActions.some((({action:e})=>!!e.kind&&b.gB.QuickFix.contains(new w.k(e.kind))&&!!e.isPreferred))}get hasAIFix(){return this.validActions.some((({action:e})=>!!e.isAI))}get allAIFixes(){return this.validActions.every((({action:e})=>!!e.isAI))}}const I={actions:[],documentation:void 0};async function N(e,t,i,o,a,l){var d;const c=o.filter||{},h={...c,excludes:[...c.excludes||[],b.gB.Notebook]},u={only:null===(d=c.include)||void 0===d?void 0:d.value,trigger:o.type},p=new g.ER(t,l),m=2===o.type,f=function(e,t,i){return e.all(t).filter((e=>!e.providedCodeActionKinds||e.providedCodeActionKinds.some((e=>(0,b.uJ)(i,new w.k(e))))))}(e,t,m?h:c),v=new r.Cm,_=f.map((async e=>{try{a.report(e);const n=await e.provideCodeActions(t,i,u,p.token);if(n&&v.add(n),p.token.isCancellationRequested)return I;const o=((null==n?void 0:n.actions)||[]).filter((e=>e&&(0,b.aF)(c,e))),s=function(e,t,i){if(!e.documentation)return;const n=e.documentation.map((e=>({kind:new w.k(e.kind),command:e.command})));if(i){let e;for(const t of n)t.kind.contains(i)&&(e?e.kind.contains(t.kind)&&(e=t):e=t);if(e)return null==e?void 0:e.command}for(const e of t)if(e.kind)for(const t of n)if(t.kind.contains(new w.k(e.kind)))return t.command}(e,o,c.include);return{actions:o.map((t=>new b.Vi(t,e))),documentation:s}}catch(e){if((0,s.MB)(e))throw e;return(0,s.M_)(e),I}})),y=e.onDidChange((()=>{const i=e.all(t);(0,n.aI)(i,f)||p.cancel()}));try{const i=await Promise.all(_),s=i.map((e=>e.actions)).flat(),r=[...(0,n.Yc)(i.map((e=>e.documentation))),...M(e,t,o,s)];return new E(s,r,v)}finally{y.dispose(),p.dispose()}}function*M(e,t,i,n){var o,s,r;if(t&&n.length)for(const a of e.all(t))a._getAdditionalMenuItems&&(yield*null===(o=a._getAdditionalMenuItems)||void 0===o?void 0:o.call(a,{trigger:i.type,only:null===(r=null===(s=i.filter)||void 0===s?void 0:s.include)||void 0===r?void 0:r.value},n.map((e=>e.action))))}var A;async function T(e,t,i,n,s=o.XO.None){var r;const a=e.get(l.nu),d=e.get(m.d),c=e.get(_.k),h=e.get(f.Ot);if(c.publicLog2("codeAction.applyCodeAction",{codeActionTitle:t.action.title,codeActionKind:t.action.kind,codeActionIsPreferred:!!t.action.isPreferred,reason:i}),await t.resolve(s),!s.isCancellationRequested){if((null===(r=t.action.edit)||void 0===r?void 0:r.edits.length)&&!(await a.apply(t.action.edit,{editor:null==n?void 0:n.editor,label:t.action.title,quotableLabel:t.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:i!==A.OnSave,showPreview:null==n?void 0:n.preview})).isApplied)return;if(t.action.command)try{await d.executeCommand(t.action.command.id,...t.action.command.arguments||[])}catch(e){const t=function(e){return"string"==typeof e?e:e instanceof Error&&"string"==typeof e.message?e.message:void 0}(e);h.error("string"==typeof t?t:p.k("applyCodeActionFailed","An unknown error occurred while applying the code action"))}}}!function(e){e.OnSave="onSave",e.FromProblemsView="fromProblemsView",e.FromCodeActions="fromCodeActions",e.FromAILightbulb="fromAILightbulb"}(A||(A={})),m.w.registerCommand("_executeCodeActionProvider",(async function(e,t,i,n,r){if(!(t instanceof a.r))throw(0,s.Qg)();const{codeActionProvider:l}=e.get(h.u),g=e.get(u.S).getModel(t);if(!g)throw(0,s.Qg)();const p=c.L.isISelection(i)?c.L.liftSelection(i):d.Q.isIRange(i)?g.validateRange(i):void 0;if(!p)throw(0,s.Qg)();const m="string"==typeof n?new w.k(n):void 0,f=await N(l,g,p,{type:1,triggerAction:b.fo.Default,filter:{includeSourceActions:!0,include:m}},v.ke.None,o.XO.None),_=[],y=Math.min(f.validActions.length,"number"==typeof r?r:0);for(let e=0;ee.action))}finally{setTimeout((()=>f.dispose()),100)}}))},70446:(e,t,i)=>{"use strict";i.r(t);var n=i(50946),o=i(85003),s=i(14731),r=i(16844),a=i(38122),l=i(73042),d=i(3765),c=i(31540),h=i(62919),u=i(47072),g=i(85961);function p(e){return c.M$.regex(g.D_.keys()[0],new RegExp("(\\s|^)"+(0,r.bm)(e.value)+"\\b"))}const m={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:d.k("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:d.k("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[d.k("args.schema.apply.first","Always apply the first returned code action."),d.k("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),d.k("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:d.k("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};function f(e,t,i,n,o=h.fo.Default){if(e.hasModel()){const s=u.C.get(e);null==s||s.manualTriggerAtCurrentPosition(t,o,i,n)}}class v extends n.ks{constructor(){super({id:l.pQ,label:d.k("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:c.M$.and(a.R.writable,a.R.hasCodeActionsProvider),kbOpts:{kbExpr:a.R.textInputFocus,primary:2137,weight:100}})}run(e,t){return f(t,d.k("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,h.fo.QuickFix)}}class _ extends n.DX{constructor(){super({id:l.k_,precondition:c.M$.and(a.R.writable,a.R.hasCodeActionsProvider),metadata:{description:"Trigger a code action",args:[{name:"args",schema:m}]}})}runEditorCommand(e,t,i){const n=h.QA.fromUser(i,{kind:s.k.Empty,apply:"ifSingle"});return f(t,"string"==typeof(null==i?void 0:i.kind)?n.preferred?d.k("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):d.k("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):n.preferred?d.k("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):d.k("editor.action.codeAction.noneMessage","No code actions available"),{include:n.kind,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply)}}class b extends n.ks{constructor(){super({id:l.Xj,label:d.k("refactor.label","Refactor..."),alias:"Refactor...",precondition:c.M$.and(a.R.writable,a.R.hasCodeActionsProvider),kbOpts:{kbExpr:a.R.textInputFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:c.M$.and(a.R.writable,p(h.gB.Refactor))},metadata:{description:"Refactor...",args:[{name:"args",schema:m}]}})}run(e,t,i){const n=h.QA.fromUser(i,{kind:h.gB.Refactor,apply:"never"});return f(t,"string"==typeof(null==i?void 0:i.kind)?n.preferred?d.k("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",i.kind):d.k("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",i.kind):n.preferred?d.k("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):d.k("editor.action.refactor.noneMessage","No refactorings available"),{include:h.gB.Refactor.contains(n.kind)?n.kind:s.k.None,onlyIncludePreferredActions:n.preferred},n.apply,h.fo.Refactor)}}class w extends n.ks{constructor(){super({id:l.C9,label:d.k("source.label","Source Action..."),alias:"Source Action...",precondition:c.M$.and(a.R.writable,a.R.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:c.M$.and(a.R.writable,p(h.gB.Source))},metadata:{description:"Source Action...",args:[{name:"args",schema:m}]}})}run(e,t,i){const n=h.QA.fromUser(i,{kind:h.gB.Source,apply:"never"});return f(t,"string"==typeof(null==i?void 0:i.kind)?n.preferred?d.k("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):d.k("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):n.preferred?d.k("editor.action.source.noneMessage.preferred","No preferred source actions available"):d.k("editor.action.source.noneMessage","No source actions available"),{include:h.gB.Source.contains(n.kind)?n.kind:s.k.None,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply,h.fo.SourceAction)}}class y extends n.ks{constructor(){super({id:l.Uy,label:d.k("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:c.M$.and(a.R.writable,p(h.gB.SourceOrganizeImports)),kbOpts:{kbExpr:a.R.textInputFocus,primary:1581,weight:100}})}run(e,t){return f(t,d.k("editor.action.organize.noneMessage","No organize imports action available"),{include:h.gB.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",h.fo.OrganizeImports)}}class C extends n.ks{constructor(){super({id:l.Rw,label:d.k("fixAll.label","Fix All"),alias:"Fix All",precondition:c.M$.and(a.R.writable,p(h.gB.SourceFixAll))})}run(e,t){return f(t,d.k("fixAll.noneMessage","No fix all action available"),{include:h.gB.SourceFixAll,includeSourceActions:!0},"ifSingle",h.fo.FixAll)}}class k extends n.ks{constructor(){super({id:l.pR,label:d.k("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:c.M$.and(a.R.writable,p(h.gB.QuickFix)),kbOpts:{kbExpr:a.R.textInputFocus,primary:1625,mac:{primary:2649},weight:100}})}run(e,t){return f(t,d.k("editor.action.autoFix.noneMessage","No auto fixes available"),{include:h.gB.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",h.fo.AutoFix)}}var S=i(27533),x=i(27142),L=i(67167);(0,n.HW)(u.C.ID,u.C,3),(0,n.HW)(S.E.ID,S.E,4),(0,n.Fl)(v),(0,n.Fl)(b),(0,n.Fl)(w),(0,n.Fl)(y),(0,n.Fl)(k),(0,n.Fl)(C),(0,n.E_)(new _),L.O.as(x.Fd.Configuration).registerConfiguration({...o.JJ,properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:d.k("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}),L.O.as(x.Fd.Configuration).registerConfiguration({...o.JJ,properties:{"editor.codeActionWidget.includeNearbyQuickFixes":{type:"boolean",scope:5,description:d.k("includeNearbyQuickFixes","Enable/disable showing nearest Quick Fix within a line when not currently on a diagnostic."),default:!0}}})},47072:(e,t,i)=>{"use strict";i.d(t,{C:()=>ke});var n,o=i(14333),s=i(9009),r=i(94327),a=i(63946),l=i(10998),d=i(15365),c=i(74774),h=i(52230),u=i(73042),g=i(14731),p=i(62919),m=i(56071);let f=n=class{constructor(e){this.keybindingService=e}getResolver(){const e=new a.d((()=>this.keybindingService.getKeybindings().filter((e=>n.codeActionCommands.indexOf(e.command)>=0)).filter((e=>e.resolvedKeybinding)).map((e=>{let t=e.commandArgs;return e.command===u.Uy?t={kind:p.gB.SourceOrganizeImports.value}:e.command===u.Rw&&(t={kind:p.gB.SourceFixAll.value}),{resolvedKeybinding:e.resolvedKeybinding,...p.QA.fromUser(t,{kind:g.k.None,apply:"never"})}}))));return t=>{if(t.kind){const i=this.bestKeybindingForCodeAction(t,e.value);return null==i?void 0:i.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const i=new g.k(e.kind);return t.filter((e=>e.kind.contains(i))).filter((t=>!t.preferred||e.isPreferred)).reduceRight(((e,t)=>e?e.kind.contains(t.kind)?t:e:t),void 0)}};var v,_;f.codeActionCommands=[u.Xj,u.k_,u.C9,u.Uy,u.Rw],f=n=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(v=0,_=m.b,function(e,t){_(e,t,v)})],f),i(30761);var b=i(26048),w=(i(4344),i(3765));const y=Object.freeze({kind:g.k.Empty,title:(0,w.k)("codeAction.widget.id.more","More Actions...")}),C=Object.freeze([{kind:p.gB.QuickFix,title:(0,w.k)("codeAction.widget.id.quickfix","Quick Fix")},{kind:p.gB.RefactorExtract,title:(0,w.k)("codeAction.widget.id.extract","Extract"),icon:b.W.wrench},{kind:p.gB.RefactorInline,title:(0,w.k)("codeAction.widget.id.inline","Inline"),icon:b.W.wrench},{kind:p.gB.RefactorRewrite,title:(0,w.k)("codeAction.widget.id.convert","Rewrite"),icon:b.W.wrench},{kind:p.gB.RefactorMove,title:(0,w.k)("codeAction.widget.id.move","Move"),icon:b.W.wrench},{kind:p.gB.SurroundWith,title:(0,w.k)("codeAction.widget.id.surround","Surround With"),icon:b.W.surroundWith},{kind:p.gB.Source,title:(0,w.k)("codeAction.widget.id.source","Source Action"),icon:b.W.symbolFile},y]);var k=i(27533),S=i(81673),x=i(77439),L=i(85072),D=i.n(L),E=i(97825),I=i.n(E),N=i(77659),M=i.n(N),A=i(55056),T=i.n(A),R=i(10540),P=i.n(R),O=i(41113),F=i.n(O),B=i(56745),W={};W.styleTagTransform=F(),W.setAttributes=T(),W.insert=M().bind(null,"head"),W.domAPI=I(),W.insertStyleElement=P(),D()(B.A,W),B.A&&B.A.locals&&B.A.locals;var H=i(57784),V=i(67954),z=i(78903),j=i(63339),U=i(58881),$=i(52348),K=i(25654),q=i(70559),G=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Q=function(e,t){return function(i,n){t(i,n,e)}};const Z="acceptSelectedCodeAction",Y="previewSelectedCodeAction";class X{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");const t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,i){var n,o;i.text.textContent=null!==(o=null===(n=e.group)||void 0===n?void 0:n.title)&&void 0!==o?o:""}disposeTemplate(e){}}let J=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);const t=document.createElement("div");t.className="icon",e.append(t);const i=document.createElement("span");return i.className="title",e.append(i),{container:e,icon:t,text:i,keybinding:new H.x(e,j.OS)}}renderElement(e,t,i){var n,s,r;if((null===(n=e.group)||void 0===n?void 0:n.icon)?(i.icon.className=U.L.asClassName(e.group.icon),e.group.icon.color&&(i.icon.style.color=(0,q.GuP)(e.group.icon.color.id))):(i.icon.className=U.L.asClassName(b.W.lightBulb),i.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;i.text.textContent=oe(e.label),i.keybinding.set(e.keybinding),o.bo(!!e.keybinding,i.keybinding.element);const a=null===(s=this._keybindingService.lookupKeybinding(Z))||void 0===s?void 0:s.getLabel(),l=null===(r=this._keybindingService.lookupKeybinding(Y))||void 0===r?void 0:r.getLabel();i.container.classList.toggle("option-disabled",e.disabled),e.disabled?i.container.title=e.label:a&&l?this._supportsPreview&&e.canPreview?i.container.title=(0,w.k)({key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to Apply, Shift+F2 to Preview"']},"{0} to Apply, {1} to Preview",a,l):i.container.title=(0,w.k)({key:"label",comment:['placeholder is a keybinding, e.g "F2 to Apply"']},"{0} to Apply",a):i.container.title=""}disposeTemplate(e){e.keybinding.dispose()}};J=G([Q(1,m.b)],J);class ee extends UIEvent{constructor(){super("acceptSelectedAction")}}class te extends UIEvent{constructor(){super("previewSelectedAction")}}function ie(e){if("action"===e.kind)return e.label}let ne=class extends l.jG{constructor(e,t,i,n,o,s){super(),this._delegate=n,this._contextViewService=o,this._keybindingService=s,this._actionLineHeight=24,this._headerLineHeight=26,this.cts=this._register(new z.Qi),this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");const r={getHeight:e=>"header"===e.kind?this._headerLineHeight:this._actionLineHeight,getTemplateId:e=>e.kind};this._list=this._register(new V.B8(e,this.domNode,r,[new J(t,this._keybindingService),new X],{keyboardSupport:!1,typeNavigationEnabled:!0,keyboardNavigationLabelProvider:{getKeyboardNavigationLabel:ie},accessibilityProvider:{getAriaLabel:e=>{if("action"===e.kind){let t=e.label?oe(null==e?void 0:e.label):"";return e.disabled&&(t=(0,w.k)({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",t,e.disabled)),t}return null},getWidgetAriaLabel:()=>(0,w.k)({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:e=>"action"===e.kind?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(K.IN),this._register(this._list.onMouseClick((e=>this.onListClick(e)))),this._register(this._list.onMouseOver((e=>this.onListHover(e)))),this._register(this._list.onDidChangeFocus((()=>this.onFocus()))),this._register(this._list.onDidChangeSelection((e=>this.onListSelection(e)))),this._allMenuItems=i,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(e){return!e.disabled&&"action"===e.kind}hide(e){this._delegate.onHide(e),this.cts.cancel(),this._contextViewService.hideContextView()}layout(e){const t=this._allMenuItems.filter((e=>"header"===e.kind)).length,i=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(i);let n=e;if(this._allMenuItems.length>=50)n=380;else{const t=this._allMenuItems.map(((e,t)=>{const i=this.domNode.ownerDocument.getElementById(this._list.getElementID(t));if(i){i.style.width="auto";const e=i.getBoundingClientRect().width;return i.style.width="",e}return 0}));n=Math.max(...t,e)}const o=Math.min(i,.7*this.domNode.ownerDocument.body.clientHeight);return this._list.layout(o,n),this.domNode.style.height=`${o}px`,this._list.domFocus(),n}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(e){const t=this._list.getFocus();if(0===t.length)return;const i=t[0],n=this._list.element(i);if(!this.focusCondition(n))return;const o=e?new te:new ee;this._list.setSelection([i],o)}onListSelection(e){if(!e.elements.length)return;const t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof te):this._list.setSelection([])}onFocus(){var e,t;const i=this._list.getFocus();if(0===i.length)return;const n=i[0],o=this._list.element(n);null===(t=(e=this._delegate).onFocus)||void 0===t||t.call(e,o.item)}async onListHover(e){const t=e.element;if(t&&t.item&&this.focusCondition(t)){if(this._delegate.onHover&&!t.disabled&&"action"===t.kind){const e=await this._delegate.onHover(t.item,this.cts.token);t.canPreview=e?e.canPreview:void 0}e.index&&this._list.splice(e.index,1,[t])}this._list.setFocus("number"==typeof e.index?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};function oe(e){return e.replace(/\r\n|\r|\n/g," ")}ne=G([Q(4,$.l),Q(5,m.b)],ne);var se=i(58067),re=i(31540),ae=i(66726),le=i(82399),de=function(e,t){return function(i,n){t(i,n,e)}};(0,q.x1A)("actionBar.toggledBackground",q.c1f,(0,w.k)("actionBar.toggledBackground","Background color for toggled action items in action bar."));const ce={Visible:new re.N1("codeActionMenuVisible",!1,(0,w.k)("codeActionMenuVisible","Whether the action widget list is visible"))},he=(0,le.u1)("actionWidgetService");let ue=class extends l.jG{get isVisible(){return ce.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,i){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=i,this._list=this._register(new l.HE)}show(e,t,i,n,o,s,r){const a=ce.Visible.bindTo(this._contextKeyService),l=this._instantiationService.createInstance(ne,e,t,i,n);this._contextViewService.showContextView({getAnchor:()=>o,render:e=>(a.set(!0),this._renderWidget(e,l,null!=r?r:[])),onHide:e=>{a.reset(),this._onWidgetClosed(e)}},s,!1)}acceptSelected(e){var t;null===(t=this._list.value)||void 0===t||t.acceptSelected(e)}focusPrevious(){var e,t;null===(t=null===(e=this._list)||void 0===e?void 0:e.value)||void 0===t||t.focusPrevious()}focusNext(){var e,t;null===(t=null===(e=this._list)||void 0===e?void 0:e.value)||void 0===t||t.focusNext()}hide(e){var t;null===(t=this._list.value)||void 0===t||t.hide(e),this._list.clear()}_renderWidget(e,t,i){var n;const s=document.createElement("div");if(s.classList.add("action-widget"),e.appendChild(s),this._list.value=t,!this._list.value)throw new Error("List has no value");s.appendChild(this._list.value.domNode);const r=new l.Cm,a=document.createElement("div"),d=e.appendChild(a);d.classList.add("context-view-block"),r.add(o.ko(d,o.Bx.MOUSE_DOWN,(e=>e.stopPropagation())));const c=document.createElement("div"),h=e.appendChild(c);h.classList.add("context-view-pointerBlock"),r.add(o.ko(h,o.Bx.POINTER_MOVE,(()=>h.remove()))),r.add(o.ko(h,o.Bx.MOUSE_DOWN,(()=>h.remove())));let u=0;if(i.length){const e=this._createActionBar(".action-widget-action-bar",i);e&&(s.appendChild(e.getContainer().parentElement),r.add(e),u=e.getContainer().offsetWidth)}const g=null===(n=this._list.value)||void 0===n?void 0:n.layout(u);s.style.width=`${g}px`;const p=r.add(o.w5(e));return r.add(p.onDidBlur((()=>this.hide(!0)))),r}_createActionBar(e,t){if(!t.length)return;const i=o.$(e),n=new x.E(i);return n.push(t,{icon:!1,label:!0}),n}_onWidgetClosed(e){var t;null===(t=this._list.value)||void 0===t||t.hide(e)}};ue=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([de(0,$.l),de(1,re.fN),de(2,le._Y)],ue),(0,ae.v)(he,ue,1);const ge=1100;(0,se.ug)(class extends se.L{constructor(){super({id:"hideCodeActionWidget",title:(0,w.a)("hideCodeActionWidget.title","Hide action widget"),precondition:ce.Visible,keybinding:{weight:ge,primary:9,secondary:[1033]}})}run(e){e.get(he).hide(!0)}}),(0,se.ug)(class extends se.L{constructor(){super({id:"selectPrevCodeAction",title:(0,w.a)("selectPrevCodeAction.title","Select previous action"),precondition:ce.Visible,keybinding:{weight:ge,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(e){const t=e.get(he);t instanceof ue&&t.focusPrevious()}}),(0,se.ug)(class extends se.L{constructor(){super({id:"selectNextCodeAction",title:(0,w.a)("selectNextCodeAction.title","Select next action"),precondition:ce.Visible,keybinding:{weight:ge,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(e){const t=e.get(he);t instanceof ue&&t.focusNext()}}),(0,se.ug)(class extends se.L{constructor(){super({id:Z,title:(0,w.a)("acceptSelected.title","Accept selected action"),precondition:ce.Visible,keybinding:{weight:ge,primary:3,secondary:[2137]}})}run(e){const t=e.get(he);t instanceof ue&&t.acceptSelected()}}),(0,se.ug)(class extends se.L{constructor(){super({id:Y,title:(0,w.a)("previewSelected.title","Preview selected action"),precondition:ce.Visible,keybinding:{weight:ge,primary:2051}})}run(e){const t=e.get(he);t instanceof ue&&t.acceptSelected(!0)}});var pe,me=i(59715),fe=i(85753),ve=i(27619),_e=i(44023),be=i(89563),we=i(89044),ye=i(85961),Ce=function(e,t){return function(i,n){t(i,n,e)}};let ke=pe=class extends l.jG{static get(e){return e.getContribution(pe.ID)}constructor(e,t,i,n,o,s,r,d,c,h){super(),this._commandService=r,this._configurationService=d,this._actionWidgetService=c,this._instantiationService=h,this._activeCodeActions=this._register(new l.HE),this._showDisabled=!1,this._disposed=!1,this._editor=e,this._model=this._register(new ye.Dc(this._editor,o.codeActionProvider,t,i,s,d)),this._register(this._model.onDidChangeState((e=>this.update(e)))),this._lightBulbWidget=new a.d((()=>{const e=this._editor.getContribution(k.E.ID);return e&&this._register(e.onClick((e=>this.showCodeActionsFromLightbulb(e.actions,e)))),e})),this._resolver=n.createInstance(f),this._register(this._editor.onDidLayoutChange((()=>this._actionWidgetService.hide())))}dispose(){this._disposed=!0,super.dispose()}async showCodeActionsFromLightbulb(e,t){if(e.allAIFixes&&1===e.validActions.length){const t=e.validActions[0],i=t.action.command;return i&&"inlineChat.start"===i.id&&i.arguments&&i.arguments.length>=1&&(i.arguments[0]={...i.arguments[0],autoSend:!1}),void await this._applyCodeAction(t,!1,!1,u.Qp.FromAILightbulb)}await this.showCodeActionList(e,t,{includeDisabledActions:!1,fromLightbulb:!0})}showCodeActions(e,t,i){return this.showCodeActionList(t,i,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,i,n){var o;if(!this._editor.hasModel())return;null===(o=S.k.get(this._editor))||void 0===o||o.closeMessage();const s=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:i,autoApply:n,context:{notAvailableMessage:e,position:s}})}_trigger(e){return this._model.trigger(e)}async _applyCodeAction(e,t,i,n){try{await this._instantiationService.invokeFunction(u.W4,e,n,{preview:i,editor:this._editor})}finally{t&&this._trigger({type:2,triggerAction:p.fo.QuickFix,filter:{}})}}async update(e){var t,i,n,o,s,a,l;if(1!==e.type)return void(null===(t=this._lightBulbWidget.rawValue)||void 0===t||t.hide());let d;try{d=await e.actions}catch(e){return void(0,r.dz)(e)}if(!this._disposed)if(null===(i=this._lightBulbWidget.value)||void 0===i||i.update(d,e.trigger,e.position),1===e.trigger.type){if(null===(n=e.trigger.filter)||void 0===n?void 0:n.include){const t=this.tryGetValidActionToApply(e.trigger,d);if(t){try{null===(o=this._lightBulbWidget.value)||void 0===o||o.hide(),await this._applyCodeAction(t,!1,!1,u.Qp.FromCodeActions)}finally{d.dispose()}return}if(e.trigger.context){const t=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,d);if(t&&t.action.disabled)return null===(s=S.k.get(this._editor))||void 0===s||s.showMessage(t.action.disabled,e.trigger.context.position),void d.dispose()}}const t=!!(null===(a=e.trigger.filter)||void 0===a?void 0:a.include);if(e.trigger.context&&(!d.allActions.length||!t&&!d.validActions.length))return null===(l=S.k.get(this._editor))||void 0===l||l.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=d,void d.dispose();this._activeCodeActions.value=d,this.showCodeActionList(d,this.toCoords(e.position),{includeDisabledActions:t,fromLightbulb:!1})}else this._actionWidgetService.isVisible?d.dispose():this._activeCodeActions.value=d}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length)return"first"===e.autoApply&&0===t.validActions.length||"ifSingle"===e.autoApply&&1===t.allActions.length?t.allActions.find((({action:e})=>e.disabled)):void 0}tryGetValidActionToApply(e,t){if(t.validActions.length)return"first"===e.autoApply&&t.validActions.length>0||"ifSingle"===e.autoApply&&1===t.validActions.length?t.validActions[0]:void 0}async showCodeActionList(e,t,i){const n=this._editor.createDecorationsCollection(),o=this._editor.getDomNode();if(!o)return;const r=i.includeDisabledActions&&(this._showDisabled||0===e.validActions.length)?e.allActions:e.validActions;if(!r.length)return;const a=d.y.isIPosition(t)?this.toCoords(t):t,l={onSelect:async(e,t)=>{this._applyCodeAction(e,!0,!!t,i.fromLightbulb?u.Qp.FromAILightbulb:u.Qp.FromCodeActions),this._actionWidgetService.hide(!1),n.clear()},onHide:e=>{var t;null===(t=this._editor)||void 0===t||t.focus(),n.clear()},onHover:async(e,t)=>{var i;if(t.isCancellationRequested)return;let n=!1;const o=e.action.kind;if(o){const e=new g.k(o);n=[p.gB.RefactorExtract,p.gB.RefactorInline,p.gB.RefactorRewrite,p.gB.RefactorMove,p.gB.Source].some((t=>t.contains(e)))}return{canPreview:n||!!(null===(i=e.action.edit)||void 0===i?void 0:i.edits.length)}},onFocus:e=>{var t,i;if(e&&e.action){const o=e.action.ranges,r=e.action.diagnostics;if(n.clear(),o&&o.length>0){const e=r&&(null==r?void 0:r.length)>1?r.map((e=>({range:e,options:pe.DECORATION}))):o.map((e=>({range:e,options:pe.DECORATION})));n.set(e)}else if(r&&r.length>0){const e=r.map((e=>({range:e,options:pe.DECORATION})));n.set(e);const o=r[0];if(o.startLineNumber&&o.startColumn){const e=null===(i=null===(t=this._editor.getModel())||void 0===t?void 0:t.getWordAtPosition({lineNumber:o.startLineNumber,column:o.startColumn}))||void 0===i?void 0:i.word;s.h5((0,w.k)("editingNewSelection","Context: {0} at line {1} and column {2}.",e,o.startLineNumber,o.startColumn))}}}else n.clear()}};this._actionWidgetService.show("codeActionWidget",!0,function(e,t,i){if(!t)return e.map((e=>{var t;return{kind:"action",item:e,group:y,disabled:!!e.action.disabled,label:e.action.disabled||e.action.title,canPreview:!!(null===(t=e.action.edit)||void 0===t?void 0:t.edits.length)}}));const n=C.map((e=>({group:e,actions:[]})));for(const t of e){const e=t.action.kind?new g.k(t.action.kind):g.k.None;for(const i of n)if(i.group.kind.contains(e)){i.actions.push(t);break}}const o=[];for(const e of n)if(e.actions.length){o.push({kind:"header",group:e.group});for(const t of e.actions){const n=e.group;o.push({kind:"action",item:t,group:t.action.isAI?{title:n.title,kind:n.kind,icon:b.W.sparkle}:n,label:t.action.title,disabled:!!t.action.disabled,keybinding:i(t.action)})}}return o}(r,this._shouldShowHeaders(),this._resolver.getResolver()),l,a,o,this._getActionBarActions(e,t,i))}toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),i=(0,o.BK)(this._editor.getDomNode());return{x:i.left+t.left,y:i.top+t.top+t.height}}_shouldShowHeaders(){var e;const t=null===(e=this._editor)||void 0===e?void 0:e.getModel();return this._configurationService.getValue("editor.codeActionWidget.showHeaders",{resource:null==t?void 0:t.uri})}_getActionBarActions(e,t,i){if(i.fromLightbulb)return[];const n=e.documentation.map((e=>{var t;return{id:e.id,label:e.title,tooltip:null!==(t=e.tooltip)&&void 0!==t?t:"",class:void 0,enabled:!0,run:()=>{var t;return this._commandService.executeCommand(e.id,...null!==(t=e.arguments)&&void 0!==t?t:[])}}}));return i.includeDisabledActions&&e.validActions.length>0&&e.allActions.length!==e.validActions.length&&n.push(this._showDisabled?{id:"hideMoreActions",label:(0,w.k)("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,i))}:{id:"showMoreActions",label:(0,w.k)("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,i))}),n}};ke.ID="editor.contrib.codeActionController",ke.DECORATION=c.kI.register({description:"quickfix-highlight",className:"quickfix-edit-highlight"}),ke=pe=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Ce(1,ve.DR),Ce(2,re.fN),Ce(3,le._Y),Ce(4,h.u),Ce(5,_e.N8),Ce(6,me.d),Ce(7,fe.pG),Ce(8,he),Ce(9,le._Y)],ke),(0,we.zy)(((e,t)=>{var i;(i=e.getColor(q.Ubg))&&t.addRule(`.monaco-editor .quickfix-edit-highlight { background-color: ${i}; }`);const n=e.getColor(q.ECk);n&&t.addRule(`.monaco-editor .quickfix-edit-highlight { border: 1px ${(0,be.Bb)(e.type)?"dotted":"solid"} ${n}; box-sizing: border-box; }`)}))},85961:(e,t,i)=>{"use strict";i.d(t,{D_:()=>f,Dc:()=>y});var n=i(65958),o=i(94327),s=i(2106),r=i(10998),a=i(22467),l=i(66476),d=i(15365),c=i(93702),h=i(31540),u=i(44023),g=i(62919),p=i(73042),m=i(14731);const f=new h.N1("supportedCodeAction",""),v="_typescript.applyFixAllCodeAction";class _ extends r.jG{constructor(e,t,i,o=250){super(),this._editor=e,this._markerService=t,this._signalChange=i,this._delay=o,this._autoTriggerTimer=this._register(new n.pc),this._register(this._markerService.onMarkerChanged((e=>this._onMarkerChanges(e)))),this._register(this._editor.onDidChangeCursorPosition((()=>this._tryAutoTrigger())))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);this._signalChange(t?{trigger:e,selection:t}:void 0)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some((e=>(0,a.n4)(e,t.uri)))&&this._tryAutoTrigger()}_tryAutoTrigger(){this._autoTriggerTimer.cancelAndSet((()=>{this.trigger({type:2,triggerAction:g.fo.Default})}),this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getSelection();if(1===e.type)return t;const i=this._editor.getOption(65).enabled;if(i!==l.jT.Off){if(i===l.jT.On)return t;if(i===l.jT.OnCode){if(!t.isEmpty())return t;const e=this._editor.getModel(),{lineNumber:i,column:n}=t.getPosition(),o=e.getLineContent(i);if(0===o.length)return;if(1===n){if(/\s/.test(o[0]))return}else if(n===e.getLineMaxColumn(i)){if(/\s/.test(o[o.length-1]))return}else if(/\s/.test(o[n-2])&&/\s/.test(o[n-1]))return}return t}}}var b;!function(e){e.Empty={type:0},e.Triggered=class{constructor(e,t,i){this.trigger=e,this.position=t,this._cancellablePromise=i,this.type=1,this.actions=i.catch((e=>{if((0,o.MB)(e))return w;throw e}))}cancel(){this._cancellablePromise.cancel()}}}(b||(b={}));const w=Object.freeze({allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1,hasAIFix:!1,allAIFixes:!1});class y extends r.jG{constructor(e,t,i,n,o,a){super(),this._editor=e,this._registry=t,this._markerService=i,this._progressService=o,this._configurationService=a,this._codeActionOracle=this._register(new r.HE),this._state=b.Empty,this._onDidChangeState=this._register(new s.vl),this.onDidChangeState=this._onDidChangeState.event,this._disposed=!1,this._supportedCodeActions=f.bindTo(n),this._register(this._editor.onDidChangeModel((()=>this._update()))),this._register(this._editor.onDidChangeModelLanguage((()=>this._update()))),this._register(this._registry.onDidChange((()=>this._update()))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(65)&&this._update()}))),this._update()}dispose(){this._disposed||(this._disposed=!0,super.dispose(),this.setState(b.Empty,!0))}_settingEnabledNearbyQuickfixes(){var e;const t=null===(e=this._editor)||void 0===e?void 0:e.getModel();return!!this._configurationService&&this._configurationService.getValue("editor.codeActionWidget.includeNearbyQuickFixes",{resource:null==t?void 0:t.uri})}_update(){if(this._disposed)return;this._codeActionOracle.value=void 0,this.setState(b.Empty);const e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(92)){const t=this._registry.all(e).flatMap((e=>{var t;return null!==(t=e.providedCodeActionKinds)&&void 0!==t?t:[]}));this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new _(this._editor,this._markerService,(t=>{var i;if(!t)return void this.setState(b.Empty);const o=t.selection.getStartPosition(),s=(0,n.SS)((async i=>{var n,o,s,r,a,l,h,f,_,b;if(this._settingEnabledNearbyQuickfixes()&&1===t.trigger.type&&(t.trigger.triggerAction===g.fo.QuickFix||(null===(o=null===(n=t.trigger.filter)||void 0===n?void 0:n.include)||void 0===o?void 0:o.contains(g.gB.QuickFix)))){const n=await(0,p.dU)(this._registry,e,t.selection,t.trigger,u.ke.None,i),o=[...n.allActions];if(i.isCancellationRequested)return w;const y=null===(s=n.validActions)||void 0===s?void 0:s.some((e=>!!e.action.kind&&g.gB.QuickFix.contains(new m.k(e.action.kind)))),C=this._markerService.read({resource:e.uri});if(y){for(const e of n.validActions)(null===(a=null===(r=e.action.command)||void 0===r?void 0:r.arguments)||void 0===a?void 0:a.some((e=>"string"==typeof e&&e.includes(v))))&&(e.action.diagnostics=[...C.filter((e=>e.relatedInformation))]);return{validActions:n.validActions,allActions:o,documentation:n.documentation,hasAutoFix:n.hasAutoFix,hasAIFix:n.hasAIFix,allAIFixes:n.allAIFixes,dispose:()=>{n.dispose()}}}if(!y&&C.length>0){const s=t.selection.getPosition();let r=s,a=Number.MAX_VALUE;const m=[...n.validActions];for(const w of C){const y=w.endColumn,k=w.endLineNumber,S=w.startLineNumber;if(k===s.lineNumber||S===s.lineNumber){r=new d.y(k,y);const w={type:t.trigger.type,triggerAction:t.trigger.triggerAction,filter:{include:(null===(l=t.trigger.filter)||void 0===l?void 0:l.include)?null===(h=t.trigger.filter)||void 0===h?void 0:h.include:g.gB.QuickFix},autoApply:t.trigger.autoApply,context:{notAvailableMessage:(null===(f=t.trigger.context)||void 0===f?void 0:f.notAvailableMessage)||"",position:r}},S=new c.L(r.lineNumber,r.column,r.lineNumber,r.column),x=await(0,p.dU)(this._registry,e,S,w,u.ke.None,i);if(0!==x.validActions.length){for(const e of x.validActions)(null===(b=null===(_=e.action.command)||void 0===_?void 0:_.arguments)||void 0===b?void 0:b.some((e=>"string"==typeof e&&e.includes(v))))&&(e.action.diagnostics=[...C.filter((e=>e.relatedInformation))]);0===n.allActions.length&&o.push(...x.allActions),Math.abs(s.column-y)i.findIndex((t=>t.action.title===e.action.title))===t));return w.sort(((e,t)=>e.action.isPreferred&&!t.action.isPreferred?-1:!e.action.isPreferred&&t.action.isPreferred||e.action.isAI&&!t.action.isAI?1:!e.action.isAI&&t.action.isAI?-1:0)),{validActions:w,allActions:o,documentation:n.documentation,hasAutoFix:n.hasAutoFix,hasAIFix:n.hasAIFix,allAIFixes:n.allAIFixes,dispose:()=>{n.dispose()}}}}return(0,p.dU)(this._registry,e,t.selection,t.trigger,u.ke.None,i)}));1===t.trigger.type&&(null===(i=this._progressService)||void 0===i||i.showWhile(s,250));const r=new b.Triggered(t.trigger,o,s);let a=!1;1===this._state.type&&(a=1===this._state.trigger.type&&1===r.type&&2===r.trigger.type&&this._state.position!==r.position),a?setTimeout((()=>{this.setState(r)}),500):this.setState(r)}),void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:g.fo.Default})}else this._supportedCodeActions.reset()}trigger(e){var t;null===(t=this._codeActionOracle.value)||void 0===t||t.trigger(e)}setState(e,t){e!==this._state&&(1===this._state.type&&this._state.cancel(),this._state=e,t||this._disposed||this._onDidChangeState.fire(e))}}},27533:(e,t,i)=>{"use strict";i.d(t,{E:()=>I});var n=i(14333),o=i(30474),s=i(26048),r=i(2106),a=i(10998),l=i(58881),d=i(85072),c=i.n(d),h=i(97825),u=i.n(h),g=i(77659),p=i.n(g),m=i(55056),f=i.n(m),v=i(10540),_=i.n(v),b=i(41113),w=i.n(b),y=i(4169),C={};C.styleTagTransform=w(),C.setAttributes=f(),C.insert=p().bind(null,"head"),C.domAPI=u(),C.insertStyleElement=_(),c()(y.A,C),y.A&&y.A.locals&&y.A.locals;var k,S,x=i(50969),L=i(73042),D=i(3765),E=i(56071);!function(e){e.Hidden={type:0},e.Showing=class{constructor(e,t,i,n){this.actions=e,this.trigger=t,this.editorPosition=i,this.widgetPosition=n,this.type=1}}}(S||(S={}));let I=k=class extends a.jG{constructor(e,t){super(),this._editor=e,this._keybindingService=t,this._onClick=this._register(new r.vl),this.onClick=this._onClick.event,this._state=S.Hidden,this._iconClasses=[],this._domNode=n.$("div.lightBulbWidget"),this._domNode.role="listbox",this._register(o.q.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent((e=>{const t=this._editor.getModel();(1!==this.state.type||!t||this.state.editorPosition.lineNumber>=t.getLineCount())&&this.hide()}))),this._register(n.Xc(this._domNode,(e=>{if(1!==this.state.type)return;this._editor.focus(),e.preventDefault();const{top:t,height:i}=n.BK(this._domNode),o=this._editor.getOption(67);let s=Math.floor(o/3);null!==this.state.widgetPosition.position&&this.state.widgetPosition.position.lineNumber{1&~e.buttons||this.hide()}))),this._register(r.Jh.runAndSubscribe(this._keybindingService.onDidUpdateKeybindings,(()=>{var e,t,i,n;this._preferredKbLabel=null!==(t=null===(e=this._keybindingService.lookupKeybinding(L.pR))||void 0===e?void 0:e.getLabel())&&void 0!==t?t:void 0,this._quickFixKbLabel=null!==(n=null===(i=this._keybindingService.lookupKeybinding(L.pQ))||void 0===i?void 0:i.getLabel())&&void 0!==n?n:void 0,this._updateLightBulbTitleAndIcon()})))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return 1===this._state.type?this._state.widgetPosition:null}update(e,t,i){if(e.validActions.length<=0)return this.hide();if(!this._editor.getOptions().get(65).enabled)return this.hide();const n=this._editor.getModel();if(!n)return this.hide();const{lineNumber:o,column:s}=n.validatePosition(i),r=n.getOptions().tabSize,a=this._editor.getOptions().get(50),l=n.getLineContent(o),d=(0,x.G)(l,r),c=a.spaceWidth*d>22,h=e=>e>2&&this._editor.getTopForLineNumber(e)===this._editor.getTopForLineNumber(e-1);let u=o,g=1;if(!c){const e=e=>{const t=n.getLineContent(e);return/^\s*$|^\s+/.test(t)||t.length<=g};if(o>1&&!h(o-1)){const t=o===n.getLineCount(),i=o>1&&e(o-1),s=!t&&e(o+1),r=e(o),a=!s&&!i;i||t||a&&!r?u-=1:(s||a&&r)&&(u+=1)}else if(o=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(N=1,M=E.b,function(e,t){M(e,t,N)})],I)},62919:(e,t,i)=>{"use strict";i.d(t,{QA:()=>c,Vi:()=>h,aF:()=>l,fo:()=>r,gB:()=>s,uJ:()=>a});var n=i(94327),o=i(14731);const s=new class{constructor(){this.QuickFix=new o.k("quickfix"),this.Refactor=new o.k("refactor"),this.RefactorExtract=this.Refactor.append("extract"),this.RefactorInline=this.Refactor.append("inline"),this.RefactorMove=this.Refactor.append("move"),this.RefactorRewrite=this.Refactor.append("rewrite"),this.Notebook=new o.k("notebook"),this.Source=new o.k("source"),this.SourceOrganizeImports=this.Source.append("organizeImports"),this.SourceFixAll=this.Source.append("fixAll"),this.SurroundWith=this.Refactor.append("surround")}};var r;function a(e,t){return!(e.include&&!e.include.intersects(t)||e.excludes&&e.excludes.some((i=>d(t,i,e.include)))||!e.includeSourceActions&&s.Source.contains(t))}function l(e,t){const i=t.kind?new o.k(t.kind):void 0;return!(!(!e.include||i&&e.include.contains(i))||e.excludes&&i&&e.excludes.some((t=>d(i,t,e.include)))||!e.includeSourceActions&&i&&s.Source.contains(i)||e.onlyIncludePreferredActions&&!t.isPreferred)}function d(e,t,i){return!(!t.contains(e)||i&&t.contains(i))}!function(e){e.Refactor="refactor",e.RefactorPreview="refactor preview",e.Lightbulb="lightbulb",e.Default="other (default)",e.SourceAction="source action",e.QuickFix="quick fix action",e.FixAll="fix all",e.OrganizeImports="organize imports",e.AutoFix="auto fix",e.QuickFixHover="quick fix hover window",e.OnSave="save participants",e.ProblemsView="problems view"}(r||(r={}));class c{static fromUser(e,t){return e&&"object"==typeof e?new c(c.getKindFromUser(e,t.kind),c.getApplyFromUser(e,t.apply),c.getPreferredUser(e)):new c(t.kind,t.apply,!1)}static getApplyFromUser(e,t){switch("string"==typeof e.apply?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return"string"==typeof e.kind?new o.k(e.kind):t}static getPreferredUser(e){return"boolean"==typeof e.preferred&&e.preferred}constructor(e,t,i){this.kind=e,this.apply=t,this.preferred=i}}class h{constructor(e,t,i){this.action=e,this.provider=t,this.highlightRange=i}async resolve(e){var t;if((null===(t=this.provider)||void 0===t?void 0:t.resolveCodeAction)&&!this.action.edit){let t;try{t=await this.provider.resolveCodeAction(this.action,e)}catch(e){(0,n.M_)(e)}t&&(this.action.edit=t.edit)}return this}}},62828:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CodeLensContribution:()=>ne});var n=i(65958),o=i(94327),s=i(10998),r=i(80878),a=i(50946),l=i(66476),d=i(38122),c=i(78903),h=i(79359),u=i(37264),g=i(64830),p=i(59715),m=i(52230);class f{constructor(){this.lenses=[],this._disposables=new s.Cm}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(const i of e.lenses)this.lenses.push({symbol:i,provider:t})}}async function v(e,t,i){const n=e.ordered(t),s=new Map,r=new f,a=n.map((async(e,n)=>{s.set(e,n);try{const n=await Promise.resolve(e.provideCodeLenses(t,i));n&&r.add(n,e)}catch(e){(0,o.M_)(e)}}));return await Promise.all(a),r.lenses=r.lenses.sort(((e,t)=>e.symbol.range.startLineNumbert.symbol.range.startLineNumber?1:s.get(e.provider)s.get(t.provider)?1:e.symbol.range.startColumnt.symbol.range.startColumn?1:0)),r}p.w.registerCommand("_executeCodeLensProvider",(function(e,...t){let[i,n]=t;(0,h.j)(u.r.isUri(i)),(0,h.j)("number"==typeof n||!n);const{codeLensProvider:r}=e.get(m.u),a=e.get(g.S).getModel(i);if(!a)throw(0,o.Qg)();const l=[],d=new s.Cm;return v(r,a,c.XO.None).then((e=>{d.add(e);const t=[];for(const i of e.lenses)null==n||Boolean(i.symbol.command)?l.push(i.symbol):n-- >0&&i.provider.resolveCodeLens&&t.push(Promise.resolve(i.provider.resolveCodeLens(a,i.symbol,c.XO.None)).then((e=>l.push(e||i.symbol))));return Promise.all(t)})).then((()=>l)).finally((()=>{setTimeout((()=>d.dispose()),100)}))}));var _=i(2106),b=i(27992),w=i(28061),y=i(66726),C=i(82399),k=i(90840),S=i(48877),x=i(14333);const L=(0,C.u1)("ICodeLensCache");class D{constructor(e,t){this.lineCount=e,this.data=t}}let E=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new b.qK(20,.75),(0,x.U3)(S.G,(()=>e.remove("codelens/cache",1)));const t="codelens/cache2",i=e.get(t,1,"{}");this._deserialize(i),_.Jh.once(e.onWillSaveState)((i=>{i.reason===k.LP.SHUTDOWN&&e.store(t,this._serialize(),1,1)}))}put(e,t){const i=t.lenses.map((e=>{var t;return{range:e.symbol.range,command:e.symbol.command&&{id:"",title:null===(t=e.symbol.command)||void 0===t?void 0:t.title}}})),n=new f;n.add({lenses:i,dispose:()=>{}},this._fakeProvider);const o=new D(e.getLineCount(),n);this._cache.set(e.uri.toString(),o)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,i]of this._cache){const n=new Set;for(const e of i.data.lenses)n.add(e.symbol.range.startLineNumber);e[t]={lineCount:i.lineCount,lines:[...n.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const e in t){const i=t[e],n=[];for(const e of i.lines)n.push({range:new w.Q(e,1,e,11)});const o=new f;o.add({lenses:n,dispose(){}},this._fakeProvider),this._cache.set(e,new D(i.lineCount,o))}}catch(e){}}};var I,N;E=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(I=0,N=k.CS,function(e,t){N(e,t,I)})],E),(0,y.v)(L,E,1);var M=i(91818),A=i(85072),T=i.n(A),R=i(97825),P=i.n(R),O=i(77659),F=i.n(O),B=i(55056),W=i.n(B),H=i(10540),V=i.n(H),z=i(41113),j=i.n(z),U=i(61727),$={};$.styleTagTransform=j(),$.setAttributes=W(),$.insert=F().bind(null,"head"),$.domAPI=P(),$.insertStyleElement=V(),T()(U.A,$),U.A&&U.A.locals&&U.A.locals;var K=i(74774);class q{constructor(e,t,i){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=i,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){void 0===this._lastHeight?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return 0!==this._lastHeight&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class G{constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id="codelens.widget-"+G._idPool++,this.updatePosition(t),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(e,t){this._commands.clear();const i=[];let n=!1;for(let t=0;t{e.symbol.command&&a.push(e.symbol),i.addDecoration({range:e.symbol.range,options:Z},(e=>this._decorationIds[t]=e)),r=r?w.Q.plusRange(r,e.symbol.range):w.Q.lift(e.symbol.range)})),this._viewZone=new q(r.startLineNumber-1,o,s),this._viewZoneId=n.addZone(this._viewZone),a.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(a,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new G(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],null==t||t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some(((e,t)=>{const i=this._editor.getModel().getDecorationRange(e),n=this._data[t].symbol;return!(!i||w.Q.isEmpty(n.range)!==i.isEmpty())}))}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach(((e,i)=>{t.addDecoration({range:e.symbol.range,options:Z},(e=>this._decorationIds[i]=e))}))}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;tthis._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((e=>{(e.hasChanged(50)||e.hasChanged(19)||e.hasChanged(18))&&this._updateLensStyle(),e.hasChanged(17)&&this._onModelChange()}))),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),null===(e=this._currentCodeLensModel)||void 0===e||e.dispose()}_getLayoutInfo(){const e=Math.max(1.3,this._editor.getOption(67)/this._editor.getOption(52));let t=this._editor.getOption(19);return(!t||t<5)&&(t=.9*this._editor.getOption(52)|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(18),n=this._editor.getOption(50),{style: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),i&&(o.setProperty("--vscode-editorCodeLens-fontFamily",i),o.setProperty("--vscode-editorCodeLens-fontFamilyDefault",l.jU.fontFamily)),this._editor.changeViewZones((t=>{for(const i of this._lenses)i.updateHeight(e,t)}))}_localDispose(){var e,t,i;null===(e=this._getCodeLensModelPromise)||void 0===e||e.cancel(),this._getCodeLensModelPromise=void 0,null===(t=this._resolveCodeLensesPromise)||void 0===t||t.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),null===(i=this._currentCodeLensModel)||void 0===i||i.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e)return;if(!this._editor.getOption(17)||e.isTooLargeForTokenization())return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e))return void(t&&(0,n.EQ)((()=>{const i=this._codeLensCache.get(e);t===i&&(this._codeLensCache.delete(e),this._onModelChange())}),3e4,this._localToDispose));for(const t of this._languageFeaturesService.codeLensProvider.all(e))if("function"==typeof t.onDidChange){const e=t.onDidChange((()=>i.schedule()));this._localToDispose.add(e)}const i=new n.uC((()=>{var t;const s=Date.now();null===(t=this._getCodeLensModelPromise)||void 0===t||t.cancel(),this._getCodeLensModelPromise=(0,n.SS)((t=>v(this._languageFeaturesService.codeLensProvider,e,t))),this._getCodeLensModelPromise.then((t=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=t,this._codeLensCache.put(e,t);const n=this._provideCodeLensDebounce.update(e,Date.now()-s);i.delay=n,this._renderCodeLensSymbols(t),this._resolveCodeLensesInViewportSoon()}),o.dz)}),this._provideCodeLensDebounce.get(e));this._localToDispose.add(i),this._localToDispose.add((0,s.s)((()=>this._resolveCodeLensesScheduler.cancel()))),this._localToDispose.add(this._editor.onDidChangeModelContent((()=>{var e;this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{const i=[];let n=-1;this._lenses.forEach((e=>{e.isValid()&&n!==e.getLineNumber()?(e.update(t),n=e.getLineNumber()):i.push(e)}));const o=new Q;i.forEach((e=>{e.dispose(o,t),this._lenses.splice(this._lenses.indexOf(e),1)})),o.commit(e)}))})),i.schedule(),this._resolveCodeLensesScheduler.cancel(),null===(e=this._resolveCodeLensesPromise)||void 0===e||e.cancel(),this._resolveCodeLensesPromise=void 0}))),this._localToDispose.add(this._editor.onDidFocusEditorText((()=>{i.schedule()}))),this._localToDispose.add(this._editor.onDidBlurEditorText((()=>{i.cancel()}))),this._localToDispose.add(this._editor.onDidScrollChange((e=>{e.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()}))),this._localToDispose.add(this._editor.onDidLayoutChange((()=>{this._resolveCodeLensesInViewportSoon()}))),this._localToDispose.add((0,s.s)((()=>{if(this._editor.getModel()){const e=r.D.capture(this._editor);this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{this._disposeAllLenses(e,t)}))})),e.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)}))),this._localToDispose.add(this._editor.onMouseDown((e=>{if(9!==e.target.type)return;let t=e.target.element;if("SPAN"===(null==t?void 0:t.tagName)&&(t=t.parentElement),"A"===(null==t?void 0:t.tagName))for(const e of this._lenses){const i=e.getCommand(t);if(i){this._commandService.executeCommand(i.id,...i.arguments||[]).catch((e=>this._notificationService.error(e)));break}}}))),i.schedule()}_disposeAllLenses(e,t){const i=new Q;for(const e of this._lenses)e.dispose(i,t);e&&i.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;const t=this._editor.getModel().getLineCount(),i=[];let n;for(const o of e.lenses){const e=o.symbol.range.startLineNumber;e<1||e>t||(n&&n[n.length-1].symbol.range.startLineNumber===e?n.push(o):(n=[o],i.push(n)))}if(!i.length&&!this._lenses.length)return;const o=r.D.capture(this._editor),s=this._getLayoutInfo();this._editor.changeDecorations((e=>{this._editor.changeViewZones((t=>{const n=new Q;let o=0,r=0;for(;rthis._resolveCodeLensesInViewportSoon()))),o++,r++)}for(;othis._resolveCodeLensesInViewportSoon()))),r++;n.commit(e)}))})),o.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var e;null===(e=this._resolveCodeLensesPromise)||void 0===e||e.cancel(),this._resolveCodeLensesPromise=void 0;const t=this._editor.getModel();if(!t)return;const i=[],s=[];if(this._lenses.forEach((e=>{const n=e.computeIfNecessary(t);n&&(i.push(n),s.push(e))})),0===i.length)return;const r=Date.now(),a=(0,n.SS)((e=>{const n=i.map(((i,n)=>{const r=new Array(i.length),a=i.map(((i,n)=>i.symbol.command||"function"!=typeof i.provider.resolveCodeLens?(r[n]=i.symbol,Promise.resolve(void 0)):Promise.resolve(i.provider.resolveCodeLens(t,i.symbol,e)).then((e=>{r[n]=e}),o.M_)));return Promise.all(a).then((()=>{e.isCancellationRequested||s[n].isDisposed()||s[n].updateCommands(r)}))}));return Promise.all(n)}));this._resolveCodeLensesPromise=a,this._resolveCodeLensesPromise.then((()=>{const e=this._resolveCodeLensesDebounce.update(t,Date.now()-r);this._resolveCodeLensesScheduler.delay=e,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),a===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)}),(e=>{(0,o.dz)(e),a===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)}))}async getModel(){var e;return await this._getCodeLensModelPromise,await this._resolveCodeLensesPromise,(null===(e=this._currentCodeLensModel)||void 0===e?void 0:e.isDisposed)?void 0:this._currentCodeLensModel}};ne.ID="css.editor.codeLens",ne=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([ie(1,m.u),ie(2,te.U),ie(3,p.d),ie(4,J.Ot),ie(5,L)],ne),(0,a.HW)(ne.ID,ne,1),(0,a.Fl)(class extends a.ks{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:d.R.hasCodeLensProvider,label:(0,X.k)("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}async run(e,t){if(!t.hasModel())return;const i=e.get(ee.GK),n=e.get(p.d),o=e.get(J.Ot),s=t.getSelection().positionLineNumber,r=t.getContribution(ne.ID);if(!r)return;const a=await r.getModel();if(!a)return;const l=[];for(const e of a.lenses)e.symbol.command&&e.symbol.range.startLineNumber===s&&l.push({label:e.symbol.command.title,command:e.symbol.command});if(0===l.length)return;const d=await i.pick(l,{canPickMany:!1,placeHolder:(0,X.k)("placeHolder","Select a command")});if(!d)return;let c=d.command;if(a.isDisposed){const e=await r.getModel(),t=null==e?void 0:e.lenses.find((e=>{var t;return e.symbol.range.startLineNumber===s&&(null===(t=e.symbol.command)||void 0===t?void 0:t.title)===c.title}));if(!t||!t.symbol.command)return;c=t.symbol.command}try{await n.executeCommand(c.id,...c.arguments||[])}catch(e){o.error(e)}}})},28654:(e,t,i)=>{"use strict";i.d(t,{R:()=>g,j:()=>u});var n=i(78903),o=i(94327),s=i(37264),r=i(28061),a=i(64830),l=i(59715),d=i(52230),c=i(56307),h=i(85753);async function u(e,t,i,n=!0){return v(new p,e,t,i,n)}function g(e,t,i,n){return Promise.resolve(i.provideColorPresentations(e,t,n))}class p{constructor(){}async compute(e,t,i,n){const o=await e.provideDocumentColors(t,i);if(Array.isArray(o))for(const t of o)n.push({colorInfo:t,provider:e});return Array.isArray(o)}}class m{constructor(){}async compute(e,t,i,n){const o=await e.provideDocumentColors(t,i);if(Array.isArray(o))for(const e of o)n.push({range:e.range,color:[e.color.red,e.color.green,e.color.blue,e.color.alpha]});return Array.isArray(o)}}class f{constructor(e){this.colorInfo=e}async compute(e,t,i,o){const s=await e.provideColorPresentations(t,this.colorInfo,n.XO.None);return Array.isArray(s)&&o.push(...s),Array.isArray(s)}}async function v(e,t,i,n,s){let r,a=!1;const l=[],d=t.ordered(i);for(let t=d.length-1;t>=0;t--){const s=d[t];if(s instanceof c.L)r=s;else try{await e.compute(s,i,n,l)&&(a=!0)}catch(e){(0,o.M_)(e)}}return a?l:r&&s?(await e.compute(r,i,n,l),l):[]}function _(e,t){const{colorProvider:i}=e.get(d.u),n=e.get(a.S).getModel(t);if(!n)throw(0,o.Qg)();return{model:n,colorProviderRegistry:i,isDefaultColorDecoratorsEnabled:e.get(h.pG).getValue("editor.defaultColorDecorators",{resource:t})}}l.w.registerCommand("_executeDocumentColorProvider",(function(e,...t){const[i]=t;if(!(i instanceof s.r))throw(0,o.Qg)();const{model:r,colorProviderRegistry:a,isDefaultColorDecoratorsEnabled:l}=_(e,i);return v(new m,a,r,n.XO.None,l)})),l.w.registerCommand("_executeColorPresentationProvider",(function(e,...t){const[i,a]=t,{uri:l,range:d}=a;if(!(l instanceof s.r&&Array.isArray(i)&&4===i.length&&r.Q.isIRange(d)))throw(0,o.Qg)();const{model:c,colorProviderRegistry:h,isDefaultColorDecoratorsEnabled:u}=_(e,l),[g,p,m,b]=i;return v(new f({range:d,color:{red:g,green:p,blue:m,alpha:b}}),h,c,n.XO.None,u)}))},75923:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ColorContribution:()=>c});var n=i(10998),o=i(50946),s=i(28061),r=i(21204),a=i(51982),l=i(31653),d=i(46311);class c extends n.jG{constructor(e){super(),this._editor=e,this._register(e.onMouseDown((e=>this.onMouseDown(e))))}dispose(){super.dispose()}onMouseDown(e){const t=this._editor.getOption(149);if("click"!==t&&"clickAndHover"!==t)return;const i=e.target;if(6!==i.type)return;if(!i.detail.injectedText)return;if(i.detail.injectedText.options.attachedData!==r.nM)return;if(!i.range)return;const n=this._editor.getContribution(l.n.ID);if(n&&!n.isColorPickerVisible){const e=new s.Q(i.range.startLineNumber,i.range.startColumn+1,i.range.endLineNumber,i.range.endColumn+1);n.showContentHover(e,1,0,!1,!0)}}}c.ID="editor.contrib.colorContribution",(0,o.HW)(c.ID,c,2),d.B2.register(a.BJ)},21204:(e,t,i)=>{"use strict";i.d(t,{mn:()=>y,nM:()=>w});var n,o=i(65958),s=i(94901),r=i(94327),a=i(2106),l=i(10998),d=i(23013),c=i(16844),h=i(58574),u=i(50946),g=i(28061),p=i(74774),m=i(12060),f=i(52230),v=i(28654),_=i(85753),b=function(e,t){return function(i,n){t(i,n,e)}};const w=Object.create({});let y=n=class extends l.jG{constructor(e,t,i,o){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=i,this._localToDispose=this._register(new l.Cm),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new h.Qn(this._editor),this._decoratorLimitReporter=new C,this._colorDecorationClassRefs=this._register(new l.Cm),this._debounceInformation=o.for(i.colorProvider,"Document Colors",{min:n.RECOMPUTE_TIME}),this._register(e.onDidChangeModel((()=>{this._isColorDecoratorsEnabled=this.isEnabled(),this.updateColors()}))),this._register(e.onDidChangeModelLanguage((()=>this.updateColors()))),this._register(i.colorProvider.onDidChange((()=>this.updateColors()))),this._register(e.onDidChangeConfiguration((e=>{const t=this._isColorDecoratorsEnabled;this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(148);const i=t!==this._isColorDecoratorsEnabled||e.hasChanged(21),n=e.hasChanged(148);(i||n)&&(this._isColorDecoratorsEnabled?this.updateColors():this.removeAllDecorations())}))),this._timeoutTimer=null,this._computePromise=null,this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(148),this.updateColors()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageId(),i=this._configurationService.getValue(t);if(i&&"object"==typeof i){const e=i.colorDecorators;if(e&&void 0!==e.enable&&!e.enable)return e.enable}return this._editor.getOption(20)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}updateColors(){if(this.stop(),!this._isColorDecoratorsEnabled)return;const e=this._editor.getModel();e&&this._languageFeaturesService.colorProvider.has(e)&&(this._localToDispose.add(this._editor.onDidChangeModelContent((()=>{this._timeoutTimer||(this._timeoutTimer=new o.pc,this._timeoutTimer.cancelAndSet((()=>{this._timeoutTimer=null,this.beginCompute()}),this._debounceInformation.get(e)))}))),this.beginCompute())}async beginCompute(){this._computePromise=(0,o.SS)((async e=>{const t=this._editor.getModel();if(!t)return[];const i=new d.W(!1),n=await(0,v.j)(this._languageFeaturesService.colorProvider,t,e,this._isDefaultColorDecoratorsEnabled);return this._debounceInformation.update(t,i.elapsed()),n}));try{const e=await this._computePromise;this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null}catch(e){(0,r.dz)(e)}}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map((e=>({range:{startLineNumber:e.colorInfo.range.startLineNumber,startColumn:e.colorInfo.range.startColumn,endLineNumber:e.colorInfo.range.endLineNumber,endColumn:e.colorInfo.range.endColumn},options:p.kI.EMPTY})));this._editor.changeDecorations((i=>{this._decorationsIds=i.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach(((t,i)=>this._colorDatas.set(t,e[i])))}))}updateColorDecorators(e){this._colorDecorationClassRefs.clear();const t=[],i=this._editor.getOption(21);for(let n=0;nthis._colorDatas.has(e.id)));return 0===i.length?null:this._colorDatas.get(i[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};y.ID="editor.contrib.colorDetector",y.RECOMPUTE_TIME=1e3,y=n=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([b(1,_.pG),b(2,f.u),b(3,m.U)],y);class C{constructor(){this._onDidChange=new a.vl,this._computed=0,this._limited=!1}update(e,t){e===this._computed&&t===this._limited||(this._computed=e,this._limited=t,this._onDidChange.fire())}}(0,u.HW)(y.ID,y,1)},51982:(e,t,i)=>{"use strict";i.d(t,{BJ:()=>O,WE:()=>B});var n=i(65958),o=i(78903),s=i(94901),r=i(10998),a=i(28061),l=i(28654),d=i(21204),c=i(2106);class h{get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(e,t,i){this.presentationIndex=i,this._onColorFlushed=new c.vl,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new c.vl,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new c.vl,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){let i=-1;for(let e=0;e{this.backgroundColor=e.getColor(b.WfR)||s.Q1.white}))),this._register(g.ko(this._pickedColorNode,g.Bx.CLICK,(()=>this.model.selectNextColorPresentation()))),this._register(g.ko(this._originalColorNode,g.Bx.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=s.Q1.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 k(this._domNode)))}get closeButton(){return this._closeButton}get pickedColorNode(){return this._pickedColorNode}get originalColorNode(){return this._originalColorNode}onDidChangeColor(e){this._pickedColorNode.style.backgroundColor=s.Q1.Format.CSS.format(e)||"",this._pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this._pickedColorPresentation.textContent=this.model.presentation?this.model.presentation.label:""}}class k extends r.jG{constructor(e){super(),this._onClicked=this._register(new c.vl),this.onClicked=this._onClicked.event,this._button=document.createElement("div"),this._button.classList.add("close-button"),g.BC(e,this._button);const t=document.createElement("div");t.classList.add("close-button-inner-div"),g.BC(this._button,t),g.BC(t,y(".button"+v.L.asCSSSelector((0,w.pU)("color-picker-close",f.W.close,(0,_.k)("closeIcon","Icon to close the color picker"))))).classList.add("close-icon"),this._register(g.ko(this._button,g.Bx.CLICK,(()=>{this._onClicked.fire()})))}}class S extends r.jG{constructor(e,t,i,n=!1){super(),this.model=t,this.pixelRatio=i,this._insertButton=null,this._domNode=y(".colorpicker-body"),g.BC(e,this._domNode),this._saturationBox=new x(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 D(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 E(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 I(this._domNode)),this._domNode.classList.add("standalone-colorpicker"))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const i=this.model.color.hsva;this.model.color=new s.Q1(new s.$J(i.h,e,t,i.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new s.Q1(new s.$J(t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,i=360*(1-e);this.model.color=new s.Q1(new s.$J(360===i?0:i,t.s,t.v,t.a))}get domNode(){return this._domNode}get saturationBox(){return this._saturationBox}get enterButton(){return this._insertButton}layout(){this._saturationBox.layout(),this._opacityStrip.layout(),this._hueStrip.layout()}}class x extends r.jG{constructor(e,t,i){super(),this.model=t,this.pixelRatio=i,this._onDidChange=new c.vl,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new c.vl,this.onColorFlushed=this._onColorFlushed.event,this._domNode=y(".saturation-wrap"),g.BC(e,this._domNode),this._canvas=document.createElement("canvas"),this._canvas.className="saturation-box",g.BC(this._domNode,this._canvas),this.selection=y(".saturation-selection"),g.BC(this._domNode,this.selection),this.layout(),this._register(g.ko(this._domNode,g.Bx.POINTER_DOWN,(e=>this.onPointerDown(e)))),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 p._);const t=g.BK(this._domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,(e=>this.onDidChangePosition(e.pageX-t.left,e.pageY-t.top)),(()=>null));const i=g.ko(e.target.ownerDocument,g.Bx.POINTER_UP,(()=>{this._onColorFlushed.fire(),i.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)}),!0)}onDidChangePosition(e,t){const i=Math.max(0,Math.min(1,e/this.width)),n=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(i,n),this._onDidChange.fire({s:i,v:n})}layout(){this.width=this._domNode.offsetWidth,this.height=this._domNode.offsetHeight,this._canvas.width=this.width*this.pixelRatio,this._canvas.height=this.height*this.pixelRatio,this.paint();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new s.Q1(new s.$J(e.h,1,1,1)),i=this._canvas.getContext("2d"),n=i.createLinearGradient(0,0,this._canvas.width,0);n.addColorStop(0,"rgba(255, 255, 255, 1)"),n.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),n.addColorStop(1,"rgba(255, 255, 255, 0)");const o=i.createLinearGradient(0,0,0,this._canvas.height);o.addColorStop(0,"rgba(0, 0, 0, 0)"),o.addColorStop(1,"rgba(0, 0, 0, 1)"),i.rect(0,0,this._canvas.width,this._canvas.height),i.fillStyle=s.Q1.Format.CSS.format(t),i.fill(),i.fillStyle=n,i.fill(),i.fillStyle=o,i.fill()}paintSelection(e,t){this.selection.style.left=e*this.width+"px",this.selection.style.top=this.height-t*this.height+"px"}onDidChangeColor(e){if(this.monitor&&this.monitor.isMonitoring())return;this.paint();const t=e.hsva;this.paintSelection(t.s,t.v)}}class L extends r.jG{constructor(e,t,i=!1){super(),this.model=t,this._onDidChange=new c.vl,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new c.vl,this.onColorFlushed=this._onColorFlushed.event,i?(this.domNode=g.BC(e,y(".standalone-strip")),this.overlay=g.BC(this.domNode,y(".standalone-overlay"))):(this.domNode=g.BC(e,y(".strip")),this.overlay=g.BC(this.domNode,y(".overlay"))),this.slider=g.BC(this.domNode,y(".slider")),this.slider.style.top="0px",this._register(g.ko(this.domNode,g.Bx.POINTER_DOWN,(e=>this.onPointerDown(e)))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onDidChangeColor(e){const t=this.getValue(e);this.updateSliderPosition(t)}onPointerDown(e){if(!(e.target&&e.target instanceof Element))return;const t=this._register(new p._),i=g.BK(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,(e=>this.onDidChangeTop(e.pageY-i.top)),(()=>null));const n=g.ko(e.target.ownerDocument,g.Bx.POINTER_UP,(()=>{this._onColorFlushed.fire(),n.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")}),!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=(1-e)*this.height+"px"}}class D extends L{constructor(e,t,i=!1){super(e,t,i),this.domNode.classList.add("opacity-strip"),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){super.onDidChangeColor(e);const{r:t,g:i,b:n}=e.rgba,o=new s.Q1(new s.bU(t,i,n,1)),r=new s.Q1(new s.bU(t,i,n,0));this.overlay.style.background=`linear-gradient(to bottom, ${o} 0%, ${r} 100%)`}getValue(e){return e.hsva.a}}class E extends L{constructor(e,t,i=!1){super(e,t,i),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class I extends r.jG{constructor(e){super(),this._onClicked=this._register(new c.vl),this.onClicked=this._onClicked.event,this._button=g.BC(e,document.createElement("button")),this._button.classList.add("insert-button"),this._button.textContent="Insert",this._register(g.ko(this._button,g.Bx.CLICK,(()=>{this._onClicked.fire()})))}get button(){return this._button}}class N extends m.x{constructor(e,t,i,n,o=!1){super(),this.model=t,this.pixelRatio=i,this._register(u.c.getInstance(g.zk(e)).onDidChange((()=>this.layout()))),this._domNode=y(".colorpicker-widget"),e.appendChild(this._domNode),this.header=this._register(new C(this._domNode,this.model,n,o)),this.body=this._register(new S(this._domNode,this.model,this.pixelRatio,o))}layout(){this.body.layout()}get domNode(){return this._domNode}}var M=i(46311),A=i(89044),T=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},R=function(e,t){return function(i,n){t(i,n,e)}};class P{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let O=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=2}computeSync(e,t){return[]}computeAsync(e,t,i){return n.AE.fromPromise(this._computeAsync(e,t,i))}async _computeAsync(e,t,i){if(!this._editor.hasModel())return[];const n=d.mn.get(this._editor);if(!n)return[];for(const e of t){if(!n.isColorDecoration(e))continue;const t=n.getColorData(e.range.getStartPosition());if(t)return[await W(this,this._editor.getModel(),t.colorInfo,t.provider)]}return[]}renderHoverParts(e,t){const i=H(this,this._editor,this._themeService,t,e);if(!i)return new M.Ke([]);this._colorPicker=i.colorPicker;const n={hoverPart:i.hoverPart,hoverElement:this._colorPicker.domNode,dispose(){i.disposables.dispose()}};return new M.Ke([n])}getAccessibleContent(e){return _.k("hoverAccessibilityColorParticipant","There is a color picker here.")}handleResize(){var e;null===(e=this._colorPicker)||void 0===e||e.layout()}isColorPickerVisible(){return!!this._colorPicker}};O=T([R(1,A.Gy)],O);class F{constructor(e,t,i,n){this.owner=e,this.range=t,this.model=i,this.provider=n}}let B=class{constructor(e,t){this._editor=e,this._themeService=t,this._color=null}async createColorHover(e,t,i){if(!this._editor.hasModel())return null;if(!d.mn.get(this._editor))return null;const n=await(0,l.j)(i,this._editor.getModel(),o.XO.None);let s=null,r=null;for(const t of n){const i=t.colorInfo;a.Q.containsRange(i.range,e.range)&&(s=i,r=t.provider)}const c=null!=s?s:e,h=null!=r?r:t,u=!!s;return{colorHover:await W(this,this._editor.getModel(),c,h),foundInEditor:u}}async updateEditorModel(e){if(!this._editor.hasModel())return;const t=e.model;let i=new a.Q(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn);this._color&&(await z(this._editor.getModel(),t,this._color,i,e),i=V(this._editor,i,t))}renderHoverParts(e,t){return H(this,this._editor,this._themeService,t,e)}set color(e){this._color=e}get color(){return this._color}};async function W(e,t,i,n){const r=t.getValueInRange(i.range),{red:d,green:c,blue:u,alpha:g}=i.color,p=new s.bU(Math.round(255*d),Math.round(255*c),Math.round(255*u),g),m=new s.Q1(p),f=await(0,l.R)(t,i,n,o.XO.None),v=new h(m,[],0);return v.colorPresentations=f||[],v.guessColorPresentation(m,r),e instanceof O?new P(e,a.Q.lift(i.range),v,n):new F(e,a.Q.lift(i.range),v,n)}function H(e,t,i,n,o){if(0===n.length||!t.hasModel())return;if(o.setMinimumDimensions){const e=t.getOption(67)+8;o.setMinimumDimensions(new g.fg(302,e))}const s=new r.Cm,l=n[0],d=t.getModel(),c=l.model,h=s.add(new N(o.fragment,c,t.getOption(144),i,e instanceof B));let u=!1,p=new a.Q(l.range.startLineNumber,l.range.startColumn,l.range.endLineNumber,l.range.endColumn);if(e instanceof B){const t=l.model.color;e.color=t,z(d,c,t,p,l),s.add(c.onColorFlushed((t=>{e.color=t})))}else s.add(c.onColorFlushed((async e=>{await z(d,c,e,p,l),u=!0,p=V(t,p,c)})));return s.add(c.onDidChangeColor((e=>{z(d,c,e,p,l)}))),s.add(t.onDidChangeModelContent((e=>{u?u=!1:(o.hide(),t.focus())}))),{hoverPart:l,colorPicker:h,disposables:s}}function V(e,t,i){var n,o;const s=[],r=null!==(n=i.presentation.textEdit)&&void 0!==n?n:{range:t,text:i.presentation.label,forceMoveMarkers:!1};s.push(r),i.presentation.additionalTextEdits&&s.push(...i.presentation.additionalTextEdits);const l=a.Q.lift(r.range),d=e.getModel()._setTrackedRange(null,l,3);return e.executeEdits("colorpicker",s),e.pushUndoStop(),null!==(o=e.getModel()._getTrackedRange(d))&&void 0!==o?o:l}async function z(e,t,i,n,s){const r=await(0,l.R)(e,{range:n,color:{red:i.rgba.r/255,green:i.rgba.g/255,blue:i.rgba.b/255,alpha:i.rgba.a}},s.provider,o.XO.None);t.colorPresentations=r||[]}B=T([R(1,A.Gy)],B)},56307:(e,t,i)=>{"use strict";i.d(t,{L:()=>h});var n=i(94901),o=i(7002),s=i(64830),r=i(52394),a=i(10998),l=i(52230),d=i(90426),c=function(e,t){return function(i,n){t(i,n,e)}};class h{constructor(e,t){this._editorWorkerClient=new o.Z6(e,!1,"editorWorkerService",t)}async provideDocumentColors(e,t){return this._editorWorkerClient.computeDefaultDocumentColors(e.uri)}provideColorPresentations(e,t,i){const o=t.range,s=t.color,r=s.alpha,a=new n.Q1(new n.bU(Math.round(255*s.red),Math.round(255*s.green),Math.round(255*s.blue),r)),l=r?n.Q1.Format.CSS.formatRGB(a):n.Q1.Format.CSS.formatRGBA(a),d=r?n.Q1.Format.CSS.formatHSL(a):n.Q1.Format.CSS.formatHSLA(a),c=r?n.Q1.Format.CSS.formatHex(a):n.Q1.Format.CSS.formatHexA(a),h=[];return h.push({label:l,textEdit:{range:o,text:l}}),h.push({label:d,textEdit:{range:o,text:d}}),h.push({label:c,textEdit:{range:o,text:c}}),h}}let u=class extends a.jG{constructor(e,t,i){super(),this._register(i.colorProvider.register("*",new h(e,t)))}};u=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([c(0,s.S),c(1,r.JZ),c(2,l.u)],u),(0,d.x)(u)},91625:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ShowOrFocusStandaloneColorPicker:()=>L});var n,o,s=i(50946),r=i(3765),a=i(10998),l=i(51982),d=i(82399),c=i(66654),h=i(56071),u=i(2106),g=i(52230),p=i(38122),m=i(31540),f=i(64830),v=i(52394),_=i(56307),b=i(14333),w=(i(51580),function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}),y=function(e,t){return function(i,n){t(i,n,e)}};let C=n=class extends a.jG{constructor(e,t,i,n,o,s,r){super(),this._editor=e,this._modelService=i,this._keybindingService=n,this._instantiationService=o,this._languageFeatureService=s,this._languageConfigurationService=r,this._standaloneColorPickerWidget=null,this._standaloneColorPickerVisible=p.R.standaloneColorPickerVisible.bindTo(t),this._standaloneColorPickerFocused=p.R.standaloneColorPickerFocused.bindTo(t)}showOrFocus(){var e;this._editor.hasModel()&&(this._standaloneColorPickerVisible.get()?this._standaloneColorPickerFocused.get()||null===(e=this._standaloneColorPickerWidget)||void 0===e||e.focus():this._standaloneColorPickerWidget=new k(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),null===(e=this._standaloneColorPickerWidget)||void 0===e||e.hide(),this._editor.focus()}insertColor(){var e;null===(e=this._standaloneColorPickerWidget)||void 0===e||e.updateEditor(),this.hide()}static get(e){return e.getContribution(n.ID)}};C.ID="editor.contrib.standaloneColorPickerController",C=n=w([y(1,m.fN),y(2,f.S),y(3,h.b),y(4,d._Y),y(5,g.u),y(6,v.JZ)],C),(0,s.HW)(C.ID,C,1);let k=o=class extends a.jG{constructor(e,t,i,n,o,s,r,a){var d;super(),this._editor=e,this._standaloneColorPickerVisible=t,this._standaloneColorPickerFocused=i,this._modelService=o,this._keybindingService=s,this._languageFeaturesService=r,this._languageConfigurationService=a,this.allowEditorOverflow=!0,this._position=void 0,this._body=document.createElement("div"),this._colorHover=null,this._selectionSetInEditor=!1,this._onResult=this._register(new u.vl),this.onResult=this._onResult.event,this._standaloneColorPickerVisible.set(!0),this._standaloneColorPickerParticipant=n.createInstance(l.WE,this._editor),this._position=null===(d=this._editor._getViewModel())||void 0===d?void 0:d.getPrimaryCursorState().modelState.position;const c=this._editor.getSelection(),h=c?{startLineNumber:c.startLineNumber,startColumn:c.startColumn,endLineNumber:c.endLineNumber,endColumn:c.endColumn}:{startLineNumber:0,endLineNumber:0,endColumn:0,startColumn:0},g=this._register(b.w5(this._body));this._register(g.onDidBlur((e=>{this.hide()}))),this._register(g.onDidFocus((e=>{this.focus()}))),this._register(this._editor.onDidChangeCursorPosition((()=>{this._selectionSetInEditor?this._selectionSetInEditor=!1:this.hide()}))),this._register(this._editor.onMouseMove((e=>{var t;const i=null===(t=e.target.element)||void 0===t?void 0:t.classList;i&&i.contains("colorpicker-color-decoration")&&this.hide()}))),this._register(this.onResult((e=>{this._render(e.value,e.foundInEditor)}))),this._start(h),this._body.style.zIndex="50",this._editor.addContentWidget(this)}updateEditor(){this._colorHover&&this._standaloneColorPickerParticipant.updateEditorModel(this._colorHover)}getId(){return o.ID}getDomNode(){return this._body}getPosition(){if(!this._position)return null;const e=this._editor.getOption(60).above;return{position:this._position,secondaryPosition:this._position,preference:e?[1,2]:[2,1],positionAffinity:2}}hide(){this.dispose(),this._standaloneColorPickerVisible.set(!1),this._standaloneColorPickerFocused.set(!1),this._editor.removeContentWidget(this),this._editor.focus()}focus(){this._standaloneColorPickerFocused.set(!0),this._body.focus()}async _start(e){const t=await this._computeAsync(e);t&&this._onResult.fire(new S(t.result,t.foundInEditor))}async _computeAsync(e){if(!this._editor.hasModel())return null;const t={range:e,color:{red:0,green:0,blue:0,alpha:1}},i=await this._standaloneColorPickerParticipant.createColorHover(t,new _.L(this._modelService,this._languageConfigurationService),this._languageFeaturesService.colorProvider);return i?{result:i.colorHover,foundInEditor:i.foundInEditor}:null}_render(e,t){const i=document.createDocumentFragment(),n={fragment:i,statusBar:this._register(new c.L(this._keybindingService)),onContentsChanged:()=>{},hide:()=>this.hide()};this._colorHover=e;const o=this._standaloneColorPickerParticipant.renderHoverParts(n,[e]);if(!o)return;this._register(o.disposables);const s=o.colorPicker;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(.66*this._editor.getLayoutInfo().width,500)+"px",this._body.tabIndex=0,this._body.appendChild(i),s.layout();const r=s.body,a=r.saturationBox.domNode.clientWidth,l=r.domNode.clientWidth-a-22-8,d=s.body.enterButton;null==d||d.onClicked((()=>{this.updateEditor(),this.hide()}));const h=s.header;h.pickedColorNode.style.width=a+8+"px",h.originalColorNode.style.width=l+"px";const u=s.header.closeButton;null==u||u.onClicked((()=>{this.hide()})),t&&(d&&(d.button.textContent="Replace"),this._selectionSetInEditor=!0,this._editor.setSelection(e.range)),this._editor.layoutContentWidget(this)}};k.ID="editor.contrib.standaloneColorPickerWidget",k=o=w([y(3,d._Y),y(4,f.S),y(5,h.b),y(6,g.u),y(7,v.JZ)],k);class S{constructor(e,t){this.value=e,this.foundInEditor=t}}var x=i(58067);class L extends s.qO{constructor(){super({id:"editor.action.showOrFocusStandaloneColorPicker",title:{...(0,r.a)("showOrFocusStandaloneColorPicker","Show or Focus Standalone Color Picker"),mnemonicTitle:(0,r.k)({key:"mishowOrFocusStandaloneColorPicker",comment:["&& denotes a mnemonic"]},"&&Show or Focus Standalone Color Picker")},precondition:void 0,menu:[{id:x.D8.CommandPalette}],metadata:{description:(0,r.a)("showOrFocusStandaloneColorPickerDescription","Show or focus a standalone color picker which uses the default color provider. It displays hex/rgb/hsl colors.")}})}runEditorCommand(e,t){var i;null===(i=C.get(t))||void 0===i||i.showOrFocus()}}class D extends s.ks{constructor(){super({id:"editor.action.hideColorPicker",label:(0,r.k)({key:"hideColorPicker",comment:["Action that hides the color picker"]},"Hide the Color Picker"),alias:"Hide the Color Picker",precondition:p.R.standaloneColorPickerVisible.isEqualTo(!0),kbOpts:{primary:9,weight:100},metadata:{description:(0,r.a)("hideColorPickerDescription","Hide the standalone color picker.")}})}run(e,t){var i;null===(i=C.get(t))||void 0===i||i.hide()}}class E extends s.ks{constructor(){super({id:"editor.action.insertColorWithStandaloneColorPicker",label:(0,r.k)({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:p.R.standaloneColorPickerFocused.isEqualTo(!0),kbOpts:{primary:3,weight:100},metadata:{description:(0,r.a)("insertColorWithStandaloneColorPickerDescription","Insert hex/rgb/hsl colors with the focused standalone color picker.")}})}run(e,t){var i;null===(i=C.get(t))||void 0===i||i.insertColor()}}(0,s.Fl)(D),(0,s.Fl)(E),(0,x.ug)(L)},72106:(e,t,i)=>{"use strict";i.r(t);var n=i(68387),o=i(50946),s=i(28061),r=i(38122),a=i(52394),l=i(23877),d=i(15365),c=i(93702);class h{constructor(e,t,i){this.languageConfigurationService=i,this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,i){if(i<0)return!1;const n=t.length;if(i+n>e.length)return!1;for(let o=0;o=65&&n<=90&&n+32===s||s>=65&&s<=90&&s+32===n))return!1}return!0}_createOperationsForBlockComment(e,t,i,n,o,r){const a=e.startLineNumber,l=e.startColumn,d=e.endLineNumber,c=e.endColumn,u=o.getLineContent(a),g=o.getLineContent(d);let p,m=u.lastIndexOf(t,l-1+t.length),f=g.indexOf(i,c-1-i.length);if(-1!==m&&-1!==f)if(a===d)u.substring(m+t.length,f).indexOf(i)>=0&&(m=-1,f=-1);else{const e=u.substring(m+t.length),n=g.substring(0,f);(e.indexOf(i)>=0||n.indexOf(i)>=0)&&(m=-1,f=-1)}-1!==m&&-1!==f?(n&&m+t.length0&&32===g.charCodeAt(f-1)&&(i=" "+i,f-=1),p=h._createRemoveBlockCommentOperations(new s.Q(a,m+t.length+1,d,f+1),t,i)):(p=h._createAddBlockCommentOperations(e,t,i,this._insertSpace),this._usedEndToken=1===p.length?i:null);for(const e of p)r.addTrackedEditOperation(e.range,e.text)}static _createRemoveBlockCommentOperations(e,t,i){const n=[];return s.Q.isEmpty(e)?n.push(l.k.delete(new s.Q(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+i.length))):(n.push(l.k.delete(new s.Q(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),n.push(l.k.delete(new s.Q(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+i.length)))),n}static _createAddBlockCommentOperations(e,t,i,n){const o=[];return s.Q.isEmpty(e)?o.push(l.k.replace(new s.Q(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+i)):(o.push(l.k.insert(new d.y(e.startLineNumber,e.startColumn),t+(n?" ":""))),o.push(l.k.insert(new d.y(e.endLineNumber,e.endColumn),(n?" ":"")+i))),o}getEditOperations(e,t){const i=this._selection.startLineNumber,n=this._selection.startColumn;e.tokenization.tokenizeIfCheap(i);const o=e.getLanguageIdAtPosition(i,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){const i=t.getInverseEditOperations();if(2===i.length){const e=i[0],t=i[1];return new c.L(e.range.endLineNumber,e.range.endColumn,t.range.startLineNumber,t.range.startColumn)}{const e=i[0].range,t=this._usedEndToken?-this._usedEndToken.length-1:0;return new c.L(e.endLineNumber,e.endColumn+t,e.endLineNumber,e.endColumn+t)}}}var u=i(16844);class g{constructor(e,t,i,n,o,s,r){this.languageConfigurationService=e,this._selection=t,this._indentSize=i,this._type=n,this._insertSpace=o,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=s,this._ignoreFirstLine=r||!1}static _gatherPreflightCommentStrings(e,t,i,n){e.tokenization.tokenizeIfCheap(t);const o=e.getLanguageIdAtPosition(t,1),s=n.getLanguageConfiguration(o).comments,r=s?s.lineCommentToken:null;if(!r)return null;const a=[];for(let e=0,n=i-t+1;er?o-1:o}}}var p=i(3765),m=i(58067);class f extends o.ks{constructor(e,t){super(t),this._type=e}run(e,t){const i=e.get(a.JZ);if(!t.hasModel())return;const n=[],o=t.getModel().getOptions(),r=t.getOption(23),l=t.getSelections().map(((e,t)=>({selection:e,index:t,ignoreFirstLine:!1})));l.sort(((e,t)=>s.Q.compareRangesUsingStarts(e.selection,t.selection)));let d=l[0];for(let e=1;e{"use strict";i.r(t),i.d(t,{ContextMenuController:()=>b});var n,o=i(14333),s=i(47971),r=i(27969),a=i(10998),l=i(63339),d=i(50946),c=i(38122),h=i(3765),u=i(58067),g=i(31540),p=i(52348),m=i(56071),f=i(85753),v=i(26851),_=function(e,t){return function(i,n){t(i,n,e)}};let b=n=class{static get(e){return e.getContribution(n.ID)}constructor(e,t,i,n,s,r,l,d){this._contextMenuService=t,this._contextViewService=i,this._contextKeyService=n,this._keybindingService=s,this._menuService=r,this._configurationService=l,this._workspaceContextService=d,this._toDispose=new a.Cm,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu((e=>this._onContextMenu(e)))),this._toDispose.add(this._editor.onMouseWheel((e=>{if(this._contextMenuIsBeingShownCount>0){const t=this._contextViewService.getContextViewElement(),i=e.srcElement;i.shadowRoot&&o.jG(t)===i.shadowRoot||this._contextViewService.hideContextView()}}))),this._toDispose.add(this._editor.onKeyDown((e=>{this._editor.getOption(24)&&58===e.keyCode&&(e.preventDefault(),e.stopPropagation(),this.showContextMenu())})))}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(24))return this._editor.focus(),void(e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position));if(12===e.target.type)return;if(6===e.target.type&&e.target.detail.injectedText)return;if(e.event.preventDefault(),e.event.stopPropagation(),11===e.target.type)return this._showScrollbarContextMenu(e.event);if(6!==e.target.type&&7!==e.target.type&&1!==e.target.type)return;if(this._editor.focus(),e.target.position){let t=!1;for(const i of this._editor.getSelections())if(i.containsPosition(e.target.position)){t=!0;break}t||this._editor.setPosition(e.target.position)}let t=null;1!==e.target.type&&(t=e.event),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(24))return;if(!this._editor.hasModel())return;const t=this._getMenuActions(this._editor.getModel(),this._editor.contextMenuId);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){const i=[],n=this._menuService.createMenu(t,this._contextKeyService),o=n.getActions({arg:e.uri});n.dispose();for(const t of o){const[,n]=t;let o=0;for(const t of n)if(t instanceof u.nI){const n=this._getMenuActions(e,t.item.submenu);n.length>0&&(i.push(new r.YH(t.id,t.label,n)),o++)}else i.push(t),o++;o&&i.push(new r.wv)}return i.length&&i.pop(),i}_doShowContextMenu(e,t=null){var i;if(!this._editor.hasModel())return;const n=this._editor.getOption(60);this._editor.updateOptions({hover:{enabled:!1}});let r=t;if(!r){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const e=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),t=o.BK(this._editor.getDomNode()),i=t.left+e.left,n=t.top+e.top+e.height;r={x:i,y:n}}const a=this._editor.getOption(128)&&!l.un;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:a?null!==(i=this._editor.getOverflowWidgetsDomNode())&&void 0!==i?i:this._editor.getDomNode():void 0,getAnchor:()=>r,getActions:()=>e,getActionViewItem:e=>{const t=this._keybindingFor(e);if(t)return new s.Z4(e,e,{label:!0,keybinding:t.getLabel(),isMenu:!0});const i=e;return"function"==typeof i.getActionViewItem?i.getActionViewItem():new s.Z4(e,e,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:e=>this._keybindingFor(e),onHide:e=>{this._contextMenuIsBeingShownCount--,this._editor.updateOptions({hover:n})}})}_showScrollbarContextMenu(e){if(!this._editor.hasModel())return;if((0,v.ct)(this._workspaceContextService.getWorkspace()))return;const t=this._editor.getOption(73);let i=0;const n=e=>({id:"menu-action-"+ ++i,label:e.label,tooltip:"",class:void 0,enabled:void 0===e.enabled||e.enabled,checked:e.checked,run:e.run}),o=(e,t,o,s,a)=>{if(!t)return n({label:e,enabled:t,run:()=>{}});const l=e=>()=>{this._configurationService.updateValue(o,e)},d=[];for(const e of a)d.push(n({label:e.label,checked:s===e.value,run:l(e.value)}));return((e,t)=>new r.YH("menu-action-"+ ++i,e,t,void 0))(e,d)},s=[];s.push(n({label:h.k("context.minimap.minimap","Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),s.push(new r.wv),s.push(n({label:h.k("context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),s.push(o(h.k("context.minimap.size","Vertical size"),t.enabled,"editor.minimap.size",t.size,[{label:h.k("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:h.k("context.minimap.size.fill","Fill"),value:"fill"},{label:h.k("context.minimap.size.fit","Fit"),value:"fit"}])),s.push(o(h.k("context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:h.k("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:h.k("context.minimap.slider.always","Always"),value:"always"}]));const a=this._editor.getOption(128)&&!l.un;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:a?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>s,onHide:e=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};b.ID="editor.contrib.contextmenu",b=n=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([_(1,p.Z),_(2,p.l),_(3,g.fN),_(4,m.b),_(5,u.ez),_(6,f.pG),_(7,v.VR)],b);class w extends d.ks{constructor(){super({id:"editor.action.showContextMenu",label:h.k("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:c.R.textInputFocus,primary:1092,weight:100}})}run(e,t){var i;null===(i=b.get(t))||void 0===i||i.showContextMenu()}}(0,d.HW)(b.ID,b,2),(0,d.Fl)(w)},23676:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CursorRedo:()=>h,CursorUndo:()=>c,CursorUndoRedoController:()=>d});var n=i(10998),o=i(50946),s=i(38122),r=i(3765);class a{constructor(e){this.selections=e}equals(e){const t=this.selections.length;if(t!==e.selections.length)return!1;for(let i=0;i{this._undoStack=[],this._redoStack=[]}))),this._register(e.onDidChangeModelContent((e=>{this._undoStack=[],this._redoStack=[]}))),this._register(e.onDidChangeCursorSelection((t=>{if(this._isCursorUndoRedo)return;if(!t.oldSelections)return;if(t.oldModelVersionId!==t.modelVersionId)return;const i=new a(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(i)||(this._undoStack.push(new l(i,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())})))}cursorUndo(){this._editor.hasModel()&&0!==this._undoStack.length&&(this._redoStack.push(new l(new a(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){this._editor.hasModel()&&0!==this._redoStack.length&&(this._undoStack.push(new l(new a(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}}d.ID="editor.contrib.cursorUndoRedoController";class c extends o.ks{constructor(){super({id:"cursorUndo",label:r.k("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:s.R.textInputFocus,primary:2099,weight:100}})}run(e,t,i){var n;null===(n=d.get(t))||void 0===n||n.cursorUndo()}}class h extends o.ks{constructor(){super({id:"cursorRedo",label:r.k("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,i){var n;null===(n=d.get(t))||void 0===n||n.cursorRedo()}}(0,o.HW)(d.ID,d,0),(0,o.Fl)(c),(0,o.Fl)(h)},94184:(e,t,i)=>{"use strict";i.r(t);var n=i(13338),o=i(16311),s=i(97965),r=i(2744),a=i(52230),l=i(14583),d=i(10998),c=i(2106),h=function(e,t){return function(i,n){t(i,n,e)}};let u=class extends d.jG{constructor(e,t,i){super(),this._textModel=e,this._languageFeaturesService=t,this._outlineModelService=i,this._currentModel=(0,o.FY)(this,void 0);const n=(0,o.yQ)("documentSymbolProvider.onDidChange",this._languageFeaturesService.documentSymbolProvider.onDidChange),s=(0,o.yQ)("_textModel.onDidChangeContent",c.Jh.debounce((e=>this._textModel.onDidChangeContent(e)),(()=>{}),100));this._register((0,o.yC)((async(e,t)=>{n.read(e),s.read(e);const i=t.add(new r.MZ),o=await this._outlineModelService.getOrCreate(this._textModel,i.token);t.isDisposed||this._currentModel.set(o,void 0)})))}getBreadcrumbItems(e,t){const i=this._currentModel.read(t);if(!i)return[];const o=i.asListOfDocumentSymbols().filter((t=>e.contains(t.range.startLineNumber)&&!e.contains(t.range.endLineNumber)));return o.sort((0,n.Hw)((0,n.VE)((e=>e.range.endLineNumber-e.range.startLineNumber),n.U9))),o.map((e=>({name:e.name,kind:e.kind,startLineNumber:e.range.startLineNumber})))}};u=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([h(1,a.u),h(2,l.gW)],u),s.N.setBreadcrumbsSourceFactory(((e,t)=>t.createInstance(u,e)))},23542:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DragAndDropController:()=>L});var n=i(10998),o=i(63339),s=i(85072),r=i.n(s),a=i(97825),l=i.n(a),d=i(77659),c=i.n(d),h=i(55056),u=i.n(h),g=i(10540),p=i.n(g),m=i(41113),f=i.n(m),v=i(88357),_={};_.styleTagTransform=f(),_.setAttributes=u(),_.insert=c().bind(null,"head"),_.domAPI=l(),_.insertStyleElement=p(),r()(v.A,_),v.A&&v.A.locals&&v.A.locals;var b=i(50946),w=i(15365),y=i(28061),C=i(93702),k=i(74774);class S{constructor(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i,this.targetSelection=null}getEditOperations(e,t){const i=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new y.Q(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),i),!this.selection.containsPosition(this.targetPosition)||this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition))?this.copy?this.targetSelection=new C.L(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):this.targetPosition.lineNumber>this.selection.endLineNumber?this.targetSelection=new C.L(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):this.targetPosition.lineNumberthis._onEditorMouseDown(e)))),this._register(this._editor.onMouseUp((e=>this._onEditorMouseUp(e)))),this._register(this._editor.onMouseDrag((e=>this._onEditorMouseDrag(e)))),this._register(this._editor.onMouseDrop((e=>this._onEditorMouseDrop(e)))),this._register(this._editor.onMouseDropCanceled((()=>this._onEditorMouseDropCanceled()))),this._register(this._editor.onKeyDown((e=>this.onEditorKeyDown(e)))),this._register(this._editor.onKeyUp((e=>this.onEditorKeyUp(e)))),this._register(this._editor.onDidBlurEditorWidget((()=>this.onEditorBlur()))),this._register(this._editor.onDidBlurEditorText((()=>this.onEditorBlur()))),this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){this._editor.getOption(35)&&!this._editor.getOption(22)&&(x(e)&&(this._modifierPressed=!0),this._mouseDown&&x(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){this._editor.getOption(35)&&!this._editor.getOption(22)&&(x(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===L.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){const t=e.target;if(null===this._dragSelection){const e=(this._editor.getSelections()||[]).filter((e=>t.position&&e.containsPosition(t.position)));if(1!==e.length)return;this._dragSelection=e[0]}x(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){const t=new w.y(e.target.position.lineNumber,e.target.position.column);if(null===this._dragSelection){let i=null;if(e.event.shiftKey){const e=this._editor.getSelection();if(e){const{selectionStartLineNumber:n,selectionStartColumn:o}=e;i=[new C.L(n,o,t.lineNumber,t.column)]}}else i=(this._editor.getSelections()||[]).map((e=>e.containsPosition(t)?new C.L(t.lineNumber,t.column,t.lineNumber,t.column):e));this._editor.setSelections(i||[],"mouse",3)}else(!this._dragSelection.containsPosition(t)||(x(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(L.ID,new S(this._dragSelection,t,x(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 y.Q(e.lineNumber,e.column,e.lineNumber,e.column),options:L._DECORATION_OPTIONS}]),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds.clear()}_hitContent(e){return 6===e.type||7===e.type}_hitMargin(e){return 2===e.type||3===e.type||4===e.type}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}L.ID="editor.contrib.dragAndDrop",L.TRIGGER_KEY_VALUE=o.zx?6:5,L._DECORATION_OPTIONS=k.kI.register({description:"dnd-target",className:"dnd-target"}),(0,b.HW)(L.ID,L,2)},56096:(e,t,i)=>{"use strict";i.r(t);var n=i(78903),o=i(79359),s=i(37264),r=i(37042),a=i(14583);i(59715).w.registerCommand("_executeDocumentSymbolProvider",(async function(e,...t){const[i]=t;(0,o.j)(s.r.isUri(i));const l=e.get(a.gW),d=e.get(r.b),c=await d.createModelReference(i);try{return(await l.getOrCreate(c.object.textEditorModel,n.XO.None)).getTopLevelSymbols()}finally{c.dispose()}}))},14583:(e,t,i)=>{"use strict";i.d(t,{LC:()=>_,e0:()=>b,gW:()=>y,i9:()=>w});var n=i(13338),o=i(78903),s=i(94327),r=i(17954),a=i(27992),l=i(15365),d=i(28061),c=i(12060),h=i(82399),u=i(66726),g=i(64830),p=i(10998),m=i(52230),f=function(e,t){return function(i,n){t(i,n,e)}};class v{remove(){var e;null===(e=this.parent)||void 0===e||e.children.delete(this.id)}static findId(e,t){let i;"string"==typeof e?i=`${t.id}/${e}`:(i=`${t.id}/${e.name}`,void 0!==t.children.get(i)&&(i=`${t.id}/${e.name}_${e.range.startLineNumber}_${e.range.startColumn}`));let n=i;for(let e=0;void 0!==t.children.get(n);e++)n=`${i}_${e}`;return n}static empty(e){return 0===e.children.size}}class _ extends v{constructor(e,t,i){super(),this.id=e,this.parent=t,this.symbol=i,this.children=new Map}}class b extends v{constructor(e,t,i,n){super(),this.id=e,this.parent=t,this.label=i,this.order=n,this.children=new Map}}class w extends v{static create(e,t,i){const r=new o.Qi(i),a=new w(t.uri),l=e.ordered(t),d=l.map(((e,i)=>{var n;const o=v.findId(`provider_${i}`,a),l=new b(o,a,null!==(n=e.displayName)&&void 0!==n?n:"Unknown Outline Provider",i);return Promise.resolve(e.provideDocumentSymbols(t,r.token)).then((e=>{for(const t of e||[])w._makeOutlineElement(t,l);return l}),(e=>((0,s.M_)(e),l))).then((e=>{v.empty(e)?e.remove():a._groups.set(o,e)}))})),c=e.onDidChange((()=>{const i=e.ordered(t);(0,n.aI)(i,l)||r.cancel()}));return Promise.all(d).then((()=>r.token.isCancellationRequested&&!i.isCancellationRequested?w.create(e,t,i):a._compact())).finally((()=>{r.dispose(),c.dispose(),r.dispose()}))}static _makeOutlineElement(e,t){const i=v.findId(e,t),n=new _(i,t,e);if(e.children)for(const t of e.children)w._makeOutlineElement(t,n);t.children.set(n.id,n)}constructor(e){super(),this.uri=e,this.id="root",this.parent=void 0,this._groups=new Map,this.children=new Map,this.id="root",this.parent=void 0}_compact(){let e=0;for(const[t,i]of this._groups)0===i.children.size?this._groups.delete(t):e+=1;if(1!==e)this.children=this._groups;else{const e=r.f.first(this._groups.values());for(const[,t]of e.children)t.parent=this,this.children.set(t.id,t)}return this}getTopLevelSymbols(){const e=[];for(const t of this.children.values())t instanceof _?e.push(t.symbol):e.push(...r.f.map(t.children.values(),(e=>e.symbol)));return e.sort(((e,t)=>d.Q.compareRangesUsingStarts(e.range,t.range)))}asListOfDocumentSymbols(){const e=this.getTopLevelSymbols(),t=[];return w._flattenDocumentSymbols(t,e,""),t.sort(((e,t)=>l.y.compare(d.Q.getStartPosition(e.range),d.Q.getStartPosition(t.range))||l.y.compare(d.Q.getEndPosition(t.range),d.Q.getEndPosition(e.range))))}static _flattenDocumentSymbols(e,t,i){for(const n of t)e.push({kind:n.kind,tags:n.tags,name:n.name,detail:n.detail,containerName:n.containerName||i,range:n.range,selectionRange:n.selectionRange,children:void 0}),n.children&&w._flattenDocumentSymbols(e,n.children,n.name)}}const y=(0,h.u1)("IOutlineModelService");let C=class{constructor(e,t,i){this._languageFeaturesService=e,this._disposables=new p.Cm,this._cache=new a.qK(10,.7),this._debounceInformation=t.for(e.documentSymbolProvider,"DocumentSymbols",{min:350}),this._disposables.add(i.onModelRemoved((e=>{this._cache.delete(e.id)})))}dispose(){this._disposables.dispose()}async getOrCreate(e,t){const i=this._languageFeaturesService.documentSymbolProvider,s=i.ordered(e);let r=this._cache.get(e.id);if(!r||r.versionId!==e.getVersionId()||!(0,n.aI)(r.provider,s)){const t=new o.Qi;r={versionId:e.getVersionId(),provider:s,promiseCnt:0,source:t,promise:w.create(i,e,t.token),model:void 0},this._cache.set(e.id,r);const n=Date.now();r.promise.then((t=>{r.model=t,this._debounceInformation.update(e,Date.now()-n)})).catch((t=>{this._cache.delete(e.id)}))}if(r.model)return r.model;r.promiseCnt+=1;const a=t.onCancellationRequested((()=>{0==--r.promiseCnt&&(r.source.cancel(),this._cache.delete(e.id))}));try{return await r.promise}finally{a.dispose()}}};C=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([f(0,m.u),f(1,c.U),f(2,g.S)],C),(0,u.v)(y,C,1)},52387:(e,t,i)=>{"use strict";i.r(t);var n,o=i(14731),s=i(50946),r=i(38122),a=i(90426),l=i(44033),d=i(73256),c=i(3765);(0,s.HW)(l.Rj.ID,l.Rj,0),(0,a.x)(d.L9),(0,s.E_)(new class extends s.DX{constructor(){super({id:l.qs,precondition:l.lr,kbOpts:{weight:100,primary:2137}})}runEditorCommand(e,t){var i;return null===(i=l.Rj.get(t))||void 0===i?void 0:i.changePasteType()}}),(0,s.E_)(new class extends s.DX{constructor(){super({id:"editor.hidePasteWidget",precondition:l.lr,kbOpts:{weight:100,primary:9}})}runEditorCommand(e,t){var i;null===(i=l.Rj.get(t))||void 0===i||i.clearWidgets()}}),(0,s.Fl)(((n=class extends s.ks{constructor(){super({id:"editor.action.pasteAs",label:c.k("pasteAs","Paste As..."),alias:"Paste As...",precondition:r.R.writable,metadata:{description:"Paste as",args:[{name:"args",schema:n.argsSchema}]}})}run(e,t,i){var n;let s="string"==typeof(null==i?void 0:i.kind)?i.kind:void 0;return!s&&i&&(s="string"==typeof i.id?i.id:void 0),null===(n=l.Rj.get(t))||void 0===n?void 0:n.pasteAs(s?new o.k(s):void 0)}}).argsSchema={type:"object",properties:{kind:{type:"string",description:c.k("pasteAs.kind","The kind of the paste edit to try applying. If not provided or there are multiple edits for this kind, the editor will show a picker.")}}},n)),(0,s.Fl)(class extends s.ks{constructor(){super({id:"editor.action.pasteAsText",label:c.k("pasteAsText","Paste as Text"),alias:"Paste as Text",precondition:r.R.writable})}run(e,t){var i;return null===(i=l.Rj.get(t))||void 0===i?void 0:i.pasteAs({providerId:d.LR.id})}})},44033:(e,t,i)=>{"use strict";i.d(t,{Rj:()=>F,lr:()=>P,qs:()=>R});var n,o=i(14333),s=i(13338),r=i(65958),a=i(78903),l=i(69887),d=i(14731),c=i(10998),h=i(53720),u=i(63339),g=i(9223),p=i(93344),m=i(42683),f=i(98769),v=i(28061),_=i(47317),b=i(52230),w=i(73256),y=i(71469),C=i(62105),k=i(21095),S=i(81673),x=i(3765),L=i(3338),D=i(31540),E=i(82399),I=i(44023),N=i(73027),M=i(48652),A=i(94327),T=function(e,t){return function(i,n){t(i,n,e)}};const R="editor.changePasteType",P=new D.N1("pasteWidgetVisible",!1,(0,x.k)("pasteWidgetVisible","Whether the paste widget is showing")),O="application/vnd.code.copyMetadata";let F=n=class extends c.jG{static get(e){return e.getContribution(n.ID)}constructor(e,t,i,n,s,r,a){super(),this._bulkEditService=i,this._clipboardService=n,this._languageFeaturesService=s,this._quickInputService=r,this._progressService=a,this._editor=e;const l=e.getContainerDomNode();this._register((0,o.ko)(l,"copy",(e=>this.handleCopy(e)))),this._register((0,o.ko)(l,"cut",(e=>this.handleCopy(e)))),this._register((0,o.ko)(l,"paste",(e=>this.handlePaste(e)),!0)),this._pasteProgressManager=this._register(new k.InlineProgressManager("pasteIntoEditor",e,t)),this._postPasteWidgetManager=this._register(t.createInstance(M.G,"pasteIntoEditor",e,P,{id:R,label:(0,x.k)("postPasteWidgetTitle","Show paste options...")}))}changePasteType(){this._postPasteWidgetManager.tryShowSelector()}pasteAs(e){this._editor.focus();try{this._pasteAsActionContext={preferred:e},(0,o.a)().execCommand("paste")}finally{this._pasteAsActionContext=void 0}}clearWidgets(){this._postPasteWidgetManager.clear()}isPasteAsEnabled(){return this._editor.getOption(85).enabled&&!this._editor.getOption(92)}async finishedPaste(){await this._currentPasteOperation}handleCopy(e){var t,i;if(!this._editor.hasTextFocus())return;if(u.HZ&&this._clipboardService.writeResources([]),!e.clipboardData||!this.isPasteAsEnabled())return;const o=this._editor.getModel(),a=this._editor.getSelections();if(!o||!(null==a?void 0:a.length))return;const l=this._editor.getOption(37);let d=a;const c=1===a.length&&a[0].isEmpty();if(c){if(!l)return;d=[new v.Q(d[0].startLineNumber,1,d[0].startLineNumber,1+o.getLineLength(d[0].startLineNumber))]}const h=null===(t=this._editor._getViewModel())||void 0===t?void 0:t.getPlainTextToCopy(a,l,u.uF),p={multicursorText:Array.isArray(h)?h:null,pasteOnNewLine:c,mode:null},f=this._languageFeaturesService.documentPasteEditProvider.ordered(o).filter((e=>!!e.prepareDocumentPaste));if(!f.length)return void this.setCopyMetadata(e.clipboardData,{defaultPastePayload:p});const _=(0,m.q)(e.clipboardData),b=f.flatMap((e=>{var t;return null!==(t=e.copyMimeTypes)&&void 0!==t?t:[]})),w=(0,g.b)();this.setCopyMetadata(e.clipboardData,{id:w,providerCopyMimeTypes:b,defaultPastePayload:p});const y=(0,r.SS)((async e=>{const t=(0,s.Yc)(await Promise.all(f.map((async t=>{try{return await t.prepareDocumentPaste(o,d,_,e)}catch(e){return void console.error(e)}}))));t.reverse();for(const e of t)for(const[t,i]of e)_.replace(t,i);return _}));null===(i=n._currentCopyOperation)||void 0===i||i.dataTransferPromise.cancel(),n._currentCopyOperation={handle:w,dataTransferPromise:y}}async handlePaste(e){var t,i,n,o;if(!e.clipboardData||!this._editor.hasTextFocus())return;null===(t=S.k.get(this._editor))||void 0===t||t.closeMessage(),null===(i=this._currentPasteOperation)||void 0===i||i.cancel(),this._currentPasteOperation=void 0;const s=this._editor.getModel(),r=this._editor.getSelections();if(!(null==r?void 0:r.length)||!s)return;if(!this.isPasteAsEnabled()&&!this._pasteAsActionContext)return;const a=this.fetchCopyMetadata(e),d=(0,m.l)(e.clipboardData);d.delete(O);const c=[...e.clipboardData.types,...null!==(n=null==a?void 0:a.providerCopyMimeTypes)&&void 0!==n?n:[],h.K.uriList],u=this._languageFeaturesService.documentPasteEditProvider.ordered(s).filter((e=>{var t,i;const n=null===(t=this._pasteAsActionContext)||void 0===t?void 0:t.preferred;return!(n&&e.providedPasteEditKinds&&!this.providerMatchesPreference(e,n))&&(null===(i=e.pasteMimeTypes)||void 0===i?void 0:i.some((e=>(0,l.Y)(e,c))))}));u.length?(e.preventDefault(),e.stopImmediatePropagation(),this._pasteAsActionContext?this.showPasteAsPick(this._pasteAsActionContext.preferred,u,r,d,a):this.doPasteInline(u,r,d,a,e)):(null===(o=this._pasteAsActionContext)||void 0===o?void 0:o.preferred)&&this.showPasteAsNoEditMessage(r,this._pasteAsActionContext.preferred)}showPasteAsNoEditMessage(e,t){var i;null===(i=S.k.get(this._editor))||void 0===i||i.showMessage((0,x.k)("pasteAsError","No paste edits for '{0}' found",t instanceof d.k?t.value:t.providerId),e[0].getStartPosition())}doPasteInline(e,t,i,n,o){const s=this._editor;if(!s.hasModel())return;const l=new C.gI(s,3,void 0),d=(0,r.SS)((async s=>{const h=this._editor;if(!h.hasModel())return;const u=h.getModel(),g=new c.Cm,p=g.add(new a.Qi(s));g.add(l.token.onCancellationRequested((()=>p.cancel())));const m=p.token;try{if(await this.mergeInDataFromCopy(i,n,m),m.isCancellationRequested)return;const s=e.filter((e=>this.isSupportedPasteProvider(e,i)));if(!s.length||1===s.length&&s[0]instanceof w.LR)return this.applyDefaultPasteHandler(i,n,m,o);const a={triggerKind:_.FX.Automatic},l=await this.getPasteEdits(s,i,u,t,a,m);if(g.add(l),m.isCancellationRequested)return;if(1===l.edits.length&&l.edits[0].provider instanceof w.LR)return this.applyDefaultPasteHandler(i,n,m,o);if(l.edits.length){const e="afterPaste"===h.getOption(85).showPasteSelector;return this._postPasteWidgetManager.applyEditAndShowIfNeeded(t,{activeEditIndex:0,allEdits:l.edits},e,((e,i)=>new Promise(((n,o)=>{(async()=>{var s,a;try{const l=null===(a=(s=e.provider).resolveDocumentPasteEdit)||void 0===a?void 0:a.call(s,e,i),d=new r.Zv,c=l&&await this._pasteProgressManager.showWhile(t[0].getEndPosition(),(0,x.k)("resolveProcess","Resolving paste edit. Click to cancel"),Promise.race([d.p,l]),{cancel:()=>(d.cancel(),o(new A.AL))},0);return c&&(e.additionalEdit=c.additionalEdit),n(e)}catch(e){return o(e)}})()}))),m)}await this.applyDefaultPasteHandler(i,n,m,o)}finally{g.dispose(),this._currentPasteOperation===d&&(this._currentPasteOperation=void 0)}}));this._pasteProgressManager.showWhile(t[0].getEndPosition(),(0,x.k)("pasteIntoEditorProgress","Running paste handlers. Click to cancel and do basic paste"),d,{cancel:async()=>{try{if(d.cancel(),l.token.isCancellationRequested)return;await this.applyDefaultPasteHandler(i,n,l.token,o)}finally{l.dispose()}}}).then((()=>{l.dispose()})),this._currentPasteOperation=d}showPasteAsPick(e,t,i,n,o){const s=(0,r.SS)((async r=>{const a=this._editor;if(!a.hasModel())return;const l=a.getModel(),h=new c.Cm,u=h.add(new C.gI(a,3,void 0,r));try{if(await this.mergeInDataFromCopy(n,o,u.token),u.token.isCancellationRequested)return;let s=t.filter((t=>this.isSupportedPasteProvider(t,n,e)));e&&(s=s.filter((t=>this.providerMatchesPreference(t,e))));const r={triggerKind:_.FX.PasteAs,only:e&&e instanceof d.k?e:void 0};let a,c=h.add(await this.getPasteEdits(s,n,l,i,r,u.token));if(u.token.isCancellationRequested)return;if(e&&(c={edits:c.edits.filter((t=>e instanceof d.k?e.contains(t.kind):e.providerId===t.provider.id)),dispose:c.dispose}),!c.edits.length)return void(r.only&&this.showPasteAsNoEditMessage(i,r.only));if(e)a=c.edits.at(0);else{const e=await this._quickInputService.pick(c.edits.map((e=>{var t;return{label:e.title,description:null===(t=e.kind)||void 0===t?void 0:t.value,edit:e}})),{placeHolder:(0,x.k)("pasteAsPickerPlaceholder","Select Paste Action")});a=null==e?void 0:e.edit}if(!a)return;const g=(0,y.v)(l.uri,i,a);await this._bulkEditService.apply(g,{editor:this._editor})}finally{h.dispose(),this._currentPasteOperation===s&&(this._currentPasteOperation=void 0)}}));this._progressService.withProgress({location:10,title:(0,x.k)("pasteAsProgress","Running paste handlers")},(()=>s))}setCopyMetadata(e,t){e.setData(O,JSON.stringify(t))}fetchCopyMetadata(e){var t;if(!e.clipboardData)return;const i=e.clipboardData.getData(O);if(i)try{return JSON.parse(i)}catch(e){return}const[n,o]=p.Mz.getTextData(e.clipboardData);return o?{defaultPastePayload:{mode:o.mode,multicursorText:null!==(t=o.multicursorText)&&void 0!==t?t:null,pasteOnNewLine:!!o.isFromEmptySelection}}:void 0}async mergeInDataFromCopy(e,t,i){var o;if((null==t?void 0:t.id)&&(null===(o=n._currentCopyOperation)||void 0===o?void 0:o.handle)===t.id){const t=await n._currentCopyOperation.dataTransferPromise;if(i.isCancellationRequested)return;for(const[i,n]of t)e.replace(i,n)}if(!e.has(h.K.uriList)){const t=await this._clipboardService.readResources();if(i.isCancellationRequested)return;t.length&&e.append(h.K.uriList,(0,l.gf)(l.jt.create(t)))}}async getPasteEdits(e,t,i,n,o,a){const l=new c.Cm,d=await(0,r.PK)(Promise.all(e.map((async e=>{var s,r;try{const d=await(null===(s=e.provideDocumentPasteEdits)||void 0===s?void 0:s.call(e,i,n,t,o,a));return d&&l.add(d),null===(r=null==d?void 0:d.edits)||void 0===r?void 0:r.map((t=>({...t,provider:e})))}catch(e){return void((0,A.MB)(e)||console.error(e))}}))),a),h=(0,s.Yc)(null!=d?d:[]).flat().filter((e=>!o.only||o.only.contains(e.kind)));return{edits:(0,y.H)(h),dispose:()=>l.dispose()}}async applyDefaultPasteHandler(e,t,i,n){var o,s,r,a;const l=null!==(o=e.get(h.K.text))&&void 0!==o?o:e.get("text"),d=null!==(s=await(null==l?void 0:l.asString()))&&void 0!==s?s:"";if(i.isCancellationRequested)return;const c={clipboardEvent:n,text:d,pasteOnNewLine:null!==(r=null==t?void 0:t.defaultPastePayload.pasteOnNewLine)&&void 0!==r&&r,multicursorText:null!==(a=null==t?void 0:t.defaultPastePayload.multicursorText)&&void 0!==a?a:null,mode:null};this._editor.trigger("keyboard","paste",c)}isSupportedPasteProvider(e,t,i){var n;return!!(null===(n=e.pasteMimeTypes)||void 0===n?void 0:n.some((e=>t.matches(e))))&&(!i||this.providerMatchesPreference(e,i))}providerMatchesPreference(e,t){return t instanceof d.k?!e.providedPasteEditKinds||e.providedPasteEditKinds.some((e=>t.contains(e))):e.id===t.providerId}};F.ID="editor.contrib.copyPasteActionController",F=n=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([T(1,E._Y),T(2,f.nu),T(3,L.h),T(4,b.u),T(5,N.GK),T(6,I.G5)],F)},73256:(e,t,i)=>{"use strict";i.d(t,{L9:()=>S,LR:()=>_,ZR:()=>k});var n=i(13338),o=i(69887),s=i(14731),r=i(10998),a=i(53720),l=i(13072),d=i(22467),c=i(37264),h=i(47317),u=i(52230),g=i(3765),p=i(26851),m=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},f=function(e,t){return function(i,n){t(i,n,e)}};class v{async provideDocumentPasteEdits(e,t,i,n,o){const s=await this.getEdit(i,o);if(s)return{edits:[{insertText:s.insertText,title:s.title,kind:s.kind,handledMimeType:s.handledMimeType,yieldTo:s.yieldTo}],dispose(){}}}async provideDocumentDropEdits(e,t,i,n){const o=await this.getEdit(i,n);if(o)return{edits:[{insertText:o.insertText,title:o.title,kind:o.kind,handledMimeType:o.handledMimeType,yieldTo:o.yieldTo}],dispose(){}}}}class _ extends v{constructor(){super(...arguments),this.kind=_.kind,this.dropMimeTypes=[a.K.text],this.pasteMimeTypes=[a.K.text]}async getEdit(e,t){const i=e.get(a.K.text);if(!i)return;if(e.has(a.K.uriList))return;const n=await i.asString();return{handledMimeType:a.K.text,title:(0,g.k)("text.label","Insert Plain Text"),insertText:n,kind:this.kind}}}_.id="text",_.kind=new s.k("text.plain");class b extends v{constructor(){super(...arguments),this.kind=new s.k("uri.absolute"),this.dropMimeTypes=[a.K.uriList],this.pasteMimeTypes=[a.K.uriList]}async getEdit(e,t){const i=await C(e);if(!i.length||t.isCancellationRequested)return;let n=0;const o=i.map((({uri:e,originalText:t})=>e.scheme===l.ny.file?e.fsPath:(n++,t))).join(" ");let s;return s=n>0?i.length>1?(0,g.k)("defaultDropProvider.uriList.uris","Insert Uris"):(0,g.k)("defaultDropProvider.uriList.uri","Insert Uri"):i.length>1?(0,g.k)("defaultDropProvider.uriList.paths","Insert Paths"):(0,g.k)("defaultDropProvider.uriList.path","Insert Path"),{handledMimeType:a.K.uriList,insertText:o,title:s,kind:this.kind}}}let w=class extends v{constructor(e){super(),this._workspaceContextService=e,this.kind=new s.k("uri.relative"),this.dropMimeTypes=[a.K.uriList],this.pasteMimeTypes=[a.K.uriList]}async getEdit(e,t){const i=await C(e);if(!i.length||t.isCancellationRequested)return;const o=(0,n.Yc)(i.map((({uri:e})=>{const t=this._workspaceContextService.getWorkspaceFolder(e);return t?(0,d.iZ)(t.uri,e):void 0})));return o.length?{handledMimeType:a.K.uriList,insertText:o.join(" "),title:i.length>1?(0,g.k)("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):(0,g.k)("defaultDropProvider.uriList.relativePath","Insert Relative Path"),kind:this.kind}:void 0}};w=m([f(0,p.VR)],w);class y{constructor(){this.kind=new s.k("html"),this.pasteMimeTypes=["text/html"],this._yieldTo=[{mimeType:a.K.text}]}async provideDocumentPasteEdits(e,t,i,n,o){var s;if(n.triggerKind!==h.FX.PasteAs&&!(null===(s=n.only)||void 0===s?void 0:s.contains(this.kind)))return;const r=i.get("text/html"),a=await(null==r?void 0:r.asString());return a&&!o.isCancellationRequested?{dispose(){},edits:[{insertText:a,yieldTo:this._yieldTo,title:(0,g.k)("pasteHtmlLabel","Insert HTML"),kind:this.kind}]}:void 0}}async function C(e){const t=e.get(a.K.uriList);if(!t)return[];const i=await t.asString(),n=[];for(const e of o.jt.parse(i))try{n.push({uri:c.r.parse(e),originalText:e})}catch(e){}return n}let k=class extends r.jG{constructor(e,t){super(),this._register(e.documentDropEditProvider.register("*",new _)),this._register(e.documentDropEditProvider.register("*",new b)),this._register(e.documentDropEditProvider.register("*",new w(t)))}};k=m([f(0,u.u),f(1,p.VR)],k);let S=class extends r.jG{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register("*",new _)),this._register(e.documentPasteEditProvider.register("*",new b)),this._register(e.documentPasteEditProvider.register("*",new w(t))),this._register(e.documentPasteEditProvider.register("*",new y))}};S=m([f(0,u.u),f(1,p.VR)],S)},47738:(e,t,i)=>{"use strict";i.r(t);var n=i(50946),o=i(85003),s=i(90426),r=i(73256),a=i(3765),l=i(27142),d=i(67167),c=i(13338),h=i(65958),u=i(69887),g=i(14731),p=i(10998),m=i(42683),f=i(28061),v=i(52230);class _{constructor(e){this.identifier=e}}var b=i(66726),w=i(82399);const y=(0,w.u1)("treeViewsDndService");(0,b.v)(y,class{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){const t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}},1);var C,k=i(62105),S=i(21095),x=i(85753),L=i(31540),D=i(91860),E=i(71469),I=i(48652),N=function(e,t){return function(i,n){t(i,n,e)}};const M="editor.experimental.dropIntoEditor.defaultProvider",A="editor.changeDropType",T=new L.N1("dropWidgetVisible",!1,(0,a.k)("dropWidgetVisible","Whether the drop widget is showing"));let R=C=class extends p.jG{static get(e){return e.getContribution(C.ID)}constructor(e,t,i,n,o){super(),this._configService=i,this._languageFeaturesService=n,this._treeViewsDragAndDropService=o,this.treeItemsTransfer=D.PD.getInstance(),this._dropProgressManager=this._register(t.createInstance(S.InlineProgressManager,"dropIntoEditor",e)),this._postDropWidgetManager=this._register(t.createInstance(I.G,"dropIntoEditor",e,T,{id:A,label:(0,a.k)("postDropWidgetTitle","Show drop options...")})),this._register(e.onDropIntoEditor((t=>this.onDropIntoEditor(e,t.position,t.event))))}clearWidgets(){this._postDropWidgetManager.clear()}changeDropType(){this._postDropWidgetManager.tryShowSelector()}async onDropIntoEditor(e,t,i){var n;if(!i.dataTransfer||!e.hasModel())return;null===(n=this._currentOperation)||void 0===n||n.cancel(),e.focus(),e.setPosition(t);const o=(0,h.SS)((async n=>{const s=new p.Cm,r=s.add(new k.gI(e,1,void 0,n));try{const o=await this.extractDataTransferData(i);if(0===o.size||r.token.isCancellationRequested)return;const a=e.getModel();if(!a)return;const l=this._languageFeaturesService.documentDropEditProvider.ordered(a).filter((e=>!e.dropMimeTypes||e.dropMimeTypes.some((e=>o.matches(e))))),d=s.add(await this.getDropEdits(l,a,t,o,r));if(r.token.isCancellationRequested)return;if(d.edits.length){const i=this.getInitialActiveEditIndex(a,d.edits),o="afterDrop"===e.getOption(36).showDropSelector;await this._postDropWidgetManager.applyEditAndShowIfNeeded([f.Q.fromPositions(t)],{activeEditIndex:i,allEdits:d.edits},o,(async e=>e),n)}}finally{s.dispose(),this._currentOperation===o&&(this._currentOperation=void 0)}}));this._dropProgressManager.showWhile(t,(0,a.k)("dropIntoEditorProgress","Running drop handlers. Click to cancel"),o,{cancel:()=>o.cancel()}),this._currentOperation=o}async getDropEdits(e,t,i,n,o){const s=new p.Cm,r=await(0,h.PK)(Promise.all(e.map((async e=>{try{const r=await e.provideDocumentDropEdits(t,i,n,o.token);return r&&s.add(r),null==r?void 0:r.edits.map((t=>({...t,providerId:e.id})))}catch(e){console.error(e)}}))),o.token),a=(0,c.Yc)(null!=r?r:[]).flat();return{edits:(0,E.H)(a),dispose:()=>s.dispose()}}getInitialActiveEditIndex(e,t){const i=this._configService.getValue(M,{resource:e.uri});for(const[e,n]of Object.entries(i)){const i=new g.k(n),o=t.findIndex((t=>i.value===t.providerId&&t.handledMimeType&&(0,u.Y)(e,[t.handledMimeType])));if(o>=0)return o}return 0}async extractDataTransferData(e){if(!e.dataTransfer)return new u.Vq;const t=(0,m.l)(e.dataTransfer);if(this.treeItemsTransfer.hasData(_.prototype)){const e=this.treeItemsTransfer.getData(_.prototype);if(Array.isArray(e))for(const i of e){const e=await this._treeViewsDragAndDropService.removeDragOperationTransfer(i.identifier);if(e)for(const[i,n]of e)t.replace(i,n)}}return t}};R.ID="editor.contrib.dropIntoEditorController",R=C=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([N(1,w._Y),N(2,x.pG),N(3,v.u),N(4,y)],R),(0,n.HW)(R.ID,R,2),(0,s.x)(r.ZR),(0,n.E_)(new class extends n.DX{constructor(){super({id:A,precondition:T,kbOpts:{weight:100,primary:2137}})}runEditorCommand(e,t,i){var n;null===(n=R.get(t))||void 0===n||n.changeDropType()}}),(0,n.E_)(new class extends n.DX{constructor(){super({id:"editor.hideDropWidget",precondition:T,kbOpts:{weight:100,primary:9}})}runEditorCommand(e,t,i){var n;null===(n=R.get(t))||void 0===n||n.clearWidgets()}}),d.O.as(l.Fd.Configuration).registerConfiguration({...o.JJ,properties:{[M]:{type:"object",scope:5,description:a.k("defaultProviderDescription","Configures the default drop provider to use for content of a given mime type."),default:{},additionalProperties:{type:"string"}}}})},71469:(e,t,i)=>{"use strict";i.d(t,{H:()=>r,v:()=>s});var n=i(98769),o=i(47039);function s(e,t,i){var s,r,a,l;return("string"==typeof i.insertText?""===i.insertText:""===i.insertText.snippet)?{edits:null!==(r=null===(s=i.additionalEdit)||void 0===s?void 0:s.edits)&&void 0!==r?r:[]}:{edits:[...t.map((t=>new n.cw(e,{range:t,text:"string"==typeof i.insertText?o.fr.escape(i.insertText)+"$0":i.insertText.snippet,insertAsSnippet:!0}))),...null!==(l=null===(a=i.additionalEdit)||void 0===a?void 0:a.edits)&&void 0!==l?l:[]]}}function r(e){var t;function i(e,t){return"mimeType"in e?e.mimeType===t.handledMimeType:!!t.kind&&e.kind.contains(t.kind)}const n=new Map;for(const o of e)for(const s of null!==(t=o.yieldTo)&&void 0!==t?t:[])for(const t of e)if(t!==o&&i(s,t)){let e=n.get(o);e||(e=[],n.set(o,e)),e.push(t)}if(!n.size)return Array.from(e);const o=new Set,s=[];return function e(t){if(!t.length)return[];const i=t[0];if(s.includes(i))return console.warn("Yield to cycle detected",i),t;if(o.has(i))return e(t.slice(1));let r=[];const a=n.get(i);return a&&(s.push(i),r=e(a),s.pop()),o.add(i),[...r,i,...e(t.slice(1))]}(Array.from(e))}},48652:(e,t,i)=>{"use strict";i.d(t,{G:()=>O});var n=i(14333),o=i(75524),s=i(27969),r=i(44437),a=i(94327),l=i(2106),d=i(10998),c=i(85072),h=i.n(c),u=i(97825),g=i.n(u),p=i(77659),m=i.n(p),f=i(55056),v=i.n(f),_=i(10540),b=i.n(_),w=i(41113),y=i.n(w),C=i(39926),k={};k.styleTagTransform=y(),k.setAttributes=v(),k.insert=m().bind(null,"head"),k.domAPI=g(),k.insertStyleElement=b(),h()(C.A,k),C.A&&C.A.locals&&C.A.locals;var S,x=i(98769),L=i(71469),D=i(3765),E=i(31540),I=i(52348),N=i(82399),M=i(56071),A=i(29879),T=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},R=function(e,t){return function(i,n){t(i,n,e)}};let P=S=class extends d.jG{constructor(e,t,i,n,o,s,r,a,c,h){super(),this.typeId=e,this.editor=t,this.showCommand=n,this.range=o,this.edits=s,this.onSelectNewEdit=r,this._contextMenuService=a,this._keybindingService=h,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=i.bindTo(c),this.visibleContext.set(!0),this._register((0,d.s)((()=>this.visibleContext.reset()))),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register((0,d.s)((()=>this.editor.removeContentWidget(this)))),this._register(this.editor.onDidChangeCursorPosition((e=>{o.containsPosition(e.position)||this.dispose()}))),this._register(l.Jh.runAndSubscribe(h.onDidUpdateKeybindings,(()=>{this._updateButtonTitle()})))}_updateButtonTitle(){var e;const t=null===(e=this._keybindingService.lookupKeybinding(this.showCommand.id))||void 0===e?void 0:e.getLabel();this.button.element.title=this.showCommand.label+(t?` (${t})`:"")}create(){this.domNode=n.$(".post-edit-widget"),this.button=this._register(new o.$(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(n.ko(this.domNode,n.Bx.CLICK,(()=>this.showSelector())))}getId(){return S.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{const e=n.BK(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map(((e,t)=>(0,s.ih)({id:"",label:e.title,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}})))})}};P.baseId="editor.widget.postEditWidget",P=S=T([R(7,I.Z),R(8,E.fN),R(9,M.b)],P);let O=class extends d.jG{constructor(e,t,i,n,o,s,r){super(),this._id=e,this._editor=t,this._visibleContext=i,this._showCommand=n,this._instantiationService=o,this._bulkEditService=s,this._notificationService=r,this._currentWidget=this._register(new d.HE),this._register(l.Jh.any(t.onDidChangeModel,t.onDidChangeModelContent)((()=>this.clear())))}async applyEditAndShowIfNeeded(e,t,i,n,o){const s=this._editor.getModel();if(!s||!e.length)return;const l=t.allEdits.at(t.activeEditIndex);if(!l)return;const d=async s=>{const r=this._editor.getModel();r&&(await r.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:s,allEdits:t.allEdits},i,n,o))},c=(n,o)=>{(0,a.MB)(n)||(this._notificationService.error(o),i&&this.show(e[0],t,d))};let h;try{h=await n(l,o)}catch(e){return c(e,(0,D.k)("resolveError","Error resolving edit '{0}':\n{1}",l.title,(0,r.r)(e)))}if(o.isCancellationRequested)return;const u=(0,L.v)(s.uri,e,h),g=e[0],p=s.deltaDecorations([],[{range:g,options:{description:"paste-line-suffix",stickiness:0}}]);let m,f;this._editor.focus();try{m=await this._bulkEditService.apply(u,{editor:this._editor,token:o}),f=s.getDecorationRange(p[0])}catch(e){return c(e,(0,D.k)("applyError","Error applying edit '{0}':\n{1}",l.title,(0,r.r)(e)))}finally{s.deltaDecorations(p,[])}o.isCancellationRequested||i&&m.isApplied&&t.allEdits.length>1&&this.show(null!=f?f:g,t,d)}show(e,t,i){this.clear(),this._editor.hasModel()&&(this._currentWidget.value=this._instantiationService.createInstance(P,this._id,this._editor,this._visibleContext,this._showCommand,e,t,i))}clear(){this._currentWidget.clear()}tryShowSelector(){var e;null===(e=this._currentWidget.value)||void 0===e||e.showSelector()}};O=T([R(4,N._Y),R(5,x.nu),R(6,A.Ot)],O)},62105:(e,t,i)=>{"use strict";i.d(t,{$t:()=>f,gI:()=>v,ER:()=>_});var n=i(16844),o=i(28061),s=i(78903),r=i(10998),a=i(50946),l=i(31540),d=i(85525),c=i(82399),h=i(66726),u=i(3765);const g=(0,c.u1)("IEditorCancelService"),p=new l.N1("cancellableOperation",!1,(0,u.k)("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));(0,h.v)(g,class{constructor(){this._tokens=new WeakMap}add(e,t){let i,n=this._tokens.get(e);return n||(n=e.invokeWithinContext((e=>({key:p.bindTo(e.get(l.fN)),tokens:new d.w}))),this._tokens.set(e,n)),n.key.set(!0),i=n.tokens.push(t),()=>{i&&(i(),n.key.set(!n.tokens.isEmpty()),i=void 0)}}cancel(e){const t=this._tokens.get(e);if(!t)return;const i=t.tokens.pop();i&&(i.cancel(),t.key.set(!t.tokens.isEmpty()))}},1);class m extends s.Qi{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext((t=>t.get(g).add(e,this)))}dispose(){this._unregister(),super.dispose()}}(0,a.E_)(new class extends a.DX{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:p})}runEditorCommand(e,t){e.get(g).cancel(t)}});class f{constructor(e,t){if(this.flags=t,1&this.flags){const t=e.getModel();this.modelVersionId=t?n.GP("{0}#{1}",t.uri.toString(),t.getVersionId()):null}else this.modelVersionId=null;4&this.flags?this.position=e.getPosition():this.position=null,2&this.flags?this.selection=e.getSelection():this.selection=null,8&this.flags?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(e){if(!(e instanceof f))return!1;const t=e;return this.modelVersionId===t.modelVersionId&&this.scrollLeft===t.scrollLeft&&this.scrollTop===t.scrollTop&&!(!this.position&&t.position||this.position&&!t.position||this.position&&t.position&&!this.position.equals(t.position))&&!(!this.selection&&t.selection||this.selection&&!t.selection||this.selection&&t.selection&&!this.selection.equalsRange(t.selection))}validate(e){return this._equals(new f(e,this.flags))}}class v extends m{constructor(e,t,i,n){super(e,n),this._listener=new r.Cm,4&t&&this._listener.add(e.onDidChangeCursorPosition((e=>{i&&o.Q.containsPosition(i,e.position)||this.cancel()}))),2&t&&this._listener.add(e.onDidChangeCursorSelection((e=>{i&&o.Q.containsRange(i,e.selection)||this.cancel()}))),8&t&&this._listener.add(e.onDidScrollChange((e=>this.cancel()))),1&t&&(this._listener.add(e.onDidChangeModel((e=>this.cancel()))),this._listener.add(e.onDidChangeModelContent((e=>this.cancel()))))}dispose(){this._listener.dispose(),super.dispose()}}class _ extends s.Qi{constructor(e,t){super(t),this._listener=e.onDidChangeContent((()=>this.cancel()))}dispose(){this._listener.dispose(),super.dispose()}}},54278:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CommonFindController:()=>St,FindController:()=>xt,MatchFindAction:()=>Nt,MoveToMatchFindAction:()=>Tt,NextMatchFindAction:()=>Mt,NextSelectionMatchFindAction:()=>Pt,PreviousMatchFindAction:()=>At,PreviousSelectionMatchFindAction:()=>Ot,SelectionMatchFindAction:()=>Rt,StartFindAction:()=>Lt,StartFindReplaceAction:()=>Ft,StartFindWithArgsAction:()=>Et,StartFindWithSelectionAction:()=>It,getSelectionSearchString:()=>kt});var n=i(65958),o=i(10998),s=i(16844),r=i(50946),a=i(48295),l=i(38122),d=i(66055),c=i(97393),h=i(66316),u=i(15365),g=i(28061),p=i(93702),m=i(104),f=i(74774),v=i(70559),_=i(89044);class b{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const e=this._findScopeDecorationIds.map((e=>this._editor.getModel().getDecorationRange(e))).filter((e=>!!e));if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){const t=this._decorations.indexOf(e);return t>=0?t+1:1}getDecorationRangeAt(e){const t=e{if(null!==this._highlightedDecorationId&&(e.changeDecorationOptions(this._highlightedDecorationId,b._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),null!==t&&(this._highlightedDecorationId=t,e.changeDecorationOptions(this._highlightedDecorationId,b._CURRENT_FIND_MATCH_DECORATION)),null!==this._rangeHighlightDecorationId&&(e.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),null!==t){let i=this._editor.getModel().getDecorationRange(t);if(i.startLineNumber!==i.endLineNumber&&1===i.endColumn){const e=i.endLineNumber-1,t=this._editor.getModel().getLineMaxColumn(e);i=new g.Q(i.startLineNumber,i.startColumn,e,t)}this._rangeHighlightDecorationId=e.addDecoration(i,b._RANGE_HIGHLIGHT_DECORATION)}})),i}set(e,t){this._editor.changeDecorations((i=>{let n=b._FIND_MATCH_DECORATION;const o=[];if(e.length>1e3){n=b._FIND_MATCH_NO_OVERVIEW_DECORATION;const t=this._editor.getModel().getLineCount(),i=this._editor.getLayoutInfo().height/t,s=Math.max(2,Math.ceil(3/i));let r=e[0].range.startLineNumber,a=e[0].range.endLineNumber;for(let t=1,i=e.length;t=i.startLineNumber?i.endLineNumber>a&&(a=i.endLineNumber):(o.push({range:new g.Q(r,1,a,1),options:b._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),r=i.startLineNumber,a=i.endLineNumber)}o.push({range:new g.Q(r,1,a,1),options:b._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}const s=new Array(e.length);for(let t=0,i=e.length;ti.removeDecoration(e))),this._findScopeDecorationIds=[]),(null==t?void 0:t.length)&&(this._findScopeDecorationIds=t.map((e=>i.addDecoration(e,b._FIND_SCOPE_DECORATION))))}))}matchBeforePosition(e){if(0===this._decorations.length)return null;for(let t=this._decorations.length-1;t>=0;t--){const i=this._decorations[t],n=this._editor.getModel().getDecorationRange(i);if(n&&!(n.endLineNumber>e.lineNumber)){if(n.endLineNumbere.column))return n}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(0===this._decorations.length)return null;for(let t=0,i=this._decorations.length;te.lineNumber)return n;if(!(n.startColumn0){const e=[];for(let t=0;tg.Q.compareRangesUsingStarts(e.range,t.range)));const i=[];let n=e[0];for(let t=1;t0?t[0].toUpperCase()+t.substr(1):e[0][0].toUpperCase()!==e[0][0]&&t.length>0?t[0].toLowerCase()+t.substr(1):t}return t}function C(e,t,i){return-1!==e[0].indexOf(i)&&-1!==t.indexOf(i)&&e[0].split(i).length===t.split(i).length}function k(e,t,i){const n=t.split(i),o=e[0].split(i);let s="";return n.forEach(((e,t)=>{s+=y([o[t]],e)+i})),s.slice(0,-1)}class S{constructor(e){this.staticValue=e,this.kind=0}}class x{constructor(e){this.pieces=e,this.kind=1}}class L{static fromStaticValue(e){return new L([D.staticValue(e)])}get hasReplacementPatterns(){return 1===this._state.kind}constructor(e){e&&0!==e.length?1===e.length&&null!==e[0].staticValue?this._state=new S(e[0].staticValue):this._state=new x(e):this._state=new S("")}buildReplaceString(e,t){if(0===this._state.kind)return t?y(e,this._state.staticValue):this._state.staticValue;let i="";for(let t=0,n=this._state.pieces.length;t0){const e=[],t=n.caseOps.length;let i=0;for(let s=0,r=o.length;s=t){e.push(o.slice(s));break}switch(n.caseOps[i]){case"U":e.push(o[s].toUpperCase());break;case"u":e.push(o[s].toUpperCase()),i++;break;case"L":e.push(o[s].toLowerCase());break;case"l":e.push(o[s].toLowerCase()),i++;break;default:e.push(o[s])}}o=e.join("")}i+=o}return i}static _substitute(e,t){if(null===t)return"";if(0===e)return t[0];let i="";for(;e>0;){if(ethis.research(!1)),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition((e=>{3!==e.reason&&5!==e.reason&&6!==e.reason||this._decorations.setStartPosition(this._editor.getPosition())}))),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent((e=>{this._ignoreModelContentChanged||(e.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())}))),this._toDispose.add(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,(0,o.AS)(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)}),240)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor))}static _getSearchRange(e,t){return t||e.getFullModelRange()}research(e,t){let i=null;void 0!==t?null!==t&&(i=Array.isArray(t)?t:[t]):i=this._decorations.getFindScopes(),null!==i&&(i=i.map((e=>{if(e.startLineNumber!==e.endLineNumber){let t=e.endLineNumber;return 1===e.endColumn&&(t-=1),new g.Q(e.startLineNumber,1,t,this._editor.getModel().getLineMaxColumn(t))}return e})));const n=this._findMatches(i,!1,G);this._decorations.set(n,i);const o=this._editor.getSelection();let s=this._decorations.getCurrentMatchesPosition(o);if(0===s&&n.length>0){const e=(0,c.hw)(n.map((e=>e.range)),(e=>g.Q.compareRangesUsingStarts(e,o)>=0));s=e>0?e-1+1:s}this._state.changeMatchInfo(s,this._decorations.getCount(),void 0),e&&this._editor.getOption(41).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){const e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){const t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){const t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:n}=e;const o=this._editor.getModel();return t||1===n?(1===i?i=o.getLineCount():i--,n=o.getLineMaxColumn(i)):n--,new u.y(i,n)}_moveToPrevMatch(e,t=!1){if(!this._state.canNavigateBack()){const t=this._decorations.matchAfterPosition(e);return void(t&&this._setCurrentFindMatch(t))}if(this._decorations.getCount()=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:i,column:n}=e;const o=this._editor.getModel();return t||n===o.getLineMaxColumn(i)?(i===o.getLineCount()?i=1:i++,n=1):n++,new u.y(i,n)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){const t=this._decorations.matchBeforePosition(e);return void(t&&this._setCurrentFindMatch(t))}if(this._decorations.getCount()=o)break;const s=e.charCodeAt(n);if(36===s){i.emitUnchanged(n-1),i.emitStatic("$",n+1);continue}if(48===s||38===s){i.emitUnchanged(n-1),i.emitMatchIndex(0,n+1,t),t.length=0;continue}if(49<=s&&s<=57){let r=s-48;if(n+1=o)break;const s=e.charCodeAt(n);switch(s){case 92:i.emitUnchanged(n-1),i.emitStatic("\\",n+1);break;case 110:i.emitUnchanged(n-1),i.emitStatic("\n",n+1);break;case 116:i.emitUnchanged(n-1),i.emitStatic("\t",n+1);break;case 117:case 85:case 108:case 76:i.emitUnchanged(n-1),i.emitStatic("",n+1),t.push(String.fromCharCode(s))}}}return i.finalize()}(this._state.replaceString):L.fromStaticValue(this._state.replaceString)}replace(){if(!this._hasMatches())return;const e=this._getReplacePattern(),t=this._editor.getSelection(),i=this._getNextMatch(t.getStartPosition(),!0,!1);if(i)if(t.equalsRange(i.range)){const n=e.buildReplaceString(i.matches,this._state.preserveCase),o=new h.iu(t,n);this._executeEditorCommand("replace",o),this._decorations.setStartPosition(new u.y(t.startLineNumber,t.startColumn+n.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(i.range)}_findMatches(e,t,i){const n=(e||[null]).map((e=>Q._getSearchRange(this._editor.getModel(),e)));return this._editor.getModel().findMatches(this._state.searchString,n,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null,t,i)}replaceAll(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();null===e&&this._state.matchesCount>=G?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){const e=new m.lt(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(132):null).parseSearchRequest();if(!e)return;let t=e.regex;if(!t.multiline){let e="mu";t.ignoreCase&&(e+="i"),t.global&&(e+="g"),t=new RegExp(t.source,e)}const i=this._editor.getModel(),n=i.getValue(1),o=i.getFullModelRange(),s=this._getReplacePattern();let r;const a=this._state.preserveCase;r=s.hasReplacementPatterns||a?n.replace(t,(function(){return s.buildReplaceString(arguments,a)})):n.replace(t,s.buildReplaceString(null,a));const l=new h.ui(o,r,this._editor.getSelection());this._executeEditorCommand("replaceAll",l)}_regularReplaceAll(e){const t=this._getReplacePattern(),i=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),n=[];for(let e=0,o=i.length;ee.range)),n);this._executeEditorCommand("replaceAll",o)}selectAllMatches(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();let t=this._findMatches(e,!1,1073741824).map((e=>new p.L(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)));const i=this._editor.getSelection();for(let e=0,n=t.length;ethis._hide()),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=i,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.style.zIndex="12",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");const o={inputActiveOptionBorder:(0,v.GuP)(v.uNK),inputActiveOptionForeground:(0,v.GuP)(v.$$0),inputActiveOptionBackground:(0,v.GuP)(v.c1f)},s=this._register((0,ge.bW)());this.caseSensitive=this._register(new he.bc({appendTitle:this._keybindingLabelFor(V),isChecked:this._state.matchCase,hoverDelegate:s,...o})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange((()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)}))),this.wholeWords=this._register(new he.nV({appendTitle:this._keybindingLabelFor(z),isChecked:this._state.wholeWord,hoverDelegate:s,...o})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange((()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)}))),this.regex=this._register(new he.Ix({appendTitle:this._keybindingLabelFor(j),isChecked:this._state.isRegex,hoverDelegate:s,...o})),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((e=>{let t=!1;e.isRegex&&(this.regex.checked=this._state.isRegex,t=!0),e.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,t=!0),e.matchCase&&(this.caseSensitive.checked=this._state.matchCase,t=!0),!this._state.isRevealed&&t&&this._revealTemporarily()}))),this._register(Z.ko(this._domNode,Z.Bx.MOUSE_LEAVE,(e=>this._onMouseLeave()))),this._register(Z.ko(this._domNode,"mouseover",(e=>this._onMouseOver())))}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return pe.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")}}pe.ID="editor.contrib.findOptionsWidget";var me=i(2106);function fe(e,t){return 1===e||2!==e&&t}class ve extends o.jG{get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return fe(this._isRegexOverride,this._isRegex)}get wholeWord(){return fe(this._wholeWordOverride,this._wholeWord)}get matchCase(){return fe(this._matchCaseOverride,this._matchCase)}get preserveCase(){return fe(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 me.vl),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0,this._isSearching=!1,this._filters=null}changeMatchInfo(e,t,i){const n={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let o=!1;0===t&&(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),void 0!==i&&(g.Q.equalsRange(this._currentMatch,i)||(this._currentMatch=i,n.currentMatch=!0,o=!0)),o&&this._onFindReplaceStateChange.fire(n)}change(e,t,i=!0){var n;const o={moveCursor:t,updateHistory:i,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let s=!1;const r=this.isRegex,a=this.wholeWord,l=this.matchCase,d=this.preserveCase;void 0!==e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,o.searchString=!0,s=!0),void 0!==e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,o.replaceString=!0,s=!0),void 0!==e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,o.isRevealed=!0,s=!0),void 0!==e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,o.isReplaceRevealed=!0,s=!0),void 0!==e.isRegex&&(this._isRegex=e.isRegex),void 0!==e.wholeWord&&(this._wholeWord=e.wholeWord),void 0!==e.matchCase&&(this._matchCase=e.matchCase),void 0!==e.preserveCase&&(this._preserveCase=e.preserveCase),void 0!==e.searchScope&&((null===(n=e.searchScope)||void 0===n?void 0:n.every((e=>{var t;return null===(t=this._searchScope)||void 0===t?void 0:t.some((t=>!g.Q.equalsRange(t,e)))})))||(this._searchScope=e.searchScope,o.searchScope=!0,s=!0)),void 0!==e.loop&&this._loop!==e.loop&&(this._loop=e.loop,o.loop=!0,s=!0),void 0!==e.isSearching&&this._isSearching!==e.isSearching&&(this._isSearching=e.isSearching,o.isSearching=!0,s=!0),void 0!==e.filters&&(this._filters?this._filters.update(e.filters):this._filters=e.filters,o.filters=!0,s=!0),this._isRegexOverride=void 0!==e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride=void 0!==e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride=void 0!==e.matchCaseOverride?e.matchCaseOverride:0,this._preserveCaseOverride=void 0!==e.preserveCaseOverride?e.preserveCaseOverride:0,r!==this.isRegex&&(s=!0,o.isRegex=!0),a!==this.wholeWord&&(s=!0,o.wholeWord=!0),l!==this.matchCase&&(s=!0,o.matchCase=!0),d!==this.preserveCase&&(s=!0,o.preserveCase=!0),s&&this._onFindReplaceStateChange.fire(o)}canNavigateBack(){return this.canNavigateInLoop()||1!==this.matchesPosition}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition=G}}var _e=i(9009),be=i(86004),we=i(1910),ye=i(26048),Ce=i(94327),ke=i(63339),Se=i(45395),xe={};xe.styleTagTransform=le(),xe.setAttributes=oe(),xe.insert=ie().bind(null,"head"),xe.domAPI=ee(),xe.insertStyleElement=re(),X()(Se.A,xe),Se.A&&Se.A.locals&&Se.A.locals;var Le=i(3765),De=i(33242);function Ee(e){var t,i;return"Up"===(null===(t=e.lookupKeybinding("history.showPrevious"))||void 0===t?void 0:t.getElectronAccelerator())&&"Down"===(null===(i=e.lookupKeybinding("history.showNext"))||void 0===i?void 0:i.getElectronAccelerator())}var Ie=i(11210),Ne=i(58881),Me=i(89563),Ae=i(79359),Te=i(25654);const Re=(0,Ie.pU)("find-collapsed",ye.W.chevronRight,Le.k("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),Pe=(0,Ie.pU)("find-expanded",ye.W.chevronDown,Le.k("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),Oe=(0,Ie.pU)("find-selection",ye.W.selection,Le.k("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),Fe=(0,Ie.pU)("find-replace",ye.W.replace,Le.k("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),Be=(0,Ie.pU)("find-replace-all",ye.W.replaceAll,Le.k("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),We=(0,Ie.pU)("find-previous-match",ye.W.arrowUp,Le.k("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),He=(0,Ie.pU)("find-next-match",ye.W.arrowDown,Le.k("findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),Ve=Le.k("label.findDialog","Find / Replace"),ze=Le.k("label.find","Find"),je=Le.k("placeholder.find","Find"),Ue=Le.k("label.previousMatchButton","Previous Match"),$e=Le.k("label.nextMatchButton","Next Match"),Ke=Le.k("label.toggleSelectionFind","Find in Selection"),qe=Le.k("label.closeButton","Close"),Ge=Le.k("label.replace","Replace"),Qe=Le.k("placeholder.replace","Replace"),Ze=Le.k("label.replaceButton","Replace"),Ye=Le.k("label.replaceAllButton","Replace All"),Xe=Le.k("label.toggleReplaceButton","Toggle Replace"),Je=Le.k("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",G),et=Le.k("label.matchesLocation","{0} of {1}"),tt=Le.k("label.noResults","No results"),it=419;let nt=69;const ot="ctrlEnterReplaceAll.windows.donotask",st=ke.zx?256:2048;class rt{constructor(e){this.afterLineNumber=e,this.heightInPx=33,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}function at(e,t,i){const n=!!t.match(/\n/);i&&n&&i.selectionStart>0&&e.stopPropagation()}function lt(e,t,i){const n=!!t.match(/\n/);i&&n&&i.selectionEndthis._updateHistoryDelayer.cancel()))),this._register(this._state.onFindReplaceStateChange((e=>this._onStateChanged(e)))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration((e=>{if(e.hasChanged(92)&&(this._codeEditor.getOption(92)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),e.hasChanged(146)&&this._tryUpdateWidgetWidth(),e.hasChanged(2)&&this.updateAccessibilitySupport(),e.hasChanged(41)){const e=this._codeEditor.getOption(41).loop;this._state.change({loop:e},!1);const t=this._codeEditor.getOption(41).addExtraSpaceOnTop;t&&!this._viewZone&&(this._viewZone=new rt(0),this._showViewZone()),!t&&this._viewZone&&this._removeViewZone()}}))),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection((()=>{this._isVisible&&this._updateToggleSelectionFindButton()}))),this._register(this._codeEditor.onDidFocusEditorWidget((async()=>{if(this._isVisible){const e=await this._controller.getGlobalBufferTerm();e&&e!==this._state.searchString&&(this._state.change({searchString:e},!1),this._findInput.select())}}))),this._findInputFocused=M.bindTo(a),this._findFocusTracker=this._register(Z.w5(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=A.bindTo(a),this._replaceFocusTracker=this._register(Z.w5(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus((()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()}))),this._register(this._replaceFocusTracker.onDidBlur((()=>{this._replaceInputFocused.set(!1)}))),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(41).addExtraSpaceOnTop&&(this._viewZone=new rt(0)),this._register(this._codeEditor.onDidChangeModel((()=>{this._isVisible&&(this._viewZoneId=void 0)}))),this._register(this._codeEditor.onDidScrollChange((e=>{e.scrollTopChanged?this._layoutViewZone():setTimeout((()=>{this._layoutViewZone()}),0)})))}getId(){return dt.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(92)||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInput.width=Z.Tr(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){const e=this._state.searchString.length>0&&0===this._state.matchesCount;this._domNode.classList.toggle("no-results",e),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,Ce.dz)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){var e;let t;if(this._matchesCount.style.minWidth=nt+"px",this._state.matchesCount>=G?this._matchesCount.title=Je:this._matchesCount.title="",null===(e=this._matchesCount.firstChild)||void 0===e||e.remove(),this._state.matchesCount>0){let e=String(this._state.matchesCount);this._state.matchesCount>=G&&(e+="+");let i=String(this._state.matchesPosition);"0"===i&&(i="?"),t=s.GP(et,i,e)}else t=tt;this._matchesCount.appendChild(document.createTextNode(t)),(0,_e.xE)(this._getAriaLabel(t,this._state.currentMatch,this._state.searchString)),nt=Math.max(nt,this._matchesCount.clientWidth)}_getAriaLabel(e,t,i){if(e===tt)return""===i?Le.k("ariaSearchNoResultEmpty","{0} found",e):Le.k("ariaSearchNoResult","{0} found for '{1}'",e,i);if(t){const n=Le.k("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,i,t.startLineNumber+":"+t.startColumn),o=this._codeEditor.getModel();return o&&t.startLineNumber<=o.getLineCount()&&t.startLineNumber>=1?`${o.getLineContent(t.startLineNumber)}, ${n}`:n}return Le.k("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,i)}_updateToggleSelectionFindButton(){const e=this._codeEditor.getSelection(),t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),i=this._toggleSelectionFind.checked;this._isVisible&&(i||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);const e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);const i=!this._codeEditor.getOption(92);this._toggleReplaceBtn.setEnabled(this._isVisible&&i)}_reveal(){if(this._revealTimeouts.forEach((e=>{clearTimeout(e)})),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;const e=this._codeEditor.getSelection();switch(this._codeEditor.getOption(41).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":{const t=!!e&&e.startLineNumber!==e.endLineNumber;this._toggleSelectionFind.checked=t;break}}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout((()=>{this._domNode.classList.add("visible"),this._domNode.setAttribute("aria-hidden","false")}),0)),this._revealTimeouts.push(setTimeout((()=>{this._findInput.validate()}),200)),this._codeEditor.layoutOverlayWidget(this);let t=!0;if(this._codeEditor.getOption(41).seedSearchStringFromSelection&&e){const i=this._codeEditor.getDomNode();if(i){const n=Z.BK(i),o=this._codeEditor.getScrolledVisiblePosition(e.getStartPosition()),s=n.left+(o?o.left:0),r=o?o.top:0;if(this._viewZone&&re.startLineNumber&&(t=!1);const i=Z.cL(this._domNode).left;s>i&&(t=!1);const o=this._codeEditor.getScrolledVisiblePosition(e.getEndPosition());n.left+(o?o.left:0)>i&&(t=!1)}}}this._showViewZone(t)}}_hide(e){this._revealTimeouts.forEach((e=>{clearTimeout(e)})),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(e){if(!this._codeEditor.getOption(41).addExtraSpaceOnTop)return void this._removeViewZone();if(!this._isVisible)return;const t=this._viewZone;void 0===this._viewZoneId&&t&&this._codeEditor.changeViewZones((i=>{t.heightInPx=this._getHeight(),this._viewZoneId=i.addZone(t),this._codeEditor.setScrollTop(e||this._codeEditor.getScrollTop()+t.heightInPx)}))}_showViewZone(e=!0){if(!this._isVisible)return;if(!this._codeEditor.getOption(41).addExtraSpaceOnTop)return;void 0===this._viewZone&&(this._viewZone=new rt(0));const t=this._viewZone;this._codeEditor.changeViewZones((i=>{if(void 0!==this._viewZoneId){const n=this._getHeight();if(n===t.heightInPx)return;const o=n-t.heightInPx;return t.heightInPx=n,i.layoutZone(this._viewZoneId),void(e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+o))}{let n=this._getHeight();if(n-=this._codeEditor.getOption(84).top,n<=0)return;t.heightInPx=n,this._viewZoneId=i.addZone(t),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+n)}}))}_removeViewZone(){this._codeEditor.changeViewZones((e=>{void 0!==this._viewZoneId&&(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)return;if(!this._domNode.isConnected)return;const e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0)return void this._domNode.classList.add("hiddenEditor");this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");const t=e.width,i=e.minimap.minimapWidth;let n=!1,o=!1,s=!1;if(this._resized&&Z.Tr(this._domNode)>it)return this._domNode.style.maxWidth=t-28-i-15+"px",void(this._replaceInput.width=Z.Tr(this._findInput.domNode));if(447+i>=t&&(o=!0),447+i-nt>=t&&(s=!0),447+i-nt>=t+50&&(n=!0),this._domNode.classList.toggle("collapsed-find-widget",n),this._domNode.classList.toggle("narrow-find-widget",s),this._domNode.classList.toggle("reduced-find-widget",o),s||n||(this._domNode.style.maxWidth=t-28-i-15+"px"),this._findInput.layout({collapsedFindWidget:n,narrowFindWidget:s,reducedFindWidget:o}),this._resized){const e=this._findInput.inputBox.element.clientWidth;e>0&&(this._replaceInput.width=e)}else this._isReplaceVisible&&(this._replaceInput.width=Z.Tr(this._findInput.domNode))}_getHeight(){let e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4,e}_tryUpdateHeight(){const e=this._getHeight();return(null===this._cachedHeight||this._cachedHeight!==e)&&(this._cachedHeight=e,this._domNode.style.height=`${e}px`,!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){const e=this._codeEditor.getSelections();e.map((e=>{1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1)));const t=this._state.currentMatch;return e.startLineNumber===e.endLineNumber||g.Q.equalsRange(e,t)?null:e})).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){return e.equals(3|st)?(this._keybindingService.dispatchEvent(e,e.target)||this._findInput.inputBox.insertAtCursor("\n"),void e.preventDefault()):e.equals(2)?(this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?at(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):e.equals(18)?lt(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):void 0}_onReplaceInputKeyDown(e){return e.equals(3|st)?(this._keybindingService.dispatchEvent(e,e.target)||(ke.uF&&ke.ib&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(Le.k("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(ot,!0,0,0)),this._replaceInput.inputBox.insertAtCursor("\n")),void e.preventDefault()):e.equals(2)?(this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(1026)?(this._findInput.focus(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?at(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):e.equals(18)?lt(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):void 0}getVerticalSashLeft(e){return 0}_keybindingLabelFor(e){const t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}_buildDomNode(){const e=!0,t=!0;this._findInput=this._register(new De.pG(null,this._contextViewProvider,{width:221,label:ze,placeholder:je,appendCaseSensitiveLabel:this._keybindingLabelFor(V),appendWholeWordsLabel:this._keybindingLabelFor(z),appendRegexLabel:this._keybindingLabelFor(j),validation:e=>{if(0===e.length||!this._findInput.getRegex())return null;try{return new RegExp(e,"gu"),null}catch(e){return{content:e.message}}},flexibleHeight:e,flexibleWidth:t,flexibleMaxHeight:118,showCommonFindToggles:!0,showHistoryHint:()=>Ee(this._keybindingService),inputBoxStyles:Te.ho,toggleStyles:Te.mk},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((e=>this._onFindInputKeyDown(e)))),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((e=>{e.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),e.preventDefault())}))),this._register(this._findInput.onRegexKeyDown((e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),e.preventDefault())}))),this._register(this._findInput.inputBox.onDidHeightChange((e=>{this._tryUpdateHeight()&&this._showViewZone()}))),ke.j9&&this._register(this._findInput.onMouseDown((e=>this._onFindInputMouseDown(e)))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount();const i=this._register((0,ge.bW)());this._prevBtn=this._register(new ct({label:Ue+this._keybindingLabelFor(W),icon:We,hoverDelegate:i,onTrigger:()=>{(0,Ae.eU)(this._codeEditor.getAction(W)).run().then(void 0,Ce.dz)}},this._hoverService)),this._nextBtn=this._register(new ct({label:$e+this._keybindingLabelFor(B),icon:He,hoverDelegate:i,onTrigger:()=>{(0,Ae.eU)(this._codeEditor.getAction(B)).run().then(void 0,Ce.dz)}},this._hoverService));const n=document.createElement("div");n.className="find-part",n.appendChild(this._findInput.domNode);const o=document.createElement("div");o.className="find-actions",n.appendChild(o),o.appendChild(this._matchesCount),o.appendChild(this._prevBtn.domNode),o.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new be.l({icon:Oe,title:Ke+this._keybindingLabelFor(U),isChecked:!1,hoverDelegate:i,inputActiveOptionBackground:(0,v.GuP)(v.c1f),inputActiveOptionBorder:(0,v.GuP)(v.uNK),inputActiveOptionForeground:(0,v.GuP)(v.$$0)})),this._register(this._toggleSelectionFind.onChange((()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){let e=this._codeEditor.getSelections();e=e.map((e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()?null:e))).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}else this._state.change({searchScope:null},!0)}))),o.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new ct({label:qe+this._keybindingLabelFor(H),icon:Ie.$_,hoverDelegate:i,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),e.preventDefault())}},this._hoverService)),this._replaceInput=this._register(new De._Q(null,void 0,{label:Ge,placeholder:Qe,appendPreserveCaseLabel:this._keybindingLabelFor($),history:[],flexibleHeight:e,flexibleWidth:t,flexibleMaxHeight:118,showHistoryHint:()=>Ee(this._keybindingService),inputBoxStyles:Te.ho,toggleStyles:Te.mk},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown((e=>this._onReplaceInputKeyDown(e)))),this._register(this._replaceInput.inputBox.onDidChange((()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)}))),this._register(this._replaceInput.inputBox.onDidHeightChange((e=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()}))),this._register(this._replaceInput.onDidOptionChange((()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)}))),this._register(this._replaceInput.onPreserveCaseKeyDown((e=>{e.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(),e.preventDefault())})));const s=this._register((0,ge.bW)());this._replaceBtn=this._register(new ct({label:Ze+this._keybindingLabelFor(K),icon:Fe,hoverDelegate:s,onTrigger:()=>{this._controller.replace()},onKeyDown:e=>{e.equals(1026)&&(this._closeBtn.focus(),e.preventDefault())}},this._hoverService)),this._replaceAllBtn=this._register(new ct({label:Ye+this._keybindingLabelFor(q),icon:Be,hoverDelegate:s,onTrigger:()=>{this._controller.replaceAll()}},this._hoverService));const r=document.createElement("div");r.className="replace-part",r.appendChild(this._replaceInput.domNode);const a=document.createElement("div");a.className="replace-actions",r.appendChild(a),a.appendChild(this._replaceBtn.domNode),a.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new ct({label:Xe,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=Z.Tr(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}},this._hoverService)),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.ariaLabel=Ve,this._domNode.role="dialog",this._domNode.style.width="419px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(n),this._domNode.appendChild(this._closeBtn.domNode),this._domNode.appendChild(r),this._resizeSash=this._register(new we.m(this._domNode,this,{orientation:0,size:2})),this._resized=!1;let l=it;this._register(this._resizeSash.onDidStart((()=>{l=Z.Tr(this._domNode)}))),this._register(this._resizeSash.onDidChange((e=>{this._resized=!0;const t=l+e.startX-e.currentX;t(parseFloat(Z.L9(this._domNode).maxWidth)||0)||(this._domNode.style.width=`${t}px`,this._isReplaceVisible&&(this._replaceInput.width=Z.Tr(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())}))),this._register(this._resizeSash.onDidReset((()=>{const e=Z.Tr(this._domNode);if(e{this._opts.onTrigger(),e.preventDefault()})),this.onkeydown(this._domNode,(e=>{var t,i;if(e.equals(10)||e.equals(3))return this._opts.onTrigger(),void e.preventDefault();null===(i=(t=this._opts).onKeyDown)||void 0===i||i.call(t,e)}))}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(...Ne.L.asClassNameArray(Re)),this._domNode.classList.add(...Ne.L.asClassNameArray(Pe))):(this._domNode.classList.remove(...Ne.L.asClassNameArray(Pe)),this._domNode.classList.add(...Ne.L.asClassNameArray(Re)))}}(0,_.zy)(((e,t)=>{const i=e.getColor(v.ECk);i&&t.addRule(`.monaco-editor .findMatch { border: 1px ${(0,Me.Bb)(e.type)?"dotted":"solid"} ${i}; box-sizing: border-box; }`);const n=e.getColor(v.S5J);n&&t.addRule(`.monaco-editor .findScope { border: 1px ${(0,Me.Bb)(e.type)?"dashed":"solid"} ${n}; }`);const o=e.getColor(v.b1q);o&&t.addRule(`.monaco-editor .find-widget { border: 1px solid ${o}; }`);const s=e.getColor(v.f3U);s&&t.addRule(`.monaco-editor .findMatchInline { color: ${s}; }`);const r=e.getColor(v.p8Y);r&&t.addRule(`.monaco-editor .currentFindMatchInline { color: ${r}; }`)}));var ht,ut=i(58067),gt=i(3338),pt=i(52348),mt=i(56071),ft=i(29879),vt=i(73027),_t=i(90840),bt=i(90428),wt=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},yt=function(e,t){return function(i,n){t(i,n,e)}};const Ct=524288;function kt(e,t="single",i=!1){if(!e.hasModel())return null;const n=e.getSelection();if("single"===t&&n.startLineNumber===n.endLineNumber||"multiple"===t)if(n.isEmpty()){const t=e.getConfiguredWordAtPosition(n.getStartPosition());if(t&&!1===i)return t.word}else if(e.getModel().getValueLengthInRange(n)this._onStateChanged(e)))),this._model=null,this._register(this._editor.onDidChangeModel((()=>{const e=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),e&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(41).loop})})))}dispose(){this.disposeModel(),super.dispose()}disposeModel(){this._model&&(this._model.dispose(),this._model=null)}_onStateChanged(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)}saveQueryState(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1,1),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1,1),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1,1),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1,1)}loadQueryState(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)}isFindInputFocused(){return!!M.getValue(this._contextKeyService)}getState(){return this._state}closeFindWidget(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()}toggleCaseSensitive(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleWholeWords(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()}toggleRegex(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()}togglePreserveCase(){this._state.change({preserveCase:!this._state.preserveCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleSearchScope(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){let e=this._editor.getSelections();e=e.map((e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._editor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()?null:e))).filter((e=>!!e)),e.length&&this._state.change({searchScope:e},!0)}}setSearchString(e){this._state.isRegex&&(e=s.bm(e)),this._state.change({searchString:e},!1)}highlightFindOptions(e=!1){}async _start(e,t){if(this.disposeModel(),!this._editor.hasModel())return;const i={...t,isRevealed:!0};if("single"===e.seedSearchStringFromSelection){const t=kt(this._editor,e.seedSearchStringFromSelection,e.seedSearchStringFromNonEmptySelection);t&&(this._state.isRegex?i.searchString=s.bm(t):i.searchString=t)}else if("multiple"===e.seedSearchStringFromSelection&&!e.updateSearchScope){const t=kt(this._editor,e.seedSearchStringFromSelection);t&&(i.searchString=t)}if(!i.searchString&&e.seedSearchStringFromGlobalClipboard){const e=await this.getGlobalBufferTerm();if(!this._editor.hasModel())return;e&&(i.searchString=e)}if(e.forceRevealReplace||i.isReplaceRevealed?i.isReplaceRevealed=!0:this._findWidgetVisible.get()||(i.isReplaceRevealed=!1),e.updateSearchScope){const e=this._editor.getSelections();e.some((e=>!e.isEmpty()))&&(i.searchScope=e)}i.loop=e.loop,this._state.change(i,!1),this._model||(this._model=new Q(this._editor,this._state))}start(e,t){return this._start(e,t)}moveToNextMatch(){return!!this._model&&(this._model.moveToNextMatch(),!0)}moveToPrevMatch(){return!!this._model&&(this._model.moveToPrevMatch(),!0)}goToMatch(e){return!!this._model&&(this._model.moveToMatch(e),!0)}replace(){return!!this._model&&(this._model.replace(),!0)}replaceAll(){var e;return!!this._model&&((null===(e=this._editor.getModel())||void 0===e?void 0:e.isTooLargeForHeapOperation())?(this._notificationService.warn(Le.k("too.large.for.replaceall","The file is too large to perform a replace all operation.")),!1):(this._model.replaceAll(),!0))}selectAllMatches(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)}async getGlobalBufferTerm(){return this._editor.getOption(41).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""}setGlobalBufferTerm(e){this._editor.getOption(41).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)}};St.ID="editor.contrib.findController",St=ht=wt([yt(1,I.fN),yt(2,_t.CS),yt(3,gt.h),yt(4,ft.Ot),yt(5,bt.TN)],St);let xt=class extends St{constructor(e,t,i,n,o,s,r,a,l){super(e,i,r,a,s,l),this._contextViewService=t,this._keybindingService=n,this._themeService=o,this._widget=null,this._findOptionsWidget=null}async _start(e,t){this._widget||this._createFindWidget();const i=this._editor.getSelection();let n=!1;switch(this._editor.getOption(41).autoFindInSelection){case"always":n=!0;break;case"never":n=!1;break;case"multiline":n=!!i&&i.startLineNumber!==i.endLineNumber}e.updateSearchScope=e.updateSearchScope||n,await super._start(e,t),this._widget&&(2===e.shouldFocus?this._widget.focusReplaceInput():1===e.shouldFocus&&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 dt(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService,this._hoverService)),this._findOptionsWidget=this._register(new pe(this._editor,this._state,this._keybindingService))}};xt=wt([yt(1,pt.l),yt(2,I.fN),yt(3,mt.b),yt(4,_.Gy),yt(5,ft.Ot),yt(6,_t.CS),yt(7,gt.h),yt(8,bt.TN)],xt);const Lt=(0,r.gW)(new r.PF({id:"actions.find",label:Le.k("startFindAction","Find"),alias:"Find",precondition:I.M$.or(l.R.focus,I.M$.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:ut.D8.MenubarEditMenu,group:"3_find",title:Le.k({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}}));Lt.addImplementation(0,((e,t,i)=>{const n=St.get(t);return!!n&&n.start({forceRevealReplace:!1,seedSearchStringFromSelection:"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getOption(41).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop})}));const Dt={description:"Open a new In-Editor Find Widget.",args:[{name:"Open a new In-Editor Find Widget args",schema:{properties:{searchString:{type:"string"},replaceString:{type:"string"},isRegex:{type:"boolean"},matchWholeWord:{type:"boolean"},isCaseSensitive:{type:"boolean"},preserveCase:{type:"boolean"},findInSelection:{type:"boolean"}}}}]};class Et extends r.ks{constructor(){super({id:"editor.actions.findWithArgs",label:Le.k("startFindWithArgsAction","Find With Arguments"),alias:"Find With Arguments",precondition:void 0,kbOpts:{kbExpr:null,primary:0,weight:100},metadata:Dt})}async run(e,t,i){const n=St.get(t);if(n){const e=i?{searchString:i.searchString,replaceString:i.replaceString,isReplaceRevealed:void 0!==i.replaceString,isRegex:i.isRegex,wholeWord:i.matchWholeWord,matchCase:i.isCaseSensitive,preserveCase:i.preserveCase}:{};await n.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===n.getState().searchString.length&&"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:1,shouldAnimate:!0,updateSearchScope:(null==i?void 0:i.findInSelection)||!1,loop:t.getOption(41).loop},e),n.setGlobalBufferTerm(n.getState().searchString)}}}class It extends r.ks{constructor(){super({id:"actions.findWithSelection",label:Le.k("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})}async run(e,t){const i=St.get(t);i&&(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"multiple",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),i.setGlobalBufferTerm(i.getState().searchString))}}class Nt extends r.ks{async run(e,t){const i=St.get(t);i&&!this._run(i)&&(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===i.getState().searchString.length&&"never"!==t.getOption(41).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),this._run(i))}}class Mt extends Nt{constructor(){super({id:B,label:Le.k("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:[{kbExpr:l.R.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100},{kbExpr:I.M$.and(l.R.focus,M),primary:3,weight:100}]})}_run(e){return!!e.moveToNextMatch()&&(e.editor.pushUndoStop(),!0)}}class At extends Nt{constructor(){super({id:W,label:Le.k("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:[{kbExpr:l.R.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100},{kbExpr:I.M$.and(l.R.focus,M),primary:1027,weight:100}]})}_run(e){return e.moveToPrevMatch()}}class Tt extends r.ks{constructor(){super({id:"editor.action.goToMatchFindAction",label:Le.k("findMatchAction.goToMatch","Go to Match..."),alias:"Go to Match...",precondition:N}),this._highlightDecorations=[]}run(e,t,i){const n=St.get(t);if(!n)return;const o=n.getState().matchesCount;if(o<1)return void e.get(ft.Ot).notify({severity:ft.AI.Warning,message:Le.k("findMatchAction.noResults","No matches. Try searching for something else.")});const s=e.get(vt.GK).createInputBox();s.placeholder=Le.k("findMatchAction.inputPlaceHolder","Type a number to go to a specific match (between 1 and {0})",o);const r=e=>{const t=parseInt(e);if(isNaN(t))return;const i=n.getState().matchesCount;return t>0&&t<=i?t-1:t<0&&t>=-i?i+t:void 0},a=e=>{const i=r(e);if("number"==typeof i){s.validationMessage=void 0,n.goToMatch(i);const e=n.getState().currentMatch;e&&this.addDecorations(t,e)}else s.validationMessage=Le.k("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",n.getState().matchesCount),this.clearDecorations(t)};s.onDidChangeValue((e=>{a(e)})),s.onDidAccept((()=>{const e=r(s.value);"number"==typeof e?(n.goToMatch(e),s.hide()):s.validationMessage=Le.k("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",n.getState().matchesCount)})),s.onDidHide((()=>{this.clearDecorations(t),s.dispose()})),s.show()}clearDecorations(e){e.changeDecorations((e=>{this._highlightDecorations=e.deltaDecorations(this._highlightDecorations,[])}))}addDecorations(e,t){e.changeDecorations((e=>{this._highlightDecorations=e.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:(0,_.Yf)(a.vp),position:d.A5.Full}}}])}))}}class Rt extends r.ks{async run(e,t){const i=St.get(t);if(!i)return;const n=kt(t,"single",!1);n&&i.setSearchString(n),this._run(i)||(await i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop}),this._run(i))}}class Pt extends Rt{constructor(){super({id:"editor.action.nextSelectionMatchFindAction",label:Le.k("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:l.R.focus,primary:2109,weight:100}})}_run(e){return e.moveToNextMatch()}}class Ot extends Rt{constructor(){super({id:"editor.action.previousSelectionMatchFindAction",label:Le.k("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:l.R.focus,primary:3133,weight:100}})}_run(e){return e.moveToPrevMatch()}}const Ft=(0,r.gW)(new r.PF({id:"editor.action.startFindReplaceAction",label:Le.k("startReplace","Replace"),alias:"Replace",precondition:I.M$.or(l.R.focus,I.M$.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:ut.D8.MenubarEditMenu,group:"3_find",title:Le.k({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}}));Ft.addImplementation(0,((e,t,i)=>{if(!t.hasModel()||t.getOption(92))return!1;const n=St.get(t);if(!n)return!1;const o=t.getSelection(),s=n.isFindInputFocused(),r=!o.isEmpty()&&o.startLineNumber===o.endLineNumber&&"never"!==t.getOption(41).seedSearchStringFromSelection&&!s,a=s||r?2:1;return n.start({forceRevealReplace:!0,seedSearchStringFromSelection:r?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(41).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:"never"!==t.getOption(41).seedSearchStringFromSelection,shouldFocus:a,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(41).loop})})),(0,r.HW)(St.ID,xt,0),(0,r.Fl)(Et),(0,r.Fl)(It),(0,r.Fl)(Mt),(0,r.Fl)(At),(0,r.Fl)(Tt),(0,r.Fl)(Pt),(0,r.Fl)(Ot);const Bt=r.DX.bindToContribution(St.get);(0,r.E_)(new Bt({id:H,precondition:N,handler:e=>e.closeFindWidget(),kbOpts:{weight:105,kbExpr:I.M$.and(l.R.focus,I.M$.not("isComposing")),primary:9,secondary:[1033]}})),(0,r.E_)(new Bt({id:V,precondition:void 0,handler:e=>e.toggleCaseSensitive(),kbOpts:{weight:105,kbExpr:l.R.focus,primary:T.primary,mac:T.mac,win:T.win,linux:T.linux}})),(0,r.E_)(new Bt({id:z,precondition:void 0,handler:e=>e.toggleWholeWords(),kbOpts:{weight:105,kbExpr:l.R.focus,primary:R.primary,mac:R.mac,win:R.win,linux:R.linux}})),(0,r.E_)(new Bt({id:j,precondition:void 0,handler:e=>e.toggleRegex(),kbOpts:{weight:105,kbExpr:l.R.focus,primary:P.primary,mac:P.mac,win:P.win,linux:P.linux}})),(0,r.E_)(new Bt({id:U,precondition:void 0,handler:e=>e.toggleSearchScope(),kbOpts:{weight:105,kbExpr:l.R.focus,primary:O.primary,mac:O.mac,win:O.win,linux:O.linux}})),(0,r.E_)(new Bt({id:$,precondition:void 0,handler:e=>e.togglePreserveCase(),kbOpts:{weight:105,kbExpr:l.R.focus,primary:F.primary,mac:F.mac,win:F.win,linux:F.linux}})),(0,r.E_)(new Bt({id:K,precondition:N,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:l.R.focus,primary:3094}})),(0,r.E_)(new Bt({id:K,precondition:N,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:I.M$.and(l.R.focus,A),primary:3}})),(0,r.E_)(new Bt({id:q,precondition:N,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:l.R.focus,primary:2563}})),(0,r.E_)(new Bt({id:q,precondition:N,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:I.M$.and(l.R.focus,A),primary:void 0,mac:{primary:2051}}})),(0,r.E_)(new Bt({id:"editor.action.selectAllMatches",precondition:N,handler:e=>e.selectAllMatches(),kbOpts:{weight:105,kbExpr:l.R.focus,primary:515}}))},97157:(e,t,i)=>{"use strict";i.r(t),i.d(t,{FoldingController:()=>J,RangesLimitReporter:()=>ee});var n=i(65958),o=i(78903),s=i(94327),r=i(68387),a=i(10998),l=i(16844),d=i(79359),c=i(85072),h=i.n(c),u=i(97825),g=i.n(u),p=i(77659),m=i.n(p),f=i(55056),v=i.n(f),_=i(10540),b=i.n(_),w=i(41113),y=i.n(w),C=i(55405),k={};k.styleTagTransform=y(),k.setAttributes=v(),k.insert=m().bind(null,"head"),k.domAPI=g(),k.insertStyleElement=b(),h()(C.A,k),C.A&&C.A.locals&&C.A.locals;var S=i(80878),x=i(50946),L=i(38122),D=i(47317),E=i(52394),I=i(99039),N=i(97393),M=i(2106),A=i(28061),T=i(3902);class R{get onDidChange(){return this._updateEventEmitter.event}get hiddenRanges(){return this._hiddenRanges}constructor(e){this._updateEventEmitter=new M.vl,this._hasLineChanges=!1,this._foldingModel=e,this._foldingModelListener=e.onDidChange((e=>this.updateHiddenRanges())),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}notifyChangeModelContent(e){this._hiddenRanges.length&&!this._hasLineChanges&&(this._hasLineChanges=e.changes.some((e=>e.range.endLineNumber!==e.range.startLineNumber||0!==(0,T.W)(e.text)[0])))}updateHiddenRanges(){let e=!1;const t=[];let i=0,n=0,o=Number.MAX_VALUE,s=-1;const r=this._foldingModel.regions;for(;i0}isHidden(e){return null!==P(this._hiddenRanges,e)}adjustSelections(e){let t=!1;const i=this._foldingModel.textModel;let n=null;const o=e=>(n&&function(e,t){return e>=t.startLineNumber&&e<=t.endLineNumber}(e,n)||(n=P(this._hiddenRanges,e)),n?n.startLineNumber-1:null);for(let n=0,s=e.length;n0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)}}function P(e,t){const i=(0,N.hw)(e,(e=>t=0&&e[i].endLineNumber>=t?e[i]:null}var O,F=i(90695),B=i(3765),W=i(31540),H=i(18917),V=i(18146),z=i(49440),j=i(29879),U=i(12060),$=i(23013),K=i(52230),q=i(59715),G=i(37264),Q=i(64830),Z=i(85753),Y=function(e,t){return function(i,n){t(i,n,e)}};const X=new W.N1("foldingEnabled",!1);let J=O=class extends a.jG{static get(e){return e.getContribution(O.ID)}static getFoldingRangeProviders(e,t){var i,n;const o=e.foldingRangeProvider.ordered(t);return null!==(n=null===(i=O._foldingRangeSelector)||void 0===i?void 0:i.call(O,o,t))&&void 0!==n?n:o}constructor(e,t,i,n,o,s){super(),this.contextKeyService=t,this.languageConfigurationService=i,this.languageFeaturesService=s,this.localToDispose=this._register(new a.Cm),this.editor=e,this._foldingLimitReporter=new ee(e);const r=this.editor.getOptions();this._isEnabled=r.get(43),this._useFoldingProviders="indentation"!==r.get(44),this._unfoldOnClickAfterEndOfLine=r.get(48),this._restoringViewState=!1,this._currentModelHasFoldedImports=!1,this._foldingImportsByDefault=r.get(46),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 H.rv(e),this.foldingDecorationProvider.showFoldingControls=r.get(111),this.foldingDecorationProvider.showFoldingHighlights=r.get(45),this.foldingEnabled=X.bindTo(this.contextKeyService),this.foldingEnabled.set(this._isEnabled),this._register(this.editor.onDidChangeModel((()=>this.onModelChanged()))),this._register(this.editor.onDidChangeConfiguration((e=>{if(e.hasChanged(43)&&(this._isEnabled=this.editor.getOptions().get(43),this.foldingEnabled.set(this._isEnabled),this.onModelChanged()),e.hasChanged(47)&&this.onModelChanged(),e.hasChanged(111)||e.hasChanged(45)){const e=this.editor.getOptions();this.foldingDecorationProvider.showFoldingControls=e.get(111),this.foldingDecorationProvider.showFoldingHighlights=e.get(45),this.triggerFoldingModelChanged()}e.hasChanged(44)&&(this._useFoldingProviders="indentation"!==this.editor.getOptions().get(44),this.onFoldingStrategyChanged()),e.hasChanged(48)&&(this._unfoldOnClickAfterEndOfLine=this.editor.getOptions().get(48)),e.hasChanged(46)&&(this._foldingImportsByDefault=this.editor.getOptions().get(46))}))),this.onModelChanged()}saveViewState(){const e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){const t=this.foldingModel.getMemento(),i=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:t,lineCount:e.getLineCount(),provider:i,foldedImports:this._currentModelHasFoldedImports}}}restoreViewState(e){const t=this.editor.getModel();if(t&&this._isEnabled&&!t.isTooLargeForTokenization()&&this.hiddenRangeModel&&e&&(this._currentModelHasFoldedImports=!!e.foldedImports,e.collapsedRegions&&e.collapsedRegions.length>0&&this.foldingModel)){this._restoringViewState=!0;try{this.foldingModel.applyMemento(e.collapsedRegions)}finally{this._restoringViewState=!1}}}onModelChanged(){this.localToDispose.clear();const e=this.editor.getModel();this._isEnabled&&e&&!e.isTooLargeForTokenization()&&(this._currentModelHasFoldedImports=!1,this.foldingModel=new I.pN(e,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new R(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange((e=>this.onHiddenRangesChanges(e)))),this.updateScheduler=new n.ve(this.updateDebounceInfo.get(e)),this.cursorChangedScheduler=new n.uC((()=>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((e=>this.onDidChangeModelContent(e)))),this.localToDispose.add(this.editor.onDidChangeCursorPosition((()=>this.onCursorPositionChanged()))),this.localToDispose.add(this.editor.onMouseDown((e=>this.onEditorMouseDown(e)))),this.localToDispose.add(this.editor.onMouseUp((e=>this.onEditorMouseUp(e)))),this.localToDispose.add({dispose:()=>{var e,t;this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),null===(e=this.updateScheduler)||void 0===e||e.cancel(),this.updateScheduler=null,this.foldingModel=null,this.foldingModelPromise=null,this.hiddenRangeModel=null,this.cursorChangedScheduler=null,null===(t=this.rangeProvider)||void 0===t||t.dispose(),this.rangeProvider=null}}),this.triggerFoldingModelChanged())}onFoldingStrategyChanged(){var e;null===(e=this.rangeProvider)||void 0===e||e.dispose(),this.rangeProvider=null,this.triggerFoldingModelChanged()}getRangeProvider(e){if(this.rangeProvider)return this.rangeProvider;const t=new F.hW(e,this.languageConfigurationService,this._foldingLimitReporter);if(this.rangeProvider=t,this._useFoldingProviders&&this.foldingModel){const i=O.getFoldingRangeProviders(this.languageFeaturesService,e);i.length>0&&(this.rangeProvider=new z.M(e,i,(()=>this.triggerFoldingModelChanged()),this._foldingLimitReporter,t))}return this.rangeProvider}getFoldingModel(){return this.foldingModelPromise}onDidChangeModelContent(e){var t;null===(t=this.hiddenRangeModel)||void 0===t||t.notifyChangeModelContent(e),this.triggerFoldingModelChanged()}triggerFoldingModelChanged(){this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger((()=>{const e=this.foldingModel;if(!e)return null;const t=new $.W,i=this.getRangeProvider(e.textModel),o=this.foldingRegionPromise=(0,n.SS)((e=>i.compute(e)));return o.then((i=>{if(i&&o===this.foldingRegionPromise){let n;if(this._foldingImportsByDefault&&!this._currentModelHasFoldedImports){const e=i.setCollapsedAllOfType(D.lO.Imports.value,!0);e&&(n=S.D.capture(this.editor),this._currentModelHasFoldedImports=e)}const o=this.editor.getSelections(),s=o?o.map((e=>e.startLineNumber)):[];e.update(i,s),null==n||n.restore(this.editor);const r=this.updateDebounceInfo.update(e.textModel,t.elapsed());this.updateScheduler&&(this.updateScheduler.defaultDelay=r)}return e}))})).then(void 0,(e=>((0,s.dz)(e),null))))}onHiddenRangesChanges(e){if(this.hiddenRangeModel&&e.length&&!this._restoringViewState){const e=this.editor.getSelections();e&&this.hiddenRangeModel.adjustSelections(e)&&this.editor.setSelections(e)}this.editor.setHiddenAreas(e,this)}onCursorPositionChanged(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()}revealCursor(){const e=this.getFoldingModel();e&&e.then((e=>{if(e){const t=this.editor.getSelections();if(t&&t.length>0){const i=[];for(const n of t){const t=n.selectionStartLineNumber;this.hiddenRangeModel&&this.hiddenRangeModel.isHidden(t)&&i.push(...e.getAllRegionsAtLine(t,(e=>e.isCollapsed&&t>e.startLineNumber)))}i.length&&(e.toggleCollapseState(i),this.reveal(t[0].getPosition()))}}})).then(void 0,s.dz)}onEditorMouseDown(e){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!e.target||!e.target.range)return;if(!e.event.leftButton&&!e.event.middleButton)return;const t=e.target.range;let i=!1;switch(e.target.type){case 4:{const t=e.target.detail,n=e.target.element.offsetLeft;if(t.offsetX-n<4)return;i=!0;break}case 7:if(this._unfoldOnClickAfterEndOfLine&&this.hiddenRangeModel.hasRanges()&&!e.target.detail.isAfterLines)break;return;case 6:if(this.hiddenRangeModel.hasRanges()){const e=this.editor.getModel();if(e&&t.startColumn===e.getLineMaxColumn(t.startLineNumber))break}return;default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:i}}onEditorMouseUp(e){const t=this.foldingModel;if(!t||!this.mouseDownInfo||!e.target)return;const i=this.mouseDownInfo.lineNumber,n=this.mouseDownInfo.iconClicked,o=e.target.range;if(!o||o.startLineNumber!==i)return;if(n){if(4!==e.target.type)return}else{const e=this.editor.getModel();if(!e||o.startColumn!==e.getLineMaxColumn(i))return}const s=t.getRegionAtLine(i);if(s&&s.startLineNumber===i){const o=s.isCollapsed;if(n||o){let n=[];if(e.event.altKey){const e=e=>!e.containedBy(s)&&!s.containedBy(e),i=t.getRegionsInside(null,e);for(const e of i)e.isCollapsed&&n.push(e);0===n.length&&(n=i)}else{const i=e.event.middleButton||e.event.shiftKey;if(i)for(const e of t.getRegionsInside(s))e.isCollapsed===o&&n.push(e);!o&&i&&0!==n.length||n.push(s)}t.toggleCollapseState(n),this.reveal({lineNumber:i,column:1})}}}reveal(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)}};J.ID="editor.contrib.folding",J=O=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Y(1,W.fN),Y(2,E.JZ),Y(3,j.Ot),Y(4,U.U),Y(5,K.u)],J);class ee{constructor(e){this.editor=e,this._onDidChange=new M.vl,this._computed=0,this._limited=!1}get limit(){return this.editor.getOptions().get(47)}update(e,t){e===this._computed&&t===this._limited||(this._computed=e,this._limited=t,this._onDidChange.fire())}}class te extends x.ks{runEditorCommand(e,t,i){const n=e.get(E.JZ),o=J.get(t);if(!o)return;const s=o.getFoldingModel();return s?(this.reportTelemetry(e,t),s.then((e=>{if(e){this.invoke(o,e,t,i,n);const s=t.getSelection();s&&o.reveal(s.getStartPosition())}}))):void 0}getSelectedLines(e){const t=e.getSelections();return t?t.map((e=>e.startLineNumber)):[]}getLineNumbers(e,t){return e&&e.selectionLines?e.selectionLines.map((e=>e+1)):this.getSelectedLines(t)}run(e,t){}}function ie(e){if(!d.b0(e)){if(!d.Gv(e))return!1;const t=e;if(!d.b0(t.levels)&&!d.Et(t.levels))return!1;if(!d.b0(t.direction)&&!d.Kg(t.direction))return!1;if(!(d.b0(t.selectionLines)||Array.isArray(t.selectionLines)&&t.selectionLines.every(d.Et)))return!1}return!0}class ne extends te{getFoldingLevel(){return parseInt(this.id.substr(ne.ID_PREFIX.length))}invoke(e,t,i){(0,I.sO)(t,this.getFoldingLevel(),!0,this.getSelectedLines(i))}}ne.ID_PREFIX="editor.foldLevel",ne.ID=e=>ne.ID_PREFIX+e,(0,x.HW)(J.ID,J,0),(0,x.Fl)(class extends te{constructor(){super({id:"editor.unfold",label:B.k("unfoldAction.label","Unfold"),alias:"Unfold",precondition:X,kbOpts:{kbExpr:L.R.editorTextFocus,primary:3166,mac:{primary:2654},weight:100},metadata:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t* 'levels': Number of levels to unfold. If not set, defaults to 1.\n\t\t\t\t\t\t* 'direction': If 'up', unfold given number of levels up otherwise unfolds down.\n\t\t\t\t\t\t* '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.\n\t\t\t\t\t\t",constraint:ie,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,n){const o=n&&n.levels||1,s=this.getLineNumbers(n,i);n&&"up"===n.direction?(0,I.dN)(t,!1,o,s):(0,I.uV)(t,!1,o,s)}}),(0,x.Fl)(class extends te{constructor(){super({id:"editor.unfoldRecursively",label:B.k("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:X,kbOpts:{kbExpr:L.R.editorTextFocus,primary:(0,r.m5)(2089,2142),weight:100}})}invoke(e,t,i,n){(0,I.uV)(t,!1,Number.MAX_VALUE,this.getSelectedLines(i))}}),(0,x.Fl)(class extends te{constructor(){super({id:"editor.fold",label:B.k("foldAction.label","Fold"),alias:"Fold",precondition:X,kbOpts:{kbExpr:L.R.editorTextFocus,primary:3164,mac:{primary:2652},weight:100},metadata:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t\t* 'levels': Number of levels to fold.\n\t\t\t\t\t\t\t* 'direction': If 'up', folds given number of levels up otherwise folds down.\n\t\t\t\t\t\t\t* '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.\n\t\t\t\t\t\t\tIf no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead.\n\t\t\t\t\t\t",constraint:ie,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,i,n){const o=this.getLineNumbers(n,i),s=n&&n.levels,r=n&&n.direction;"number"!=typeof s&&"string"!=typeof r?(0,I.W8)(t,!0,o):"up"===r?(0,I.dN)(t,!0,s||1,o):(0,I.uV)(t,!0,s||1,o)}}),(0,x.Fl)(class extends te{constructor(){super({id:"editor.foldRecursively",label:B.k("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:X,kbOpts:{kbExpr:L.R.editorTextFocus,primary:(0,r.m5)(2089,2140),weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);(0,I.uV)(t,!0,Number.MAX_VALUE,n)}}),(0,x.Fl)(class extends te{constructor(){super({id:"editor.toggleFoldRecursively",label:B.k("toggleFoldRecursivelyAction.label","Toggle Fold Recursively"),alias:"Toggle Fold Recursively",precondition:X,kbOpts:{kbExpr:L.R.editorTextFocus,primary:(0,r.m5)(2089,3114),weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);(0,I.bC)(t,Number.MAX_VALUE,n)}}),(0,x.Fl)(class extends te{constructor(){super({id:"editor.foldAll",label:B.k("foldAllAction.label","Fold All"),alias:"Fold All",precondition:X,kbOpts:{kbExpr:L.R.editorTextFocus,primary:(0,r.m5)(2089,2069),weight:100}})}invoke(e,t,i){(0,I.uV)(t,!0)}}),(0,x.Fl)(class extends te{constructor(){super({id:"editor.unfoldAll",label:B.k("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:X,kbOpts:{kbExpr:L.R.editorTextFocus,primary:(0,r.m5)(2089,2088),weight:100}})}invoke(e,t,i){(0,I.uV)(t,!1)}}),(0,x.Fl)(class extends te{constructor(){super({id:"editor.foldAllBlockComments",label:B.k("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:X,kbOpts:{kbExpr:L.R.editorTextFocus,primary:(0,r.m5)(2089,2138),weight:100}})}invoke(e,t,i,n,o){if(t.regions.hasTypes())(0,I.cL)(t,D.lO.Comment.value,!0);else{const e=i.getModel();if(!e)return;const n=o.getLanguageConfiguration(e.getLanguageId()).comments;if(n&&n.blockCommentStartToken){const e=new RegExp("^\\s*"+(0,l.bm)(n.blockCommentStartToken));(0,I.AI)(t,e,!0)}}}}),(0,x.Fl)(class extends te{constructor(){super({id:"editor.foldAllMarkerRegions",label:B.k("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:X,kbOpts:{kbExpr:L.R.editorTextFocus,primary:(0,r.m5)(2089,2077),weight:100}})}invoke(e,t,i,n,o){if(t.regions.hasTypes())(0,I.cL)(t,D.lO.Region.value,!0);else{const e=i.getModel();if(!e)return;const n=o.getLanguageConfiguration(e.getLanguageId()).foldingRules;if(n&&n.markers&&n.markers.start){const e=new RegExp(n.markers.start);(0,I.AI)(t,e,!0)}}}}),(0,x.Fl)(class extends te{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:B.k("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:X,kbOpts:{kbExpr:L.R.editorTextFocus,primary:(0,r.m5)(2089,2078),weight:100}})}invoke(e,t,i,n,o){if(t.regions.hasTypes())(0,I.cL)(t,D.lO.Region.value,!1);else{const e=i.getModel();if(!e)return;const n=o.getLanguageConfiguration(e.getLanguageId()).foldingRules;if(n&&n.markers&&n.markers.start){const e=new RegExp(n.markers.start);(0,I.AI)(t,e,!1)}}}}),(0,x.Fl)(class extends te{constructor(){super({id:"editor.foldAllExcept",label:B.k("foldAllExcept.label","Fold All Except Selected"),alias:"Fold All Except Selected",precondition:X,kbOpts:{kbExpr:L.R.editorTextFocus,primary:(0,r.m5)(2089,2136),weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);(0,I.GR)(t,!0,n)}}),(0,x.Fl)(class extends te{constructor(){super({id:"editor.unfoldAllExcept",label:B.k("unfoldAllExcept.label","Unfold All Except Selected"),alias:"Unfold All Except Selected",precondition:X,kbOpts:{kbExpr:L.R.editorTextFocus,primary:(0,r.m5)(2089,2134),weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);(0,I.GR)(t,!1,n)}}),(0,x.Fl)(class extends te{constructor(){super({id:"editor.toggleFold",label:B.k("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:X,kbOpts:{kbExpr:L.R.editorTextFocus,primary:(0,r.m5)(2089,2090),weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);(0,I.bC)(t,1,n)}}),(0,x.Fl)(class extends te{constructor(){super({id:"editor.gotoParentFold",label:B.k("gotoParentFold.label","Go to Parent Fold"),alias:"Go to Parent Fold",precondition:X,kbOpts:{kbExpr:L.R.editorTextFocus,weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);if(n.length>0){const e=(0,I.kK)(n[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,x.Fl)(class extends te{constructor(){super({id:"editor.gotoPreviousFold",label:B.k("gotoPreviousFold.label","Go to Previous Folding Range"),alias:"Go to Previous Folding Range",precondition:X,kbOpts:{kbExpr:L.R.editorTextFocus,weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);if(n.length>0){const e=(0,I.JX)(n[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,x.Fl)(class extends te{constructor(){super({id:"editor.gotoNextFold",label:B.k("gotoNextFold.label","Go to Next Folding Range"),alias:"Go to Next Folding Range",precondition:X,kbOpts:{kbExpr:L.R.editorTextFocus,weight:100}})}invoke(e,t,i){const n=this.getSelectedLines(i);if(n.length>0){const e=(0,I.pr)(n[0],t);null!==e&&i.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}),(0,x.Fl)(class extends te{constructor(){super({id:"editor.createFoldingRangeFromSelection",label:B.k("createManualFoldRange.label","Create Folding Range from Selection"),alias:"Create Folding Range from Selection",precondition:X,kbOpts:{kbExpr:L.R.editorTextFocus,primary:(0,r.m5)(2089,2135),weight:100}})}invoke(e,t,i){var n;const o=[],s=i.getSelections();if(s){for(const e of s){let t=e.endLineNumber;1===e.endColumn&&--t,t>e.startLineNumber&&(o.push({startLineNumber:e.startLineNumber,endLineNumber:t,type:void 0,isCollapsed:!0,source:1}),i.setSelection({startLineNumber:e.startLineNumber,startColumn:1,endLineNumber:e.startLineNumber,endColumn:1}))}if(o.length>0){o.sort(((e,t)=>e.startLineNumber-t.startLineNumber));const e=V.tz.sanitizeAndMerge(t.regions,o,null===(n=i.getModel())||void 0===n?void 0:n.getLineCount());t.updatePost(V.tz.fromFoldRanges(e))}}}}),(0,x.Fl)(class extends te{constructor(){super({id:"editor.removeManualFoldingRanges",label:B.k("removeManualFoldingRanges.label","Remove Manual Folding Ranges"),alias:"Remove Manual Folding Ranges",precondition:X,kbOpts:{kbExpr:L.R.editorTextFocus,primary:(0,r.m5)(2089,2137),weight:100}})}invoke(e,t,i){const n=i.getSelections();if(n){const i=[];for(const e of n){const{startLineNumber:t,endLineNumber:n}=e;i.push(n>=t?{startLineNumber:t,endLineNumber:n}:{endLineNumber:n,startLineNumber:t})}t.removeManualRanges(i),e.triggerFoldingModelChanged()}}});for(let e=1;e<=7;e++)(0,x.xX)(new ne({id:ne.ID(e),label:B.k("foldLevelAction.label","Fold Level {0}",e),alias:`Fold Level ${e}`,precondition:X,kbOpts:{kbExpr:L.R.editorTextFocus,primary:(0,r.m5)(2089,2048|21+e),weight:100}}));q.w.registerCommand("_executeFoldingRangeProvider",(async function(e,...t){const[i]=t;if(!(i instanceof G.r))throw(0,s.Qg)();const n=e.get(K.u),r=e.get(Q.S).getModel(i);if(!r)throw(0,s.Qg)();const a=e.get(Z.pG);if(!a.getValue("editor.folding",{resource:i}))return[];const l=e.get(E.JZ),d=a.getValue("editor.foldingStrategy",{resource:i}),c={get limit(){return a.getValue("editor.foldingMaximumRegions",{resource:i})},update:(e,t)=>{}},h=new F.hW(r,l,c);let u=h;if("indentation"!==d){const e=J.getFoldingRangeProviders(n,r);e.length&&(u=new z.M(r,e,(()=>{}),c,h))}const g=await u.compute(o.XO.None),p=[];try{if(g)for(let e=0;e{"use strict";i.d(t,{E0:()=>h,k0:()=>u,rv:()=>_});var n=i(26048),o=i(74774),s=i(3765),r=i(70559),a=i(11210),l=i(89044),d=i(58881);const c=(0,r.x1A)("editor.foldBackground",{light:(0,r.JO0)(r.seu,.3),dark:(0,r.JO0)(r.seu,.3),hcDark:null,hcLight:null},(0,s.k)("foldBackgroundBackground","Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."),!0);(0,r.x1A)("editor.foldPlaceholderForeground",{light:"#808080",dark:"#808080",hcDark:null,hcLight:null},(0,s.k)("collapsedTextColor","Color of the collapsed text after the first line of a folded range.")),(0,r.x1A)("editorGutter.foldingControlForeground",r.t4B,(0,s.k)("editorGutter.foldingControlForeground","Color of the folding control in the editor gutter."));const h=(0,a.pU)("folding-expanded",n.W.chevronDown,(0,s.k)("foldingExpandedIcon","Icon for expanded ranges in the editor glyph margin.")),u=(0,a.pU)("folding-collapsed",n.W.chevronRight,(0,s.k)("foldingCollapsedIcon","Icon for collapsed ranges in the editor glyph margin.")),g=(0,a.pU)("folding-manual-collapsed",u,(0,s.k)("foldingManualCollapedIcon","Icon for manually collapsed ranges in the editor glyph margin.")),p=(0,a.pU)("folding-manual-expanded",h,(0,s.k)("foldingManualExpandedIcon","Icon for manually expanded ranges in the editor glyph margin.")),m={color:(0,l.Yf)(c),position:1},f=(0,s.k)("linesCollapsed","Click to expand the range."),v=(0,s.k)("linesExpanded","Click to collapse the range.");class _{constructor(e){this.editor=e,this.showFoldingControls="mouseover",this.showFoldingHighlights=!0}getDecorationOption(e,t,i){return t?_.HIDDEN_RANGE_DECORATION:"never"===this.showFoldingControls?e?this.showFoldingHighlights?_.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION:_.NO_CONTROLS_COLLAPSED_RANGE_DECORATION:_.NO_CONTROLS_EXPANDED_RANGE_DECORATION:e?i?this.showFoldingHighlights?_.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:_.MANUALLY_COLLAPSED_VISUAL_DECORATION:this.showFoldingHighlights?_.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:_.COLLAPSED_VISUAL_DECORATION:"mouseover"===this.showFoldingControls?i?_.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION:_.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:i?_.MANUALLY_EXPANDED_VISUAL_DECORATION:_.EXPANDED_VISUAL_DECORATION}changeDecorations(e){return this.editor.changeDecorations(e)}removeDecorations(e){this.editor.removeDecorations(e)}}_.COLLAPSED_VISUAL_DECORATION=o.kI.register({description:"folding-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:d.L.asClassName(u)}),_.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=o.kI.register({description:"folding-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:m,isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:d.L.asClassName(u)}),_.MANUALLY_COLLAPSED_VISUAL_DECORATION=o.kI.register({description:"folding-manually-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:d.L.asClassName(g)}),_.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=o.kI.register({description:"folding-manually-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:m,isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:d.L.asClassName(g)}),_.NO_CONTROLS_COLLAPSED_RANGE_DECORATION=o.kI.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f}),_.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION=o.kI.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:m,isWholeLine:!0,linesDecorationsTooltip:f}),_.EXPANDED_VISUAL_DECORATION=o.kI.register({description:"folding-expanded-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+d.L.asClassName(h),linesDecorationsTooltip:v}),_.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=o.kI.register({description:"folding-expanded-auto-hide-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:d.L.asClassName(h),linesDecorationsTooltip:v}),_.MANUALLY_EXPANDED_VISUAL_DECORATION=o.kI.register({description:"folding-manually-expanded-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+d.L.asClassName(p),linesDecorationsTooltip:v}),_.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION=o.kI.register({description:"folding-manually-expanded-auto-hide-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:d.L.asClassName(p),linesDecorationsTooltip:v}),_.NO_CONTROLS_EXPANDED_RANGE_DECORATION=o.kI.register({description:"folding-no-controls-range-decoration",stickiness:0,isWholeLine:!0}),_.HIDDEN_RANGE_DECORATION=o.kI.register({description:"folding-hidden-range-decoration",stickiness:1})},99039:(e,t,i)=>{"use strict";i.d(t,{AI:()=>g,GR:()=>u,JX:()=>f,W8:()=>c,bC:()=>a,cL:()=>p,dN:()=>d,kK:()=>m,pN:()=>r,pr:()=>v,sO:()=>h,uV:()=>l});var n=i(2106),o=i(18146),s=i(22344);class r{get regions(){return this._regions}get textModel(){return this._textModel}constructor(e,t){this._updateEventEmitter=new n.vl,this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new o.tz(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[]}toggleCollapseState(e){if(!e.length)return;e=e.sort(((e,t)=>e.regionIndex-t.regionIndex));const t={};this._decorationProvider.changeDecorations((i=>{let n=0,o=-1,s=-1;const r=e=>{for(;ns&&(s=e),n++}};for(const i of e){const e=i.regionIndex,n=this._editorDecorationIds[e];if(n&&!t[n]){t[n]=!0,r(e);const i=!this._regions.isCollapsed(e);this._regions.setCollapsed(e,i),o=Math.max(o,this._regions.getEndLineNumber(e))}}r(this._regions.length)})),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}removeManualRanges(e){const t=new Array,i=t=>{for(const i of e)if(!(i.startLineNumber>t.endLineNumber||t.startLineNumber>i.endLineNumber))return!0;return!1};for(let e=0;ei&&(i=s)}this._decorationProvider.changeDecorations((e=>this._editorDecorationIds=e.deltaDecorations(this._editorDecorationIds,t))),this._regions=e,this._updateEventEmitter.fire({model:this})}_currentFoldedOrManualRanges(e=[]){const t=(t,i)=>{for(const n of e)if(t=o.endLineNumber||o.startLineNumber<1||o.endLineNumber>i)continue;const s=this._getLinesChecksum(o.startLineNumber+1,o.endLineNumber);t.push({startLineNumber:o.startLineNumber,endLineNumber:o.endLineNumber,isCollapsed:o.isCollapsed,source:o.source,checksum:s})}return t.length>0?t:void 0}applyMemento(e){var t,i;if(!Array.isArray(e))return;const n=[],s=this._textModel.getLineCount();for(const o of e){if(o.startLineNumber>=o.endLineNumber||o.startLineNumber<1||o.endLineNumber>s)continue;const e=this._getLinesChecksum(o.startLineNumber+1,o.endLineNumber);o.checksum&&e!==o.checksum||n.push({startLineNumber:o.startLineNumber,endLineNumber:o.endLineNumber,type:void 0,isCollapsed:null===(t=o.isCollapsed)||void 0===t||t,source:null!==(i=o.source)&&void 0!==i?i:0})}const r=o.tz.sanitizeAndMerge(this._regions,n,s);this.updatePost(o.tz.fromFoldRanges(r))}_getLinesChecksum(e,t){return(0,s.tW)(this._textModel.getLineContent(e)+this._textModel.getLineContent(t))%1e6}dispose(){this._decorationProvider.removeDecorations(this._editorDecorationIds)}getAllRegionsAtLine(e,t){const i=[];if(this._regions){let n=this._regions.findRange(e),o=1;for(;n>=0;){const e=this._regions.toRegion(n);t&&!t(e,o)||i.push(e),o++,n=e.parentIndex}}return i}getRegionAtLine(e){if(this._regions){const t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null}getRegionsInside(e,t){const i=[],n=e?e.regionIndex+1:0,o=e?e.endLineNumber:Number.MAX_VALUE;if(t&&2===t.length){const e=[];for(let s=n,r=this._regions.length;s0&&!n.containedBy(e[e.length-1]);)e.pop();e.push(n),t(n,e.length)&&i.push(n)}}else for(let e=n,s=this._regions.length;e1){const s=e.getRegionsInside(i,((e,i)=>e.isCollapsed!==o&&i0)for(const s of n){const n=e.getRegionAtLine(s);if(n&&(n.isCollapsed!==t&&o.push(n),i>1)){const s=e.getRegionsInside(n,((e,n)=>e.isCollapsed!==t&&ne.isCollapsed!==t&&ne.isCollapsed!==t&&n<=i));o.push(...n)}e.toggleCollapseState(o)}function c(e,t,i){const n=[];for(const o of i){const i=e.getAllRegionsAtLine(o,(e=>e.isCollapsed!==t));i.length>0&&n.push(i[0])}e.toggleCollapseState(n)}function h(e,t,i,n){const o=e.getRegionsInside(null,((e,o)=>o===t&&e.isCollapsed!==i&&!n.some((t=>e.containsLine(t)))));e.toggleCollapseState(o)}function u(e,t,i){const n=[];for(const t of i){const i=e.getAllRegionsAtLine(t,void 0);i.length>0&&n.push(i[0])}const o=e.getRegionsInside(null,(e=>n.every((t=>!t.containedBy(e)&&!e.containedBy(t)))&&e.isCollapsed!==t));e.toggleCollapseState(o)}function g(e,t,i){const n=e.textModel,o=e.regions,s=[];for(let e=o.length-1;e>=0;e--)if(i!==o.isCollapsed(e)){const i=o.getStartLineNumber(e);t.test(n.getLineContent(i))&&s.push(o.toRegion(e))}e.toggleCollapseState(s)}function p(e,t,i){const n=e.regions,o=[];for(let e=n.length-1;e>=0;e--)i!==n.isCollapsed(e)&&t===n.getType(e)&&o.push(n.toRegion(e));e.toggleCollapseState(o)}function m(e,t){let i=null;const n=t.getRegionAtLine(e);if(null!==n&&(i=n.startLineNumber,e===i)){const e=n.parentIndex;i=-1!==e?t.regions.getStartLineNumber(e):null}return i}function f(e,t){let i=t.getRegionAtLine(e);if(null!==i&&i.startLineNumber===e){if(e!==i.startLineNumber)return i.startLineNumber;{const e=i.parentIndex;let n=0;for(-1!==e&&(n=t.regions.getStartLineNumber(i.parentIndex));null!==i;){if(!(i.regionIndex>0))return null;if(i=t.regions.toRegion(i.regionIndex-1),i.startLineNumber<=n)return null;if(i.parentIndex===e)return i.startLineNumber}}}else if(t.regions.length>0)for(i=t.regions.toRegion(t.regions.length-1);null!==i;){if(i.startLineNumber0?t.regions.toRegion(i.regionIndex-1):null}return null}function v(e,t){let i=t.getRegionAtLine(e);if(null!==i&&i.startLineNumber===e){const e=i.parentIndex;let n=0;if(-1!==e)n=t.regions.getEndLineNumber(i.parentIndex);else{if(0===t.regions.length)return null;n=t.regions.getEndLineNumber(t.regions.length-1)}for(;null!==i;){if(!(i.regionIndex=n)return null;if(i.parentIndex===e)return i.startLineNumber}}else if(t.regions.length>0)for(i=t.regions.toRegion(0);null!==i;){if(i.startLineNumber>e)return i.startLineNumber;i=i.regionIndex{"use strict";i.d(t,{tz:()=>a,yy:()=>o});const n={0:" ",1:"u",2:"r"},o=16777215,s=4278190080;class r{constructor(e){const t=Math.ceil(e/32);this._states=new Uint32Array(t)}get(e){const t=e/32|0,i=e%32;return!!(this._states[t]&1<65535)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=t,this._collapseStates=new r(e.length),this._userDefinedStates=new r(e.length),this._recoveredStates=new r(e.length),this._types=i,this._parentsComputed=!1}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;const e=[],t=(t,i)=>{const n=e[e.length-1];return this.getStartLineNumber(n)<=t&&this.getEndLineNumber(n)>=i};for(let i=0,n=this._startIndexes.length;io||s>o)throw new Error("startLineNumber or endLineNumber must not exceed "+o);for(;e.length>0&&!t(n,s);)e.pop();const r=e.length>0?e[e.length-1]:-1;e.push(i),this._startIndexes[i]=n+((255&r)<<24),this._endIndexes[i]=s+((65280&r)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(e){return this._startIndexes[e]&o}getEndLineNumber(e){return this._endIndexes[e]&o}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){1===t?(this.setUserDefined(e,!0),this.setRecovered(e,!1)):2===t?(this.setUserDefined(e,!1),this.setRecovered(e,!0)):(this.setUserDefined(e,!1),this.setRecovered(e,!1))}setCollapsedAllOfType(e,t){let i=!1;if(this._types)for(let n=0;n>>24)+((this._endIndexes[e]&s)>>>16);return 65535===t?-1:t}contains(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t}findIndex(e){let t=0,i=this._startIndexes.length;if(0===i)return-1;for(;t=0){if(this.getEndLineNumber(t)>=e)return t;for(t=this.getParentIndex(t);-1!==t;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1}toString(){const e=[];for(let t=0;tArray.isArray(e)?i=>ii=d.startLineNumber))l&&l.startLineNumber===d.startLineNumber?(1===d.source?e=d:(e=l,e.isCollapsed=d.isCollapsed&&l.endLineNumber===d.endLineNumber,e.source=0),l=o(++r)):(e=d,d.isCollapsed&&0===d.source&&(e.source=2)),d=s(++a);else{let t=a,i=d;for(;;){if(!i||i.startLineNumber>l.endLineNumber){e=l;break}if(1===i.source&&i.endLineNumber>l.endLineNumber)break;i=s(++t)}l=o(++r)}if(e){for(;h&&h.endLineNumbere.startLineNumber&&e.startLineNumber>u&&e.endLineNumber<=i&&(!h||h.endLineNumber>=e.endLineNumber)&&(g.push(e),u=e.startLineNumber,h&&c.push(h),h=e)}}return g}}class l{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}}},90695:(e,t,i)=>{"use strict";i.d(t,{hW:()=>s});var n=i(50969),o=i(18146);class s{constructor(e,t,i){this.editorModel=e,this.languageConfigurationService=t,this.foldingRangesLimit=i,this.id="indent"}dispose(){}compute(e){const t=this.languageConfigurationService.getLanguageConfiguration(this.editorModel.getLanguageId()).foldingRules,i=t&&!!t.offSide,o=t&&t.markers;return Promise.resolve(function(e,t,i,o=a){const s=e.getOptions().tabSize,l=new r(o);let d;i&&(d=new RegExp(`(${i.start.source})|(?:${i.end.source})`));const c=[],h=e.getLineCount()+1;c.push({indent:-1,endAbove:h,line:h});for(let i=e.getLineCount();i>0;i--){const o=e.getLineContent(i),r=(0,n.G)(o,s);let a,h=c[c.length-1];if(-1!==r){if(d&&(a=o.match(d))){if(!a[1]){c.push({indent:-2,endAbove:i,line:i});continue}{let e=c.length-1;for(;e>0&&-2!==c[e].indent;)e--;if(e>0){c.length=e+1,h=c[e],l.insertFirst(i,h.line,r),h.line=i,h.indent=r,h.endAbove=i;continue}}}if(h.indent>r){do{c.pop(),h=c[c.length-1]}while(h.indent>r);const e=h.endAbove-1;e-i>=1&&l.insertFirst(i,e,r)}h.indent===r?h.endAbove=i:c.push({indent:r,endAbove:i,line:i})}else t&&(h.endAbove=i)}return l.toIndentRanges(e)}(this.editorModel,i,o,this.foldingRangesLimit))}}class r{constructor(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}insertFirst(e,t,i){if(e>o.yy||t>o.yy)return;const n=this._length;this._startIndexes[n]=e,this._endIndexes[n]=t,this._length++,i<1e3&&(this._indentOccurrences[i]=(this._indentOccurrences[i]||0)+1)}toIndentRanges(e){const t=this._foldingRangesLimit.limit;if(this._length<=t){this._foldingRangesLimit.update(this._length,!1);const e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let i=this._length-1,n=0;i>=0;i--,n++)e[n]=this._startIndexes[i],t[n]=this._endIndexes[i];return new o.tz(e,t)}{this._foldingRangesLimit.update(this._length,t);let i=0,s=this._indentOccurrences.length;for(let e=0;et){s=e;break}i+=n}}const r=e.getOptions().tabSize,a=new Uint32Array(t),l=new Uint32Array(t);for(let o=this._length-1,d=0;o>=0;o--){const c=this._startIndexes[o],h=e.getLineContent(c),u=(0,n.G)(h,r);(u{}}},49440:(e,t,i)=>{"use strict";i.d(t,{M:()=>a});var n=i(94327),o=i(10998),s=i(18146);const r={};class a{constructor(e,t,i,n,s){this.editorModel=e,this.providers=t,this.handleFoldingRangesChange=i,this.foldingRangesLimit=n,this.fallbackRangeProvider=s,this.id="syntax",this.disposables=new o.Cm,s&&this.disposables.add(s);for(const e of t)"function"==typeof e.onDidChange&&this.disposables.add(e.onDidChange(i))}compute(e){return function(e,t,i){let o=null;const s=e.map(((e,s)=>Promise.resolve(e.provideFoldingRanges(t,r,i)).then((e=>{if(!i.isCancellationRequested&&Array.isArray(e)){Array.isArray(o)||(o=[]);const i=t.getLineCount();for(const t of e)t.start>0&&t.end>t.start&&t.end<=i&&o.push({start:t.start,end:t.end,rank:s,kind:t.kind})}}),n.M_)));return Promise.all(s).then((e=>o))}(this.providers,this.editorModel,e).then((t=>{var i,n;return t?function(e,t){const i=e.sort(((e,t)=>{let i=e.start-t.start;return 0===i&&(i=e.rank-t.rank),i})),n=new l(t);let o;const s=[];for(const e of i)if(o){if(e.start>o.start)if(e.end<=o.end)s.push(o),o=e,n.add(e.start,e.end,e.kind&&e.kind.value,s.length);else{if(e.start>o.end){do{o=s.pop()}while(o&&e.start>o.end);o&&s.push(o),o=e}n.add(e.start,e.end,e.kind&&e.kind.value,s.length)}}else o=e,n.add(e.start,e.end,e.kind&&e.kind.value,s.length);return n.toIndentRanges()}(t,this.foldingRangesLimit):null!==(n=null===(i=this.fallbackRangeProvider)||void 0===i?void 0:i.compute(e))&&void 0!==n?n:null}))}dispose(){this.disposables.dispose()}}class l{constructor(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}add(e,t,i,n){if(e>s.yy||t>s.yy)return;const o=this._length;this._startIndexes[o]=e,this._endIndexes[o]=t,this._nestingLevels[o]=n,this._types[o]=i,this._length++,n<30&&(this._nestingLevelCounts[n]=(this._nestingLevelCounts[n]||0)+1)}toIndentRanges(){const e=this._foldingRangesLimit.limit;if(this._length<=e){this._foldingRangesLimit.update(this._length,!1);const e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let i=0;ie){i=n;break}t+=o}}const n=new Uint32Array(e),o=new Uint32Array(e),r=[];for(let s=0,a=0;s{"use strict";i.r(t);var n=i(50946),o=i(84587),s=i(3765);class r extends n.ks{constructor(){super({id:"editor.action.fontZoomIn",label:s.k("EditorFontZoomIn.label","Increase Editor Font Size"),alias:"Increase Editor Font Size",precondition:void 0})}run(e,t){o.D.setZoomLevel(o.D.getZoomLevel()+1)}}class a extends n.ks{constructor(){super({id:"editor.action.fontZoomOut",label:s.k("EditorFontZoomOut.label","Decrease Editor Font Size"),alias:"Decrease Editor Font Size",precondition:void 0})}run(e,t){o.D.setZoomLevel(o.D.getZoomLevel()-1)}}class l extends n.ks{constructor(){super({id:"editor.action.fontZoomReset",label:s.k("EditorFontZoomReset.label","Reset Editor Font Size"),alias:"Reset Editor Font Size",precondition:void 0})}run(e,t){o.D.setZoomLevel(0)}}(0,n.Fl)(r),(0,n.Fl)(a),(0,n.Fl)(l)},38801:(e,t,i)=>{"use strict";i.d(t,{Pj:()=>L,jX:()=>D,vg:()=>I,_V:()=>M});var n=i(13338),o=i(78903),s=i(94327),r=i(17954),a=i(85525),l=i(79359),d=i(37264),c=i(62105),h=i(66638),u=i(15365),g=i(28061),p=i(93702),m=i(90304),f=i(37042),v=i(55406),_=i(59715);class b{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return"string"==typeof e?e.toLowerCase():e._lower}}class w{constructor(e){if(this._set=new Set,e)for(const t of e)this.add(t)}add(e){this._set.add(b.toKey(e))}has(e){return this._set.has(b.toKey(e))}}var y=i(82399),C=i(52230),k=i(46441),S=i(71285);function x(e,t,i){const n=[],o=new w,s=e.ordered(i);for(const e of s)n.push(e),e.extensionId&&o.add(e.extensionId);const r=t.ordered(i);for(const e of r){if(e.extensionId){if(o.has(e.extensionId))continue;o.add(e.extensionId)}n.push({displayName:e.displayName,extensionId:e.extensionId,provideDocumentFormattingEdits:(t,i,n)=>e.provideDocumentRangeFormattingEdits(t,t.getFullModelRange(),i,n)})}return n}class L{static setFormatterSelector(e){return{dispose:L._selectors.unshift(e)}}static async select(e,t,i,n){if(0===e.length)return;const o=r.f.first(L._selectors);return o?await o(e,t,i,n):void 0}}async function D(e,t,i,n,o,s,r){const a=e.get(y._Y),{documentRangeFormattingEditProvider:l}=e.get(C.u),d=(0,h.z9)(t)?t.getModel():t,c=l.ordered(d),u=await L.select(c,d,n,2);u&&(o.report(u),await a.invokeFunction(E,u,t,i,s,r))}async function E(e,t,i,o,s,r){var a,l;const d=e.get(m.w),u=e.get(k.rr),f=e.get(S.Nt);let _,b;(0,h.z9)(i)?(_=i.getModel(),b=new c.gI(i,5,void 0,s)):(_=i,b=new c.ER(i,s));const w=[];let y=0;for(const e of(0,n._j)(o).sort(g.Q.compareRangesUsingStarts))y>0&&g.Q.areIntersectingOrTouching(w[y-1],e)?w[y-1]=g.Q.fromPositions(w[y-1].getStartPosition(),e.getEndPosition()):y=w.push(e);const C=async e=>{var i,n;u.trace("[format][provideDocumentRangeFormattingEdits] (request)",null===(i=t.extensionId)||void 0===i?void 0:i.value,e);const o=await t.provideDocumentRangeFormattingEdits(_,e,_.getFormattingOptions(),b.token)||[];return u.trace("[format][provideDocumentRangeFormattingEdits] (response)",null===(n=t.extensionId)||void 0===n?void 0:n.value,o),o},x=(e,t)=>{if(!e.length||!t.length)return!1;const i=e.reduce(((e,t)=>g.Q.plusRange(e,t.range)),e[0].range);if(!t.some((e=>g.Q.intersectRanges(i,e.range))))return!1;for(const i of e)for(const e of t)if(g.Q.intersectRanges(i.range,e.range))return!0;return!1},L=[],D=[];try{if("function"==typeof t.provideDocumentRangesFormattingEdits){u.trace("[format][provideDocumentRangeFormattingEdits] (request)",null===(a=t.extensionId)||void 0===a?void 0:a.value,w);const e=await t.provideDocumentRangesFormattingEdits(_,w,_.getFormattingOptions(),b.token)||[];u.trace("[format][provideDocumentRangeFormattingEdits] (response)",null===(l=t.extensionId)||void 0===l?void 0:l.value,e),D.push(e)}else{for(const e of w){if(b.token.isCancellationRequested)return!0;D.push(await C(e))}for(let e=0;e({text:e.text,range:g.Q.lift(e.range),forceMoveMarkers:!0}))),(e=>{for(const{range:i}of e)if(g.Q.areIntersectingOrTouching(i,t))return[new p.L(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null}))}return f.playSignal(S.Rh.format,{userGesture:r}),!0}async function I(e,t,i,n,o,s){const r=e.get(y._Y),a=e.get(C.u),l=(0,h.z9)(t)?t.getModel():t,d=x(a.documentFormattingEditProvider,a.documentRangeFormattingEditProvider,l),c=await L.select(d,l,i,1);c&&(n.report(c),await r.invokeFunction(N,c,t,i,o,s))}async function N(e,t,i,n,o,s){const r=e.get(m.w),a=e.get(S.Nt);let l,d,u;(0,h.z9)(i)?(l=i.getModel(),d=new c.gI(i,5,void 0,o)):(l=i,d=new c.ER(i,o));try{const e=await t.provideDocumentFormattingEdits(l,l.getFormattingOptions(),d.token);if(u=await r.computeMoreMinimalEdits(l.uri,e),d.token.isCancellationRequested)return!0}finally{d.dispose()}if(!u||0===u.length)return!1;if((0,h.z9)(i))v.c.execute(i,u,2!==n),2!==n&&i.revealPositionInCenterIfOutsideViewport(i.getPosition(),1);else{const[{range:e}]=u,t=new p.L(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);l.pushEditOperations([t],u.map((e=>({text:e.text,range:g.Q.lift(e.range),forceMoveMarkers:!0}))),(e=>{for(const{range:i}of e)if(g.Q.areIntersectingOrTouching(i,t))return[new p.L(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn)];return null}))}return a.playSignal(S.Rh.format,{userGesture:s}),!0}function M(e,t,i,n,o,r,a){const l=t.onTypeFormattingEditProvider.ordered(i);return 0===l.length||l[0].autoFormatTriggerCharacters.indexOf(o)<0?Promise.resolve(void 0):Promise.resolve(l[0].provideOnTypeFormattingEdits(i,n,o,r,a)).catch(s.M_).then((t=>e.computeMoreMinimalEdits(i.uri,t)))}L._selectors=new a.w,_.w.registerCommand("_executeFormatRangeProvider",(async function(e,...t){const[i,r,a]=t;(0,l.j)(d.r.isUri(i)),(0,l.j)(g.Q.isIRange(r));const c=e.get(f.b),h=e.get(m.w),u=e.get(C.u),p=await c.createModelReference(i);try{return async function(e,t,i,o,r,a){const l=t.documentRangeFormattingEditProvider.ordered(i);for(const t of l){const l=await Promise.resolve(t.provideDocumentRangeFormattingEdits(i,o,r,a)).catch(s.M_);if((0,n.EI)(l))return await e.computeMoreMinimalEdits(i.uri,l)}}(h,u,p.object.textEditorModel,g.Q.lift(r),a,o.XO.None)}finally{p.dispose()}})),_.w.registerCommand("_executeFormatDocumentProvider",(async function(e,...t){const[i,r]=t;(0,l.j)(d.r.isUri(i));const a=e.get(f.b),c=e.get(m.w),h=e.get(C.u),u=await a.createModelReference(i);try{return async function(e,t,i,o,r){const a=x(t.documentFormattingEditProvider,t.documentRangeFormattingEditProvider,i);for(const t of a){const a=await Promise.resolve(t.provideDocumentFormattingEdits(i,o,r)).catch(s.M_);if((0,n.EI)(a))return await e.computeMoreMinimalEdits(i.uri,a)}}(c,h,u.object.textEditorModel,r,o.XO.None)}finally{u.dispose()}})),_.w.registerCommand("_executeFormatOnTypeProvider",(async function(e,...t){const[i,n,s,r]=t;(0,l.j)(d.r.isUri(i)),(0,l.j)(u.y.isIPosition(n)),(0,l.j)("string"==typeof s);const a=e.get(f.b),c=e.get(m.w),h=e.get(C.u),g=await a.createModelReference(i);try{return M(c,h,g.object.textEditorModel,u.y.lift(n),s,r,o.XO.None)}finally{g.dispose()}}))},36847:(e,t,i)=>{"use strict";i.r(t),i.d(t,{FormatOnType:()=>x});var n=i(13338),o=i(78903),s=i(94327),r=i(68387),a=i(10998),l=i(50946),d=i(87301),c=i(27454),h=i(28061),u=i(38122),g=i(90304),p=i(52230),m=i(38801),f=i(55406),v=i(3765),_=i(71285),b=i(59715),w=i(31540),y=i(82399),C=i(44023),k=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},S=function(e,t){return function(i,n){t(i,n,e)}};let x=class{constructor(e,t,i,n){this._editor=e,this._languageFeaturesService=t,this._workerService=i,this._accessibilitySignalService=n,this._disposables=new a.Cm,this._sessionDisposables=new a.Cm,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((e=>{e.hasChanged(56)&&this._update()}))),this._update()}dispose(){this._disposables.dispose(),this._sessionDisposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(56))return;if(!this._editor.hasModel())return;const e=this._editor.getModel(),[t]=this._languageFeaturesService.onTypeFormattingEditProvider.ordered(e);if(!t||!t.autoFormatTriggerCharacters)return;const i=new c.y;for(const e of t.autoFormatTriggerCharacters)i.add(e.charCodeAt(0));this._sessionDisposables.add(this._editor.onDidType((e=>{const t=e.charCodeAt(e.length-1);i.has(t)&&this._trigger(String.fromCharCode(t))})))}_trigger(e){if(!this._editor.hasModel())return;if(this._editor.getSelections().length>1||!this._editor.getSelection().isEmpty())return;const t=this._editor.getModel(),i=this._editor.getPosition(),s=new o.Qi,r=this._editor.onDidChangeModelContent((e=>{if(e.isFlush)return s.cancel(),void r.dispose();for(let t=0,n=e.changes.length;t{s.token.isCancellationRequested||(0,n.EI)(e)&&(this._accessibilitySignalService.playSignal(_.Rh.format,{userGesture:!1}),f.c.execute(this._editor,e,!0))})).finally((()=>{r.dispose()}))}};x.ID="editor.contrib.autoFormat",x=k([S(1,p.u),S(2,g.w),S(3,_.Nt)],x);let L=class{constructor(e,t,i){this.editor=e,this._languageFeaturesService=t,this._instantiationService=i,this._callOnDispose=new a.Cm,this._callOnModel=new a.Cm,this._callOnDispose.add(e.onDidChangeConfiguration((()=>this._update()))),this._callOnDispose.add(e.onDidChangeModel((()=>this._update()))),this._callOnDispose.add(e.onDidChangeModelLanguage((()=>this._update()))),this._callOnDispose.add(t.documentRangeFormattingEditProvider.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){this._callOnModel.clear(),this.editor.getOption(55)&&this.editor.hasModel()&&this._languageFeaturesService.documentRangeFormattingEditProvider.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste((({range:e})=>this._trigger(e))))}_trigger(e){this.editor.hasModel()&&(this.editor.getSelections().length>1||this._instantiationService.invokeFunction(m.jX,this.editor,e,2,C.ke.None,o.XO.None,!1).catch(s.dz))}};L.ID="editor.contrib.formatOnPaste",L=k([S(1,p.u),S(2,y._Y)],L);class D extends l.ks{constructor(){super({id:"editor.action.formatDocument",label:v.k("formatDocument.label","Format Document"),alias:"Format Document",precondition:w.M$.and(u.R.notInCompositeEditor,u.R.writable,u.R.hasDocumentFormattingProvider),kbOpts:{kbExpr:u.R.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}async run(e,t){if(t.hasModel()){const i=e.get(y._Y),n=e.get(C.N8);await n.showWhile(i.invokeFunction(m.vg,t,1,C.ke.None,o.XO.None,!0),250)}}}class E extends l.ks{constructor(){super({id:"editor.action.formatSelection",label:v.k("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:w.M$.and(u.R.writable,u.R.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:u.R.editorTextFocus,primary:(0,r.m5)(2089,2084),weight:100},contextMenuOpts:{when:u.R.hasNonEmptySelection,group:"1_modification",order:1.31}})}async run(e,t){if(!t.hasModel())return;const i=e.get(y._Y),n=t.getModel(),s=t.getSelections().map((e=>e.isEmpty()?new h.Q(e.startLineNumber,1,e.startLineNumber,n.getLineMaxColumn(e.startLineNumber)):e)),r=e.get(C.N8);await r.showWhile(i.invokeFunction(m.jX,t,s,1,C.ke.None,o.XO.None,!0),250)}}(0,l.HW)(x.ID,x,2),(0,l.HW)(L.ID,L,2),(0,l.Fl)(D),(0,l.Fl)(E),b.w.registerCommand("editor.action.format",(async e=>{const t=e.get(d.T).getFocusedCodeEditor();if(!t||!t.hasModel())return;const i=e.get(b.d);t.getSelection().isEmpty()?await i.executeCommand("editor.action.formatDocument"):await i.executeCommand("editor.action.formatSelection")}))},55406:(e,t,i)=>{"use strict";i.d(t,{c:()=>r});var n=i(23877),o=i(28061),s=i(80878);class r{static _handleEolEdits(e,t){let i;const n=[];for(const e of t)"number"==typeof e.eol&&(i=e.eol),e.range&&"string"==typeof e.text&&n.push(e);return"number"==typeof i&&e.hasModel()&&e.getModel().pushEOL(i),n}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const i=e.getModel(),n=i.validateRange(t.range);return i.getFullModelRange().equalsRange(n)}static execute(e,t,i){i&&e.pushUndoStop();const a=s.D.capture(e),l=r._handleEolEdits(e,t);1===l.length&&r._isFullModelReplaceEdit(e,l[0])?e.executeEdits("formatEditsCommand",l.map((e=>n.k.replace(o.Q.lift(e.range),e.text)))):e.executeEdits("formatEditsCommand",l.map((e=>n.k.replaceMove(o.Q.lift(e.range),e.text)))),i&&e.pushUndoStop(),a.restoreRelativeVerticalPositionOfCursor(e)}}},94269:(e,t,i)=>{"use strict";i.r(t),i.d(t,{MarkerController:()=>we,NextMarkerAction:()=>Ce});var n=i(26048),o=i(10998),s=i(50946),r=i(87301),a=i(15365),l=i(28061),d=i(38122),c=i(13338),h=i(2106),u=i(85525),g=i(16844),p=i(37264),m=i(66726),f=i(82399),v=i(27619),_=i(85753),b=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},w=function(e,t){return function(i,n){t(i,n,e)}};class y{constructor(e,t,i){this.marker=e,this.index=t,this.total=i}}let C=class{constructor(e,t,i){this._markerService=t,this._configService=i,this._onDidChange=new h.vl,this.onDidChange=this._onDidChange.event,this._dispoables=new o.Cm,this._markers=[],this._nextIdx=-1,p.r.isUri(e)?this._resourceFilter=t=>t.toString()===e.toString():e&&(this._resourceFilter=e);const n=this._configService.getValue("problems.sortOrder"),s=(e,t)=>{let i=(0,g.UD)(e.resource.toString(),t.resource.toString());return 0===i&&(i="position"===n?l.Q.compareRangesUsingStarts(e,t)||v.cj.compare(e.severity,t.severity):v.cj.compare(e.severity,t.severity)||l.Q.compareRangesUsingStarts(e,t)),i},r=()=>{this._markers=this._markerService.read({resource:p.r.isUri(e)?e:void 0,severities:v.cj.Error|v.cj.Warning|v.cj.Info}),"function"==typeof e&&(this._markers=this._markers.filter((e=>this._resourceFilter(e.resource)))),this._markers.sort(s)};r(),this._dispoables.add(t.onMarkerChanged((e=>{this._resourceFilter&&!e.some((e=>this._resourceFilter(e)))||(r(),this._nextIdx=-1,this._onDidChange.fire())})))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e||!(!this._resourceFilter||!e)&&this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new y(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,i){let n=!1,o=this._markers.findIndex((t=>t.resource.toString()===e.uri.toString()));o<0&&(o=(0,c.El)(this._markers,{resource:e.uri},((e,t)=>(0,g.UD)(e.resource.toString(),t.resource.toString()))),o<0&&(o=~o));for(let i=o;it.resource.toString()===e.toString()));if(!(i<0))for(;i{e.preventDefault();const t=this._relatedDiagnostics.get(e.target);t&&i(t)}))),this._scrollable=new N.Se(r,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll((e=>{r.style.left=`-${e.scrollLeft}px`,r.style.top=`-${e.scrollTop}px`}))),this._disposables.add(this._scrollable)}dispose(){(0,o.AS)(this._disposables)}update(e){const{source:t,message:i,relatedInformation:n,code:o}=e;let s=((null==t?void 0:t.length)||0)+2;o&&(s+="string"==typeof o?o.length:o.value.length);const r=(0,g.uz)(i);this._lines=r.length,this._longestLineLength=0;for(const e of r)this._longestLineLength=Math.max(e.length+s,this._longestLineLength);I.w_(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let a=this._messageBlock;for(const e of r)a=document.createElement("div"),a.innerText=e,""===e&&(a.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(a);if(t||o){const e=document.createElement("span");if(e.classList.add("details"),a.appendChild(e),t){const i=document.createElement("span");i.innerText=t,i.classList.add("source"),e.appendChild(i)}if(o)if("string"==typeof o){const t=document.createElement("span");t.innerText=`(${o})`,t.classList.add("code"),e.appendChild(t)}else this._codeLink=I.$("a.code-link"),this._codeLink.setAttribute("href",`${o.target.toString()}`),this._codeLink.onclick=e=>{this._openerService.open(o.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()},I.BC(this._codeLink,I.$("span")).innerText=o.value,e.appendChild(this._codeLink)}if(I.w_(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),(0,c.EI)(n)){const e=this._relatedBlock.appendChild(document.createElement("div"));e.style.paddingTop=`${Math.floor(.66*this._editor.getOption(67))}px`,this._lines+=1;for(const t of n){const i=document.createElement("div"),n=document.createElement("a");n.classList.add("filename"),n.innerText=`${this._labelService.getUriBasenameLabel(t.resource)}(${t.startLineNumber}, ${t.startColumn}): `,n.title=this._labelService.getUriLabel(t.resource),this._relatedDiagnostics.set(n,t);const o=document.createElement("span");o.innerText=t.message,i.appendChild(n),i.appendChild(o),this._lines+=1,e.appendChild(i)}}const l=this._editor.getOption(50),d=Math.ceil(l.typicalFullwidthCharacterWidth*this._longestLineLength*.75),h=l.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:d,scrollHeight:h})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case v.cj.Error:t=x.k("Error","Error");break;case v.cj.Warning:t=x.k("Warning","Warning");break;case v.cj.Info:t=x.k("Info","Info");break;case v.cj.Hint:t=x.k("Hint","Hint")}let i=x.k("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const n=this._editor.getModel();return n&&e.startLineNumber<=n.getLineCount()&&e.startLineNumber>=1&&(i=`${n.getLineContent(e.startLineNumber)}, ${i}`),i}}let ae=ie=class extends q.j6{constructor(e,t,i,n,s,r,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},s),this._themeService=t,this._openerService=i,this._menuService=n,this._contextKeyService=r,this._labelService=a,this._callOnDispose=new o.Cm,this._onDidSelectRelatedInformation=new h.vl,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=v.cj.Warning,this._backgroundColor=M.Q1.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(ve);let t=he,i=ue;this._severity===v.cj.Warning?(t=ge,i=pe):this._severity===v.cj.Info&&(t=me,i=fe);const n=e.getColor(t),o=e.getColor(i);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:o,primaryHeadingColor:e.getColor(q._X),secondaryHeadingColor:e.getColor(q.e3)})}_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((e=>this.editor.focus())));const t=[],i=this._menuService.createMenu(ie.TitleMenu,this._contextKeyService);(0,G.Ot)(i,void 0,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0}),i.dispose()}_fillTitleIcon(e){this._icon=I.BC(e,I.$(""))}_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 re(this._container,this.editor,(e=>this._onDidSelectRelatedInformation.fire(e)),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,i){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());const n=l.Q.lift(e),o=this.editor.getPosition(),s=o&&n.containsPosition(o)?o:n.getStartPosition();super.show(s,this.computeRequiredHeight());const r=this.editor.getModel();if(r){const e=i>1?x.k("problems","{0} of {1} problems",t,i):x.k("change","{0} of {1} problem",t,i);this.setTitle((0,A.P8)(r.uri),e)}this._icon.className=`codicon ${J.className(v.cj.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()}};ae.TitleMenu=new L.D8("gotoErrorTitleMenu"),ae=ie=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([se(1,oe.Gy),se(2,Z.C),se(3,L.ez),se(4,f._Y),se(5,D.fN),se(6,Q.L)],ae);const le=(0,ne.yLr)(ne.Rbi,ne.AN$),de=(0,ne.yLr)(ne.Hng,ne.Stt),ce=(0,ne.yLr)(ne.pOz,ne.IIb),he=(0,ne.x1A)("editorMarkerNavigationError.background",{dark:le,light:le,hcDark:ne.b1q,hcLight:ne.b1q},x.k("editorMarkerNavigationError","Editor marker navigation widget error color.")),ue=(0,ne.x1A)("editorMarkerNavigationError.headerBackground",{dark:(0,ne.JO0)(he,.1),light:(0,ne.JO0)(he,.1),hcDark:null,hcLight:null},x.k("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),ge=(0,ne.x1A)("editorMarkerNavigationWarning.background",{dark:de,light:de,hcDark:ne.b1q,hcLight:ne.b1q},x.k("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),pe=(0,ne.x1A)("editorMarkerNavigationWarning.headerBackground",{dark:(0,ne.JO0)(ge,.1),light:(0,ne.JO0)(ge,.1),hcDark:"#0C141F",hcLight:(0,ne.JO0)(ge,.2)},x.k("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),me=(0,ne.x1A)("editorMarkerNavigationInfo.background",{dark:ce,light:ce,hcDark:ne.b1q,hcLight:ne.b1q},x.k("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),fe=(0,ne.x1A)("editorMarkerNavigationInfo.headerBackground",{dark:(0,ne.JO0)(me,.1),light:(0,ne.JO0)(me,.1),hcDark:null,hcLight:null},x.k("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),ve=(0,ne.x1A)("editorMarkerNavigation.background",ne.YtV,x.k("editorMarkerNavigationBackground","Editor marker navigation widget background."));var _e,be=function(e,t){return function(i,n){t(i,n,e)}};let we=_e=class{static get(e){return e.getContribution(_e.ID)}constructor(e,t,i,n,s){this._markerNavigationService=t,this._contextKeyService=i,this._editorService=n,this._instantiationService=s,this._sessionDispoables=new o.Cm,this._editor=e,this._widgetVisible=Se.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(ae,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((e=>{var t,i,n;(null===(t=this._model)||void 0===t?void 0:t.selected)&&l.Q.containsPosition(null===(i=this._model)||void 0===i?void 0:i.selected.marker,e.position)||null===(n=this._model)||void 0===n||n.resetIndex()}))),this._sessionDispoables.add(this._model.onDidChange((()=>{if(!this._widget||!this._widget.position||!this._model)return;const e=this._model.find(this._editor.getModel().uri,this._widget.position);e?this._widget.updateMarker(e.marker):this._widget.showStale()}))),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation((e=>{this._editorService.openCodeEditor({resource:e.resource,options:{pinned:!0,revealIfOpened:!0,selection:l.Q.lift(e).collapseToStart()}},this._editor),this.close(!1)}))),this._sessionDispoables.add(this._editor.onDidChangeModel((()=>this._cleanUp()))),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new a.y(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}async nagivate(e,t){var i,n;if(this._editor.hasModel()){const 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();const s=await this._editorService.openCodeEditor({resource:o.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:o.selected.marker}},this._editor);s&&(null===(i=_e.get(s))||void 0===i||i.close(),null===(n=_e.get(s))||void 0===n||n.nagivate(e,t))}else this._widget.showAtMarker(o.selected.marker,o.selected.index,o.selected.total)}}};we.ID="editor.contrib.markerController",we=_e=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([be(1,k),be(2,D.fN),be(3,r.T),be(4,f._Y)],we);class ye extends s.ks{constructor(e,t,i){super(i),this._next=e,this._multiFile=t}async run(e,t){var i;t.hasModel()&&(null===(i=we.get(t))||void 0===i||i.nagivate(this._next,this._multiFile))}}class Ce extends ye{constructor(){super(!0,!1,{id:Ce.ID,label:Ce.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:d.R.focus,primary:578,weight:100},menuOpts:{menuId:ae.TitleMenu,title:Ce.LABEL,icon:(0,E.pU)("marker-navigation-next",n.W.arrowDown,x.k("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}Ce.ID="editor.action.marker.next",Ce.LABEL=x.k("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class ke extends ye{constructor(){super(!1,!1,{id:ke.ID,label:ke.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:d.R.focus,primary:1602,weight:100},menuOpts:{menuId:ae.TitleMenu,title:ke.LABEL,icon:(0,E.pU)("marker-navigation-previous",n.W.arrowUp,x.k("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}ke.ID="editor.action.marker.prev",ke.LABEL=x.k("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)"),(0,s.HW)(we.ID,we,4),(0,s.Fl)(Ce),(0,s.Fl)(ke),(0,s.Fl)(class extends ye{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:x.k("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:d.R.focus,primary:66,weight:100},menuOpts:{menuId:L.D8.MenubarGoMenu,title:x.k({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}),(0,s.Fl)(class extends ye{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:x.k("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:d.R.focus,primary:1090,weight:100},menuOpts:{menuId:L.D8.MenubarGoMenu,title:x.k({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}});const Se=new D.N1("markersNavigationVisible",!1),xe=s.DX.bindToContribution(we.get);(0,s.E_)(new xe({id:"closeMarkersNavigation",precondition:Se,handler:e=>e.close(),kbOpts:{weight:150,kbExpr:d.R.focus,primary:9,secondary:[1033]}}))},95976:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DefinitionAction:()=>ee,SymbolNavigationAction:()=>J,SymbolNavigationAnchor:()=>X});var n=i(9009),o=i(65958),s=i(68387),r=i(79359),a=i(37264),l=i(62105),d=i(66638),c=i(50946),h=i(87301),u=i(24665),g=i(15365),p=i(28061),m=i(38122),f=i(47317),v=i(45280),_=i(49990),b=i(2106),w=i(10998),y=i(22467),C=i(3765),k=i(31540),S=i(66726),x=i(82399),L=i(56071),D=i(48421),E=i(29879),I=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},N=function(e,t){return function(i,n){t(i,n,e)}};const M=new k.N1("hasSymbols",!1,(0,C.k)("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),A=(0,x.u1)("ISymbolNavigationService");let T=class{constructor(e,t,i,n){this._editorService=t,this._notificationService=i,this._keybindingService=n,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=M.bindTo(e)}reset(){var e,t;this._ctxHasSymbols.reset(),null===(e=this._currentState)||void 0===e||e.dispose(),null===(t=this._currentMessage)||void 0===t||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1)return void this.reset();this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const i=new R(this._editorService),n=i.onDidChange((e=>{if(this._ignoreEditorChange)return;const i=this._editorService.getActiveCodeEditor();if(!i)return;const n=i.getModel(),o=i.getPosition();if(!n||!o)return;let s=!1,r=!1;for(const e of t.references)if((0,y.n4)(e.uri,n.uri))s=!0,r=r||p.Q.containsPosition(e.range,o);else if(s)break;s&&r||this.reset()}));this._currentState=(0,w.qE)(i,n)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:p.Q.collapseToStart(t.range),selectionRevealType:3}},e).finally((()=>{this._ignoreEditorChange=!1}))}_showMessage(){var e;null===(e=this._currentMessage)||void 0===e||e.dispose();const t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),i=t?(0,C.k)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):(0,C.k)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(i)}};T=I([N(0,k.fN),N(1,h.T),N(2,E.Ot),N(3,L.b)],T),(0,S.v)(A,T,1),(0,c.E_)(new class extends c.DX{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:M,kbOpts:{weight:100,primary:70}})}runEditorCommand(e,t){return e.get(A).revealNext(t)}}),D.f.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:M,primary:9,handler(e){e.get(A).reset()}});let R=class{constructor(e){this._listener=new Map,this._disposables=new w.Cm,this._onDidChange=new b.vl,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(),(0,w.AS)(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,(0,w.qE)(e.onDidChangeCursorPosition((t=>this._onDidChange.fire({editor:e}))),e.onDidChangeModelContent((t=>this._onDidChange.fire({editor:e})))))}_onDidRemoveEditor(e){var t;null===(t=this._listener.get(e))||void 0===t||t.dispose(),this._listener.delete(e)}};R=I([N(0,h.T)],R);var P,O,F,B,W,H,V,z,j=i(81673),U=i(45281),$=i(58067),K=i(59715),q=i(44023),G=i(914),Q=i(52230),Z=i(17954),Y=i(13034);$.ZG.appendMenuItem($.D8.EditorContext,{submenu:$.D8.EditorContextPeek,title:C.k("peek.submenu","Peek"),group:"navigation",order:100});class X{static is(e){return!(!e||"object"!=typeof e)&&(e instanceof X||!(!g.y.isIPosition(e.position)||!e.model))}constructor(e,t){this.model=e,this.position=t}}class J extends c.qO{static all(){return J._allSymbolNavigationCommands.values()}static _patchConfig(e){const t={...e,f1:!0};if(t.menu)for(const i of Z.f.wrap(t.menu))i.id!==$.D8.EditorContext&&i.id!==$.D8.EditorContextPeek||(i.when=k.M$.and(e.precondition,i.when));return t}constructor(e,t){super(J._patchConfig(t)),this.configuration=e,J._allSymbolNavigationCommands.set(t.id,this)}runEditorCommand(e,t,i,s){if(!t.hasModel())return Promise.resolve(void 0);const r=e.get(E.Ot),a=e.get(h.T),d=e.get(q.N8),c=e.get(A),u=e.get(Q.u),g=e.get(x._Y),p=t.getModel(),m=t.getPosition(),f=X.is(i)?i:new X(p,m),v=new l.gI(t,5),_=(0,o.PK)(this._getLocationModel(u,f.model,f.position,v.token),v.token).then((async e=>{var o;if(!e||v.token.isCancellationRequested)return;let r;if((0,n.xE)(e.ariaMessage),e.referenceAt(p.uri,m)){const e=this._getAlternativeCommand(t);!J._activeAlternativeCommands.has(e)&&J._allSymbolNavigationCommands.has(e)&&(r=J._allSymbolNavigationCommands.get(e))}const l=e.references.length;if(0===l){if(!this.configuration.muteMessage){const e=p.getWordAtPosition(m);null===(o=j.k.get(t))||void 0===o||o.showMessage(this._getNoResultFoundMessage(e),m)}}else{if(1!==l||!r)return this._onResult(a,c,t,e,s);J._activeAlternativeCommands.add(this.desc.id),g.invokeFunction((e=>r.runEditorCommand(e,t,i,s).finally((()=>{J._activeAlternativeCommands.delete(this.desc.id)}))))}}),(e=>{r.error(e)})).finally((()=>{v.dispose()}));return d.showWhile(_,250),_}async _onResult(e,t,i,n,o){const s=this._getGoToPreference(i);if(i instanceof u.t||!(this.configuration.openInPeek||"peek"===s&&n.references.length>1)){const r=n.firstReference(),a=n.references.length>1&&"gotoAndPeek"===s,l=await this._openReference(i,e,r,this.configuration.openToSide,!a);a&&l?this._openInPeek(l,n,o):n.dispose(),"goto"===s&&t.put(r)}else this._openInPeek(i,n,o)}async _openReference(e,t,i,n,o){let s;if((0,f.Iu)(i)&&(s=i.targetSelectionRange),s||(s=i.range),!s)return;const r=await t.openCodeEditor({resource:i.uri,options:{selection:p.Q.collapseToStart(s),selectionRevealType:3,selectionSource:"code.jump"}},e,n);if(r){if(o){const e=r.getModel(),t=r.createDecorationsCollection([{range:s,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout((()=>{r.getModel()===e&&t.clear()}),350)}return r}}_openInPeek(e,t,i){const n=v.X.get(e);n&&e.hasModel()?n.toggleWidget(null!=i?i:e.getSelection(),(0,o.SS)((e=>Promise.resolve(t))),this.configuration.openInPeek):t.dispose()}}J._allSymbolNavigationCommands=new Map,J._activeAlternativeCommands=new Set;class ee extends J{async _getLocationModel(e,t,i,n){return new _.y4(await(0,G.hE)(e.definitionProvider,t,i,n),C.k("def.title","Definitions"))}_getNoResultFoundMessage(e){return e&&e.word?C.k("noResultWord","No definition found for '{0}'",e.word):C.k("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(58).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(58).multipleDefinitions}}(0,$.ug)(((P=class extends ee{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:P.id,title:{...C.a("actions.goToDecl.label","Go to Definition"),mnemonicTitle:C.k({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:m.R.hasDefinitionProvider,keybinding:[{when:m.R.editorTextFocus,primary:70,weight:100},{when:k.M$.and(m.R.editorTextFocus,Y.W0),primary:2118,weight:100}],menu:[{id:$.D8.EditorContext,group:"navigation",order:1.1},{id:$.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),K.w.registerCommandAlias("editor.action.goToDeclaration",P.id)}}).id="editor.action.revealDefinition",P)),(0,$.ug)(((O=class extends ee{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:O.id,title:C.a("actions.goToDeclToSide.label","Open Definition to the Side"),precondition:k.M$.and(m.R.hasDefinitionProvider,m.R.isInEmbeddedEditor.toNegated()),keybinding:[{when:m.R.editorTextFocus,primary:(0,s.m5)(2089,70),weight:100},{when:k.M$.and(m.R.editorTextFocus,Y.W0),primary:(0,s.m5)(2089,2118),weight:100}]}),K.w.registerCommandAlias("editor.action.openDeclarationToTheSide",O.id)}}).id="editor.action.revealDefinitionAside",O)),(0,$.ug)(((F=class extends ee{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:F.id,title:C.a("actions.previewDecl.label","Peek Definition"),precondition:k.M$.and(m.R.hasDefinitionProvider,U.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),keybinding:{when:m.R.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:$.D8.EditorContextPeek,group:"peek",order:2}}),K.w.registerCommandAlias("editor.action.previewDeclaration",F.id)}}).id="editor.action.peekDefinition",F));class te extends J{async _getLocationModel(e,t,i,n){return new _.y4(await(0,G.sv)(e.declarationProvider,t,i,n),C.k("decl.title","Declarations"))}_getNoResultFoundMessage(e){return e&&e.word?C.k("decl.noResultWord","No declaration found for '{0}'",e.word):C.k("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(58).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(58).multipleDeclarations}}(0,$.ug)(((B=class extends te{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:B.id,title:{...C.a("actions.goToDeclaration.label","Go to Declaration"),mnemonicTitle:C.k({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:k.M$.and(m.R.hasDeclarationProvider,m.R.isInEmbeddedEditor.toNegated()),menu:[{id:$.D8.EditorContext,group:"navigation",order:1.3},{id:$.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?C.k("decl.noResultWord","No declaration found for '{0}'",e.word):C.k("decl.generic.noResults","No declaration found")}}).id="editor.action.revealDeclaration",B)),(0,$.ug)(class extends te{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:C.a("actions.peekDecl.label","Peek Declaration"),precondition:k.M$.and(m.R.hasDeclarationProvider,U.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),menu:{id:$.D8.EditorContextPeek,group:"peek",order:3}})}});class ie extends J{async _getLocationModel(e,t,i,n){return new _.y4(await(0,G.f9)(e.typeDefinitionProvider,t,i,n),C.k("typedef.title","Type Definitions"))}_getNoResultFoundMessage(e){return e&&e.word?C.k("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):C.k("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(58).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(58).multipleTypeDefinitions}}(0,$.ug)(((W=class extends ie{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:W.ID,title:{...C.a("actions.goToTypeDefinition.label","Go to Type Definition"),mnemonicTitle:C.k({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:m.R.hasTypeDefinitionProvider,keybinding:{when:m.R.editorTextFocus,primary:0,weight:100},menu:[{id:$.D8.EditorContext,group:"navigation",order:1.4},{id:$.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}}).ID="editor.action.goToTypeDefinition",W)),(0,$.ug)(((H=class extends ie{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:H.ID,title:C.a("actions.peekTypeDefinition.label","Peek Type Definition"),precondition:k.M$.and(m.R.hasTypeDefinitionProvider,U.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),menu:{id:$.D8.EditorContextPeek,group:"peek",order:4}})}}).ID="editor.action.peekTypeDefinition",H));class ne extends J{async _getLocationModel(e,t,i,n){return new _.y4(await(0,G.eS)(e.implementationProvider,t,i,n),C.k("impl.title","Implementations"))}_getNoResultFoundMessage(e){return e&&e.word?C.k("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):C.k("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(58).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(58).multipleImplementations}}(0,$.ug)(((V=class extends ne{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:V.ID,title:{...C.a("actions.goToImplementation.label","Go to Implementations"),mnemonicTitle:C.k({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:m.R.hasImplementationProvider,keybinding:{when:m.R.editorTextFocus,primary:2118,weight:100},menu:[{id:$.D8.EditorContext,group:"navigation",order:1.45},{id:$.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}}).ID="editor.action.goToImplementation",V)),(0,$.ug)(((z=class extends ne{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:z.ID,title:C.a("actions.peekImplementation.label","Peek Implementations"),precondition:k.M$.and(m.R.hasImplementationProvider,U.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),keybinding:{when:m.R.editorTextFocus,primary:3142,weight:100},menu:{id:$.D8.EditorContextPeek,group:"peek",order:5}})}}).ID="editor.action.peekImplementation",z));class oe extends J{_getNoResultFoundMessage(e){return e?C.k("references.no","No references found for '{0}'",e.word):C.k("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(58).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(58).multipleReferences}}(0,$.ug)(class extends oe{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{...C.a("goToReferences.label","Go to References"),mnemonicTitle:C.k({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:k.M$.and(m.R.hasReferenceProvider,U.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),keybinding:{when:m.R.editorTextFocus,primary:1094,weight:100},menu:[{id:$.D8.EditorContext,group:"navigation",order:1.45},{id:$.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}async _getLocationModel(e,t,i,n){return new _.y4(await(0,G.NN)(e.referenceProvider,t,i,!0,n),C.k("ref.title","References"))}}),(0,$.ug)(class extends oe{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:C.a("references.action.label","Peek References"),precondition:k.M$.and(m.R.hasReferenceProvider,U.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated()),menu:{id:$.D8.EditorContextPeek,group:"peek",order:6}})}async _getLocationModel(e,t,i,n){return new _.y4(await(0,G.NN)(e.referenceProvider,t,i,!1,n),C.k("ref.title","References"))}});class se extends J{constructor(e,t,i){super(e,{id:"editor.action.goToLocation",title:C.a("label.generic","Go to Any Symbol"),precondition:k.M$.and(U.x2.notInPeekEditor,m.R.isInEmbeddedEditor.toNegated())}),this._references=t,this._gotoMultipleBehaviour=i}async _getLocationModel(e,t,i,n){return new _.y4(this._references,C.k("generic.title","Locations"))}_getNoResultFoundMessage(e){return e&&C.k("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return null!==(t=this._gotoMultipleBehaviour)&&void 0!==t?t:e.getOption(58).multipleReferences}_getAlternativeCommand(){return""}}K.w.registerCommand({id:"editor.action.goToLocations",metadata:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:a.r},{name:"position",description:"The position at which to start",constraint:g.y.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:async(e,t,i,n,o,s,l)=>{(0,r.j)(a.r.isUri(t)),(0,r.j)(g.y.isIPosition(i)),(0,r.j)(Array.isArray(n)),(0,r.j)(void 0===o||"string"==typeof o),(0,r.j)(void 0===l||"boolean"==typeof l);const c=e.get(h.T),u=await c.openCodeEditor({resource:t},c.getFocusedCodeEditor());if((0,d.z9)(u))return u.setPosition(i),u.revealPositionInCenterIfOutsideViewport(i,0),u.invokeWithinContext((e=>{const t=new class extends se{_getNoResultFoundMessage(e){return s||super._getNoResultFoundMessage(e)}}({muteMessage:!Boolean(s),openInPeek:Boolean(l),openToSide:!1},n,o);e.get(x._Y).invokeFunction(t.run.bind(t),u)}))}}),K.w.registerCommand({id:"editor.action.peekLocations",metadata:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:a.r},{name:"position",description:"The position at which to start",constraint:g.y.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto`"}]},handler:async(e,t,i,n,o)=>{e.get(K.d).executeCommand("editor.action.goToLocations",t,i,n,o,void 0,!0)}}),K.w.registerCommand({id:"editor.action.findReferences",handler:(e,t,i)=>{(0,r.j)(a.r.isUri(t)),(0,r.j)(g.y.isIPosition(i));const n=e.get(Q.u),s=e.get(h.T);return s.openCodeEditor({resource:t},s.getFocusedCodeEditor()).then((e=>{if(!(0,d.z9)(e)||!e.hasModel())return;const t=v.X.get(e);if(!t)return;const s=(0,o.SS)((t=>(0,G.NN)(n.referenceProvider,e.getModel(),g.y.lift(i),!1,t).then((e=>new _.y4(e,C.k("ref.title","References")))))),r=new p.Q(i.lineNumber,i.column,i.lineNumber,i.column);return Promise.resolve(t.toggleWidget(r,s,!1))}))}}),K.w.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")},914:(e,t,i)=>{"use strict";i.d(t,{NN:()=>f,eS:()=>p,f9:()=>m,hE:()=>u,sv:()=>g});var n=i(13338),o=i(78903),s=i(94327),r=i(13072),a=i(50946),l=i(52230),d=i(49990);function c(e,t){return t.uri.scheme===e.uri.scheme||!(0,r.fV)(t.uri,r.ny.walkThroughSnippet,r.ny.vscodeChatCodeBlock,r.ny.vscodeChatCodeCompareBlock,r.ny.vscodeCopilotBackingChatCodeBlock)}async function h(e,t,i,o){const r=i.ordered(e).map((i=>Promise.resolve(o(i,e,t)).then(void 0,(e=>{(0,s.M_)(e)})))),a=await Promise.all(r);return(0,n.Yc)(a.flat()).filter((t=>c(e,t)))}function u(e,t,i,n){return h(t,i,e,((e,t,i)=>e.provideDefinition(t,i,n)))}function g(e,t,i,n){return h(t,i,e,((e,t,i)=>e.provideDeclaration(t,i,n)))}function p(e,t,i,n){return h(t,i,e,((e,t,i)=>e.provideImplementation(t,i,n)))}function m(e,t,i,n){return h(t,i,e,((e,t,i)=>e.provideTypeDefinition(t,i,n)))}function f(e,t,i,n,o){return h(t,i,e,(async(e,t,i)=>{var s,r;const a=null===(s=await e.provideReferences(t,i,{includeDeclaration:!0},o))||void 0===s?void 0:s.filter((e=>c(t,e)));if(!n||!a||2!==a.length)return a;const l=null===(r=await e.provideReferences(t,i,{includeDeclaration:!1},o))||void 0===r?void 0:r.filter((e=>c(t,e)));return l&&1===l.length?l:a}))}async function v(e){const t=await e(),i=new d.y4(t,""),n=i.references.map((e=>e.link));return i.dispose(),n}(0,a.ke)("_executeDefinitionProvider",((e,t,i)=>{const n=u(e.get(l.u).definitionProvider,t,i,o.XO.None);return v((()=>n))})),(0,a.ke)("_executeTypeDefinitionProvider",((e,t,i)=>{const n=m(e.get(l.u).typeDefinitionProvider,t,i,o.XO.None);return v((()=>n))})),(0,a.ke)("_executeDeclarationProvider",((e,t,i)=>{const n=g(e.get(l.u).declarationProvider,t,i,o.XO.None);return v((()=>n))})),(0,a.ke)("_executeReferenceProvider",((e,t,i)=>{const n=f(e.get(l.u).referenceProvider,t,i,!1,o.XO.None);return v((()=>n))})),(0,a.ke)("_executeImplementationProvider",((e,t,i)=>{const n=p(e.get(l.u).implementationProvider,t,i,o.XO.None);return v((()=>n))}))},87951:(e,t,i)=>{"use strict";i.d(t,{gi:()=>h});var n=i(2106),o=i(10998),s=i(63339);function r(e,t){return!!e[t]}class a{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=r(e.event,t.triggerModifier),this.hasSideBySideModifier=r(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class l{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=r(e,t.triggerModifier)}}class d{constructor(e,t,i,n){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=i,this.triggerSideBySideModifier=n}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function c(e){return"altKey"===e?s.zx?new d(57,"metaKey",6,"altKey"):new d(5,"ctrlKey",6,"altKey"):s.zx?new d(6,"altKey",57,"metaKey"):new d(6,"altKey",5,"ctrlKey")}class h extends o.jG{constructor(e,t){var i;super(),this._onMouseMoveOrRelevantKeyDown=this._register(new n.vl),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new n.vl),this.onExecute=this._onExecute.event,this._onCancel=this._register(new n.vl),this.onCancel=this._onCancel.event,this._editor=e,this._extractLineNumberFromMouseEvent=null!==(i=null==t?void 0:t.extractLineNumberFromMouseEvent)&&void 0!==i?i:e=>e.target.position?e.target.position.lineNumber:0,this._opts=c(this._editor.getOption(78)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration((e=>{if(e.hasChanged(78)){const e=c(this._editor.getOption(78));if(this._opts.equals(e))return;this._opts=e,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}}))),this._register(this._editor.onMouseMove((e=>this._onEditorMouseMove(new a(e,this._opts))))),this._register(this._editor.onMouseDown((e=>this._onEditorMouseDown(new a(e,this._opts))))),this._register(this._editor.onMouseUp((e=>this._onEditorMouseUp(new a(e,this._opts))))),this._register(this._editor.onKeyDown((e=>this._onEditorKeyDown(new l(e,this._opts))))),this._register(this._editor.onKeyUp((e=>this._onEditorKeyUp(new l(e,this._opts))))),this._register(this._editor.onMouseDrag((()=>this._resetHandler()))),this._register(this._editor.onDidChangeCursorSelection((e=>this._onDidChangeCursorSelection(e)))),this._register(this._editor.onDidChangeModel((e=>this._resetHandler()))),this._register(this._editor.onDidChangeModelContent((()=>this._resetHandler()))),this._register(this._editor.onDidScrollChange((e=>{(e.scrollTopChanged||e.scrollLeftChanged)&&this._resetHandler()})))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=this._extractLineNumberFromMouseEvent(e)}_onEditorMouseUp(e){const t=this._extractLineNumberFromMouseEvent(e);this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}},68128:(e,t,i)=>{"use strict";i.r(t),i.d(t,{GotoDefinitionAtPositionEditorContribution:()=>O});var n=i(65958),o=i(94327),s=i(90028),r=i(10998),a=i(85072),l=i.n(a),d=i(97825),c=i.n(d),h=i(77659),u=i.n(h),g=i(55056),p=i.n(g),m=i(10540),f=i.n(m),v=i(41113),_=i.n(v),b=i(31503),w={};w.styleTagTransform=_(),w.setAttributes=p(),w.insert=u().bind(null,"head"),w.domAPI=c(),w.insertStyleElement=f(),l()(b.A,w),b.A&&b.A.locals&&b.A.locals;var y,C=i(62105),k=i(50946),S=i(28061),x=i(77922),L=i(37042),D=i(87951),E=i(45281),I=i(3765),N=i(31540),M=i(95976),A=i(914),T=i(52230),R=i(74774),P=function(e,t){return function(i,n){t(i,n,e)}};let O=y=class{constructor(e,t,i,n){this.textModelResolverService=t,this.languageService=i,this.languageFeaturesService=n,this.toUnhook=new r.Cm,this.toUnhookForKeyboard=new r.Cm,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();const s=new D.gi(e);this.toUnhook.add(s),this.toUnhook.add(s.onMouseMoveOrRelevantKeyDown((([e,t])=>{this.startFindDefinitionFromMouse(e,null!=t?t:void 0)}))),this.toUnhook.add(s.onExecute((e=>{this.isEnabled(e)&&this.gotoDefinition(e.target.position,e.hasSideBySideModifier).catch((e=>{(0,o.dz)(e)})).finally((()=>{this.removeLinkDecorations()}))}))),this.toUnhook.add(s.onCancel((()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null})))}static get(e){return e.getContribution(y.ID)}async startFindDefinitionFromCursor(e){await this.startFindDefinition(e),this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition((()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()}))),this.toUnhookForKeyboard.add(this.editor.onKeyDown((e=>{e&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())})))}startFindDefinitionFromMouse(e,t){if(9===e.target.type&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t))return this.currentWordAtPosition=null,void this.removeLinkDecorations();const i=e.target.position;this.startFindDefinition(i)}async startFindDefinition(e){var t;this.toUnhookForKeyboard.clear();const i=e?null===(t=this.editor.getModel())||void 0===t?void 0:t.getWordAtPosition(e):null;if(!i)return this.currentWordAtPosition=null,void this.removeLinkDecorations();if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===i.startColumn&&this.currentWordAtPosition.endColumn===i.endColumn&&this.currentWordAtPosition.word===i.word)return;this.currentWordAtPosition=i;const r=new C.$t(this.editor,15);let a;this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=(0,n.SS)((t=>this.findDefinition(e,t)));try{a=await this.previousPromise}catch(e){return void(0,o.dz)(e)}if(!a||!a.length||!r.validate(this.editor))return void this.removeLinkDecorations();const l=a[0].originSelectionRange?S.Q.lift(a[0].originSelectionRange):new S.Q(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn);if(a.length>1){let e=l;for(const{originSelectionRange:t}of a)t&&(e=S.Q.plusRange(e,t));this.addDecoration(e,(new s.Bc).appendText(I.k("multipleResults","Click to show {0} definitions.",a.length)))}else{const e=a[0];if(!e.uri)return;this.textModelResolverService.createModelReference(e.uri).then((t=>{if(!t.object||!t.object.textEditorModel)return void t.dispose();const{object:{textEditorModel:i}}=t,{startLineNumber:n}=e.range;if(n<1||n>i.getLineCount())return void t.dispose();const o=this.getPreviewValue(i,n,e),r=this.languageService.guessLanguageIdByFilepathOrFirstLine(i.uri);this.addDecoration(l,o?(new s.Bc).appendCodeblock(r||"",o):void 0),t.dispose()}))}}getPreviewValue(e,t,i){let n=i.range;return n.endLineNumber-n.startLineNumber>=y.MAX_SOURCE_PREVIEW_LINES&&(n=this.getPreviewRangeBasedOnIndentation(e,t)),this.stripIndentationFromPreviewRange(e,t,n)}stripIndentationFromPreviewRange(e,t,i){let n=e.getLineFirstNonWhitespaceColumn(t);for(let o=t+1;o{const i=!t&&this.editor.getOption(89)&&!this.isInPeekEditor(e);return new M.DefinitionAction({openToSide:t,openInPeek:i,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(e)}))}isInPeekEditor(e){const t=e.get(N.fN);return E.x2.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}};O.ID="editor.contrib.gotodefinitionatposition",O.MAX_SOURCE_PREVIEW_LINES=8,O=y=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([P(1,L.b),P(2,x.L),P(3,T.u)],O),(0,k.HW)(O.ID,O,2)},45280:(e,t,i)=>{"use strict";i.d(t,{X:()=>Se});var n=i(65958),o=i(94327),s=i(68387),r=i(10998),a=i(87301),l=i(15365),d=i(28061),c=i(45281),h=i(3765),u=i(59715),g=i(85753),p=i(31540),m=i(82399),f=i(48421),v=i(87148),_=i(29879),b=i(90840),w=i(49990),y=i(14333),C=i(53963),k=i(94901),S=i(2106),x=i(13072),L=i(22467),D=i(85072),E=i.n(D),I=i(97825),N=i.n(I),M=i(77659),A=i.n(M),T=i(55056),R=i.n(T),P=i(10540),O=i.n(P),F=i(41113),B=i.n(F),W=i(26378),H={};H.styleTagTransform=B(),H.setAttributes=R(),H.insert=A().bind(null,"head"),H.domAPI=N(),H.insertStyleElement=O(),E()(W.A,H),W.A&&W.A.locals&&W.A.locals;var V,z=i(24665),j=i(74774),U=i(52394),$=i(54957),K=i(77922),q=i(37042),G=i(42443),Q=i(8431),Z=i(24772),Y=i(75637),X=i(56071),J=i(8377),ee=i(25654),te=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},ie=function(e,t){return function(i,n){t(i,n,e)}};let ne=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof w.y4||e instanceof w.$L}getChildren(e){if(e instanceof w.y4)return e.groups;if(e instanceof w.$L)return e.resolve(this._resolverService).then((e=>e.children));throw new Error("bad tree")}};ne=te([ie(0,q.b)],ne);class oe{getHeight(){return 23}getTemplateId(e){return e instanceof w.$L?le.id:ce.id}}let se=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof w.yc){const i=null===(t=e.parent.getPreview(e))||void 0===t?void 0:t.preview(e.range);if(i)return i.value}return(0,L.P8)(e.uri)}};se=te([ie(0,X.b)],se);class re{getId(e){return e instanceof w.yc?e.id:e.uri}}let ae=class extends r.jG{constructor(e,t){super(),this._labelService=t;const i=document.createElement("div");i.classList.add("reference-file"),this.file=this._register(new Z.s(i,{supportHighlights:!0})),this.badge=new G.x(y.BC(i,y.$(".count")),{},ee.m$),e.appendChild(i)}set(e,t){const i=(0,L.pD)(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(i,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});const n=e.children.length;this.badge.setCount(n),n>1?this.badge.setTitleFormat((0,h.k)("referencesCount","{0} references",n)):this.badge.setTitleFormat((0,h.k)("referenceCount","{0} reference",n))}};ae=te([ie(1,J.L)],ae);let le=V=class{constructor(e){this._instantiationService=e,this.templateId=V.id}renderTemplate(e){return this._instantiationService.createInstance(ae,e)}renderElement(e,t,i){i.set(e.element,(0,Y.WJ)(e.filterData))}disposeTemplate(e){e.dispose()}};le.id="FileReferencesRenderer",le=V=te([ie(0,m._Y)],le);class de extends r.jG{constructor(e){super(),this.label=this._register(new Q._(e))}set(e,t){var i;const n=null===(i=e.parent.getPreview(e))||void 0===i?void 0:i.preview(e.range);if(n&&n.value){const{value:e,highlight:i}=n;t&&!Y.ne.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(e,(0,Y.WJ)(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(e,[i]))}else this.label.set(`${(0,L.P8)(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`)}}class ce{constructor(){this.templateId=ce.id}renderTemplate(e){return new de(e)}renderElement(e,t,i){i.set(e.element,e.filterData)}disposeTemplate(e){e.dispose()}}ce.id="OneReferenceRenderer";class he{getWidgetAriaLabel(){return(0,h.k)("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var ue=i(89044),ge=i(38803),pe=function(e,t){return function(i,n){t(i,n,e)}};class me{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new r.Cm,this._callOnModelChange=new r.Cm,this._callOnDispose.add(this._editor.onDidChangeModel((()=>this._onModelChanged()))),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(e)for(const t of this._model.references)if(t.uri.toString()===e.uri.toString())return void this._addDecorations(t.parent)}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations((()=>this._onDecorationChanged())));const t=[],i=[];for(let n=0,o=e.children.length;n{const o=n.deltaDecorations([],t);for(let t=0;t{e.equals(9)&&(this._keybindingService.dispatchEvent(e,e.target),e.stopPropagation())}),!0)),this._tree=this._instantiationService.createInstance(ve,"ReferencesWidget",this._treeContainer,new oe,[this._instantiationService.createInstance(le),this._instantiationService.createInstance(ce)],this._instantiationService.createInstance(ne),t),this._splitView.addView({onDidChange:S.Jh.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:e=>{this._preview.layout({height:this._dim.height,width:e})}},C.X.Distribute),this._splitView.addView({onDidChange:S.Jh.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:e=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${e}px`,this._tree.layout(this._dim.height,e)}},C.X.Distribute),this._disposables.add(this._splitView.onDidSashChange((()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)}),void 0));const i=(e,t)=>{e instanceof w.yc&&("show"===t&&this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:t,source:"tree"}))};this._disposables.add(this._tree.onDidOpen((e=>{e.sideBySide?i(e.element,"side"):e.editorOptions.pinned?i(e.element,"goto"):i(e.element,"show")}))),y.jD(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new y.fg(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=h.k("noResults","No results"),y.WU(this._messageContainer),Promise.resolve(void 0)):(y.jD(this._messageContainer),this._decorationsManager=new me(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange((e=>this._tree.rerender(e)))),this._disposeOnNewModel.add(this._preview.onMouseDown((e=>{const{event:t,target:i}=e;if(2!==t.detail)return;const n=this._getFocusedReference();n&&this._onDidSelectReference.fire({element:{uri:n.uri,range:i.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})}))),this.container.classList.add("results-loaded"),y.WU(this._treeContainer),y.WU(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(1===this._model.groups.length?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[e]=this._tree.getFocus();return e instanceof w.yc?e:e instanceof w.$L&&e.children.length>0?e.children[0]:void 0}async revealReference(e){await this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})}async _revealReference(e,t){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==x.ny.inMemory?this.setTitle((0,L.Pi)(e.uri),this._uriLabel.getUriLabel((0,L.pD)(e.uri))):this.setTitle(h.k("peekView.alternateTitle","References"));const i=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent||(t&&this._tree.reveal(e.parent),await this._tree.expand(e.parent)),this._tree.reveal(e);const n=await i;if(!this._model)return void n.dispose();(0,r.AS)(this._previewModelReference);const o=n.object;if(o){const t=this._preview.getModel()===o.textEditorModel?0:1,i=d.Q.lift(e.range).collapseToStart();this._previewModelReference=n,this._preview.setModel(o.textEditorModel),this._preview.setSelection(i),this._preview.revealRangeInCenter(i,t)}else this._preview.setModel(this._previewNotAvailableMessage),n.dispose()}};_e=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([pe(3,ue.Gy),pe(4,q.b),pe(5,m._Y),pe(6,c.zn),pe(7,J.L),pe(8,ge.$D),pe(9,X.b),pe(10,K.L),pe(11,U.JZ)],_e);var be,we=i(38122),ye=i(13034),Ce=function(e,t){return function(i,n){t(i,n,e)}};const ke=new p.N1("referenceSearchVisible",!1,h.k("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let Se=be=class{static get(e){return e.getContribution(be.ID)}constructor(e,t,i,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 r.Cm,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=ke.bindTo(i)}dispose(){var e,t;this._referenceSearchVisible.reset(),this._disposables.dispose(),null===(e=this._widget)||void 0===e||e.dispose(),null===(t=this._model)||void 0===t||t.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,i){let n;if(this._widget&&(n=this._widget.position),this.closeWidget(),n&&e.containsPosition(n))return;this._peekMode=i,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage((()=>{this.closeWidget()}))),this._disposables.add(this._editor.onDidChangeModel((()=>{this._ignoreModelChangeEvent||this.closeWidget()})));const o="peekViewLayout",s=fe.fromJSON(this._storageService.get(o,0,"{}"));this._widget=this._instantiationService.createInstance(_e,this._editor,this._defaultTreeKeyboardSupport,s),this._widget.setTitle(h.k("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((e=>{const{element:t,kind:n}=e;if(t)switch(n){case"open":"editor"===e.source&&this._configurationService.getValue("editor.stablePeek")||this.openReference(t,!1,!1);break;case"side":this.openReference(t,!0,!1);break;case"goto":i?this._gotoReference(t,!0):this.openReference(t,!1,!0)}})));const r=++this._requestIdPool;t.then((t=>{var i;if(r===this._requestIdPool&&this._widget)return null===(i=this._model)||void 0===i||i.dispose(),this._model=t,this._widget.setModel(this._model).then((()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(h.k("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const t=this._editor.getModel().uri,i=new l.y(e.startLineNumber,e.startColumn),n=this._model.nearestReference(t,i);if(n)return this._widget.setSelection(n).then((()=>{this._widget&&"editor"===this._editor.getOption(87)&&this._widget.focusOnPreviewEditor()}))}}));t.dispose()}),(e=>{this._notificationService.error(e)}))}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}async goToNextOrPreviousReference(e){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const i=this._model.nearestReference(this._editor.getModel().uri,t);if(!i)return;const n=this._model.nextOrPreviousReference(i,e),o=this._editor.hasTextFocus(),s=this._widget.isPreviewEditorFocused();await this._widget.setSelection(n),await this._gotoReference(n,!1),o?this._editor.focus():this._widget&&s&&this._widget.focusOnPreviewEditor()}async revealReference(e){this._editor.hasModel()&&this._model&&this._widget&&await this._widget.revealReference(e)}closeWidget(e=!0){var t,i;null===(t=this._widget)||void 0===t||t.dispose(),null===(i=this._model)||void 0===i||i.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e,t){var i;null===(i=this._widget)||void 0===i||i.hide(),this._ignoreModelChangeEvent=!0;const s=d.Q.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:s,selectionSource:"code.jump",pinned:t}},this._editor).then((e=>{var t;if(this._ignoreModelChangeEvent=!1,e&&this._widget)if(this._editor===e)this._widget.show(s),this._widget.focusOnReferenceTree();else{const i=be.get(e),o=this._model.clone();this.closeWidget(),e.focus(),null==i||i.toggleWidget(s,(0,n.SS)((e=>Promise.resolve(o))),null!==(t=this._peekMode)&&void 0!==t&&t)}else this.closeWidget()}),(e=>{this._ignoreModelChangeEvent=!1,(0,o.dz)(e)}))}openReference(e,t,i){t||this.closeWidget();const{uri:n,range:o}=e;this._editorService.openCodeEditor({resource:n,options:{selection:o,selectionSource:"code.jump",pinned:i}},this._editor,t)}};function xe(e,t){const i=(0,c.RL)(e);if(!i)return;const n=Se.get(i);n&&t(n)}Se.ID="editor.contrib.referencesController",Se=be=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Ce(2,p.fN),Ce(3,a.T),Ce(4,_.Ot),Ce(5,m._Y),Ce(6,b.CS),Ce(7,g.pG)],Se),f.f.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:(0,s.m5)(2089,60),when:p.M$.or(ke,c.x2.inPeekEditor),handler(e){xe(e,(e=>{e.changeFocusBetweenPreviewAndReferences()}))}}),f.f.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:p.M$.or(ke,c.x2.inPeekEditor),handler(e){xe(e,(e=>{e.goToNextOrPreviousReference(!0)}))}}),f.f.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:p.M$.or(ke,c.x2.inPeekEditor),handler(e){xe(e,(e=>{e.goToNextOrPreviousReference(!1)}))}}),u.w.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),u.w.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),u.w.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),u.w.registerCommand("closeReferenceSearch",(e=>xe(e,(e=>e.closeWidget())))),f.f.registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:p.M$.and(c.x2.inPeekEditor,p.M$.not("config.editor.stablePeek"))}),f.f.registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:p.M$.and(ke,p.M$.not("config.editor.stablePeek"),p.M$.or(we.R.editorTextFocus,ye.J7.negate()))}),f.f.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:p.M$.and(ke,v.YD,v.Nf.negate(),v.cH.negate()),handler(e){var t;const i=null===(t=e.get(v.PE).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof w.yc&&xe(e,(e=>e.revealReference(i[0])))}}),f.f.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:p.M$.and(ke,v.YD,v.Nf.negate(),v.cH.negate()),handler(e){var t;const i=null===(t=e.get(v.PE).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof w.yc&&xe(e,(e=>e.openReference(i[0],!0,!0)))}}),u.w.registerCommand("openReference",(e=>{var t;const i=null===(t=e.get(v.PE).lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof w.yc&&xe(e,(e=>e.openReference(i[0],!1,!0)))}))},49990:(e,t,i)=>{"use strict";i.d(t,{$L:()=>p,y4:()=>m,yc:()=>u});var n=i(94327),o=i(2106),s=i(94664),r=i(10998),a=i(27992),l=i(22467),d=i(16844),c=i(28061),h=i(3765);class u{constructor(e,t,i,n){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=n,this.id=s.r.nextId()}get uri(){return this.link.uri}get range(){var e,t;return null!==(t=null!==(e=this._range)&&void 0!==e?e:this.link.targetSelectionRange)&&void 0!==t?t:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e;const t=null===(e=this.parent.getPreview(this))||void 0===e?void 0:e.preview(this.range);return t?(0,h.k)({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,(0,l.P8)(this.uri),this.range.startLineNumber,this.range.startColumn):(0,h.k)("aria.oneReference","in {0} on line {1} at column {2}",(0,l.P8)(this.uri),this.range.startLineNumber,this.range.startColumn)}}class g{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const i=this._modelReference.object.textEditorModel;if(!i)return;const{startLineNumber:n,startColumn:o,endLineNumber:s,endColumn:r}=e,a=i.getWordUntilPosition({lineNumber:n,column:o-t}),l=new c.Q(n,a.startColumn,n,o),d=new c.Q(s,r,s,1073741824),h=i.getValueInRange(l).replace(/^\s+/,""),u=i.getValueInRange(e);return{value:h+u+i.getValueInRange(d).replace(/\s+$/,""),highlight:{start:h.length,end:h.length+u.length}}}}class p{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new a.fT}dispose(){(0,r.AS)(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return 1===e?(0,h.k)("aria.fileReferences.1","1 symbol in {0}, full path {1}",(0,l.P8)(this.uri),this.uri.fsPath):(0,h.k)("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,(0,l.P8)(this.uri),this.uri.fsPath)}async resolve(e){if(0!==this._previews.size)return this;for(const t of this.children)if(!this._previews.has(t.uri))try{const i=await e.createModelReference(t.uri);this._previews.set(t.uri,new g(i))}catch(e){(0,n.dz)(e)}return this}}class m{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new o.vl,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[i]=e;let n;e.sort(m._compareReferences);for(const t of e)if(n&&l.er.isEqual(n.uri,t.uri,!0)||(n=new p(this,t.uri),this.groups.push(n)),0===n.children.length||0!==m._compareReferences(t,n.children[n.children.length-1])){const e=new u(i===t,n,t,(e=>this._onDidChangeReferenceRange.fire(e)));this.references.push(e),n.children.push(e)}}dispose(){(0,r.AS)(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new m(this._links,this._title)}get title(){return this._title}get isEmpty(){return 0===this.groups.length}get ariaMessage(){return this.isEmpty?(0,h.k)("aria.result.0","No results found"):1===this.references.length?(0,h.k)("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):1===this.groups.length?(0,h.k)("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):(0,h.k)("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){const{parent:i}=e;let n=i.children.indexOf(e);const o=i.children.length,s=i.parent.groups.length;return 1===s||t&&n+10?(n=t?(n+1)%o:(n+o-1)%o,i.children[n]):(n=i.parent.groups.indexOf(i),t?(n=(n+1)%s,i.parent.groups[n].children[0]):(n=(n+s-1)%s,i.parent.groups[n].children[i.parent.groups[n].children.length-1]))}nearestReference(e,t){const i=this.references.map(((i,n)=>({idx:n,prefixLen:d.Qp(i.uri.toString(),e.toString()),offsetDist:100*Math.abs(i.range.startLineNumber-t.lineNumber)+Math.abs(i.range.startColumn-t.column)}))).sort(((e,t)=>e.prefixLen>t.prefixLen?-1:e.prefixLent.offsetDist?1:0))[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(const i of this.references)if(i.uri.toString()===e.toString()&&c.Q.containsPosition(i.range,t))return i}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return l.er.compare(e.uri,t.uri)||c.Q.compareRangesUsingStarts(e.range,t.range)}}},66654:(e,t,i)=>{"use strict";i.d(t,{L:()=>l});var n=i(14333),o=i(35190),s=i(10998),r=i(56071);const a=n.$;let l=class extends s.jG{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this.actions=[],this._hasContent=!1,this.hoverElement=a("div.hover-row.status-bar"),this.hoverElement.tabIndex=0,this.actionsElement=n.BC(this.hoverElement,a("div.actions"))}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),i=t?t.getLabel():null;this._hasContent=!0;const n=this._register(o.jQ.render(this.actionsElement,e,i));return this.actions.push(n),n}append(e){const t=n.BC(this.actionsElement,e);return this._hasContent=!0,t}};var d,c;l=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(d=0,c=r.b,function(e,t){c(e,t,d)})],l)},11950:(e,t,i)=>{"use strict";i.d(t,{U:()=>d});var n=i(65958),o=i(78903),s=i(94327),r=i(50946),a=i(52230);class l{constructor(e,t,i){this.provider=e,this.hover=t,this.ordinal=i}}function d(e,t,i,o){const r=e.ordered(t).map(((e,n)=>async function(e,t,i,n,o){const r=await Promise.resolve(e.provideHover(i,n,o)).catch(s.M_);if(r&&function(e){const t=void 0!==e.range,i=void 0!==e.contents&&e.contents&&e.contents.length>0;return t&&i}(r))return new l(e,r,t)}(e,n,t,i,o)));return n.AE.fromPromises(r).coalesce()}(0,r.ke)("_executeHoverProvider",((e,t,i)=>function(e,t,i,n){return d(e,t,i,n).map((e=>e.hover)).toPromise()}(e.get(a.u).hoverProvider,t,i,o.XO.None)))},78166:(e,t,i)=>{"use strict";i.d(t,{G8:()=>v,Hm:()=>h,Hp:()=>a,K6:()=>r,MB:()=>l,Xp:()=>u,Zp:()=>f,dV:()=>s,iM:()=>m,ih:()=>c,jA:()=>o,jq:()=>p,vf:()=>d,vx:()=>g});var n=i(3765);const o="editor.action.showHover",s="editor.action.showDefinitionPreviewHover",r="editor.action.scrollUpHover",a="editor.action.scrollDownHover",l="editor.action.scrollLeftHover",d="editor.action.scrollRightHover",c="editor.action.pageUpHover",h="editor.action.pageDownHover",u="editor.action.goToTopHover",g="editor.action.goToBottomHover",p="editor.action.increaseHoverVerbosityLevel",m=n.k({key:"increaseHoverVerbosityLevel",comment:["Label for action that will increase the hover verbosity level."]},"Increase Hover Verbosity Level"),f="editor.action.decreaseHoverVerbosityLevel",v=n.k({key:"decreaseHoverVerbosityLevel",comment:["Label for action that will decrease the hover verbosity level."]},"Decrease Hover Verbosity Level")},36105:(e,t,i)=>{"use strict";i.r(t);var n,o=i(78166),s=i(68387),r=i(50946),a=i(28061),l=i(38122),d=i(68128),c=i(31653),h=i(47317),u=i(3765);i(61624),function(e){e.NoAutoFocus="noAutoFocus",e.FocusIfVisible="focusIfVisible",e.AutoFocusImmediately="autoFocusImmediately"}(n||(n={}));class g extends r.ks{constructor(){super({id:o.jA,label:u.k({key:"showOrFocusHover",comment:["Label for action that will trigger the showing/focusing of a hover in the editor.","If the hover is not visible, it will show the hover.","This allows for users to show the hover without using the mouse."]},"Show or Focus Hover"),metadata:{description:u.a("showOrFocusHoverDescription","Show or focus the editor hover which shows documentation, references, and other content for a symbol at the current cursor position."),args:[{name:"args",schema:{type:"object",properties:{focus:{description:"Controls if and when the hover should take focus upon being triggered by this action.",enum:[n.NoAutoFocus,n.FocusIfVisible,n.AutoFocusImmediately],enumDescriptions:[u.k("showOrFocusHover.focus.noAutoFocus","The hover will not automatically take focus."),u.k("showOrFocusHover.focus.focusIfVisible","The hover will take focus only if it is already visible."),u.k("showOrFocusHover.focus.autoFocusImmediately","The hover will automatically take focus when it appears.")],default:n.FocusIfVisible}}}}]},alias:"Show or Focus Hover",precondition:void 0,kbOpts:{kbExpr:l.R.editorTextFocus,primary:(0,s.m5)(2089,2087),weight:100}})}run(e,t,i){if(!t.hasModel())return;const o=c.n.get(t);if(!o)return;const s=null==i?void 0:i.focus;let r=n.FocusIfVisible;Object.values(n).includes(s)?r=s:"boolean"==typeof s&&s&&(r=n.AutoFocusImmediately);const l=e=>{const i=t.getPosition(),n=new a.Q(i.lineNumber,i.column,i.lineNumber,i.column);o.showContentHover(n,1,1,e)},d=2===t.getOption(2);o.isHoverVisible?r!==n.NoAutoFocus?o.focus():l(d):l(d||r===n.AutoFocusImmediately)}}class p extends r.ks{constructor(){super({id:o.dV,label:u.k({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0,metadata:{description:u.a("showDefinitionPreviewHoverDescription","Show the definition preview hover in the editor.")}})}run(e,t){const i=c.n.get(t);if(!i)return;const n=t.getPosition();if(!n)return;const o=new a.Q(n.lineNumber,n.column,n.lineNumber,n.column),s=d.GotoDefinitionAtPositionEditorContribution.get(t);s&&s.startFindDefinitionFromCursor(n).then((()=>{i.showContentHover(o,1,1,!0)}))}}class m extends r.ks{constructor(){super({id:o.K6,label:u.k({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:l.R.hoverFocused,kbOpts:{kbExpr:l.R.hoverFocused,primary:16,weight:100},metadata:{description:u.a("scrollUpHoverDescription","Scroll up the editor hover.")}})}run(e,t){const i=c.n.get(t);i&&i.scrollUp()}}class f extends r.ks{constructor(){super({id:o.Hp,label:u.k({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:l.R.hoverFocused,kbOpts:{kbExpr:l.R.hoverFocused,primary:18,weight:100},metadata:{description:u.a("scrollDownHoverDescription","Scroll down the editor hover.")}})}run(e,t){const i=c.n.get(t);i&&i.scrollDown()}}class v extends r.ks{constructor(){super({id:o.MB,label:u.k({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:l.R.hoverFocused,kbOpts:{kbExpr:l.R.hoverFocused,primary:15,weight:100},metadata:{description:u.a("scrollLeftHoverDescription","Scroll left the editor hover.")}})}run(e,t){const i=c.n.get(t);i&&i.scrollLeft()}}class _ extends r.ks{constructor(){super({id:o.vf,label:u.k({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:l.R.hoverFocused,kbOpts:{kbExpr:l.R.hoverFocused,primary:17,weight:100},metadata:{description:u.a("scrollRightHoverDescription","Scroll right the editor hover.")}})}run(e,t){const i=c.n.get(t);i&&i.scrollRight()}}class b extends r.ks{constructor(){super({id:o.ih,label:u.k({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:l.R.hoverFocused,kbOpts:{kbExpr:l.R.hoverFocused,primary:11,secondary:[528],weight:100},metadata:{description:u.a("pageUpHoverDescription","Page up the editor hover.")}})}run(e,t){const i=c.n.get(t);i&&i.pageUp()}}class w extends r.ks{constructor(){super({id:o.Hm,label:u.k({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:l.R.hoverFocused,kbOpts:{kbExpr:l.R.hoverFocused,primary:12,secondary:[530],weight:100},metadata:{description:u.a("pageDownHoverDescription","Page down the editor hover.")}})}run(e,t){const i=c.n.get(t);i&&i.pageDown()}}class y extends r.ks{constructor(){super({id:o.Xp,label:u.k({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:l.R.hoverFocused,kbOpts:{kbExpr:l.R.hoverFocused,primary:14,secondary:[2064],weight:100},metadata:{description:u.a("goToTopHoverDescription","Go to the top of the editor hover.")}})}run(e,t){const i=c.n.get(t);i&&i.goToTop()}}class C extends r.ks{constructor(){super({id:o.vx,label:u.k({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:l.R.hoverFocused,kbOpts:{kbExpr:l.R.hoverFocused,primary:13,secondary:[2066],weight:100},metadata:{description:u.a("goToBottomHoverDescription","Go to the bottom of the editor hover.")}})}run(e,t){const i=c.n.get(t);i&&i.goToBottom()}}class k extends r.ks{constructor(){super({id:o.jq,label:o.iM,alias:"Increase Hover Verbosity Level",precondition:l.R.hoverVisible})}run(e,t,i){const n=c.n.get(t);if(!n)return;const o=void 0!==(null==i?void 0:i.index)?i.index:n.focusedHoverPartIndex();n.updateHoverVerbosityLevel(h.M$.Increase,o,null==i?void 0:i.focus)}}class S extends r.ks{constructor(){super({id:o.Zp,label:o.G8,alias:"Decrease Hover Verbosity Level",precondition:l.R.hoverVisible})}run(e,t,i){var n;const o=c.n.get(t);if(!o)return;const s=void 0!==(null==i?void 0:i.index)?i.index:o.focusedHoverPartIndex();null===(n=c.n.get(t))||void 0===n||n.updateHoverVerbosityLevel(h.M$.Decrease,s,null==i?void 0:i.focus)}}var x=i(70559),L=i(89044),D=i(46311),E=i(14270),I=i(14333),N=i(13338),M=i(65958),A=i(94327),T=i(10998),R=i(22467),P=i(52230),O=i(80886),F=i(73042),B=i(47072),W=i(62919),H=i(94269),V=i(27619),z=i(54435),j=i(44023),U=function(e,t){return function(i,n){t(i,n,e)}};const $=I.$;class K{constructor(e,t,i){this.owner=e,this.range=t,this.marker=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const q={type:1,filter:{include:W.gB.QuickFix},triggerAction:W.fo.QuickFixHover};let G=class{constructor(e,t,i,n){this._editor=e,this._markerDecorationsService=t,this._openerService=i,this._languageFeaturesService=n,this.hoverOrdinal=1,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type&&!e.supportsMarkerHover)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,o=i.getLineMaxColumn(n),s=[];for(const r of t){const t=r.range.startLineNumber===n?r.range.startColumn:1,l=r.range.endLineNumber===n?r.range.endColumn:o,d=this._markerDecorationsService.getMarker(i.uri,r);if(!d)continue;const c=new a.Q(e.range.startLineNumber,t,e.range.startLineNumber,l);s.push(new K(this,c,d))}return s}renderHoverParts(e,t){if(!t.length)return new D.Ke([]);const i=new T.Cm,n=[];t.forEach((t=>{const i=this._renderMarkerHover(t);e.fragment.appendChild(i.hoverElement),n.push(i)}));const o=1===t.length?t[0]:t.sort(((e,t)=>V.cj.compare(e.marker.severity,t.marker.severity)))[0];return this.renderMarkerStatusbar(e,o,i),new D.Ke(n)}getAccessibleContent(e){return e.marker.message}_renderMarkerHover(e){const t=new T.Cm,i=$("div.hover-row"),n=I.BC(i,$("div.marker.hover-contents")),{source:o,message:s,code:r,relatedInformation:a}=e.marker;this._editor.applyFontInfo(n);const l=I.BC(n,$("span"));if(l.style.whiteSpace="pre-wrap",l.innerText=s,o||r)if(r&&"string"!=typeof r){const e=$("span");o&&(I.BC(e,$("span")).innerText=o);const i=I.BC(e,$("a.code-link"));i.setAttribute("href",r.target.toString()),t.add(I.ko(i,"click",(e=>{this._openerService.open(r.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()}))),I.BC(i,$("span")).innerText=r.value;const s=I.BC(n,e);s.style.opacity="0.6",s.style.paddingLeft="6px"}else{const e=I.BC(n,$("span"));e.style.opacity="0.6",e.style.paddingLeft="6px",e.innerText=o&&r?`${o}(${r})`:o||`(${r})`}if((0,N.EI)(a))for(const{message:e,resource:i,startLineNumber:o,startColumn:s}of a){const r=I.BC(n,$("div"));r.style.marginTop="8px";const a=I.BC(r,$("a"));a.innerText=`${(0,R.P8)(i)}(${o}, ${s}): `,a.style.cursor="pointer",t.add(I.ko(a,"click",(e=>{e.stopPropagation(),e.preventDefault(),this._openerService&&this._openerService.open(i,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:o,startColumn:s}}}).catch(A.dz)})));const l=I.BC(r,$("span"));l.innerText=e,this._editor.applyFontInfo(l)}return{hoverPart:e,hoverElement:i,dispose:()=>t.dispose()}}renderMarkerStatusbar(e,t,i){if(t.marker.severity===V.cj.Error||t.marker.severity===V.cj.Warning||t.marker.severity===V.cj.Info){const i=H.MarkerController.get(this._editor);i&&e.statusBar.addAction({label:u.k("view problem","View Problem"),commandId:H.NextMarkerAction.ID,run:()=>{e.hide(),i.showAtMarker(t.marker),this._editor.focus()}})}if(!this._editor.getOption(92)){const n=e.statusBar.append($("div"));this.recentMarkerCodeActionsInfo&&(V.oc.makeKey(this.recentMarkerCodeActionsInfo.marker)===V.oc.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(n.textContent=u.k("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const o=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?T.jG.None:(0,M.EQ)((()=>n.textContent=u.k("checkingForQuickFixes","Checking for quick fixes...")),200,i);n.textContent||(n.textContent=String.fromCharCode(160));const s=this.getCodeActions(t.marker);i.add((0,T.s)((()=>s.cancel()))),s.then((s=>{if(o.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:s.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions)return s.dispose(),void(n.textContent=u.k("noQuickFixes","No quick fixes available"));n.style.display="none";let r=!1;i.add((0,T.s)((()=>{r||s.dispose()}))),e.statusBar.addAction({label:u.k("quick fixes","Quick Fix..."),commandId:F.pQ,run:t=>{r=!0;const i=B.C.get(this._editor),n=I.BK(t);e.hide(),null==i||i.showCodeActions(q,s,{x:n.left,y:n.top,width:n.width,height:n.height})}})}),A.dz)}}getCodeActions(e){return(0,M.SS)((t=>(0,F.dU)(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new a.Q(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),q,j.ke.None,t)))}};G=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([U(1,O.A),U(2,z.C),U(3,P.u)],G);var Q,Z=i(15250);!function(e){e.introHoverPart=(0,u.k)("introHoverPart","The focused hover part content is the following:"),e.introHoverFull=(0,u.k)("introHoverFull","The full focused hover content is the following:"),e.increaseVerbosity=(0,u.k)("increaseVerbosity","- The focused hover part verbosity level can be increased with the Increase Hover Verbosity command.",o.jq),e.decreaseVerbosity=(0,u.k)("decreaseVerbosity","- The focused hover part verbosity level can be decreased with the Decrease Hover Verbosity command.",o.Zp)}(Q||(Q={})),T.jG,(0,r.HW)(c.n.ID,c.n,2),(0,r.Fl)(g),(0,r.Fl)(p),(0,r.Fl)(m),(0,r.Fl)(f),(0,r.Fl)(v),(0,r.Fl)(_),(0,r.Fl)(b),(0,r.Fl)(w),(0,r.Fl)(y),(0,r.Fl)(C),(0,r.Fl)(k),(0,r.Fl)(S),D.B2.register(E.xJ),D.B2.register(G),(0,L.zy)(((e,t)=>{const i=e.getColor(x.oZ8);i&&(t.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${i.transparent(.5)}; }`))})),Z.Z.register(new class{dispose(){var e;null===(e=this._provider)||void 0===e||e.dispose()}}),Z.Z.register(new class{dispose(){var e;null===(e=this._provider)||void 0===e||e.dispose()}}),Z.Z.register(new class{dispose(){}})},31653:(e,t,i)=>{"use strict";i.d(t,{n:()=>X});var n=i(78166),o=i(10998),s=i(82399),r=i(28354),a=i(56071),l=i(65958),d=i(14333),c=i(12111),h=i(15365);class u extends o.jG{constructor(e,t=new d.fg(10,10)){super(),this._editor=e,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._resizableNode=this._register(new c.v),this._contentPosition=null,this._isResizing=!1,this._resizableNode.domNode.style.position="absolute",this._resizableNode.minSize=d.fg.lift(t),this._resizableNode.layout(t.height,t.width),this._resizableNode.enableSashes(!0,!0,!0,!0),this._register(this._resizableNode.onDidResize((e=>{this._resize(new d.fg(e.dimension.width,e.dimension.height)),e.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(null===(e=this._contentPosition)||void 0===e?void 0:e.position)?h.y.lift(this._contentPosition.position):void 0}_availableVerticalSpaceAbove(e){const t=this._editor.getDomNode(),i=this._editor.getScrolledVisiblePosition(e);if(t&&i)return d.BK(t).top+i.top-30}_availableVerticalSpaceBelow(e){const t=this._editor.getDomNode(),i=this._editor.getScrolledVisiblePosition(e);if(!t||!i)return;const n=d.BK(t),o=d.tG(t.ownerDocument.body),s=n.top+i.top+i.height;return o.height-s-24}_findPositionPreference(e,t){var i,n;const o=Math.min(null!==(i=this._availableVerticalSpaceBelow(t))&&void 0!==i?i:1/0,e),s=Math.min(null!==(n=this._availableVerticalSpaceAbove(t))&&void 0!==n?n:1/0,e),r=Math.min(Math.max(s,o),e),a=Math.min(e,r);let l;return l=this._editor.getOption(60).above?a<=s?1:2:a<=o?2:1,1===l?this._resizableNode.enableSashes(!0,!0,!1,!1):this._resizableNode.enableSashes(!1,!0,!0,!1),l}_resize(e){this._resizableNode.layout(e.height,e.width)}}var g,p=i(31540),m=i(85753),f=i(53909),v=i(38122),_=i(35190),b=i(2106),w=function(e,t){return function(i,n){t(i,n,e)}};let y=g=class extends u{get isVisibleFromKeyboard(){var e;return 1===(null===(e=this._renderedHover)||void 0===e?void 0:e.source)}get isVisible(){var e;return null!==(e=this._hoverVisibleKey.get())&&void 0!==e&&e}get isFocused(){var e;return null!==(e=this._hoverFocusedKey.get())&&void 0!==e&&e}constructor(e,t,i,n,o){const s=e.getOption(67)+8,r=new d.fg(150,s);super(e,r),this._configurationService=i,this._accessibilityService=n,this._keybindingService=o,this._hover=this._register(new _.N4),this._onDidResize=this._register(new b.vl),this.onDidResize=this._onDidResize.event,this._minimumSize=r,this._hoverVisibleKey=v.R.hoverVisible.bindTo(t),this._hoverFocusedKey=v.R.hoverFocused.bindTo(t),d.BC(this._resizableNode.domNode,this._hover.containerDomNode),this._resizableNode.domNode.style.zIndex="50",this._register(this._editor.onDidLayoutChange((()=>{this.isVisible&&this._updateMaxDimensions()}))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()})));const a=this._register(d.w5(this._resizableNode.domNode));this._register(a.onDidFocus((()=>{this._hoverFocusedKey.set(!0)}))),this._register(a.onDidBlur((()=>{this._hoverFocusedKey.set(!1)}))),this._setRenderedHover(void 0),this._editor.addContentWidget(this)}dispose(){var e;super.dispose(),null===(e=this._renderedHover)||void 0===e||e.dispose(),this._editor.removeContentWidget(this)}getId(){return g.ID}static _applyDimensions(e,t,i){const n="number"==typeof t?`${t}px`:t,o="number"==typeof i?`${i}px`:i;e.style.width=n,e.style.height=o}_setContentsDomNodeDimensions(e,t){const i=this._hover.contentsDomNode;return g._applyDimensions(i,e,t)}_setContainerDomNodeDimensions(e,t){const i=this._hover.containerDomNode;return g._applyDimensions(i,e,t)}_setHoverWidgetDimensions(e,t){this._setContentsDomNodeDimensions(e,t),this._setContainerDomNodeDimensions(e,t),this._layoutContentWidget()}static _applyMaxDimensions(e,t,i){const n="number"==typeof t?`${t}px`:t,o="number"==typeof i?`${i}px`:i;e.style.maxWidth=n,e.style.maxHeight=o}_setHoverWidgetMaxDimensions(e,t){g._applyMaxDimensions(this._hover.contentsDomNode,e,t),g._applyMaxDimensions(this._hover.containerDomNode,e,t),this._hover.containerDomNode.style.setProperty("--vscode-hover-maxWidth","number"==typeof e?`${e}px`:e),this._layoutContentWidget()}_setAdjustedHoverWidgetDimensions(e){this._setHoverWidgetMaxDimensions("none","none");const t=e.width,i=e.height;this._setHoverWidgetDimensions(t,i)}_updateResizableNodeMaxDimensions(){var e,t;const i=null!==(e=this._findMaximumRenderingWidth())&&void 0!==e?e:1/0,n=null!==(t=this._findMaximumRenderingHeight())&&void 0!==t?t:1/0;this._resizableNode.maxSize=new d.fg(i,n),this._setHoverWidgetMaxDimensions(i,n)}_resize(e){g._lastDimensions=new d.fg(e.width,e.height),this._setAdjustedHoverWidgetDimensions(e),this._resizableNode.layout(e.height,e.width),this._updateResizableNodeMaxDimensions(),this._hover.scrollbar.scanDomNode(),this._editor.layoutContentWidget(this),this._onDidResize.fire()}_findAvailableSpaceVertically(){var e;const t=null===(e=this._renderedHover)||void 0===e?void 0:e.showAtPosition;if(t)return 1===this._positionPreference?this._availableVerticalSpaceAbove(t):this._availableVerticalSpaceBelow(t)}_findMaximumRenderingHeight(){const e=this._findAvailableSpaceVertically();if(!e)return;let t=6;return Array.from(this._hover.contentsDomNode.children).forEach((e=>{t+=e.clientHeight})),Math.min(e,t)}_isHoverTextOverflowing(){this._hover.containerDomNode.style.setProperty("--vscode-hover-whiteSpace","nowrap"),this._hover.containerDomNode.style.setProperty("--vscode-hover-sourceWhiteSpace","nowrap");const e=Array.from(this._hover.contentsDomNode.children).some((e=>e.scrollWidth>e.clientWidth));return this._hover.containerDomNode.style.removeProperty("--vscode-hover-whiteSpace"),this._hover.containerDomNode.style.removeProperty("--vscode-hover-sourceWhiteSpace"),e}_findMaximumRenderingWidth(){if(!this._editor||!this._editor.hasModel())return;const e=this._isHoverTextOverflowing(),t=void 0===this._contentWidth?0:this._contentWidth-2;return e||this._hover.containerDomNode.clientWidththis._renderedHover.closestMouseDistance+4||(this._renderedHover.closestMouseDistance=Math.min(this._renderedHover.closestMouseDistance,n),0))}_setRenderedHover(e){var t;null===(t=this._renderedHover)||void 0===t||t.dispose(),this._renderedHover=e,this._hoverVisibleKey.set(!!e),this._hover.containerDomNode.classList.toggle("hidden",!e)}_updateFont(){const{fontSize:e,lineHeight:t}=this._editor.getOption(50),i=this._hover.contentsDomNode;i.style.fontSize=`${e}px`,i.style.lineHeight=""+t/e,Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach((e=>this._editor.applyFontInfo(e)))}_updateContent(e){const t=this._hover.contentsDomNode;t.style.paddingBottom="",t.textContent="",t.appendChild(e)}_layoutContentWidget(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_updateMaxDimensions(){const e=Math.max(this._editor.getLayoutInfo().height/4,250,g._lastDimensions.height),t=Math.max(.66*this._editor.getLayoutInfo().width,500,g._lastDimensions.width);this._setHoverWidgetMaxDimensions(t,e)}_render(e){this._setRenderedHover(e),this._updateFont(),this._updateContent(e.domNode),this._updateMaxDimensions(),this.onContentsChanged(),this._editor.render()}getPosition(){var e;return this._renderedHover?{position:this._renderedHover.showAtPosition,secondaryPosition:this._renderedHover.showAtSecondaryPosition,positionAffinity:this._renderedHover.shouldAppearBeforeContent?3:void 0,preference:[null!==(e=this._positionPreference)&&void 0!==e?e:1]}:null}show(e){var t,i,n;if(!this._editor||!this._editor.hasModel())return;this._render(e);const o=d.OK(this._hover.containerDomNode),s=e.showAtPosition;this._positionPreference=null!==(t=this._findPositionPreference(o,s))&&void 0!==t?t:1,this.onContentsChanged(),e.shouldFocus&&this._hover.containerDomNode.focus(),this._onDidResize.fire();const r=this._hover.containerDomNode.ownerDocument.activeElement===this._hover.containerDomNode&&(0,_.vr)(!0===this._configurationService.getValue("accessibility.verbosity.hover")&&this._accessibilityService.isScreenReaderOptimized(),null!==(n=null===(i=this._keybindingService.lookupKeybinding("editor.action.accessibleView"))||void 0===i?void 0:i.getAriaLabel())&&void 0!==n?n:"");r&&(this._hover.contentsDomNode.ariaLabel=this._hover.contentsDomNode.textContent+", "+r)}hide(){if(!this._renderedHover)return;const e=this._renderedHover.shouldFocus||this._hoverFocusedKey.get();this._setRenderedHover(void 0),this._resizableNode.maxSize=new d.fg(1/0,1/0),this._resizableNode.clearSashHoverState(),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),e&&this._editor.focus()}_removeConstraintsRenderNormally(){const e=this._editor.getLayoutInfo();this._resizableNode.layout(e.height,e.width),this._setHoverWidgetDimensions("auto","auto")}setMinimumDimensions(e){this._minimumSize=new d.fg(Math.max(this._minimumSize.width,e.width),Math.max(this._minimumSize.height,e.height)),this._updateMinimumWidth()}_updateMinimumWidth(){const e=void 0===this._contentWidth?this._minimumSize.width:Math.min(this._contentWidth,this._minimumSize.width);this._resizableNode.minSize=new d.fg(e,this._minimumSize.height)}onContentsChanged(){var e;this._removeConstraintsRenderNormally();const t=this._hover.containerDomNode;let i=d.OK(t),n=d.Tr(t);if(this._resizableNode.layout(i,n),this._setHoverWidgetDimensions(n,i),i=d.OK(t),n=d.Tr(t),this._contentWidth=n,this._updateMinimumWidth(),this._resizableNode.layout(i,n),null===(e=this._renderedHover)||void 0===e?void 0:e.showAtPosition){const e=d.OK(this._hover.containerDomNode);this._positionPreference=this._findPositionPreference(e,this._renderedHover.showAtPosition)}this._layoutContentWidget()}focus(){this._hover.containerDomNode.focus()}scrollUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:e-t.lineHeight})}scrollDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:e+t.lineHeight})}scrollLeft(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e-30})}scrollRight(){const e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e+30})}pageUp(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e-t})}pageDown(){const e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e+t})}goToTop(){this._hover.scrollbar.setScrollPosition({scrollTop:0})}goToBottom(){this._hover.scrollbar.setScrollPosition({scrollTop:this._hover.scrollbar.getScrollDimensions().scrollHeight})}};function C(e,t,i,n,o,s){const r=i+o/2,a=n+s/2,l=Math.max(Math.abs(e-r)-o/2,0),d=Math.max(Math.abs(t-a)-s/2,0);return Math.sqrt(l*l+d*d)}y.ID="editor.contrib.resizableContentHoverWidget",y._lastDimensions=new d.fg(0,0),y=g=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([w(1,p.fN),w(2,m.pG),w(3,f.j),w(4,a.b)],y);var k=i(47317),S=i(94327);class x{constructor(e,t,i){this.value=e,this.isComplete=t,this.hasLoadingMessage=i}}class L extends o.jG{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new b.vl),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new l.uC((()=>this._triggerAsyncComputation()),0)),this._secondWaitScheduler=this._register(new l.uC((()=>this._triggerSyncComputation()),0)),this._loadingMessageScheduler=this._register(new l.uC((()=>this._triggerLoadingMessage()),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(60).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=(0,l.bI)((e=>this._computer.computeAsync(e))),(async()=>{try{for await(const e of this._asyncIterable)e&&(this._result.push(e),this._fireResult());this._asyncIterableDone=!0,3!==this._state&&4!==this._state||this._setState(0)}catch(e){(0,S.dz)(e)}})()):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){3===this._state&&this._setState(4)}_fireResult(){if(1===this._state||2===this._state)return;const e=0===this._state,t=4===this._state;this._onResult.fire(new x(this._result.slice(0),e,t))}start(e){if(0===e)0===this._state&&(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()}}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 D=i(46311),E=i(13338);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(1!==t.type&&!t.supportsMarkerHover)return[];const i=e.getModel(),n=t.range.startLineNumber;if(n>i.getLineCount())return[];const o=i.getLineMaxColumn(n);return e.getLineDecorations(n).filter((e=>{if(e.options.isWholeLine)return!0;const i=e.range.startLineNumber===n?e.range.startColumn:1,s=e.range.endLineNumber===n?e.range.endColumn:o;if(e.options.showIfCollapsed){if(i>t.range.startColumn+1||t.range.endColumn-1>s)return!1}else if(i>t.range.startColumn||t.range.endColumn>s)return!1;return!0}))}computeAsync(e){const t=this._anchor;if(!this._editor.hasModel()||!t)return l.AE.EMPTY;const i=I._getLineDecorations(this._editor,t);return l.AE.merge(this._participants.map((n=>n.computeAsync?n.computeAsync(t,i,e):l.AE.EMPTY)))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=I._getLineDecorations(this._editor,this._anchor);let t=[];for(const i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return(0,E.Yc)(t)}}class N{constructor(e,t,i){this.anchor=e,this.hoverParts=t,this.isComplete=i}filter(e){const t=this.hoverParts.filter((t=>t.isValidForHoverAnchor(e)));return t.length===this.hoverParts.length?this:new M(this,this.anchor,t,this.isComplete)}}class M extends N{constructor(e,t,i,n){super(t,i,n),this.original=e}filter(e){return this.original.filter(e)}}var A=i(66654),T=i(74774),R=i(28061),P=i(14270),O=i(51982),F=i(3765),B=i(27682);class W extends o.jG{constructor(e,t,i,n,o,s){super();const r=t.anchor,a=t.hoverParts;this._renderedHoverParts=this._register(new V(e,i,a,s,o));const{showAtPosition:l,showAtSecondaryPosition:d}=W.computeHoverPositions(e,r.range,a);this.shouldAppearBeforeContent=a.some((e=>e.isBeforeContent)),this.showAtPosition=l,this.showAtSecondaryPosition=d,this.initialMousePosX=r.initialMousePosX,this.initialMousePosY=r.initialMousePosY,this.shouldFocus=n.shouldFocus,this.source=n.source}get domNode(){return this._renderedHoverParts.domNode}get domNodeHasChildren(){return this._renderedHoverParts.domNodeHasChildren}get focusedHoverPartIndex(){return this._renderedHoverParts.focusedHoverPartIndex}getAccessibleWidgetContent(){return this._renderedHoverParts.getAccessibleContent()}getAccessibleWidgetContentAtIndex(e){return this._renderedHoverParts.getAccessibleHoverContentAtIndex(e)}async updateHoverVerbosityLevel(e,t,i){this._renderedHoverParts.updateHoverVerbosityLevel(e,t,i)}doesHoverAtIndexSupportVerbosityAction(e,t){return this._renderedHoverParts.doesHoverAtIndexSupportVerbosityAction(e,t)}isColorPickerVisible(){return this._renderedHoverParts.isColorPickerVisible()}static computeHoverPositions(e,t,i){let n=1;if(e.hasModel()){const i=e._getViewModel(),o=i.coordinatesConverter,s=o.convertModelRangeToViewRange(t),r=i.getLineMinColumn(s.startLineNumber),a=new h.y(s.startLineNumber,r);n=o.convertViewPositionToModelPosition(a).column}const o=t.startLineNumber;let s,r,a,l=t.startColumn;for(const e of i){const t=e.range,i=t.startLineNumber===o,r=t.endLineNumber===o;if(i&&r){const e=t.startColumn,i=Math.min(l,e);l=Math.max(i,n)}e.forceShowAtRange&&(s=t)}if(s){const e=s.getStartPosition();r=e,a=e}else r=t.getStartPosition(),a=new h.y(o,l);return{showAtPosition:r,showAtSecondaryPosition:a}}}class H{constructor(e,t){this._statusBar=t,e.appendChild(this._statusBar.hoverElement)}get hoverElement(){return this._statusBar.hoverElement}get actions(){return this._statusBar.actions}dispose(){this._statusBar.dispose()}}class V extends o.jG{constructor(e,t,i,n,o){super(),this._renderedParts=[],this._focusedHoverPartIndex=-1,this._context=o,this._fragment=document.createDocumentFragment(),this._register(this._renderParts(t,i,o,n)),this._register(this._registerListenersOnRenderedParts()),this._register(this._createEditorDecorations(e,i)),this._updateMarkdownAndColorParticipantInfo(t)}_createEditorDecorations(e,t){if(0===t.length)return o.jG.None;let i=t[0].range;for(const e of t){const t=e.range;i=R.Q.plusRange(i,t)}const n=e.createDecorationsCollection();return n.set([{range:i,options:V._DECORATION_OPTIONS}]),(0,o.s)((()=>{n.clear()}))}_renderParts(e,t,i,n){const s=new A.L(n),r={fragment:this._fragment,statusBar:s,...i},a=new o.Cm;for(const i of e){const e=this._renderHoverPartsForParticipant(t,i,r);a.add(e);for(const t of e.renderedHoverParts)this._renderedParts.push({type:"hoverPart",participant:i,hoverPart:t.hoverPart,hoverElement:t.hoverElement})}const l=this._renderStatusBar(this._fragment,s);return l&&(a.add(l),this._renderedParts.push({type:"statusBar",hoverElement:l.hoverElement,actions:l.actions})),(0,o.s)((()=>{a.dispose()}))}_renderHoverPartsForParticipant(e,t,i){const n=e.filter((e=>e.owner===t));return n.length>0?t.renderHoverParts(i,n):new D.Ke([])}_renderStatusBar(e,t){if(t.hasContent)return new H(e,t)}_registerListenersOnRenderedParts(){const e=new o.Cm;return this._renderedParts.forEach(((t,i)=>{const n=t.hoverElement;n.tabIndex=0,e.add(d.ko(n,d.Bx.FOCUS_IN,(e=>{e.stopPropagation(),this._focusedHoverPartIndex=i}))),e.add(d.ko(n,d.Bx.FOCUS_OUT,(e=>{e.stopPropagation(),this._focusedHoverPartIndex=-1})))})),e}_updateMarkdownAndColorParticipantInfo(e){const t=e.find((e=>e instanceof P.xJ&&!(e instanceof B.u)));t&&(this._markdownHoverParticipant=t),this._colorHoverParticipant=e.find((e=>e instanceof O.BJ))}getAccessibleContent(){const e=[];for(let t=0;t"hoverPart"===t.type&&t.participant===e));if(-1===n)throw new S.D7;return t-n}get domNode(){return this._fragment}get domNodeHasChildren(){return this._fragment.hasChildNodes()}get focusedHoverPartIndex(){return this._focusedHoverPartIndex}}V._DECORATION_OPTIONS=T.kI.register({description:"content-hover-highlight",className:"hoverHighlight"});var z=function(e,t){return function(i,n){t(i,n,e)}};let j=class extends o.jG{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._currentResult=null,this._onContentsChanged=this._register(new b.vl),this.onContentsChanged=this._onContentsChanged.event,this._contentHoverWidget=this._register(this._instantiationService.createInstance(y,this._editor)),this._participants=this._initializeHoverParticipants(),this._computer=new I(this._editor,this._participants),this._hoverOperation=this._register(new L(this._editor,this._computer)),this._registerListeners()}_initializeHoverParticipants(){const e=[];for(const t of D.B2.getAll()){const i=this._instantiationService.createInstance(t,this._editor);e.push(i)}return e.sort(((e,t)=>e.hoverOrdinal-t.hoverOrdinal)),this._register(this._contentHoverWidget.onDidResize((()=>{this._participants.forEach((e=>{var t;return null===(t=e.handleResize)||void 0===t?void 0:t.call(e)}))}))),e}_registerListeners(){this._register(this._hoverOperation.onResult((e=>{if(!this._computer.anchor)return;const t=e.hasLoadingMessage?this._addLoadingMessage(e.value):e.value;this._withResult(new N(this._computer.anchor,t,e.isComplete))}))),this._register(d.b2(this._contentHoverWidget.getDomNode(),"keydown",(e=>{e.equals(9)&&this.hide()}))),this._register(k.dG.onDidChange((()=>{this._contentHoverWidget.position&&this._currentResult&&this._setCurrentResult(this._currentResult)})))}_startShowingOrUpdateHover(e,t,i,n,o){if(!this._contentHoverWidget.position||!this._currentResult)return!!e&&(this._startHoverOperationIfNecessary(e,t,i,n,!1),!0);const s=this._editor.getOption(60).sticky,r=o&&this._contentHoverWidget.isMouseGettingCloser(o.event.posx,o.event.posy);return s&&r?(e&&this._startHoverOperationIfNecessary(e,t,i,n,!0),!0):e?!!this._currentResult.anchor.equals(e)||(e.canAdoptVisibleHover(this._currentResult.anchor,this._contentHoverWidget.position)?(this._setCurrentResult(this._currentResult.filter(e)),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,i,n,!1),!0)):(this._setCurrentResult(null),!1)}_startHoverOperationIfNecessary(e,t,i,n,o){this._computer.anchor&&this._computer.anchor.equals(e)||(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=n,this._computer.source=i,this._computer.insistOnKeepingHoverVisible=o,this._hoverOperation.start(t))}_setCurrentResult(e){let t=e;this._currentResult!==t&&(t&&0===t.hoverParts.length&&(t=null),this._currentResult=t,this._currentResult?this._showHover(this._currentResult):this._hideHover())}_addLoadingMessage(e){if(!this._computer.anchor)return e;for(const t of this._participants){if(!t.createLoadingMessage)continue;const i=t.createLoadingMessage(this._computer.anchor);if(i)return e.slice(0).concat([i])}return e}_withResult(e){if(this._contentHoverWidget.position&&this._currentResult&&this._currentResult.isComplete||this._setCurrentResult(e),!e.isComplete)return;const t=0===e.hoverParts.length,i=this._computer.insistOnKeepingHoverVisible;t&&i||this._setCurrentResult(e)}_showHover(e){const t=this._getHoverContext();this._renderedContentHover=new W(this._editor,e,this._participants,this._computer,t,this._keybindingService),this._renderedContentHover.domNodeHasChildren?this._contentHoverWidget.show(this._renderedContentHover):this._renderedContentHover.dispose()}_hideHover(){this._contentHoverWidget.hide()}_getHoverContext(){return{hide:()=>{this.hide()},onContentsChanged:()=>{this._onContentsChanged.fire(),this._contentHoverWidget.onContentsChanged()},setMinimumDimensions:e=>{this._contentHoverWidget.setMinimumDimensions(e)}}}showsOrWillShow(e){if(this._contentHoverWidget.isResizing)return!0;const t=this._findHoverAnchorCandidates(e);if(!(t.length>0))return this._startShowingOrUpdateHover(null,0,0,!1,e);const i=t[0];return this._startShowingOrUpdateHover(i,0,0,!1,e)}_findHoverAnchorCandidates(e){const t=[];for(const i of this._participants){if(!i.suggestHoverAnchor)continue;const n=i.suggestHoverAnchor(e);n&&t.push(n)}const i=e.target;switch(i.type){case 6:t.push(new D.hx(0,i.range,e.event.posx,e.event.posy));break;case 7:{const n=this._editor.getOption(50).typicalHalfwidthCharacterWidth/2;if(i.detail.isAfterLines||"number"!=typeof i.detail.horizontalDistanceToText||!(i.detail.horizontalDistanceToTextt.priority-e.priority)),t}startShowingAtRange(e,t,i,n){this._startShowingOrUpdateHover(new D.hx(0,e,void 0,void 0),t,i,n,null)}async updateHoverVerbosityLevel(e,t,i){var n;null===(n=this._renderedContentHover)||void 0===n||n.updateHoverVerbosityLevel(e,t,i)}doesHoverAtIndexSupportVerbosityAction(e,t){var i,n;return null!==(n=null===(i=this._renderedContentHover)||void 0===i?void 0:i.doesHoverAtIndexSupportVerbosityAction(e,t))&&void 0!==n&&n}getAccessibleWidgetContent(){var e;return null===(e=this._renderedContentHover)||void 0===e?void 0:e.getAccessibleWidgetContent()}getAccessibleWidgetContentAtIndex(e){var t;return null===(t=this._renderedContentHover)||void 0===t?void 0:t.getAccessibleWidgetContentAtIndex(e)}focusedHoverPartIndex(){var e,t;return null!==(t=null===(e=this._renderedContentHover)||void 0===e?void 0:e.focusedHoverPartIndex)&&void 0!==t?t:-1}containsNode(e){return!!e&&this._contentHoverWidget.getDomNode().contains(e)}focus(){this._contentHoverWidget.focus()}scrollUp(){this._contentHoverWidget.scrollUp()}scrollDown(){this._contentHoverWidget.scrollDown()}scrollLeft(){this._contentHoverWidget.scrollLeft()}scrollRight(){this._contentHoverWidget.scrollRight()}pageUp(){this._contentHoverWidget.pageUp()}pageDown(){this._contentHoverWidget.pageDown()}goToTop(){this._contentHoverWidget.goToTop()}goToBottom(){this._contentHoverWidget.goToBottom()}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}get isColorPickerVisible(){var e,t;return null!==(t=null===(e=this._renderedContentHover)||void 0===e?void 0:e.isColorPickerVisible())&&void 0!==t&&t}get isVisibleFromKeyboard(){return this._contentHoverWidget.isVisibleFromKeyboard}get isVisible(){return this._contentHoverWidget.isVisible}get isFocused(){return this._contentHoverWidget.isFocused}get isResizing(){return this._contentHoverWidget.isResizing}get widget(){return this._contentHoverWidget}};j=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([z(1,s._Y),z(2,a.b)],j),i(61624);var U=i(86708),$=i(90028),K=i(66055);class q{get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}get lane(){return this._laneOrLine}set lane(e){this._laneOrLine=e}constructor(e){this._editor=e,this._lineNumber=-1,this._laneOrLine=K.ZS.Center}computeSync(){var e,t;const i=e=>({value:e}),n=this._editor.getLineDecorations(this._lineNumber),o=[],s="lineNo"===this._laneOrLine;if(!n)return o;for(const r of n){const n=null!==(t=null===(e=r.options.glyphMargin)||void 0===e?void 0:e.position)&&void 0!==t?t:K.ZS.Center;if(!s&&n!==this._laneOrLine)continue;const a=s?r.options.lineNumberHoverMessage:r.options.glyphMarginHoverMessage;a&&!(0,$.it)(a)&&o.push(...(0,E._j)(a).map(i))}return o}}const G=d.$;class Q extends o.jG{constructor(e,t,i){super(),this._renderDisposeables=this._register(new o.Cm),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new _.N4),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new U.T({editor:this._editor},t,i)),this._computer=new q(this._editor),this._hoverOperation=this._register(new L(this._editor,this._computer)),this._register(this._hoverOperation.onResult((e=>{this._withResult(e.value)}))),this._register(this._editor.onDidChangeModelDecorations((()=>this._onModelDecorationsChanged()))),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()}))),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return Q.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach((e=>this._editor.applyFontInfo(e)))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}showsOrWillShow(e){const t=e.target;return 2===t.type&&t.detail.glyphMarginLane?(this._startShowingAt(t.position.lineNumber,t.detail.glyphMarginLane),!0):3===t.type&&(this._startShowingAt(t.position.lineNumber,"lineNo"),!0)}_startShowingAt(e,t){this._computer.lineNumber===e&&this._computer.lane===t||(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._computer.lane=t,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const i=document.createDocumentFragment();for(const e of t){const t=G("div.hover-row.markdown-hover"),n=d.BC(t,G("div.hover-contents")),o=this._renderDisposeables.add(this._markdownRenderer.render(e.value));n.appendChild(o.element),i.appendChild(t)}this._updateContents(i),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const t=this._editor.getLayoutInfo(),i=this._editor.getTopForLineNumber(e),n=this._editor.getScrollTop(),o=this._editor.getOption(67),s=i-n-(this._hover.containerDomNode.clientHeight-o)/2,r=t.glyphMarginLeft+t.glyphMarginWidth+("lineNo"===this._computer.lane?t.lineNumbersWidth:0);this._hover.containerDomNode.style.left=`${r}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(s),0)}px`}}Q.ID="editor.contrib.modesGlyphHoverWidget";var Z,Y=function(e,t){return function(i,n){t(i,n,e)}};let X=Z=class extends o.jG{constructor(e,t,i){super(),this._editor=e,this._instantiationService=t,this._keybindingService=i,this._onHoverContentsChanged=this._register(new b.vl),this.shouldKeepOpenOnEditorMouseMoveOrLeave=!1,this._listenersStore=new o.Cm,this._hoverState={mouseDown:!1,activatedByDecoratorClick:!1},this._reactToEditorMouseMoveRunner=this._register(new l.uC((()=>this._reactToEditorMouseMove(this._mouseMoveEvent)),0)),this._hookListeners(),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(60)&&(this._unhookListeners(),this._hookListeners())})))}static get(e){return e.getContribution(Z.ID)}_hookListeners(){const e=this._editor.getOption(60);this._hoverSettings={enabled:e.enabled,sticky:e.sticky,hidingDelay:e.delay},e.enabled?(this._listenersStore.add(this._editor.onMouseDown((e=>this._onEditorMouseDown(e)))),this._listenersStore.add(this._editor.onMouseUp((()=>this._onEditorMouseUp()))),this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))):(this._listenersStore.add(this._editor.onMouseMove((e=>this._onEditorMouseMove(e)))),this._listenersStore.add(this._editor.onKeyDown((e=>this._onKeyDown(e))))),this._listenersStore.add(this._editor.onMouseLeave((e=>this._onEditorMouseLeave(e)))),this._listenersStore.add(this._editor.onDidChangeModel((()=>{this._cancelScheduler(),this._hideWidgets()}))),this._listenersStore.add(this._editor.onDidChangeModelContent((()=>this._cancelScheduler()))),this._listenersStore.add(this._editor.onDidScrollChange((e=>this._onEditorScrollChanged(e))))}_unhookListeners(){this._listenersStore.clear()}_cancelScheduler(){this._mouseMoveEvent=void 0,this._reactToEditorMouseMoveRunner.cancel()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._hoverState.mouseDown=!0,this._shouldNotHideCurrentHoverWidget(e)||this._hideWidgets()}_shouldNotHideCurrentHoverWidget(e){return!!(this._isMouseOnContentHoverWidget(e)||this._isMouseOnMarginHoverWidget(e)||this._isContentWidgetResizing())}_isMouseOnMarginHoverWidget(e){const t=e.target;return!!t&&12===t.type&&t.detail===Q.ID}_isMouseOnContentHoverWidget(e){const t=e.target;return!!t&&9===t.type&&t.detail===y.ID}_onEditorMouseUp(){this._hoverState.mouseDown=!1}_onEditorMouseLeave(e){this.shouldKeepOpenOnEditorMouseMoveOrLeave||(this._cancelScheduler(),this._shouldNotHideCurrentHoverWidget(e)||this._hideWidgets())}_shouldNotRecomputeCurrentHoverWidget(e){const t=this._hoverSettings.sticky;return!!(((e,t)=>{const i=this._isMouseOnMarginHoverWidget(e);return t&&i})(e,t)||((e,t)=>{const i=this._isMouseOnContentHoverWidget(e);return t&&i})(e,t)||(e=>{var t;const i=this._isMouseOnContentHoverWidget(e),n=null===(t=this._contentWidget)||void 0===t?void 0:t.isColorPickerVisible;return i&&n})(e)||((e,t)=>{var i,n,o,s;return t&&(null===(i=this._contentWidget)||void 0===i?void 0:i.containsNode(null===(n=e.event.browserEvent.view)||void 0===n?void 0:n.document.activeElement))&&!(null===(s=null===(o=e.event.browserEvent.view)||void 0===o?void 0:o.getSelection())||void 0===s?void 0:s.isCollapsed)})(e,t))}_onEditorMouseMove(e){var t,i,n,o;if(this.shouldKeepOpenOnEditorMouseMoveOrLeave)return;if(this._mouseMoveEvent=e,(null===(t=this._contentWidget)||void 0===t?void 0:t.isFocused)||(null===(i=this._contentWidget)||void 0===i?void 0:i.isResizing))return;const s=this._hoverSettings.sticky;if(s&&(null===(n=this._contentWidget)||void 0===n?void 0:n.isVisibleFromKeyboard))return;if(this._shouldNotRecomputeCurrentHoverWidget(e))return void this._reactToEditorMouseMoveRunner.cancel();const r=this._hoverSettings.hidingDelay;(null===(o=this._contentWidget)||void 0===o?void 0:o.isVisible)&&s&&r>0?this._reactToEditorMouseMoveRunner.isScheduled()||this._reactToEditorMouseMoveRunner.schedule(r):this._reactToEditorMouseMove(e)}_reactToEditorMouseMove(e){var t;if(!e)return;const i=null===(t=e.target.element)||void 0===t?void 0:t.classList.contains("colorpicker-color-decoration"),n=this._editor.getOption(149),o=this._hoverSettings.enabled,s=this._hoverState.activatedByDecoratorClick;i&&("click"===n&&!s||"hover"===n&&!o||"clickAndHover"===n&&!o&&!s)||!(i||o||s)?this._hideWidgets():this._tryShowHoverWidget(e,0)||this._tryShowHoverWidget(e,1)||this._hideWidgets()}_tryShowHoverWidget(e,t){const i=this._getOrCreateContentWidget(),n=this._getOrCreateGlyphWidget();let o,s;switch(t){case 0:o=i,s=n;break;case 1:o=n,s=i;break;default:throw new Error(`HoverWidgetType ${t} is unrecognized`)}const r=o.showsOrWillShow(e);return r&&s.hide(),r}_onKeyDown(e){var t;if(!this._editor.hasModel())return;const i=this._keybindingService.softDispatch(e,this._editor.getDomNode()),o=1===i.kind||2===i.kind&&(i.commandId===n.jA||i.commandId===n.jq||i.commandId===n.Zp)&&(null===(t=this._contentWidget)||void 0===t?void 0:t.isVisible);5===e.keyCode||6===e.keyCode||57===e.keyCode||4===e.keyCode||o||this._hideWidgets()}_hideWidgets(){var e,t,i;this._hoverState.mouseDown&&(null===(e=this._contentWidget)||void 0===e?void 0:e.isColorPickerVisible)||r.bo.dropDownVisible||(this._hoverState.activatedByDecoratorClick=!1,null===(t=this._glyphWidget)||void 0===t||t.hide(),null===(i=this._contentWidget)||void 0===i||i.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(j,this._editor),this._listenersStore.add(this._contentWidget.onContentsChanged((()=>this._onHoverContentsChanged.fire())))),this._contentWidget}_getOrCreateGlyphWidget(){return this._glyphWidget||(this._glyphWidget=this._instantiationService.createInstance(Q,this._editor)),this._glyphWidget}showContentHover(e,t,i,n,o=!1){this._hoverState.activatedByDecoratorClick=o,this._getOrCreateContentWidget().startShowingAtRange(e,t,i,n)}_isContentWidgetResizing(){var e;return(null===(e=this._contentWidget)||void 0===e?void 0:e.widget.isResizing)||!1}focusedHoverPartIndex(){return this._getOrCreateContentWidget().focusedHoverPartIndex()}doesHoverAtIndexSupportVerbosityAction(e,t){return this._getOrCreateContentWidget().doesHoverAtIndexSupportVerbosityAction(e,t)}updateHoverVerbosityLevel(e,t,i){this._getOrCreateContentWidget().updateHoverVerbosityLevel(e,t,i)}focus(){var e;null===(e=this._contentWidget)||void 0===e||e.focus()}scrollUp(){var e;null===(e=this._contentWidget)||void 0===e||e.scrollUp()}scrollDown(){var e;null===(e=this._contentWidget)||void 0===e||e.scrollDown()}scrollLeft(){var e;null===(e=this._contentWidget)||void 0===e||e.scrollLeft()}scrollRight(){var e;null===(e=this._contentWidget)||void 0===e||e.scrollRight()}pageUp(){var e;null===(e=this._contentWidget)||void 0===e||e.pageUp()}pageDown(){var e;null===(e=this._contentWidget)||void 0===e||e.pageDown()}goToTop(){var e;null===(e=this._contentWidget)||void 0===e||e.goToTop()}goToBottom(){var e;null===(e=this._contentWidget)||void 0===e||e.goToBottom()}getAccessibleWidgetContent(){var e;return null===(e=this._contentWidget)||void 0===e?void 0:e.getAccessibleWidgetContent()}getAccessibleWidgetContentAtIndex(e){var t;return null===(t=this._contentWidget)||void 0===t?void 0:t.getAccessibleWidgetContentAtIndex(e)}get isColorPickerVisible(){var e;return null===(e=this._contentWidget)||void 0===e?void 0:e.isColorPickerVisible}get isHoverVisible(){var e;return null===(e=this._contentWidget)||void 0===e?void 0:e.isVisible}dispose(){var e,t;super.dispose(),this._unhookListeners(),this._listenersStore.dispose(),null===(e=this._glyphWidget)||void 0===e||e.dispose(),null===(t=this._contentWidget)||void 0===t||t.dispose()}};X.ID="editor.contrib.hover",X=Z=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Y(1,s._Y),Y(2,a.b)],X)},46311:(e,t,i)=>{"use strict";i.d(t,{B2:()=>r,Ke:()=>s,hx:()=>n,mm:()=>o});class n{constructor(e,t,i,n){this.priority=e,this.range=t,this.initialMousePosX=i,this.initialMousePosY=n,this.type=1}equals(e){return 1===e.type&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return 1===e.type&&t.lineNumber===this.range.startLineNumber}}class o{constructor(e,t,i,n,o,s){this.priority=e,this.owner=t,this.range=i,this.initialMousePosX=n,this.initialMousePosY=o,this.supportsMarkerHover=s,this.type=2}equals(e){return 2===e.type&&this.owner===e.owner}canAdoptVisibleHover(e,t){return 2===e.type&&this.owner===e.owner}}class s{constructor(e){this.renderedHoverParts=e}dispose(){for(const e of this.renderedHoverParts)e.dispose()}}const r=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}}},14270:(e,t,i)=>{"use strict";i.d(t,{eH:()=>A,fm:()=>F,xJ:()=>R});var n=i(14333),o=i(13338),s=i(78903),r=i(90028),a=i(10998),l=i(86708),d=i(78166),c=i(28061),h=i(77922),u=i(46311),g=i(3765),p=i(85753),m=i(54435),f=i(52230),v=i(47317),_=i(11210),b=i(26048),w=i(58881),y=i(94327),C=i(56071),k=i(35190),S=i(90428),x=i(65958),L=i(11950),D=i(59715),E=function(e,t){return function(i,n){t(i,n,e)}};const I=n.$,N=(0,_.pU)("hover-increase-verbosity",b.W.add,g.k("increaseHoverVerbosity","Icon for increaseing hover verbosity.")),M=(0,_.pU)("hover-decrease-verbosity",b.W.remove,g.k("decreaseHoverVerbosity","Icon for decreasing hover verbosity."));class A{constructor(e,t,i,n,o,s=void 0){this.owner=e,this.range=t,this.contents=i,this.isBeforeContent=n,this.ordinal=o,this.source=s}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}class T{constructor(e,t,i){this.hover=e,this.hoverProvider=t,this.hoverPosition=i}supportsVerbosityAction(e){var t,i;switch(e){case v.M$.Increase:return null!==(t=this.hover.canIncreaseVerbosity)&&void 0!==t&&t;case v.M$.Decrease:return null!==(i=this.hover.canDecreaseVerbosity)&&void 0!==i&&i}}}let R=class{constructor(e,t,i,n,o,s,r,a){this._editor=e,this._languageService=t,this._openerService=i,this._configurationService=n,this._languageFeaturesService=o,this._keybindingService=s,this._hoverService=r,this._commandService=a,this.hoverOrdinal=3}createLoadingMessage(e){return new A(this,e.range,[(new r.Bc).appendText(g.k("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];const i=this._editor.getModel(),n=e.range.startLineNumber,s=i.getLineMaxColumn(n),a=[];let l=1e3;const d=i.getLineLength(n),h=i.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),u=this._editor.getOption(118),p=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:h});let m=!1;u>=0&&d>u&&e.range.startColumn>=u&&(m=!0,a.push(new A(this,e.range,[{value:g.k("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,l++))),!m&&"number"==typeof p&&d>=p&&a.push(new A(this,e.range,[{value:g.k("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,l++));let f=!1;for(const i of t){const t=i.range.startLineNumber===n?i.range.startColumn:1,d=i.range.endLineNumber===n?i.range.endColumn:s,h=i.options.hoverMessage;if(!h||(0,r.it)(h))continue;i.options.beforeContentClassName&&(f=!0);const u=new c.Q(e.range.startLineNumber,t,e.range.startLineNumber,d);a.push(new A(this,u,(0,o._j)(h),f,l++))}return a}computeAsync(e,t,i){if(!this._editor.hasModel()||1!==e.type)return x.AE.EMPTY;const n=this._editor.getModel(),o=this._languageFeaturesService.hoverProvider;return o.has(n)?this._getMarkdownHovers(o,n,e,i):x.AE.EMPTY}_getMarkdownHovers(e,t,i,n){const o=i.range.getStartPosition();return(0,L.U)(e,t,o,n).filter((e=>!(0,r.it)(e.hover.contents))).map((e=>{const t=e.hover.range?c.Q.lift(e.hover.range):i.range,n=new T(e.hover,e.provider,o);return new A(this,t,e.hover.contents,!1,e.ordinal,n)}))}renderHoverParts(e,t){return this._renderedHoverParts=new O(t,e.fragment,this,this._editor,this._languageService,this._openerService,this._commandService,this._keybindingService,this._hoverService,this._configurationService,e.onContentsChanged),this._renderedHoverParts}getAccessibleContent(e){var t,i;return null!==(i=null===(t=this._renderedHoverParts)||void 0===t?void 0:t.getAccessibleContent(e))&&void 0!==i?i:""}doesMarkdownHoverAtIndexSupportVerbosityAction(e,t){var i,n;return null!==(n=null===(i=this._renderedHoverParts)||void 0===i?void 0:i.doesMarkdownHoverAtIndexSupportVerbosityAction(e,t))&&void 0!==n&&n}updateMarkdownHoverVerbosityLevel(e,t,i){var n;return Promise.resolve(null===(n=this._renderedHoverParts)||void 0===n?void 0:n.updateMarkdownHoverPartVerbosityLevel(e,t,i))}};R=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([E(1,h.L),E(2,m.C),E(3,p.pG),E(4,f.u),E(5,C.b),E(6,S.TN),E(7,D.d)],R);class P{constructor(e,t,i){this.hoverPart=e,this.hoverElement=t,this.disposables=i}dispose(){this.disposables.dispose()}}class O{constructor(e,t,i,n,o,s,r,l,d,c,h){this._hoverParticipant=i,this._editor=n,this._languageService=o,this._openerService=s,this._commandService=r,this._keybindingService=l,this._hoverService=d,this._configurationService=c,this._onFinishedRendering=h,this._ongoingHoverOperations=new Map,this._disposables=new a.Cm,this.renderedHoverParts=this._renderHoverParts(e,t,this._onFinishedRendering),this._disposables.add((0,a.s)((()=>{this.renderedHoverParts.forEach((e=>{e.dispose()})),this._ongoingHoverOperations.forEach((e=>{e.tokenSource.dispose(!0)}))})))}_renderHoverParts(e,t,i){return e.sort((0,o.VE)((e=>e.ordinal),o.U9)),e.map((e=>{const n=this._renderHoverPart(e,i);return t.appendChild(n.hoverElement),n}))}_renderHoverPart(e,t){const i=this._renderMarkdownHover(e,t),n=i.hoverElement,o=e.source,s=new a.Cm;if(s.add(i),!o)return new P(e,n,s);const r=o.supportsVerbosityAction(v.M$.Increase),l=o.supportsVerbosityAction(v.M$.Decrease);if(!r&&!l)return new P(e,n,s);const d=I("div.verbosity-actions");return n.prepend(d),s.add(this._renderHoverExpansionAction(d,v.M$.Increase,r)),s.add(this._renderHoverExpansionAction(d,v.M$.Decrease,l)),new P(e,n,s)}_renderMarkdownHover(e,t){return B(this._editor,e,this._languageService,this._openerService,t)}_renderHoverExpansionAction(e,t,i){const o=new a.Cm,s=t===v.M$.Increase,r=n.BC(e,I(w.L.asCSSSelector(s?N:M)));r.tabIndex=0;const l=new S.fO("mouse",!1,{target:e,position:{hoverPosition:0}},this._configurationService,this._hoverService);if(o.add(this._hoverService.setupManagedHover(l,r,function(e,t){switch(t){case v.M$.Increase:{const t=e.lookupKeybinding(d.jq);return t?g.k("increaseVerbosityWithKb","Increase Hover Verbosity ({0})",t.getLabel()):g.k("increaseVerbosity","Increase Hover Verbosity")}case v.M$.Decrease:{const t=e.lookupKeybinding(d.Zp);return t?g.k("decreaseVerbosityWithKb","Decrease Hover Verbosity ({0})",t.getLabel()):g.k("decreaseVerbosity","Decrease Hover Verbosity")}}}(this._keybindingService,t))),!i)return r.classList.add("disabled"),o;r.classList.add("enabled");const c=()=>this._commandService.executeCommand(t===v.M$.Increase?d.jq:d.Zp);return o.add(new k.vV(r,c)),o.add(new k.M4(r,c,[3,10])),o}async updateMarkdownHoverPartVerbosityLevel(e,t,i=!0){const n=this._editor.getModel();if(!n)return;const o=this._getRenderedHoverPartAtIndex(t),s=null==o?void 0:o.hoverPart.source;if(!o||!(null==s?void 0:s.supportsVerbosityAction(e)))return;const r=await this._fetchHover(s,n,e);if(!r)return;const a=new T(r,s.hoverProvider,s.hoverPosition),l=o.hoverPart,d=new A(this._hoverParticipant,l.range,r.contents,l.isBeforeContent,l.ordinal,a),c=this._renderHoverPart(d,this._onFinishedRendering);return this._replaceRenderedHoverPartAtIndex(t,c,d),i&&this._focusOnHoverPartWithIndex(t),{hoverPart:d,hoverElement:c.hoverElement}}getAccessibleContent(e){const t=this.renderedHoverParts.findIndex((t=>t.hoverPart===e));if(-1===t)return;const i=this._getRenderedHoverPartAtIndex(t);return i?i.hoverElement.innerText.replace(/[^\S\n\r]+/gu," "):void 0}doesMarkdownHoverAtIndexSupportVerbosityAction(e,t){const i=this._getRenderedHoverPartAtIndex(e),n=null==i?void 0:i.hoverPart.source;return!(!i||!(null==n?void 0:n.supportsVerbosityAction(t)))}async _fetchHover(e,t,i){let n=i===v.M$.Increase?1:-1;const o=e.hoverProvider,r=this._ongoingHoverOperations.get(o);r&&(r.tokenSource.cancel(),n+=r.verbosityDelta);const a=new s.Qi;this._ongoingHoverOperations.set(o,{verbosityDelta:n,tokenSource:a});const l={verbosityRequest:{verbosityDelta:n,previousHover:e.hover}};let d;try{d=await Promise.resolve(o.provideHover(t,e.hoverPosition,a.token,l))}catch(e){(0,y.M_)(e)}return a.dispose(),this._ongoingHoverOperations.delete(o),d}_replaceRenderedHoverPartAtIndex(e,t,i){if(e>=this.renderedHoverParts.length||e<0)return;const n=this.renderedHoverParts[e],o=n.hoverElement,s=t.hoverElement,r=Array.from(s.children);o.replaceChildren(...r);const a=new P(i,o,t.disposables);o.focus(),n.dispose(),this.renderedHoverParts[e]=a}_focusOnHoverPartWithIndex(e){this.renderedHoverParts[e].hoverElement.focus()}_getRenderedHoverPartAtIndex(e){return this.renderedHoverParts[e]}dispose(){this._disposables.dispose()}}function F(e,t,i,n,s){t.sort((0,o.VE)((e=>e.ordinal),o.U9));const r=[];for(const o of t)r.push(B(i,o,n,s,e.onContentsChanged));return new u.Ke(r)}function B(e,t,i,o,s){const d=new a.Cm,c=I("div.hover-row"),h=I("div.hover-row-contents");c.appendChild(h);const u=t.contents;for(const t of u){if((0,r.it)(t))continue;const a=I("div.markdown-hover"),c=n.BC(a,I("div.hover-contents")),u=d.add(new l.T({editor:e},i,o));d.add(u.onDidRenderAsync((()=>{c.className="hover-contents code-hover-contents",s()})));const g=d.add(u.render(t));c.appendChild(g.element),h.appendChild(a)}return{hoverPart:t,hoverElement:c,dispose(){d.dispose()}}}},71278:(e,t,i)=>{"use strict";i.r(t);var n=i(65958),o=i(94327),s=i(62105),r=i(50946),a=i(28061),l=i(93702),d=i(38122),c=i(74774),h=i(90304),u=i(3765);class g{constructor(e,t,i){this._editRange=e,this._originalSelection=t,this._text=i}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){const i=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new l.L(i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn),i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn)):new l.L(i.endLineNumber,i.endColumn-this._text.length,i.endLineNumber,i.endColumn)}}var p=i(85072),m=i.n(p),f=i(97825),v=i.n(f),_=i(77659),b=i.n(_),w=i(55056),y=i.n(w),C=i(10540),k=i.n(C),S=i(41113),x=i.n(S),L=i(86437),D={};D.styleTagTransform=x(),D.setAttributes=y(),D.insert=b().bind(null,"head"),D.domAPI=v(),D.insertStyleElement=k(),m()(L.A,D),L.A&&L.A.locals&&L.A.locals;var E;let I=E=class{static get(e){return e.getContribution(E.ID)}constructor(e,t){this.editor=e,this.editorWorkerService=t,this.decorations=this.editor.createDecorationsCollection()}dispose(){}run(e,t){var i;null===(i=this.currentRequest)||void 0===i||i.cancel();const r=this.editor.getSelection(),d=this.editor.getModel();if(!d||!r)return;let c=r;if(c.startLineNumber!==c.endLineNumber)return;const h=new s.$t(this.editor,5),u=d.uri;return this.editorWorkerService.canNavigateValueSet(u)?(this.currentRequest=(0,n.SS)((e=>this.editorWorkerService.navigateValueSet(u,c,t))),this.currentRequest.then((t=>{var i;if(!t||!t.range||!t.value)return;if(!h.validate(this.editor))return;const s=a.Q.lift(t.range);let r=t.range;const d=t.value.length-(c.endColumn-c.startColumn);r={startLineNumber:r.startLineNumber,startColumn:r.startColumn,endLineNumber:r.endLineNumber,endColumn:r.startColumn+t.value.length},d>1&&(c=new l.L(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn+d-1));const u=new g(s,c,t.value);this.editor.pushUndoStop(),this.editor.executeCommand(e,u),this.editor.pushUndoStop(),this.decorations.set([{range:r,options:E.DECORATION}]),null===(i=this.decorationRemover)||void 0===i||i.cancel(),this.decorationRemover=(0,n.wR)(350),this.decorationRemover.then((()=>this.decorations.clear())).catch(o.dz)})).catch(o.dz)):Promise.resolve(void 0)}};var N,M;I.ID="editor.contrib.inPlaceReplaceController",I.DECORATION=c.kI.register({description:"in-place-replace",className:"valueSetReplacement"}),I=E=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(N=1,M=h.w,function(e,t){M(e,t,N)})],I);class A extends r.ks{constructor(){super({id:"editor.action.inPlaceReplace.up",label:u.k("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:d.R.writable,kbOpts:{kbExpr:d.R.editorTextFocus,primary:3159,weight:100}})}run(e,t){const i=I.get(t);return i?i.run(this.id,!1):Promise.resolve(void 0)}}class T extends r.ks{constructor(){super({id:"editor.action.inPlaceReplace.down",label:u.k("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:d.R.writable,kbOpts:{kbExpr:d.R.editorTextFocus,primary:3161,weight:100}})}run(e,t){const i=I.get(t);return i?i.run(this.id,!0):Promise.resolve(void 0)}}(0,r.HW)(I.ID,I,4),(0,r.Fl)(A),(0,r.Fl)(T)},88407:(e,t,i)=>{"use strict";i.r(t),i.d(t,{AutoIndentOnPaste:()=>A,AutoIndentOnPasteCommand:()=>M,ChangeIndentationSizeAction:()=>S,ChangeTabDisplaySize:()=>D,DetectIndentation:()=>E,IndentUsingSpaces:()=>L,IndentUsingTabs:()=>x,IndentationToSpacesAction:()=>C,IndentationToSpacesCommand:()=>O,IndentationToTabsAction:()=>k,IndentationToTabsCommand:()=>F,ReindentLinesAction:()=>I,ReindentSelectedLinesAction:()=>N});var n=i(10998),o=i(16844),s=i(50946),r=i(41672),a=i(28061),l=i(38122),d=i(52394),c=i(64830),h=i(87747),u=i(3765),g=i(73027),p=i(70645),m=i(23877),f=i(57999),v=i(93702),_=i(1032);function b(e,t,i,n){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return[];const s=t.getLanguageConfiguration(e.getLanguageId()).indentRulesSupport;if(!s)return[];const a=new _.no(e,s,t);for(n=Math.min(n,e.getLineCount());i<=n&&a.shouldIgnore(i);)i++;if(i>n-1)return[];const{tabSize:l,indentSize:d,insertSpaces:c}=e.getOptions(),h=(e,t)=>(t=t||1,r.ShiftCommand.shiftIndent(e,e.length+t,l,d,c)),u=(e,t)=>(t=t||1,r.ShiftCommand.unshiftIndent(e,e.length+t,l,d,c)),g=[],p=e.getLineContent(i);let b=o.UU(p),y=b;a.shouldIncrease(i)?(y=h(y),b=h(b)):a.shouldIndentNextLine(i)&&(y=h(y));for(let t=++i;t<=n;t++){if(w(e,t))continue;const i=e.getLineContent(t),n=o.UU(i),s=y;a.shouldDecrease(t,s)&&(y=u(y),b=u(b)),n!==y&&g.push(m.k.replaceMove(new v.L(t,1,t,n.length+1),(0,f.P)(y,d,c))),a.shouldIgnore(t)||(a.shouldIncrease(t,s)?(b=h(b),y=b):y=a.shouldIndentNextLine(t,s)?h(y):b)}return g}function w(e,t){return!!e.tokenization.isCheapToTokenize(t)&&2===e.tokenization.getLineTokens(t).getStandardTokenType(0)}var y=i(57445);class C extends s.ks{constructor(){super({id:C.ID,label:u.k("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:l.R.writable,metadata:{description:u.a("indentationToSpacesDescription","Convert the tab indentation to spaces.")}})}run(e,t){const i=t.getModel();if(!i)return;const n=i.getOptions(),o=t.getSelection();if(!o)return;const s=new O(o,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[s]),t.pushUndoStop(),i.updateOptions({insertSpaces:!0})}}C.ID="editor.action.indentationToSpaces";class k extends s.ks{constructor(){super({id:k.ID,label:u.k("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:l.R.writable,metadata:{description:u.a("indentationToTabsDescription","Convert the spaces indentation to tabs.")}})}run(e,t){const i=t.getModel();if(!i)return;const n=i.getOptions(),o=t.getSelection();if(!o)return;const s=new F(o,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[s]),t.pushUndoStop(),i.updateOptions({insertSpaces:!1})}}k.ID="editor.action.indentationToTabs";class S extends s.ks{constructor(e,t,i){super(i),this.insertSpaces=e,this.displaySizeOnly=t}run(e,t){const i=e.get(g.GK),n=e.get(c.S),o=t.getModel();if(!o)return;const s=n.getCreationOptions(o.getLanguageId(),o.uri,o.isForSimpleWidget),r=o.getOptions(),a=[1,2,3,4,5,6,7,8].map((e=>({id:e.toString(),label:e.toString(),description:e===s.tabSize&&e===r.tabSize?u.k("configuredTabSize","Configured Tab Size"):e===s.tabSize?u.k("defaultTabSize","Default Tab Size"):e===r.tabSize?u.k("currentTabSize","Current Tab Size"):void 0}))),l=Math.min(o.getOptions().tabSize-1,7);setTimeout((()=>{i.pick(a,{placeHolder:u.k({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:a[l]}).then((e=>{if(e&&o&&!o.isDisposed()){const t=parseInt(e.label,10);this.displaySizeOnly?o.updateOptions({tabSize:t}):o.updateOptions({tabSize:t,indentSize:t,insertSpaces:this.insertSpaces})}}))}),50)}}class x extends S{constructor(){super(!1,!1,{id:x.ID,label:u.k("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0,metadata:{description:u.a("indentUsingTabsDescription","Use indentation with tabs.")}})}}x.ID="editor.action.indentUsingTabs";class L extends S{constructor(){super(!0,!1,{id:L.ID,label:u.k("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0,metadata:{description:u.a("indentUsingSpacesDescription","Use indentation with spaces.")}})}}L.ID="editor.action.indentUsingSpaces";class D extends S{constructor(){super(!0,!0,{id:D.ID,label:u.k("changeTabDisplaySize","Change Tab Display Size"),alias:"Change Tab Display Size",precondition:void 0,metadata:{description:u.a("changeTabDisplaySizeDescription","Change the space size equivalent of the tab.")}})}}D.ID="editor.action.changeTabDisplaySize";class E extends s.ks{constructor(){super({id:E.ID,label:u.k("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0,metadata:{description:u.a("detectIndentationDescription","Detect the indentation from content.")}})}run(e,t){const i=e.get(c.S),n=t.getModel();if(!n)return;const o=i.getCreationOptions(n.getLanguageId(),n.uri,n.isForSimpleWidget);n.detectIndentation(o.insertSpaces,o.tabSize)}}E.ID="editor.action.detectIndentation";class I extends s.ks{constructor(){super({id:"editor.action.reindentlines",label:u.k("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:l.R.writable,metadata:{description:u.a("editor.reindentlinesDescription","Reindent the lines of the editor.")}})}run(e,t){const i=e.get(d.JZ),n=t.getModel();if(!n)return;const o=b(n,i,1,n.getLineCount());o.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,o),t.pushUndoStop())}}class N extends s.ks{constructor(){super({id:"editor.action.reindentselectedlines",label:u.k("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:l.R.writable,metadata:{description:u.a("editor.reindentselectedlinesDescription","Reindent the selected lines of the editor.")}})}run(e,t){const i=e.get(d.JZ),n=t.getModel();if(!n)return;const o=t.getSelections();if(null===o)return;const s=[];for(const e of o){let t=e.startLineNumber,o=e.endLineNumber;if(t!==o&&1===e.endColumn&&o--,1===t){if(t===o)continue}else t--;const r=b(n,i,t,o);s.push(...r)}s.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,s),t.pushUndoStop())}}class M{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(const t of e)t.range&&"string"==typeof t.text&&this._edits.push(t)}getEditOperations(e,t){for(const e of this._edits)t.addEditOperation(a.Q.lift(e.range),e.text);let i=!1;Array.isArray(this._edits)&&1===this._edits.length&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(i=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),i||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}let A=class{constructor(e,t){this.editor=e,this._languageConfigurationService=t,this.callOnDispose=new n.Cm,this.callOnModel=new n.Cm,this.callOnDispose.add(e.onDidChangeConfiguration((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModel((()=>this.update()))),this.callOnDispose.add(e.onDidChangeModelLanguage((()=>this.update())))}update(){this.callOnModel.clear(),this.editor.getOption(12)<4||this.editor.getOption(55)||this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste((({range:e})=>{this.trigger(e)})))}trigger(e){const t=this.editor.getSelections();if(null===t||t.length>1)return;const i=this.editor.getModel();if(!i)return;if(this.rangeContainsOnlyWhitespaceCharacters(i,e))return;if(function(e,t){const i=t=>2===(0,y.T)(e,t);return i(t.getStartPosition())||i(t.getEndPosition())}(i,e))return;if(!i.tokenization.isCheapToTokenize(e.getStartPosition().lineNumber))return;const n=this.editor.getOption(12),{tabSize:s,indentSize:l,insertSpaces:d}=i.getOptions(),c=[],u={shiftIndent:e=>r.ShiftCommand.shiftIndent(e,e.length+1,s,l,d),unshiftIndent:e=>r.ShiftCommand.unshiftIndent(e,e.length+1,s,l,d)};let g=e.startLineNumber;for(;g<=e.endLineNumber&&this.shouldIgnoreLine(i,g);)g++;if(g>e.endLineNumber)return;let m=i.getLineContent(g);if(!/\S/.test(m.substring(0,e.startColumn-1))){const e=(0,p.$f)(n,i,i.getLanguageId(),g,u,this._languageConfigurationService);if(null!==e){const t=o.UU(m),n=h.c(e,s);if(n!==h.c(t,s)){const e=h.k(n,s,d);c.push({range:new a.Q(g,1,g,t.length+1),text:e}),m=e+m.substring(t.length)}else{const e=(0,p.Yb)(i,g,this._languageConfigurationService);if(0===e||8===e)return}}}const f=g;for(;gi.tokenization.getLineTokens(e),getLanguageId:()=>i.getLanguageId(),getLanguageIdAtPosition:(e,t)=>i.getLanguageIdAtPosition(e,t)},getLineContent:e=>e===f?m:i.getLineContent(e)},r=(0,p.$f)(n,t,i.getLanguageId(),g+1,u,this._languageConfigurationService);if(null!==r){const t=h.c(r,s),n=h.c(o.UU(i.getLineContent(g+1)),s);if(t!==n){const r=t-n;for(let t=g+1;t<=e.endLineNumber;t++){const e=i.getLineContent(t),n=o.UU(e),l=h.c(n,s)+r,u=h.k(l,s,d);u!==n&&c.push({range:new a.Q(t,1,t,n.length+1),text:u})}}}}if(c.length>0){this.editor.pushUndoStop();const e=new M(c,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",e),this.editor.pushUndoStop()}}rangeContainsOnlyWhitespaceCharacters(e,t){const i=e=>0===e.trim().length;let n=!0;if(t.startLineNumber===t.endLineNumber)n=i(e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1));else for(let o=t.startLineNumber;o<=t.endLineNumber;o++){const s=e.getLineContent(o);if(n=o===t.startLineNumber?i(s.substring(t.startColumn-1)):o===t.endLineNumber?i(s.substring(0,t.endColumn-1)):0===e.getLineFirstNonWhitespaceColumn(o),!n)break}return n}shouldIgnoreLine(e,t){e.tokenization.forceTokenization(t);const i=e.getLineFirstNonWhitespaceColumn(t);if(0===i)return!0;const n=e.tokenization.getLineTokens(t);if(n.getCount()>0){const e=n.findTokenIndexAtOffset(i);if(e>=0&&1===n.getStandardTokenType(e))return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}};function T(e,t,i,n){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return;let o="";for(let e=0;e=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(R=1,P=d.JZ,function(e,t){P(e,t,R)})],A);class O{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),T(e,t,this.tabSize,!0)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}class F{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),T(e,t,this.tabSize,!1)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}(0,s.HW)(A.ID,A,2),(0,s.Fl)(C),(0,s.Fl)(k),(0,s.Fl)(x),(0,s.Fl)(L),(0,s.Fl)(D),(0,s.Fl)(E),(0,s.Fl)(I),(0,s.Fl)(N)},87747:(e,t,i)=>{"use strict";function n(e,t){let i=0;for(let n=0;nn,k:()=>o})},7850:(e,t,i)=>{"use strict";i.d(t,{CN:()=>u,EP:()=>d,P8:()=>h});var n=i(94327),o=i(10998),s=i(15365),r=i(28061),a=i(13072),l=i(37264);class d{constructor(e,t){this.range=e,this.direction=t}}class c{constructor(e,t,i){this.hint=e,this.anchor=t,this.provider=i,this._isResolved=!1}with(e){const t=new c(this.hint,e.anchor,this.provider);return t._isResolved=this._isResolved,t._currentResolve=this._currentResolve,t}async resolve(e){if("function"==typeof this.provider.resolveInlayHint){if(this._currentResolve){if(await this._currentResolve,e.isCancellationRequested)return;return this.resolve(e)}this._isResolved||(this._currentResolve=this._doResolve(e).finally((()=>this._currentResolve=void 0))),await this._currentResolve}}async _doResolve(e){var t,i,o;try{const n=await Promise.resolve(this.provider.resolveInlayHint(this.hint,e));this.hint.tooltip=null!==(t=null==n?void 0:n.tooltip)&&void 0!==t?t:this.hint.tooltip,this.hint.label=null!==(i=null==n?void 0:n.label)&&void 0!==i?i:this.hint.label,this.hint.textEdits=null!==(o=null==n?void 0:n.textEdits)&&void 0!==o?o:this.hint.textEdits,this._isResolved=!0}catch(e){(0,n.M_)(e),this._isResolved=!1}}}class h{static async create(e,t,i,o){const s=[],r=e.ordered(t).reverse().map((e=>i.map((async i=>{try{const n=await e.provideInlayHints(t,i,o);((null==n?void 0:n.hints.length)||e.onDidChangeInlayHints)&&s.push([null!=n?n:h._emptyInlayHintList,e])}catch(e){(0,n.M_)(e)}}))));if(await Promise.all(r.flat()),o.isCancellationRequested||t.isDisposed())throw new n.AL;return new h(i,s,t)}constructor(e,t,i){this._disposables=new o.Cm,this.ranges=e,this.provider=new Set;const n=[];for(const[e,o]of t){this._disposables.add(e),this.provider.add(o);for(const t of e.hints){const e=i.validatePosition(t.position);let s="before";const a=h._getRangeAtPosition(i,e);let l;a.getStartPosition().isBefore(e)?(l=r.Q.fromPositions(a.getStartPosition(),e),s="after"):(l=r.Q.fromPositions(e,a.getEndPosition()),s="before"),n.push(new c(t,new d(l,s),o))}}this.items=n.sort(((e,t)=>s.y.compare(e.hint.position,t.hint.position)))}dispose(){this._disposables.dispose()}static _getRangeAtPosition(e,t){const i=t.lineNumber,n=e.getWordAtPosition(t);if(n)return new r.Q(i,n.startColumn,i,n.endColumn);e.tokenization.tokenizeIfCheap(i);const o=e.tokenization.getLineTokens(i),s=t.column-1,a=o.findTokenIndexAtOffset(s);let l=o.getStartOffset(a),d=o.getEndOffset(a);return d-l==1&&(l===s&&a>1?(l=o.getStartOffset(a-1),d=o.getEndOffset(a-1)):d===s&&a{"use strict";i.r(t);var n=i(50946),o=i(46311),s=i(49998),r=i(27682);(0,n.HW)(s.M.ID,s.M,1),o.B2.register(r.u)},49998:(e,t,i)=>{"use strict";i.d(t,{M:()=>B,z:()=>O});var n,o=i(14333),s=i(13338),r=i(65958),a=i(78903),l=i(94327),d=i(10998),c=i(27992),h=i(79359),u=i(37264),g=i(58574),p=i(80878),m=i(66476),f=i(23877),v=i(28061),_=i(47317),b=i(66055),w=i(74774),y=i(12060),C=i(52230),k=i(37042),S=i(87951),x=i(7850),L=i(39504),D=i(59715),E=i(66726),I=i(82399),N=i(29879),M=i(70559),A=i(89044),T=function(e,t){return function(i,n){t(i,n,e)}};class R{constructor(){this._entries=new c.qK(50)}get(e){const t=R._key(e);return this._entries.get(t)}set(e,t){const i=R._key(e);this._entries.set(i,t)}static _key(e){return`${e.uri.toString()}/${e.getVersionId()}`}}const P=(0,I.u1)("IInlayHintsCache");(0,E.v)(P,R,1);class O{constructor(e,t){this.item=e,this.index=t}get part(){const e=this.item.hint.label;return"string"==typeof e?{label:e}:e[this.index]}}class F{constructor(e,t){this.part=e,this.hasTriggerModifier=t}}let B=n=class{static get(e){var t;return null!==(t=e.getContribution(n.ID))&&void 0!==t?t:void 0}constructor(e,t,i,n,o,s,r){this._editor=e,this._languageFeaturesService=t,this._inlayHintsCache=n,this._commandService=o,this._notificationService=s,this._instaService=r,this._disposables=new d.Cm,this._sessionDisposables=new d.Cm,this._decorationsMetadata=new Map,this._ruleFactory=new g.Qn(this._editor),this._activeRenderMode=0,this._debounceInfo=i.for(t.inlayHintsProvider,"InlayHint",{min:25}),this._disposables.add(t.inlayHintsProvider.onDidChange((()=>this._update()))),this._disposables.add(e.onDidChangeModel((()=>this._update()))),this._disposables.add(e.onDidChangeModelLanguage((()=>this._update()))),this._disposables.add(e.onDidChangeConfiguration((e=>{e.hasChanged(142)&&this._update()}))),this._update()}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){this._sessionDisposables.clear(),this._removeAllDecorations();const e=this._editor.getOption(142);if("off"===e.enabled)return;const t=this._editor.getModel();if(!t||!this._languageFeaturesService.inlayHintsProvider.has(t))return;if("on"===e.enabled)this._activeRenderMode=0;else{let t,i;"onUnlessPressed"===e.enabled?(t=0,i=1):(t=1,i=0),this._activeRenderMode=t,this._sessionDisposables.add(o.Di.getInstance().event((e=>{if(!this._editor.hasModel())return;const n=e.altKey&&e.ctrlKey&&!e.shiftKey&&!e.metaKey?i:t;if(n!==this._activeRenderMode){this._activeRenderMode=n;const e=this._editor.getModel(),t=this._copyInlayHintsWithCurrentAnchor(e);this._updateHintsDecorators([e.getFullModelRange()],t),c.schedule(0)}})))}const i=this._inlayHintsCache.get(t);let n;i&&this._updateHintsDecorators([t.getFullModelRange()],i),this._sessionDisposables.add((0,d.s)((()=>{t.isDisposed()||this._cacheHintsForFastRestore(t)})));const s=new Set,c=new r.uC((async()=>{const e=Date.now();null==n||n.dispose(!0),n=new a.Qi;const i=t.onWillDispose((()=>null==n?void 0:n.cancel()));try{const i=n.token,o=await x.P8.create(this._languageFeaturesService.inlayHintsProvider,t,this._getHintsRanges(),i);if(c.delay=this._debounceInfo.update(t,Date.now()-e),i.isCancellationRequested)return void o.dispose();for(const e of o.provider)"function"!=typeof e.onDidChangeInlayHints||s.has(e)||(s.add(e),this._sessionDisposables.add(e.onDidChangeInlayHints((()=>{c.isScheduled()||c.schedule()}))));this._sessionDisposables.add(o),this._updateHintsDecorators(o.ranges,o.items),this._cacheHintsForFastRestore(t)}catch(e){(0,l.dz)(e)}finally{n.dispose(),i.dispose()}}),this._debounceInfo.get(t));this._sessionDisposables.add(c),this._sessionDisposables.add((0,d.s)((()=>null==n?void 0:n.dispose(!0)))),c.schedule(0),this._sessionDisposables.add(this._editor.onDidScrollChange((e=>{!e.scrollTopChanged&&c.isScheduled()||c.schedule()}))),this._sessionDisposables.add(this._editor.onDidChangeModelContent((e=>{null==n||n.cancel();const t=Math.max(c.delay,1250);c.schedule(t)}))),this._sessionDisposables.add(this._installDblClickGesture((()=>c.schedule(0)))),this._sessionDisposables.add(this._installLinkGesture()),this._sessionDisposables.add(this._installContextMenu())}_installLinkGesture(){const e=new d.Cm,t=e.add(new S.gi(this._editor)),i=new d.Cm;return e.add(i),e.add(t.onMouseMoveOrRelevantKeyDown((e=>{const[t]=e,n=this._getInlayHintLabelPart(t),o=this._editor.getModel();if(!n||!o)return void i.clear();const s=new a.Qi;i.add((0,d.s)((()=>s.dispose(!0)))),n.item.resolve(s.token),this._activeInlayHintPart=n.part.command||n.part.location?new F(n,t.hasTriggerModifier):void 0;const r=o.validatePosition(n.item.hint.position).lineNumber,l=new v.Q(r,1,r,o.getLineMaxColumn(r)),c=this._getInlineHintsForRange(l);this._updateHintsDecorators([l],c),i.add((0,d.s)((()=>{this._activeInlayHintPart=void 0,this._updateHintsDecorators([l],c)})))}))),e.add(t.onCancel((()=>i.clear()))),e.add(t.onExecute((async e=>{const t=this._getInlayHintLabelPart(e);if(t){const i=t.part;i.location?this._instaService.invokeFunction(L.U,e,this._editor,i.location):_.uB.is(i.command)&&await this._invokeCommand(i.command,t.item)}}))),e}_getInlineHintsForRange(e){const t=new Set;for(const i of this._decorationsMetadata.values())e.containsRange(i.item.anchor.range)&&t.add(i.item);return Array.from(t)}_installDblClickGesture(e){return this._editor.onMouseUp((async t=>{if(2!==t.event.detail)return;const i=this._getInlayHintLabelPart(t);if(i&&(t.event.preventDefault(),await i.item.resolve(a.XO.None),(0,s.EI)(i.item.hint.textEdits))){const t=i.item.hint.textEdits.map((e=>f.k.replace(v.Q.lift(e.range),e.text)));this._editor.executeEdits("inlayHint.default",t),e()}}))}_installContextMenu(){return this._editor.onContextMenu((async e=>{if(!(0,o.sb)(e.event.target))return;const t=this._getInlayHintLabelPart(e);t&&await this._instaService.invokeFunction(L.h,this._editor,e.event.target,t)}))}_getInlayHintLabelPart(e){var t;if(6!==e.target.type)return;const i=null===(t=e.target.detail.injectedText)||void 0===t?void 0:t.options;return i instanceof w.Ho&&(null==i?void 0:i.attachedData)instanceof O?i.attachedData:void 0}async _invokeCommand(e,t){var i;try{await this._commandService.executeCommand(e.id,...null!==(i=e.arguments)&&void 0!==i?i:[])}catch(e){this._notificationService.notify({severity:N.AI.Error,source:t.provider.displayName,message:e})}}_cacheHintsForFastRestore(e){const t=this._copyInlayHintsWithCurrentAnchor(e);this._inlayHintsCache.set(e,t)}_copyInlayHintsWithCurrentAnchor(e){const t=new Map;for(const[i,n]of this._decorationsMetadata){if(t.has(n.item))continue;const o=e.getDecorationRange(i);if(o){const e=new x.EP(o,n.item.anchor.direction),i=n.item.with({anchor:e});t.set(n.item,i)}}return Array.from(t.values())}_getHintsRanges(){const e=this._editor.getModel(),t=this._editor.getVisibleRangesPlusViewportAboveBelow(),i=[];for(const n of t.sort(v.Q.compareRangesUsingStarts)){const t=e.validateRange(new v.Q(n.startLineNumber-30,n.startColumn,n.endLineNumber+30,n.endColumn));0!==i.length&&v.Q.areIntersectingOrTouching(i[i.length-1],t)?i[i.length-1]=v.Q.plusRange(i[i.length-1],t):i.push(t)}return i}_updateHintsDecorators(e,t){var i,o;const r=[],a=(e,t,i,n,o)=>{const s={content:i,inlineClassNameAffectsLetterSpacing:!0,inlineClassName:t.className,cursorStops:n,attachedData:o};r.push({item:e,classNameRef:t,decoration:{range:e.anchor.range,options:{description:"InlayHint",showIfCollapsed:e.anchor.range.isEmpty(),collapseOnReplaceEdit:!e.anchor.range.isEmpty(),stickiness:0,[e.anchor.direction]:0===this._activeRenderMode?s:void 0}}})},l=(e,t)=>{const i=this._ruleFactory.createClassNameRef({width:(d/3|0)+"px",display:"inline-block"});a(e,i," ",t?b.VW.Right:b.VW.None)},{fontSize:d,fontFamily:c,padding:h,isUniform:u}=this._getLayoutInfo(),g="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(g,c);let f={line:0,totalLen:0};for(const e of t){if(f.line!==e.anchor.range.startLineNumber&&(f={line:e.anchor.range.startLineNumber,totalLen:0}),f.totalLen>n._MAX_LABEL_LEN)continue;e.hint.paddingLeft&&l(e,!1);const t="string"==typeof e.hint.label?[{label:e.hint.label}]:e.hint.label;for(let o=0;o0&&(v=v.slice(0,-w)+"…",_=!0),a(e,this._ruleFactory.createClassNameRef(p),v.replace(/[ \t]/g," "),c&&!e.hint.paddingRight?b.VW.Right:b.VW.None,new O(e,o)),_)break}if(e.hint.paddingRight&&l(e,!0),r.length>n._MAX_DECORATORS)break}const v=[];for(const[t,i]of this._decorationsMetadata){const n=null===(o=this._editor.getModel())||void 0===o?void 0:o.getDecorationRange(t);n&&e.some((e=>e.containsRange(n)))&&(v.push(t),i.classNameRef.dispose(),this._decorationsMetadata.delete(t))}const _=p.D.capture(this._editor);this._editor.changeDecorations((e=>{const t=e.deltaDecorations(v,r.map((e=>e.decoration)));for(let e=0;ei)&&(o=i);const s=e.fontFamily||n;return{fontSize:o,fontFamily:s,padding:t,isUniform:!t&&s===n&&o===i}}_removeAllDecorations(){this._editor.removeDecorations(Array.from(this._decorationsMetadata.keys()));for(const e of this._decorationsMetadata.values())e.classNameRef.dispose();this._decorationsMetadata.clear()}};B.ID="editor.contrib.InlayHints",B._MAX_DECORATORS=1500,B._MAX_LABEL_LEN=43,B=n=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([T(1,C.u),T(2,y.U),T(3,P),T(4,D.d),T(5,N.Ot),T(6,I._Y)],B),D.w.registerCommand("_executeInlayHintProvider",(async(e,...t)=>{const[i,n]=t;(0,h.j)(u.r.isUri(i)),(0,h.j)(v.Q.isIRange(n));const{inlayHintsProvider:o}=e.get(C.u),s=await e.get(k.b).createModelReference(i);try{const e=await x.P8.create(o,s.object.textEditorModel,[v.Q.lift(n)],a.XO.None),t=e.items.map((e=>e.hint));return setTimeout((()=>e.dispose()),0),t}finally{s.dispose()}}))},27682:(e,t,i)=>{"use strict";i.d(t,{u:()=>x});var n=i(65958),o=i(90028),s=i(15365),r=i(74774),a=i(46311),l=i(77922),d=i(37042),c=i(11950),h=i(14270),u=i(49998),g=i(85753),p=i(54435),m=i(52230),f=i(3765),v=i(63339),_=i(7850),b=i(13338),w=i(56071),y=i(90428),C=i(59715),k=function(e,t){return function(i,n){t(i,n,e)}};class S extends a.mm{constructor(e,t,i,n){super(10,t,e.item.anchor.range,i,n,!0),this.part=e}}let x=class extends h.xJ{constructor(e,t,i,n,o,s,r,a,l){super(e,t,i,s,a,n,o,l),this._resolverService=r,this.hoverOrdinal=6}suggestHoverAnchor(e){var t;if(!u.M.get(this._editor))return null;if(6!==e.target.type)return null;const i=null===(t=e.target.detail.injectedText)||void 0===t?void 0:t.options;return i instanceof r.Ho&&i.attachedData instanceof u.z?new S(i.attachedData,this,e.event.posx,e.event.posy):null}computeSync(){return[]}computeAsync(e,t,i){return e instanceof S?new n.AE((async t=>{const{part:n}=e;if(await n.item.resolve(i),i.isCancellationRequested)return;let s,r;if("string"==typeof n.item.hint.tooltip?s=(new o.Bc).appendText(n.item.hint.tooltip):n.item.hint.tooltip&&(s=n.item.hint.tooltip),s&&t.emitOne(new h.eH(this,e.range,[s],!1,0)),(0,b.EI)(n.item.hint.textEdits)&&t.emitOne(new h.eH(this,e.range,[(new o.Bc).appendText((0,f.k)("hint.dbl","Double-click to insert"))],!1,10001)),"string"==typeof n.part.tooltip?r=(new o.Bc).appendText(n.part.tooltip):n.part.tooltip&&(r=n.part.tooltip),r&&t.emitOne(new h.eH(this,e.range,[r],!1,1)),n.part.location||n.part.command){let i;const s="altKey"===this._editor.getOption(78)?v.zx?(0,f.k)("links.navigate.kb.meta.mac","cmd + click"):(0,f.k)("links.navigate.kb.meta","ctrl + click"):v.zx?(0,f.k)("links.navigate.kb.alt.mac","option + click"):(0,f.k)("links.navigate.kb.alt","alt + click");n.part.location&&n.part.command?i=(new o.Bc).appendText((0,f.k)("hint.defAndCommand","Go to Definition ({0}), right click for more",s)):n.part.location?i=(new o.Bc).appendText((0,f.k)("hint.def","Go to Definition ({0})",s)):n.part.command&&(i=new o.Bc(`[${(0,f.k)("hint.cmd","Execute Command")}](${(0,_.CN)(n.part.command)} "${n.part.command.title}") (${s})`,{isTrusted:!0})),i&&t.emitOne(new h.eH(this,e.range,[i],!1,1e4))}const a=await this._resolveInlayHintLabelPartHover(n,i);for await(const e of a)t.emitOne(e)})):n.AE.EMPTY}async _resolveInlayHintLabelPartHover(e,t){if(!e.part.location)return n.AE.EMPTY;const{uri:i,range:r}=e.part.location,a=await this._resolverService.createModelReference(i);try{const i=a.object.textEditorModel;return this._languageFeaturesService.hoverProvider.has(i)?(0,c.U)(this._languageFeaturesService.hoverProvider,i,new s.y(r.startLineNumber,r.startColumn),t).filter((e=>!(0,o.it)(e.hover.contents))).map((t=>new h.eH(this,e.item.anchor.range,t.hover.contents,!1,2+t.ordinal))):n.AE.EMPTY}finally{a.dispose()}}};x=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([k(1,l.L),k(2,p.C),k(3,w.b),k(4,y.TN),k(5,g.pG),k(6,d.b),k(7,m.u),k(8,C.d)],x)},39504:(e,t,i)=>{"use strict";i.d(t,{U:()=>_,h:()=>v});var n=i(14333),o=i(27969),s=i(78903),r=i(9223),a=i(28061),l=i(37042),d=i(95976),c=i(45281),h=i(58067),u=i(59715),g=i(31540),p=i(52348),m=i(82399),f=i(29879);async function v(e,t,i,c){var g;const v=e.get(l.b),_=e.get(p.Z),b=e.get(u.d),w=e.get(m._Y),y=e.get(f.Ot);if(await c.item.resolve(s.XO.None),!c.part.location)return;const C=c.part.location,k=[],S=new Set(h.ZG.getMenuItems(h.D8.EditorContext).map((e=>(0,h.is)(e)?e.command.id:(0,r.b)())));for(const e of d.SymbolNavigationAction.all())S.has(e.desc.id)&&k.push(new o.rc(e.desc.id,h.Xe.label(e.desc,{renderShortTitle:!0}),void 0,!0,(async()=>{const i=await v.createModelReference(C.uri);try{const n=new d.SymbolNavigationAnchor(i.object.textEditorModel,a.Q.getStartPosition(C.range)),o=c.item.anchor.range;await w.invokeFunction(e.runEditorCommand.bind(e),t,n,o)}finally{i.dispose()}})));if(c.part.command){const{command:e}=c.part;k.push(new o.wv),k.push(new o.rc(e.id,e.title,void 0,!0,(async()=>{var t;try{await b.executeCommand(e.id,...null!==(t=e.arguments)&&void 0!==t?t:[])}catch(e){y.notify({severity:f.AI.Error,source:c.item.provider.displayName,message:e})}})))}const x=t.getOption(128);_.showContextMenu({domForShadowRoot:x&&null!==(g=t.getDomNode())&&void 0!==g?g:void 0,getAnchor:()=>{const e=n.BK(i);return{x:e.left,y:e.top+e.height+8}},getActions:()=>k,onHide:()=>{t.focus()},autoSelectFirstItem:!0})}async function _(e,t,i,n){const o=e.get(l.b),s=await o.createModelReference(n.uri);await i.invokeWithinContext((async e=>{const o=t.hasSideBySideModifier,r=e.get(g.fN),l=c.x2.inPeekEditor.getValue(r),h=!o&&i.getOption(89)&&!l;return new d.DefinitionAction({openToSide:o,openInPeek:h,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(e,new d.SymbolNavigationAnchor(s.object.textEditorModel,a.Q.getStartPosition(n.range)),a.Q.lift(n.range))})),s.dispose()}},11651:(e,t,i)=>{"use strict";i.d(t,{PA:()=>s,Vl:()=>o,Wt:()=>n});const n="editor.action.inlineSuggest.commit",o="editor.action.inlineSuggest.showPrevious",s="editor.action.inlineSuggest.showNext"},37652:(e,t,i)=>{"use strict";i.d(t,{AL:()=>h,Vs:()=>c,x9:()=>u,xD:()=>l,yP:()=>d});var n=i(13338),o=i(16844),s=i(15365),r=i(28061),a=i(84941);class l{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,i)=>t.equals(e.parts[i])))}renderForScreenReader(e){if(0===this.parts.length)return"";const t=this.parts[this.parts.length-1],i=e.substr(0,t.column-1);return new a.mF([...this.parts.map((e=>new a.WR(r.Q.fromPositions(new s.y(1,e.column)),e.lines.join("\n"))))]).applyToString(i).substring(this.parts[0].column-1)}isEmpty(){return this.parts.every((e=>0===e.lines.length))}get lineCount(){return 1+this.parts.reduce(((e,t)=>e+t.lines.length-1),0)}}class d{constructor(e,t,i){this.column=e,this.text=t,this.preview=i,this.lines=(0,o.uz)(this.text)}equals(e){return this.column===e.column&&this.lines.length===e.lines.length&&this.lines.every(((t,i)=>t===e.lines[i]))}}class c{constructor(e,t,i,n=0){this.lineNumber=e,this.columnRange=t,this.text=i,this.additionalReservedLineCount=n,this.parts=[new d(this.columnRange.endColumnExclusive,this.text,!1)],this.newLines=(0,o.uz)(this.text)}renderForScreenReader(e){return this.newLines.join("\n")}get lineCount(){return this.newLines.length}isEmpty(){return this.parts.every((e=>0===e.lines.length))}equals(e){return this.lineNumber===e.lineNumber&&this.columnRange.equals(e.columnRange)&&this.newLines.length===e.newLines.length&&this.newLines.every(((t,i)=>t===e.newLines[i]))&&this.additionalReservedLineCount===e.additionalReservedLineCount}}function h(e,t){return(0,n.aI)(e,t,u)}function u(e,t){return e===t||!(!e||!t)&&(e instanceof l&&t instanceof l||e instanceof c&&t instanceof c)&&e.equals(t)}},53050:(e,t,i)=>{"use strict";i.d(t,{vS:()=>B,PM:()=>P});var n=i(13021),o=i(2106),s=i(10998),r=i(16311),a=i(16844),l=i(85072),d=i.n(l),c=i(97825),h=i.n(c),u=i(77659),g=i.n(u),p=i(55056),m=i.n(p),f=i(10540),v=i.n(f),_=i(41113),b=i.n(_),w=i(58169),y={};y.styleTagTransform=b(),y.setAttributes=m(),y.insert=g().bind(null,"head"),y.domAPI=h(),y.insertStyleElement=v(),d()(w.A,y),w.A&&w.A.locals&&w.A.locals;var C=i(25837),k=i(66476),S=i(15365),x=i(28061),L=i(54324),D=i(77922),E=i(66055),I=i(57445),N=i(45561),M=i(39723),A=i(37652),T=i(14145);const R="ghost-text";let P=class extends s.jG{constructor(e,t,i){super(),this.editor=e,this.model=t,this.languageService=i,this.isDisposed=(0,r.FY)(this,!1),this.currentTextModel=(0,r.y0)(this,this.editor.onDidChangeModel,(()=>this.editor.getModel())),this.uiState=(0,r.un)(this,(e=>{if(this.isDisposed.read(e))return;const t=this.currentTextModel.read(e);if(t!==this.model.targetTextModel.read(e))return;const i=this.model.ghostText.read(e);if(!i)return;const n=i instanceof A.Vs?i.columnRange:void 0,o=[],s=[];function r(e,t){if(s.length>0){const i=s[s.length-1];t&&i.decorations.push(new N.d(i.content.length+1,i.content.length+1+e[0].length,t,0)),i.content+=e[0],e=e.slice(1)}for(const i of e)s.push({content:i,decorations:t?[new N.d(1,i.length+1,t,0)]:[]})}const a=t.getLineContent(i.lineNumber);let l,d=0;for(const e of i.parts){let t=e.lines;void 0===l?(o.push({column:e.column,text:t[0],preview:e.preview}),t=t.slice(1)):r([a.substring(d,e.column-1)],void 0),t.length>0&&(r(t,R),void 0===l&&e.column<=a.length&&(l=e.column)),d=e.column-1}void 0!==l&&r([a.substring(d)],void 0);const c=void 0!==l?new T.GM(l,a.length+1):void 0;return{replacedRange:n,inlineTexts:o,additionalLines:s,hiddenRange:c,lineNumber:i.lineNumber,additionalReservedLineCount:this.model.minReservedLineCount.read(e),targetTextModel:t}})),this.decorations=(0,r.un)(this,(e=>{const t=this.uiState.read(e);if(!t)return[];const i=[];t.replacedRange&&i.push({range:t.replacedRange.toRange(t.lineNumber),options:{inlineClassName:"inline-completion-text-to-replace",description:"GhostTextReplacement"}}),t.hiddenRange&&i.push({range:t.hiddenRange.toRange(t.lineNumber),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}});for(const e of t.inlineTexts)i.push({range:x.Q.fromPositions(new S.y(t.lineNumber,e.column)),options:{description:R,after:{content:e.text,inlineClassName:e.preview?"ghost-text-decoration-preview":"ghost-text-decoration",cursorStops:E.VW.Left},showIfCollapsed:!0}});return i})),this.additionalLinesWidget=this._register(new B(this.editor,this.languageService.languageIdCodec,(0,r.un)((e=>{const t=this.uiState.read(e);return t?{lineNumber:t.lineNumber,additionalLines:t.additionalLines,minReservedLineCount:t.additionalReservedLineCount,targetTextModel:t.targetTextModel}:void 0})))),this._register((0,s.s)((()=>{this.isDisposed.set(!0,void 0)}))),this._register((0,T.pY)(this.editor,this.decorations))}ownsViewZone(e){return this.additionalLinesWidget.viewZoneId===e}};var O,F;P=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(O=2,F=D.L,function(e,t){F(e,t,O)})],P);class B extends s.jG{get viewZoneId(){return this._viewZoneId}constructor(e,t,i){super(),this.editor=e,this.languageIdCodec=t,this.lines=i,this._viewZoneId=void 0,this.editorOptionsChanged=(0,r.yQ)("editorOptionChanged",o.Jh.filter(this.editor.onDidChangeConfiguration,(e=>e.hasChanged(33)||e.hasChanged(118)||e.hasChanged(100)||e.hasChanged(95)||e.hasChanged(51)||e.hasChanged(50)||e.hasChanged(67)))),this._register((0,r.fm)((e=>{const t=this.lines.read(e);this.editorOptionsChanged.read(e),t?this.updateLines(t.lineNumber,t.additionalLines,t.minReservedLineCount):this.clear()})))}dispose(){super.dispose(),this.clear()}clear(){this.editor.changeViewZones((e=>{this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0)}))}updateLines(e,t,i){const n=this.editor.getModel();if(!n)return;const{tabSize:o}=n.getOptions();this.editor.changeViewZones((n=>{this._viewZoneId&&(n.removeZone(this._viewZoneId),this._viewZoneId=void 0);const s=Math.max(t.length,i);if(s>0){const i=document.createElement("div");!function(e,t,i,n,o){const s=n.get(33),r=n.get(118),l=n.get(95),d=n.get(51),c=n.get(50),h=n.get(67),u=new L.fe(1e4);u.appendString('
    ');for(let e=0,n=i.length;e');const p=a.aC(g),m=a.E_(g),f=I.f.createEmpty(g,o);(0,M.UW)(new M.zL(c.isMonospace&&!s,c.canUseHalfwidthRightwardsArrow,g,!1,p,m,0,f,n.decorations,t,0,c.spaceWidth,c.middotWidth,c.wsmiddotWidth,r,"none",l,d!==k.Bc.OFF,null),u),u.appendString("
    ")}u.appendString(""),(0,C.M)(e,c);const g=u.build(),p=W?W.createHTML(g):g;e.innerHTML=p}(i,o,t,this.editor.getOptions(),this.languageIdCodec),this._viewZoneId=n.addZone({afterLineNumber:e,heightInLines:s,domNode:i,afterColumnAffinity:1})}}))}}const W=(0,n.H)("editorGhostText",{createHTML:e=>e})},14070:(e,t,i)=>{"use strict";i.d(t,{p:()=>d});var n=i(16311),o=i(16844),s=i(62549),r=i(31540),a=i(10998),l=i(3765);class d extends a.jG{constructor(e,t){super(),this.contextKeyService=e,this.model=t,this.inlineCompletionVisible=d.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=d.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=d.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService),this.suppressSuggestions=d.suppressSuggestions.bindTo(this.contextKeyService),this._register((0,n.fm)((e=>{const t=this.model.read(e),i=null==t?void 0:t.state.read(e),n=!!(null==i?void 0:i.inlineCompletion)&&void 0!==(null==i?void 0:i.primaryGhostText)&&!(null==i?void 0:i.primaryGhostText.isEmpty());this.inlineCompletionVisible.set(n),(null==i?void 0:i.primaryGhostText)&&(null==i?void 0:i.inlineCompletion)&&this.suppressSuggestions.set(i.inlineCompletion.inlineCompletion.source.inlineCompletions.suppressSuggestions)}))),this._register((0,n.fm)((e=>{const t=this.model.read(e);let i=!1,n=!0;const r=null==t?void 0:t.primaryGhostText.read(e);if((null==t?void 0:t.selectedSuggestItem)&&r&&r.parts.length>0){const{column:e,lines:a}=r.parts[0],l=a[0];if(e<=t.textModel.getLineIndentColumn(r.lineNumber)){let e=(0,o.HG)(l);-1===e&&(e=l.length-1),i=e>0;const r=t.textModel.getOptions().tabSize;n=s.A.visibleColumnFromColumn(l,e+1,r){"use strict";i.r(t);var n=i(50946),o=i(46311),s=i(16311),r=i(34442),a=i(38122),l=i(11651),d=i(14070),c=i(14333),h=i(10998),u=i(9009),g=i(65958),p=i(78903),m=i(18366),f=i(12146),v=i(79359),_=i(72521),b=i(61988),w=i(15365),y=i(12060),C=i(52230),k=i(53050),S=i(28354),x=i(13338),L=i(97393),D=i(8897),E=i(94327),I=i(16844),N=i(23877),M=i(28061),A=i(93702),T=i(84941),R=i(58357),P=i(47317),O=i(52394),F=i(37652),B=i(75637),W=i(90543),H=i(6341);function V(e,t,i){const n=i?e.range.intersectRanges(i):e.range;if(!n)return e;const o=t.getValueInRange(n,1),s=(0,I.Qp)(o,e.text),r=R.W.ofText(o.substring(0,s)).addToPosition(e.range.getStartPosition()),a=e.text.substring(s),l=M.Q.fromPositions(r,e.range.getEndPosition());return new T.WR(l,a)}function z(e,t){return e.text.startsWith(t.text)&&(i=e.range,(n=t.range).getStartPosition().equals(i.getStartPosition())&&n.getEndPosition().isBeforeOrEqual(i.getEndPosition()));var i,n}function j(e,t,i,n,o=0){let s=V(e,t);if(s.range.endLineNumber!==s.range.startLineNumber)return;const r=t.getLineContent(s.range.startLineNumber),a=(0,I.UU)(r).length;if(s.range.startColumn-1<=a){const e=(0,I.UU)(s.text).length,t=r.substring(s.range.startColumn-1,a),[i,n]=[s.range.getStartPosition(),s.range.getEndPosition()],o=i.column+t.length<=n.column?i.delta(0,t.length):n,l=M.Q.fromPositions(o,n),d=s.text.startsWith(t)?s.text.substring(t.length):s.text.substring(e);s=new T.WR(l,d)}const l=t.getValueInRange(s.range),d=function(e,t){if((null==U?void 0:U.originalValue)===e&&(null==U?void 0:U.newValue)===t)return null==U?void 0:U.changes;{let i=K(e,t,!0);if(i){const n=$(i);if(n>0){const o=K(e,t,!1);o&&$(o)0===e.originalLength));if(e.length>1||1===e.length&&e[0].originalStart!==l.length)return}const u=s.text.length-o;for(const e of d){const t=s.range.startColumn+e.originalStart+e.originalLength;if("subwordSmart"===i&&n&&n.lineNumber===s.range.startLineNumber&&t0)return;if(0===e.modifiedLength)continue;const o=e.modifiedStart+e.modifiedLength,r=Math.max(e.modifiedStart,Math.min(o,u)),a=s.text.substring(e.modifiedStart,r),l=s.text.substring(r,Math.max(e.modifiedStart,o));a.length>0&&h.push(new F.yP(t,a,!1)),l.length>0&&h.push(new F.yP(t,l,!0))}return new F.xD(c,h)}let U;function $(e){let t=0;for(const i of e)t+=i.originalLength;return t}function K(e,t,i){if(e.length>5e3||t.length>5e3)return;function n(e){let t=0;for(let i=0,n=e.length;it&&(t=n)}return t}const o=Math.max(n(e),n(t));function s(e){if(e<0)throw new Error("unexpected");return o+e+1}function r(e){let t=0,n=0;const o=new Int32Array(e.length);for(let r=0,a=e.length;ra},{getElements:()=>l}).ComputeDiff(!1).changes}var q=function(e,t){return function(i,n){t(i,n,e)}};let G=class extends h.jG{constructor(e,t,i,n,o){super(),this.textModel=e,this.versionId=t,this._debounceValue=i,this.languageFeaturesService=n,this.languageConfigurationService=o,this._updateOperation=this._register(new h.HE),this.inlineCompletions=(0,s.X2)("inlineCompletions",void 0),this.suggestWidgetInlineCompletions=(0,s.X2)("suggestWidgetInlineCompletions",void 0),this._register(this.textModel.onDidChangeContent((()=>{this._updateOperation.clear()})))}fetch(e,t,i){var n,o;const r=new Q(e,t,this.textModel.getVersionId()),a=t.selectedSuggestionInfo?this.suggestWidgetInlineCompletions:this.inlineCompletions;if(null===(n=this._updateOperation.value)||void 0===n?void 0:n.request.satisfies(r))return this._updateOperation.value.promise;if(null===(o=a.get())||void 0===o?void 0:o.request.satisfies(r))return Promise.resolve(!0);const l=!!this._updateOperation.value;this._updateOperation.clear();const d=new p.Qi,c=(async()=>{var n,o;if((l||t.triggerKind===P.qw.Automatic)&&await(n=this._debounceValue.get(this.textModel),o=d.token,new Promise((e=>{let t;const i=setTimeout((()=>{t&&t.dispose(),e()}),n);o&&(t=o.onCancellationRequested((()=>{clearTimeout(i),t&&t.dispose(),e()})))}))),d.token.isCancellationRequested||this._store.isDisposed||this.textModel.getVersionId()!==r.versionId)return!1;const c=new Date,h=await(0,W.Yk)(this.languageFeaturesService.inlineCompletionsProvider,e,this.textModel,t,d.token,this.languageConfigurationService);if(d.token.isCancellationRequested||this._store.isDisposed||this.textModel.getVersionId()!==r.versionId)return!1;const u=new Date;this._debounceValue.update(this.textModel,u.getTime()-c.getTime());const g=new Y(h,r,this.textModel,this.versionId);if(i){const t=i.toInlineCompletion(void 0);i.canBeReused(this.textModel,e)&&!h.has(t)&&g.prepend(i.inlineCompletion,t.range,!0)}return this._updateOperation.clear(),(0,s.Rn)((e=>{a.set(g,e)})),!0})(),h=new Z(r,d,c);return this._updateOperation.value=h,c}clear(e){this._updateOperation.clear(),this.inlineCompletions.set(void 0,e),this.suggestWidgetInlineCompletions.set(void 0,e)}clearSuggestWidgetInlineCompletions(e){var t;(null===(t=this._updateOperation.value)||void 0===t?void 0:t.request.context.selectedSuggestionInfo)&&this._updateOperation.clear(),this.suggestWidgetInlineCompletions.set(void 0,e)}cancelUpdate(){this._updateOperation.clear()}};G=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([q(3,C.u),q(4,O.JZ)],G);class Q{constructor(e,t,i){this.position=e,this.context=t,this.versionId=i}satisfies(e){return this.position.equals(e.position)&&(0,D.KC)(this.context.selectedSuggestionInfo,e.context.selectedSuggestionInfo,(0,D.r)())&&(e.context.triggerKind===P.qw.Automatic||this.context.triggerKind===P.qw.Explicit)&&this.versionId===e.versionId}}class Z{constructor(e,t,i){this.request=e,this.cancellationTokenSource=t,this.promise=i}dispose(){this.cancellationTokenSource.cancel()}}class Y{get inlineCompletions(){return this._inlineCompletions}constructor(e,t,i,n){this.inlineCompletionProviderResult=e,this.request=t,this._textModel=i,this._versionId=n,this._refCount=1,this._prependedInlineCompletionItems=[];const o=i.deltaDecorations([],e.completions.map((e=>({range:e.range,options:{description:"inline-completion-tracking-range"}}))));this._inlineCompletions=e.completions.map(((e,t)=>new X(e,o[t],this._textModel,this._versionId)))}clone(){return this._refCount++,this}dispose(){if(this._refCount--,0===this._refCount){setTimeout((()=>{this._textModel.isDisposed()||this._textModel.deltaDecorations(this._inlineCompletions.map((e=>e.decorationId)),[])}),0),this.inlineCompletionProviderResult.dispose();for(const e of this._prependedInlineCompletionItems)e.source.removeRef()}}prepend(e,t,i){i&&e.source.addRef();const n=this._textModel.deltaDecorations([],[{range:t,options:{description:"inline-completion-tracking-range"}}])[0];this._inlineCompletions.unshift(new X(e,n,this._textModel,this._versionId)),this._prependedInlineCompletionItems.push(e)}}class X{get forwardStable(){var e;return null!==(e=this.inlineCompletion.source.inlineCompletions.enableForwardStability)&&void 0!==e&&e}constructor(e,t,i,n){this.inlineCompletion=e,this.decorationId=t,this._textModel=i,this._modelVersion=n,this.semanticId=JSON.stringify([this.inlineCompletion.filterText,this.inlineCompletion.insertText,this.inlineCompletion.range.getStartPosition().toString()]),this._updatedRange=(0,s.C)({owner:this,equalsFn:M.Q.equalsRange},(e=>(this._modelVersion.read(e),this._textModel.getDecorationRange(this.decorationId))))}toInlineCompletion(e){var t;return this.inlineCompletion.withRange(null!==(t=this._updatedRange.read(e))&&void 0!==t?t:J)}toSingleTextEdit(e){var t;return new T.WR(null!==(t=this._updatedRange.read(e))&&void 0!==t?t:J,this.inlineCompletion.insertText)}isVisible(e,t,i){const n=V(this._toFilterTextReplacement(i),e),o=this._updatedRange.read(i);if(!o||!this.inlineCompletion.range.getStartPosition().equals(o.getStartPosition())||t.lineNumber!==n.range.startLineNumber)return!1;const s=e.getValueInRange(n.range,1),r=n.text,a=Math.max(0,t.column-n.range.startColumn);let l=r.substring(0,a),d=r.substring(a),c=s.substring(0,a),h=s.substring(a);const u=e.getLineIndentColumn(n.range.startLineNumber);return n.range.startColumn<=u&&(c=c.trimStart(),0===c.length&&(h=h.trimStart()),l=l.trimStart(),0===l.length&&(d=d.trimStart())),l.startsWith(c)&&!!(0,B.dE)(h,d)}canBeReused(e,t){const i=this._updatedRange.read(void 0);return!!i&&i.containsPosition(t)&&this.isVisible(e,t,void 0)&&R.W.ofRange(i).isGreaterThanOrEqualTo(R.W.ofRange(this.inlineCompletion.range))}_toFilterTextReplacement(e){var t;return new T.WR(null!==(t=this._updatedRange.read(e))&&void 0!==t?t:J,this.inlineCompletion.filterText)}}const J=new M.Q(1,1,1,1);var ee=i(14145),te=i(50960),ie=i(59715),ne=i(82399),oe=function(e,t){return function(i,n){t(i,n,e)}};let se=class extends h.jG{get isAcceptingPartially(){return this._isAcceptingPartially}constructor(e,t,i,n,o,r,a,l,d,c,h,u){let g;super(),this.textModel=e,this.selectedSuggestItem=t,this._textModelVersionId=i,this._positions=n,this._debounceValue=o,this._suggestPreviewEnabled=r,this._suggestPreviewMode=a,this._inlineSuggestMode=l,this._enabled=d,this._instantiationService=c,this._commandService=h,this._languageConfigurationService=u,this._source=this._register(this._instantiationService.createInstance(G,this.textModel,this._textModelVersionId,this._debounceValue)),this._isActive=(0,s.FY)(this,!1),this._forceUpdateExplicitlySignal=(0,s.Yd)(this),this._selectedInlineCompletionId=(0,s.FY)(this,void 0),this._primaryPosition=(0,s.un)(this,(e=>{var t;return null!==(t=this._positions.read(e)[0])&&void 0!==t?t:new w.y(1,1)})),this._isAcceptingPartially=!1,this._preserveCurrentCompletionReasons=new Set([re.Redo,re.Undo,re.AcceptWord]),this._fetchInlineCompletionsPromise=(0,s.nb)({owner:this,createEmptyChangeSummary:()=>({preserveCurrentCompletion:!1,inlineCompletionTriggerKind:P.qw.Automatic}),handleChange:(e,t)=>(e.didChange(this._textModelVersionId)&&this._preserveCurrentCompletionReasons.has(this._getReason(e.change))?t.preserveCurrentCompletion=!0:e.didChange(this._forceUpdateExplicitlySignal)&&(t.inlineCompletionTriggerKind=P.qw.Explicit),!0)},((e,t)=>{if(this._forceUpdateExplicitlySignal.read(e),!(this._enabled.read(e)&&this.selectedSuggestItem.read(e)||this._isActive.read(e)))return void this._source.cancelUpdate();this._textModelVersionId.read(e);const i=this._source.suggestWidgetInlineCompletions.get(),n=this.selectedSuggestItem.read(e);if(i&&!n){const e=this._source.inlineCompletions.get();(0,s.Rn)((t=>{(!e||i.request.versionId>e.request.versionId)&&this._source.inlineCompletions.set(i.clone(),t),this._source.clearSuggestWidgetInlineCompletions(t)}))}const o=this._primaryPosition.read(e),r={triggerKind:t.inlineCompletionTriggerKind,selectedSuggestionInfo:null==n?void 0:n.toSelectedSuggestionInfo()},a=this.selectedInlineCompletion.get(),l=t.preserveCurrentCompletion||(null==a?void 0:a.forwardStable)?a:void 0;return this._source.fetch(o,r,l)})),this._filteredInlineCompletionItems=(0,s.C)({owner:this,equalsFn:(0,D.S3)()},(e=>{const t=this._source.inlineCompletions.read(e);if(!t)return[];const i=this._primaryPosition.read(e),n=t.inlineCompletions.filter((t=>t.isVisible(this.textModel,i,e)));return n})),this.selectedInlineCompletionIndex=(0,s.un)(this,(e=>{const t=this._selectedInlineCompletionId.read(e),i=this._filteredInlineCompletionItems.read(e),n=void 0===this._selectedInlineCompletionId?-1:i.findIndex((e=>e.semanticId===t));return-1===n?(this._selectedInlineCompletionId.set(void 0,void 0),0):n})),this.selectedInlineCompletion=(0,s.un)(this,(e=>this._filteredInlineCompletionItems.read(e)[this.selectedInlineCompletionIndex.read(e)])),this.activeCommands=(0,s.C)({owner:this,equalsFn:(0,D.S3)()},(e=>{var t,i;return null!==(i=null===(t=this.selectedInlineCompletion.read(e))||void 0===t?void 0:t.inlineCompletion.source.inlineCompletions.commands)&&void 0!==i?i:[]})),this.lastTriggerKind=this._source.inlineCompletions.map(this,(e=>null==e?void 0:e.request.context.triggerKind)),this.inlineCompletionsCount=(0,s.un)(this,(e=>this.lastTriggerKind.read(e)===P.qw.Explicit?this._filteredInlineCompletionItems.read(e).length:void 0)),this.state=(0,s.C)({owner:this,equalsFn:(e,t)=>e&&t?(0,F.AL)(e.ghostTexts,t.ghostTexts)&&e.inlineCompletion===t.inlineCompletion&&e.suggestItem===t.suggestItem:e===t},(e=>{var t,i;const n=this.textModel,o=this.selectedSuggestItem.read(e);if(o){const s=V(o.toSingleTextEdit(),n),r=this._computeAugmentation(s,e);if(!this._suggestPreviewEnabled.read(e)&&!r)return;const a=null!==(t=null==r?void 0:r.edit)&&void 0!==t?t:s,l=r?r.edit.text.length-s.text.length:0,d=this._suggestPreviewMode.read(e),c=this._positions.read(e),h=[a,...ae(this.textModel,c,a)],u=h.map(((e,t)=>j(e,n,d,c[t],l))).filter(v.O9);return{edits:h,primaryGhostText:null!==(i=u[0])&&void 0!==i?i:new F.xD(a.range.endLineNumber,[]),ghostTexts:u,inlineCompletion:null==r?void 0:r.completion,suggestItem:o}}{if(!this._isActive.read(e))return;const t=this.selectedInlineCompletion.read(e);if(!t)return;const i=t.toSingleTextEdit(e),o=this._inlineSuggestMode.read(e),s=this._positions.read(e),r=[i,...ae(this.textModel,s,i)],a=r.map(((e,t)=>j(e,n,o,s[t],0))).filter(v.O9);if(!a[0])return;return{edits:r,primaryGhostText:a[0],ghostTexts:a,inlineCompletion:t,suggestItem:void 0}}})),this.ghostTexts=(0,s.C)({owner:this,equalsFn:F.AL},(e=>{const t=this.state.read(e);if(t)return t.ghostTexts})),this.primaryGhostText=(0,s.C)({owner:this,equalsFn:F.x9},(e=>{const t=this.state.read(e);if(t)return null==t?void 0:t.primaryGhostText})),this._register((0,s.OI)(this._fetchInlineCompletionsPromise)),this._register((0,s.fm)((e=>{var t,i;const n=this.state.read(e),o=null==n?void 0:n.inlineCompletion;if((null==o?void 0:o.semanticId)!==(null==g?void 0:g.semanticId)&&(g=o,o)){const e=o.inlineCompletion,n=e.source;null===(i=(t=n.provider).handleItemDidShow)||void 0===i||i.call(t,n.inlineCompletions,e.sourceInlineCompletion,e.insertText)}})))}_getReason(e){return(null==e?void 0:e.isUndoing)?re.Undo:(null==e?void 0:e.isRedoing)?re.Redo:this.isAcceptingPartially?re.AcceptWord:re.Other}async trigger(e){this._isActive.set(!0,e),await this._fetchInlineCompletionsPromise.get()}async triggerExplicitly(e){(0,s.PO)(e,(e=>{this._isActive.set(!0,e),this._forceUpdateExplicitlySignal.trigger(e)})),await this._fetchInlineCompletionsPromise.get()}stop(e){(0,s.PO)(e,(e=>{this._isActive.set(!1,e),this._source.clear(e)}))}_computeAugmentation(e,t){const i=this.textModel,n=this._source.suggestWidgetInlineCompletions.read(t),o=n?n.inlineCompletions:[this.selectedInlineCompletion.read(t)].filter(v.O9);return(0,L.oH)(o,(n=>{let o=n.toSingleTextEdit(t);return o=V(o,i,M.Q.fromPositions(o.range.getStartPosition(),e.range.getEndPosition())),z(o,e)?{completion:n,edit:o}:void 0}))}async _deltaSelectedInlineCompletionIndex(e){await this.triggerExplicitly();const t=this._filteredInlineCompletionItems.get()||[];if(t.length>0){const i=(this.selectedInlineCompletionIndex.get()+e+t.length)%t.length;this._selectedInlineCompletionId.set(t[i].semanticId,void 0)}else this._selectedInlineCompletionId.set(void 0,void 0)}async next(){await this._deltaSelectedInlineCompletionIndex(1)}async previous(){await this._deltaSelectedInlineCompletionIndex(-1)}async accept(e){var t;if(e.getModel()!==this.textModel)throw new E.D7;const i=this.state.get();if(!i||i.primaryGhostText.isEmpty()||!i.inlineCompletion)return;const n=i.inlineCompletion.toInlineCompletion(void 0);if(n.command&&n.source.addRef(),e.pushUndoStop(),n.snippetInfo)e.executeEdits("inlineSuggestion.accept",[N.k.replace(n.range,""),...n.additionalTextEdits]),e.setPosition(n.snippetInfo.range.getStartPosition(),"inlineCompletionAccept"),null===(t=te.SnippetController2.get(e))||void 0===t||t.insert(n.snippetInfo.snippet,{undoStopBefore:!1});else{const t=i.edits,o=le(t).map((e=>A.L.fromPositions(e)));e.executeEdits("inlineSuggestion.accept",[...t.map((e=>N.k.replace(e.range,e.text))),...n.additionalTextEdits]),e.setSelections(o,"inlineCompletionAccept")}this.stop(),n.command&&(await this._commandService.executeCommand(n.command.id,...n.command.arguments||[]).then(void 0,E.M_),n.source.removeRef())}async acceptNextWord(e){await this._acceptNext(e,((e,t)=>{const i=this.textModel.getLanguageIdAtPosition(e.lineNumber,e.column),n=this._languageConfigurationService.getLanguageConfiguration(i),o=new RegExp(n.wordDefinition.source,n.wordDefinition.flags.replace("g","")),s=t.match(o);let r=0;r=s&&void 0!==s.index?0===s.index?s[0].length:s.index:t.length;const a=/\s+/g.exec(t);return a&&void 0!==a.index&&a.index+a[0].length{const i=t.match(/\n/);return i&&void 0!==i.index?i.index+1:t.length}),1)}async _acceptNext(e,t,i){if(e.getModel()!==this.textModel)throw new E.D7;const n=this.state.get();if(!n||n.primaryGhostText.isEmpty()||!n.inlineCompletion)return;const o=n.primaryGhostText,s=n.inlineCompletion.toInlineCompletion(void 0);if(s.snippetInfo||s.filterText!==s.insertText)return void await this.accept(e);const r=o.parts[0],a=new w.y(o.lineNumber,r.column),l=r.text,d=t(a,l);if(d===l.length&&1===o.parts.length)return void this.accept(e);const c=l.substring(0,d),h=this._positions.get(),u=h[0];s.source.addRef();try{this._isAcceptingPartially=!0;try{e.pushUndoStop();const t=M.Q.fromPositions(u,a),i=e.getModel().getValueInRange(t)+c,n=new T.WR(t,i),o=[n,...ae(this.textModel,h,n)],s=le(o).map((e=>A.L.fromPositions(e)));e.executeEdits("inlineSuggestion.accept",o.map((e=>N.k.replace(e.range,e.text)))),e.setSelections(s,"inlineCompletionPartialAccept"),e.revealPositionInCenterIfOutsideViewport(e.getPosition(),1)}finally{this._isAcceptingPartially=!1}if(s.source.provider.handlePartialAccept){const t=M.Q.fromPositions(s.range.getStartPosition(),R.W.ofText(c).addToPosition(a)),n=e.getModel().getValueInRange(t,1);s.source.provider.handlePartialAccept(s.source.inlineCompletions,s.sourceInlineCompletion,n.length,{kind:i})}}finally{s.source.removeRef()}}handleSuggestAccepted(e){var t,i;const n=V(e.toSingleTextEdit(),this.textModel),o=this._computeAugmentation(n,void 0);if(!o)return;const s=o.completion.inlineCompletion;null===(i=(t=s.source.provider).handlePartialAccept)||void 0===i||i.call(t,s.source.inlineCompletions,s.sourceInlineCompletion,n.text.length,{kind:2})}};var re;function ae(e,t,i){if(1===t.length)return[];const n=t[0],o=t.slice(1),s=i.range.getStartPosition(),r=i.range.getEndPosition(),a=e.getValueInRange(M.Q.fromPositions(n,r)),l=(0,ee.tN)(n,s);if(l.lineNumber<1)return(0,E.dz)(new E.D7(`positionWithinTextEdit line number should be bigger than 0.\n\t\t\tInvalid subtraction between ${n.toString()} and ${s.toString()}`)),[];const d=function(e,t){let i="";const n=(0,I.en)(e);for(let e=t.lineNumber-1;e{const i=(0,ee.OA)((0,ee.tN)(t,s),r),n=e.getValueInRange(M.Q.fromPositions(t,i)),o=(0,I.Qp)(a,n),l=M.Q.fromPositions(t,t.delta(0,o));return new T.WR(l,d)}))}function le(e){const t=x.t9.createSortPermutation(e,(0,x.VE)((e=>e.range),M.Q.compareRangesUsingStarts)),i=new T.mF(t.apply(e)).getNewRanges();return t.inverse().apply(i).map((e=>e.getEndPosition()))}se=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([oe(9,ne._Y),oe(10,ie.d),oe(11,O.JZ)],se),function(e){e[e.Undo=0]="Undo",e[e.Redo=1]="Redo",e[e.AcceptWord=2]="AcceptWord",e[e.Other=3]="Other"}(re||(re={}));var de=i(2106),ce=i(47039),he=i(63611),ue=i(16703);class ge extends h.jG{get selectedItem(){return this._currentSuggestItemInfo}constructor(e,t,i){super(),this.editor=e,this.suggestControllerPreselector=t,this.onWillAccept=i,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentSuggestItemInfo=void 0,this._onDidSelectedItemChange=this._register(new de.vl),this.onDidSelectedItemChange=this._onDidSelectedItemChange.event,this._register(e.onKeyDown((e=>{e.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))}))),this._register(e.onKeyUp((e=>{e.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))})));const n=ue.SuggestController.get(this.editor);if(n){this._register(n.registerSelector({priority:100,select:(e,t,i)=>{const o=this.editor.getModel();if(!o)return-1;const s=this.suggestControllerPreselector(),r=s?V(s,o):void 0;if(!r)return-1;const a=w.y.lift(t),l=i.map(((e,t)=>{const i=V(pe.fromSuggestion(n,o,a,e,this.isShiftKeyPressed).toSingleTextEdit(),o);return{index:t,valid:z(r,i),prefixLength:i.text.length,suggestItem:e}})).filter((e=>e&&e.valid&&e.prefixLength>0)),d=(0,L.Cn)(l,(0,x.VE)((e=>e.prefixLength),x.U9));return d?d.index:-1}}));let e=!1;const t=()=>{e||(e=!0,this._register(n.widget.value.onDidShow((()=>{this.isSuggestWidgetVisible=!0,this.update(!0)}))),this._register(n.widget.value.onDidHide((()=>{this.isSuggestWidgetVisible=!1,this.update(!1)}))),this._register(n.widget.value.onDidFocus((()=>{this.isSuggestWidgetVisible=!0,this.update(!0)}))))};this._register(de.Jh.once(n.model.onDidTrigger)((e=>{t()}))),this._register(n.onWillInsertSuggestItem((e=>{const t=this.editor.getPosition(),i=this.editor.getModel();if(!t||!i)return;const o=pe.fromSuggestion(n,i,t,e.item,this.isShiftKeyPressed);this.onWillAccept(o)})))}this.update(this._isActive)}update(e){const t=this.getSuggestItemInfo();var i,n;this._isActive===e&&((i=this._currentSuggestItemInfo)===(n=t)||i&&n&&i.equals(n))||(this._isActive=e,this._currentSuggestItemInfo=t,this._onDidSelectedItemChange.fire())}getSuggestItemInfo(){const e=ue.SuggestController.get(this.editor);if(!e||!this.isSuggestWidgetVisible)return;const t=e.widget.value.getFocusedItem(),i=this.editor.getPosition(),n=this.editor.getModel();return t&&i&&n?pe.fromSuggestion(e,n,i,t.item,this.isShiftKeyPressed):void 0}stopForceRenderingAbove(){const e=ue.SuggestController.get(this.editor);null==e||e.stopForceRenderingAbove()}forceRenderingAbove(){const e=ue.SuggestController.get(this.editor);null==e||e.forceRenderingAbove()}}class pe{static fromSuggestion(e,t,i,n,o){let{insertText:s}=n.completion,r=!1;if(4&n.completion.insertTextRules){const e=(new ce.fr).parse(s);e.children.length<100&&he.O.adjustWhitespace(t,i,!0,e),s=e.toString(),r=!0}const a=e.getOverwriteInfo(n,o);return new pe(M.Q.fromPositions(i.delta(0,-a.overwriteBefore),i.delta(0,Math.max(a.overwriteAfter,0))),s,n.completion.kind,r)}constructor(e,t,i,n){this.range=e,this.insertText=t,this.completionItemKind=i,this.isSnippetText=n}equals(e){return this.range.equalsRange(e.range)&&this.insertText===e.insertText&&this.completionItemKind===e.completionItemKind&&this.isSnippetText===e.isSnippetText}toSelectedSuggestionInfo(){return new P.GE(this.range,this.insertText,this.completionItemKind,this.isSnippetText)}toSingleTextEdit(){return new T.WR(this.range,this.insertText)}}var me,fe=i(3765),ve=i(53909),_e=i(71285),be=i(85753),we=i(31540),ye=i(56071),Ce=function(e,t){return function(i,n){t(i,n,e)}};let ke=me=class extends h.jG{static get(e){return e.getContribution(me.ID)}constructor(e,t,i,n,o,r,a,u,y,C){super(),this.editor=e,this._instantiationService=t,this._contextKeyService=i,this._configurationService=n,this._commandService=o,this._debounceService=r,this._languageFeaturesService=a,this._accessibilitySignalService=u,this._keybindingService=y,this._accessibilityService=C,this._editorObs=(0,b.Ud)(this.editor),this._positions=(0,s.un)(this,(e=>{var t,i;return null!==(i=null===(t=this._editorObs.selections.read(e))||void 0===t?void 0:t.map((e=>e.getEndPosition())))&&void 0!==i?i:[new w.y(1,1)]})),this._suggestWidgetAdaptor=this._register(new ge(this.editor,(()=>{var e,t;return this._editorObs.forceUpdate(),null===(t=null===(e=this.model.get())||void 0===e?void 0:e.selectedInlineCompletion.get())||void 0===t?void 0:t.toSingleTextEdit(void 0)}),(e=>this._editorObs.forceUpdate((t=>{var i;null===(i=this.model.get())||void 0===i||i.handleSuggestAccepted(e)}))))),this._suggestWidgetSelectedItem=(0,s.y0)(this,(e=>this._suggestWidgetAdaptor.onDidSelectedItemChange((()=>{this._editorObs.forceUpdate((t=>e(void 0)))}))),(()=>this._suggestWidgetAdaptor.selectedItem)),this._enabledInConfig=(0,s.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(62).enabled)),this._isScreenReaderEnabled=(0,s.y0)(this,this._accessibilityService.onDidChangeScreenReaderOptimized,(()=>this._accessibilityService.isScreenReaderOptimized())),this._editorDictationInProgress=(0,s.y0)(this,this._contextKeyService.onDidChangeContext,(()=>!0===this._contextKeyService.getContext(this.editor.getDomNode()).getValue("editorDictation.inProgress"))),this._enabled=(0,s.un)(this,(e=>this._enabledInConfig.read(e)&&(!this._isScreenReaderEnabled.read(e)||!this._editorDictationInProgress.read(e)))),this._debounceValue=this._debounceService.for(this._languageFeaturesService.inlineCompletionsProvider,"InlineCompletionsDebounce",{min:50,max:50}),this.model=(0,m.a0)(this,(e=>{if(this._editorObs.isReadonly.read(e))return;const t=this._editorObs.model.read(e);return t?this._instantiationService.createInstance(se,t,this._suggestWidgetSelectedItem,this._editorObs.versionId,this._positions,this._debounceValue,(0,s.y0)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(119).preview)),(0,s.y0)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(119).previewMode)),(0,s.y0)(this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(62).mode)),this._enabled):void 0})).recomputeInitiallyAndOnChange(this._store),this._ghostTexts=(0,s.un)(this,(e=>{var t;const i=this.model.read(e);return null!==(t=null==i?void 0:i.ghostTexts.read(e))&&void 0!==t?t:[]})),this._stablizedGhostTexts=function(e,t){const i=(0,s.FY)("result",[]),n=[];return t.add((0,s.fm)((t=>{const o=e.read(t);(0,s.Rn)((e=>{if(o.length!==n.length){n.length=o.length;for(let e=0;et.set(o[i],e)))}))}))),i}(this._ghostTexts,this._store),this._ghostTextWidgets=(0,f.Rl)(this,this._stablizedGhostTexts,((e,t)=>t.add(this._instantiationService.createInstance(k.PM,this.editor,{ghostText:e,minReservedLineCount:(0,s.lk)(0),targetTextModel:this.model.map((e=>null==e?void 0:e.textModel))})))).recomputeInitiallyAndOnChange(this._store),this._playAccessibilitySignal=(0,s.Yd)(this),this._fontFamily=(0,s.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(62).fontFamily)),this._register(new d.p(this._contextKeyService,this.model)),this._register((0,b.jD)(this._editorObs.onDidType,((e,t)=>{var i;this._enabled.get()&&(null===(i=this.model.get())||void 0===i||i.trigger())}))),this._register(this._commandService.onDidExecuteCommand((t=>{new Set([_.CoreEditingCommands.Tab.id,_.CoreEditingCommands.DeleteLeft.id,_.CoreEditingCommands.DeleteRight.id,l.Wt,"acceptSelectedSuggestion"]).has(t.commandId)&&e.hasTextFocus()&&this._enabled.get()&&this._editorObs.forceUpdate((e=>{var t;null===(t=this.model.get())||void 0===t||t.trigger(e)}))}))),this._register((0,b.jD)(this._editorObs.selections,((e,t)=>{var i;t.some((e=>3===e.reason||"api"===e.source))&&(null===(i=this.model.get())||void 0===i||i.stop())}))),this._register(this.editor.onDidBlurEditorWidget((()=>{this._contextKeyService.getContextKeyValue("accessibleViewIsShown")||this._configurationService.getValue("editor.inlineSuggest.keepOnBlur")||e.getOption(62).keepOnBlur||S.bo.dropDownVisible||(0,s.Rn)((e=>{var t;null===(t=this.model.get())||void 0===t||t.stop(e)}))}))),this._register((0,s.fm)((e=>{var t;const i=null===(t=this.model.read(e))||void 0===t?void 0:t.state.read(e);(null==i?void 0:i.suggestItem)?i.primaryGhostText.lineCount>=2&&this._suggestWidgetAdaptor.forceRenderingAbove():this._suggestWidgetAdaptor.stopForceRenderingAbove()}))),this._register((0,h.s)((()=>{this._suggestWidgetAdaptor.stopForceRenderingAbove()})));const x=(0,f.ZX)(this,((e,t)=>{var i;const n=this.model.read(e),o=null==n?void 0:n.state.read(e);return this._suggestWidgetSelectedItem.get()?t:null===(i=null==o?void 0:o.inlineCompletion)||void 0===i?void 0:i.semanticId}));this._register((0,b.Qg)((0,s.un)((e=>(this._playAccessibilitySignal.read(e),x.read(e),{}))),(async(e,t,i)=>{const n=this.model.get(),o=null==n?void 0:n.state.get();if(!o||!n)return;const r=n.textModel.getLineContent(o.primaryGhostText.lineNumber);await(0,g.wR)(50,(0,p.bs)(i)),await(0,s.oJ)(this._suggestWidgetSelectedItem,v.b0,(()=>!1),(0,p.bs)(i)),await this._accessibilitySignalService.playSignal(_e.Rh.inlineSuggestion),this.editor.getOption(8)&&this._provideScreenReaderUpdate(o.primaryGhostText.renderForScreenReader(r))}))),this._register(new S.Pm(this.editor,this.model,this._instantiationService)),this._register(function(e){const t=new h.Cm,i=t.add((0,c.jh)());return t.add((0,s.fm)((t=>{i.setStyle(e.read(t))}))),t}((0,s.un)((e=>{const t=this._fontFamily.read(e);return""===t||"default"===t?"":`\n.monaco-editor .ghost-text-decoration,\n.monaco-editor .ghost-text-decoration-preview,\n.monaco-editor .ghost-text {\n\tfont-family: ${t};\n}`})))),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("accessibility.verbosity.inlineCompletions")&&this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})}))),this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})}playAccessibilitySignal(e){this._playAccessibilitySignal.trigger(e)}_provideScreenReaderUpdate(e){const t=this._contextKeyService.getContextKeyValue("accessibleViewIsShown"),i=this._keybindingService.lookupKeybinding("editor.action.accessibleView");let n;!t&&i&&this.editor.getOption(150)&&(n=(0,fe.k)("showAccessibleViewHint","Inspect this in the accessible view ({0})",i.getAriaLabel())),(0,u.xE)(n?e+", "+n:e)}shouldShowHoverAt(e){var t;const i=null===(t=this.model.get())||void 0===t?void 0:t.primaryGhostText.get();return!!i&&i.parts.some((t=>e.containsPosition(new w.y(i.lineNumber,t.column))))}shouldShowHoverAtViewZone(e){var t,i;return null!==(i=null===(t=this._ghostTextWidgets.get()[0])||void 0===t?void 0:t.ownsViewZone(e))&&void 0!==i&&i}};ke.ID="editor.contrib.inlineCompletionsController",ke=me=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Ce(1,ne._Y),Ce(2,we.fN),Ce(3,be.pG),Ce(4,ie.d),Ce(5,y.U),Ce(6,C.u),Ce(7,_e.Nt),Ce(8,ye.b),Ce(9,ve.j)],ke);var Se=i(93516),xe=i(58067);class Le extends n.ks{constructor(){super({id:Le.ID,label:fe.k("action.inlineSuggest.showNext","Show Next Inline Suggestion"),alias:"Show Next Inline Suggestion",precondition:we.M$.and(a.R.writable,d.p.inlineSuggestionVisible),kbOpts:{weight:100,primary:606}})}async run(e,t){var i;const n=ke.get(t);null===(i=null==n?void 0:n.model.get())||void 0===i||i.next()}}Le.ID=l.PA;class De extends n.ks{constructor(){super({id:De.ID,label:fe.k("action.inlineSuggest.showPrevious","Show Previous Inline Suggestion"),alias:"Show Previous Inline Suggestion",precondition:we.M$.and(a.R.writable,d.p.inlineSuggestionVisible),kbOpts:{weight:100,primary:604}})}async run(e,t){var i;const n=ke.get(t);null===(i=null==n?void 0:n.model.get())||void 0===i||i.previous()}}De.ID=l.Vl;class Ee extends n.ks{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:fe.k("action.inlineSuggest.trigger","Trigger Inline Suggestion"),alias:"Trigger Inline Suggestion",precondition:a.R.writable})}async run(e,t){const i=ke.get(t);await(0,r.fL)((async e=>{var t;await(null===(t=null==i?void 0:i.model.get())||void 0===t?void 0:t.triggerExplicitly(e)),null==i||i.playAccessibilitySignal(e)}))}}class Ie extends n.ks{constructor(){super({id:"editor.action.inlineSuggest.acceptNextWord",label:fe.k("action.inlineSuggest.acceptNextWord","Accept Next Word Of Inline Suggestion"),alias:"Accept Next Word Of Inline Suggestion",precondition:we.M$.and(a.R.writable,d.p.inlineSuggestionVisible),kbOpts:{weight:101,primary:2065,kbExpr:we.M$.and(a.R.writable,d.p.inlineSuggestionVisible)},menuOpts:[{menuId:xe.D8.InlineSuggestionToolbar,title:fe.k("acceptWord","Accept Word"),group:"primary",order:2}]})}async run(e,t){var i;const n=ke.get(t);await(null===(i=null==n?void 0:n.model.get())||void 0===i?void 0:i.acceptNextWord(n.editor))}}class Ne extends n.ks{constructor(){super({id:"editor.action.inlineSuggest.acceptNextLine",label:fe.k("action.inlineSuggest.acceptNextLine","Accept Next Line Of Inline Suggestion"),alias:"Accept Next Line Of Inline Suggestion",precondition:we.M$.and(a.R.writable,d.p.inlineSuggestionVisible),kbOpts:{weight:101},menuOpts:[{menuId:xe.D8.InlineSuggestionToolbar,title:fe.k("acceptLine","Accept Line"),group:"secondary",order:2}]})}async run(e,t){var i;const n=ke.get(t);await(null===(i=null==n?void 0:n.model.get())||void 0===i?void 0:i.acceptNextLine(n.editor))}}class Me extends n.ks{constructor(){super({id:l.Wt,label:fe.k("action.inlineSuggest.accept","Accept Inline Suggestion"),alias:"Accept Inline Suggestion",precondition:d.p.inlineSuggestionVisible,menuOpts:[{menuId:xe.D8.InlineSuggestionToolbar,title:fe.k("accept","Accept"),group:"primary",order:1}],kbOpts:{primary:2,weight:200,kbExpr:we.M$.and(d.p.inlineSuggestionVisible,a.R.tabMovesFocus.toNegated(),d.p.inlineSuggestionHasIndentationLessThanTabSize,Se.ob.Visible.toNegated(),a.R.hoverFocused.toNegated())}})}async run(e,t){var i;const n=ke.get(t);n&&(null===(i=n.model.get())||void 0===i||i.accept(n.editor),n.editor.focus())}}class Ae extends n.ks{constructor(){super({id:Ae.ID,label:fe.k("action.inlineSuggest.hide","Hide Inline Suggestion"),alias:"Hide Inline Suggestion",precondition:d.p.inlineSuggestionVisible,kbOpts:{weight:100,primary:9}})}async run(e,t){const i=ke.get(t);(0,s.Rn)((e=>{var t;null===(t=null==i?void 0:i.model.get())||void 0===t||t.stop(e)}))}}Ae.ID="editor.action.inlineSuggest.hide";class Te extends xe.L{constructor(){super({id:Te.ID,title:fe.k("action.inlineSuggest.alwaysShowToolbar","Always Show Toolbar"),f1:!1,precondition:void 0,menu:[{id:xe.D8.InlineSuggestionToolbar,group:"secondary",order:10}],toggled:we.M$.equals("config.editor.inlineSuggest.showToolbar","always")})}async run(e,t){const i=e.get(be.pG),n="always"===i.getValue("editor.inlineSuggest.showToolbar")?"onHover":"always";i.updateValue("editor.inlineSuggest.showToolbar",n)}}Te.ID="editor.action.inlineSuggest.toggleAlwaysShowToolbar";var Re=i(90028),Pe=i(77922),Oe=i(86708),Fe=i(54435),Be=i(76243),We=function(e,t){return function(i,n){t(i,n,e)}};class He{constructor(e,t,i){this.owner=e,this.range=t,this.controller=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let Ve=class{constructor(e,t,i,n,o,s){this._editor=e,this._languageService=t,this._openerService=i,this.accessibilityService=n,this._instantiationService=o,this._telemetryService=s,this.hoverOrdinal=4}suggestHoverAnchor(e){const t=ke.get(this._editor);if(!t)return null;const i=e.target;if(8===i.type){const n=i.detail;if(t.shouldShowHoverAtViewZone(n.viewZoneId))return new o.mm(1e3,this,M.Q.fromPositions(this._editor.getModel().validatePosition(n.positionBefore||n.position)),e.event.posx,e.event.posy,!1)}return 7===i.type&&t.shouldShowHoverAt(i.range)||6===i.type&&i.detail.mightBeForeignElement&&t.shouldShowHoverAt(i.range)?new o.mm(1e3,this,i.range,e.event.posx,e.event.posy,!1):null}computeSync(e,t){if("onHover"!==this._editor.getOption(62).showToolbar)return[];const i=ke.get(this._editor);return i&&i.shouldShowHoverAt(e.range)?[new He(this,e.range,i)]:[]}renderHoverParts(e,t){const i=new h.Cm,n=t[0];this._telemetryService.publicLog2("inlineCompletionHover.shown"),this.accessibilityService.isScreenReaderOptimized()&&!this._editor.getOption(8)&&i.add(this.renderScreenReaderText(e,n));const r=n.controller.model.get(),a=this._instantiationService.createInstance(S.bo,this._editor,!1,(0,s.lk)(null),r.selectedInlineCompletionIndex,r.inlineCompletionsCount,r.activeCommands),l=a.getDomNode();e.fragment.appendChild(l),r.triggerExplicitly(),i.add(a);const d={hoverPart:n,hoverElement:l,dispose(){i.dispose()}};return new o.Ke([d])}getAccessibleContent(e){return fe.k("hoverAccessibilityStatusBar","There are inline completions here")}renderScreenReaderText(e,t){const i=new h.Cm,n=c.$,o=n("div.hover-row.markdown-hover"),r=c.BC(o,n("div.hover-contents",{"aria-live":"assertive"})),a=i.add(new Oe.T({editor:this._editor},this._languageService,this._openerService));return i.add((0,s.fm)((n=>{var o;const s=null===(o=t.controller.model.read(n))||void 0===o?void 0:o.primaryGhostText.read(n);if(s){const t=this._editor.getModel().getLineContent(s.lineNumber);(t=>{i.add(a.onDidRenderAsync((()=>{r.className="hover-contents code-hover-contents",e.onContentsChanged()})));const n=fe.k("inlineSuggestionFollows","Suggestion:"),o=i.add(a.render((new Re.Bc).appendText(n).appendCodeblock("text",t)));r.replaceChildren(o.element)})(s.renderForScreenReader(t))}else c.Ln(r)}))),e.fragment.appendChild(o),i}};Ve=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([We(1,Pe.L),We(2,Fe.C),We(3,ve.j),We(4,ne._Y),We(5,Be.k)],Ve);class ze extends h.jG{constructor(){super()}}var je=i(15250);(0,n.HW)(ke.ID,ke,3),(0,n.Fl)(Ee),(0,n.Fl)(Le),(0,n.Fl)(De),(0,n.Fl)(Ie),(0,n.Fl)(Ne),(0,n.Fl)(Me),(0,n.Fl)(Ae),(0,xe.ug)(Te),o.B2.register(Ve),je.Z.register(new ze)},28354:(e,t,i)=>{"use strict";i.d(t,{Pm:()=>K,bo:()=>Q});var n=i(14333),o=i(47971),s=i(57784),r=i(27969),a=i(13338),l=i(65958),d=i(26048),c=i(10998),h=i(16311),u=i(18366),g=i(63339),p=i(58881),m=i(85072),f=i.n(m),v=i(97825),_=i.n(v),b=i(77659),w=i.n(b),y=i(55056),C=i.n(y),k=i(10540),S=i.n(k),x=i(41113),L=i.n(x),D=i(85415),E={};E.styleTagTransform=L(),E.setAttributes=C(),E.insert=w().bind(null,"head"),E.domAPI=_(),E.insertStyleElement=S(),f()(D.A,E),D.A&&D.A.locals&&D.A.locals;var I,N=i(15365),M=i(47317),A=i(11651),T=i(3765),R=i(22751),P=i(534),O=i(58067),F=i(59715),B=i(31540),W=i(52348),H=i(82399),V=i(56071),z=i(76243),j=i(11210),U=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},$=function(e,t){return function(i,n){t(i,n,e)}};let K=class extends c.jG{constructor(e,t,i){super(),this.editor=e,this.model=t,this.instantiationService=i,this.alwaysShowToolbar=(0,h.y0)(this,this.editor.onDidChangeConfiguration,(()=>"always"===this.editor.getOption(62).showToolbar)),this.sessionPosition=void 0,this.position=(0,h.un)(this,(e=>{var t,i,n;const o=null===(t=this.model.read(e))||void 0===t?void 0:t.primaryGhostText.read(e);if(!this.alwaysShowToolbar.read(e)||!o||0===o.parts.length)return this.sessionPosition=void 0,null;const s=o.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==o.lineNumber&&(this.sessionPosition=void 0);const r=new N.y(o.lineNumber,Math.min(s,null!==(n=null===(i=this.sessionPosition)||void 0===i?void 0:i.column)&&void 0!==n?n:Number.MAX_SAFE_INTEGER));return this.sessionPosition=r,r})),this._register((0,h.yC)(((t,i)=>{const n=this.model.read(t);if(!n||!this.alwaysShowToolbar.read(t))return;const o=(0,u.rm)(((t,i)=>{const o=i.add(this.instantiationService.createInstance(Q,this.editor,!0,this.position,n.selectedInlineCompletionIndex,n.inlineCompletionsCount,n.activeCommands));return e.addContentWidget(o),i.add((0,c.s)((()=>e.removeContentWidget(o)))),i.add((0,h.fm)((e=>{this.position.read(e)&&n.lastTriggerKind.read(e)!==M.qw.Explicit&&n.triggerExplicitly()}))),o})),s=(0,h.ZX)(this,((e,t)=>!!this.position.read(e)||!!t));i.add((0,h.fm)((e=>{s.read(e)&&o.read(e)})))})))}};K=U([$(2,H._Y)],K);const q=(0,j.pU)("inline-suggestion-hints-next",d.W.chevronRight,(0,T.k)("parameterHintsNextIcon","Icon for show next parameter hint.")),G=(0,j.pU)("inline-suggestion-hints-previous",d.W.chevronLeft,(0,T.k)("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let Q=I=class extends c.jG{static get dropDownVisible(){return this._dropDownVisible}createCommandAction(e,t,i){const n=new r.rc(e,t,i,!0,(()=>this._commandService.executeCommand(e))),o=this.keybindingService.lookupKeybinding(e,this._contextKeyService);let s=t;return o&&(s=(0,T.k)({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",t,o.getLabel())),n.tooltip=s,n}constructor(e,t,i,o,s,a,d,c,u,g,m){super(),this.editor=e,this.withBorder=t,this._position=i,this._currentSuggestionIdx=o,this._suggestionCount=s,this._extraCommands=a,this._commandService=d,this.keybindingService=u,this._contextKeyService=g,this._menuService=m,this.id="InlineSuggestionHintsContentWidget"+I.id++,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=(0,n.h)("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[(0,n.h)("div@toolBar")]),this.previousAction=this.createCommandAction(A.Vl,(0,T.k)("previous","Previous"),p.L.asClassName(G)),this.availableSuggestionCountAction=new r.rc("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(A.PA,(0,T.k)("next","Next"),p.L.asClassName(q)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(O.D8.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new l.uC((()=>{this.availableSuggestionCountAction.label=""}),100)),this.disableButtonsDebounced=this._register(new l.uC((()=>{this.previousAction.enabled=this.nextAction.enabled=!1}),100)),this.toolBar=this._register(c.createInstance(X,this.nodes.toolBar,O.D8.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},actionViewItemProvider:(e,t)=>{if(e instanceof O.Xe)return c.createInstance(Y,e,void 0);if(e===this.availableSuggestionCountAction){const t=new Z(void 0,e,{label:!0,icon:!1});return t.setClass("availableSuggestionCount"),t}},telemetrySource:"InlineSuggestionToolbar"})),this.toolBar.setPrependedPrimaryActions([this.previousAction,this.availableSuggestionCountAction,this.nextAction]),this._register(this.toolBar.onDidChangeDropdownVisibility((e=>{I._dropDownVisible=e}))),this._register((0,h.fm)((e=>{this._position.read(e),this.editor.layoutContentWidget(this)}))),this._register((0,h.fm)((e=>{const t=this._suggestionCount.read(e),i=this._currentSuggestionIdx.read(e);void 0!==t?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${i+1}/${t}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),void 0!==t&&t>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule()}))),this._register((0,h.fm)((e=>{const t=this._extraCommands.read(e).map((e=>({class:void 0,id:e.id,enabled:!0,tooltip:e.tooltip||"",label:e.title,run:t=>this._commandService.executeCommand(e.id)})));for(const[e,i]of this.inlineCompletionsActionsMenus.getActions())for(const e of i)e instanceof O.Xe&&t.push(e);t.length>0&&t.unshift(new r.wv),this.toolBar.setAdditionalSecondaryActions(t)})))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};Q._dropDownVisible=!1,Q.id=0,Q=I=U([$(6,F.d),$(7,H._Y),$(8,V.b),$(9,B.fN),$(10,O.ez)],Q);class Z extends o.Z4{constructor(){super(...arguments),this._className=void 0}setClass(e){this._className=e}render(e){super.render(e),this._className&&e.classList.add(this._className)}updateTooltip(){}}class Y extends R.oq{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=(0,n.h)("div.keybinding").root;this._register(new s.x(t,g.OS,{disableTitle:!0,...s.l})).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}updateTooltip(){}}let X=class extends P.p{constructor(e,t,i,n,o,s,r,a,l){super(e,{resetMenu:t,...i},n,o,s,r,a,l),this.menuId=t,this.options2=i,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,i,n,o,s,r;const a=[],l=[];(0,R.Ot)(this.menu,null===(e=this.options2)||void 0===e?void 0:e.menuOptions,{primary:a,secondary:l},null===(i=null===(t=this.options2)||void 0===t?void 0:t.toolbarOptions)||void 0===i?void 0:i.primaryGroup,null===(o=null===(n=this.options2)||void 0===n?void 0:n.toolbarOptions)||void 0===o?void 0:o.shouldInlineSubmenu,null===(r=null===(s=this.options2)||void 0===s?void 0:s.toolbarOptions)||void 0===r?void 0:r.useSeparatorsInPrimaryActions),l.push(...this.additionalActions),a.unshift(...this.prependedPrimaryActions),this.setActions(a,l)}setPrependedPrimaryActions(e){(0,a.aI)(this.prependedPrimaryActions,e,((e,t)=>e===t))||(this.prependedPrimaryActions=e,this.updateToolbar())}setAdditionalSecondaryActions(e){(0,a.aI)(this.additionalActions,e,((e,t)=>e===t))||(this.additionalActions=e,this.updateToolbar())}};X=U([$(3,O.ez),$(4,B.fN),$(5,W.Z),$(6,V.b),$(7,F.d),$(8,z.k)],X)},90543:(e,t,i)=>{"use strict";i.d(t,{Yk:()=>b});var n=i(87110),o=i(65958),s=i(78903),r=i(27992),a=i(94327),l=i(15365),d=i(28061),c=i(85702),h=i(34883),u=i(68302),g=i(60756),p=i(33206);class m{constructor(e){this.lines=e,this.tokenization={getLineTokens:e=>this.lines[e-1]}}getLineCount(){return this.lines.length}getLineLength(e){return this.lines[e-1].getLineContent().length}}var f=i(84941),v=i(14145),_=i(47039);async function b(e,t,i,n,c=s.XO.None,h){const u=t instanceof l.y?function(e,t){const i=t.getWordAtPosition(e),n=t.getLineMaxColumn(e.lineNumber);return i?new d.Q(e.lineNumber,i.startColumn,e.lineNumber,n):d.Q.fromPositions(e,e.with(void 0,n))}(t,i):t,g=e.all(i),p=new r.db;for(const e of g)e.groupId&&p.add(e.groupId,e);function m(e){if(!e.yieldsToGroupIds)return[];const t=[];for(const i of e.yieldsToGroupIds||[]){const e=p.get(i);for(const i of e)t.push(i)}return t}const f=new Map,v=new Set;function _(e,t){if(t=[...t,e],v.has(e))return t;v.add(e);try{const i=m(e);for(const e of i){const i=_(e,t);if(i)return i}}finally{v.delete(e)}}function b(e){const s=f.get(e);if(s)return s;const r=_(e,[]);r&&(0,a.M_)(new Error(`Inline completions: cyclic yield-to dependency detected. Path: ${r.map((e=>e.toString?e.toString():""+e)).join(" -> ")}`));const d=new o.Zv;return f.set(e,d.p),(async()=>{var o;if(!r){const t=m(e);for(const e of t){const t=await b(e);if(t&&t.items.length>0)return}}try{return t instanceof l.y?await e.provideInlineCompletions(i,t,n,c):await(null===(o=e.provideInlineEdits)||void 0===o?void 0:o.call(e,i,t,n,c))}catch(e){return void(0,a.M_)(e)}})().then((e=>d.complete(e)),(e=>d.error(e))),d.p}const k=await Promise.all(g.map((async e=>({provider:e,completions:await b(e)})))),S=new Map,x=[];for(const e of k){const t=e.completions;if(!t)continue;const n=new y(t,e.provider);x.push(n);for(const e of t.items){const t=C.from(e,n,u,i,h);S.set(t.hash(),t)}}return new w(Array.from(S.values()),new Set(S.keys()),x)}class w{constructor(e,t,i){this.completions=e,this.hashs=t,this.providerResults=i}has(e){return this.hashs.has(e.hash())}dispose(){for(const e of this.providerResults)e.removeRef()}}class y{constructor(e,t){this.inlineCompletions=e,this.provider=t,this.refCount=1}addRef(){this.refCount++}removeRef(){this.refCount--,0===this.refCount&&this.provider.freeInlineCompletions(this.inlineCompletions)}}class C{static from(e,t,i,o,s){let r,a,l=e.range?d.Q.lift(e.range):i;if("string"==typeof e.insertText){if(r=e.insertText,s&&e.completeBracketPairs){r=k(r,l.getStartPosition(),o,s);const t=r.length-e.insertText.length;0!==t&&(l=new d.Q(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn+t))}a=void 0}else if("snippet"in e.insertText){const t=e.insertText.snippet.length;if(s&&e.completeBracketPairs){e.insertText.snippet=k(e.insertText.snippet,l.getStartPosition(),o,s);const i=e.insertText.snippet.length-t;0!==i&&(l=new d.Q(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn+i))}const i=(new _.fr).parse(e.insertText.snippet);1===i.children.length&&i.children[0]instanceof _.EY?(r=i.children[0].value,a=void 0):(r=i.toString(),a={snippet:e.insertText.snippet,range:l})}else(0,n.xb)(e.insertText);return new C(r,e.command,l,r,a,e.additionalTextEdits||(0,v.zk)(),e,t)}constructor(e,t,i,n,o,s,r,a){this.filterText=e,this.command=t,this.range=i,this.insertText=n,this.snippetInfo=o,this.additionalTextEdits=s,this.sourceInlineCompletion=r,this.source=a,n=(e=e.replace(/\r\n|\r/g,"\n")).replace(/\r\n|\r/g,"\n")}withRange(e){return new C(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()})}toSingleTextEdit(){return new f.WR(this.range,this.insertText)}}function k(e,t,i,n){const o=i.getLineContent(t.lineNumber).substring(0,t.column-1)+e,s=i.tokenization.tokenizeLineWithEdit(t,o.length-(t.column-1),e),r=null==s?void 0:s.sliceAndInflate(t.column-1,o.length,0);if(!r)return e;const a=function(e,t){const i=new g.Mg,n=new c.Z(i,(e=>t.getLanguageConfiguration(e))),o=new p.tk(new m([e]),n),s=(0,u.T)(o,[],void 0,!0);let r="";const a=e.getLineContent();return function e(t,i){if(2===t.kind)if(e(t.openingBracket,i),i=(0,h.QB)(i,t.openingBracket.length),t.child&&(e(t.child,i),i=(0,h.QB)(i,t.child.length)),t.closingBracket)e(t.closingBracket,i),i=(0,h.QB)(i,t.closingBracket.length);else{const e=n.getSingleLanguageBracketTokens(t.openingBracket.languageId).findClosingTokenText(t.openingBracket.bracketIds);r+=e}else if(3===t.kind);else if(0===t.kind||1===t.kind)r+=a.substring((0,h.sS)(i),(0,h.sS)((0,h.QB)(i,t.length)));else if(4===t.kind)for(const n of t.children)e(n,i),i=(0,h.QB)(i,n.length)}(s,h.Vp),r}(r,n);return a}},14145:(e,t,i)=>{"use strict";i.d(t,{GM:()=>c,OA:()=>u,pY:()=>h,tN:()=>g,zk:()=>d});var n=i(94327),o=i(10998),s=i(16311),r=i(15365),a=i(28061);const l=[];function d(){return l}class c{constructor(e,t){if(this.startColumn=e,this.endColumnExclusive=t,e>t)throw new n.D7(`startColumn ${e} cannot be after endColumnExclusive ${t}`)}toRange(e){return new a.Q(e,this.startColumn,e,this.endColumnExclusive)}equals(e){return this.startColumn===e.startColumn&&this.endColumnExclusive===e.endColumnExclusive}}function h(e,t){const i=new o.Cm,n=e.createDecorationsCollection();return i.add((0,s.zL)({debugName:()=>`Apply decorations from ${t.debugName}`},(e=>{const i=t.read(e);n.set(i)}))),i.add({dispose:()=>{n.clear()}}),i}function u(e,t){return new r.y(e.lineNumber+t.lineNumber-1,1===t.lineNumber?e.column+t.column-1:t.column)}function g(e,t){return new r.y(e.lineNumber-t.lineNumber+1,e.lineNumber-t.lineNumber==0?e.column-t.column+1:e.column)}},10668:(e,t,i)=>{"use strict";i.r(t);var n=i(50946),o=i(46311),s=i(38122),r=i(10998),a=i(16311),l=i(23877),d=i(15365),c=i(28061),h=i(85072),u=i.n(h),g=i(97825),p=i.n(g),m=i(77659),f=i.n(m),v=i(55056),_=i.n(v),b=i(10540),w=i.n(b),y=i(41113),C=i.n(y),k=i(61935),S={};S.styleTagTransform=C(),S.setAttributes=_(),S.insert=f().bind(null,"head"),S.domAPI=p(),S.insertStyleElement=w(),u()(k.A,S),k.A&&k.A.locals&&k.A.locals;var x=i(77922),L=i(66055),D=i(45561),E=i(53050),I=i(14145);const N="inline-edit";let M=class extends r.jG{constructor(e,t,i){super(),this.editor=e,this.model=t,this.languageService=i,this.isDisposed=(0,a.FY)(this,!1),this.currentTextModel=(0,a.y0)(this,this.editor.onDidChangeModel,(()=>this.editor.getModel())),this.uiState=(0,a.un)(this,(e=>{var t;if(this.isDisposed.read(e))return;const i=this.currentTextModel.read(e);if(i!==this.model.targetTextModel.read(e))return;const n=this.model.ghostText.read(e);if(!n)return;let o=null===(t=this.model.range)||void 0===t?void 0:t.read(e);o&&o.startLineNumber===o.endLineNumber&&o.startColumn===o.endColumn&&(o=void 0);const s=(!o||o.startLineNumber===o.endLineNumber)&&1===n.parts.length&&1===n.parts[0].lines.length,r=1===n.parts.length&&n.parts[0].lines.every((e=>0===e.length)),a=[],l=[];function d(e,t){if(l.length>0){const i=l[l.length-1];t&&i.decorations.push(new D.d(i.content.length+1,i.content.length+1+e[0].length,t,0)),i.content+=e[0],e=e.slice(1)}for(const i of e)l.push({content:i,decorations:t?[new D.d(1,i.length+1,t,0)]:[]})}const c=i.getLineContent(n.lineNumber);let h,u=0;if(!r){for(const e of n.parts){let t=e.lines;o&&!s&&(d(t,N),t=[]),void 0===h?(a.push({column:e.column,text:t[0],preview:e.preview}),t=t.slice(1)):d([c.substring(u,e.column-1)],void 0),t.length>0&&(d(t,N),void 0===h&&e.column<=c.length&&(h=e.column)),u=e.column-1}void 0!==h&&d([c.substring(u)],void 0)}const g=void 0!==h?new I.GM(h,c.length+1):void 0,p=s||!o?n.lineNumber:o.endLineNumber-1;return{inlineTexts:a,additionalLines:l,hiddenRange:g,lineNumber:p,additionalReservedLineCount:this.model.minReservedLineCount.read(e),targetTextModel:i,range:o,isSingleLine:s,isPureRemove:r,backgroundColoring:this.model.backgroundColoring.read(e)}})),this.decorations=(0,a.un)(this,(e=>{const t=this.uiState.read(e);if(!t)return[];const i=[];if(t.hiddenRange&&i.push({range:t.hiddenRange.toRange(t.lineNumber),options:{inlineClassName:"inline-edit-hidden",description:"inline-edit-hidden"}}),t.range){const e=[];if(t.isSingleLine)e.push(t.range);else if(t.isPureRemove){const i=t.range.endLineNumber-t.range.startLineNumber;for(let n=0;n{const t=this.uiState.read(e);return t&&!t.isPureRemove?{lineNumber:t.lineNumber,additionalLines:t.additionalLines,minReservedLineCount:t.additionalReservedLineCount,targetTextModel:t.targetTextModel}:void 0})))),this._register((0,r.s)((()=>{this.isDisposed.set(!0,void 0)}))),this._register((0,I.pY)(this.editor,this.decorations))}ownsViewZone(e){return this.additionalLinesWidget.viewZoneId===e}};var A,T;M=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(A=2,T=x.L,function(e,t){T(e,t,A)})],M);var R=i(31540),P=i(82399),O=i(47317),F=i(52230),B=i(78903),W=i(37652),H=i(59715),V=i(14333),z=i(57784),j=i(27969),U=i(13338),$=i(63339),K=i(55269),q={};q.styleTagTransform=C(),q.setAttributes=_(),q.insert=f().bind(null,"head"),q.domAPI=p(),q.insertStyleElement=w(),u()(K.A,q),K.A&&K.A.locals&&K.A.locals;var G,Q=i(22751),Z=i(534),Y=i(58067),X=i(52348),J=i(56071),ee=i(76243),te=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},ie=function(e,t){return function(i,n){t(i,n,e)}};let ne=class extends r.jG{constructor(e,t,i){super(),this.editor=e,this.model=t,this.instantiationService=i,this.alwaysShowToolbar=(0,a.y0)(this,this.editor.onDidChangeConfiguration,(()=>"always"===this.editor.getOption(63).showToolbar)),this.sessionPosition=void 0,this.position=(0,a.un)(this,(e=>{var t,i,n;const o=null===(t=this.model.read(e))||void 0===t?void 0:t.widget.model.ghostText.read(e);if(!this.alwaysShowToolbar.read(e)||!o||0===o.parts.length)return this.sessionPosition=void 0,null;const s=o.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==o.lineNumber&&(this.sessionPosition=void 0);const r=new d.y(o.lineNumber,Math.min(s,null!==(n=null===(i=this.sessionPosition)||void 0===i?void 0:i.column)&&void 0!==n?n:Number.MAX_SAFE_INTEGER));return this.sessionPosition=r,r})),this._register((0,a.yC)(((t,i)=>{if(!this.model.read(t)||!this.alwaysShowToolbar.read(t))return;const n=i.add(this.instantiationService.createInstance(oe,this.editor,!0,this.position));e.addContentWidget(n),i.add((0,r.s)((()=>e.removeContentWidget(n))))})))}};ne=te([ie(2,P._Y)],ne);let oe=G=class extends r.jG{constructor(e,t,i,n,o,s){super(),this.editor=e,this.withBorder=t,this._position=i,this._contextKeyService=o,this._menuService=s,this.id="InlineEditHintsContentWidget"+G.id++,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=(0,V.h)("div.inlineEditHints",{className:this.withBorder?".withBorder":""},[(0,V.h)("div@toolBar")]),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(Y.D8.InlineEditActions,this._contextKeyService)),this.toolBar=this._register(n.createInstance(re,this.nodes.toolBar,this.editor,Y.D8.InlineEditToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("primary")},actionViewItemProvider:(e,t)=>{if(e instanceof Y.Xe)return n.createInstance(se,e,void 0)},telemetrySource:"InlineEditToolbar"})),this._register(this.toolBar.onDidChangeDropdownVisibility((e=>{G._dropDownVisible=e}))),this._register((0,a.fm)((e=>{this._position.read(e),this.editor.layoutContentWidget(this)}))),this._register((0,a.fm)((e=>{const t=[];for(const[e,i]of this.inlineCompletionsActionsMenus.getActions())for(const e of i)e instanceof Y.Xe&&t.push(e);t.length>0&&t.unshift(new j.wv),this.toolBar.setAdditionalSecondaryActions(t)})))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};oe._dropDownVisible=!1,oe.id=0,oe=G=te([ie(3,P._Y),ie(4,R.fN),ie(5,Y.ez)],oe);class se extends Q.oq{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){const t=(0,V.h)("div.keybinding").root;this._register(new z.x(t,$.OS,{disableTitle:!0,...z.l})).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineEditStatusBarItemLabel")}}updateTooltip(){}}let re=class extends Z.p{constructor(e,t,i,n,o,s,r,a,l,d){super(e,{resetMenu:i,...n},o,s,r,a,l,d),this.editor=t,this.menuId=i,this.options2=n,this.menuService=o,this.contextKeyService=s,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this.prependedPrimaryActions=[],this._store.add(this.menu.onDidChange((()=>this.updateToolbar()))),this._store.add(this.editor.onDidChangeCursorPosition((()=>this.updateToolbar()))),this.updateToolbar()}updateToolbar(){var e,t,i,n,o,s,r;const a=[],l=[];(0,Q.Ot)(this.menu,null===(e=this.options2)||void 0===e?void 0:e.menuOptions,{primary:a,secondary:l},null===(i=null===(t=this.options2)||void 0===t?void 0:t.toolbarOptions)||void 0===i?void 0:i.primaryGroup,null===(o=null===(n=this.options2)||void 0===n?void 0:n.toolbarOptions)||void 0===o?void 0:o.shouldInlineSubmenu,null===(r=null===(s=this.options2)||void 0===s?void 0:s.toolbarOptions)||void 0===r?void 0:r.useSeparatorsInPrimaryActions),l.push(...this.additionalActions),a.unshift(...this.prependedPrimaryActions),this.setActions(a,l)}setAdditionalSecondaryActions(e){(0,U.aI)(this.additionalActions,e,((e,t)=>e===t))||(this.additionalActions=e,this.updateToolbar())}};re=te([ie(4,Y.ez),ie(5,R.fN),ie(6,X.Z),ie(7,J.b),ie(8,H.d),ie(9,ee.k)],re);var ae,le=i(85753),de=i(94327),ce=function(e,t){return function(i,n){t(i,n,e)}};class he{constructor(e,t){this.widget=e,this.edit=t}dispose(){this.widget.dispose()}}let ue=ae=class extends r.jG{static get(e){return e.getContribution(ae.ID)}constructor(e,t,i,n,o,s){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=i,this.languageFeaturesService=n,this._commandService=o,this._configurationService=s,this._isVisibleContext=ae.inlineEditVisibleContext.bindTo(this.contextKeyService),this._isCursorAtInlineEditContext=ae.cursorAtInlineEditContext.bindTo(this.contextKeyService),this._currentEdit=this._register((0,a.X2)(this,void 0)),this._isAccepting=(0,a.FY)(this,!1),this._enabled=(0,a.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(63).enabled)),this._fontFamily=(0,a.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(63).fontFamily)),this._backgroundColoring=(0,a.y0)(this,this.editor.onDidChangeConfiguration,(()=>this.editor.getOption(63).backgroundColoring));const r=(0,a.yQ)("InlineEditController.modelContentChangedSignal",e.onDidChangeModelContent);this._register((0,a.fm)((t=>{this._enabled.read(t)&&(r.read(t),this._isAccepting.read(t)||this.getInlineEdit(e,!0))})));const l=(0,a.y0)(this,e.onDidChangeCursorPosition,(()=>e.getPosition()));this._register((0,a.fm)((e=>{if(!this._enabled.read(e))return;const t=l.read(e);t&&this.checkCursorPosition(t)}))),this._register((0,a.fm)((t=>{const i=this._currentEdit.read(t);if(this._isCursorAtInlineEditContext.set(!1),!i)return void this._isVisibleContext.set(!1);this._isVisibleContext.set(!0);const n=e.getPosition();n&&this.checkCursorPosition(n)})));const d=(0,a.yQ)("InlineEditController.editorBlurSignal",e.onDidBlurEditorWidget);this._register((0,a.fm)((async t=>{var i;this._enabled.read(t)&&(d.read(t),this._configurationService.getValue("editor.experimentalInlineEdit.keepOnBlur")||e.getOption(63).keepOnBlur||(null===(i=this._currentRequestCts)||void 0===i||i.dispose(!0),this._currentRequestCts=void 0,await this.clear(!1)))})));const c=(0,a.yQ)("InlineEditController.editorFocusSignal",e.onDidFocusEditorText);this._register((0,a.fm)((t=>{this._enabled.read(t)&&(c.read(t),this.getInlineEdit(e,!0))})));const h=this._register((0,V.jh)());this._register((0,a.fm)((e=>{const t=this._fontFamily.read(e);h.setStyle(""===t||"default"===t?"":`\n.monaco-editor .inline-edit-decoration,\n.monaco-editor .inline-edit-decoration-preview,\n.monaco-editor .inline-edit {\n\tfont-family: ${t};\n}`)}))),this._register(new ne(this.editor,this._currentEdit,this.instantiationService))}checkCursorPosition(e){var t;if(!this._currentEdit)return void this._isCursorAtInlineEditContext.set(!1);const i=null===(t=this._currentEdit.get())||void 0===t?void 0:t.edit;i?this._isCursorAtInlineEditContext.set(c.Q.containsPosition(i.range,e)):this._isCursorAtInlineEditContext.set(!1)}validateInlineEdit(e,t){var i,n;if(t.text.includes("\n")&&t.range.startLineNumber!==t.range.endLineNumber&&t.range.startColumn!==t.range.endColumn){if(1!==t.range.startColumn)return!1;const o=t.range.endLineNumber;if(t.range.endColumn!==(null!==(n=null===(i=e.getModel())||void 0===i?void 0:i.getLineLength(o))&&void 0!==n?n:0)+1)return!1}return!0}async fetchInlineEdit(e,t){this._currentRequestCts&&this._currentRequestCts.dispose(!0);const i=e.getModel();if(!i)return;const n=i.getVersionId(),o=this.languageFeaturesService.inlineEditProvider.all(i);if(0===o.length)return;const s=o[0];this._currentRequestCts=new B.Qi;const r=this._currentRequestCts.token,a=t?O.sm.Automatic:O.sm.Invoke;var l;if(t&&await(l=r,new Promise((e=>{let t;const i=setTimeout((()=>{t&&t.dispose(),e()}),50);l&&(t=l.onCancellationRequested((()=>{clearTimeout(i),t&&t.dispose(),e()})))}))),r.isCancellationRequested||i.isDisposed()||i.getVersionId()!==n)return;const d=await s.provideInlineEdit(i,{triggerKind:a},r);return d&&!r.isCancellationRequested&&!i.isDisposed()&&i.getVersionId()===n&&this.validateInlineEdit(e,d)?d:void 0}async getInlineEdit(e,t){var i;this._isCursorAtInlineEditContext.set(!1),await this.clear();const n=await this.fetchInlineEdit(e,t);if(!n)return;const o=n.range.endLineNumber,s=n.range.endColumn,r=!n.text.endsWith("\n")||n.range.startLineNumber===n.range.endLineNumber&&n.range.startColumn===n.range.endColumn?n.text:n.text.slice(0,-1),l=new W.xD(o,[new W.yP(s,r,!1)]),d=this.instantiationService.createInstance(M,this.editor,{ghostText:(0,a.lk)(l),minReservedLineCount:(0,a.lk)(0),targetTextModel:(0,a.lk)(null!==(i=this.editor.getModel())&&void 0!==i?i:void 0),range:(0,a.lk)(n.range),backgroundColoring:this._backgroundColoring});this._currentEdit.set(new he(d,n),void 0)}async trigger(){await this.getInlineEdit(this.editor,!1)}async jumpBack(){this._jumpBackPosition&&(this.editor.setPosition(this._jumpBackPosition),this.editor.revealPositionInCenterIfOutsideViewport(this._jumpBackPosition))}async accept(){var e;this._isAccepting.set(!0,void 0);const t=null===(e=this._currentEdit.get())||void 0===e?void 0:e.edit;if(!t)return;let i=t.text;t.text.startsWith("\n")&&(i=t.text.substring(1)),this.editor.pushUndoStop(),this.editor.executeEdits("acceptCurrent",[l.k.replace(c.Q.lift(t.range),i)]),t.accepted&&await this._commandService.executeCommand(t.accepted.id,...t.accepted.arguments||[]).then(void 0,de.M_),this.freeEdit(t),(0,a.Rn)((e=>{this._currentEdit.set(void 0,e),this._isAccepting.set(!1,e)}))}jumpToCurrent(){var e,t;this._jumpBackPosition=null===(e=this.editor.getSelection())||void 0===e?void 0:e.getStartPosition();const i=null===(t=this._currentEdit.get())||void 0===t?void 0:t.edit;if(!i)return;const n=d.y.lift({lineNumber:i.range.startLineNumber,column:i.range.startColumn});this.editor.setPosition(n),this.editor.revealPositionInCenterIfOutsideViewport(n)}async clear(e=!0){var t;const i=null===(t=this._currentEdit.get())||void 0===t?void 0:t.edit;i&&(null==i?void 0:i.rejected)&&e&&await this._commandService.executeCommand(i.rejected.id,...i.rejected.arguments||[]).then(void 0,de.M_),i&&this.freeEdit(i),this._currentEdit.set(void 0,void 0)}freeEdit(e){const t=this.editor.getModel();if(!t)return;const i=this.languageFeaturesService.inlineEditProvider.all(t);0!==i.length&&i[0].freeInlineEdit(e)}shouldShowHoverAt(e){const t=this._currentEdit.get();if(!t)return!1;const i=t.edit,n=t.widget.model;if(c.Q.containsPosition(i.range,e.getStartPosition())||c.Q.containsPosition(i.range,e.getEndPosition()))return!0;const o=n.ghostText.get();return!!o&&o.parts.some((t=>e.containsPosition(new d.y(o.lineNumber,t.column))))}shouldShowHoverAtViewZone(e){var t,i;return null!==(i=null===(t=this._currentEdit.get())||void 0===t?void 0:t.widget.ownsViewZone(e))&&void 0!==i&&i}};ue.ID="editor.contrib.inlineEditController",ue.inlineEditVisibleKey="inlineEditVisible",ue.inlineEditVisibleContext=new R.N1(ae.inlineEditVisibleKey,!1),ue.cursorAtInlineEditKey="cursorAtInlineEdit",ue.cursorAtInlineEditContext=new R.N1(ae.cursorAtInlineEditKey,!1),ue=ae=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([ce(1,P._Y),ce(2,R.fN),ce(3,F.u),ce(4,H.d),ce(5,le.pG)],ue);class ge extends n.ks{constructor(){super({id:"editor.action.inlineEdit.accept",label:"Accept Inline Edit",alias:"Accept Inline Edit",precondition:R.M$.and(s.R.writable,ue.inlineEditVisibleContext),kbOpts:[{weight:101,primary:2,kbExpr:R.M$.and(s.R.writable,ue.inlineEditVisibleContext,ue.cursorAtInlineEditContext)}],menuOpts:[{menuId:Y.D8.InlineEditToolbar,title:"Accept",group:"primary",order:1}]})}async run(e,t){const i=ue.get(t);await(null==i?void 0:i.accept())}}class pe extends n.ks{constructor(){const e=R.M$.and(s.R.writable,R.M$.not(ue.inlineEditVisibleKey));super({id:"editor.action.inlineEdit.trigger",label:"Trigger Inline Edit",alias:"Trigger Inline Edit",precondition:e,kbOpts:{weight:101,primary:2646,kbExpr:e}})}async run(e,t){const i=ue.get(t);null==i||i.trigger()}}class me extends n.ks{constructor(){const e=R.M$.and(s.R.writable,ue.inlineEditVisibleContext,R.M$.not(ue.cursorAtInlineEditKey));super({id:"editor.action.inlineEdit.jumpTo",label:"Jump to Inline Edit",alias:"Jump to Inline Edit",precondition:e,kbOpts:{weight:101,primary:2646,kbExpr:e},menuOpts:[{menuId:Y.D8.InlineEditToolbar,title:"Jump To Edit",group:"primary",order:3,when:e}]})}async run(e,t){const i=ue.get(t);null==i||i.jumpToCurrent()}}class fe extends n.ks{constructor(){const e=R.M$.and(s.R.writable,ue.cursorAtInlineEditContext);super({id:"editor.action.inlineEdit.jumpBack",label:"Jump Back from Inline Edit",alias:"Jump Back from Inline Edit",precondition:e,kbOpts:{weight:110,primary:2646,kbExpr:e},menuOpts:[{menuId:Y.D8.InlineEditToolbar,title:"Jump Back",group:"primary",order:3,when:e}]})}async run(e,t){const i=ue.get(t);null==i||i.jumpBack()}}class ve extends n.ks{constructor(){const e=R.M$.and(s.R.writable,ue.inlineEditVisibleContext);super({id:"editor.action.inlineEdit.reject",label:"Reject Inline Edit",alias:"Reject Inline Edit",precondition:e,kbOpts:{weight:100,primary:9,kbExpr:e},menuOpts:[{menuId:Y.D8.InlineEditToolbar,title:"Reject",group:"secondary",order:2}]})}async run(e,t){const i=ue.get(t);await(null==i?void 0:i.clear())}}var _e=i(3765),be=function(e,t){return function(i,n){t(i,n,e)}};class we{constructor(e,t,i){this.owner=e,this.range=t,this.controller=i}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let ye=class{constructor(e,t,i){this._editor=e,this._instantiationService=t,this._telemetryService=i,this.hoverOrdinal=5}suggestHoverAnchor(e){const t=ue.get(this._editor);if(!t)return null;const i=e.target;if(8===i.type){const n=i.detail;if(t.shouldShowHoverAtViewZone(n.viewZoneId)){const t=i.range;return new o.mm(1e3,this,t,e.event.posx,e.event.posy,!1)}}return 7===i.type&&t.shouldShowHoverAt(i.range)||6===i.type&&i.detail.mightBeForeignElement&&t.shouldShowHoverAt(i.range)?new o.mm(1e3,this,i.range,e.event.posx,e.event.posy,!1):null}computeSync(e,t){if("onHover"!==this._editor.getOption(63).showToolbar)return[];const i=ue.get(this._editor);return i&&i.shouldShowHoverAt(e.range)?[new we(this,e.range,i)]:[]}renderHoverParts(e,t){const i=new r.Cm;this._telemetryService.publicLog2("inlineEditHover.shown");const n=this._instantiationService.createInstance(oe,this._editor,!1,(0,a.lk)(null));i.add(n);const s=n.getDomNode(),l={hoverPart:t[0],hoverElement:s,dispose:()=>i.dispose()};return new o.Ke([l])}getAccessibleContent(e){return _e.k("hoverAccessibilityInlineEdits","There are inline edits here.")}};ye=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([be(1,P._Y),be(2,ee.k)],ye),(0,n.Fl)(ge),(0,n.Fl)(ve),(0,n.Fl)(me),(0,n.Fl)(fe),(0,n.Fl)(pe),(0,n.HW)(ue.ID,ue,3),o.B2.register(ye)},95287:(e,t,i)=>{"use strict";i.r(t);var n=i(50946),o=i(26048),s=i(16311),r=i(34442),a=i(24665),l=i(38122),d=i(3765),c=i(31540);const h=new c.N1("inlineEditsVisible",!1,(0,d.k)("inlineEditsVisible","Whether an inline edit is visible")),u=new c.N1("inlineEditsIsPinned",!1,(0,d.k)("isPinned","Whether an inline edit is visible"));var g=i(10998),p=i(18366),m=i(61988),f=i(41807),v=i(93702),_=i(12060),b=i(52230),w=i(65958),y=i(78903),C=i(8897),k=i(94327),S=i(37264),x=i(31602),L=i(79955),D=i(47317),E=i(64830),I=i(90543),N=i(14333),M=i(69827),A=i(85072),T=i.n(A),R=i(97825),P=i.n(R),O=i(77659),F=i.n(O),B=i(55056),W=i.n(B),H=i(10540),V=i.n(H),z=i(41113),j=i.n(z),U=i(1473),$={};$.styleTagTransform=j(),$.setAttributes=W(),$.insert=F().bind(null,"head"),$.domAPI=P(),$.insertStyleElement=V(),T()(U.A,$),U.A&&U.A.locals&&U.A.locals;var K=i(36811),q=i(2744),G=i(54957),Q=i(74774),Z=i(75368),Y=i(65506),X=i(16703),J=i(82399);class ee{constructor(e,t,i){this.range=e,this.newLines=t,this.changes=i}}let te=class extends g.jG{constructor(e,t,i,o){super(),this._editor=e,this._edit=t,this._userPrompt=i,this._instantiationService=o,this._editorObs=(0,m.Ud)(this._editor),this._elements=(0,N.h)("div.inline-edits-widget",{style:{position:"absolute",overflow:"visible",top:"0px",left:"0px"}},[(0,N.h)("div@editorContainer",{style:{position:"absolute",top:"0px",left:"0px",width:"500px",height:"500px"}},[(0,N.h)("div.toolbar@toolbar",{style:{position:"absolute",top:"-25px",left:"0px"}}),(0,N.h)("div.promptEditor@promptEditor",{style:{position:"absolute",top:"-25px",left:"80px",width:"300px",height:"22px"}}),(0,N.h)("div.preview@editor",{style:{position:"absolute",top:"0px",left:"0px"}})]),(0,N.Mc)("svg",{style:{overflow:"visible",pointerEvents:"none"}},[(0,N.Mc)("defs",[(0,N.Mc)("linearGradient",{id:"Gradient2",x1:"0",y1:"0",x2:"1",y2:"0"},[(0,N.Mc)("stop",{offset:"0%",class:"gradient-stop"}),(0,N.Mc)("stop",{offset:"100%",class:"gradient-stop"})])]),(0,N.Mc)("path@path",{d:"",fill:"url(#Gradient2)"})])]),this._previewTextModel=this._register(this._instantiationService.createInstance(Q.Bz,"",G.vH,Q.Bz.DEFAULT_CREATION_OPTIONS,null)),this._setText=(0,s.un)((e=>{const t=this._edit.read(e);t&&this._previewTextModel.setValue(t.newLines.join("\n"))})).recomputeInitiallyAndOnChange(this._store),this._promptTextModel=this._register(this._instantiationService.createInstance(Q.Bz,"",G.vH,Q.Bz.DEFAULT_CREATION_OPTIONS,null)),this._promptEditor=this._register(this._instantiationService.createInstance(a.t,this._elements.promptEditor,{glyphMargin:!1,lineNumbers:"off",minimap:{enabled:!1},guides:{indentation:!1,bracketPairs:!1,bracketPairsHorizontal:!1,highlightActiveIndentation:!1},folding:!1,selectOnLineNumbers:!1,selectionHighlight:!1,columnSelection:!1,overviewRulerBorder:!1,overviewRulerLanes:0,lineDecorationsWidth:0,lineNumbersMinChars:0,placeholder:"Describe the change you want...",fontFamily:M.z},{contributions:n.dS.getSomeEditorContributions([X.SuggestController.ID,Y.X.ID,Z.ContextMenuController.ID]),isSimpleWidget:!0},this._editor)),this._previewEditor=this._register(this._instantiationService.createInstance(a.t,this._elements.editor,{glyphMargin:!1,lineNumbers:"off",minimap:{enabled:!1},guides:{indentation:!1,bracketPairs:!1,bracketPairsHorizontal:!1,highlightActiveIndentation:!1},folding:!1,selectOnLineNumbers:!1,selectionHighlight:!1,columnSelection:!1,overviewRulerBorder:!1,overviewRulerLanes:0,lineDecorationsWidth:0,lineNumbersMinChars:0},{contributions:[]},this._editor)),this._previewEditorObs=(0,m.Ud)(this._previewEditor),this._decorations=(0,s.un)(this,(e=>{var t;this._setText.read(e);const i=null===(t=this._edit.read(e))||void 0===t?void 0:t.changes;if(!i)return[];const n=[],o=[];if(1===i.length&&i[0].innerChanges[0].modifiedRange.equalsRange(this._previewTextModel.getFullModelRange()))return[];for(const e of i)if(e.original.isEmpty||n.push({range:e.original.toInclusiveRange(),options:K.Ob}),e.modified.isEmpty||o.push({range:e.modified.toInclusiveRange(),options:K.Kl}),e.modified.isEmpty||e.original.isEmpty)e.original.isEmpty||n.push({range:e.original.toInclusiveRange(),options:K.KL}),e.modified.isEmpty||o.push({range:e.modified.toInclusiveRange(),options:K.Ou});else for(const t of e.innerChanges||[])e.original.contains(t.originalRange.startLineNumber)&&n.push({range:t.originalRange,options:t.originalRange.isEmpty()?K.wp:K.Zb}),e.modified.contains(t.modifiedRange.startLineNumber)&&o.push({range:t.modifiedRange,options:t.modifiedRange.isEmpty()?K.GM:K.bk});return o})),this._layout1=(0,s.un)(this,(e=>{const t=this._editor.getModel(),i=this._edit.read(e);if(!i)return null;const n=i.range;let o=0;for(let e=n.startLineNumber;e{const t=this._edit.read(e);if(!t)return null;const i=t.range,n=this._editorObs.scrollLeft.read(e),o=this._layout1.read(e).left+20-n,s=this._editor.getTopForLineNumber(i.startLineNumber)-this._editorObs.scrollTop.read(e),r=this._editor.getTopForLineNumber(i.endLineNumberExclusive)-this._editorObs.scrollTop.read(e),a=new oe(o,s),l=new oe(o,r),d=r-s,c=this._editor.getOption(67)*t.newLines.length,h=d-c;return{topCode:a,bottomCode:l,codeHeight:d,topEdit:new oe(o+50,s+h/2),bottomEdit:new oe(o+50,r-h/2),editHeight:c}}));const r=(0,s.un)(this,(e=>void 0!==this._edit.read(e)||void 0!==this._userPrompt.read(e)));var l,d;this._register((0,q.AV)(this._elements.root,{display:(0,s.un)(this,(e=>r.read(e)?"block":"none"))})),this._register((0,q.rX)(this._editor.getDomNode(),this._elements.root)),this._register((0,m.Ud)(e).createOverlayWidget({domNode:this._elements.root,position:(0,s.lk)(null),allowEditorOverflow:!1,minContentWidthInPx:(0,s.un)((e=>{var t;const i=null===(t=this._layout1.read(e))||void 0===t?void 0:t.left;return void 0===i?0:i+this._previewEditorObs.contentWidth.read(e)}))})),this._previewEditor.setModel(this._previewTextModel),this._register(this._previewEditorObs.setDecorations(this._decorations)),this._register((0,s.fm)((e=>{const t=this._layout.read(e);if(!t)return;const{topCode:i,bottomCode:n,topEdit:o,bottomEdit:s,editHeight:r}=t,a=(new se).moveTo(i).lineTo(i.deltaX(10)).curveTo(i.deltaX(50),o.deltaX(-40),o.deltaX(-0)).lineTo(o).lineTo(s).lineTo(s.deltaX(-0)).curveTo(s.deltaX(-40),n.deltaX(50),n.deltaX(10)).lineTo(n).build();this._elements.path.setAttribute("d",a),this._elements.editorContainer.style.top=`${o.y}px`,this._elements.editorContainer.style.left=`${o.x}px`,this._elements.editorContainer.style.height=`${r}px`;const l=this._previewEditorObs.contentWidth.read(e);this._previewEditor.layout({height:r,width:l})}))),this._promptEditor.setModel(this._promptTextModel),this._promptEditor.layout(),this._register(function(e,t){const i=new g.Cm;return i.add((0,s.fm)((i=>{const n=e.read(i);t.set(n,void 0)}))),i.add((0,s.fm)((i=>{const n=t.read(i);e.set(n,void 0)}))),i}((l=this._userPrompt,d=e=>null!=e?e:"",(0,p.dQ)(void 0,(e=>d(l.read(e))),((e,t)=>l.set(e,t)))),(0,m.Ud)(this._promptEditor).value)),this._register((0,s.fm)((e=>{const t=(0,m.Ud)(this._promptEditor).isFocused.read(e);this._elements.root.classList.toggle("focused",t)})))}};var ie,ne;te=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(ie=3,ne=J._Y,function(e,t){ne(e,t,ie)})],te);class oe{constructor(e,t){this.x=e,this.y=t}deltaX(e){return new oe(this.x+e,this.y)}}class se{constructor(){this._data=""}moveTo(e){return this._data+=`M ${e.x} ${e.y} `,this}lineTo(e){return this._data+=`L ${e.x} ${e.y} `,this}curveTo(e,t,i){return this._data+=`C ${e.x} ${e.y} ${t.x} ${t.y} ${i.x} ${i.y} `,this}build(){return this._data}}var re,ae=function(e,t){return function(i,n){t(i,n,e)}};let le=re=class extends g.jG{static _createUniqueUri(){return S.r.from({scheme:"inline-edits",path:(new Date).toString()+String(re._modelId++)})}constructor(e,t,i,n,o,r,a){super(),this.textModel=e,this._textModelVersionId=t,this._selection=i,this._debounceValue=n,this.languageFeaturesService=o,this._diffProviderFactoryService=r,this._modelService=a,this._forceUpdateExplicitlySignal=(0,s.Yd)(this),this._selectedInlineCompletionId=(0,s.FY)(this,void 0),this._isActive=(0,s.FY)(this,!1),this._originalModel=(0,p.a0)((()=>this._modelService.createModel("",null,re._createUniqueUri()))).keepObserved(this._store),this._modifiedModel=(0,p.a0)((()=>this._modelService.createModel("",null,re._createUniqueUri()))).keepObserved(this._store),this._pinnedRange=new ce(this.textModel,this._textModelVersionId),this.isPinned=this._pinnedRange.range.map((e=>!!e)),this.userPrompt=(0,s.FY)(this,void 0),this.inlineEdit=(0,s.un)(this,(e=>{var t,i;return null===(i=null===(t=this._inlineEdit.read(e))||void 0===t?void 0:t.promiseResult.read(e))||void 0===i?void 0:i.data})),this._inlineEdit=(0,s.un)(this,(e=>{const t=this.selectedInlineEdit.read(e);if(!t)return;const i=t.inlineCompletion.range;if(""===t.inlineCompletion.insertText.trim())return;let n=t.inlineCompletion.insertText.split(/\r\n|\r|\n/);function o(e){var t,i;const n=null!==(i=null===(t=e[0].match(/^\s*/))||void 0===t?void 0:t[0])&&void 0!==i?i:"";return e.map((e=>e.replace(new RegExp("^"+n),"")))}n=o(n);let r=this.textModel.getValueInRange(i).split(/\r\n|\r|\n/);r=o(r),this._originalModel.get().setValue(r.join("\n")),this._modifiedModel.get().setValue(n.join("\n"));const a=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:"advanced"});return s.BK.fromFn((async()=>{const e=await a.computeDiff(this._originalModel.get(),this._modifiedModel.get(),{computeMoves:!1,ignoreTrimWhitespace:!1,maxComputationTimeMs:1e3},y.XO.None);if(!e.identical)return new ee(L.M.fromRangeInclusive(i),o(n),e.changes)}))})),this._fetchStore=this._register(new g.Cm),this._inlineEditsFetchResult=(0,s.X2)(this,void 0),this._inlineEdits=(0,s.C)({owner:this,equalsFn:C.dB},(e=>{var t,i;return null!==(i=null===(t=this._inlineEditsFetchResult.read(e))||void 0===t?void 0:t.completions.map((e=>new de(e))))&&void 0!==i?i:[]})),this._fetchInlineEditsPromise=(0,s.nb)({owner:this,createEmptyChangeSummary:()=>({inlineCompletionTriggerKind:D.qw.Automatic}),handleChange:(e,t)=>(e.didChange(this._forceUpdateExplicitlySignal)&&(t.inlineCompletionTriggerKind=D.qw.Explicit),!0)},(async(e,t)=>{var i;this._fetchStore.clear(),this._forceUpdateExplicitlySignal.read(e),this._textModelVersionId.read(e);const n=null!==(i=this._pinnedRange.range.read(e))&&void 0!==i?i:(s=this._selection.read(e),(o=s).isEmpty()?void 0:o);var o,s;if(!n)return this._inlineEditsFetchResult.set(void 0,void 0),void this.userPrompt.set(void 0,void 0);const r={triggerKind:t.inlineCompletionTriggerKind,selectedSuggestionInfo:void 0,userPrompt:this.userPrompt.read(e)},a=(0,y.bs)(this._fetchStore);await(0,w.wR)(200,a);const l=await(0,I.Yk)(this.languageFeaturesService.inlineCompletionsProvider,n,this.textModel,r,a);a.isCancellationRequested||this._inlineEditsFetchResult.set(l,void 0)})),this._filteredInlineEditItems=(0,s.C)({owner:this,equalsFn:(0,C.S3)()},(e=>this._inlineEdits.read(e))),this.selectedInlineCompletionIndex=(0,s.un)(this,(e=>{const t=this._selectedInlineCompletionId.read(e),i=this._filteredInlineEditItems.read(e),n=void 0===this._selectedInlineCompletionId?-1:i.findIndex((e=>e.semanticId===t));return-1===n?(this._selectedInlineCompletionId.set(void 0,void 0),0):n})),this.selectedInlineEdit=(0,s.un)(this,(e=>this._filteredInlineEditItems.read(e)[this.selectedInlineCompletionIndex.read(e)])),this._register((0,s.OI)(this._fetchInlineEditsPromise))}async triggerExplicitly(e){(0,s.PO)(e,(e=>{this._isActive.set(!0,e),this._forceUpdateExplicitlySignal.trigger(e)})),await this._fetchInlineEditsPromise.get()}stop(e){(0,s.PO)(e,(e=>{this.userPrompt.set(void 0,e),this._isActive.set(!1,e),this._inlineEditsFetchResult.set(void 0,e),this._pinnedRange.setRange(void 0,e)}))}async _deltaSelectedInlineCompletionIndex(e){await this.triggerExplicitly();const t=this._filteredInlineEditItems.get()||[];if(t.length>0){const i=(this.selectedInlineCompletionIndex.get()+e+t.length)%t.length;this._selectedInlineCompletionId.set(t[i].semanticId,void 0)}else this._selectedInlineCompletionId.set(void 0,void 0)}async next(){await this._deltaSelectedInlineCompletionIndex(1)}async previous(){await this._deltaSelectedInlineCompletionIndex(-1)}async accept(e){if(e.getModel()!==this.textModel)throw new k.D7;const t=this.selectedInlineEdit.get();t&&(e.pushUndoStop(),e.executeEdits("inlineSuggestion.accept",[t.inlineCompletion.toSingleTextEdit().toSingleEditOperation()]),this.stop())}};le._modelId=0,le=re=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([ae(4,b.u),ae(5,x.Hg),ae(6,E.S)],le);class de{constructor(e){this.inlineCompletion=e,this.semanticId=this.inlineCompletion.hash()}}class ce extends g.jG{constructor(e,t){super(),this._textModel=e,this._versionId=t,this._decorations=(0,s.FY)(this,[]),this.range=(0,s.un)(this,(e=>{var t;this._versionId.read(e);const i=this._decorations.read(e)[0];return i&&null!==(t=this._textModel.getDecorationRange(i))&&void 0!==t?t:null})),this._register((0,g.s)((()=>{this._textModel.deltaDecorations(this._decorations.get(),[])})))}setRange(e,t){this._decorations.set(this._textModel.deltaDecorations(this._decorations.get(),e?[{range:e,options:{description:"trackedRange"}}]:[]),t)}}var he,ue=i(85753),ge=i(24975),pe=function(e,t){return function(i,n){t(i,n,e)}};let me=he=class extends g.jG{static get(e){return e.getContribution(he.ID)}constructor(e,t,i,n,o,r){super(),this.editor=e,this._instantiationService=t,this._contextKeyService=i,this._debounceService=n,this._languageFeaturesService=o,this._configurationService=r,this._enabled=(0,ge.V)("editor.inlineEdits.enabled",!1,this._configurationService),this._editorObs=(0,m.Ud)(this.editor),this._selection=(0,s.un)(this,(e=>{var t;return null!==(t=this._editorObs.cursorSelection.read(e))&&void 0!==t?t:new v.L(1,1,1,1)})),this._debounceValue=this._debounceService.for(this._languageFeaturesService.inlineCompletionsProvider,"InlineEditsDebounce",{min:50,max:50}),this.model=(0,p.a0)(this,(e=>{if(!this._enabled.read(e))return;if(this._editorObs.isReadonly.read(e))return;const t=this._editorObs.model.read(e);return t?this._instantiationService.createInstance((0,f.b)(le,e),t,this._editorObs.versionId,this._selection,this._debounceValue):void 0})),this._hadInlineEdit=(0,s.ZX)(this,((e,t)=>{var i;return t||void 0!==(null===(i=this.model.read(e))||void 0===i?void 0:i.inlineEdit.read(e))})),this._widget=(0,p.a0)(this,(e=>{var t;if(this._hadInlineEdit.read(e))return this._instantiationService.createInstance((0,f.b)(te,e),this.editor,this.model.map(((e,t)=>null==e?void 0:e.inlineEdit.read(t))),(t=e=>{var t,i;return null!==(i=null===(t=this.model.read(e))||void 0===t?void 0:t.userPrompt)&&void 0!==i?i:(0,s.FY)("empty","")},(0,p.dQ)(void 0,(e=>t(e).read(e)),((e,i)=>{t(void 0).set(e,i)}))))})),this._register((0,ge.w)(h,this._contextKeyService,(e=>{var t;return!!(null===(t=this.model.read(e))||void 0===t?void 0:t.inlineEdit.read(e))}))),this._register((0,ge.w)(u,this._contextKeyService,(e=>{var t;return!!(null===(t=this.model.read(e))||void 0===t?void 0:t.isPinned.read(e))}))),this.model.recomputeInitiallyAndOnChange(this._store),this._widget.recomputeInitiallyAndOnChange(this._store)}};me.ID="editor.contrib.inlineEditsController",me=he=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([pe(1,J._Y),pe(2,c.fN),pe(3,_.U),pe(4,b.u),pe(5,ue.pG)],me);var fe=i(58067);function ve(e){return{label:e.value,alias:e.original}}class _e extends n.ks{constructor(){super({id:_e.ID,...ve(d.a("action.inlineEdits.showNext","Show Next Inline Edit")),precondition:c.M$.and(l.R.writable,h),kbOpts:{weight:100,primary:606}})}async run(e,t){var i;const n=me.get(t);null===(i=null==n?void 0:n.model.get())||void 0===i||i.next()}}_e.ID="editor.action.inlineEdits.showNext";class be extends n.ks{constructor(){super({id:be.ID,...ve(d.a("action.inlineEdits.showPrevious","Show Previous Inline Edit")),precondition:c.M$.and(l.R.writable,h),kbOpts:{weight:100,primary:604}})}async run(e,t){var i;const n=me.get(t);null===(i=null==n?void 0:n.model.get())||void 0===i||i.previous()}}be.ID="editor.action.inlineEdits.showPrevious";class we extends n.ks{constructor(){super({id:"editor.action.inlineEdits.trigger",...ve(d.a("action.inlineEdits.trigger","Trigger Inline Edit")),precondition:l.R.writable})}async run(e,t){const i=me.get(t);await(0,r.fL)((async e=>{var t;await(null===(t=null==i?void 0:i.model.get())||void 0===t?void 0:t.triggerExplicitly(e))}))}}class ye extends n.ks{constructor(){super({id:"editor.action.inlineEdits.accept",...ve(d.a("action.inlineEdits.accept","Accept Inline Edit")),precondition:h,menuOpts:{menuId:fe.D8.InlineEditsActions,title:d.k("inlineEditsActions","Accept Inline Edit"),group:"primary",order:1,icon:o.W.check},kbOpts:{primary:2058,weight:2e4,kbExpr:h}})}async run(e,t){var i;t instanceof a.t&&(t=t.getParentEditor());const n=me.get(t);n&&(null===(i=n.model.get())||void 0===i||i.accept(n.editor),n.editor.focus())}}class Ce extends n.ks{constructor(){super({id:Ce.ID,...ve(d.a("action.inlineEdits.hide","Hide Inline Edit")),precondition:h,kbOpts:{weight:100,primary:9}})}async run(e,t){const i=me.get(t);(0,s.Rn)((e=>{var t;null===(t=null==i?void 0:i.model.get())||void 0===t||t.stop(e)}))}}Ce.ID="editor.action.inlineEdits.hide",(0,n.HW)(me.ID,me,3),(0,n.Fl)(we),(0,n.Fl)(_e),(0,n.Fl)(be),(0,n.Fl)(ye),(0,n.Fl)(Ce)},21095:(e,t,i)=>{"use strict";i.r(t),i.d(t,{InlineProgressManager:()=>E});var n=i(14333),o=i(65958),s=i(26048),r=i(10998),a=i(16844),l=i(58881),d=i(85072),c=i.n(d),h=i(97825),u=i.n(h),g=i(77659),p=i.n(g),m=i(55056),f=i.n(m),v=i(10540),_=i.n(v),b=i(41113),w=i.n(b),y=i(8129),C={};C.styleTagTransform=w(),C.setAttributes=f(),C.insert=p().bind(null,"head"),C.domAPI=u(),C.insertStyleElement=_(),c()(y.A,C),y.A&&y.A.locals&&y.A.locals;var k=i(28061),S=i(74774),x=i(82399);const L=S.kI.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:a.S8,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}});class D extends r.jG{constructor(e,t,i,n,o){super(),this.typeId=e,this.editor=t,this.range=i,this.delegate=o,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(n),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=n.$(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;const t=n.$("span.icon");this.domNode.append(t),t.classList.add(...l.L.asClassNameArray(s.W.loading),"codicon-modifier-spin");const i=()=>{const e=this.editor.getOption(67);this.domNode.style.height=`${e}px`,this.domNode.style.width=`${Math.ceil(.8*e)}px`};i(),this._register(this.editor.onDidChangeConfiguration((e=>{(e.hasChanged(52)||e.hasChanged(67))&&i()}))),this._register(n.ko(this.domNode,n.Bx.CLICK,(e=>{this.delegate.cancel()})))}getId(){return D.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)}}D.baseId="editor.widget.inlineProgressWidget";let E=class extends r.jG{constructor(e,t,i){super(),this.id=e,this._editor=t,this._instantiationService=i,this._showDelay=500,this._showPromise=this._register(new r.HE),this._currentWidget=this._register(new r.HE),this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}dispose(){super.dispose(),this._currentDecorations.clear()}async showWhile(e,t,i,n,s){const r=this._operationIdPool++;this._currentOperation=r,this.clear(),this._showPromise.value=(0,o.EQ)((()=>{const i=k.Q.fromPositions(e);this._currentDecorations.set([{range:i,options:L}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(D,this.id,this._editor,i,t,n))}),null!=s?s:this._showDelay);try{return await i}finally{this._currentOperation===r&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};var I,N;E=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(I=2,N=x._Y,function(e,t){N(e,t,I)})],E)},91064:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ExpandLineSelectionAction:()=>a});var n=i(50946),o=i(27064),s=i(38122),r=i(3765);class a extends n.ks{constructor(){super({id:"expandLineSelection",label:r.k("expandLineSelection","Expand Line Selection"),alias:"Expand Line Selection",precondition:void 0,kbOpts:{weight:0,kbExpr:s.R.textInputFocus,primary:2090}})}run(e,t,i){if(i=i||{},!t.hasModel())return;const n=t._getViewModel();n.model.pushStackElement(),n.setCursorStates(i.source,3,o.c.expandLineSelection(n,n.getCursorStates())),n.revealAllCursors(i.source,!0)}}(0,n.Fl)(a)},43634:(e,t,i)=>{"use strict";i.r(t),i.d(t,{AbstractCaseAction:()=>Q,AbstractDeleteAllToBoundaryAction:()=>U,AbstractSortLinesAction:()=>R,CamelCaseAction:()=>te,DeleteAllLeftAction:()=>$,DeleteAllRightAction:()=>K,DeleteDuplicateLinesAction:()=>F,DeleteLinesAction:()=>W,DuplicateSelectionAction:()=>A,IndentLinesAction:()=>H,InsertLineAfterAction:()=>j,InsertLineBeforeAction:()=>z,JoinLinesAction:()=>q,KebabCaseAction:()=>ne,LowerCaseAction:()=>Y,PascalCaseAction:()=>ie,SnakeCaseAction:()=>ee,SortLinesAscendingAction:()=>P,SortLinesDescendingAction:()=>O,TitleCaseAction:()=>J,TransposeAction:()=>G,TrimTrailingWhitespaceAction:()=>B,UpperCaseAction:()=>Z});var n=i(68387),o=i(72521),s=i(50946),r=i(66316),a=i(16844),l=i(23877),d=i(28061);class c{constructor(e,t,i){this._selection=e,this._cursors=t,this._selectionId=null,this._trimInRegexesAndStrings=i}getEditOperations(e,t){const i=function(e,t,i){t.sort(((e,t)=>e.lineNumber===t.lineNumber?e.column-t.column:e.lineNumber-t.lineNumber));for(let e=t.length-2;e>=0;e--)t[e].lineNumber===t[e+1].lineNumber&&t.splice(e,1);const n=[];let o=0,s=0;const r=t.length;for(let c=1,h=e.getLineCount();c<=h;c++){const h=e.getLineContent(c),u=h.length+1;let g=0;if(se.getLanguageId(),n=(t,i)=>e.getLanguageIdAtPosition(t,i),o=e.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===o)return void(this._selectionId=t.trackSelection(this._selection));if(!this._isMovingDown&&1===this._selection.startLineNumber)return void(this._selectionId=t.trackSelection(this._selection));this._moveEndPositionDown=!1;let s=this._selection;s.startLineNumbert===s.startLineNumber?e.tokenization.getLineTokens(o):e.tokenization.getLineTokens(t),getLanguageId:i,getLanguageIdAtPosition:n},getLineContent:t=>t===s.startLineNumber?e.getLineContent(o):e.getLineContent(t)},d=(0,y.$f)(this._autoIndent,t,e.getLanguageIdAtPosition(o,1),s.startLineNumber,h,this._languageConfigurationService);if(null!==d){const t=a.UU(e.getLineContent(o)),i=w.c(d,r);if(i!==w.c(t,r)){const e=w.k(i,r,c);u=e+this.trimStart(l)}}}t.addEditOperation(new d.Q(s.startLineNumber,1,s.startLineNumber,1),u+"\n");const p=this.matchEnterRuleMovingDown(e,h,r,s.startLineNumber,o,u);if(null!==p)0!==p&&this.getIndentEditsOfMovingBlock(e,t,s,r,c,p);else{const l={tokenization:{getLineTokens:t=>t===s.startLineNumber?e.tokenization.getLineTokens(o):t>=s.startLineNumber+1&&t<=s.endLineNumber+1?e.tokenization.getLineTokens(t-1):e.tokenization.getLineTokens(t),getLanguageId:i,getLanguageIdAtPosition:n},getLineContent:t=>t===s.startLineNumber?u:t>=s.startLineNumber+1&&t<=s.endLineNumber+1?e.getLineContent(t-1):e.getLineContent(t)},d=(0,y.$f)(this._autoIndent,l,e.getLanguageIdAtPosition(o,1),s.startLineNumber+1,h,this._languageConfigurationService);if(null!==d){const i=a.UU(e.getLineContent(s.startLineNumber)),n=w.c(d,r),o=w.c(i,r);if(n!==o){const i=n-o;this.getIndentEditsOfMovingBlock(e,t,s,r,c,i)}}}}else t.addEditOperation(new d.Q(s.startLineNumber,1,s.startLineNumber,1),u+"\n")}else if(o=s.startLineNumber-1,l=e.getLineContent(o),t.addEditOperation(new d.Q(o,1,o+1,1),null),t.addEditOperation(new d.Q(s.endLineNumber,e.getLineMaxColumn(s.endLineNumber),s.endLineNumber,e.getLineMaxColumn(s.endLineNumber)),"\n"+l),this.shouldAutoIndent(e,s)){const l={tokenization:{getLineTokens:t=>t===o?e.tokenization.getLineTokens(s.startLineNumber):e.tokenization.getLineTokens(t),getLanguageId:i,getLanguageIdAtPosition:n},getLineContent:t=>t===o?e.getLineContent(s.startLineNumber):e.getLineContent(t)},d=this.matchEnterRule(e,h,r,s.startLineNumber,s.startLineNumber-2);if(null!==d)0!==d&&this.getIndentEditsOfMovingBlock(e,t,s,r,c,d);else{const i=(0,y.$f)(this._autoIndent,l,e.getLanguageIdAtPosition(s.startLineNumber,1),o,h,this._languageConfigurationService);if(null!==i){const n=a.UU(e.getLineContent(s.startLineNumber)),o=w.c(i,r),l=w.c(n,r);if(o!==l){const i=o-l;this.getIndentEditsOfMovingBlock(e,t,s,r,c,i)}}}}}this._selectionId=t.trackSelection(s)}buildIndentConverter(e,t,i){return{shiftIndent:n=>v.ShiftCommand.shiftIndent(n,n.length+1,e,t,i),unshiftIndent:n=>v.ShiftCommand.unshiftIndent(n,n.length+1,e,t,i)}}parseEnterResult(e,t,i,n,o){if(o){let s=o.indentation;o.indentAction===_.l.None||o.indentAction===_.l.Indent?s=o.indentation+o.appendText:o.indentAction===_.l.IndentOutdent?s=o.indentation:o.indentAction===_.l.Outdent&&(s=t.unshiftIndent(o.indentation)+o.appendText);const r=e.getLineContent(n);if(this.trimStart(r).indexOf(this.trimStart(s))>=0){const o=a.UU(e.getLineContent(n));let r=a.UU(s);const l=(0,y.Yb)(e,n,this._languageConfigurationService);return null!==l&&2&l&&(r=t.unshiftIndent(r)),w.c(r,i)-w.c(o,i)}}return null}matchEnterRuleMovingDown(e,t,i,n,o,s){if(a.lT(s)>=0){const s=e.getLineMaxColumn(o),r=(0,C.h)(this._autoIndent,e,new d.Q(o,s,o,s),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,r)}{let o=n-1;for(;o>=1;){const t=e.getLineContent(o);if(a.lT(t)>=0)break;o--}if(o<1||n>e.getLineCount())return null;const s=e.getLineMaxColumn(o),r=(0,C.h)(this._autoIndent,e,new d.Q(o,s,o,s),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,r)}}matchEnterRule(e,t,i,n,o,s){let r=o;for(;r>=1;){let t;if(t=r===o&&void 0!==s?s:e.getLineContent(r),a.lT(t)>=0)break;r--}if(r<1||n>e.getLineCount())return null;const l=e.getLineMaxColumn(r),c=(0,C.h)(this._autoIndent,e,new d.Q(r,l,r,l),this._languageConfigurationService);return this.parseEnterResult(e,t,i,n,c)}trimStart(e){return e.replace(/^\s+/,"")}shouldAutoIndent(e,t){if(this._autoIndent<4)return!1;if(!e.tokenization.isCheapToTokenize(t.startLineNumber))return!1;const i=e.getLanguageIdAtPosition(t.startLineNumber,1);return i===e.getLanguageIdAtPosition(t.endLineNumber,1)&&null!==this._languageConfigurationService.getLanguageConfiguration(i).indentRulesSupport}getIndentEditsOfMovingBlock(e,t,i,n,o,s){for(let r=i.startLineNumber;r<=i.endLineNumber;r++){const l=e.getLineContent(r),c=a.UU(l),h=w.c(c,n)+s,u=w.k(h,n,o);u!==c&&(t.addEditOperation(new d.Q(r,1,r,c.length+1),u),r===i.endLineNumber&&i.endColumn<=c.length+1&&""===u&&(this._moveEndLineSelectionShrink=!0))}}computeCursorState(e,t){let i=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(i=i.setEndPosition(i.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&i.startLineNumber=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(S=3,x=b.JZ,function(e,t){x(e,t,S)})],k);class L{static getCollator(){return L._COLLATOR||(L._COLLATOR=new Intl.Collator),L._COLLATOR}constructor(e,t){this.selection=e,this.descending=t,this.selectionId=null}getEditOperations(e,t){const i=function(e,t,i){const n=D(e,t,i);return n?l.k.replace(new d.Q(n.startLineNumber,1,n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),n.after.join("\n")):null}(e,this.selection,this.descending);i&&t.addEditOperation(i.range,i.text),this.selectionId=t.trackSelection(this.selection)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}static canRun(e,t,i){if(null===e)return!1;const n=D(e,t,i);if(!n)return!1;for(let e=0,t=n.before.length;e=o)return null;const s=[];for(let t=n;t<=o;t++)s.push(e.getLineContent(t));let r=s.slice(0);return r.sort(L.getCollator().compare),!0===i&&(r=r.reverse()),{startLineNumber:n,endLineNumber:o,before:s,after:r}}L._COLLATOR=null;var E=i(3765),I=i(58067),N=i(85753);class M extends s.ks{constructor(e,t){super(t),this.down=e}run(e,t){if(!t.hasModel())return;const i=t.getSelections().map(((e,t)=>({selection:e,index:t,ignore:!1})));i.sort(((e,t)=>d.Q.compareRangesUsingStarts(e.selection,t.selection)));let n=i[0];for(let e=1;enew g.y(e.positionLineNumber,e.positionColumn))));const o=t.getSelection();if(null===o)return;const s=e.get(N.pG),r=t.getModel(),a=s.getValue("files.trimTrailingWhitespaceInRegexAndStrings",{overrideIdentifier:null==r?void 0:r.getLanguageId(),resource:null==r?void 0:r.uri}),l=new c(o,n,a);t.pushUndoStop(),t.executeCommands(this.id,[l]),t.pushUndoStop()}}B.ID="editor.action.trimTrailingWhitespace";class W extends s.ks{constructor(){super({id:"editor.action.deleteLines",label:E.k("lines.delete","Delete Line"),alias:"Delete Line",precondition:m.R.writable,kbOpts:{kbExpr:m.R.textInputFocus,primary:3113,weight:100}})}run(e,t){if(!t.hasModel())return;const i=this._getLinesToRemove(t),n=t.getModel();if(1===n.getLineCount()&&1===n.getLineMaxColumn(1))return;let o=0;const s=[],r=[];for(let e=0,t=i.length;e1&&(a-=1,c=n.getLineMaxColumn(a)),s.push(l.k.replace(new p.L(a,c,d,h),"")),r.push(new p.L(a-o,t.positionColumn,a-o,t.positionColumn)),o+=t.endLineNumber-t.startLineNumber+1}t.pushUndoStop(),t.executeEdits(this.id,s,r),t.pushUndoStop()}_getLinesToRemove(e){const t=e.getSelections().map((e=>{let t=e.endLineNumber;return e.startLineNumbere.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber));const i=[];let n=t[0];for(let e=1;e=t[e].startLineNumber?n.endLineNumber=t[e].endLineNumber:(i.push(n),n=t[e]);return i.push(n),i}}class H extends s.ks{constructor(){super({id:"editor.action.indentLines",label:E.k("lines.indent","Indent Line"),alias:"Indent Line",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:2142,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,h.T.indent(i.cursorConfig,t.getModel(),t.getSelections())),t.pushUndoStop())}}class V extends s.ks{constructor(){super({id:"editor.action.outdentLines",label:E.k("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:2140,weight:100}})}run(e,t){o.CoreEditingCommands.Outdent.runEditorCommand(e,t,null)}}class z extends s.ks{constructor(){super({id:"editor.action.insertLineBefore",label:E.k("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:3075,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,u.AO.lineInsertBefore(i.cursorConfig,t.getModel(),t.getSelections())))}}class j extends s.ks{constructor(){super({id:"editor.action.insertLineAfter",label:E.k("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:2051,weight:100}})}run(e,t){const i=t._getViewModel();i&&(t.pushUndoStop(),t.executeCommands(this.id,u.AO.lineInsertAfter(i.cursorConfig,t.getModel(),t.getSelections())))}}class U extends s.ks{run(e,t){if(!t.hasModel())return;const i=t.getSelection(),n=this._getRangesToDelete(t),o=[];for(let e=0,t=n.length-1;el.k.replace(e,"")));t.pushUndoStop(),t.executeEdits(this.id,r,s),t.pushUndoStop()}}class $ extends U{constructor(){super({id:"deleteAllLeft",label:E.k("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:m.R.writable,kbOpts:{kbExpr:m.R.textInputFocus,primary:0,mac:{primary:2049},weight:100}})}_getEndCursorState(e,t){let i=null;const n=[];let o=0;return t.forEach((t=>{let s;if(1===t.endColumn&&o>0){const e=t.startLineNumber-o;s=new p.L(e,t.startColumn,e,t.startColumn)}else s=new p.L(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn);o+=t.endLineNumber-t.startLineNumber,t.intersectRanges(e)?i=s:n.push(s)})),i&&n.unshift(i),n}_getRangesToDelete(e){const t=e.getSelections();if(null===t)return[];let i=t;const n=e.getModel();return null===n?[]:(i.sort(d.Q.compareRangesUsingStarts),i=i.map((e=>{if(e.isEmpty()){if(1===e.startColumn){const t=Math.max(1,e.startLineNumber-1),i=1===e.startLineNumber?1:n.getLineLength(t)+1;return new d.Q(t,i,e.startLineNumber,1)}return new d.Q(e.startLineNumber,1,e.startLineNumber,e.startColumn)}return new d.Q(e.startLineNumber,1,e.endLineNumber,e.endColumn)})),i)}}class K extends U{constructor(){super({id:"deleteAllRight",label:E.k("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:m.R.writable,kbOpts:{kbExpr:m.R.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})}_getEndCursorState(e,t){let i=null;const n=[];for(let o=0,s=t.length,r=0;o{if(e.isEmpty()){const i=t.getLineMaxColumn(e.startLineNumber);return e.startColumn===i?new d.Q(e.startLineNumber,e.startColumn,e.startLineNumber+1,1):new d.Q(e.startLineNumber,e.startColumn,e.startLineNumber,i)}return e}));return n.sort(d.Q.compareRangesUsingStarts),n}}class q extends s.ks{constructor(){super({id:"editor.action.joinLines",label:E.k("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:0,mac:{primary:296},weight:100}})}run(e,t){const i=t.getSelections();if(null===i)return;let n=t.getSelection();if(null===n)return;i.sort(d.Q.compareRangesUsingStarts);const o=[],s=i.reduce(((e,t)=>e.isEmpty()?e.endLineNumber===t.startLineNumber?(n.equalsSelection(e)&&(n=t),t):t.startLineNumber>e.endLineNumber+1?(o.push(e),t):new p.L(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn):t.startLineNumber>e.endLineNumber?(o.push(e),t):new p.L(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn)));o.push(s);const r=t.getModel();if(null===r)return;const a=[],c=[];let h=n,u=0;for(let e=0,t=o.length;e=1){let e=!0;""===_&&(e=!1),!e||" "!==_.charAt(_.length-1)&&"\t"!==_.charAt(_.length-1)||(e=!1,_=_.replace(/[\s\uFEFF\xA0]+$/g," "));const n=t.substr(i-1);_+=(e?" ":"")+n,f=e?n.length+1:n.length}else f=0}const b=new d.Q(i,s,g,m);if(!b.isEmpty()){let e;t.isEmpty()?(a.push(l.k.replace(b,_)),e=new p.L(b.startLineNumber-u,_.length-f+1,i-u,_.length-f+1)):t.startLineNumber===t.endLineNumber?(a.push(l.k.replace(b,_)),e=new p.L(t.startLineNumber-u,t.startColumn,t.endLineNumber-u,t.endColumn)):(a.push(l.k.replace(b,_)),e=new p.L(t.startLineNumber-u,t.startColumn,t.startLineNumber-u,_.length-v)),null!==d.Q.intersectRanges(b,n)?h=e:c.push(e)}u+=b.endLineNumber-b.startLineNumber}c.unshift(h),t.pushUndoStop(),t.executeEdits(this.id,a,c),t.pushUndoStop()}}class G extends s.ks{constructor(){super({id:"editor.action.transpose",label:E.k("editor.transpose","Transpose Characters around the Cursor"),alias:"Transpose Characters around the Cursor",precondition:m.R.writable})}run(e,t){const i=t.getSelections();if(null===i)return;const n=t.getModel();if(null===n)return;const o=[];for(let e=0,t=i.length;e=a){if(s.lineNumber===n.getLineCount())continue;const e=new d.Q(s.lineNumber,Math.max(1,s.column-1),s.lineNumber+1,1),t=n.getValueInRange(e).split("").reverse().join("");o.push(new r.iu(new p.L(s.lineNumber,Math.max(1,s.column-1),s.lineNumber+1,1),t))}else{const e=new d.Q(s.lineNumber,Math.max(1,s.column-1),s.lineNumber,s.column+1),t=n.getValueInRange(e).split("").reverse().join("");o.push(new r.ui(e,t,new p.L(s.lineNumber,s.column+1,s.lineNumber,s.column+1)))}}t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}}class Q extends s.ks{run(e,t){const i=t.getSelections();if(null===i)return;const n=t.getModel();if(null===n)return;const o=t.getOption(132),s=[];for(const e of i)if(e.isEmpty()){const i=e.getStartPosition(),r=t.getConfiguredWordAtPosition(i);if(!r)continue;const a=new d.Q(i.lineNumber,r.startColumn,i.lineNumber,r.endColumn),c=n.getValueInRange(a);s.push(l.k.replace(a,this._modifyText(c,o)))}else{const t=n.getValueInRange(e);s.push(l.k.replace(e,this._modifyText(t,o)))}t.pushUndoStop(),t.executeEdits(this.id,s),t.pushUndoStop()}}class Z extends Q{constructor(){super({id:"editor.action.transformToUppercase",label:E.k("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:m.R.writable})}_modifyText(e,t){return e.toLocaleUpperCase()}}class Y extends Q{constructor(){super({id:"editor.action.transformToLowercase",label:E.k("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:m.R.writable})}_modifyText(e,t){return e.toLocaleLowerCase()}}class X{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 null!==this.get()}}class J extends Q{constructor(){super({id:"editor.action.transformToTitlecase",label:E.k("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:m.R.writable})}_modifyText(e,t){const i=J.titleBoundary.get();return i?e.toLocaleLowerCase().replace(i,(e=>e.toLocaleUpperCase())):e}}J.titleBoundary=new X("(^|[^\\p{L}\\p{N}']|((^|\\P{L})'))\\p{L}","gmu");class ee extends Q{constructor(){super({id:"editor.action.transformToSnakecase",label:E.k("editor.transformToSnakecase","Transform to Snake Case"),alias:"Transform to Snake Case",precondition:m.R.writable})}_modifyText(e,t){const i=ee.caseBoundary.get(),n=ee.singleLetters.get();return i&&n?e.replace(i,"$1_$2").replace(n,"$1_$2$3").toLocaleLowerCase():e}}ee.caseBoundary=new X("(\\p{Ll})(\\p{Lu})","gmu"),ee.singleLetters=new X("(\\p{Lu}|\\p{N})(\\p{Lu})(\\p{Ll})","gmu");class te extends Q{constructor(){super({id:"editor.action.transformToCamelcase",label:E.k("editor.transformToCamelcase","Transform to Camel Case"),alias:"Transform to Camel Case",precondition:m.R.writable})}_modifyText(e,t){const i=te.wordBoundary.get();if(!i)return e;const n=e.split(i);return n.shift()+n.map((e=>e.substring(0,1).toLocaleUpperCase()+e.substring(1))).join("")}}te.wordBoundary=new X("[_\\s-]","gm");class ie extends Q{constructor(){super({id:"editor.action.transformToPascalcase",label:E.k("editor.transformToPascalcase","Transform to Pascal Case"),alias:"Transform to Pascal Case",precondition:m.R.writable})}_modifyText(e,t){const i=ie.wordBoundary.get(),n=ie.wordBoundaryToMaintain.get();return i&&n?e.split(n).map((e=>e.split(i))).flat().map((e=>e.substring(0,1).toLocaleUpperCase()+e.substring(1))).join(""):e}}ie.wordBoundary=new X("[_\\s-]","gm"),ie.wordBoundaryToMaintain=new X("(?<=\\.)","gm");class ne extends Q{static isSupported(){return[this.caseBoundary,this.singleLetters,this.underscoreBoundary].every((e=>e.isSupported()))}constructor(){super({id:"editor.action.transformToKebabcase",label:E.k("editor.transformToKebabcase","Transform to Kebab Case"),alias:"Transform to Kebab Case",precondition:m.R.writable})}_modifyText(e,t){const i=ne.caseBoundary.get(),n=ne.singleLetters.get(),o=ne.underscoreBoundary.get();return i&&n&&o?e.replace(o,"$1-$3").replace(i,"$1-$2").replace(n,"$1-$2").toLocaleLowerCase():e}}ne.caseBoundary=new X("(\\p{Ll})(\\p{Lu})","gmu"),ne.singleLetters=new X("(\\p{Lu}|\\p{N})(\\p{Lu}\\p{Ll})","gmu"),ne.underscoreBoundary=new X("(\\S)(_)(\\S)","gm"),(0,s.Fl)(class extends M{constructor(){super(!1,{id:"editor.action.copyLinesUpAction",label:E.k("lines.copyUp","Copy Line Up"),alias:"Copy Line Up",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menuOpts:{menuId:I.D8.MenubarSelectionMenu,group:"2_line",title:E.k({key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})}}),(0,s.Fl)(class extends M{constructor(){super(!0,{id:"editor.action.copyLinesDownAction",label:E.k("lines.copyDown","Copy Line Down"),alias:"Copy Line Down",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menuOpts:{menuId:I.D8.MenubarSelectionMenu,group:"2_line",title:E.k({key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})}}),(0,s.Fl)(A),(0,s.Fl)(class extends T{constructor(){super(!1,{id:"editor.action.moveLinesUpAction",label:E.k("lines.moveUp","Move Line Up"),alias:"Move Line Up",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:528,linux:{primary:528},weight:100},menuOpts:{menuId:I.D8.MenubarSelectionMenu,group:"2_line",title:E.k({key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})}}),(0,s.Fl)(class extends T{constructor(){super(!0,{id:"editor.action.moveLinesDownAction",label:E.k("lines.moveDown","Move Line Down"),alias:"Move Line Down",precondition:m.R.writable,kbOpts:{kbExpr:m.R.editorTextFocus,primary:530,linux:{primary:530},weight:100},menuOpts:{menuId:I.D8.MenubarSelectionMenu,group:"2_line",title:E.k({key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})}}),(0,s.Fl)(P),(0,s.Fl)(O),(0,s.Fl)(F),(0,s.Fl)(B),(0,s.Fl)(W),(0,s.Fl)(H),(0,s.Fl)(V),(0,s.Fl)(z),(0,s.Fl)(j),(0,s.Fl)($),(0,s.Fl)(K),(0,s.Fl)(q),(0,s.Fl)(G),(0,s.Fl)(Z),(0,s.Fl)(Y),ee.caseBoundary.isSupported()&&ee.singleLetters.isSupported()&&(0,s.Fl)(ee),te.wordBoundary.isSupported()&&(0,s.Fl)(te),ie.wordBoundary.isSupported()&&(0,s.Fl)(ie),J.titleBoundary.isSupported()&&(0,s.Fl)(J),ne.isSupported()&&(0,s.Fl)(ne)},66473:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CONTEXT_ONTYPE_RENAME_INPUT_VISIBLE:()=>V,LinkedEditingAction:()=>j,LinkedEditingContribution:()=>z,editorLinkedEditingBackground:()=>K});var n=i(13338),o=i(65958),s=i(78903),r=i(94901),a=i(94327),l=i(2106),d=i(10998),c=i(16844),h=i(37264),u=i(50946),g=i(87301),p=i(15365),m=i(28061),f=i(38122),v=i(74774),_=i(52394),b=i(3765),w=i(31540),y=i(52230),C=i(70559),k=i(12060),S=i(23013),x=i(85072),L=i.n(x),D=i(97825),E=i.n(D),I=i(77659),N=i.n(I),M=i(55056),A=i.n(M),T=i(10540),R=i.n(T),P=i(41113),O=i.n(P),F=i(13293),B={};B.styleTagTransform=O(),B.setAttributes=A(),B.insert=N().bind(null,"head"),B.domAPI=E(),B.insertStyleElement=R(),L()(F.A,B),F.A&&F.A.locals&&F.A.locals;var W,H=function(e,t){return function(i,n){t(i,n,e)}};const V=new w.N1("LinkedEditingInputVisible",!1);let z=W=class extends d.jG{static get(e){return e.getContribution(W.ID)}constructor(e,t,i,n,o){super(),this.languageConfigurationService=n,this._syncRangesToken=0,this._localToDispose=this._register(new d.Cm),this._editor=e,this._providers=i.linkedEditingRangeProvider,this._enabled=!1,this._visibleContextKey=V.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 d.Cm),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequestCts=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel((()=>this.reinitialize(!0)))),this._register(this._editor.onDidChangeConfiguration((e=>{(e.hasChanged(70)||e.hasChanged(94))&&this.reinitialize(!1)}))),this._register(this._providers.onDidChange((()=>this.reinitialize(!1)))),this._register(this._editor.onDidChangeModelLanguage((()=>this.reinitialize(!0)))),this.reinitialize(!0)}reinitialize(e){const t=this._editor.getModel(),i=null!==t&&(this._editor.getOption(70)||this._editor.getOption(94))&&this._providers.has(t);if(i===this._enabled&&!e)return;if(this._enabled=i,this.clearRanges(),this._localToDispose.clear(),!i||null===t)return;this._localToDispose.add(l.Jh.runAndSubscribe(t.onDidChangeLanguageConfiguration,(()=>{this._languageWordPattern=this.languageConfigurationService.getLanguageConfiguration(t.getLanguageId()).getWordDefinition()})));const n=new o.ve(this._debounceInformation.get(t)),s=()=>{var e;this._rangeUpdateTriggerPromise=n.trigger((()=>this.updateRanges()),null!==(e=this._debounceDuration)&&void 0!==e?e:this._debounceInformation.get(t))},r=new o.ve(0),a=e=>{this._rangeSyncTriggerPromise=r.trigger((()=>this._syncRanges(e)))};this._localToDispose.add(this._editor.onDidChangeCursorPosition((()=>{s()}))),this._localToDispose.add(this._editor.onDidChangeModelContent((e=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){const t=this._currentDecorations.getRange(0);if(t&&e.changes.every((e=>t.intersectRanges(e.range))))return void a(this._syncRangesToken)}s()}))),this._localToDispose.add({dispose:()=>{n.dispose(),r.dispose()}}),this.updateRanges()}_syncRanges(e){if(!this._editor.hasModel()||e!==this._syncRangesToken||0===this._currentDecorations.length)return;const t=this._editor.getModel(),i=this._currentDecorations.getRange(0);if(!i||i.startLineNumber!==i.endLineNumber)return this.clearRanges();const n=t.getValueInRange(i);if(this._currentWordPattern){const e=n.match(this._currentWordPattern);if((e?e[0].length:0)!==n.length)return this.clearRanges()}const o=[];for(let e=1,i=this._currentDecorations.length;e1)return void this.clearRanges();const i=this._editor.getModel(),n=i.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===n){if(t.equals(this._currentRequestPosition))return;if(this._currentDecorations.length>0){const e=this._currentDecorations.getRange(0);if(e&&e.containsPosition(t))return}}this.clearRanges(),this._currentRequestPosition=t,this._currentRequestModelVersion=n;const o=this._currentRequestCts=new s.Qi;try{const e=new S.W(!1),s=await $(this._providers,i,t,o.token);if(this._debounceInformation.update(i,e.elapsed()),o!==this._currentRequestCts)return;if(this._currentRequestCts=null,n!==i.getVersionId())return;let r=[];(null==s?void 0:s.ranges)&&(r=s.ranges),this._currentWordPattern=(null==s?void 0:s.wordPattern)||this._languageWordPattern;let a=!1;for(let e=0,i=r.length;e({range:e,options:W.DECORATION})));this._visibleContextKey.set(!0),this._currentDecorations.set(l),this._syncRangesToken++}catch(e){(0,a.MB)(e)||(0,a.dz)(e),this._currentRequestCts!==o&&this._currentRequestCts||this.clearRanges()}}};z.ID="editor.contrib.linkedEditing",z.DECORATION=v.kI.register({description:"linked-editing",stickiness:0,className:"linked-editing-decoration"}),z=W=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([H(1,w.fN),H(2,y.u),H(3,_.JZ),H(4,k.U)],z);class j extends u.ks{constructor(){super({id:"editor.action.linkedEditing",label:b.k("linkedEditing.label","Start Linked Editing"),alias:"Start Linked Editing",precondition:w.M$.and(f.R.writable,f.R.hasRenameProvider),kbOpts:{kbExpr:f.R.editorTextFocus,primary:3132,weight:100}})}runCommand(e,t){const i=e.get(g.T),[n,o]=Array.isArray(t)&&t||[void 0,void 0];return h.r.isUri(n)&&p.y.isIPosition(o)?i.openCodeEditor({resource:n},i.getActiveCodeEditor()).then((e=>{e&&(e.setPosition(o),e.invokeWithinContext((t=>(this.reportTelemetry(t,e),this.run(t,e)))))}),a.dz):super.runCommand(e,t)}run(e,t){const i=z.get(t);return i?Promise.resolve(i.updateRanges(!0)):Promise.resolve()}}const U=u.DX.bindToContribution(z.get);function $(e,t,i,s){const r=e.ordered(t);return(0,o.$1)(r.map((e=>async()=>{try{return await e.provideLinkedEditingRanges(t,i,s)}catch(e){return void(0,a.M_)(e)}})),(e=>!!e&&n.EI(null==e?void 0:e.ranges)))}(0,u.E_)(new U({id:"cancelLinkedEditingInput",precondition:V,handler:e=>e.clearRanges(),kbOpts:{kbExpr:f.R.editorTextFocus,weight:199,primary:9,secondary:[1033]}}));const K=(0,C.x1A)("editor.linkedEditingBackground",{dark:r.Q1.fromHex("#f00").transparent(.3),light:r.Q1.fromHex("#f00").transparent(.3),hcDark:r.Q1.fromHex("#f00").transparent(.3),hcLight:r.Q1.white},b.k("editorLinkedEditingBackground","Background color when the editor auto renames on type."));(0,u.ke)("_executeLinkedEditingProvider",((e,t,i)=>{const{linkedEditingRangeProvider:n}=e.get(y.u);return $(n,t,i,s.XO.None)})),(0,u.HW)(z.ID,z,1),(0,u.Fl)(j)},60746:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LinkDetector:()=>$});var n=i(65958),o=i(78903),s=i(94327),r=i(90028),a=i(10998),l=i(13072),d=i(63339),c=i(22467),h=i(23013),u=i(37264),g=i(85072),p=i.n(g),m=i(97825),f=i.n(m),v=i(77659),_=i.n(v),b=i(55056),w=i.n(b),y=i(10540),C=i.n(y),k=i(41113),S=i.n(k),x=i(1177),L={};L.styleTagTransform=S(),L.setAttributes=w(),L.insert=_().bind(null,"head"),L.domAPI=f(),L.insertStyleElement=C(),p()(x.A,L),x.A&&x.A.locals&&x.A.locals;var D=i(50946),E=i(74774),I=i(12060),N=i(52230),M=i(87951),A=i(13338),T=i(79359),R=i(28061),P=i(64830),O=i(59715);class F{constructor(e,t){this._link=e,this._provider=t}toJSON(){return{range:this.range,url:this.url,tooltip:this.tooltip}}get range(){return this._link.range}get url(){return this._link.url}get tooltip(){return this._link.tooltip}async resolve(e){return this._link.url?this._link.url:"function"==typeof this._provider.resolveLink?Promise.resolve(this._provider.resolveLink(this._link,e)).then((t=>(this._link=t||this._link,this._link.url?this.resolve(e):Promise.reject(new Error("missing"))))):Promise.reject(new Error("missing"))}}class B{constructor(e){this._disposables=new a.Cm;let t=[];for(const[i,n]of e){const e=i.links.map((e=>new F(e,n)));t=B._union(t,e),(0,a.Xm)(i)&&this._disposables.add(i)}this.links=t}dispose(){this._disposables.dispose(),this.links.length=0}static _union(e,t){const i=[];let n,o,s,r;for(n=0,s=0,o=e.length,r=t.length;nPromise.resolve(e.provideLinks(t,i)).then((t=>{t&&(n[o]=[t,e])}),s.M_)));return Promise.all(o).then((()=>{const e=new B((0,A.Yc)(n));return i.isCancellationRequested?(e.dispose(),new B([])):e}))}O.w.registerCommand("_executeLinkProvider",(async(e,...t)=>{let[i,n]=t;(0,T.j)(i instanceof u.r),"number"!=typeof n&&(n=0);const{linkProvider:s}=e.get(N.u),r=e.get(P.S).getModel(i);if(!r)return[];const a=await W(s,r,o.XO.None);if(!a)return[];for(let e=0;ethis.computeLinksNow()),1e3)),this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null;const r=this._register(new M.gi(e));this._register(r.onMouseMoveOrRelevantKeyDown((([e,t])=>{this._onEditorMouseMove(e,t)}))),this._register(r.onExecute((e=>{this.onEditorMouseUp(e)}))),this._register(r.onCancel((e=>{this.cleanUpActiveLinkDecoration()}))),this._register(e.onDidChangeConfiguration((e=>{e.hasChanged(71)&&(this.updateDecorations([]),this.stop(),this.computeLinks.schedule(0))}))),this._register(e.onDidChangeModelContent((e=>{this.editor.hasModel()&&this.computeLinks.schedule(this.debounceInformation.get(this.editor.getModel()))}))),this._register(e.onDidChangeModel((e=>{this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.computeLinks.schedule(0)}))),this._register(e.onDidChangeModelLanguage((e=>{this.stop(),this.computeLinks.schedule(0)}))),this._register(this.providers.onDidChange((e=>{this.stop(),this.computeLinks.schedule(0)}))),this.computeLinks.schedule(0)}async computeLinksNow(){if(!this.editor.hasModel()||!this.editor.getOption(71))return;const e=this.editor.getModel();if(!e.isTooLargeForSyncing()&&this.providers.has(e)){this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=(0,n.SS)((t=>W(this.providers,e,t)));try{const t=new h.W(!1);if(this.activeLinksList=await this.computePromise,this.debounceInformation.update(e,t.elapsed()),e.isDisposed())return;this.updateDecorations(this.activeLinksList.links)}catch(e){(0,s.dz)(e)}finally{this.computePromise=null}}}updateDecorations(e){const t="altKey"===this.editor.getOption(78),i=[],n=Object.keys(this.currentOccurrences);for(const e of n){const t=this.currentOccurrences[e];i.push(t.decorationId)}const o=[];if(e)for(const i of e)o.push(G.decoration(i,t));this.editor.changeDecorations((t=>{const n=t.deltaDecorations(i,o);this.currentOccurrences={},this.activeLinkDecorationId=null;for(let t=0,i=n.length;t{t.activate(e,i),this.activeLinkDecorationId=t.decorationId}))}else this.cleanUpActiveLinkDecoration()}cleanUpActiveLinkDecoration(){const e="altKey"===this.editor.getOption(78);if(this.activeLinkDecorationId){const t=this.currentOccurrences[this.activeLinkDecorationId];t&&this.editor.changeDecorations((i=>{t.deactivate(i,e)})),this.activeLinkDecorationId=null}}onEditorMouseUp(e){if(!this.isEnabled(e))return;const t=this.getLinkOccurrence(e.target.position);t&&this.openLinkOccurrence(t,e.hasSideBySideModifier,!0)}openLinkOccurrence(e,t,i=!1){if(!this.openerService)return;const{link:n}=e;n.resolve(o.XO.None).then((e=>{if("string"==typeof e&&this.editor.hasModel()){const t=this.editor.getModel().uri;if(t.scheme===l.ny.file&&e.startsWith(`${l.ny.file}:`)){const i=u.r.parse(e);if(i.scheme===l.ny.file){const n=c.su(i);let o=null;n.startsWith("/./")||n.startsWith("\\.\\")?o=`.${n.substr(1)}`:(n.startsWith("//./")||n.startsWith("\\\\.\\"))&&(o=`.${n.substr(2)}`),o&&(e=c.uJ(t,o))}}}return this.openerService.open(e,{openToSide:t,fromUserGesture:i,allowContributedOpeners:!0,allowCommands:!0,fromWorkspace:!0})}),(e=>{const t=e instanceof Error?e.message:e;"invalid"===t?this.notificationService.warn(V.k("invalid.url","Failed to open this link because it is not well-formed: {0}",n.url.toString())):"missing"===t?this.notificationService.warn(V.k("missing.url","Failed to open this link because its target is missing.")):(0,s.dz)(e)}))}getLinkOccurrence(e){if(!this.editor.hasModel()||!e)return null;const t=this.editor.getModel().getDecorationsInRange({startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:e.lineNumber,endColumn:e.column},0,!0);for(const e of t){const t=this.currentOccurrences[e.id];if(t)return t}return null}isEnabled(e,t){return Boolean(6===e.target.type&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey))}stop(){var e;this.computeLinks.cancel(),this.activeLinksList&&(null===(e=this.activeLinksList)||void 0===e||e.dispose(),this.activeLinksList=null),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){super.dispose(),this.stop()}};$.ID="editor.linkDetector",$=H=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([U(1,j.C),U(2,z.Ot),U(3,N.u),U(4,I.U)],$);const K=E.kI.register({description:"detected-link",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),q=E.kI.register({description:"detected-link-active",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"});class G{static decoration(e,t){return{range:e.range,options:G._getOptions(e,t,!1)}}static _getOptions(e,t,i){const n={...i?q:K};return n.hoverMessage=function(e,t){const i=e.url&&/^command:/i.test(e.url.toString()),n=e.tooltip?e.tooltip:i?V.k("links.navigate.executeCmd","Execute command"):V.k("links.navigate.follow","Follow link"),o=t?d.zx?V.k("links.navigate.kb.meta.mac","cmd + click"):V.k("links.navigate.kb.meta","ctrl + click"):d.zx?V.k("links.navigate.kb.alt.mac","option + click"):V.k("links.navigate.kb.alt","alt + click");if(e.url){let t="";if(/^command:/i.test(e.url.toString())){const i=e.url.toString().match(/^command:([^?#]+)/);if(i){const e=i[1];t=V.k("tooltip.explanation","Execute command {0}",e)}}return new r.Bc("",!0).appendLink(e.url.toString(!0).replace(/ /g,"%20"),n,t).appendMarkdown(` (${o})`)}return(new r.Bc).appendText(`${n} (${o})`)}(e,t),n}constructor(e,t){this.link=e,this.decorationId=t}activate(e,t){e.changeDecorationOptions(this.decorationId,G._getOptions(this.link,t,!0))}deactivate(e,t){e.changeDecorationOptions(this.decorationId,G._getOptions(this.link,t,!1))}}class Q extends D.ks{constructor(){super({id:"editor.action.openLink",label:V.k("label","Open Link"),alias:"Open Link",precondition:void 0})}run(e,t){const i=$.get(t);if(!i)return;if(!t.hasModel())return;const n=t.getSelections();for(const e of n){const t=i.getLinkOccurrence(e.getEndPosition());t&&i.openLinkOccurrence(t,!1)}}}(0,D.HW)($.ID,$,1),(0,D.Fl)(Q)},55992:(e,t,i)=>{"use strict";i.r(t);var n=i(10998),o=i(50946);class s extends n.jG{constructor(e){super(),this._editor=e,this._register(this._editor.onMouseDown((e=>{const t=this._editor.getOption(118);t>=0&&6===e.target.type&&e.target.position.column>=t&&this._editor.updateOptions({stopRenderingLineAfter:-1})})))}}s.ID="editor.contrib.longLinesHelper",(0,o.HW)(s.ID,s,2)},81673:(e,t,i)=>{"use strict";i.d(t,{k:()=>M});var n=i(36930),o=i(9009),s=i(2106),r=i(90028),a=i(10998),l=i(85072),d=i.n(l),c=i(97825),h=i.n(c),u=i(77659),g=i.n(u),p=i(55056),m=i.n(p),f=i(10540),v=i.n(f),_=i(41113),b=i.n(_),w=i(7201),y={};y.styleTagTransform=b(),y.setAttributes=m(),y.insert=g().bind(null,"head"),y.domAPI=h(),y.insertStyleElement=v(),d()(w.A,y),w.A&&w.A.locals&&w.A.locals;var C,k=i(50946),S=i(28061),x=i(86708),L=i(3765),D=i(31540),E=i(54435),I=i(14333),N=function(e,t){return function(i,n){t(i,n,e)}};let M=C=class{static get(e){return e.getContribution(C.ID)}constructor(e,t,i){this._openerService=i,this._messageWidget=new a.HE,this._messageListeners=new a.Cm,this._mouseOverMessage=!1,this._editor=e,this._visible=C.MESSAGE_VISIBLE.bindTo(t)}dispose(){var e;null===(e=this._message)||void 0===e||e.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){let i;(0,o.xE)((0,r.VS)(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=(0,r.VS)(e)?(0,n.Gc)(e,{actionHandler:{callback:t=>{this.closeMessage(),(0,x.i)(this._openerService,t,(0,r.VS)(e)?e.isTrusted:void 0)},disposables:this._messageListeners}}):void 0,this._messageWidget.value=new T(this._editor,t,"string"==typeof e?e:this._message.element),this._messageListeners.add(s.Jh.debounce(this._editor.onDidBlurEditorText,((e,t)=>t),0)((()=>{this._mouseOverMessage||this._messageWidget.value&&I.QX(I.bq(),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(I.ko(this._messageWidget.value.getDomNode(),I.Bx.MOUSE_ENTER,(()=>this._mouseOverMessage=!0),!0)),this._messageListeners.add(I.ko(this._messageWidget.value.getDomNode(),I.Bx.MOUSE_LEAVE,(()=>this._mouseOverMessage=!1),!0)),this._messageListeners.add(this._editor.onMouseMove((e=>{e.target.position&&(i?i.containsPosition(e.target.position)||this.closeMessage():i=new S.Q(t.lineNumber-3,1,e.target.position.lineNumber+3,1))})))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(T.fadeOut(this._messageWidget.value))}};M.ID="editor.contrib.messageController",M.MESSAGE_VISIBLE=new D.N1("messageVisible",!1,L.k("messageVisible","Whether the editor is currently showing an inline message")),M=C=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([N(1,D.fN),N(2,E.C)],M);const A=k.DX.bindToContribution(M.get);(0,k.E_)(new A({id:"leaveEditorMessage",precondition:M.MESSAGE_VISIBLE,handler:e=>e.closeMessage(),kbOpts:{weight:130,primary:9}}));class T{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const o=document.createElement("div");o.classList.add("anchor","top"),this._domNode.appendChild(o);const s=document.createElement("div");"string"==typeof n?(s.classList.add("message"),s.textContent=n):(n.classList.add("message"),s.appendChild(n)),this._domNode.appendChild(s);const r=document.createElement("div");r.classList.add("anchor","below"),this._domNode.appendChild(r),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",2===e)}}(0,k.HW)(M.ID,M,4)},74984:(e,t,i)=>{"use strict";i.r(t),i.d(t,{AddSelectionToNextFindMatchAction:()=>N,AddSelectionToPreviousFindMatchAction:()=>M,CompatChangeAll:()=>P,FocusNextCursor:()=>z,FocusPreviousCursor:()=>j,InsertCursorAbove:()=>y,InsertCursorBelow:()=>C,MoveSelectionToNextFindMatchAction:()=>A,MoveSelectionToPreviousFindMatchAction:()=>T,MultiCursorSelectionController:()=>E,MultiCursorSelectionControllerAction:()=>I,MultiCursorSession:()=>D,MultiCursorSessionResult:()=>L,SelectHighlightsAction:()=>R,SelectionHighlighter:()=>F});var n,o=i(9009),s=i(65958),r=i(68387),a=i(10998),l=i(50946),d=i(27064),c=i(28061),h=i(93702),u=i(38122),g=i(54278),p=i(3765),m=i(58067),f=i(31540),v=i(52230),_=i(80494),b=i(82399);function w(e,t){const i=t.filter((t=>!e.find((e=>e.equals(t)))));if(i.length>=1){const e=i.map((e=>`line ${e.viewState.position.lineNumber} column ${e.viewState.position.column}`)).join(", "),t=1===i.length?p.k("cursorAdded","Cursor added: {0}",e):p.k("cursorsAdded","Cursors added: {0}",e);(0,o.h5)(t)}}class y extends l.ks{constructor(){super({id:"editor.action.insertCursorAbove",label:p.k("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:u.R.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.k({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})}run(e,t,i){if(!t.hasModel())return;let n=!0;i&&!1===i.logicalLine&&(n=!1);const o=t._getViewModel();if(o.cursorConfig.readOnly)return;o.model.pushStackElement();const s=o.getCursorStates();o.setCursorStates(i.source,3,d.c.addCursorUp(o,s,n)),o.revealTopMostCursor(i.source),w(s,o.getCursorStates())}}class C extends l.ks{constructor(){super({id:"editor.action.insertCursorBelow",label:p.k("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:u.R.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.k({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})}run(e,t,i){if(!t.hasModel())return;let n=!0;i&&!1===i.logicalLine&&(n=!1);const o=t._getViewModel();if(o.cursorConfig.readOnly)return;o.model.pushStackElement();const s=o.getCursorStates();o.setCursorStates(i.source,3,d.c.addCursorDown(o,s,n)),o.revealBottomMostCursor(i.source),w(s,o.getCursorStates())}}class k extends l.ks{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:p.k("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:u.R.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.k({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})}getCursorsForSelection(e,t,i){if(!e.isEmpty()){for(let n=e.startLineNumber;n1&&i.push(new h.L(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}}run(e,t){if(!t.hasModel())return;const i=t.getModel(),n=t.getSelections(),o=t._getViewModel(),s=o.getCursorStates(),r=[];n.forEach((e=>this.getCursorsForSelection(e,i,r))),r.length>0&&t.setSelections(r),w(s,o.getCursorStates())}}class S extends l.ks{constructor(){super({id:"editor.action.addCursorsToBottom",label:p.k("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getSelections(),n=t.getModel().getLineCount(),o=[];for(let e=i[0].startLineNumber;e<=n;e++)o.push(new h.L(e,i[0].startColumn,e,i[0].endColumn));const s=t._getViewModel(),r=s.getCursorStates();o.length>0&&t.setSelections(o),w(r,s.getCursorStates())}}class x extends l.ks{constructor(){super({id:"editor.action.addCursorsToTop",label:p.k("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getSelections(),n=[];for(let e=i[0].startLineNumber;e>=1;e--)n.push(new h.L(e,i[0].startColumn,e,i[0].endColumn));const o=t._getViewModel(),s=o.getCursorStates();n.length>0&&t.setSelections(n),w(s,o.getCursorStates())}}class L{constructor(e,t,i){this.selections=e,this.revealRange=t,this.revealScrollType=i}}class D{static create(e,t){if(!e.hasModel())return null;const i=t.getState();if(!e.hasTextFocus()&&i.isRevealed&&i.searchString.length>0)return new D(e,t,!1,i.searchString,i.wholeWord,i.matchCase,null);let n,o,s=!1;const r=e.getSelections();1===r.length&&r[0].isEmpty()?(s=!0,n=!0,o=!0):(n=i.wholeWord,o=i.matchCase);const a=e.getSelection();let l,d=null;if(a.isEmpty()){const t=e.getConfiguredWordAtPosition(a.getStartPosition());if(!t)return null;l=t.word,d=new h.L(a.startLineNumber,t.startColumn,a.startLineNumber,t.endColumn)}else l=e.getModel().getValueInRange(a).replace(/\r\n/g,"\n");return new D(e,t,s,l,n,o,d)}constructor(e,t,i,n,o,s,r){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=i,this.searchText=n,this.wholeWord=o,this.matchCase=s,this.currentMatch=r}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new L(t.concat(e),e,0)}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new L(t.slice(0,t.length-1).concat(e),e,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findNextMatch(this.searchText,t.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(132):null,!1);return i?new h.L(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new L(t.concat(e),e,0)}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new L(t.slice(0,t.length-1).concat(e),e,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],i=this._editor.getModel().findPreviousMatch(this.searchText,t.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(132):null,!1);return i?new h.L(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null}selectAll(e){if(!this._editor.hasModel())return[];this.findController.highlightFindOptions();const t=this._editor.getModel();return e?t.findMatches(this.searchText,e,!1,this.matchCase,this.wholeWord?this._editor.getOption(132):null,!1,1073741824):t.findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(132):null,!1,1073741824)}}class E extends a.jG{static get(e){return e.getContribution(E.ID)}constructor(e){super(),this._sessionDispose=this._register(new a.Cm),this._editor=e,this._ignoreSelectionChange=!1,this._session=null}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(e){if(!this._session){const t=D.create(this._editor,e);if(!t)return;this._session=t;const i={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(i.wholeWordOverride=1,i.matchCaseOverride=1,i.isRegexOverride=2),e.getState().change(i,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection((e=>{this._ignoreSelectionChange||this._endSession()}))),this._sessionDispose.add(this._editor.onDidBlurEditorText((()=>{this._endSession()}))),this._sessionDispose.add(e.getState().onFindReplaceStateChange((e=>{(e.matchCase||e.wholeWord)&&this._endSession()})))}}_endSession(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){const e={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(e,!1)}this._session=null}_setSelections(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1}_expandEmptyToWord(e,t){if(!t.isEmpty())return t;const i=this._editor.getConfiguredWordAtPosition(t.getStartPosition());return i?new h.L(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):t}_applySessionResult(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))}getSession(e){return this._session}addSelectionToNextFindMatch(e){if(this._editor.hasModel()){if(!this._session){const t=this._editor.getSelections();if(t.length>1){const i=e.getState().matchCase;if(!B(this._editor.getModel(),t,i)){const e=this._editor.getModel(),i=[];for(let n=0,o=t.length;n0&&i.isRegex){const e=this._editor.getModel();t=i.searchScope?e.findMatches(i.searchString,i.searchScope,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(132):null,!1,1073741824):e.findMatches(i.searchString,!0,i.isRegex,i.matchCase,i.wholeWord?this._editor.getOption(132):null,!1,1073741824)}else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll(i.searchScope)}if(t.length>0){const e=this._editor.getSelection();for(let i=0,n=t.length;inew h.L(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn))))}}}E.ID="editor.contrib.multiCursorController";class I extends l.ks{run(e,t){const i=E.get(t);if(!i)return;const n=t._getViewModel();if(n){const o=n.getCursorStates(),s=g.CommonFindController.get(t);if(s)this._run(i,s);else{const n=e.get(b._Y).createInstance(g.CommonFindController,t);this._run(i,n),n.dispose()}w(o,n.getCursorStates())}}}class N extends I{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:p.k("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:u.R.focus,primary:2082,weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.k({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}_run(e,t){e.addSelectionToNextFindMatch(t)}}class M extends I{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:p.k("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.k({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}_run(e,t){e.addSelectionToPreviousFindMatch(t)}}class A extends I{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:p.k("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:u.R.focus,primary:(0,r.m5)(2089,2082),weight:100}})}_run(e,t){e.moveSelectionToNextFindMatch(t)}}class T extends I{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:p.k("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})}_run(e,t){e.moveSelectionToPreviousFindMatch(t)}}class R extends I{constructor(){super({id:"editor.action.selectHighlights",label:p.k("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:u.R.focus,primary:3114,weight:100},menuOpts:{menuId:m.D8.MenubarSelectionMenu,group:"3_multi",title:p.k({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}_run(e,t){e.selectAll(t)}}class P extends I{constructor(){super({id:"editor.action.changeAll",label:p.k("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:f.M$.and(u.R.writable,u.R.editorTextFocus),kbOpts:{kbExpr:u.R.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(e,t){e.selectAll(t)}}class O{constructor(e,t,i,n,o){this._model=e,this._searchText=t,this._matchCase=i,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 null===this._cachedFindMatches&&(this._cachedFindMatches=this._model.findMatches(this._searchText,!0,!1,this._matchCase,this._wordSeparators,!1).map((e=>e.range)),this._cachedFindMatches.sort(c.Q.compareRangesUsingStarts)),this._cachedFindMatches}}let F=n=class extends a.jG{constructor(e,t){super(),this._languageFeaturesService=t,this.editor=e,this._isEnabled=e.getOption(109),this._decorations=e.createDecorationsCollection(),this.updateSoon=this._register(new s.uC((()=>this._update()),300)),this.state=null,this._register(e.onDidChangeConfiguration((t=>{this._isEnabled=e.getOption(109)}))),this._register(e.onDidChangeCursorSelection((e=>{this._isEnabled&&(e.selection.isEmpty()?3===e.reason?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())}))),this._register(e.onDidChangeModel((e=>{this._setState(null)}))),this._register(e.onDidChangeModelContent((e=>{this._isEnabled&&this.updateSoon.schedule()})));const i=g.CommonFindController.get(e);i&&this._register(i.getState().onFindReplaceStateChange((e=>{this._update()}))),this.updateSoon.schedule()}_update(){this._setState(n._createState(this.state,this._isEnabled,this.editor))}static _createState(e,t,i){if(!t)return null;if(!i.hasModel())return null;const n=i.getSelection();if(n.startLineNumber!==n.endLineNumber)return null;const o=E.get(i);if(!o)return null;const s=g.CommonFindController.get(i);if(!s)return null;let r=o.getSession(s);if(!r){const e=i.getSelections();if(e.length>1){const t=s.getState().matchCase;if(!B(i.getModel(),e,t))return null}r=D.create(i,s)}if(!r)return null;if(r.currentMatch)return null;if(/^[ \t]+$/.test(r.searchText))return null;if(r.searchText.length>200)return null;const a=s.getState(),l=a.matchCase;if(a.isRevealed){let e=a.searchString;l||(e=e.toLowerCase());let t=r.searchText;if(l||(t=t.toLowerCase()),e===t&&r.matchCase===a.matchCase&&r.wholeWord===a.wholeWord&&!a.isRegex)return null}return new O(i.getModel(),r.searchText,r.matchCase,r.wholeWord?i.getOption(132):null,e)}_setState(e){if(this.state=e,!this.state)return void this._decorations.clear();if(!this.editor.hasModel())return;const t=this.editor.getModel();if(t.isTooLargeForTokenization())return;const i=this.state.findMatches(),n=this.editor.getSelections();n.sort(c.Q.compareRangesUsingStarts);const o=[];for(let e=0,t=0,s=i.length,r=n.length;e=r)o.push(s),e++;else{const i=c.Q.compareRangesUsingStarts(s,n[t]);i<0?(!n[t].isEmpty()&&c.Q.areIntersecting(s,n[t])||o.push(s),e++):(i>0||e++,t++)}}const s="off"!==this.editor.getOption(81),r=this._languageFeaturesService.documentHighlightProvider.has(t)&&s,a=o.map((e=>({range:e,options:(0,_.v)(r)})));this._decorations.set(a)}dispose(){this._setState(null),super.dispose()}};function B(e,t,i){const n=W(e,t[0],!i);for(let o=1,s=t.length;o=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(H=1,V=v.u,function(e,t){V(e,t,H)})],F);class z extends l.ks{constructor(){super({id:"editor.action.focusNextCursor",label:p.k("mutlicursor.focusNextCursor","Focus Next Cursor"),metadata:{description:p.k("mutlicursor.focusNextCursor.description","Focuses the next cursor"),args:[]},alias:"Focus Next Cursor",precondition:void 0})}run(e,t,i){if(!t.hasModel())return;const n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();const o=Array.from(n.getCursorStates()),s=o.shift();s&&(o.push(s),n.setCursorStates(i.source,3,o),n.revealPrimaryCursor(i.source,!0),w(o,n.getCursorStates()))}}class j extends l.ks{constructor(){super({id:"editor.action.focusPreviousCursor",label:p.k("mutlicursor.focusPreviousCursor","Focus Previous Cursor"),metadata:{description:p.k("mutlicursor.focusPreviousCursor.description","Focuses the previous cursor"),args:[]},alias:"Focus Previous Cursor",precondition:void 0})}run(e,t,i){if(!t.hasModel())return;const n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();const o=Array.from(n.getCursorStates()),s=o.pop();s&&(o.unshift(s),n.setCursorStates(i.source,3,o),n.revealPrimaryCursor(i.source,!0),w(o,n.getCursorStates()))}}(0,l.HW)(E.ID,E,4),(0,l.HW)(F.ID,F,1),(0,l.Fl)(y),(0,l.Fl)(C),(0,l.Fl)(k),(0,l.Fl)(N),(0,l.Fl)(M),(0,l.Fl)(A),(0,l.Fl)(T),(0,l.Fl)(R),(0,l.Fl)(P),(0,l.Fl)(S),(0,l.Fl)(x),(0,l.Fl)(z),(0,l.Fl)(j)},32029:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ParameterHintsController:()=>le,TriggerParameterHintsAction:()=>de});var n=i(63946),o=i(10998),s=i(50946),r=i(38122),a=i(47317),l=i(52230),d=i(65958),c=i(94327),h=i(2106),u=i(27454),g=i(78903),p=i(79359),m=i(37264),f=i(15365),v=i(37042),_=i(59715),b=i(31540);const w={Visible:new b.N1("parameterHintsVisible",!1),MultipleSignatures:new b.N1("parameterHintsMultipleSignatures",!1)};async function y(e,t,i,n,o){const s=e.ordered(t);for(const e of s)try{const s=await e.provideSignatureHelp(t,i,o,n);if(s)return s}catch(e){(0,c.M_)(e)}}var C;_.w.registerCommand("_executeSignatureHelpProvider",(async(e,...t)=>{const[i,n,o]=t;(0,p.j)(m.r.isUri(i)),(0,p.j)(f.y.isIPosition(n)),(0,p.j)("string"==typeof o||!o);const s=e.get(l.u),r=await e.get(v.b).createModelReference(i);try{const e=await y(s.signatureHelpProvider,r.object.textEditorModel,f.y.lift(n),{triggerKind:a.WA.Invoke,isRetrigger:!1,triggerCharacter:o},g.XO.None);if(!e)return;return setTimeout((()=>e.dispose()),0),e.value}finally{r.dispose()}})),function(e){e.Default={type:0},e.Pending=class{constructor(e,t){this.request=e,this.previouslyActiveHints=t,this.type=2}},e.Active=class{constructor(e){this.hints=e,this.type=1}}}(C||(C={}));class k extends o.jG{constructor(e,t,i=k.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new h.vl),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=C.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new o.HE),this.triggerChars=new u.y,this.retriggerChars=new u.y,this.triggerId=0,this.editor=e,this.providers=t,this.throttledDelayer=new d.ve(i),this._register(this.editor.onDidBlurEditorWidget((()=>this.cancel()))),this._register(this.editor.onDidChangeConfiguration((()=>this.onEditorConfigurationChange()))),this._register(this.editor.onDidChangeModel((e=>this.onModelChanged()))),this._register(this.editor.onDidChangeModelLanguage((e=>this.onModelChanged()))),this._register(this.editor.onDidChangeCursorSelection((e=>this.onCursorChange(e)))),this._register(this.editor.onDidChangeModelContent((e=>this.onModelContentChange()))),this._register(this.providers.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType((e=>this.onDidType(e)))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(e){2===this._state.type&&this._state.request.cancel(),this._state=e}cancel(e=!1){this.state=C.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)}trigger(e,t){const i=this.editor.getModel();if(!i||!this.providers.has(i))return;const n=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger((()=>this.doTrigger(n)),t).catch(c.dz)}next(){if(1!==this.state.type)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=t%e==e-1,n=this.editor.getOption(86).cycle;!(e<2||i)||n?this.updateActiveSignature(i&&n?0:t+1):this.cancel()}previous(){if(1!==this.state.type)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,i=0===t,n=this.editor.getOption(86).cycle;!(e<2||i)||n?this.updateActiveSignature(i&&n?e-1:t-1):this.cancel()}updateActiveSignature(e){1===this.state.type&&(this.state=new C.Active({...this.state.hints,activeSignature:e}),this._onChangedHints.fire(this.state.hints))}async doTrigger(e){const t=1===this.state.type||2===this.state.type,i=this.getLastActiveHints();if(this.cancel(!0),0===this._pendingTriggers.length)return!1;const n=this._pendingTriggers.reduce(S);this._pendingTriggers=[];const o={triggerKind:n.triggerKind,triggerCharacter:n.triggerCharacter,isRetrigger:t,activeSignatureHelp:i};if(!this.editor.hasModel())return!1;const s=this.editor.getModel(),r=this.editor.getPosition();this.state=new C.Pending((0,d.SS)((e=>y(this.providers,s,r,o,e))),i);try{const t=await this.state.request;return e!==this.triggerId?(null==t||t.dispose(),!1):t&&t.value.signatures&&0!==t.value.signatures.length?(this.state=new C.Active(t.value),this._lastSignatureHelpResult.value=t,this._onChangedHints.fire(this.state.hints),!0):(null==t||t.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1)}catch(t){return e===this.triggerId&&(this.state=C.Default),(0,c.dz)(t),!1}}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return 1===this.state.type||2===this.state.type||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars.clear(),this.retriggerChars.clear();const e=this.editor.getModel();if(e)for(const t of this.providers.ordered(e)){for(const e of t.signatureHelpTriggerCharacters||[])if(e.length){const t=e.charCodeAt(0);this.triggerChars.add(t),this.retriggerChars.add(t)}for(const e of t.signatureHelpRetriggerCharacters||[])e.length&&this.retriggerChars.add(e.charCodeAt(0))}}onDidType(e){if(!this.triggerOnType)return;const t=e.length-1,i=e.charCodeAt(t);(this.triggerChars.has(i)||this.isTriggered&&this.retriggerChars.has(i))&&this.trigger({triggerKind:a.WA.TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){"mouse"===e.source?this.cancel():this.isTriggered&&this.trigger({triggerKind:a.WA.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:a.WA.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(86).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}}function S(e,t){switch(t.triggerKind){case a.WA.Invoke:return t;case a.WA.ContentChange:return e;case a.WA.TriggerCharacter:default:return t}}k.DEFAULT_DELAY=120;var x=i(3765),L=i(82399),D=i(14333),E=i(9009),I=i(75239),N=i(26048),M=i(16844),A=i(85072),T=i.n(A),R=i(97825),P=i.n(R),O=i(77659),F=i.n(O),B=i(55056),W=i.n(B),H=i(10540),V=i.n(H),z=i(41113),j=i.n(z),U=i(20991),$={};$.styleTagTransform=j(),$.setAttributes=W(),$.insert=F().bind(null,"head"),$.domAPI=P(),$.insertStyleElement=V(),T()(U.A,$),U.A&&U.A.locals&&U.A.locals;var K,q=i(77922),G=i(86708),Q=i(54435),Z=i(70559),Y=i(11210),X=i(58881),J=i(23013),ee=i(76243),te=function(e,t){return function(i,n){t(i,n,e)}};const ie=D.$,ne=(0,Y.pU)("parameter-hints-next",N.W.chevronDown,x.k("parameterHintsNextIcon","Icon for show next parameter hint.")),oe=(0,Y.pU)("parameter-hints-previous",N.W.chevronUp,x.k("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let se=K=class extends o.jG{constructor(e,t,i,n,s,r){super(),this.editor=e,this.model=t,this.telemetryService=r,this.renderDisposeables=this._register(new o.Cm),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.markdownRenderer=this._register(new G.T({editor:e},s,n)),this.keyVisible=w.Visible.bindTo(i),this.keyMultipleSignatures=w.MultipleSignatures.bindTo(i)}createParameterHintDOMNodes(){const e=ie(".editor-widget.parameter-hints-widget"),t=D.BC(e,ie(".phwrapper"));t.tabIndex=-1;const i=D.BC(t,ie(".controls")),n=D.BC(i,ie(".button"+X.L.asCSSSelector(oe))),o=D.BC(i,ie(".overloads")),s=D.BC(i,ie(".button"+X.L.asCSSSelector(ne)));this._register(D.ko(n,"click",(e=>{D.fs.stop(e),this.previous()}))),this._register(D.ko(s,"click",(e=>{D.fs.stop(e),this.next()})));const r=ie(".body"),a=new I.MU(r,{alwaysConsumeMouseWheel:!0});this._register(a),t.appendChild(a.getDomNode());const l=D.BC(r,ie(".signature")),d=D.BC(r,ie(".docs"));e.style.userSelect="text",this.domNodes={element:e,signature:l,overloads:o,docs:d,scrollbar:a},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection((e=>{this.visible&&this.editor.layoutContentWidget(this)})));const c=()=>{if(!this.domNodes)return;const e=this.editor.getOption(50);this.domNodes.element.style.fontSize=`${e.fontSize}px`,this.domNodes.element.style.lineHeight=""+e.lineHeight/e.fontSize};c(),this._register(h.Jh.chain(this.editor.onDidChangeConfiguration.bind(this.editor),(e=>e.filter((e=>e.hasChanged(50)))))(c)),this._register(this.editor.onDidLayoutChange((e=>this.updateMaxHeight()))),this.updateMaxHeight()}show(){this.visible||(this.domNodes||this.createParameterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout((()=>{var e;null===(e=this.domNodes)||void 0===e||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,null===(e=this.domNodes)||void 0===e||e.element.classList.remove("visible"),this.editor.layoutContentWidget(this))}getPosition(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null}render(e){var t;if(this.renderDisposeables.clear(),!this.domNodes)return;const i=e.signatures.length>1;this.domNodes.element.classList.toggle("multiple",i),this.keyMultipleSignatures.set(i),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="";const n=e.signatures[e.activeSignature];if(!n)return;const o=D.BC(this.domNodes.signature,ie(".code")),s=this.editor.getOption(50);o.style.fontSize=`${s.fontSize}px`,o.style.fontFamily=s.fontFamily;const r=n.parameters.length>0,a=null!==(t=n.activeParameter)&&void 0!==t?t:e.activeParameter;r?this.renderParameters(o,n,a):D.BC(o,ie("span")).textContent=n.label;const l=n.parameters[a];if(null==l?void 0:l.documentation){const e=ie("span.documentation");if("string"==typeof l.documentation)e.textContent=l.documentation;else{const t=this.renderMarkdownDocs(l.documentation);e.appendChild(t.element)}D.BC(this.domNodes.docs,ie("p",{},e))}if(void 0===n.documentation);else if("string"==typeof n.documentation)D.BC(this.domNodes.docs,ie("p",{},n.documentation));else{const e=this.renderMarkdownDocs(n.documentation);D.BC(this.domNodes.docs,e.element)}const d=this.hasDocs(n,l);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,l){let e="";const t=n.parameters[a];e=Array.isArray(t.label)?n.label.substring(t.label[0],t.label[1]):t.label,t.documentation&&(e+="string"==typeof t.documentation?`, ${t.documentation}`:`, ${t.documentation.value}`),n.documentation&&(e+="string"==typeof n.documentation?`, ${n.documentation}`:`, ${n.documentation.value}`),this.announcedLabel!==e&&(E.xE(x.k("hint","{0}, hint",e)),this.announcedLabel=e)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}renderMarkdownDocs(e){const t=new J.W,i=this.renderDisposeables.add(this.markdownRenderer.render(e,{asyncRenderCallback:()=>{var e;null===(e=this.domNodes)||void 0===e||e.scrollbar.scanDomNode()}}));i.element.classList.add("markdown-docs");const n=t.elapsed();return n>300&&this.telemetryService.publicLog2("parameterHints.parseMarkdown",{renderDuration:n}),i}hasDocs(e,t){return!!(t&&"string"==typeof t.documentation&&(0,p.eU)(t.documentation).length>0||t&&"object"==typeof t.documentation&&(0,p.eU)(t.documentation).value.length>0||e.documentation&&"string"==typeof e.documentation&&(0,p.eU)(e.documentation).length>0||e.documentation&&"object"==typeof e.documentation&&(0,p.eU)(e.documentation.value).length>0)}renderParameters(e,t,i){const[n,o]=this.getParameterLabelOffsets(t,i),s=document.createElement("span");s.textContent=t.label.substring(0,n);const r=document.createElement("span");r.textContent=t.label.substring(n,o),r.className="parameter active";const a=document.createElement("span");a.textContent=t.label.substring(o),D.BC(e,s,r,a)}getParameterLabelOffsets(e,t){const i=e.parameters[t];if(i){if(Array.isArray(i.label))return i.label;if(i.label.length){const t=new RegExp(`(\\W|^)${(0,M.bm)(i.label)}(?=\\W|$)`,"g");t.test(e.label);const n=t.lastIndex-i.label.length;return n>=0?[n,t.lastIndex]:[0,0]}return[0,0]}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 K.ID}updateMaxHeight(){if(!this.domNodes)return;const e=`${Math.max(this.editor.getLayoutInfo().height/4,250)}px`;this.domNodes.element.style.maxHeight=e;const t=this.domNodes.element.getElementsByClassName("phwrapper");t.length&&(t[0].style.maxHeight=e)}};se.ID="editor.widget.parameterHintsWidget",se=K=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([te(2,b.fN),te(3,Q.C),te(4,q.L),te(5,ee.k)],se),(0,Z.x1A)("editorHoverWidget.highlightForeground",Z.QI5,x.k("editorHoverWidgetHighlightForeground","Foreground color of the active item in the parameter hint."));var re,ae=function(e,t){return function(i,n){t(i,n,e)}};let le=re=class extends o.jG{static get(e){return e.getContribution(re.ID)}constructor(e,t,i){super(),this.editor=e,this.model=this._register(new k(e,i.signatureHelpProvider)),this._register(this.model.onChangedHints((e=>{var t;e?(this.widget.value.show(),this.widget.value.render(e)):null===(t=this.widget.rawValue)||void 0===t||t.hide()}))),this.widget=new n.d((()=>this._register(t.createInstance(se,this.editor,this.model))))}cancel(){this.model.cancel()}previous(){var e;null===(e=this.widget.rawValue)||void 0===e||e.previous()}next(){var e;null===(e=this.widget.rawValue)||void 0===e||e.next()}trigger(e){this.model.trigger(e,0)}};le.ID="editor.controller.parameterHints",le=re=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([ae(1,L._Y),ae(2,l.u)],le);class de extends s.ks{constructor(){super({id:"editor.action.triggerParameterHints",label:x.k("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:r.R.hasSignatureHelpProvider,kbOpts:{kbExpr:r.R.editorTextFocus,primary:3082,weight:100}})}run(e,t){const i=le.get(t);null==i||i.trigger({triggerKind:a.WA.Invoke})}}(0,s.HW)(le.ID,le,2),(0,s.Fl)(de);const ce=s.DX.bindToContribution(le.get);(0,s.E_)(new ce({id:"closeParameterHints",precondition:w.Visible,handler:e=>e.cancel(),kbOpts:{weight:175,kbExpr:r.R.focus,primary:9,secondary:[1033]}})),(0,s.E_)(new ce({id:"showPrevParameterHint",precondition:b.M$.and(w.Visible,w.MultipleSignatures),handler:e=>e.previous(),kbOpts:{weight:175,kbExpr:r.R.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),(0,s.E_)(new ce({id:"showNextParameterHint",precondition:b.M$.and(w.Visible,w.MultipleSignatures),handler:e=>e.next(),kbOpts:{weight:175,kbExpr:r.R.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))},45281:(e,t,i)=>{"use strict";i.d(t,{zn:()=>Q,x2:()=>Z,j6:()=>ee,RL:()=>X,zl:()=>oe,n6:()=>se,z0:()=>te,_X:()=>ie,e3:()=>ne});var n=i(14333),o=i(77439),s=i(27969),r=i(26048),a=i(58881),l=i(94901),d=i(2106),c=i(71386),h=i(85072),u=i.n(h),g=i(97825),p=i.n(g),m=i(77659),f=i.n(m),v=i(55056),_=i.n(v),b=i(10540),w=i.n(b),y=i(41113),C=i.n(y),k=i(69734),S={};S.styleTagTransform=C(),S.setAttributes=_(),S.insert=f().bind(null,"head"),S.domAPI=p(),S.insertStyleElement=w(),u()(k.A,S),k.A&&k.A.locals&&k.A.locals;var x=i(50946),L=i(87301),D=i(24665),E=i(1910),I=i(94664),N=i(10998),M=i(12889),A={};A.styleTagTransform=C(),A.setAttributes=_(),A.insert=f().bind(null,"head"),A.domAPI=p(),A.insertStyleElement=w(),u()(M.A,A),M.A&&M.A.locals&&M.A.locals;var T=i(28061),R=i(74774);const P=new l.Q1(new l.bU(0,122,204)),O={showArrow:!0,showFrame:!0,className:"",frameColor:P,arrowColor:P,keepEditorSelection:!1};class F{constructor(e,t,i,n,o,s,r,a){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=i,this.heightInLines=n,this.showInHiddenAreas=r,this.ordinal=a,this._onDomNodeTop=o,this._onComputedHeight=s}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class B{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class W{constructor(e){this._editor=e,this._ruleName=W._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),n.U2(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(){n.U2(this._ruleName),n.Wt(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px !important; margin-left: -${this._height}px; `)}show(e){1===e.column&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:T.Q.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}}W._IdGenerator=new I.n(".arrow-decoration-");class H{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new N.Cm,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=c.Go(t),c.co(this.options,O,!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((e=>{const t=this._getWidth(e);this.domNode.style.width=t+"px",this.domNode.style.left=this._getLeft(e)+"px",this._onWidth(t)})))}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 W(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){const e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){var t;if(this.domNode.style.height=`${e}px`,this.container){const t=e-this._decoratingElementsHeight();this.container.style.height=`${t}px`;const i=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(i))}null===(t=this._resizeSash)||void 0===t||t.layout()}get position(){const e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}show(e,t){const i=T.Q.isIRange(e)?T.Q.lift(e):T.Q.fromPositions(e);this._isShowing=!0,this._showImpl(i,t),this._isShowing=!1,this._positionMarkerId.set([{range:i,options:R.kI.EMPTY}])}hide(){var e;this._viewZone&&(this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id)})),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),null===(e=this._arrow)||void 0===e||e.hide(),this._positionMarkerId.clear()}_decoratingElementsHeight(){const e=this.editor.getOption(67);let t=0;return this.options.showArrow&&(t+=2*Math.round(e/3)),this.options.showFrame&&(t+=2*Math.round(e/9)),t}_showImpl(e,t){const i=e.getStartPosition(),n=this.editor.getLayoutInfo(),o=this._getWidth(n);this.domNode.style.width=`${o}px`,this.domNode.style.left=this._getLeft(n)+"px";const s=document.createElement("div");s.style.overflow="hidden";const r=this.editor.getOption(67);if(!this.options.allowUnlimitedHeight){const e=Math.max(12,this.editor.getLayoutInfo().height/r*.8);t=Math.min(t,e)}let a=0,l=0;if(this._arrow&&this.options.showArrow&&(a=Math.round(r/3),this._arrow.height=a,this._arrow.show(i)),this.options.showFrame&&(l=Math.round(r/9)),this.editor.changeViewZones((e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new F(s,i.lineNumber,i.column,t,(e=>this._onViewZoneTop(e)),(e=>this._onViewZoneHeight(e)),this.options.showInHiddenAreas,this.options.ordinal),this._viewZone.id=e.addZone(this._viewZone),this._overlayWidget=new B("vs.editor.contrib.zoneWidget"+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)})),this.container&&this.options.showFrame){const e=this.options.frameWidth?this.options.frameWidth:l;this.container.style.borderTopWidth=e+"px",this.container.style.borderBottomWidth=e+"px"}const d=t*r-this._decoratingElementsHeight();this.container&&(this.container.style.top=a+"px",this.container.style.height=d+"px",this.container.style.overflow="hidden"),this._doLayout(d,o),this.options.keepEditorSelection||this.editor.setSelection(e);const c=this.editor.getModel();if(c){const t=c.validateRange(new T.Q(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(t,t.startLineNumber===c.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;let e;this._resizeSash=this._disposables.add(new E.m(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0),this._disposables.add(this._resizeSash.onDidStart((t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})}))),this._disposables.add(this._resizeSash.onDidEnd((()=>{e=void 0}))),this._disposables.add(this._resizeSash.onDidChange((t=>{if(e){const i=(t.currentY-e.startY)/this.editor.getOption(67),n=i<0?Math.ceil(i):Math.floor(i),o=e.heightInLines+n;o>5&&o<35&&this._relayout(o)}})))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(null===this.domNode.style.height?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}var V=i(3765),z=i(22751),j=i(31540),U=i(66726),$=i(82399),K=i(70559),q=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},G=function(e,t){return function(i,n){t(i,n,e)}};const Q=(0,$.u1)("IPeekViewService");var Z;(0,U.v)(Q,class{constructor(){this._widgets=new Map}addExclusiveWidget(e,t){const i=this._widgets.get(e);i&&(i.listener.dispose(),i.widget.dispose()),this._widgets.set(e,{widget:t,listener:t.onDidClose((()=>{const i=this._widgets.get(e);i&&i.widget===t&&(i.listener.dispose(),this._widgets.delete(e))}))})}},1),function(e){e.inPeekEditor=new j.N1("inReferenceSearchEditor",!0,V.k("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),e.notInPeekEditor=e.inPeekEditor.toNegated()}(Z||(Z={}));let Y=class{constructor(e,t){e instanceof D.t&&Z.inPeekEditor.bindTo(t)}dispose(){}};function X(e){const t=e.get(L.T).getFocusedCodeEditor();return t instanceof D.t?t.getParentEditor():t}Y.ID="editor.contrib.referenceController",Y=q([G(1,j.fN)],Y),(0,x.HW)(Y.ID,Y,0);const J={headerBackgroundColor:l.Q1.white,primaryHeadingColor:l.Q1.fromHex("#333333"),secondaryHeadingColor:l.Q1.fromHex("#6c6c6cb3")};let ee=class extends H{constructor(e,t,i){super(e,t),this.instantiationService=i,this._onDidClose=new d.vl,this.onDidClose=this._onDidClose.event,c.co(this.options,J,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){const t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();const e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=n.$(".head"),this._bodyElement=n.$(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){this._titleElement=n.$(".peekview-title"),this.options.supportOnTitleClick&&(this._titleElement.classList.add("clickable"),n.b2(this._titleElement,"click",(e=>this._onTitleClick(e)))),n.BC(this._headElement,this._titleElement),this._fillTitleIcon(this._titleElement),this._primaryHeading=n.$("span.filename"),this._secondaryHeading=n.$("span.dirname"),this._metaHeading=n.$("span.meta"),n.BC(this._titleElement,this._primaryHeading,this._secondaryHeading,this._metaHeading);const i=n.$(".peekview-actions");n.BC(this._headElement,i);const l=this._getActionBarOptions();this._actionbarWidget=new o.E(i,l),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new s.rc("peekview.close",V.k("label.close","Close"),a.L.asClassName(r.W.close),!0,(()=>(this.dispose(),Promise.resolve()))),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:z.rN.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:n.w_(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,n.WU(this._metaHeading)):n.jD(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0)return void this.dispose();const i=Math.ceil(1.2*this.editor.getOption(67)),n=Math.round(e-(i+2));this._doLayoutHead(i,t),this._doLayoutBody(n,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};ee=q([G(2,$._Y)],ee);const te=(0,K.x1A)("peekViewTitle.background",{dark:"#252526",light:"#F3F3F3",hcDark:l.Q1.black,hcLight:l.Q1.white},V.k("peekViewTitleBackground","Background color of the peek view title area.")),ie=(0,K.x1A)("peekViewTitleLabel.foreground",{dark:l.Q1.white,light:l.Q1.black,hcDark:l.Q1.white,hcLight:K.By2},V.k("peekViewTitleForeground","Color of the peek view title.")),ne=(0,K.x1A)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},V.k("peekViewTitleInfoForeground","Color of the peek view title info.")),oe=(0,K.x1A)("peekView.border",{dark:K.pOz,light:K.pOz,hcDark:K.b1q,hcLight:K.b1q},V.k("peekViewBorder","Color of the peek view borders and arrow.")),se=(0,K.x1A)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:l.Q1.black,hcLight:l.Q1.white},V.k("peekViewResultsBackground","Background color of the peek view result list.")),re=((0,K.x1A)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:l.Q1.white,hcLight:K.By2},V.k("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),(0,K.x1A)("peekViewResult.fileForeground",{dark:l.Q1.white,light:"#1E1E1E",hcDark:l.Q1.white,hcLight:K.By2},V.k("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),(0,K.x1A)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},V.k("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),(0,K.x1A)("peekViewResult.selectionForeground",{dark:l.Q1.white,light:"#6C6C6C",hcDark:l.Q1.white,hcLight:K.By2},V.k("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),(0,K.x1A)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:l.Q1.black,hcLight:l.Q1.white},V.k("peekViewEditorBackground","Background color of the peek view editor.")));(0,K.x1A)("peekViewEditorGutter.background",re,V.k("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),(0,K.x1A)("peekViewEditorStickyScroll.background",re,V.k("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor.")),(0,K.x1A)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},V.k("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),(0,K.x1A)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},V.k("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),(0,K.x1A)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:K.buw,hcLight:K.buw},V.k("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))},94527:(e,t,i)=>{"use strict";i.r(t);var n=i(85072),o=i.n(n),s=i(97825),r=i.n(s),a=i(77659),l=i.n(a),d=i(55056),c=i.n(d),h=i(10540),u=i.n(h),g=i(41113),p=i.n(g),m=i(86493),f={};f.styleTagTransform=p(),f.setAttributes=c(),f.insert=l().bind(null,"head"),f.domAPI=r(),f.insertStyleElement=u(),o()(m.A,f),m.A&&m.A.locals&&m.A.locals;var v=i(50946),_=i(48295),b=i(3765),w=i(87676),y=i(65506),C=i(81940),k=i(41807),S=i(16311),x=i(82399);class L{constructor(e){this.instantiationService=e}init(...e){}}let D=class extends L{constructor(e,t){super(t),this.init(e)}};var E,I,N;D=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(I=1,N=x._Y,function(e,t){N(e,t,I)})],D),(0,v.HW)(y.X.ID,(E=()=>y.X,(0,C.e)()?function(e,t){return class extends t{constructor(){super(...arguments),this._autorun=void 0}init(...t){this._autorun=(0,S.yC)(((i,n)=>{const o=(0,k.b)(e(),i);n.add(this.instantiationService.createInstance(o,...t))}))}dispose(){var e;null===(e=this._autorun)||void 0===e||e.dispose()}}}(E,D):E()),0),(0,w.x1)("editor.placeholder.foreground",_.Ek,(0,b.k)("placeholderForeground","Foreground color of the placeholder text in the editor."))},65506:(e,t,i)=>{"use strict";i.d(t,{X:()=>d});var n=i(14333),o=i(8897),s=i(10998),r=i(16311),a=i(18366),l=i(61988);class d extends s.jG{constructor(e){var t;super(),this._editor=e,this._editorObs=(0,l.Ud)(this._editor),this._placeholderText=this._editorObs.getOption(88),this._state=(0,r.C)({owner:this,equalsFn:o.dB},(e=>{const t=this._placeholderText.read(e);if(t&&this._editorObs.valueIsEmpty.read(e))return{placeholder:t}})),this._shouldViewBeAlive=(t=e=>{var t;return void 0!==(null===(t=this._state.read(e))||void 0===t?void 0:t.placeholder)},(0,r.ZX)(this,((e,i)=>!0===i||t(e)))),this._view=(0,a.rm)(((e,t)=>{if(!this._shouldViewBeAlive.read(e))return;const i=(0,n.h)("div.editorPlaceholder");t.add((0,r.fm)((e=>{var t;const n=this._state.read(e),o=void 0!==(null==n?void 0:n.placeholder);i.root.style.display=o?"block":"none",i.root.innerText=null!==(t=null==n?void 0:n.placeholder)&&void 0!==t?t:""}))),t.add((0,r.fm)((e=>{const t=this._editorObs.layoutInfo.read(e);i.root.style.left=`${t.contentLeft}px`,i.root.style.width=t.contentWidth-t.verticalScrollbarWidth+"px",i.root.style.top=`${this._editor.getTopForLineNumber(0)}px`}))),t.add((0,r.fm)((e=>{i.root.style.fontFamily=this._editorObs.getOption(49).read(e),i.root.style.fontSize=this._editorObs.getOption(52).read(e)+"px",i.root.style.lineHeight=this._editorObs.getOption(67).read(e)+"px"}))),t.add(this._editorObs.createOverlayWidget({allowEditorOverflow:!1,minContentWidthInPx:(0,r.lk)(0),position:(0,r.lk)(null),domNode:i.root}))})),this._view.recomputeInitiallyAndOnChange(this._store)}}d.ID="editor.contrib.placeholderText"},86653:(e,t,i)=>{"use strict";i.d(t,{o:()=>c});var n=i(48289),o=i(10998),s=i(66638),r=i(66055),a=i(48295),l=i(89044),d=i(9009);class c{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t,i){var n;const s=new o.Cm;e.canAcceptInBackground=!!(null===(n=this.options)||void 0===n?void 0:n.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const r=s.add(new o.HE);return r.value=this.doProvide(e,t,i),s.add(this.onDidActiveTextEditorControlChange((()=>{r.value=void 0,r.value=this.doProvide(e,t)}))),s}doProvide(e,t,i){var r;const a=new o.Cm,l=this.activeTextEditorControl;if(l&&this.canProvideWithTextEditor(l)){const d={editor:l},c=(0,s.jA)(l);if(c){let e=null!==(r=l.saveViewState())&&void 0!==r?r:void 0;a.add(c.onDidChangeCursorPosition((()=>{var t;e=null!==(t=l.saveViewState())&&void 0!==t?t:void 0}))),d.restoreViewState=()=>{e&&l===this.activeTextEditorControl&&l.restoreViewState(e)},a.add((0,n.P)(t.onCancellationRequested)((()=>{var e;return null===(e=d.restoreViewState)||void 0===e?void 0:e.call(d)})))}a.add((0,o.s)((()=>this.clearDecorations(l)))),a.add(this.provideWithTextEditor(d,e,t,i))}else a.add(this.provideWithoutTextEditor(e,t));return a}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range,"code.jump"),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus();const i=e.getModel();i&&"getLineContent"in i&&(0,d.h5)(`${i.getLineContent(t.range.startLineNumber)}`)}getModel(e){var t;return(0,s.Np)(e)?null===(t=e.getModel())||void 0===t?void 0:t.modified:e.getModel()}addDecorations(e,t){e.changeDecorations((e=>{const i=[];this.rangeHighlightDecorationId&&(i.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),i.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);const n=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:(0,l.Yf)(a.vp),position:r.A5.Full}}}],[o,s]=e.deltaDecorations(i,n);this.rangeHighlightDecorationId={rangeHighlightId:o,overviewRulerDecorationId:s}}))}clearDecorations(e){const t=this.rangeHighlightDecorationId;t&&(e.changeDecorations((e=>{e.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])})),this.rangeHighlightDecorationId=void 0)}}},36651:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ReadOnlyMessageController:()=>l});var n=i(90028),o=i(10998),s=i(50946),r=i(81673),a=i(3765);class l extends o.jG{constructor(e){super(),this.editor=e,this._register(this.editor.onDidAttemptReadOnlyEdit((()=>this._onDidAttemptReadOnlyEdit())))}_onDidAttemptReadOnlyEdit(){const e=r.k.get(this.editor);if(e&&this.editor.hasModel()){let t=this.editor.getOptions().get(93);t||(t=this.editor.isSimpleWidget?new n.Bc(a.k("editor.simple.readonly","Cannot edit in read-only input")):new n.Bc(a.k("editor.readonly","Cannot edit in read-only editor"))),e.showMessage(t,this.editor.getPosition())}}}l.ID="editor.contrib.readOnlyMessageController",(0,s.HW)(l.ID,l,2)},16426:(e,t,i)=>{"use strict";i.r(t),i.d(t,{RenameAction:()=>_e,rename:()=>fe});var n=i(9009),o=i(65958),s=i(78903),r=i(94327),a=i(90028),l=i(10998),d=i(79359),c=i(37264),h=i(50946),u=i(98769),g=i(87301),p=i(15365),m=i(28061),f=i(38122),v=i(47317),_=i(52230),b=i(41504),w=i(62105),y=i(81673),C=i(3765),k=i(58067),S=i(27142),x=i(31540),L=i(82399),D=i(46441),E=i(29879),I=i(44023),N=i(67167),M=i(76243),A=i(14333),T=i(87594),R=i(20396),P=i(65568),O=i(91818),F=i(67954),B=i(13338),W=i(26048),H=i(2106),V=i(23013),z=i(85072),j=i.n(z),U=i(97825),$=i.n(U),K=i(77659),q=i.n(K),G=i(55056),Q=i.n(G),Z=i(10540),Y=i.n(Z),X=i(41113),J=i.n(X),ee=i(38033),te={};te.styleTagTransform=J(),te.setAttributes=Q(),te.insert=q().bind(null,"head"),te.domAPI=$(),te.insertStyleElement=Y(),j()(ee.A,te),ee.A&&ee.A.locals&&ee.A.locals;var ie=i(25837),ne=i(56071),oe=i(25654),se=i(70559),re=i(89044),ae=function(e,t){return function(i,n){t(i,n,e)}};const le=new x.N1("renameInputVisible",!1,(0,C.k)("renameInputVisible","Whether the rename input widget is visible"));new x.N1("renameInputFocused",!1,(0,C.k)("renameInputFocused","Whether the rename input widget is focused"));let de=class{constructor(e,t,i,n,o,s){this._editor=e,this._acceptKeybindings=t,this._themeService=i,this._keybindingService=n,this._logService=s,this.allowEditorOverflow=!0,this._disposables=new l.Cm,this._visibleContextKey=le.bindTo(o),this._isEditingRenameCandidate=!1,this._nRenameSuggestionsInvocations=0,this._hadAutomaticRenameSuggestionsInvocation=!1,this._candidates=new Set,this._beforeFirstInputFieldEditSW=new V.W,this._inputWithButton=new he,this._disposables.add(this._inputWithButton),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._updateFont()}))),this._disposables.add(i.onDidColorThemeChange(this._updateStyles,this))}dispose(){this._disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return"__renameInputWidget"}getDomNode(){return this._domNode||(this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._domNode.appendChild(this._inputWithButton.domNode),this._renameCandidateListView=this._disposables.add(new ce(this._domNode,{fontInfo:this._editor.getOption(50),onFocusChange:e=>{this._inputWithButton.input.value=e,this._isEditingRenameCandidate=!1},onSelectionChange:()=>{this._isEditingRenameCandidate=!1,this.acceptInput(!1)}})),this._disposables.add(this._inputWithButton.onDidInputChange((()=>{var e,t,i,n;void 0!==(null===(e=this._renameCandidateListView)||void 0===e?void 0:e.focusedCandidate)&&(this._isEditingRenameCandidate=!0),null!==(t=this._timeBeforeFirstInputFieldEdit)&&void 0!==t||(this._timeBeforeFirstInputFieldEdit=this._beforeFirstInputFieldEditSW.elapsed()),!1===(null===(i=this._renameCandidateProvidersCts)||void 0===i?void 0:i.token.isCancellationRequested)&&this._renameCandidateProvidersCts.cancel(),null===(n=this._renameCandidateListView)||void 0===n||n.clearFocus()}))),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label),this._updateFont(),this._updateStyles(this._themeService.getColorTheme())),this._domNode}_updateStyles(e){var t,i,n,o,s;if(!this._domNode)return;const r=e.getColor(se.f9l),a=e.getColor(se.DSL);this._domNode.style.backgroundColor=String(null!==(t=e.getColor(se.CgL))&&void 0!==t?t:""),this._domNode.style.boxShadow=r?` 0 0 8px 2px ${r}`:"",this._domNode.style.border=a?`1px solid ${a}`:"",this._domNode.style.color=String(null!==(i=e.getColor(se.cws))&&void 0!==i?i:"");const l=e.getColor(se.Zgs);this._inputWithButton.domNode.style.backgroundColor=String(null!==(n=e.getColor(se.L4c))&&void 0!==n?n:""),this._inputWithButton.input.style.backgroundColor=String(null!==(o=e.getColor(se.L4c))&&void 0!==o?o:""),this._inputWithButton.domNode.style.borderWidth=l?"1px":"0px",this._inputWithButton.domNode.style.borderStyle=l?"solid":"none",this._inputWithButton.domNode.style.borderColor=null!==(s=null==l?void 0:l.toString())&&void 0!==s?s:"none"}_updateFont(){if(void 0===this._domNode)return;(0,d.j)(void 0!==this._label,"RenameWidget#_updateFont: _label must not be undefined given _domNode is defined"),this._editor.applyFontInfo(this._inputWithButton.input);const e=this._editor.getOption(50);this._label.style.fontSize=`${this._computeLabelFontSize(e.fontSize)}px`}_computeLabelFontSize(e){return.8*e}getPosition(){if(!this._visible)return null;if(!this._editor.hasModel()||!this._editor.getDomNode())return null;const e=A.tG(this.getDomNode().ownerDocument.body),t=A.BK(this._editor.getDomNode()),i=this._getTopForPosition();this._nPxAvailableAbove=i+t.top,this._nPxAvailableBelow=e.height-this._nPxAvailableAbove;const n=this._editor.getOption(67),{totalHeight:o}=ue.getLayoutInfo({lineHeight:n}),s=this._nPxAvailableBelow>6*o?[2,1]:[1,2];return{position:this._position,preference:s}}beforeRender(){var e,t;const[i,n]=this._acceptKeybindings;return this._label.innerText=(0,C.k)({key:"label",comment:['placeholders are keybindings, e.g "F2 to Rename, Shift+F2 to Preview"']},"{0} to Rename, {1} to Preview",null===(e=this._keybindingService.lookupKeybinding(i))||void 0===e?void 0:e.getLabel(),null===(t=this._keybindingService.lookupKeybinding(n))||void 0===t?void 0:t.getLabel()),this._domNode.style.minWidth="200px",null}afterRender(e){if(this._trace("invoking afterRender, position: ",e?"not null":"null"),null===e)return void this.cancelInput(!0,"afterRender (because position is null)");if(!this._editor.hasModel()||!this._editor.getDomNode())return;(0,d.j)(this._renameCandidateListView),(0,d.j)(void 0!==this._nPxAvailableAbove),(0,d.j)(void 0!==this._nPxAvailableBelow);const t=A.OK(this._inputWithButton.domNode),i=A.OK(this._label);let n;n=2===e?this._nPxAvailableBelow:this._nPxAvailableAbove,this._renameCandidateListView.layout({height:n-i-t,width:A.Tr(this._inputWithButton.domNode)})}acceptInput(e){var t;this._trace("invoking acceptInput"),null===(t=this._currentAcceptInput)||void 0===t||t.call(this,e)}cancelInput(e,t){var i;this._trace(`invoking cancelInput, caller: ${t}, _currentCancelInput: ${this._currentAcceptInput?"not undefined":"undefined"}`),null===(i=this._currentCancelInput)||void 0===i||i.call(this,e)}focusNextRenameSuggestion(){var e;(null===(e=this._renameCandidateListView)||void 0===e?void 0:e.focusNext())||(this._inputWithButton.input.value=this._currentName)}focusPreviousRenameSuggestion(){var e;(null===(e=this._renameCandidateListView)||void 0===e?void 0:e.focusPrevious())||(this._inputWithButton.input.value=this._currentName)}getInput(e,t,i,n,s){const{start:r,end:a}=this._getSelection(e,t);this._renameCts=s;const c=new l.Cm;this._nRenameSuggestionsInvocations=0,this._hadAutomaticRenameSuggestionsInvocation=!1,void 0===n?this._inputWithButton.button.style.display="none":(this._inputWithButton.button.style.display="flex",this._requestRenameCandidatesOnce=n,this._requestRenameCandidates(t,!1),c.add(A.ko(this._inputWithButton.button,"click",(()=>this._requestRenameCandidates(t,!0)))),c.add(A.ko(this._inputWithButton.button,A.Bx.KEY_DOWN,(e=>{const i=new T.Z(e);(i.equals(3)||i.equals(10))&&(i.stopPropagation(),i.preventDefault(),this._requestRenameCandidates(t,!0))})))),this._isEditingRenameCandidate=!1,this._domNode.classList.toggle("preview",i),this._position=new p.y(e.startLineNumber,e.startColumn),this._currentName=t,this._inputWithButton.input.value=t,this._inputWithButton.input.setAttribute("selectionStart",r.toString()),this._inputWithButton.input.setAttribute("selectionEnd",a.toString()),this._inputWithButton.input.size=Math.max(1.1*(e.endColumn-e.startColumn),20),this._beforeFirstInputFieldEditSW.reset(),c.add((0,l.s)((()=>{this._renameCts=void 0,s.dispose(!0)}))),c.add((0,l.s)((()=>{void 0!==this._renameCandidateProvidersCts&&(this._renameCandidateProvidersCts.dispose(!0),this._renameCandidateProvidersCts=void 0)}))),c.add((0,l.s)((()=>this._candidates.clear())));const h=new o.Zv;return h.p.finally((()=>{c.dispose(),this._hide()})),this._currentCancelInput=e=>{var t;return this._trace("invoking _currentCancelInput"),this._currentAcceptInput=void 0,this._currentCancelInput=void 0,null===(t=this._renameCandidateListView)||void 0===t||t.clearCandidates(),h.complete(e),!0},this._currentAcceptInput=e=>{this._trace("invoking _currentAcceptInput"),(0,d.j)(void 0!==this._renameCandidateListView);const n=this._renameCandidateListView.nCandidates;let o,s;const r=this._renameCandidateListView.focusedCandidate;void 0!==r?(this._trace("using new name from renameSuggestion"),o=r,s={k:"renameSuggestion"}):(this._trace("using new name from inputField"),o=this._inputWithButton.input.value,s=this._isEditingRenameCandidate?{k:"userEditedRenameSuggestion"}:{k:"inputField"}),o!==t&&0!==o.trim().length?(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,this._renameCandidateListView.clearCandidates(),h.complete({newName:o,wantsPreview:i&&e,stats:{source:s,nRenameSuggestions:n,timeBeforeFirstInputFieldEdit:this._timeBeforeFirstInputFieldEdit,nRenameSuggestionsInvocations:this._nRenameSuggestionsInvocations,hadAutomaticRenameSuggestionsInvocation:this._hadAutomaticRenameSuggestionsInvocation}})):this.cancelInput(!0,"_currentAcceptInput (because newName === value || newName.trim().length === 0)")},c.add(s.token.onCancellationRequested((()=>this.cancelInput(!0,"cts.token.onCancellationRequested")))),c.add(this._editor.onDidBlurEditorWidget((()=>{var e;return this.cancelInput(!(null===(e=this._domNode)||void 0===e?void 0:e.ownerDocument.hasFocus()),"editor.onDidBlurEditorWidget")}))),this._show(),h.p}_requestRenameCandidates(e,t){if(void 0!==this._requestRenameCandidatesOnce&&(void 0!==this._renameCandidateProvidersCts&&this._renameCandidateProvidersCts.dispose(!0),(0,d.j)(this._renameCts),"stop"!==this._inputWithButton.buttonState)){this._renameCandidateProvidersCts=new s.Qi;const i=t?v.YT.Invoke:v.YT.Automatic,n=this._requestRenameCandidatesOnce(i,this._renameCandidateProvidersCts.token);if(0===n.length)return void this._inputWithButton.setSparkleButton();t||(this._hadAutomaticRenameSuggestionsInvocation=!0),this._nRenameSuggestionsInvocations+=1,this._inputWithButton.setStopButton(),this._updateRenameCandidates(n,e,this._renameCts.token)}}_getSelection(e,t){(0,d.j)(this._editor.hasModel());const i=this._editor.getSelection();let n=0,o=t.length;return m.Q.isEmpty(i)||m.Q.spansMultipleLines(i)||!m.Q.containsRange(e,i)||(n=Math.max(0,i.startColumn-e.startColumn),o=Math.min(e.endColumn,i.endColumn)-e.startColumn),{start:n,end:o}}_show(){this._trace("invoking _show"),this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout((()=>{this._inputWithButton.input.focus(),this._inputWithButton.input.setSelectionRange(parseInt(this._inputWithButton.input.getAttribute("selectionStart")),parseInt(this._inputWithButton.input.getAttribute("selectionEnd")))}),100)}async _updateRenameCandidates(e,t,i){const n=(...e)=>this._trace("_updateRenameCandidates",...e);n("start");const s=await(0,o.PK)(Promise.allSettled(e),i);if(this._inputWithButton.setSparkleButton(),void 0===s)return void n("returning early - received updateRenameCandidates results - undefined");const r=s.flatMap((e=>"fulfilled"===e.status&&(0,d.O9)(e.value)?e.value:[]));n(`received updateRenameCandidates results - total (unfiltered) ${r.length} candidates.`);const a=B.dM(r,(e=>e.newSymbolName));n(`distinct candidates - ${a.length} candidates.`);const l=a.filter((({newSymbolName:e})=>e.trim().length>0&&e!==this._inputWithButton.input.value&&e!==t&&!this._candidates.has(e)));n(`valid distinct candidates - ${r.length} candidates.`),l.forEach((e=>this._candidates.add(e.newSymbolName))),l.length<1?n("returning early - no valid distinct candidates"):(n("setting candidates"),this._renameCandidateListView.setCandidates(l),n("asking editor to re-layout"),this._editor.layoutContentWidget(this))}_hide(){this._trace("invoked _hide"),this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}_getTopForPosition(){const e=this._editor.getVisibleRanges();let t;return e.length>0?t=e[0].startLineNumber:(this._logService.warn("RenameWidget#_getTopForPosition: this should not happen - visibleRanges is empty"),t=Math.max(1,this._position.lineNumber-5)),this._editor.getTopForLineNumber(this._position.lineNumber)-this._editor.getTopForLineNumber(t)}_trace(...e){this._logService.trace("RenameWidget",...e)}};de=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([ae(2,re.Gy),ae(3,ne.b),ae(4,x.fN),ae(5,D.rr)],de);class ce{constructor(e,t){this._disposables=new l.Cm,this._availableHeight=0,this._minimumWidth=0,this._lineHeight=t.fontInfo.lineHeight,this._typicalHalfwidthCharacterWidth=t.fontInfo.typicalHalfwidthCharacterWidth,this._listContainer=document.createElement("div"),this._listContainer.className="rename-box rename-candidate-list-container",e.appendChild(this._listContainer),this._listWidget=ce._createListWidget(this._listContainer,this._candidateViewHeight,t.fontInfo),this._listWidget.onDidChangeFocus((e=>{1===e.elements.length&&t.onFocusChange(e.elements[0].newSymbolName)}),this._disposables),this._listWidget.onDidChangeSelection((e=>{1===e.elements.length&&t.onSelectionChange()}),this._disposables),this._disposables.add(this._listWidget.onDidBlur((e=>{this._listWidget.setFocus([])}))),this._listWidget.style((0,oe.t8)({listInactiveFocusForeground:se.nH,listInactiveFocusBackground:se.AlL}))}dispose(){this._listWidget.dispose(),this._disposables.dispose()}layout({height:e,width:t}){this._availableHeight=e,this._minimumWidth=t}setCandidates(e){this._listWidget.splice(0,0,e);const t=this._pickListHeight(this._listWidget.length),i=this._pickListWidth(e);this._listWidget.layout(t,i),this._listContainer.style.height=`${t}px`,this._listContainer.style.width=`${i}px`,n.h5((0,C.k)("renameSuggestionsReceivedAria","Received {0} rename suggestions",e.length))}clearCandidates(){this._listContainer.style.height="0px",this._listContainer.style.width="0px",this._listWidget.splice(0,this._listWidget.length,[])}get nCandidates(){return this._listWidget.length}get focusedCandidate(){if(0===this._listWidget.length)return;const e=this._listWidget.getSelectedElements()[0];if(void 0!==e)return e.newSymbolName;const t=this._listWidget.getFocusedElements()[0];return void 0!==t?t.newSymbolName:void 0}focusNext(){if(0===this._listWidget.length)return!1;const e=this._listWidget.getFocus();if(0===e.length)return this._listWidget.focusFirst(),this._listWidget.reveal(0),!0;if(e[0]===this._listWidget.length-1)return this._listWidget.setFocus([]),this._listWidget.reveal(0),!1;{this._listWidget.focusNext();const e=this._listWidget.getFocus()[0];return this._listWidget.reveal(e),!0}}focusPrevious(){if(0===this._listWidget.length)return!1;const e=this._listWidget.getFocus();if(0===e.length){this._listWidget.focusLast();const e=this._listWidget.getFocus()[0];return this._listWidget.reveal(e),!0}if(0===e[0])return this._listWidget.setFocus([]),!1;{this._listWidget.focusPrevious();const e=this._listWidget.getFocus()[0];return this._listWidget.reveal(e),!0}}clearFocus(){this._listWidget.setFocus([])}get _candidateViewHeight(){const{totalHeight:e}=ue.getLayoutInfo({lineHeight:this._lineHeight});return e}_pickListHeight(e){const t=this._candidateViewHeight*e;return Math.min(t,this._availableHeight,7*this._candidateViewHeight)}_pickListWidth(e){const t=Math.ceil(Math.max(...e.map((e=>e.newSymbolName.length)))*this._typicalHalfwidthCharacterWidth);return Math.max(this._minimumWidth,25+t+10)}static _createListWidget(e,t,i){const n=new class{getTemplateId(e){return"candidate"}getHeight(e){return t}},o=new class{constructor(){this.templateId="candidate"}renderTemplate(e){return new ue(e,i)}renderElement(e,t,i){i.populate(e)}disposeTemplate(e){e.dispose()}};return new F.B8("NewSymbolNameCandidates",e,n,[o],{keyboardSupport:!1,mouseSupport:!0,multipleSelectionSupport:!1})}}class he{constructor(){this._onDidInputChange=new H.vl,this.onDidInputChange=this._onDidInputChange.event,this._disposables=new l.Cm}get domNode(){return this._domNode||(this._domNode=document.createElement("div"),this._domNode.className="rename-input-with-button",this._domNode.style.display="flex",this._domNode.style.flexDirection="row",this._domNode.style.alignItems="center",this._inputNode=document.createElement("input"),this._inputNode.className="rename-input",this._inputNode.type="text",this._inputNode.style.border="none",this._inputNode.setAttribute("aria-label",(0,C.k)("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._inputNode),this._buttonNode=document.createElement("div"),this._buttonNode.className="rename-suggestions-button",this._buttonNode.setAttribute("tabindex","0"),this._buttonGenHoverText=C.k("generateRenameSuggestionsButton","Generate new name suggestions"),this._buttonCancelHoverText=C.k("cancelRenameSuggestionsButton","Cancel"),this._buttonHover=(0,R.i)().setupManagedHover((0,P.nZ)("element"),this._buttonNode,this._buttonGenHoverText),this._disposables.add(this._buttonHover),this._domNode.appendChild(this._buttonNode),this._disposables.add(A.ko(this.input,A.Bx.INPUT,(()=>this._onDidInputChange.fire()))),this._disposables.add(A.ko(this.input,A.Bx.KEY_DOWN,(e=>{const t=new T.Z(e);15!==t.keyCode&&17!==t.keyCode||this._onDidInputChange.fire()}))),this._disposables.add(A.ko(this.input,A.Bx.CLICK,(()=>this._onDidInputChange.fire()))),this._disposables.add(A.ko(this.input,A.Bx.FOCUS,(()=>{this.domNode.style.outlineWidth="1px",this.domNode.style.outlineStyle="solid",this.domNode.style.outlineOffset="-1px",this.domNode.style.outlineColor="var(--vscode-focusBorder)"}))),this._disposables.add(A.ko(this.input,A.Bx.BLUR,(()=>{this.domNode.style.outline="none"})))),this._domNode}get input(){return(0,d.j)(this._inputNode),this._inputNode}get button(){return(0,d.j)(this._buttonNode),this._buttonNode}get buttonState(){return this._buttonState}setSparkleButton(){var e,t;this._buttonState="sparkle",null!==(e=this._sparkleIcon)&&void 0!==e||(this._sparkleIcon=(0,O.s)(W.W.sparkle)),A.w_(this.button),this.button.appendChild(this._sparkleIcon),this.button.setAttribute("aria-label","Generating new name suggestions"),null===(t=this._buttonHover)||void 0===t||t.update(this._buttonGenHoverText),this.input.focus()}setStopButton(){var e,t;this._buttonState="stop",null!==(e=this._stopIcon)&&void 0!==e||(this._stopIcon=(0,O.s)(W.W.primitiveSquare)),A.w_(this.button),this.button.appendChild(this._stopIcon),this.button.setAttribute("aria-label","Cancel generating new name suggestions"),null===(t=this._buttonHover)||void 0===t||t.update(this._buttonCancelHoverText),this.input.focus()}dispose(){this._disposables.dispose()}}class ue{constructor(e,t){this._domNode=document.createElement("div"),this._domNode.className="rename-box rename-candidate",this._domNode.style.display="flex",this._domNode.style.columnGap="5px",this._domNode.style.alignItems="center",this._domNode.style.height=`${t.lineHeight}px`,this._domNode.style.padding=`${ue._PADDING}px`;const i=document.createElement("div");i.style.display="flex",i.style.alignItems="center",i.style.width=i.style.height=.8*t.lineHeight+"px",this._domNode.appendChild(i),this._icon=(0,O.s)(W.W.sparkle),this._icon.style.display="none",i.appendChild(this._icon),this._label=document.createElement("div"),ie.M(this._label,t),this._domNode.appendChild(this._label),e.appendChild(this._domNode)}populate(e){this._updateIcon(e),this._updateLabel(e)}_updateIcon(e){var t;const i=!!(null===(t=e.tags)||void 0===t?void 0:t.includes(v.OV.AIGenerated));this._icon.style.display=i?"inherit":"none"}_updateLabel(e){this._label.innerText=e.newSymbolName}static getLayoutInfo({lineHeight:e}){return{totalHeight:e+2*ue._PADDING}}dispose(){}}ue._PADDING=2;var ge,pe=function(e,t){return function(i,n){t(i,n,e)}};class me{constructor(e,t,i){this.model=e,this.position=t,this._providerRenameIdx=0,this._providers=i.ordered(e)}hasProvider(){return this._providers.length>0}async resolveRenameLocation(e){const t=[];for(this._providerRenameIdx=0;this._providerRenameIdx0?t.join("\n"):void 0}:{range:m.Q.fromPositions(this.position),text:"",rejectReason:t.length>0?t.join("\n"):void 0}}async provideRenameEdits(e,t){return this._provideRenameEdits(e,this._providerRenameIdx,[],t)}async _provideRenameEdits(e,t,i,n){const o=this._providers[t];if(!o)return{edits:[],rejectReason:i.join("\n")};const s=await o.provideRenameEdits(this.model,this.position,e,n);return s?s.rejectReason?this._provideRenameEdits(e,t+1,i.concat(s.rejectReason),n):s:this._provideRenameEdits(e,t+1,i.concat(C.k("no result","No result.")),n)}}async function fe(e,t,i,n){const o=new me(t,i,e),r=await o.resolveRenameLocation(s.XO.None);return(null==r?void 0:r.rejectReason)?{edits:[],rejectReason:r.rejectReason}:o.provideRenameEdits(n,s.XO.None)}let ve=ge=class{static get(e){return e.getContribution(ge.ID)}constructor(e,t,i,n,o,r,a,d,c){this.editor=e,this._instaService=t,this._notificationService=i,this._bulkEditService=n,this._progressService=o,this._logService=r,this._configService=a,this._languageFeaturesService=d,this._telemetryService=c,this._disposableStore=new l.Cm,this._cts=new s.Qi,this._renameWidget=this._disposableStore.add(this._instaService.createInstance(de,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}async run(){var e,t;const i=this._logService.trace.bind(this._logService,"[rename]");if(this._cts.dispose(!0),this._cts=new s.Qi,!this.editor.hasModel())return void i("editor has no model");const l=this.editor.getPosition(),d=new me(this.editor.getModel(),l,this._languageFeaturesService.renameProvider);if(!d.hasProvider())return void i("skeleton has no provider");const c=new w.gI(this.editor,5,void 0,this._cts.token);let h;try{i("resolving rename location");const e=d.resolveRenameLocation(c.token);this._progressService.showWhile(e,250),h=await e,i("resolved rename location")}catch(t){return void(t instanceof r.AL?i("resolve rename location cancelled",JSON.stringify(t,null,"\t")):(i("resolve rename location failed",t instanceof Error?t:JSON.stringify(t,null,"\t")),("string"==typeof t||(0,a.VS)(t))&&(null===(e=y.k.get(this.editor))||void 0===e||e.showMessage(t||C.k("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),l))))}finally{c.dispose()}if(!h)return void i("returning early - no loc");if(h.rejectReason)return i(`returning early - rejected with reason: ${h.rejectReason}`,h.rejectReason),void(null===(t=y.k.get(this.editor))||void 0===t||t.showMessage(h.rejectReason,l));if(c.token.isCancellationRequested)return void i("returning early - cts1 cancelled");const u=new w.gI(this.editor,5,h.range,this._cts.token),g=this.editor.getModel(),p=this._languageFeaturesService.newSymbolNamesProvider.all(g),f=await Promise.all(p.map((async e=>{var t;return[e,null!==(t=await e.supportsAutomaticNewSymbolNamesTriggerKind)&&void 0!==t&&t]})));i("creating rename input field and awaiting its result");const _=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),b=await this._renameWidget.getInput(h.range,h.text,_,p.length>0?(e,t)=>{let i=f.slice();return e===v.YT.Automatic&&(i=i.filter((([e,t])=>t))),i.map((([i])=>i.provideNewSymbolNames(g,h.range,e,t)))}:void 0,u);if(i("received response from rename input field"),p.length>0&&this._reportTelemetry(p.length,g.getLanguageId(),b),"boolean"==typeof b)return i(`returning early - rename input field response - ${b}`),b&&this.editor.focus(),void u.dispose();this.editor.focus(),i("requesting rename edits");const k=(0,o.PK)(d.provideRenameEdits(b.newName,u.token),u.token).then((async e=>{if(e)if(this.editor.hasModel()){if(e.rejectReason)return i(`returning early - rejected with reason: ${e.rejectReason}`),void this._notificationService.info(e.rejectReason);this.editor.setSelection(m.Q.fromPositions(this.editor.getSelection().getPosition())),i("applying edits"),this._bulkEditService.apply(e,{editor:this.editor,showPreview:b.wantsPreview,label:C.k("label","Renaming '{0}' to '{1}'",null==h?void 0:h.text,b.newName),code:"undoredo.rename",quotableLabel:C.k("quotableLabel","Renaming {0} to {1}",null==h?void 0:h.text,b.newName),respectAutoSaveConfig:!0}).then((e=>{i("edits applied"),e.ariaSummary&&(0,n.xE)(C.k("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",h.text,b.newName,e.ariaSummary))})).catch((e=>{i(`error when applying edits ${JSON.stringify(e,null,"\t")}`),this._notificationService.error(C.k("rename.failedApply","Rename failed to apply edits")),this._logService.error(e)}))}else i("returning early - no model after rename edits are provided");else i("returning early - no rename edits result")}),(e=>{i("error when providing rename edits",JSON.stringify(e,null,"\t")),this._notificationService.error(C.k("rename.failed","Rename failed to compute edits")),this._logService.error(e)})).finally((()=>{u.dispose()}));return i("returning rename operation"),this._progressService.showWhile(k,250),k}acceptRenameInput(e){this._renameWidget.acceptInput(e)}cancelRenameInput(){this._renameWidget.cancelInput(!0,"cancelRenameInput command")}focusNextRenameSuggestion(){this._renameWidget.focusNextRenameSuggestion()}focusPreviousRenameSuggestion(){this._renameWidget.focusPreviousRenameSuggestion()}_reportTelemetry(e,t,i){const n="boolean"==typeof i?{kind:"cancelled",languageId:t,nRenameSuggestionProviders:e}:{kind:"accepted",languageId:t,nRenameSuggestionProviders:e,source:i.stats.source.k,nRenameSuggestions:i.stats.nRenameSuggestions,timeBeforeFirstInputFieldEdit:i.stats.timeBeforeFirstInputFieldEdit,wantsPreview:i.wantsPreview,nRenameSuggestionsInvocations:i.stats.nRenameSuggestionsInvocations,hadAutomaticRenameSuggestionsInvocation:i.stats.hadAutomaticRenameSuggestionsInvocation};this._telemetryService.publicLog2("renameInvokedEvent",n)}};ve.ID="editor.contrib.renameController",ve=ge=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([pe(1,L._Y),pe(2,E.Ot),pe(3,u.nu),pe(4,I.N8),pe(5,D.rr),pe(6,b.U),pe(7,_.u),pe(8,M.k)],ve);class _e extends h.ks{constructor(){super({id:"editor.action.rename",label:C.k("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:x.M$.and(f.R.writable,f.R.hasRenameProvider),kbOpts:{kbExpr:f.R.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){const i=e.get(g.T),[n,o]=Array.isArray(t)&&t||[void 0,void 0];return c.r.isUri(n)&&p.y.isIPosition(o)?i.openCodeEditor({resource:n},i.getActiveCodeEditor()).then((e=>{e&&(e.setPosition(o),e.invokeWithinContext((t=>(this.reportTelemetry(t,e),this.run(t,e)))))}),r.dz):super.runCommand(e,t)}run(e,t){const i=e.get(D.rr),n=ve.get(t);return n?(i.trace("[RenameAction] got controller, running..."),n.run()):(i.trace("[RenameAction] returning early - controller missing"),Promise.resolve())}}(0,h.HW)(ve.ID,ve,4),(0,h.Fl)(_e);const be=h.DX.bindToContribution(ve.get);(0,h.E_)(new be({id:"acceptRenameInput",precondition:le,handler:e=>e.acceptRenameInput(!1),kbOpts:{weight:199,kbExpr:x.M$.and(f.R.focus,x.M$.not("isComposing")),primary:3}})),(0,h.E_)(new be({id:"acceptRenameInputWithPreview",precondition:x.M$.and(le,x.M$.has("config.editor.rename.enablePreview")),handler:e=>e.acceptRenameInput(!0),kbOpts:{weight:199,kbExpr:x.M$.and(f.R.focus,x.M$.not("isComposing")),primary:2051}})),(0,h.E_)(new be({id:"cancelRenameInput",precondition:le,handler:e=>e.cancelRenameInput(),kbOpts:{weight:199,kbExpr:f.R.focus,primary:9,secondary:[1033]}})),(0,k.ug)(class extends k.L{constructor(){super({id:"focusNextRenameSuggestion",title:{...C.a("focusNextRenameSuggestion","Focus Next Rename Suggestion")},precondition:le,keybinding:[{primary:18,weight:199}]})}run(e){const t=e.get(g.T).getFocusedCodeEditor();if(!t)return;const i=ve.get(t);i&&i.focusNextRenameSuggestion()}}),(0,k.ug)(class extends k.L{constructor(){super({id:"focusPreviousRenameSuggestion",title:{...C.a("focusPreviousRenameSuggestion","Focus Previous Rename Suggestion")},precondition:le,keybinding:[{primary:16,weight:199}]})}run(e){const t=e.get(g.T).getFocusedCodeEditor();if(!t)return;const i=ve.get(t);i&&i.focusPreviousRenameSuggestion()}}),(0,h.ke)("_executeDocumentRenameProvider",(function(e,t,i,...n){const[o]=n;(0,d.j)("string"==typeof o);const{renameProvider:s}=e.get(_.u);return fe(s,t,i,o)})),(0,h.ke)("_executePrepareRename",(async function(e,t,i){const{renameProvider:n}=e.get(_.u),o=new me(t,i,n),r=await o.resolveRenameLocation(s.XO.None);if(null==r?void 0:r.rejectReason)throw new Error(r.rejectReason);return r})),N.O.as(S.Fd.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:C.k("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})},56446:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SectionHeaderDetector:()=>c});var n=i(65958),o=i(10998),s=i(50946),r=i(52394),a=i(74774),l=i(90304),d=function(e,t){return function(i,n){t(i,n,e)}};let c=class extends o.jG{constructor(e,t,i){super(),this.editor=e,this.languageConfigurationService=t,this.editorWorkerService=i,this.decorations=this.editor.createDecorationsCollection(),this.options=this.createOptions(e.getOption(73)),this.computePromise=null,this.currentOccurrences={},this._register(e.onDidChangeModel((t=>{this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0)}))),this._register(e.onDidChangeModelLanguage((t=>{this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0)}))),this._register(t.onDidChange((t=>{var i;const n=null===(i=this.editor.getModel())||void 0===i?void 0:i.getLanguageId();n&&t.affects(n)&&(this.currentOccurrences={},this.options=this.createOptions(e.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0))}))),this._register(e.onDidChangeConfiguration((t=>{this.options&&!t.hasChanged(73)||(this.options=this.createOptions(e.getOption(73)),this.updateDecorations([]),this.stop(),this.computeSectionHeaders.schedule(0))}))),this._register(this.editor.onDidChangeModelContent((e=>{this.computeSectionHeaders.schedule()}))),this._register(e.onDidChangeModelTokens((e=>{this.computeSectionHeaders.isScheduled()||this.computeSectionHeaders.schedule(1e3)}))),this.computeSectionHeaders=this._register(new n.uC((()=>{this.findSectionHeaders()}),250)),this.computeSectionHeaders.schedule(0)}createOptions(e){if(!e||!this.editor.hasModel())return;const t=this.editor.getModel().getLanguageId();if(!t)return;const i=this.languageConfigurationService.getLanguageConfiguration(t).comments,n=this.languageConfigurationService.getLanguageConfiguration(t).foldingRules;return i||(null==n?void 0:n.markers)?{foldingRules:n,findMarkSectionHeaders:e.showMarkSectionHeaders,findRegionSectionHeaders:e.showRegionSectionHeaders}:void 0}findSectionHeaders(){var e,t;if(!this.editor.hasModel()||!(null===(e=this.options)||void 0===e?void 0:e.findMarkSectionHeaders)&&!(null===(t=this.options)||void 0===t?void 0:t.findRegionSectionHeaders))return;const i=this.editor.getModel();if(i.isDisposed()||i.isTooLargeForSyncing())return;const n=i.getVersionId();this.editorWorkerService.findSectionHeaders(i.uri,this.options).then((e=>{i.isDisposed()||i.getVersionId()!==n||this.updateDecorations(e)}))}updateDecorations(e){const t=this.editor.getModel();t&&(e=e.filter((e=>{if(!e.shouldBeInComments)return!0;const i=t.validateRange(e.range),n=t.tokenization.getLineTokens(i.startLineNumber),o=n.findTokenIndexAtOffset(i.startColumn-1),s=n.getStandardTokenType(o);return n.getLanguageId(o)===t.getLanguageId()&&1===s})));const i=Object.values(this.currentOccurrences).map((e=>e.decorationId)),n=e.map((e=>function(e){return{range:e.range,options:a.kI.createDynamic({description:"section-header",stickiness:3,collapseOnReplaceEdit:!0,minimap:{color:void 0,position:1,sectionHeaderStyle:e.hasSeparatorLine?2:1,sectionHeaderText:e.text}})}}(e)));this.editor.changeDecorations((t=>{const o=t.deltaDecorations(i,n);this.currentOccurrences={};for(let t=0,i=o.length;t=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([d(1,r.JZ),d(2,l.w)],c),(0,s.HW)(c.ID,c,1)},64302:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DocumentSemanticTokensFeature:()=>y});var n,o=i(10998),s=i(94327),r=i(64830),a=i(85753),l=i(65958),d=i(78903),c=i(89044),h=i(9520),u=i(2921),g=i(12060),p=i(23013),m=i(52230),f=i(82891),v=i(90426),_=i(91265),b=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},w=function(e,t){return function(i,n){t(i,n,e)}};let y=class extends o.jG{constructor(e,t,i,n,o,s){super(),this._watchers=Object.create(null);const r=t=>{this._watchers[t.uri.toString()]=new C(t,e,i,o,s)},a=(e,t)=>{t.dispose(),delete this._watchers[e.uri.toString()]},l=()=>{for(const e of t.getModels()){const t=this._watchers[e.uri.toString()];(0,_.K)(e,i,n)?t||r(e):t&&a(e,t)}};t.getModels().forEach((e=>{(0,_.K)(e,i,n)&&r(e)})),this._register(t.onModelAdded((e=>{(0,_.K)(e,i,n)&&r(e)}))),this._register(t.onModelRemoved((e=>{const t=this._watchers[e.uri.toString()];t&&a(e,t)}))),this._register(n.onDidChangeConfiguration((e=>{e.affectsConfiguration(_.r)&&l()}))),this._register(i.onDidColorThemeChange(l))}dispose(){for(const e of Object.values(this._watchers))e.dispose();super.dispose()}};y=b([w(0,f.F),w(1,r.S),w(2,c.Gy),w(3,a.pG),w(4,g.U),w(5,m.u)],y);let C=n=class extends o.jG{constructor(e,t,i,s,r){super(),this._semanticTokensStylingService=t,this._isDisposed=!1,this._model=e,this._provider=r.documentSemanticTokensProvider,this._debounceInformation=s.for(this._provider,"DocumentSemanticTokens",{min:n.REQUEST_MIN_DELAY,max:n.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new l.uC((()=>this._fetchDocumentSemanticTokensNow()),n.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._providersChangedDuringRequest=!1,this._register(this._model.onDidChangeContent((()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(this._model.onDidChangeAttached((()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(this._model.onDidChangeLanguage((()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)})));const a=()=>{(0,o.AS)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const t of this._provider.all(e))"function"==typeof t.onDidChange&&this._documentProvidersChangeListeners.push(t.onDidChange((()=>{this._currentDocumentRequestCancellationTokenSource?this._providersChangedDuringRequest=!0:this._fetchDocumentSemanticTokens.schedule(0)})))};a(),this._register(this._provider.onDidChange((()=>{a(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))}))),this._register(i.onDidColorThemeChange((e=>{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),(0,o.AS)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[],this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!(0,u.br)(this._provider,this._model))return void(this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1));if(!this._model.isAttachedToEditor())return;const e=new d.Qi,t=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,i=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,n=(0,u.aw)(this._provider,this._model,t,i,e.token);this._currentDocumentRequestCancellationTokenSource=e,this._providersChangedDuringRequest=!1;const o=[],r=this._model.onDidChangeContent((e=>{o.push(e)})),a=new p.W(!1);n.then((e=>{if(this._debounceInformation.update(this._model,a.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),e){const{provider:t,tokens:i}=e,n=this._semanticTokensStylingService.getStyling(t);this._setDocumentSemanticTokens(t,i||null,n,o)}else this._setDocumentSemanticTokens(null,null,null,o)}),(e=>{e&&(s.MB(e)||"string"==typeof e.message&&-1!==e.message.indexOf("busy"))||s.dz(e),this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),(o.length>0||this._providersChangedDuringRequest)&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))}))}static _copy(e,t,i,n,o){o=Math.min(o,i.length-n,e.length-t);for(let s=0;s{(o.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);else if(e&&i){if(!t)return this._model.tokenization.setSemanticTokens(null,!0),void r();if((0,u.yS)(t)){if(!s)return void this._model.tokenization.setSemanticTokens(null,!0);if(0===t.edits.length)t={resultId:t.resultId,data:s.data};else{let e=0;for(const i of t.edits)e+=(i.data?i.data.length:0)-i.deleteCount;const o=s.data,r=new Uint32Array(o.length+e);let a=o.length,l=r.length;for(let e=t.edits.length-1;e>=0;e--){const d=t.edits[e];if(d.start>o.length)return i.warnInvalidEditStart(s.resultId,t.resultId,e,d.start,o.length),void this._model.tokenization.setSemanticTokens(null,!0);const c=a-(d.start+d.deleteCount);c>0&&(n._copy(o,a-c,r,l-c,c),l-=c),d.data&&(n._copy(d.data,0,r,l-d.data.length,d.data.length),l-=d.data.length),a=d.start}a>0&&n._copy(o,0,r,0,a),t={resultId:t.resultId,data:r}}}if((0,u.BB)(t)){this._currentDocumentResponse=new k(e,t.resultId,t.data);const n=(0,h.b)(t,i,this._model.getLanguageId());if(o.length>0)for(const e of o)for(const t of n)for(const i of e.changes)t.applyEdit(i.range,i.text);this._model.tokenization.setSemanticTokens(n,!0)}else this._model.tokenization.setSemanticTokens(null,!0);r()}else this._model.tokenization.setSemanticTokens(null,!1)}};C.REQUEST_MIN_DELAY=300,C.REQUEST_MAX_DELAY=2e3,C=n=b([w(1,f.F),w(2,c.Gy),w(3,g.U),w(4,m.u)],C);class k{constructor(e,t,i){this.provider=e,this.resultId=t,this.data=i}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}}(0,v.x)(y)},25110:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ViewportSemanticTokensContribution:()=>f});var n=i(65958),o=i(10998),s=i(50946),r=i(2921),a=i(91265),l=i(9520),d=i(85753),c=i(89044),h=i(12060),u=i(23013),g=i(52230),p=i(82891),m=function(e,t){return function(i,n){t(i,n,e)}};let f=class extends o.jG{constructor(e,t,i,o,s,r){super(),this._semanticTokensStylingService=t,this._themeService=i,this._configurationService=o,this._editor=e,this._provider=r.documentRangeSemanticTokensProvider,this._debounceInformation=s.for(this._provider,"DocumentRangeSemanticTokens",{min:100,max:500}),this._tokenizeViewport=this._register(new n.uC((()=>this._tokenizeViewportNow()),100)),this._outstandingRequests=[];const l=()=>{this._editor.hasModel()&&this._tokenizeViewport.schedule(this._debounceInformation.get(this._editor.getModel()))};this._register(this._editor.onDidScrollChange((()=>{l()}))),this._register(this._editor.onDidChangeModel((()=>{this._cancelAll(),l()}))),this._register(this._editor.onDidChangeModelContent((e=>{this._cancelAll(),l()}))),this._register(this._provider.onDidChange((()=>{this._cancelAll(),l()}))),this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(a.r)&&(this._cancelAll(),l())}))),this._register(this._themeService.onDidColorThemeChange((()=>{this._cancelAll(),l()}))),l()}_cancelAll(){for(const e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,i=this._outstandingRequests.length;tthis._requestRange(e,t))))}_requestRange(e,t){const i=e.getVersionId(),o=(0,n.SS)((i=>Promise.resolve((0,r.nZ)(this._provider,e,t,i)))),s=new u.W(!1);return o.then((n=>{if(this._debounceInformation.update(e,s.elapsed()),!n||!n.tokens||e.isDisposed()||e.getVersionId()!==i)return;const{provider:o,tokens:r}=n,a=this._semanticTokensStylingService.getStyling(o);e.tokenization.setPartialSemanticTokens(t,(0,l.b)(r,a,e.getLanguageId()))})).then((()=>this._removeOutstandingRequest(o)),(()=>this._removeOutstandingRequest(o))),o}};f.ID="editor.contrib.viewportSemanticTokens",f=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([m(1,p.F),m(2,c.Gy),m(3,d.pG),m(4,h.U),m(5,g.u)],f),(0,s.HW)(f.ID,f,1)},2921:(e,t,i)=>{"use strict";i.d(t,{nZ:()=>C,aw:()=>_,WG:()=>w,br:()=>v,BB:()=>p,yS:()=>m});var n=i(78903),o=i(94327),s=i(37264),r=i(64830),a=i(59715),l=i(79359),d=i(42802),c=i(63339);function h(e){const t=new Uint32Array(function(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const i of e.deltas)i.data&&(t+=i.data.length)}return t}(e));let i=0;if(t[i++]=e.id,"full"===e.type)t[i++]=1,t[i++]=e.data.length,t.set(e.data,i),i+=e.data.length;else{t[i++]=2,t[i++]=e.deltas.length;for(const n of e.deltas)t[i++]=n.start,t[i++]=n.deleteCount,n.data?(t[i++]=n.data.length,t.set(n.data,i),i+=n.data.length):t[i++]=0}return function(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return c.cm()||function(e){for(let t=0,i=e.length;t0?i[0]:[]}(e,t),r=await Promise.all(s.map((async e=>{let s,r=null;try{s=await e.provideDocumentSemanticTokens(t,e===i?n:null,o)}catch(e){r=e,s=null}return s&&(p(s)||m(s))||(s=null),new f(e,s,r)})));for(const e of r){if(e.error)throw e.error;if(e.tokens)return e}return r.length>0?r[0]:null}class b{constructor(e,t){this.provider=e,this.tokens=t}}function w(e,t){return e.has(t)}function y(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:[]}async function C(e,t,i,n){const s=y(e,t),r=await Promise.all(s.map((async e=>{let s;try{s=await e.provideDocumentRangeSemanticTokens(t,i,n)}catch(e){(0,o.M_)(e),s=null}return s&&p(s)||(s=null),new b(e,s)})));for(const e of r)if(e.tokens)return e;return r.length>0?r[0]:null}a.w.registerCommand("_provideDocumentSemanticTokensLegend",(async(e,...t)=>{const[i]=t;(0,l.j)(i instanceof s.r);const n=e.get(r.S).getModel(i);if(!n)return;const{documentSemanticTokensProvider:o}=e.get(g.u),d=function(e,t){const i=e.orderedGroups(t);return i.length>0?i[0]:null}(o,n);return d?d[0].getLegend():e.get(a.d).executeCommand("_provideDocumentRangeSemanticTokensLegend",i)})),a.w.registerCommand("_provideDocumentSemanticTokens",(async(e,...t)=>{const[i]=t;(0,l.j)(i instanceof s.r);const o=e.get(r.S).getModel(i);if(!o)return;const{documentSemanticTokensProvider:d}=e.get(g.u);if(!v(d,o))return e.get(a.d).executeCommand("_provideDocumentRangeSemanticTokens",i,o.getFullModelRange());const c=await _(d,o,null,null,n.XO.None);if(!c)return;const{provider:u,tokens:m}=c;if(!m||!p(m))return;const f=h({id:0,type:"full",data:m.data});return m.resultId&&u.releaseDocumentSemanticTokens(m.resultId),f})),a.w.registerCommand("_provideDocumentRangeSemanticTokensLegend",(async(e,...t)=>{const[i,o]=t;(0,l.j)(i instanceof s.r);const a=e.get(r.S).getModel(i);if(!a)return;const{documentRangeSemanticTokensProvider:d}=e.get(g.u),c=y(d,a);if(0===c.length)return;if(1===c.length)return c[0].getLegend();if(!o||!u.Q.isIRange(o))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),c[0].getLegend();const h=await C(d,a,u.Q.lift(o),n.XO.None);return h?h.provider.getLegend():void 0})),a.w.registerCommand("_provideDocumentRangeSemanticTokens",(async(e,...t)=>{const[i,o]=t;(0,l.j)(i instanceof s.r),(0,l.j)(u.Q.isIRange(o));const a=e.get(r.S).getModel(i);if(!a)return;const{documentRangeSemanticTokensProvider:d}=e.get(g.u),c=await C(d,a,u.Q.lift(o),n.XO.None);return c&&c.tokens?h({id:0,type:"full",data:c.tokens.data}):void 0}))},91265:(e,t,i)=>{"use strict";i.d(t,{K:()=>o,r:()=>n});const n="editor.semanticHighlighting";function o(e,t,i){var o;const s=null===(o=i.getValue(n,{overrideIdentifier:e.getLanguageId(),resource:e.uri}))||void 0===o?void 0:o.enabled;return"boolean"==typeof s?s:t.getColorTheme().semanticHighlighting}},91934:(e,t,i)=>{"use strict";i.d(t,{n:()=>r});var n=i(85525),o=i(15365),s=i(28061);class r{async provideSelectionRanges(e,t){const i=[];for(const n of t){const t=[];i.push(t);const o=new Map;await new Promise((t=>r._bracketsRightYield(t,0,e,n,o))),await new Promise((i=>r._bracketsLeftYield(i,0,e,n,o,t)))}return i}static _bracketsRightYield(e,t,i,o,s){const a=new Map,l=Date.now();for(;;){if(t>=r._maxRounds){e();break}if(!o){e();break}const d=i.bracketPairs.findNextBracket(o);if(!d){e();break}if(Date.now()-l>r._maxDuration){setTimeout((()=>r._bracketsRightYield(e,t+1,i,o,s)));break}if(d.bracketInfo.isOpeningBracket){const e=d.bracketInfo.bracketText,t=a.has(e)?a.get(e):0;a.set(e,t+1)}else{const e=d.bracketInfo.getOpeningBrackets()[0].bracketText;let t=a.has(e)?a.get(e):0;if(t-=1,a.set(e,Math.max(0,t)),t<0){let t=s.get(e);t||(t=new n.w,s.set(e,t)),t.push(d.range)}}o=d.range.getEndPosition()}}static _bracketsLeftYield(e,t,i,n,o,a){const l=new Map,d=Date.now();for(;;){if(t>=r._maxRounds&&0===o.size){e();break}if(!n){e();break}const c=i.bracketPairs.findPrevBracket(n);if(!c){e();break}if(Date.now()-d>r._maxDuration){setTimeout((()=>r._bracketsLeftYield(e,t+1,i,n,o,a)));break}if(c.bracketInfo.isOpeningBracket){const e=c.bracketInfo.bracketText;let t=l.has(e)?l.get(e):0;if(t-=1,l.set(e,Math.max(0,t)),t<0){const t=o.get(e);if(t){const n=t.shift();0===t.size&&o.delete(e);const l=s.Q.fromPositions(c.range.getEndPosition(),n.getStartPosition()),d=s.Q.fromPositions(c.range.getStartPosition(),n.getEndPosition());a.push({range:l}),a.push({range:d}),r._addBracketLeading(i,d,a)}}}else{const e=c.bracketInfo.getOpeningBrackets()[0].bracketText,t=l.has(e)?l.get(e):0;l.set(e,t+1)}n=c.range.getStartPosition()}}static _addBracketLeading(e,t,i){if(t.startLineNumber===t.endLineNumber)return;const n=t.startLineNumber,r=e.getLineFirstNonWhitespaceColumn(n);0!==r&&r!==t.startColumn&&(i.push({range:s.Q.fromPositions(new o.y(n,r),t.getEndPosition())}),i.push({range:s.Q.fromPositions(new o.y(n,1),t.getEndPosition())}));const a=n-1;if(a>0){const n=e.getLineFirstNonWhitespaceColumn(a);n===t.startColumn&&n!==e.getLineLastNonWhitespaceColumn(a)&&(i.push({range:s.Q.fromPositions(new o.y(a,n),t.getEndPosition())}),i.push({range:s.Q.fromPositions(new o.y(a,1),t.getEndPosition())}))}}}r._maxDuration=30,r._maxRounds=2},33432:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SmartSelectController:()=>k,provideSelectionRanges:()=>D});var n=i(13338),o=i(78903),s=i(94327),r=i(50946),a=i(15365),l=i(28061),d=i(93702),c=i(38122),h=i(91934),u=i(16844);class g{constructor(e=!0){this.selectSubwords=e}provideSelectionRanges(e,t){const i=[];for(const n of t){const t=[];i.push(t),this.selectSubwords&&this._addInWordRanges(t,e,n),this._addWordRanges(t,e,n),this._addWhitespaceLine(t,e,n),t.push({range:e.getFullModelRange()})}return i}_addInWordRanges(e,t,i){const n=t.getWordAtPosition(i);if(!n)return;const{word:o,startColumn:s}=n,r=i.column-s;let a=r,d=r,c=0;for(;a>=0;a--){const e=o.charCodeAt(a);if(a!==r&&(95===e||45===e))break;if((0,u.Lv)(e)&&(0,u.Wv)(c))break;c=e}for(a+=1;d0&&0===t.getLineFirstNonWhitespaceColumn(i.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(i.lineNumber)&&e.push({range:new l.Q(i.lineNumber,1,i.lineNumber,t.getLineMaxColumn(i.lineNumber))})}}var p,m=i(3765),f=i(58067),v=i(59715),_=i(52230),b=i(37042),w=i(79359),y=i(37264);class C{constructor(e,t){this.index=e,this.ranges=t}mov(e){const t=this.index+(e?1:-1);if(t<0||t>=this.ranges.length)return this;const i=new C(t,this.ranges);return i.ranges[t].equalsRange(this.ranges[this.index])?i.mov(e):i}}let k=p=class{static get(e){return e.getContribution(p.ID)}constructor(e,t){this._editor=e,this._languageFeaturesService=t,this._ignoreSelection=!1}dispose(){var e;null===(e=this._selectionListener)||void 0===e||e.dispose()}async run(e){if(!this._editor.hasModel())return;const t=this._editor.getSelections(),i=this._editor.getModel();if(this._state||await D(this._languageFeaturesService.selectionRangeProvider,i,t.map((e=>e.getPosition())),this._editor.getOption(114),o.XO.None).then((e=>{var i;if(n.EI(e)&&e.length===t.length&&this._editor.hasModel()&&n.aI(this._editor.getSelections(),t,((e,t)=>e.equalsSelection(t)))){for(let i=0;ie.containsPosition(t[i].getStartPosition())&&e.containsPosition(t[i].getEndPosition()))),e[i].unshift(t[i]);this._state=e.map((e=>new C(0,e))),null===(i=this._selectionListener)||void 0===i||i.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition((()=>{var e;this._ignoreSelection||(null===(e=this._selectionListener)||void 0===e||e.dispose(),this._state=void 0)}))}})),!this._state)return;this._state=this._state.map((t=>t.mov(e)));const s=this._state.map((e=>d.L.fromPositions(e.ranges[e.index].getStartPosition(),e.ranges[e.index].getEndPosition())));this._ignoreSelection=!0;try{this._editor.setSelections(s)}finally{this._ignoreSelection=!1}}};var S,x;k.ID="editor.contrib.smartSelectController",k=p=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(S=1,x=_.u,function(e,t){x(e,t,S)})],k);class L extends r.ks{constructor(e,t){super(t),this._forward=e}async run(e,t){const i=k.get(t);i&&await i.run(this._forward)}}async function D(e,t,i,o,r){const d=e.all(t).concat(new g(o.selectSubwords));1===d.length&&d.unshift(new h.n);const c=[],u=[];for(const e of d)c.push(Promise.resolve(e.provideSelectionRanges(t,i,r)).then((e=>{if(n.EI(e)&&e.length===i.length)for(let t=0;t{if(0===e.length)return[];e.sort(((e,t)=>a.y.isBefore(e.getStartPosition(),t.getStartPosition())?1:a.y.isBefore(t.getStartPosition(),e.getStartPosition())||a.y.isBefore(e.getEndPosition(),t.getEndPosition())?-1:a.y.isBefore(t.getEndPosition(),e.getEndPosition())?1:0));const i=[];let n;for(const t of e)(!n||l.Q.containsRange(t,n)&&!l.Q.equalsRange(t,n))&&(i.push(t),n=t);if(!o.selectLeadingAndTrailingWhitespace)return i;const s=[i[0]];for(let e=1;e{"use strict";i.r(t),i.d(t,{SnippetController2:()=>_});var n,o=i(10998),s=i(79359),r=i(50946),a=i(15365),l=i(38122),d=i(52394),c=i(52230),h=i(93516),u=i(3765),g=i(31540),p=i(46441),m=i(63611),f=function(e,t){return function(i,n){t(i,n,e)}};const v={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let _=n=class{static get(e){return e.getContribution(n.ID)}constructor(e,t,i,s,r){this._editor=e,this._logService=t,this._languageFeaturesService=i,this._languageConfigurationService=r,this._snippetListener=new o.Cm,this._modelVersionId=-1,this._inSnippet=n.InSnippetMode.bindTo(s),this._hasNextTabstop=n.HasNextTabstop.bindTo(s),this._hasPrevTabstop=n.HasPrevTabstop.bindTo(s)}dispose(){var e;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),null===(e=this._session)||void 0===e||e.dispose(),this._snippetListener.dispose()}insert(e,t){try{this._doInsert(e,void 0===t?v:{...v,...t})}catch(t){this.cancel(),this._logService.error(t),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"")}}_doInsert(e,t){var i;if(this._editor.hasModel()){if(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session&&"string"!=typeof e&&this.cancel(),this._session?((0,s.j)("string"==typeof e),this._session.merge(e,t)):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new m.O(this._editor,e,t,this._languageConfigurationService),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),null===(i=this._session)||void 0===i?void 0:i.hasChoice){const e={_debugDisplayName:"snippetChoiceCompletions",provideCompletionItems:(e,t)=>{if(!this._session||e!==this._editor.getModel()||!a.y.equals(this._editor.getPosition(),t))return;const{activeChoice:i}=this._session;if(!i||0===i.choice.options.length)return;const n=e.getValueInRange(i.range),o=Boolean(i.choice.options.find((e=>e.value===n))),s=[];for(let e=0;e{null==i||i.dispose(),n=!1},s=()=>{n||(i=this._languageFeaturesService.completionProvider.register({language:t.getLanguageId(),pattern:t.uri.fsPath,scheme:t.uri.scheme,exclusive:!0},e),this._snippetListener.add(i),n=!0)};this._choiceCompletions={provider:e,enable:s,disable:o}}this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent((e=>e.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())return void(this._currentChoice=void 0);const{activeChoice:t}=this._session;if(!t||!this._choiceCompletions)return null===(e=this._choiceCompletions)||void 0===e||e.disable(),void(this._currentChoice=void 0);this._currentChoice!==t.choice&&(this._currentChoice=t.choice,this._choiceCompletions.enable(),queueMicrotask((()=>{(0,h.p3)(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,null===(t=this._session)||void 0===t||t.dispose(),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])}prev(){var e;null===(e=this._session)||void 0===e||e.prev(),this._updateState()}next(){var e;null===(e=this._session)||void 0===e||e.next(),this._updateState()}isInSnippet(){return Boolean(this._inSnippet.get())}};_.ID="snippetController2",_.InSnippetMode=new g.N1("inSnippetMode",!1,(0,u.k)("inSnippetMode","Whether the editor in current in snippet mode")),_.HasNextTabstop=new g.N1("hasNextTabstop",!1,(0,u.k)("hasNextTabstop","Whether there is a next tab stop when in snippet mode")),_.HasPrevTabstop=new g.N1("hasPrevTabstop",!1,(0,u.k)("hasPrevTabstop","Whether there is a previous tab stop when in snippet mode")),_=n=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([f(1,p.rr),f(2,c.u),f(3,g.fN),f(4,d.JZ)],_),(0,r.HW)(_.ID,_,4);const b=r.DX.bindToContribution(_.get);(0,r.E_)(new b({id:"jumpToNextSnippetPlaceholder",precondition:g.M$.and(_.InSnippetMode,_.HasNextTabstop),handler:e=>e.next(),kbOpts:{weight:130,kbExpr:l.R.textInputFocus,primary:2}})),(0,r.E_)(new b({id:"jumpToPrevSnippetPlaceholder",precondition:g.M$.and(_.InSnippetMode,_.HasPrevTabstop),handler:e=>e.prev(),kbOpts:{weight:130,kbExpr:l.R.textInputFocus,primary:1026}})),(0,r.E_)(new b({id:"leaveSnippet",precondition:_.InSnippetMode,handler:e=>e.cancel(!0),kbOpts:{weight:130,kbExpr:l.R.textInputFocus,primary:9,secondary:[1033]}})),(0,r.E_)(new b({id:"acceptSnippet",precondition:_.InSnippetMode,handler:e=>e.finish()}))},47039:(e,t,i)=>{"use strict";i.d(t,{EY:()=>s,GR:()=>l,Or:()=>a,fr:()=>p,mQ:()=>g});class n{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return 95===e||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t,i=0,o=this.value.charCodeAt(e);if(t=n._table[o],"number"==typeof t)return this.pos+=1,{type:t,pos:e,len:1};if(n.isDigitCharacter(o)){t=8;do{i+=1,o=this.value.charCodeAt(e+i)}while(n.isDigitCharacter(o));return this.pos+=i,{type:t,pos:e,len:i}}if(n.isVariableCharacter(o)){t=9;do{o=this.value.charCodeAt(e+ ++i)}while(n.isVariableCharacter(o)||n.isDigitCharacter(o));return this.pos+=i,{type:t,pos:e,len:i}}t=10;do{i+=1,o=this.value.charCodeAt(e+i)}while(!isNaN(o)&&void 0===n._table[o]&&!n.isDigitCharacter(o)&&!n.isVariableCharacter(o));return this.pos+=i,{type:t,pos:e,len:i}}}n._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};class o{constructor(){this._children=[]}appendChild(e){return e instanceof s&&this._children[this._children.length-1]instanceof s?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,n=i.children.indexOf(e),o=i.children.slice(0);o.splice(n,1,...t),i._children=o,function e(t,i){for(const n of t)n.parent=i,e(n.children,n)}(t,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof g)return e;e=e.parent}}toString(){return this.children.reduce(((e,t)=>e+t.toString()),"")}len(){return 0}}class s extends o{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new s(this.value)}}class r extends o{}class a extends r{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 0===this.index}get choice(){return 1===this._children.length&&this._children[0]instanceof l?this._children[0]:void 0}clone(){const e=new a(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((e=>e.clone())),e}}class l extends o{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof s&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new l;return this.options.forEach(e.appendChild,e),e}}class d extends o{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,n=e.replace(this.regexp,(function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))}));return!i&&this._children.some((e=>e instanceof c&&Boolean(e.elseValue)))&&(n=this._replace([])),n}_replace(e){let t="";for(const i of this._children)if(i instanceof c){let n=e[i.index]||"";n=i.resolve(n),t+=n}else t+=i.toString();return t}toString(){return""}clone(){const e=new d;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map((e=>e.clone())),e}}class c extends o{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return"upcase"===this.shorthandName?e?e.toLocaleUpperCase():"":"downcase"===this.shorthandName?e?e.toLocaleLowerCase():"":"capitalize"===this.shorthandName?e?e[0].toLocaleUpperCase()+e.substr(1):"":"pascalcase"===this.shorthandName?e?this._toPascalCase(e):"":"camelcase"===this.shorthandName?e?this._toCamelCase(e):"":Boolean(e)&&"string"==typeof this.ifValue?this.ifValue:Boolean(e)||"string"!=typeof this.elseValue?e||"":this.elseValue}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((e=>e.charAt(0).toUpperCase()+e.substr(1))).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(((e,t)=>0===t?e.charAt(0).toLowerCase()+e.substr(1):e.charAt(0).toUpperCase()+e.substr(1))).join(""):e}clone(){return new c(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class h extends r{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),void 0!==t&&(this._children=[new s(t)],!0)}clone(){const e=new h(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map((e=>e.clone())),e}}function u(e,t){const i=[...e];for(;i.length>0;){const e=i.shift();if(!t(e))break;i.unshift(...e.children)}}class g extends o{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk((function(i){return i instanceof a&&(e.push(i),t=!t||t.indexn===e?(i=!0,!1):(t+=n.len(),!0))),i?t:-1}fullLen(e){let t=0;return u([e],(e=>(t+=e.len(),!0))),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof a&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk((t=>(t instanceof h&&t.resolve(e)&&(this._placeholders=void 0),!0))),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new g;return this._children=this.children.map((e=>e.clone())),e}walk(e){u(this.children,e)}}class p{constructor(){this._scanner=new n,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const n=new g;return this.parseFragment(e,n),this.ensureFinalTabstop(n,null!=i&&i,null!=t&&t),n}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const n=new Map,o=[];t.walk((e=>(e instanceof a&&(e.isFinalTabstop?n.set(0,void 0):!n.has(e.index)&&e.children.length>0?n.set(e.index,e.children):o.push(e)),!0)));const s=(e,i)=>{const o=n.get(e.index);if(!o)return;const r=new a(e.index);r.transform=e.transform;for(const e of o){const t=e.clone();r.appendChild(t),t instanceof a&&n.has(t.index)&&!i.has(t.index)&&(i.add(t.index),s(t,i),i.delete(t.index))}t.replace(e,[r])},r=new Set;for(const e of o)s(e,r);return t.children.slice(i)}ensureFinalTabstop(e,t,i){(t||i&&e.placeholders.length>0)&&(e.placeholders.find((e=>0===e.index))||e.appendChild(new a(0)))}_accept(e,t){if(void 0===e||this._token.type===e){const e=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),e}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(14===this._token.type)return!1;if(5===this._token.type){const e=this._scanner.next();if(0!==e.type&&4!==e.type&&5!==e.type)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return!!(t=this._accept(5,!0))&&(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new s(t)),!0)}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new a(Number(t)):new h(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const n=new a(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(n),!0;if(!this._parse(n))return e.appendChild(new s("${"+t+":")),n.children.forEach(e.appendChild,e),!0}else{if(!(n.index>0&&this._accept(7)))return this._accept(6)?this._parseTransform(n)?(e.appendChild(n),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(n),!0):this._backTo(i);{const t=new l;for(;;){if(this._parseChoiceElement(t)){if(this._accept(2))continue;if(this._accept(7)&&(n.appendChild(t),this._accept(4)))return e.appendChild(n),!0}return this._backTo(i),!1}}}}_parseChoiceElement(e){const t=this._token,i=[];for(;2!==this._token.type&&7!==this._token.type;){let e;if(e=(e=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||e:this._accept(void 0,!0),!e)return this._backTo(t),!1;i.push(e)}return 0===i.length?(this._backTo(t),!1):(e.appendChild(new s(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const n=new h(t);if(!this._accept(1))return this._accept(6)?this._parseTransform(n)?(e.appendChild(n),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(n),!0):this._backTo(i);for(;;){if(this._accept(4))return e.appendChild(n),!0;if(!this._parse(n))return e.appendChild(new s("${"+t+":")),n.children.forEach(e.appendChild,e),!0}}_parseTransform(e){const t=new d;let i="",n="";for(;!this._accept(6);){let e;if(e=this._accept(5,!0))e=this._accept(6,!0)||e,i+=e;else{if(14===this._token.type)return!1;i+=this._accept(void 0,!0)}}for(;!this._accept(6);){let e;if(e=this._accept(5,!0))e=this._accept(5,!0)||this._accept(6,!0)||e,t.appendChild(new s(e));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1}for(;!this._accept(4);){if(14===this._token.type)return!1;n+=this._accept(void 0,!0)}try{t.regexp=new RegExp(i,n)}catch(e){return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const n=this._accept(8,!0);if(!n)return this._backTo(t),!1;if(!i)return e.appendChild(new c(Number(n))),!0;if(this._accept(4))return e.appendChild(new c(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){const i=this._accept(9,!0);return i&&this._accept(4)?(e.appendChild(new c(Number(n),i)),!0):(this._backTo(t),!1)}if(this._accept(11)){const t=this._until(4);if(t)return e.appendChild(new c(Number(n),void 0,t,void 0)),!0}else if(this._accept(12)){const t=this._until(4);if(t)return e.appendChild(new c(Number(n),void 0,void 0,t)),!0}else if(this._accept(13)){const t=this._until(1);if(t){const i=this._until(4);if(i)return e.appendChild(new c(Number(n),void 0,t,i)),!0}}else{const t=this._until(4);if(t)return e.appendChild(new c(Number(n),void 0,void 0,t)),!0}return this._backTo(t),!1}_parseAnything(e){return 14!==this._token.type&&(e.appendChild(new s(this._scanner.tokenText(this._token))),this._accept(void 0),!0)}}},63611:(e,t,i)=>{"use strict";i.d(t,{O:()=>G});var n=i(13338),o=i(10998),s=i(16844),r=i(85072),a=i.n(r),l=i(97825),d=i.n(l),c=i(77659),h=i.n(c),u=i(55056),g=i.n(u),p=i(10540),m=i.n(p),f=i(41113),v=i.n(f),_=i(90069),b={};b.styleTagTransform=v(),b.setAttributes=g(),b.insert=h().bind(null,"head"),b.domAPI=d(),b.insertStyleElement=m(),a()(_.A,b),_.A&&_.A.locals&&_.A.locals;var w=i(23877),y=i(28061),C=i(93702),k=i(52394),S=i(74774),x=i(8377),L=i(26851),D=i(47039),E=i(78518),I=i(63339);function N(e,t=I.uF){return(0,E.No)(e,t)?e.charAt(0).toUpperCase()+e.slice(1):e}Object.create(null);var M=i(18019),A=i(22467),T=i(9223),R=i(3765);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});class P{constructor(e){this._delegates=e}resolve(e){for(const t of this._delegates){const i=t.resolve(e);if(void 0!==i)return i}}}class O{constructor(e,t,i,n){this._model=e,this._selection=t,this._selectionIdx=i,this._overtypingCapturer=n}resolve(e){const{name:t}=e;if("SELECTION"===t||"TM_SELECTED_TEXT"===t){let t=this._model.getValueInRange(this._selection)||void 0,i=this._selection.startLineNumber!==this._selection.endLineNumber;if(!t&&this._overtypingCapturer){const e=this._overtypingCapturer.getLastOvertypedInfo(this._selectionIdx);e&&(t=e.value,i=e.multiline)}if(t&&i&&e.snippet){const i=this._model.getLineContent(this._selection.startLineNumber),n=(0,s.UU)(i,0,this._selection.startColumn-1);let o=n;e.snippet.walk((t=>t!==e&&(t instanceof D.EY&&(o=(0,s.UU)((0,s.uz)(t.value).pop())),!0)));const r=(0,s.Qp)(o,n);t=t.replace(/(\r\n|\r|\n)(.*)/g,((e,t,i)=>`${t}${o.substr(r)}${i}`))}return t}if("TM_CURRENT_LINE"===t)return this._model.getLineContent(this._selection.positionLineNumber);if("TM_CURRENT_WORD"===t){const e=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return e&&e.word||void 0}return"TM_LINE_INDEX"===t?String(this._selection.positionLineNumber-1):"TM_LINE_NUMBER"===t?String(this._selection.positionLineNumber):"CURSOR_INDEX"===t?String(this._selectionIdx):"CURSOR_NUMBER"===t?String(this._selectionIdx+1):void 0}}class F{constructor(e,t){this._labelService=e,this._model=t}resolve(e){const{name:t}=e;if("TM_FILENAME"===t)return M.P8(this._model.uri.fsPath);if("TM_FILENAME_BASE"===t){const e=M.P8(this._model.uri.fsPath),t=e.lastIndexOf(".");return t<=0?e:e.slice(0,t)}return"TM_DIRECTORY"===t?"."===M.pD(this._model.uri.fsPath)?"":this._labelService.getUriLabel((0,A.pD)(this._model.uri)):"TM_FILEPATH"===t?this._labelService.getUriLabel(this._model.uri):"RELATIVE_FILEPATH"===t?this._labelService.getUriLabel(this._model.uri,{relative:!0,noPrefix:!0}):void 0}}class B{constructor(e,t,i,n){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=i,this._spread=n}resolve(e){if("CLIPBOARD"!==e.name)return;const t=this._readClipboardText();if(t){if(this._spread){const e=t.split(/\r\n|\n|\r/).filter((e=>!(0,s.AV)(e)));if(e.length===this._selectionCount)return e[this._selectionIdx]}return t}}}let W=class{constructor(e,t,i){this._model=e,this._selection=t,this._languageConfigurationService=i}resolve(e){const{name:t}=e,i=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn),n=this._languageConfigurationService.getLanguageConfiguration(i).comments;if(n)return"LINE_COMMENT"===t?n.lineCommentToken||void 0:"BLOCK_COMMENT_START"===t?n.blockCommentStartToken||void 0:"BLOCK_COMMENT_END"===t&&n.blockCommentEndToken||void 0}};var H,V;W=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(H=2,V=k.JZ,function(e,t){V(e,t,H)})],W);class z{constructor(){this._date=new Date}resolve(e){const{name:t}=e;if("CURRENT_YEAR"===t)return String(this._date.getFullYear());if("CURRENT_YEAR_SHORT"===t)return String(this._date.getFullYear()).slice(-2);if("CURRENT_MONTH"===t)return String(this._date.getMonth().valueOf()+1).padStart(2,"0");if("CURRENT_DATE"===t)return String(this._date.getDate().valueOf()).padStart(2,"0");if("CURRENT_HOUR"===t)return String(this._date.getHours().valueOf()).padStart(2,"0");if("CURRENT_MINUTE"===t)return String(this._date.getMinutes().valueOf()).padStart(2,"0");if("CURRENT_SECOND"===t)return String(this._date.getSeconds().valueOf()).padStart(2,"0");if("CURRENT_DAY_NAME"===t)return z.dayNames[this._date.getDay()];if("CURRENT_DAY_NAME_SHORT"===t)return z.dayNamesShort[this._date.getDay()];if("CURRENT_MONTH_NAME"===t)return z.monthNames[this._date.getMonth()];if("CURRENT_MONTH_NAME_SHORT"===t)return z.monthNamesShort[this._date.getMonth()];if("CURRENT_SECONDS_UNIX"===t)return String(Math.floor(this._date.getTime()/1e3));if("CURRENT_TIMEZONE_OFFSET"===t){const e=this._date.getTimezoneOffset(),t=e>0?"-":"+",i=Math.trunc(Math.abs(e/60)),n=i<10?"0"+i:i,o=Math.abs(e)-60*i;return t+n+":"+(o<10?"0"+o:o)}}}z.dayNames=[R.k("Sunday","Sunday"),R.k("Monday","Monday"),R.k("Tuesday","Tuesday"),R.k("Wednesday","Wednesday"),R.k("Thursday","Thursday"),R.k("Friday","Friday"),R.k("Saturday","Saturday")],z.dayNamesShort=[R.k("SundayShort","Sun"),R.k("MondayShort","Mon"),R.k("TuesdayShort","Tue"),R.k("WednesdayShort","Wed"),R.k("ThursdayShort","Thu"),R.k("FridayShort","Fri"),R.k("SaturdayShort","Sat")],z.monthNames=[R.k("January","January"),R.k("February","February"),R.k("March","March"),R.k("April","April"),R.k("May","May"),R.k("June","June"),R.k("July","July"),R.k("August","August"),R.k("September","September"),R.k("October","October"),R.k("November","November"),R.k("December","December")],z.monthNamesShort=[R.k("JanuaryShort","Jan"),R.k("FebruaryShort","Feb"),R.k("MarchShort","Mar"),R.k("AprilShort","Apr"),R.k("MayShort","May"),R.k("JuneShort","Jun"),R.k("JulyShort","Jul"),R.k("AugustShort","Aug"),R.k("SeptemberShort","Sep"),R.k("OctoberShort","Oct"),R.k("NovemberShort","Nov"),R.k("DecemberShort","Dec")];class j{constructor(e){this._workspaceService=e}resolve(e){if(!this._workspaceService)return;const t=(0,L.Q_)(this._workspaceService.getWorkspace());return(0,L.A7)(t)?void 0:"WORKSPACE_NAME"===e.name?this._resolveWorkspaceName(t):"WORKSPACE_FOLDER"===e.name?this._resoveWorkspacePath(t):void 0}_resolveWorkspaceName(e){if((0,L.jB)(e))return M.P8(e.uri.path);let t=M.P8(e.configPath.path);return t.endsWith(L.kF)&&(t=t.substr(0,t.length-L.kF.length-1)),t}_resoveWorkspacePath(e){if((0,L.jB)(e))return N(e.uri.fsPath);const t=M.P8(e.configPath.path);let i=e.configPath.fsPath;return i.endsWith(t)&&(i=i.substr(0,i.length-t.length-1)),i?N(i):"/"}}class U{resolve(e){const{name:t}=e;return"RANDOM"===t?Math.random().toString().slice(-6):"RANDOM_HEX"===t?Math.random().toString(16).slice(-6):"UUID"===t?(0,T.b)():void 0}}var $;class K{constructor(e,t,i){this._editor=e,this._snippet=t,this._snippetLineLeadingWhitespace=i,this._offset=-1,this._nestingLevel=1,this._placeholderGroups=(0,n.$z)(t.placeholders,D.Or.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(-1===this._offset)throw new Error("Snippet not initialized!");if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;const e=this._editor.getModel();this._editor.changeDecorations((t=>{for(const i of this._snippet.placeholders){const n=this._snippet.offset(i),o=this._snippet.fullLen(i),s=y.Q.fromPositions(e.getPositionAt(this._offset+n),e.getPositionAt(this._offset+n+o)),r=i.isFinalTabstop?K._decor.inactiveFinal:K._decor.inactive,a=t.addDecoration(s,r);this._placeholderDecorations.set(i,a)}}))}move(e){if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){const e=[];for(const t of this._placeholderGroups[this._placeholderGroupsIdx])if(t.transform){const i=this._placeholderDecorations.get(t),n=this._editor.getModel().getDecorationRange(i),o=this._editor.getModel().getValueInRange(n),s=t.transform.resolve(o).split(/\r\n|\r|\n/);for(let e=1;e0&&this._editor.executeEdits("snippet.placeholderTransform",e)}let t=!1;!0===e&&this._placeholderGroupsIdx0&&(this._placeholderGroupsIdx-=1,t=!0);const i=this._editor.getModel().changeDecorations((e=>{const i=new Set,n=[];for(const o of this._placeholderGroups[this._placeholderGroupsIdx]){const s=this._placeholderDecorations.get(o),r=this._editor.getModel().getDecorationRange(s);n.push(new C.L(r.startLineNumber,r.startColumn,r.endLineNumber,r.endColumn)),t=t&&this._hasPlaceholderBeenCollapsed(o),e.changeDecorationOptions(s,o.isFinalTabstop?K._decor.activeFinal:K._decor.active),i.add(o);for(const t of this._snippet.enclosingPlaceholders(o)){const n=this._placeholderDecorations.get(t);e.changeDecorationOptions(n,t.isFinalTabstop?K._decor.activeFinal:K._decor.active),i.add(t)}}for(const[t,n]of this._placeholderDecorations)i.has(t)||e.changeDecorationOptions(n,t.isFinalTabstop?K._decor.inactiveFinal:K._decor.inactive);return n}));return t?this.move(e):null!=i?i:[]}_hasPlaceholderBeenCollapsed(e){let t=e;for(;t;){if(t instanceof D.Or){const e=this._placeholderDecorations.get(t);if(this._editor.getModel().getDecorationRange(e).isEmpty()&&t.toString().length>0)return!0}t=t.parent}return!1}get isAtFirstPlaceholder(){return this._placeholderGroupsIdx<=0||0===this._placeholderGroups.length}get isAtLastPlaceholder(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1}get hasPlaceholder(){return this._snippet.placeholders.length>0}get isTrivialSnippet(){if(0===this._snippet.placeholders.length)return!0;if(1===this._snippet.placeholders.length){const[e]=this._snippet.placeholders;if(e.isFinalTabstop&&this._snippet.rightMostDescendant===e)return!0}return!1}computePossibleSelections(){const e=new Map;for(const t of this._placeholderGroups){let i;for(const n of t){if(n.isFinalTabstop)break;i||(i=[],e.set(n.index,i));const t=this._placeholderDecorations.get(n),o=this._editor.getModel().getDecorationRange(t);if(!o){e.delete(n.index);break}i.push(o)}}return e}get activeChoice(){if(!this._placeholderDecorations)return;const e=this._placeholderGroups[this._placeholderGroupsIdx][0];if(!(null==e?void 0:e.choice))return;const t=this._placeholderDecorations.get(e);if(!t)return;const i=this._editor.getModel().getDecorationRange(t);return i?{range:i,choice:e.choice}:void 0}get hasChoice(){let e=!1;return this._snippet.walk((t=>(e=t instanceof D.GR,!e))),e}merge(e){const t=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations((i=>{for(const n of this._placeholderGroups[this._placeholderGroupsIdx]){const o=e.shift();console.assert(-1!==o._offset),console.assert(!o._placeholderDecorations);const s=o._snippet.placeholderInfo.last.index;for(const e of o._snippet.placeholderInfo.all)e.isFinalTabstop?e.index=n.index+(s+1)/this._nestingLevel:e.index=n.index+e.index/this._nestingLevel;this._snippet.replace(n,o._snippet.children);const r=this._placeholderDecorations.get(n);i.removeDecoration(r),this._placeholderDecorations.delete(n);for(const e of o._snippet.placeholders){const n=o._snippet.offset(e),s=o._snippet.fullLen(e),r=y.Q.fromPositions(t.getPositionAt(o._offset+n),t.getPositionAt(o._offset+n+s)),a=i.addDecoration(r,K._decor.inactive);this._placeholderDecorations.set(e,a)}}this._placeholderGroups=(0,n.$z)(this._snippet.placeholders,D.Or.compareByIndex)}))}}K._decor={active:S.kI.register({description:"snippet-placeholder-1",stickiness:0,className:"snippet-placeholder"}),inactive:S.kI.register({description:"snippet-placeholder-2",stickiness:1,className:"snippet-placeholder"}),activeFinal:S.kI.register({description:"snippet-placeholder-3",stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:S.kI.register({description:"snippet-placeholder-4",stickiness:1,className:"finish-snippet-placeholder"})};const q={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let G=$=class{static adjustWhitespace(e,t,i,n,o){const r=e.getLineContent(t.lineNumber),a=(0,s.UU)(r,0,t.column-1);let l;return n.walk((t=>{if(!(t instanceof D.EY)||t.parent instanceof D.GR)return!0;if(o&&!o.has(t))return!0;const s=t.value.split(/\r\n|\r|\n/);if(i){const i=n.offset(t);if(0===i)s[0]=e.normalizeIndentation(s[0]);else{l=null!=l?l:n.toString();const t=l.charCodeAt(i-1);10!==t&&13!==t||(s[0]=e.normalizeIndentation(a+s[0]))}for(let t=1;te.get(L.VR))),g=e.invokeWithinContext((e=>new F(e.get(x.L),h))),p=()=>r,m=h.getValueInRange($.adjustSelection(h,e.getSelection(),i,0)),f=h.getValueInRange($.adjustSelection(h,e.getSelection(),0,n)),v=h.getLineFirstNonWhitespaceColumn(e.getSelection().positionLineNumber),_=e.getSelections().map(((e,t)=>({selection:e,idx:t}))).sort(((e,t)=>y.Q.compareRangesUsingStarts(e.selection,t.selection)));for(const{selection:r,idx:b}of _){let y=$.adjustSelection(h,r,i,0),C=$.adjustSelection(h,r,0,n);m!==h.getValueInRange(y)&&(y=r),f!==h.getValueInRange(C)&&(C=r);const k=r.setStartPosition(y.startLineNumber,y.startColumn).setEndPosition(C.endLineNumber,C.endColumn),S=(new D.fr).parse(t,!0,o),x=k.getStartPosition(),L=$.adjustWhitespace(h,x,s||b>0&&v!==h.getLineFirstNonWhitespaceColumn(r.positionLineNumber),S);S.resolveVariables(new P([g,new B(p,b,_.length,"spread"===e.getOption(79)),new O(h,r,b,a),new W(h,r,l),new z,new j(u),new U])),d[b]=w.k.replace(k,S.toString()),d[b].identifier={major:b,minor:0},d[b]._isTracked=!0,c[b]=new K(e,S,L)}return{edits:d,snippets:c}}static createEditsAndSnippetsFromEdits(e,t,i,n,o,s,r){if(!e.hasModel()||0===t.length)return{edits:[],snippets:[]};const a=[],l=e.getModel(),d=new D.fr,c=new D.mQ,h=new P([e.invokeWithinContext((e=>new F(e.get(x.L),l))),new B((()=>o),0,e.getSelections().length,"spread"===e.getOption(79)),new O(l,e.getSelection(),0,s),new W(l,e.getSelection(),r),new z,new j(e.invokeWithinContext((e=>e.get(L.VR)))),new U]);t=t.sort(((e,t)=>y.Q.compareRangesUsingStarts(e.range,t.range)));let u=0;for(let e=0;e0){const n=t[e-1].range,o=y.Q.fromPositions(n.getEndPosition(),i.getStartPosition()),s=new D.EY(l.getValueInRange(o));c.appendChild(s),u+=s.value.length}const o=d.parseFragment(n,c);$.adjustWhitespace(l,i.getStartPosition(),!0,c,new Set(o)),c.resolveVariables(h);const s=c.toString(),r=s.slice(u);u=s.length;const g=w.k.replace(i,r);g.identifier={major:e,minor:0},g._isTracked=!0,a.push(g)}return d.ensureFinalTabstop(c,i,!0),{edits:a,snippets:[new K(e,c,"")]}}constructor(e,t,i=q,n){this._editor=e,this._template=t,this._options=i,this._languageConfigurationService=n,this._templateMerges=[],this._snippets=[]}dispose(){(0,o.AS)(this._snippets)}_logInfo(){return`template="${this._template}", merged_templates="${this._templateMerges.join(" -> ")}"`}insert(){if(!this._editor.hasModel())return;const{edits:e,snippets:t}="string"==typeof this._template?$.createEditsAndSnippetsFromSelections(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService):$.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,(e=>{const i=e.filter((e=>!!e.identifier));for(let e=0;eC.L.fromPositions(e.range.getEndPosition())))})),this._editor.revealRange(this._editor.getSelections()[0])}merge(e,t=q){if(!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,e]);const{edits:i,snippets:n}=$.createEditsAndSnippetsFromSelections(this._editor,e,t.overwriteBefore,t.overwriteAfter,!0,t.adjustWhitespace,t.clipboardText,t.overtypingCapturer,this._languageConfigurationService);this._editor.executeEdits("snippet",i,(e=>{const t=e.filter((e=>!!e.identifier));for(let e=0;eC.L.fromPositions(e.range.getEndPosition())))}))}next(){const e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}prev(){const e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}_move(e){const t=[];for(const i of this._snippets){const n=i.move(e);t.push(...n)}return t}get isAtFirstPlaceholder(){return this._snippets[0].isAtFirstPlaceholder}get isAtLastPlaceholder(){return this._snippets[0].isAtLastPlaceholder}get hasPlaceholder(){return this._snippets[0].hasPlaceholder}get hasChoice(){return this._snippets[0].hasChoice}get activeChoice(){return this._snippets[0].activeChoice}isSelectionWithinPlaceholders(){if(!this.hasPlaceholder)return!1;const e=this._editor.getSelections();if(e.length{e.push(...n.get(t))}))}e.sort(y.Q.compareRangesUsingStarts);for(const[i,n]of t)if(n.length===e.length){n.sort(y.Q.compareRangesUsingStarts);for(let o=0;o0}};G=$=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([function(e,t){return function(i,n){t(i,n,e)}}(3,k.JZ)],G)},12809:(e,t,i)=>{"use strict";i.r(t);var n=i(50946),o=i(3765);const s=Object.freeze({View:(0,o.a)("view","View"),Help:(0,o.a)("help","Help"),Test:(0,o.a)("test","Test"),File:(0,o.a)("file","File"),Preferences:(0,o.a)("preferences","Preferences"),Developer:(0,o.a)({key:"developer",comment:["A developer on Code itself or someone diagnosing issues in Code"]},"Developer")});var r=i(58067),a=i(85753),l=i(31540),d=i(38122),c=i(10998),h=i(52230),u=i(14333),g=i(13021),p=i(13338),m=i(58881),f=i(85072),v=i.n(f),_=i(97825),b=i.n(_),w=i(77659),y=i.n(w),C=i(55056),k=i.n(C),S=i(10540),x=i.n(S),L=i(41113),D=i.n(L),E=i(17689),I={};I.styleTagTransform=D(),I.setAttributes=k(),I.insert=y().bind(null,"head"),I.domAPI=b(),I.insertStyleElement=x(),v()(E.A,I),E.A&&E.A.locals&&E.A.locals;var N=i(67345),M=i(24665),A=i(15365),T=i(54324),R=i(45561),P=i(39723),O=i(18917);class F{constructor(e,t,i,n=null){this.startLineNumbers=e,this.endLineNumbers=t,this.lastLineRelativePosition=i,this.showEndForLine=n}equals(e){return!!e&&this.lastLineRelativePosition===e.lastLineRelativePosition&&this.showEndForLine===e.showEndForLine&&(0,p.aI)(this.startLineNumbers,e.startLineNumbers)&&(0,p.aI)(this.endLineNumbers,e.endLineNumbers)}static get Empty(){return new F([],[],0)}}const B=(0,g.H)("stickyScrollViewLayer",{createHTML:e=>e}),W="data-sticky-line-index",H="data-sticky-is-line",V="data-sticky-is-folding-icon";class z extends c.jG{constructor(e){super(),this._editor=e,this._foldingIconStore=new c.Cm,this._rootDomNode=document.createElement("div"),this._lineNumbersDomNode=document.createElement("div"),this._linesDomNodeScrollable=document.createElement("div"),this._linesDomNode=document.createElement("div"),this._lineHeight=this._editor.getOption(67),this._renderedStickyLines=[],this._lineNumbers=[],this._lastLineRelativePosition=0,this._minContentWidthInPx=0,this._isOnGlyphMargin=!1,this._lineNumbersDomNode.className="sticky-widget-line-numbers",this._lineNumbersDomNode.setAttribute("role","none"),this._linesDomNode.className="sticky-widget-lines",this._linesDomNode.setAttribute("role","list"),this._linesDomNodeScrollable.className="sticky-widget-lines-scrollable",this._linesDomNodeScrollable.appendChild(this._linesDomNode),this._rootDomNode.className="sticky-widget",this._rootDomNode.classList.toggle("peek",e instanceof M.t),this._rootDomNode.appendChild(this._lineNumbersDomNode),this._rootDomNode.appendChild(this._linesDomNodeScrollable);const t=()=>{this._linesDomNode.style.left=this._editor.getOption(116).scrollWithEditor?`-${this._editor.getScrollLeft()}px`:"0px"};this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(116)&&t(),e.hasChanged(67)&&(this._lineHeight=this._editor.getOption(67))}))),this._register(this._editor.onDidScrollChange((e=>{e.scrollLeftChanged&&t(),e.scrollWidthChanged&&this._updateWidgetWidth()}))),this._register(this._editor.onDidChangeModel((()=>{t(),this._updateWidgetWidth()}))),this._register(this._foldingIconStore),t(),this._register(this._editor.onDidLayoutChange((e=>{this._updateWidgetWidth()}))),this._updateWidgetWidth()}get lineNumbers(){return this._lineNumbers}get lineNumberCount(){return this._lineNumbers.length}getRenderedStickyLine(e){return this._renderedStickyLines.find((t=>t.lineNumber===e))}getCurrentLines(){return this._lineNumbers}setState(e,t,i){if(void 0===i&&(!this._previousState&&!e||this._previousState&&this._previousState.equals(e)))return;const n=this._isWidgetHeightZero(e),o=n?void 0:e,s=n?0:this._findLineToRebuildWidgetFrom(e,i);this._renderRootNode(o,t,s),this._previousState=e}_isWidgetHeightZero(e){if(!e)return!0;const t=e.startLineNumbers.length*this._lineHeight+e.lastLineRelativePosition;if(t>0){this._lastLineRelativePosition=e.lastLineRelativePosition;const t=[...e.startLineNumbers];null!==e.showEndForLine&&(t[e.showEndForLine]=e.endLineNumbers[e.showEndForLine]),this._lineNumbers=t}else this._lastLineRelativePosition=0,this._lineNumbers=[];return 0===t}_findLineToRebuildWidgetFrom(e,t){if(!e||!this._previousState)return 0;if(void 0!==t)return t;const i=this._previousState,n=e.startLineNumbers.findIndex((e=>!i.startLineNumbers.includes(e)));return-1===n?0:n}_updateWidgetWidth(){const e=this._editor.getLayoutInfo(),t=e.contentLeft;this._lineNumbersDomNode.style.width=`${t}px`,this._linesDomNodeScrollable.style.setProperty("--vscode-editorStickyScroll-scrollableWidth",this._editor.getScrollWidth()-e.verticalScrollbarWidth+"px"),this._rootDomNode.style.width=e.width-e.verticalScrollbarWidth+"px"}_clearStickyLinesFromLine(e){this._foldingIconStore.clear();for(let t=e;te.scrollWidth)))+n.verticalScrollbarWidth,this._editor.layoutOverlayWidget(this)}_setFoldingHoverListeners(){"mouseover"===this._editor.getOption(111)&&(this._foldingIconStore.add(u.ko(this._lineNumbersDomNode,u.Bx.MOUSE_ENTER,(()=>{this._isOnGlyphMargin=!0,this._setFoldingIconsVisibility(!0)}))),this._foldingIconStore.add(u.ko(this._lineNumbersDomNode,u.Bx.MOUSE_LEAVE,(()=>{this._isOnGlyphMargin=!1,this._useFoldingOpacityTransition(!0),this._setFoldingIconsVisibility(!1)}))))}_renderChildNode(e,t,i,n){const o=this._editor._getViewModel();if(!o)return;const s=o.coordinatesConverter.convertModelPositionToViewPosition(new A.y(t,1)).lineNumber,r=o.getViewLineRenderingData(s),a=this._editor.getOption(68);let l;try{l=R.d.filter(r.inlineDecorations,s,r.minColumn,r.maxColumn)}catch(e){l=[]}const d=new P.zL(!0,!0,r.content,r.continuesWithWrappedLine,r.isBasicASCII,r.containsRTL,0,r.tokens,l,r.tabSize,r.startVisibleColumn,1,1,1,500,"none",!0,!0,null),c=new T.fe(2e3),h=(0,P.UW)(d,c);let u;u=B?B.createHTML(c.build()):c.build();const g=document.createElement("span");g.setAttribute(W,String(e)),g.setAttribute(H,""),g.setAttribute("role","listitem"),g.tabIndex=0,g.className="sticky-line-content",g.classList.add(`stickyLine${t}`),g.style.lineHeight=`${this._lineHeight}px`,g.innerHTML=u;const p=document.createElement("span");p.setAttribute(W,String(e)),p.setAttribute("data-sticky-is-line-number",""),p.className="sticky-line-number",p.style.lineHeight=`${this._lineHeight}px`;const m=n.contentLeft;p.style.width=`${m}px`;const f=document.createElement("span");1===a.renderType||3===a.renderType&&t%10==0?f.innerText=t.toString():2===a.renderType&&(f.innerText=Math.abs(t-this._editor.getPosition().lineNumber).toString()),f.className="sticky-line-number-inner",f.style.lineHeight=`${this._lineHeight}px`,f.style.width=`${n.lineNumbersWidth}px`,f.style.paddingLeft=`${n.lineNumbersLeft}px`,p.appendChild(f);const v=this._renderFoldingIconForLine(i,t);v&&p.appendChild(v.domNode),this._editor.applyFontInfo(g),this._editor.applyFontInfo(f),p.style.lineHeight=`${this._lineHeight}px`,g.style.lineHeight=`${this._lineHeight}px`,p.style.height=`${this._lineHeight}px`,g.style.height=`${this._lineHeight}px`;const _=new j(e,t,g,p,v,h.characterMapping,g.scrollWidth);return this._updateTopAndZIndexOfStickyLine(_)}_updateTopAndZIndexOfStickyLine(e){var t;const i=e.index,n=e.lineDomNode,o=e.lineNumberDomNode,s=i===this._lineNumbers.length-1;n.style.zIndex=s?"0":"1",o.style.zIndex=s?"0":"1";const r=`${i*this._lineHeight+this._lastLineRelativePosition+((null===(t=e.foldingIcon)||void 0===t?void 0:t.isCollapsed)?1:0)}px`,a=i*this._lineHeight+"px";return n.style.top=s?r:a,o.style.top=s?r:a,e}_renderFoldingIconForLine(e,t){const i=this._editor.getOption(111);if(!e||"never"===i)return;const n=e.regions,o=n.findRange(t),s=n.getStartLineNumber(o);if(t!==s)return;const r=n.isCollapsed(o),a=new U(r,s,n.getEndLineNumber(o),this._lineHeight);return a.setVisible(!!this._isOnGlyphMargin||r||"always"===i),a.domNode.setAttribute(V,""),a}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this._rootDomNode}getPosition(){return{preference:2,stackOridinal:10}}getMinContentWidthInPx(){return this._minContentWidthInPx}focusLineWithIndex(e){0<=e&&e0)return null;const t=this._getRenderedStickyLineFromChildDomNode(e);if(!t)return null;const i=(0,N.rk)(t.characterMapping,e,0);return new A.y(t.lineNumber,i)}getLineNumberFromChildDomNode(e){var t,i;return null!==(i=null===(t=this._getRenderedStickyLineFromChildDomNode(e))||void 0===t?void 0:t.lineNumber)&&void 0!==i?i:null}_getRenderedStickyLineFromChildDomNode(e){const t=this.getLineIndexFromChildDomNode(e);return null===t||t<0||t>=this._renderedStickyLines.length?null:this._renderedStickyLines[t]}getLineIndexFromChildDomNode(e){const t=this._getAttributeValue(e,W);return t?parseInt(t,10):null}isInStickyLine(e){return void 0!==this._getAttributeValue(e,H)}isInFoldingIconDomNode(e){return void 0!==this._getAttributeValue(e,V)}_getAttributeValue(e,t){for(;e&&e!==this._rootDomNode;){const i=e.getAttribute(t);if(null!==i)return i;e=e.parentElement}}}class j{constructor(e,t,i,n,o,s,r){this.index=e,this.lineNumber=t,this.lineDomNode=i,this.lineNumberDomNode=n,this.foldingIcon=o,this.characterMapping=s,this.scrollWidth=r}}class U{constructor(e,t,i,n){this.isCollapsed=e,this.foldingStartLine=t,this.foldingEndLine=i,this.dimension=n,this.domNode=document.createElement("div"),this.domNode.style.width=`${n}px`,this.domNode.style.height=`${n}px`,this.domNode.className=m.L.asClassName(e?O.k0:O.E0)}setVisible(e){this.domNode.style.cursor=e?"pointer":"default",this.domNode.style.opacity=e?"1":"0"}}var $=i(78903),K=i(65958),q=i(2106),G=i(52394),Q=i(14583),Z=i(97157),Y=i(49440),X=i(90695),J=i(94327);class ee{constructor(e,t){this.startLineNumber=e,this.endLineNumber=t}}class te{constructor(e,t,i){this.range=e,this.children=t,this.parent=i}}class ie{constructor(e,t,i,n){this.uri=e,this.version=t,this.element=i,this.outlineProviderId=n}}var ne,oe,se=i(17954),re=i(82399),ae=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},le=function(e,t){return function(i,n){t(i,n,e)}};!function(e){e.OUTLINE_MODEL="outlineModel",e.FOLDING_PROVIDER_MODEL="foldingProviderModel",e.INDENTATION_MODEL="indentationModel"}(ne||(ne={})),function(e){e[e.VALID=0]="VALID",e[e.INVALID=1]="INVALID",e[e.CANCELED=2]="CANCELED"}(oe||(oe={}));let de=class extends c.jG{constructor(e,t,i,n){switch(super(),this._editor=e,this._modelProviders=[],this._modelPromise=null,this._updateScheduler=this._register(new K.ve(300)),this._updateOperation=this._register(new c.Cm),this._editor.getOption(116).defaultModel){case ne.OUTLINE_MODEL:this._modelProviders.push(new he(this._editor,n));case ne.FOLDING_PROVIDER_MODEL:this._modelProviders.push(new pe(this._editor,t,n));case ne.INDENTATION_MODEL:this._modelProviders.push(new ge(this._editor,i))}}dispose(){this._modelProviders.forEach((e=>e.dispose())),this._updateOperation.clear(),this._cancelModelPromise(),super.dispose()}_cancelModelPromise(){this._modelPromise&&(this._modelPromise.cancel(),this._modelPromise=null)}async update(e){return this._updateOperation.clear(),this._updateOperation.add({dispose:()=>{this._cancelModelPromise(),this._updateScheduler.cancel()}}),this._cancelModelPromise(),await this._updateScheduler.trigger((async()=>{for(const t of this._modelProviders){const{statusPromise:i,modelPromise:n}=t.computeStickyModel(e);this._modelPromise=n;const o=await i;if(this._modelPromise!==n)return null;switch(o){case oe.CANCELED:return this._updateOperation.clear(),null;case oe.VALID:return t.stickyModel}}return null})).catch((e=>((0,J.dz)(e),null)))}};de=ae([le(2,re._Y),le(3,h.u)],de);class ce extends c.jG{constructor(e){super(),this._editor=e,this._stickyModel=null}get stickyModel(){return this._stickyModel}_invalid(){return this._stickyModel=null,oe.INVALID}computeStickyModel(e){if(e.isCancellationRequested||!this.isProviderValid())return{statusPromise:this._invalid(),modelPromise:null};const t=(0,K.SS)((e=>this.createModelFromProvider(e)));return{statusPromise:t.then((t=>this.isModelValid(t)?e.isCancellationRequested?oe.CANCELED:(this._stickyModel=this.createStickyModel(e,t),oe.VALID):this._invalid())).then(void 0,(e=>((0,J.dz)(e),oe.CANCELED))),modelPromise:t}}isModelValid(e){return!0}isProviderValid(){return!0}}let he=class extends ce{constructor(e,t){super(e),this._languageFeaturesService=t}createModelFromProvider(e){return Q.i9.create(this._languageFeaturesService.documentSymbolProvider,this._editor.getModel(),e)}createStickyModel(e,t){var i;const{stickyOutlineElement:n,providerID:o}=this._stickyModelFromOutlineModel(t,null===(i=this._stickyModel)||void 0===i?void 0:i.outlineProviderId),s=this._editor.getModel();return new ie(s.uri,s.getVersionId(),n,o)}isModelValid(e){return e&&e.children.size>0}_stickyModelFromOutlineModel(e,t){let i;if(se.f.first(e.children.values())instanceof Q.e0){const n=se.f.find(e.children.values(),(e=>e.id===t));if(n)i=n.children;else{let n,o="",s=-1;for(const[t,i]of e.children.entries()){const e=this._findSumOfRangesOfGroup(i);e>s&&(n=i,s=e,o=i.id)}t=o,i=n.children}}else i=e.children;const n=[],o=Array.from(i.values()).sort(((e,t)=>{const i=new ee(e.symbol.range.startLineNumber,e.symbol.range.endLineNumber),n=new ee(t.symbol.range.startLineNumber,t.symbol.range.endLineNumber);return this._comparator(i,n)}));for(const e of o)n.push(this._stickyModelFromOutlineElement(e,e.symbol.selectionRange.startLineNumber));return{stickyOutlineElement:new te(void 0,n,void 0),providerID:t}}_stickyModelFromOutlineElement(e,t){const i=[];for(const n of e.children.values())if(n.symbol.selectionRange.startLineNumber!==n.symbol.range.endLineNumber)if(n.symbol.selectionRange.startLineNumber!==t)i.push(this._stickyModelFromOutlineElement(n,n.symbol.selectionRange.startLineNumber));else for(const e of n.children.values())i.push(this._stickyModelFromOutlineElement(e,n.symbol.selectionRange.startLineNumber));i.sort(((e,t)=>this._comparator(e.range,t.range)));const n=new ee(e.symbol.selectionRange.startLineNumber,e.symbol.range.endLineNumber);return new te(n,i,void 0)}_comparator(e,t){return e.startLineNumber!==t.startLineNumber?e.startLineNumber-t.startLineNumber:t.endLineNumber-e.endLineNumber}_findSumOfRangesOfGroup(e){let t=0;for(const i of e.children.values())t+=this._findSumOfRangesOfGroup(i);return e instanceof Q.LC?t+e.symbol.range.endLineNumber-e.symbol.selectionRange.startLineNumber:t}};he=ae([le(1,h.u)],he);class ue extends ce{constructor(e){super(e),this._foldingLimitReporter=new Z.RangesLimitReporter(e)}createStickyModel(e,t){const i=this._fromFoldingRegions(t),n=this._editor.getModel();return new ie(n.uri,n.getVersionId(),i,void 0)}isModelValid(e){return null!==e}_fromFoldingRegions(e){const t=e.length,i=[],n=new te(void 0,[],void 0);for(let o=0;o0&&(this.provider=this._register(new Y.M(e.getModel(),n,t,this._foldingLimitReporter,void 0)))}isProviderValid(){return void 0!==this.provider}async createModelFromProvider(e){var t,i;return null!==(i=null===(t=this.provider)||void 0===t?void 0:t.compute(e))&&void 0!==i?i:null}};pe=ae([le(2,h.u)],pe);var me=function(e,t){return function(i,n){t(i,n,e)}};class fe{constructor(e,t,i){this.startLineNumber=e,this.endLineNumber=t,this.nestingDepth=i}}let ve=class extends c.jG{constructor(e,t,i){super(),this._languageFeaturesService=t,this._languageConfigurationService=i,this._onDidChangeStickyScroll=this._register(new q.vl),this.onDidChangeStickyScroll=this._onDidChangeStickyScroll.event,this._model=null,this._cts=null,this._stickyModelProvider=null,this._editor=e,this._sessionStore=this._register(new c.Cm),this._updateSoon=this._register(new K.uC((()=>this.update()),50)),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(116)&&this.readConfiguration()}))),this.readConfiguration()}readConfiguration(){this._sessionStore.clear(),this._editor.getOption(116).enabled&&(this._sessionStore.add(this._editor.onDidChangeModel((()=>{this._model=null,this.updateStickyModelProvider(),this._onDidChangeStickyScroll.fire(),this.update()}))),this._sessionStore.add(this._editor.onDidChangeHiddenAreas((()=>this.update()))),this._sessionStore.add(this._editor.onDidChangeModelContent((()=>this._updateSoon.schedule()))),this._sessionStore.add(this._languageFeaturesService.documentSymbolProvider.onDidChange((()=>this.update()))),this._sessionStore.add((0,c.s)((()=>{var e;null===(e=this._stickyModelProvider)||void 0===e||e.dispose(),this._stickyModelProvider=null}))),this.updateStickyModelProvider(),this.update())}getVersionId(){var e;return null===(e=this._model)||void 0===e?void 0:e.version}updateStickyModelProvider(){var e;null===(e=this._stickyModelProvider)||void 0===e||e.dispose(),this._stickyModelProvider=null;const t=this._editor;t.hasModel()&&(this._stickyModelProvider=new de(t,(()=>this._updateSoon.schedule()),this._languageConfigurationService,this._languageFeaturesService))}async update(){var e;null===(e=this._cts)||void 0===e||e.dispose(!0),this._cts=new $.Qi,await this.updateStickyModel(this._cts.token),this._onDidChangeStickyScroll.fire()}async updateStickyModel(e){if(!this._editor.hasModel()||!this._stickyModelProvider||this._editor.getModel().isTooLargeForTokenization())return void(this._model=null);const t=await this._stickyModelProvider.update(e);e.isCancellationRequested||(this._model=t)}updateIndex(e){return-1===e?e=0:e<0&&(e=-e-2),e}getCandidateStickyLinesIntersectingFromStickyModel(e,t,i,n,o){if(0===t.children.length)return;let s=o;const r=[];for(let e=0;ee-t))),l=this.updateIndex((0,p.El)(r,e.startLineNumber+n,((e,t)=>e-t)));for(let r=a;r<=l;r++){const a=t.children[r];if(!a)return;if(a.range){const t=a.range.startLineNumber,o=a.range.endLineNumber;e.startLineNumber<=o+1&&t-1<=e.endLineNumber&&t!==s&&(s=t,i.push(new fe(t,o-1,n+1)),this.getCandidateStickyLinesIntersectingFromStickyModel(e,a,i,n+1,t))}else this.getCandidateStickyLinesIntersectingFromStickyModel(e,a,i,n,o)}}getCandidateStickyLinesIntersecting(e){var t,i;if(!(null===(t=this._model)||void 0===t?void 0:t.element))return[];let n=[];this.getCandidateStickyLinesIntersectingFromStickyModel(e,this._model.element,n,0,-1);const o=null===(i=this._editor._getViewModel())||void 0===i?void 0:i.getHiddenAreas();if(o)for(const e of o)n=n.filter((t=>!(t.startLineNumber>=e.startLineNumber&&t.endLineNumber<=e.endLineNumber+1)));return n}};ve=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([me(1,h.u),me(2,G.JZ)],ve);var _e,be=i(52348),we=i(87951),ye=i(28061),Ce=i(914),ke=i(39504),Se=i(12060),xe=i(9715),Le=i(99039),De=function(e,t){return function(i,n){t(i,n,e)}};let Ee=_e=class extends c.jG{constructor(e,t,i,n,o,s,r){super(),this._editor=e,this._contextMenuService=t,this._languageFeaturesService=i,this._instaService=n,this._contextKeyService=r,this._sessionStore=new c.Cm,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._stickyScrollWidget=new z(this._editor),this._stickyLineCandidateProvider=new ve(this._editor,i,o),this._register(this._stickyScrollWidget),this._register(this._stickyLineCandidateProvider),this._widgetState=F.Empty,this._onDidResize(),this._readConfiguration();const a=this._stickyScrollWidget.getDomNode();this._register(this._editor.onDidChangeConfiguration((e=>{this._readConfigurationChange(e)}))),this._register(u.ko(a,u.Bx.CONTEXT_MENU,(async e=>{this._onContextMenu(u.zk(a),e)}))),this._stickyScrollFocusedContextKey=d.R.stickyScrollFocused.bindTo(this._contextKeyService),this._stickyScrollVisibleContextKey=d.R.stickyScrollVisible.bindTo(this._contextKeyService);const l=this._register(u.w5(a));this._register(l.onDidBlur((e=>{!1===this._positionRevealed&&0===a.clientHeight?(this._focusedStickyElementIndex=-1,this.focus()):this._disposeFocusStickyScrollStore()}))),this._register(l.onDidFocus((e=>{this.focus()}))),this._registerMouseListeners(),this._register(u.ko(a,u.Bx.MOUSE_DOWN,(e=>{this._onMouseDown=!0})))}static get(e){return e.getContribution(_e.ID)}_disposeFocusStickyScrollStore(){var e;this._stickyScrollFocusedContextKey.set(!1),null===(e=this._focusDisposableStore)||void 0===e||e.dispose(),this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1}focus(){if(this._onMouseDown)return this._onMouseDown=!1,void this._editor.focus();!0!==this._stickyScrollFocusedContextKey.get()&&(this._focused=!0,this._focusDisposableStore=new c.Cm,this._stickyScrollFocusedContextKey.set(!0),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumbers.length-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex))}focusNext(){this._focusedStickyElementIndex0&&this._focusNav(!1)}selectEditor(){this._editor.focus()}_focusNav(e){this._focusedStickyElementIndex=e?this._focusedStickyElementIndex+1:this._focusedStickyElementIndex-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex)}goToFocused(){const e=this._stickyScrollWidget.lineNumbers;this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:e[this._focusedStickyElementIndex],column:1})}_revealPosition(e){this._reveaInEditor(e,(()=>this._editor.revealPosition(e)))}_revealLineInCenterIfOutsideViewport(e){this._reveaInEditor(e,(()=>this._editor.revealLineInCenterIfOutsideViewport(e.lineNumber,0)))}_reveaInEditor(e,t){this._focused&&this._disposeFocusStickyScrollStore(),this._positionRevealed=!0,t(),this._editor.setSelection(ye.Q.fromPositions(e)),this._editor.focus()}_registerMouseListeners(){const e=this._register(new c.Cm),t=this._register(new we.gi(this._editor,{extractLineNumberFromMouseEvent:e=>{const t=this._stickyScrollWidget.getEditorPositionFromNode(e.target.element);return t?t.lineNumber:0}})),i=e=>{if(!this._editor.hasModel())return null;if(12!==e.target.type||e.target.detail!==this._stickyScrollWidget.getId())return null;const t=e.target.element;if(!t||t.innerText!==t.innerHTML)return null;const i=this._stickyScrollWidget.getEditorPositionFromNode(t);return i?{range:new ye.Q(i.lineNumber,i.column,i.lineNumber,i.column+t.innerText.length),textElement:t}:null},n=this._stickyScrollWidget.getDomNode();this._register(u.b2(n,u.Bx.CLICK,(e=>{if(e.ctrlKey||e.altKey||e.metaKey)return;if(!e.leftButton)return;if(e.shiftKey){const t=this._stickyScrollWidget.getLineIndexFromChildDomNode(e.target);if(null===t)return;const i=new A.y(this._endLineNumbers[t],1);return void this._revealLineInCenterIfOutsideViewport(i)}if(this._stickyScrollWidget.isInFoldingIconDomNode(e.target)){const t=this._stickyScrollWidget.getLineNumberFromChildDomNode(e.target);return void this._toggleFoldingRegionForLine(t)}if(!this._stickyScrollWidget.isInStickyLine(e.target))return;let t=this._stickyScrollWidget.getEditorPositionFromNode(e.target);if(!t){const i=this._stickyScrollWidget.getLineNumberFromChildDomNode(e.target);if(null===i)return;t=new A.y(i,1)}this._revealPosition(t)}))),this._register(u.b2(n,u.Bx.MOUSE_MOVE,(e=>{if(e.shiftKey){const t=this._stickyScrollWidget.getLineIndexFromChildDomNode(e.target);if(null===t||null!==this._showEndForLine&&this._showEndForLine===t)return;return this._showEndForLine=t,void this._renderStickyScroll()}void 0!==this._showEndForLine&&(this._showEndForLine=void 0,this._renderStickyScroll())}))),this._register(u.ko(n,u.Bx.MOUSE_LEAVE,(e=>{void 0!==this._showEndForLine&&(this._showEndForLine=void 0,this._renderStickyScroll())}))),this._register(t.onMouseMoveOrRelevantKeyDown((([t,n])=>{const o=i(t);if(!o||!t.hasTriggerModifier||!this._editor.hasModel())return void e.clear();const{range:s,textElement:r}=o;if(s.equalsRange(this._stickyRangeProjectedOnEditor)){if("underline"===r.style.textDecoration)return}else this._stickyRangeProjectedOnEditor=s,e.clear();const a=new $.Qi;let l;e.add((0,c.s)((()=>a.dispose(!0)))),(0,Ce.hE)(this._languageFeaturesService.definitionProvider,this._editor.getModel(),new A.y(s.startLineNumber,s.startColumn+1),a.token).then((t=>{if(!a.token.isCancellationRequested)if(0!==t.length){this._candidateDefinitionsLength=t.length;const i=r;l!==i?(e.clear(),l=i,l.style.textDecoration="underline",e.add((0,c.s)((()=>{l.style.textDecoration="none"})))):l||(l=i,l.style.textDecoration="underline",e.add((0,c.s)((()=>{l.style.textDecoration="none"}))))}else e.clear()}))}))),this._register(t.onCancel((()=>{e.clear()}))),this._register(t.onExecute((async e=>{if(12!==e.target.type||e.target.detail!==this._stickyScrollWidget.getId())return;const t=this._stickyScrollWidget.getEditorPositionFromNode(e.target.element);t&&this._editor.hasModel()&&this._stickyRangeProjectedOnEditor&&(this._candidateDefinitionsLength>1&&(this._focused&&this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:t.lineNumber,column:1})),this._instaService.invokeFunction(ke.U,e,this._editor,{uri:this._editor.getModel().uri,range:this._stickyRangeProjectedOnEditor}))})))}_onContextMenu(e,t){const i=new xe.P(e,t);this._contextMenuService.showContextMenu({menuId:r.D8.StickyScrollContext,getAnchor:()=>i})}_toggleFoldingRegionForLine(e){if(!this._foldingModel||null===e)return;const t=this._stickyScrollWidget.getRenderedStickyLine(e),i=null==t?void 0:t.foldingIcon;if(!i)return;(0,Le.bC)(this._foldingModel,Number.MAX_VALUE,[e]),i.isCollapsed=!i.isCollapsed;const n=(i.isCollapsed?this._editor.getTopForLineNumber(i.foldingEndLine):this._editor.getTopForLineNumber(i.foldingStartLine))-this._editor.getOption(67)*t.index+1;this._editor.setScrollTop(n),this._renderStickyScroll(e)}_readConfiguration(){const e=this._editor.getOption(116);if(!1===e.enabled)return this._editor.removeOverlayWidget(this._stickyScrollWidget),this._sessionStore.clear(),void(this._enabled=!1);e.enabled&&!this._enabled&&(this._editor.addOverlayWidget(this._stickyScrollWidget),this._sessionStore.add(this._editor.onDidScrollChange((e=>{e.scrollTopChanged&&(this._showEndForLine=void 0,this._renderStickyScroll())}))),this._sessionStore.add(this._editor.onDidLayoutChange((()=>this._onDidResize()))),this._sessionStore.add(this._editor.onDidChangeModelTokens((e=>this._onTokensChange(e)))),this._sessionStore.add(this._stickyLineCandidateProvider.onDidChangeStickyScroll((()=>{this._showEndForLine=void 0,this._renderStickyScroll()}))),this._enabled=!0),2===this._editor.getOption(68).renderType&&this._sessionStore.add(this._editor.onDidChangeCursorPosition((()=>{this._showEndForLine=void 0,this._renderStickyScroll(0)})))}_readConfigurationChange(e){(e.hasChanged(116)||e.hasChanged(73)||e.hasChanged(67)||e.hasChanged(111)||e.hasChanged(68))&&this._readConfiguration(),e.hasChanged(68)&&this._renderStickyScroll(0)}_needsUpdate(e){const t=this._stickyScrollWidget.getCurrentLines();for(const i of t)for(const t of e.ranges)if(i>=t.fromLineNumber&&i<=t.toLineNumber)return!0;return!1}_onTokensChange(e){this._needsUpdate(e)&&this._renderStickyScroll(0)}_onDidResize(){const e=this._editor.getLayoutInfo().height/this._editor.getOption(67);this._maxStickyLines=Math.round(.25*e)}async _renderStickyScroll(e){const t=this._editor.getModel();if(!t||t.isTooLargeForTokenization())return void this._resetState();const i=this._updateAndGetMinRebuildFromLine(e),n=this._stickyLineCandidateProvider.getVersionId();if(void 0===n||n===t.getVersionId())if(this._focused)if(-1===this._focusedStickyElementIndex)await this._updateState(i),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1,-1!==this._focusedStickyElementIndex&&this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex);else{const e=this._stickyScrollWidget.lineNumbers[this._focusedStickyElementIndex];await this._updateState(i),0===this._stickyScrollWidget.lineNumberCount?this._focusedStickyElementIndex=-1:(this._stickyScrollWidget.lineNumbers.includes(e)||(this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1),this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex))}else await this._updateState(i)}_updateAndGetMinRebuildFromLine(e){if(void 0!==e){const t=void 0!==this._minRebuildFromLine?this._minRebuildFromLine:1/0;this._minRebuildFromLine=Math.min(e,t)}return this._minRebuildFromLine}async _updateState(e){var t,i;this._minRebuildFromLine=void 0,this._foldingModel=null!==(i=await(null===(t=Z.FoldingController.get(this._editor))||void 0===t?void 0:t.getFoldingModel()))&&void 0!==i?i:void 0,this._widgetState=this.findScrollWidgetState();const n=this._widgetState.startLineNumbers.length>0;this._stickyScrollVisibleContextKey.set(n),this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,e)}async _resetState(){this._minRebuildFromLine=void 0,this._foldingModel=void 0,this._widgetState=F.Empty,this._stickyScrollVisibleContextKey.set(!1),this._stickyScrollWidget.setState(void 0,void 0)}findScrollWidgetState(){const e=this._editor.getOption(67),t=Math.min(this._maxStickyLines,this._editor.getOption(116).maxLineCount),i=this._editor.getScrollTop();let n=0;const o=[],s=[],r=this._editor.getVisibleRanges();if(0!==r.length){const a=new ee(r[0].startLineNumber,r[r.length-1].endLineNumber),l=this._stickyLineCandidateProvider.getCandidateStickyLinesIntersecting(a);for(const r of l){const a=r.startLineNumber,l=r.endLineNumber,d=r.nestingDepth;if(l-a>0){const r=(d-1)*e,c=d*e,h=this._editor.getBottomForLineNumber(a)-i,u=this._editor.getTopForLineNumber(l)-i,g=this._editor.getBottomForLineNumber(l)-i;if(r>u&&r<=g){o.push(a),s.push(l+1),n=g-c;break}if(c>h&&c<=g&&(o.push(a),s.push(l+1)),o.length===t)break}}}return this._endLineNumbers=s,new F(o,s,n,this._showEndForLine)}dispose(){super.dispose(),this._sessionStore.dispose()}};Ee.ID="store.contrib.stickyScrollController",Ee=_e=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([De(1,be.Z),De(2,h.u),De(3,re._Y),De(4,G.JZ),De(5,Se.U),De(6,l.fN)],Ee);class Ie extends r.L{constructor(){super({id:"editor.action.toggleStickyScroll",title:{...(0,o.a)("toggleEditorStickyScroll","Toggle Editor Sticky Scroll"),mnemonicTitle:(0,o.k)({key:"mitoggleStickyScroll",comment:["&& denotes a mnemonic"]},"&&Toggle Editor Sticky Scroll")},metadata:{description:(0,o.a)("toggleEditorStickyScroll.description","Toggle/enable the editor sticky scroll which shows the nested scopes at the top of the viewport")},category:s.View,toggled:{condition:l.M$.equals("config.editor.stickyScroll.enabled",!0),title:(0,o.k)("stickyScroll","Sticky Scroll"),mnemonicTitle:(0,o.k)({key:"miStickyScroll",comment:["&& denotes a mnemonic"]},"&&Sticky Scroll")},menu:[{id:r.D8.CommandPalette},{id:r.D8.MenubarAppearanceMenu,group:"4_editor",order:3},{id:r.D8.StickyScrollContext}]})}async run(e){const t=e.get(a.pG),i=!t.getValue("editor.stickyScroll.enabled");return t.updateValue("editor.stickyScroll.enabled",i)}}const Ne=100;class Me extends n.qO{constructor(){super({id:"editor.action.focusStickyScroll",title:{...(0,o.a)("focusStickyScroll","Focus on the editor sticky scroll"),mnemonicTitle:(0,o.k)({key:"mifocusStickyScroll",comment:["&& denotes a mnemonic"]},"&&Focus Sticky Scroll")},precondition:l.M$.and(l.M$.has("config.editor.stickyScroll.enabled"),d.R.stickyScrollVisible),menu:[{id:r.D8.CommandPalette}]})}runEditorCommand(e,t){var i;null===(i=Ee.get(t))||void 0===i||i.focus()}}class Ae extends n.qO{constructor(){super({id:"editor.action.selectNextStickyScrollLine",title:(0,o.a)("selectNextStickyScrollLine.title","Select the next editor sticky scroll line"),precondition:d.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:Ne,primary:18}})}runEditorCommand(e,t){var i;null===(i=Ee.get(t))||void 0===i||i.focusNext()}}class Te extends n.qO{constructor(){super({id:"editor.action.selectPreviousStickyScrollLine",title:(0,o.a)("selectPreviousStickyScrollLine.title","Select the previous sticky scroll line"),precondition:d.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:Ne,primary:16}})}runEditorCommand(e,t){var i;null===(i=Ee.get(t))||void 0===i||i.focusPrevious()}}class Re extends n.qO{constructor(){super({id:"editor.action.goToFocusedStickyScrollLine",title:(0,o.a)("goToFocusedStickyScrollLine.title","Go to the focused sticky scroll line"),precondition:d.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:Ne,primary:3}})}runEditorCommand(e,t){var i;null===(i=Ee.get(t))||void 0===i||i.goToFocused()}}class Pe extends n.qO{constructor(){super({id:"editor.action.selectEditor",title:(0,o.a)("selectEditor.title","Select Editor"),precondition:d.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:Ne,primary:9}})}runEditorCommand(e,t){var i;null===(i=Ee.get(t))||void 0===i||i.selectEditor()}}(0,n.HW)(Ee.ID,Ee,1),(0,r.ug)(Ie),(0,r.ug)(Me),(0,r.ug)(Te),(0,r.ug)(Ae),(0,r.ug)(Re),(0,r.ug)(Pe)},51693:(e,t,i)=>{"use strict";i.d(t,{C:()=>a,O:()=>r});var n=i(13338),o=i(75637),s=i(16844);class r{constructor(e,t){this.leadingLineContent=e,this.characterCountDelta=t}}class a{constructor(e,t,i,n,s,r,l=o.Nd.default,d=void 0){this.clipboardText=d,this._snippetCompareFn=a._compareCompletionItems,this._items=e,this._column=t,this._wordDistance=n,this._options=s,this._refilterKind=1,this._lineContext=i,this._fuzzyScoreOptions=l,"top"===r?this._snippetCompareFn=a._compareCompletionItemsSnippetsUp:"bottom"===r&&(this._snippetCompareFn=a._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(e){this._lineContext.leadingLineContent===e.leadingLineContent&&this._lineContext.characterCountDelta===e.characterCountDelta||(this._refilterKind=this._lineContext.characterCountDelta0&&i[0].container.incomplete&&e.add(t);return e}get stats(){return this._ensureCachedState(),this._stats}_ensureCachedState(){0!==this._refilterKind&&this._createCachedState()}_createCachedState(){this._itemsByProvider=new Map;const e=[],{leadingLineContent:t,characterCountDelta:i}=this._lineContext;let r="",a="";const l=1===this._refilterKind?this._items:this._filteredItems,d=[],c=!this._options.filterGraceful||l.length>2e3?o.dt:o.uU;for(let n=0;n=p)h.score=o.ne.Default;else if("string"==typeof h.completion.filterText){const t=c(r,a,e,h.completion.filterText,h.filterTextLow,0,this._fuzzyScoreOptions);if(!t)continue;0===(0,s.W1)(h.completion.filterText,h.textLabel)?h.score=t:(h.score=(0,o.Jo)(r,a,e,h.textLabel,h.labelLow,0),h.score[0]=t[0])}else{const t=c(r,a,e,h.textLabel,h.labelLow,0,this._fuzzyScoreOptions);if(!t)continue;h.score=t}}h.idx=n,h.distance=this._wordDistance.distance(h.position,h.completion),d.push(h),e.push(h.textLabel.length)}this._filteredItems=d.sort(this._snippetCompareFn),this._refilterKind=0,this._stats={pLabelLen:e.length?(0,n.SO)(e.length-.85,e,((e,t)=>e-t)):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(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return a._compareCompletionItems(e,t)}static _compareCompletionItemsSnippetsUp(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return a._compareCompletionItems(e,t)}}},93516:(e,t,i)=>{"use strict";i.d(t,{aR:()=>L,dt:()=>w,f3:()=>S,l1:()=>C,ob:()=>b,p3:()=>I,r3:()=>N});var n=i(78903),o=i(94327),s=i(75637),r=i(10998),a=i(23013),l=i(79359),d=i(37264),c=i(15365),h=i(28061),u=i(37042),g=i(47039),p=i(3765),m=i(58067),f=i(59715),v=i(31540),_=i(52230);const b={Visible:i(33242).dg,HasFocusedSuggestion:new v.N1("suggestWidgetHasFocusedSuggestion",!1,(0,p.k)("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new v.N1("suggestWidgetDetailsVisible",!1,(0,p.k)("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new v.N1("suggestWidgetMultipleSuggestions",!1,(0,p.k)("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new v.N1("suggestionMakesTextEdit",!0,(0,p.k)("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new v.N1("acceptSuggestionOnEnter",!0,(0,p.k)("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new v.N1("suggestionHasInsertAndReplaceRange",!1,(0,p.k)("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new v.N1("suggestionInsertMode",void 0,{type:"string",description:(0,p.k)("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new v.N1("suggestionCanResolve",!1,(0,p.k)("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},w=new m.D8("suggestWidgetStatusBar");class y{constructor(e,t,i,n){var o;this.position=e,this.completion=t,this.container=i,this.provider=n,this.isInvalid=!1,this.score=s.ne.Default,this.distance=0,this.textLabel="string"==typeof t.label?t.label:null===(o=t.label)||void 0===o?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,h.Q.isIRange(t.range)?(this.editStart=new c.y(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new c.y(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new c.y(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||h.Q.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new c.y(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new c.y(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new c.y(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||h.Q.spansMultipleLines(t.range.insert)||h.Q.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),"function"!=typeof n.resolveCompletionItem&&(this._resolveCache=Promise.resolve(),this._resolveDuration=0)}get isResolved(){return void 0!==this._resolveDuration}get resolveDuration(){return void 0!==this._resolveDuration?this._resolveDuration:-1}async resolve(e){if(!this._resolveCache){const t=e.onCancellationRequested((()=>{this._resolveCache=void 0,this._resolveDuration=void 0})),i=new a.W(!0);this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then((e=>{Object.assign(this.completion,e),this._resolveDuration=i.elapsed()}),(e=>{(0,o.MB)(e)&&(this._resolveCache=void 0,this._resolveDuration=void 0)})).finally((()=>{t.dispose()}))}return this._resolveCache}}class C{constructor(e=2,t=new Set,i=new Set,n=new Map,o=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=i,this.providerItemsToReuse=n,this.showDeprecated=o}}let k;function S(){return k}C.default=new C;class x{constructor(e,t,i,n){this.items=e,this.needsClipboard=t,this.durations=i,this.disposable=n}}async function L(e,t,i,s=C.default,l={triggerKind:0},d=n.XO.None){const c=new a.W;i=i.clone();const u=t.getWordAtPosition(i),p=u?new h.Q(i.lineNumber,u.startColumn,i.lineNumber,u.endColumn):h.Q.fromPositions(i),m={replace:p,insert:p.setEndPosition(i.lineNumber,i.column)},f=[],v=new r.Cm,_=[];let b=!1;const w=(e,t,n)=>{var o,a,l;let d=!1;if(!t)return d;for(const n of t.suggestions)if(!s.kindFilter.has(n.kind)){if(!s.showDeprecated&&(null===(o=null==n?void 0:n.tags)||void 0===o?void 0:o.includes(1)))continue;n.range||(n.range=m),n.sortText||(n.sortText="string"==typeof n.label?n.label:n.label.label),!b&&n.insertTextRules&&4&n.insertTextRules&&(b=g.fr.guessNeedsClipboard(n.insertText)),f.push(new y(i,n,t,e)),d=!0}return(0,r.Xm)(t)&&v.add(t),_.push({providerName:null!==(a=e._debugDisplayName)&&void 0!==a?a:"unknown_provider",elapsedProvider:null!==(l=t.duration)&&void 0!==l?l:-1,elapsedOverall:n.elapsed()}),d},S=(async()=>{if(!k||s.kindFilter.has(27))return;const e=s.providerItemsToReuse.get(k);if(e)return void e.forEach((e=>f.push(e)));if(s.providerFilter.size>0&&!s.providerFilter.has(k))return;const n=new a.W,o=await k.provideCompletionItems(t,i,l,d);w(k,o,n)})();for(const n of e.orderedGroups(t)){let e=!1;if(await Promise.all(n.map((async n=>{if(s.providerItemsToReuse.has(n)){const t=s.providerItemsToReuse.get(n);return t.forEach((e=>f.push(e))),void(e=e||t.length>0)}if(!(s.providerFilter.size>0)||s.providerFilter.has(n))try{const o=new a.W,s=await n.provideCompletionItems(t,i,l,d);e=w(n,s,o)||e}catch(e){(0,o.M_)(e)}}))),e||d.isCancellationRequested)break}return await S,d.isCancellationRequested?(v.dispose(),Promise.reject(new o.AL)):new x(f.sort((L=s.snippetSortOrder,E.get(L))),b,{entries:_,elapsed:c.elapsed()},v);var L}function D(e,t){if(e.sortTextLow&&t.sortTextLow){if(e.sortTextLowt.sortTextLow)return 1}return e.textLabelt.textLabel?1:e.completion.kind-t.completion.kind}const E=new Map;function I(e,t){var i;null===(i=e.getContribution("editor.contrib.suggestController"))||void 0===i||i.triggerSuggest((new Set).add(t),void 0,!0)}E.set(0,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return D(e,t)})),E.set(2,(function(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return D(e,t)})),E.set(1,D),f.w.registerCommand("_executeCompletionItemProvider",(async(e,...t)=>{const[i,o,s,r]=t;(0,l.j)(d.r.isUri(i)),(0,l.j)(c.y.isIPosition(o)),(0,l.j)("string"==typeof s||!s),(0,l.j)("number"==typeof r||!r);const{completionProvider:a}=e.get(_.u),h=await e.get(u.b).createModelReference(i);try{const e={incomplete:!1,suggestions:[]},t=[],i=h.object.textEditorModel.validatePosition(o),l=await L(a,h.object.textEditorModel,i,void 0,{triggerCharacter:null!=s?s:void 0,triggerKind:s?1:0});for(const i of l.items)t.length<(null!=r?r:0)&&t.push(i.resolve(n.XO.None)),e.incomplete=e.incomplete||i.container.incomplete,e.suggestions.push(i.completion);try{return await Promise.all(t),e}finally{setTimeout((()=>l.disposable.dispose()),100)}}finally{h.dispose()}}));class N{static isAllOff(e){return"off"===e.other&&"off"===e.comments&&"off"===e.strings}static isAllOn(e){return"on"===e.other&&"on"===e.comments&&"on"===e.strings}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}},16703:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SuggestController:()=>it,TriggerSuggestAction:()=>ot});var n,o=i(9009),s=i(13338),r=i(78903),a=i(94327),l=i(2106),d=i(39619),c=i(10998),h=i(63339),u=i(23013),g=i(79359),p=i(80878),m=i(50946),f=i(23877),v=i(15365),_=i(28061),b=i(38122),w=i(50960),y=i(47039),C=i(85847),k=i(31540);let S=n=class{constructor(e,t){this._editor=e,this._enabled=!1,this._ckAtEnd=n.AtEnd.bindTo(t),this._configListener=this._editor.onDidChangeConfiguration((e=>e.hasChanged(124)&&this._update())),this._update()}dispose(){var e;this._configListener.dispose(),null===(e=this._selectionListener)||void 0===e||e.dispose(),this._ckAtEnd.reset()}_update(){const e="on"===this._editor.getOption(124);if(this._enabled!==e)if(this._enabled=e,this._enabled){const e=()=>{if(!this._editor.hasModel())return void this._ckAtEnd.set(!1);const e=this._editor.getModel(),t=this._editor.getSelection(),i=e.getWordAtPosition(t.getStartPosition());i?this._ckAtEnd.set(i.endColumn===t.getStartPosition().column):this._ckAtEnd.set(!1)};this._selectionListener=this._editor.onDidChangeCursorSelection(e),e()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}};var x,L;S.AtEnd=new k.N1("atEndOfWord",!1),S=n=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(x=1,L=k.fN,function(e,t){L(e,t,x)})],S);var D,E=i(3765),I=i(59715),N=i(82399),M=i(46441),A=i(93516);let T=D=class{constructor(e,t){this._editor=e,this._index=0,this._ckOtherSuggestions=D.OtherSuggestions.bindTo(t)}dispose(){this.reset()}reset(){var e;this._ckOtherSuggestions.reset(),null===(e=this._listener)||void 0===e||e.dispose(),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}set({model:e,index:t},i){0!==e.items.length&&D._moveIndex(!0,e,t)!==t?(this._acceptNext=i,this._model=e,this._index=t,this._listener=this._editor.onDidChangeCursorPosition((()=>{this._ignore||this.reset()})),this._ckOtherSuggestions.set(!0)):this.reset()}static _moveIndex(e,t,i){let n=i;for(let o=t.items.length;o>0&&(n=(n+t.items.length+(e?1:-1))%t.items.length,n!==i)&&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=D._moveIndex(e,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};T.OtherSuggestions=new k.N1("hasOtherSuggestions",!1),T=D=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([function(e,t){return function(i,n){t(i,n,e)}}(1,k.fN)],T);var R=i(27454);class P{constructor(e,t,i,n){this._disposables=new c.Cm,this._disposables.add(i.onDidSuggest((e=>{0===e.completionModel.items.length&&this.reset()}))),this._disposables.add(i.onDidCancel((e=>{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()&&0!==i.state){const t=o.charCodeAt(o.length-1);this._active.acceptCharacters.has(t)&&e.getOption(0)&&n(this._active.item)}})))}_onItem(e){if(!e||!(0,s.EI)(e.item.completion.commitCharacters))return void this.reset();if(this._active&&this._active.item.item===e.item)return;const t=new R.y;for(const i of e.item.completion.commitCharacters)i.length>0&&t.add(i.charCodeAt(0));this._active={acceptCharacters:t,item:e}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}var O=i(58819);class F{constructor(e,t){this._disposables=new c.Cm,this._lastOvertyped=[],this._locked=!1,this._disposables.add(e.onWillType((()=>{if(this._locked||!e.hasModel())return;const t=e.getSelections(),i=t.length;let n=!1;for(let e=0;eF._maxSelectionLength)return;this._lastOvertyped[e]={value:o.getValueInRange(i),multiline:i.startLineNumber!==i.endLineNumber}}}))),this._disposables.add(t.onDidTrigger((e=>{this._locked=!0}))),this._disposables.add(t.onDidCancel((e=>{this._locked=!1})))}getLastOvertypedInfo(e){if(e>=0&&ee instanceof re.Xe?i.createInstance(se.rr,e,{useComma:!0}):void 0;this._leftActions=new oe.E(this.element,{actionViewItemProvider:s}),this._rightActions=new oe.E(this.element,{actionViewItemProvider:s}),this._leftActions.domNode.classList.add("left"),this._rightActions.domNode.classList.add("right")}dispose(){this._menuDisposables.dispose(),this._leftActions.dispose(),this._rightActions.dispose(),this.element.remove()}show(){const e=this._menuService.createMenu(this._menuId,this._contextKeyService),t=()=>{const t=[],i=[];for(const[n,o]of e.getActions())"left"===n?t.push(...o):i.push(...o);this._leftActions.clear(),this._leftActions.push(t),this._rightActions.clear(),this._rightActions.push(i)};this._menuDisposables.add(e.onDidChange((()=>t()))),this._menuDisposables.add(e)}hide(){this._menuDisposables.clear()}};le=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([ae(2,N._Y),ae(3,re.ez),ae(4,k.fN)],le),i(4344);var de=i(90840),ce=i(70559),he=i(89563),ue=i(89044),ge=i(12111),pe=i(75239),me=i(26048),fe=i(58881),ve=i(90028),_e=i(86708);function be(e){return!!e&&Boolean(e.completion.documentation||e.completion.detail&&e.completion.detail!==e.completion.label)}let we=class{constructor(e,t){this._editor=e,this._onDidClose=new l.vl,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new l.vl,this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new c.Cm,this._renderDisposeable=new c.Cm,this._borderWidth=1,this._size=new B.fg(330,0),this.domNode=B.$(".suggest-details"),this.domNode.classList.add("no-docs"),this._markdownRenderer=t.createInstance(_e.T,{editor:e}),this._body=B.$(".body"),this._scrollbar=new pe.MU(this._body,{alwaysConsumeMouseWheel:!0}),B.BC(this.domNode,this._scrollbar.getDomNode()),this._disposables.add(this._scrollbar),this._header=B.BC(this._body,B.$(".header")),this._close=B.BC(this._header,B.$("span"+fe.L.asCSSSelector(me.W.close))),this._close.title=E.k("details.close","Close"),this._type=B.BC(this._header,B.$("p.type")),this._docs=B.BC(this._body,B.$("p.docs")),this._configureFont(),this._disposables.add(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(50)&&this._configureFont()})))}dispose(){this._disposables.dispose(),this._renderDisposeable.dispose()}_configureFont(){const e=this._editor.getOptions(),t=e.get(50),i=t.getMassagedFontFamily(),n=e.get(120)||t.fontSize,o=e.get(121)||t.lineHeight,s=t.fontWeight,r=`${n}px`,a=`${o}px`;this.domNode.style.fontSize=r,this.domNode.style.lineHeight=""+o/n,this.domNode.style.fontWeight=s,this.domNode.style.fontFeatureSettings=t.fontFeatureSettings,this._type.style.fontFamily=i,this._close.style.height=a,this._close.style.width=a}getLayoutInfo(){const e=this._editor.getOption(121)||this._editor.getOption(50).lineHeight,t=this._borderWidth;return{lineHeight:e,borderWidth:t,borderHeight:2*t,verticalPadding:22,horizontalPadding:14}}renderLoading(){this._type.textContent=E.k("loading","Loading..."),this._docs.textContent="",this.domNode.classList.remove("no-docs","no-type"),this.layout(this.size.width,2*this.getLayoutInfo().lineHeight),this._onDidChangeContents.fire(this)}renderItem(e,t){var i,n;this._renderDisposeable.clear();let{detail:o,documentation:s}=e.completion;if(t){let t="";t+=`score: ${e.score[0]}\n`,t+=`prefix: ${null!==(i=e.word)&&void 0!==i?i:"(no prefix)"}\n`,t+=`word: ${e.completion.filterText?e.completion.filterText+" (filterText)":e.textLabel}\n`,t+=`distance: ${e.distance} (localityBonus-setting)\n`,t+=`index: ${e.idx}, based on ${e.completion.sortText&&`sortText: "${e.completion.sortText}"`||"label"}\n`,t+=`commit_chars: ${null===(n=e.completion.commitCharacters)||void 0===n?void 0:n.join("")}\n`,s=(new ve.Bc).appendCodeblock("empty",t),o=`Provider: ${e.provider._debugDisplayName}`}if(t||be(e)){if(this.domNode.classList.remove("no-docs","no-type"),o){const e=o.length>1e5?`${o.substr(0,1e5)}…`:o;this._type.textContent=e,this._type.title=e,B.WU(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gim.test(e))}else B.w_(this._type),this._type.title="",B.jD(this._type),this.domNode.classList.add("no-type");if(B.w_(this._docs),"string"==typeof s)this._docs.classList.remove("markdown-docs"),this._docs.textContent=s;else if(s){this._docs.classList.add("markdown-docs"),B.w_(this._docs);const e=this._markdownRenderer.render(s);this._docs.appendChild(e.element),this._renderDisposeable.add(e),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=e=>{e.preventDefault(),e.stopPropagation()},this._close.onclick=e=>{e.preventDefault(),e.stopPropagation(),this._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}else this.clearContents()}clearContents(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}get isEmpty(){return this.domNode.classList.contains("no-docs")}get size(){return this._size}layout(e,t){const i=new B.fg(e,t);B.fg.equals(i,this._size)||(this._size=i,B.Ej(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}};we=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([function(e,t){return function(i,n){t(i,n,e)}}(1,N._Y)],we);class ye{constructor(e,t){let i,n;this.widget=e,this._editor=t,this.allowEditorOverflow=!0,this._disposables=new c.Cm,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new ge.v,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(e.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let o=0,s=0;this._disposables.add(this._resizable.onDidWillResize((()=>{i=this._topLeft,n=this._resizable.size}))),this._disposables.add(this._resizable.onDidResize((e=>{if(i&&n){this.widget.layout(e.dimension.width,e.dimension.height);let t=!1;e.west&&(s=n.width-e.dimension.width,t=!0),e.north&&(o=n.height-e.dimension.height,t=!0),t&&this._applyTopLeft({top:i.top+o,left:i.left+s})}e.done&&(i=void 0,n=void 0,o=0,s=0,this._userSize=e.dimension)}))),this._disposables.add(this.widget.onDidChangeContents((()=>{var e;this._anchorBox&&this._placeAtAnchor(this._anchorBox,null!==(e=this._userSize)&&void 0!==e?e:this.widget.size,this._preferAlignAtTop)})))}dispose(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this._resizable.domNode}getPosition(){return this._topLeft?{preference:this._topLeft}:null}show(){this._added||(this._editor.addOverlayWidget(this),this._added=!0)}hide(e=!1){this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),e&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(e,t){var i;const n=e.getBoundingClientRect();this._anchorBox=n,this._preferAlignAtTop=t,this._placeAtAnchor(this._anchorBox,null!==(i=this._userSize)&&void 0!==i?i:this.widget.size,t)}_placeAtAnchor(e,t,i){var n;const o=B.tG(this.getDomNode().ownerDocument.body),s=this.widget.getLayoutInfo(),r=new B.fg(220,2*s.lineHeight),a=e.top,l=function(){const i=o.width-(e.left+e.width+s.borderWidth+s.horizontalPadding),n=-s.borderWidth+e.left+e.width,l=new B.fg(i,o.height-e.top-s.borderHeight-s.verticalPadding),d=l.with(void 0,e.top+e.height-s.borderHeight-s.verticalPadding);return{top:a,left:n,fit:i-t.width,maxSizeTop:l,maxSizeBottom:d,minSize:r.with(Math.min(i,r.width))}}(),d=function(){const i=e.left-s.borderWidth-s.horizontalPadding,n=Math.max(s.horizontalPadding,e.left-t.width-s.borderWidth),l=new B.fg(i,o.height-e.top-s.borderHeight-s.verticalPadding),d=l.with(void 0,e.top+e.height-s.borderHeight-s.verticalPadding);return{top:a,left:n,fit:i-t.width,maxSizeTop:l,maxSizeBottom:d,minSize:r.with(Math.min(i,r.width))}}(),c=function(){const i=e.left,n=-s.borderWidth+e.top+e.height,a=new B.fg(e.width-s.borderHeight,o.height-e.top-e.height-s.verticalPadding);return{top:n,left:i,fit:a.height-t.height,maxSizeBottom:a,maxSizeTop:a,minSize:r.with(a.width)}}(),h=[l,d,c],u=null!==(n=h.find((e=>e.fit>=0)))&&void 0!==n?n:h.sort(((e,t)=>t.fit-e.fit))[0],g=e.top+e.height-s.borderHeight;let p,m=t.height;const f=Math.max(u.maxSizeTop.height,u.maxSizeBottom.height);let v;m>f&&(m=f),i?m<=u.maxSizeTop.height?(p=!0,v=u.maxSizeTop):(p=!1,v=u.maxSizeBottom):m<=u.maxSizeBottom.height?(p=!1,v=u.maxSizeBottom):(p=!0,v=u.maxSizeTop);let{top:_,left:b}=u;!p&&m>e.height&&(_=g-m);const w=this._editor.getDomNode();if(w){const e=w.getBoundingClientRect();_-=e.top,b-=e.left}this._applyTopLeft({left:b,top:_}),this._resizable.enableSashes(!p,u===l,p,u!==l),this._resizable.minSize=u.minSize,this._resizable.maxSize=v,this._resizable.layout(m,Math.min(v.width,t.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}_applyTopLeft(e){this._topLeft=e,this._editor.layoutOverlayWidget(this)}}var Ce,ke=i(24772),Se=i(75637),xe=i(37264),Le=i(47317),De=i(13072),Ee=i(22467),Ie=i(54957);!function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(Ce||(Ce={}));const Ne=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function Me(e,t,i,n,o){if(fe.L.isThemeIcon(o))return[`codicon-${o.id}`,"predefined-file-icon"];if(xe.r.isUri(o))return[];const s=n===Ce.ROOT_FOLDER?["rootfolder-icon"]:n===Ce.FOLDER?["folder-icon"]:["file-icon"];if(i){let o;if(i.scheme===De.ny.data)o=Ee.B6.parseMetaData(i).get(Ee.B6.META_DATA_LABEL);else{const e=i.path.match(Ne);e?(o=Ae(e[2].toLowerCase()),e[1]&&s.push(`${Ae(e[1].toLowerCase())}-name-dir-icon`)):o=Ae(i.authority.toLowerCase())}if(n===Ce.ROOT_FOLDER)s.push(`${o}-root-name-folder-icon`);else if(n===Ce.FOLDER)s.push(`${o}-name-folder-icon`);else{if(o){if(s.push(`${o}-name-file-icon`),s.push("name-file-icon"),o.length<=255){const e=o.split(".");for(let t=1;t{const e=this._editor.getOptions(),t=e.get(50),o=t.getMassagedFontFamily(),s=t.fontFeatureSettings,a=e.get(120)||t.fontSize,l=e.get(121)||t.lineHeight,d=t.fontWeight,c=`${a}px`,h=`${l}px`,u=`${t.letterSpacing}px`;i.style.fontSize=c,i.style.fontWeight=d,i.style.letterSpacing=u,r.style.fontFamily=o,r.style.fontFeatureSettings=s,r.style.lineHeight=h,n.style.height=h,n.style.width=h,m.style.height=h,m.style.width=h}}}renderElement(e,t,i){i.configureFont();const{completion:n}=e;i.root.id=Fe(t),i.colorspan.style.backgroundColor="";const o={labelEscapeNewLines:!0,matches:(0,Se.WJ)(e.score)},s=[];if(19===n.kind&&We.extract(e,s))i.icon.className="icon customcolor",i.iconContainer.className="icon hide",i.colorspan.style.backgroundColor=s[0];else if(20===n.kind&&this._themeService.getFileIconTheme().hasFileIcons){i.icon.className="icon hide",i.iconContainer.className="icon hide";const t=Me(this._modelService,this._languageService,xe.r.from({scheme:"fake",path:e.textLabel}),Ce.FILE),s=Me(this._modelService,this._languageService,xe.r.from({scheme:"fake",path:n.detail}),Ce.FILE);o.extraClasses=t.length>s.length?t:s}else 23===n.kind&&this._themeService.getFileIconTheme().hasFolderIcons?(i.icon.className="icon hide",i.iconContainer.className="icon hide",o.extraClasses=[Me(this._modelService,this._languageService,xe.r.from({scheme:"fake",path:e.textLabel}),Ce.FOLDER),Me(this._modelService,this._languageService,xe.r.from({scheme:"fake",path:n.detail}),Ce.FOLDER)].flat()):(i.icon.className="icon hide",i.iconContainer.className="",i.iconContainer.classList.add("suggest-icon",...fe.L.asClassNameArray(Le.HC.toIcon(n.kind))));n.tags&&n.tags.indexOf(1)>=0&&(o.extraClasses=(o.extraClasses||[]).concat(["deprecated"]),o.matches=[]),i.iconLabel.setLabel(e.textLabel,void 0,o),"string"==typeof n.label?(i.parametersLabel.textContent="",i.detailsLabel.textContent=Ve(n.detail||""),i.root.classList.add("string-label")):(i.parametersLabel.textContent=Ve(n.label.detail||""),i.detailsLabel.textContent=Ve(n.label.description||""),i.root.classList.remove("string-label")),this._editor.getOption(119).showInlineDetails?(0,B.WU)(i.detailsLabel):(0,B.jD)(i.detailsLabel),be(e)?(i.right.classList.add("can-expand-details"),(0,B.WU)(i.readMore),i.readMore.onmousedown=e=>{e.stopPropagation(),e.preventDefault()},i.readMore.onclick=e=>{e.stopPropagation(),e.preventDefault(),this._onDidToggleDetails.fire()}):(i.right.classList.remove("can-expand-details"),(0,B.jD)(i.readMore),i.readMore.onmousedown=null,i.readMore.onclick=null)}disposeTemplate(e){e.disposables.dispose()}};function Ve(e){return e.replace(/\r\n|\r|\n/g,"")}He=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Oe(1,Re.S),Oe(2,Pe.L),Oe(3,ue.Gy)],He);var ze,je=i(25654),Ue=function(e,t){return function(i,n){t(i,n,e)}};(0,ce.x1A)("editorSuggestWidget.background",ce.CgL,E.k("editorSuggestWidgetBackground","Background color of the suggest widget.")),(0,ce.x1A)("editorSuggestWidget.border",ce.sIe,E.k("editorSuggestWidgetBorder","Border color of the suggest widget."));const $e=(0,ce.x1A)("editorSuggestWidget.foreground",ce.By2,E.k("editorSuggestWidgetForeground","Foreground color of the suggest widget."));(0,ce.x1A)("editorSuggestWidget.selectedForeground",ce.nH,E.k("editorSuggestWidgetSelectedForeground","Foreground color of the selected entry in the suggest widget.")),(0,ce.x1A)("editorSuggestWidget.selectedIconForeground",ce.c7i,E.k("editorSuggestWidgetSelectedIconForeground","Icon foreground color of the selected entry in the suggest widget."));const Ke=(0,ce.x1A)("editorSuggestWidget.selectedBackground",ce.AlL,E.k("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget."));(0,ce.x1A)("editorSuggestWidget.highlightForeground",ce.QI5,E.k("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),(0,ce.x1A)("editorSuggestWidget.focusHighlightForeground",ce.eMz,E.k("editorSuggestWidgetFocusHighlightForeground","Color of the match highlights in the suggest widget when an item is focused.")),(0,ce.x1A)("editorSuggestWidgetStatus.foreground",(0,ce.JO0)($e,.5),E.k("editorSuggestWidgetStatusForeground","Foreground color of the suggest widget status."));class qe{constructor(e,t){this._service=e,this._key=`suggestWidget.size/${t.getEditorType()}/${t instanceof ne.t}`}restore(){var e;const t=null!==(e=this._service.get(this._key,0))&&void 0!==e?e:"";try{const e=JSON.parse(t);if(B.fg.is(e))return B.fg.lift(e)}catch(e){}}store(e){this._service.store(this._key,JSON.stringify(e),0,1)}reset(){this._service.remove(this._key,0)}}let Ge=ze=class{constructor(e,t,i,n,o){this.editor=e,this._storageService=t,this._state=0,this._isAuto=!1,this._pendingLayout=new c.HE,this._pendingShowDetails=new c.HE,this._ignoreFocusEvents=!1,this._forceRenderingAbove=!1,this._explainMode=!1,this._showTimeout=new H.pc,this._disposables=new c.Cm,this._onDidSelect=new l.fV,this._onDidFocus=new l.fV,this._onDidHide=new l.vl,this._onDidShow=new l.vl,this.onDidSelect=this._onDidSelect.event,this.onDidFocus=this._onDidFocus.event,this.onDidHide=this._onDidHide.event,this.onDidShow=this._onDidShow.event,this._onDetailsKeydown=new l.vl,this.onDetailsKeyDown=this._onDetailsKeydown.event,this.element=new ge.v,this.element.domNode.classList.add("editor-widget","suggest-widget"),this._contentWidget=new Qe(this,e),this._persistedSize=new qe(t,e);class s{constructor(e,t,i=!1,n=!1){this.persistedSize=e,this.currentSize=t,this.persistHeight=i,this.persistWidth=n}}let r;this._disposables.add(this.element.onDidWillResize((()=>{this._contentWidget.lockPreference(),r=new s(this._persistedSize.restore(),this.element.size)}))),this._disposables.add(this.element.onDidResize((e=>{var t,i,n,o;if(this._resize(e.dimension.width,e.dimension.height),r&&(r.persistHeight=r.persistHeight||!!e.north||!!e.south,r.persistWidth=r.persistWidth||!!e.east||!!e.west),e.done){if(r){const{itemHeight:e,defaultSize:s}=this.getLayoutInfo(),a=Math.round(e/2);let{width:l,height:d}=this.element.size;(!r.persistHeight||Math.abs(r.currentSize.height-d)<=a)&&(d=null!==(i=null===(t=r.persistedSize)||void 0===t?void 0:t.height)&&void 0!==i?i:s.height),(!r.persistWidth||Math.abs(r.currentSize.width-l)<=a)&&(l=null!==(o=null===(n=r.persistedSize)||void 0===n?void 0:n.width)&&void 0!==o?o:s.width),this._persistedSize.store(new B.fg(l,d))}this._contentWidget.unlockPreference(),r=void 0}}))),this._messageElement=B.BC(this.element.domNode,B.$(".message")),this._listElement=B.BC(this.element.domNode,B.$(".tree"));const a=this._disposables.add(o.createInstance(we,this.editor));a.onDidClose(this.toggleDetails,this,this._disposables),this._details=new ye(a,this.editor);const d=()=>this.element.domNode.classList.toggle("no-icons",!this.editor.getOption(119).showIcons);d();const h=o.createInstance(He,this.editor);this._disposables.add(h),this._disposables.add(h.onDidToggleDetails((()=>this.toggleDetails()))),this._list=new W.B8("SuggestWidget",this._listElement,{getHeight:e=>this.getLayoutInfo().itemHeight,getTemplateId:e=>"suggestion"},[h],{alwaysConsumeMouseWheel:!0,useShadows:!1,mouseSupport:!1,multipleSelectionSupport:!1,accessibilityProvider:{getRole:()=>"option",getWidgetAriaLabel:()=>E.k("suggest","Suggest"),getWidgetRole:()=>"listbox",getAriaLabel:e=>{let t=e.textLabel;if("string"!=typeof e.completion.label){const{detail:i,description:n}=e.completion.label;i&&n?t=E.k("label.full","{0} {1}, {2}",t,i,n):i?t=E.k("label.detail","{0} {1}",t,i):n&&(t=E.k("label.desc","{0}, {1}",t,n))}if(!e.isResolved||!this._isDetailsVisible())return t;const{documentation:i,detail:n}=e.completion,o=z.GP("{0}{1}",n||"",i?"string"==typeof i?i:i.value:"");return E.k("ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",t,o)}}}),this._list.style((0,je.t8)({listInactiveFocusBackground:Ke,listInactiveFocusOutline:ce.buw})),this._status=o.createInstance(le,this.element.domNode,A.dt);const u=()=>this.element.domNode.classList.toggle("with-status-bar",this.editor.getOption(119).showStatusBar);u(),this._disposables.add(n.onDidColorThemeChange((e=>this._onThemeChange(e)))),this._onThemeChange(n.getColorTheme()),this._disposables.add(this._list.onMouseDown((e=>this._onListMouseDownOrTap(e)))),this._disposables.add(this._list.onTap((e=>this._onListMouseDownOrTap(e)))),this._disposables.add(this._list.onDidChangeSelection((e=>this._onListSelection(e)))),this._disposables.add(this._list.onDidChangeFocus((e=>this._onListFocus(e)))),this._disposables.add(this.editor.onDidChangeCursorSelection((()=>this._onCursorSelectionChanged()))),this._disposables.add(this.editor.onDidChangeConfiguration((e=>{e.hasChanged(119)&&(u(),d()),this._completionModel&&(e.hasChanged(50)||e.hasChanged(120)||e.hasChanged(121))&&this._list.splice(0,this._list.length,this._completionModel.items)}))),this._ctxSuggestWidgetVisible=A.ob.Visible.bindTo(i),this._ctxSuggestWidgetDetailsVisible=A.ob.DetailsVisible.bindTo(i),this._ctxSuggestWidgetMultipleSuggestions=A.ob.MultipleSuggestions.bindTo(i),this._ctxSuggestWidgetHasFocusedSuggestion=A.ob.HasFocusedSuggestion.bindTo(i),this._disposables.add(B.b2(this._details.widget.domNode,"keydown",(e=>{this._onDetailsKeydown.fire(e)}))),this._disposables.add(this.editor.onMouseDown((e=>this._onEditorMouseDown(e))))}dispose(){var e;this._details.widget.dispose(),this._details.dispose(),this._list.dispose(),this._status.dispose(),this._disposables.dispose(),null===(e=this._loadingTimeout)||void 0===e||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(){0!==this._state&&this._contentWidget.layout()}_onListMouseDownOrTap(e){void 0!==e.element&&void 0!==e.index&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this._select(e.element,e.index))}_onListSelection(e){e.elements.length&&this._select(e.elements[0],e.indexes[0])}_select(e,t){const i=this._completionModel;i&&(this._onDidSelect.fire({item:e,index:t,model:i}),this.editor.focus())}_onThemeChange(e){this._details.widget.borderWidth=(0,he.Bb)(e.type)?2:1}_onListFocus(e){var t;if(this._ignoreFocusEvents)return;if(!e.elements.length)return this._currentSuggestionDetails&&(this._currentSuggestionDetails.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=void 0),this.editor.setAriaOptions({activeDescendant:void 0}),void this._ctxSuggestWidgetHasFocusedSuggestion.set(!1);if(!this._completionModel)return;this._ctxSuggestWidgetHasFocusedSuggestion.set(!0);const i=e.elements[0],n=e.indexes[0];i!==this._focusedItem&&(null===(t=this._currentSuggestionDetails)||void 0===t||t.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=i,this._list.reveal(n),this._currentSuggestionDetails=(0,H.SS)((async e=>{const t=(0,H.EQ)((()=>{this._isDetailsVisible()&&this.showDetails(!0)}),250),n=e.onCancellationRequested((()=>t.dispose()));try{return await i.resolve(e)}finally{t.dispose(),n.dispose()}})),this._currentSuggestionDetails.then((()=>{n>=this._list.length||i!==this._list.element(n)||(this._ignoreFocusEvents=!0,this._list.splice(n,1,[i]),this._list.setFocus([n]),this._ignoreFocusEvents=!1,this._isDetailsVisible()?this.showDetails(!1):this.element.domNode.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:Fe(n)}))})).catch(a.dz)),this._onDidFocus.fire({item:i,index:n,model:this._completionModel})}_setState(e){if(this._state!==e)switch(this._state=e,this.element.domNode.classList.toggle("frozen",4===e),this.element.domNode.classList.remove("message"),e){case 0:B.jD(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=ze.LOADING_MESSAGE,B.jD(this._listElement,this._status.element),B.WU(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,(0,o.h5)(ze.LOADING_MESSAGE);break;case 2:this.element.domNode.classList.add("message"),this._messageElement.textContent=ze.NO_SUGGESTIONS_MESSAGE,B.jD(this._listElement,this._status.element),B.WU(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,(0,o.h5)(ze.NO_SUGGESTIONS_MESSAGE);break;case 3:case 4:B.jD(this._messageElement),B.WU(this._listElement,this._status.element),this._show();break;case 5:B.jD(this._messageElement),B.WU(this._listElement,this._status.element),this._details.show(),this._show()}}_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){0===this._state&&(this._contentWidget.setPosition(this.editor.getPosition()),this._isAuto=!!e,this._isAuto||(this._loadingTimeout=(0,H.EQ)((()=>this._setState(1)),t)))}showSuggestions(e,t,i,n,o){var s,r;if(this._contentWidget.setPosition(this.editor.getPosition()),null===(s=this._loadingTimeout)||void 0===s||s.dispose(),null===(r=this._currentSuggestionDetails)||void 0===r||r.cancel(),this._currentSuggestionDetails=void 0,this._completionModel!==e&&(this._completionModel=e),i&&2!==this._state&&0!==this._state)return void this._setState(4);const a=this._completionModel.items.length,l=0===a;if(this._ctxSuggestWidgetMultipleSuggestions.set(a>1),l)return this._setState(n?0:2),void(this._completionModel=void 0);this._focusedItem=void 0,this._onDidFocus.pause(),this._onDidSelect.pause();try{this._list.splice(0,this._list.length,this._completionModel.items),this._setState(i?4:3),this._list.reveal(t,0),this._list.setFocus(o?[]:[t])}finally{this._onDidFocus.resume(),this._onDidSelect.resume()}this._pendingLayout.value=B.Oq(B.zk(this.element.domNode),(()=>{this._pendingLayout.clear(),this._layout(this.element.size),this._details.widget.domNode.classList.remove("focused")}))}focusSelected(){this._list.length>0&&this._list.setFocus([0])}selectNextPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageDown(),!0;case 1:return!this._isAuto;default:return this._list.focusNextPage(),!0}}selectNext(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusNext(1,!0),!0}}selectLast(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollBottom(),!0;case 1:return!this._isAuto;default:return this._list.focusLast(),!0}}selectPreviousPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageUp(),!0;case 1:return!this._isAuto;default:return this._list.focusPreviousPage(),!0}}selectPrevious(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusPrevious(1,!0),!1}}selectFirst(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollTop(),!0;case 1:return!this._isAuto;default:return this._list.focusFirst(),!0}}getFocusedItem(){if(0!==this._state&&2!==this._state&&1!==this._state&&this._completionModel&&this._list.getFocus().length>0)return{item:this._list.getFocusedElements()[0],index:this._list.getFocus()[0],model:this._completionModel}}toggleDetailsFocus(){5===this._state?(this._setState(3),this._details.widget.domNode.classList.remove("focused")):3===this._state&&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")):!be(this._list.getFocusedElements()[0])&&!this._explainMode||3!==this._state&&5!==this._state&&4!==this._state||(this._ctxSuggestWidgetDetailsVisible.set(!0),this._setDetailsVisible(!0),this.showDetails(!1))}showDetails(e){this._pendingShowDetails.value=B.Oq(B.zk(this.element.domNode),(()=>{this._pendingShowDetails.clear(),this._details.show(),e?this._details.widget.renderLoading():this._details.widget.renderItem(this._list.getFocusedElements()[0],this._explainMode),this._details.widget.isEmpty?this._details.hide():(this._positionDetails(),this.element.domNode.classList.add("shows-details")),this.editor.focus()}))}toggleExplainMode(){this._list.getFocusedElements()[0]&&(this._explainMode=!this._explainMode,this._isDetailsVisible()?this.showDetails(!1):this.toggleDetails())}resetPersistedSize(){this._persistedSize.reset()}hideWidget(){var e;this._pendingLayout.clear(),this._pendingShowDetails.clear(),null===(e=this._loadingTimeout)||void 0===e||e.dispose(),this._setState(0),this._onDidHide.fire(this),this.element.clearSashHoverState();const t=this._persistedSize.restore(),i=Math.ceil(4.3*this.getLayoutInfo().itemHeight);t&&t.heightl&&(a=l);const d=this._completionModel?this._completionModel.stats.pLabelLen*s.typicalHalfwidthCharacterWidth:a,c=s.statusBarHeight+this._list.contentHeight+s.borderHeight,h=s.itemHeight+s.statusBarHeight,u=B.BK(this.editor.getDomNode()),g=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),p=u.top+g.top+g.height,m=Math.min(o.height-p-s.verticalPadding,c),f=u.top+g.top-s.verticalPadding,v=Math.min(f,c);let _=Math.min(Math.max(v,m)+s.borderHeight,c);r===(null===(t=this._cappedHeight)||void 0===t?void 0:t.capped)&&(r=this._cappedHeight.wanted),r_&&(r=_);const b=150;r>m||this._forceRenderingAbove&&f>b?(this._contentWidget.setPreference(1),this.element.enableSashes(!0,!0,!1,!1),_=v):(this._contentWidget.setPreference(2),this.element.enableSashes(!1,!0,!0,!1),_=m),this.element.preferredSize=new B.fg(d,s.defaultSize.height),this.element.maxSize=new B.fg(l,_),this.element.minSize=new B.fg(220,h),this._cappedHeight=r===c?{wanted:null!==(n=null===(i=this._cappedHeight)||void 0===i?void 0:i.wanted)&&void 0!==n?n:e.height,capped:r}:void 0}this._resize(a,r)}_resize(e,t){const{width:i,height:n}=this.element.maxSize;e=Math.min(i,e),t=Math.min(n,t);const{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,2===(null===(e=this._contentWidget.getPosition())||void 0===e?void 0:e.preference[0]))}getLayoutInfo(){const e=this.editor.getOption(50),t=(0,V.qE)(this.editor.getOption(121)||e.lineHeight,8,1e3),i=this.editor.getOption(119).showStatusBar&&2!==this._state&&1!==this._state?t:0,n=this._details.widget.borderWidth,o=2*n;return{itemHeight:t,statusBarHeight:i,borderWidth:n,borderHeight:o,typicalHalfwidthCharacterWidth:e.typicalHalfwidthCharacterWidth,verticalPadding:22,horizontalPadding:14,defaultSize:new B.fg(430,i+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}};Ge.LOADING_MESSAGE=E.k("suggestWidget.loading","Loading..."),Ge.NO_SUGGESTIONS_MESSAGE=E.k("suggestWidget.noSuggestions","No suggestions."),Ge=ze=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Ue(1,de.CS),Ue(2,k.fN),Ue(3,ue.Gy),Ue(4,N._Y)],Ge);class Qe{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?{position:this._position,preference:[this._preference]}:null}beforeRender(){const{height:e,width:t}=this._widget.element.size,{borderWidth:i,horizontalPadding:n}=this._widget.getLayoutInfo();return new B.fg(t+2*i+n,e+2*i)}afterRender(e){this._widget._afterRender(e)}setPreference(e){this._preferenceLocked||(this._preference=e)}lockPreference(){this._preferenceLocked=!0}unlockPreference(){this._preferenceLocked=!1}setPosition(e){this._position=e}}var Ze,Ye=i(76243),Xe=i(22344),Je=i(74774),et=function(e,t){return function(i,n){t(i,n,e)}};class tt{constructor(e,t){if(this._model=e,this._position=t,this._decorationOptions=Je.kI.register({description:"suggest-line-suffix",stickiness:1}),e.getLineMaxColumn(t.lineNumber)!==t.column){const i=e.getOffsetAt(t),n=e.getPositionAt(i+1);e.changeDecorations((e=>{this._marker&&e.removeDecoration(this._marker),this._marker=e.addDecoration(_.Q.fromPositions(t,n),this._decorationOptions)}))}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.changeDecorations((e=>{e.removeDecoration(this._marker),this._marker=void 0}))}delta(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){const t=this._model.getDecorationRange(this._marker);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}return this._model.getLineMaxColumn(e.lineNumber)-e.column}}let it=Ze=class{static get(e){return e.getContribution(Ze.ID)}constructor(e,t,i,n,o,s,r){this._memoryService=t,this._commandService=i,this._contextKeyService=n,this._instantiationService=o,this._logService=s,this._telemetryService=r,this._lineSuffix=new c.HE,this._toDispose=new c.Cm,this._selectors=new nt((e=>e.priority)),this._onWillInsertSuggestItem=new l.vl,this.onWillInsertSuggestItem=this._onWillInsertSuggestItem.event,this.editor=e,this.model=o.createInstance(O.Y,this.editor),this._selectors.register({priority:0,select:(e,t,i)=>this._memoryService.select(e,t,i)});const a=A.ob.InsertMode.bindTo(n);a.set(e.getOption(119).insertMode),this._toDispose.add(this.model.onDidTrigger((()=>a.set(e.getOption(119).insertMode)))),this.widget=this._toDispose.add(new B.Ij((0,B.zk)(e.getDomNode()),(()=>{const e=this._instantiationService.createInstance(Ge,this.editor);this._toDispose.add(e),this._toDispose.add(e.onDidSelect((e=>this._insertSuggestion(e,0)),this));const t=new P(this.editor,e,this.model,(e=>this._insertSuggestion(e,2)));this._toDispose.add(t);const i=A.ob.MakesTextEdit.bindTo(this._contextKeyService),n=A.ob.HasInsertAndReplaceRange.bindTo(this._contextKeyService),o=A.ob.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add((0,c.s)((()=>{i.reset(),n.reset(),o.reset()}))),this._toDispose.add(e.onDidFocus((({item:e})=>{const t=this.editor.getPosition(),s=e.editStart.column,r=t.column;let a=!0;"smart"!==this.editor.getOption(1)||2!==this.model.state||e.completion.additionalTextEdits||4&e.completion.insertTextRules||r-s!==e.completion.insertText.length||(a=this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:s,endLineNumber:t.lineNumber,endColumn:r})!==e.completion.insertText),i.set(a),n.set(!v.y.equals(e.editInsertEnd,e.editReplaceEnd)),o.set(Boolean(e.provider.resolveCompletionItem)||Boolean(e.completion.documentation)||e.completion.detail!==e.completion.label)}))),this._toDispose.add(e.onDetailsKeyDown((e=>{e.toKeyCodeChord().equals(new d.dG(!0,!1,!1,!1,33))||h.zx&&e.toKeyCodeChord().equals(new d.dG(!1,!1,!1,!0,33))?e.stopPropagation():e.toKeyCodeChord().isModifierKey()||this.editor.focus()}))),e}))),this._overtypingCapturer=this._toDispose.add(new B.Ij((0,B.zk)(e.getDomNode()),(()=>this._toDispose.add(new F(this.editor,this.model))))),this._alternatives=this._toDispose.add(new B.Ij((0,B.zk)(e.getDomNode()),(()=>this._toDispose.add(new T(this.editor,this._contextKeyService))))),this._toDispose.add(o.createInstance(S,e)),this._toDispose.add(this.model.onDidTrigger((e=>{this.widget.value.showTriggered(e.auto,e.shy?250:50),this._lineSuffix.value=new tt(this.editor.getModel(),e.position)}))),this._toDispose.add(this.model.onDidSuggest((e=>{if(e.triggerOptions.shy)return;let t=-1;for(const i of this._selectors.itemsOrderedByPriorityDesc)if(t=i.select(this.editor.getModel(),this.editor.getPosition(),e.completionModel.items),-1!==t)break;if(-1===t&&(t=0),0===this.model.state)return;let i=!1;if(e.triggerOptions.auto){const t=this.editor.getOption(119);"never"===t.selectionMode||"always"===t.selectionMode?i="never"===t.selectionMode:"whenTriggerCharacter"===t.selectionMode?i=1!==e.triggerOptions.triggerKind:"whenQuickSuggestion"===t.selectionMode&&(i=1===e.triggerOptions.triggerKind&&!e.triggerOptions.refilter)}this.widget.value.showSuggestions(e.completionModel,t,e.isFrozen,e.triggerOptions.auto,i)}))),this._toDispose.add(this.model.onDidCancel((e=>{e.retrigger||this.widget.value.hideWidget()}))),this._toDispose.add(this.editor.onDidBlurEditorWidget((()=>{this.model.cancel(),this.model.clear()})));const u=A.ob.AcceptSuggestionsOnEnter.bindTo(n),g=()=>{const e=this.editor.getOption(1);u.set("on"===e||"smart"===e)};this._toDispose.add(this.editor.onDidChangeConfiguration((()=>g()))),g()}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)return this._alternatives.value.reset(),this.model.cancel(),void this.model.clear();if(!this.editor.hasModel())return;const i=w.SnippetController2.get(this.editor);if(!i)return;this._onWillInsertSuggestItem.fire({item:e.item});const n=this.editor.getModel(),o=n.getAlternativeVersionId(),{item:s}=e,l=[],d=new r.Qi;1&t||this.editor.pushUndoStop();const c=this.getOverwriteInfo(s,Boolean(8&t));this._memoryService.memorize(n,this.editor.getPosition(),s);const h=s.isResolved;let g=-1,m=-1;if(Array.isArray(s.completion.additionalTextEdits)){this.model.cancel();const e=p.D.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",s.completion.additionalTextEdits.map((e=>{let t=_.Q.lift(e.range);if(t.startLineNumber===s.position.lineNumber&&t.startColumn>s.position.column){const e=this.editor.getPosition().column-s.position.column,i=e,n=_.Q.spansMultipleLines(t)?0:e;t=new _.Q(t.startLineNumber,t.startColumn+i,t.endLineNumber,t.endColumn+n)}return f.k.replaceMove(t,e.text)}))),e.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!h){const e=new u.W;let i;const o=n.onDidChangeContent((e=>{if(e.isFlush)return d.cancel(),void o.dispose();for(const t of e.changes){const e=_.Q.getEndPosition(t.range);i&&!v.y.isBefore(e,i)||(i=e)}})),r=t;t|=2;let a=!1;const c=this.editor.onWillType((()=>{c.dispose(),a=!0,2&r||this.editor.pushUndoStop()}));l.push(s.resolve(d.token).then((()=>{if(!s.completion.additionalTextEdits||d.token.isCancellationRequested)return;if(i&&s.completion.additionalTextEdits.some((e=>v.y.isBefore(i,_.Q.getStartPosition(e.range)))))return!1;a&&this.editor.pushUndoStop();const e=p.D.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",s.completion.additionalTextEdits.map((e=>f.k.replaceMove(_.Q.lift(e.range),e.text)))),e.restoreRelativeVerticalPositionOfCursor(this.editor),!a&&2&r||this.editor.pushUndoStop(),!0})).then((t=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",e.elapsed(),t),m=!0===t?1:!1===t?0:-2})).finally((()=>{o.dispose(),c.dispose()})))}let{insertText:b}=s.completion;if(4&s.completion.insertTextRules||(b=y.fr.escape(b)),this.model.cancel(),i.insert(b,{overwriteBefore:c.overwriteBefore,overwriteAfter:c.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(1&s.completion.insertTextRules),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),2&t||this.editor.pushUndoStop(),s.completion.command)if(s.completion.command.id===ot.id)this.model.trigger({auto:!0,retrigger:!0});else{const e=new u.W;l.push(this._commandService.executeCommand(s.completion.command.id,...s.completion.command.arguments?[...s.completion.command.arguments]:[]).catch((e=>{s.completion.extensionId?(0,a.M_)(e):(0,a.dz)(e)})).finally((()=>{g=e.elapsed()})))}4&t&&this._alternatives.value.set(e,(e=>{for(d.cancel();n.canUndo();){o!==n.getAlternativeVersionId()&&n.undo(),this._insertSuggestion(e,3|(8&t?8:0));break}})),this._alertCompletionItem(s),Promise.all(l).finally((()=>{this._reportSuggestionAcceptedTelemetry(s,n,h,g,m),this.model.clear(),d.dispose()}))}_reportSuggestionAcceptedTelemetry(e,t,i,n,o){var s,r,a;0!==Math.floor(100*Math.random())&&this._telemetryService.publicLog2("suggest.acceptedSuggestion",{extensionId:null!==(r=null===(s=e.extensionId)||void 0===s?void 0:s.value)&&void 0!==r?r:"unknown",providerId:null!==(a=e.provider._debugDisplayName)&&void 0!==a?a:"unknown",kind:e.completion.kind,basenameHash:(0,Xe.tW)((0,Ee.P8)(t.uri)).toString(16),languageId:t.getLanguageId(),fileExtension:(0,Ee.LC)(t.uri),resolveInfo:e.provider.resolveCompletionItem?i?1:0:-1,resolveDuration:e.resolveDuration,commandDuration:n,additionalEditsAsync:o})}getOverwriteInfo(e,t){(0,g.j)(this.editor.hasModel());let i="replace"===this.editor.getOption(119).insertMode;t&&(i=!i);const n=e.position.column-e.editStart.column,o=(i?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column;return{overwriteBefore:n+(this.editor.getPosition().column-e.position.column),overwriteAfter:o+(this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0)}}_alertCompletionItem(e){if((0,s.EI)(e.completion.additionalTextEdits)){const t=E.k("aria.alert.snippet","Accepting '{0}' made {1} additional edits",e.textLabel,e.completion.additionalTextEdits.length);(0,o.xE)(t)}}triggerSuggest(e,t,i){this.editor.hasModel()&&(this.model.trigger({auto:null!=t&&t,completionOptions:{providerFilter:e,kindFilter:i?new Set:void 0}}),this.editor.revealPosition(this.editor.getPosition(),0),this.editor.focus())}triggerSuggestAndAcceptBest(e){if(!this.editor.hasModel())return;const t=this.editor.getPosition(),i=()=>{t.equals(this.editor.getPosition())&&this._commandService.executeCommand(e.fallback)},n=e=>{if(4&e.completion.insertTextRules||e.completion.additionalTextEdits)return!0;const t=this.editor.getPosition(),i=e.editStart.column,n=t.column;return n-i!==e.completion.insertText.length||this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:i,endLineNumber:t.lineNumber,endColumn:n})!==e.completion.insertText};l.Jh.once(this.model.onDidTrigger)((e=>{const t=[];l.Jh.any(this.model.onDidTrigger,this.model.onDidCancel)((()=>{(0,c.AS)(t),i()}),void 0,t),this.model.onDidSuggest((({completionModel:e})=>{if((0,c.AS)(t),0===e.items.length)return void i();const o=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),e.items),s=e.items[o];n(s)?(this.editor.pushUndoStop(),this._insertSuggestion({index:o,item:s,model:e},7)):i()}),void 0,t)})),this.model.trigger({auto:!1,shy:!0}),this.editor.revealPosition(t,0),this.editor.focus()}acceptSelectedSuggestion(e,t){const i=this.widget.value.getFocusedItem();let n=0;e&&(n|=4),t&&(n|=8),this._insertSuggestion(i,n)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}focusSuggestion(){this.widget.value.focusSelected()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}resetWidgetSize(){this.widget.value.resetPersistedSize()}forceRenderingAbove(){this.widget.value.forceRenderingAbove()}stopForceRenderingAbove(){this.widget.isInitialized&&this.widget.value.stopForceRenderingAbove()}registerSelector(e){return this._selectors.register(e)}};it.ID="editor.contrib.suggestController",it=Ze=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([et(1,C.GS),et(2,I.d),et(3,k.fN),et(4,N._Y),et(5,M.rr),et(6,Ye.k)],it);class nt{constructor(e){this.prioritySelector=e,this._items=new Array}register(e){if(-1!==this._items.indexOf(e))throw new Error("Value is already registered");return this._items.push(e),this._items.sort(((e,t)=>this.prioritySelector(t)-this.prioritySelector(e))),{dispose:()=>{const t=this._items.indexOf(e);t>=0&&this._items.splice(t,1)}}}get itemsOrderedByPriorityDesc(){return this._items}}class ot extends m.ks{constructor(){super({id:ot.id,label:E.k("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:k.M$.and(b.R.writable,b.R.hasCompletionItemProvider,A.ob.Visible.toNegated()),kbOpts:{kbExpr:b.R.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(e,t,i){const n=it.get(t);if(!n)return;let o;i&&"object"==typeof i&&!0===i.auto&&(o=!0),n.triggerSuggest(void 0,o,void 0)}}ot.id="editor.action.triggerSuggest",(0,m.HW)(it.ID,it,2),(0,m.Fl)(ot);const st=190,rt=m.DX.bindToContribution(it.get);(0,m.E_)(new rt({id:"acceptSelectedSuggestion",precondition:k.M$.and(A.ob.Visible,A.ob.HasFocusedSuggestion),handler(e){e.acceptSelectedSuggestion(!0,!1)},kbOpts:[{primary:2,kbExpr:k.M$.and(A.ob.Visible,b.R.textInputFocus),weight:st},{primary:3,kbExpr:k.M$.and(A.ob.Visible,b.R.textInputFocus,A.ob.AcceptSuggestionsOnEnter,A.ob.MakesTextEdit),weight:st}],menuOpts:[{menuId:A.dt,title:E.k("accept.insert","Insert"),group:"left",order:1,when:A.ob.HasInsertAndReplaceRange.toNegated()},{menuId:A.dt,title:E.k("accept.insert","Insert"),group:"left",order:1,when:k.M$.and(A.ob.HasInsertAndReplaceRange,A.ob.InsertMode.isEqualTo("insert"))},{menuId:A.dt,title:E.k("accept.replace","Replace"),group:"left",order:1,when:k.M$.and(A.ob.HasInsertAndReplaceRange,A.ob.InsertMode.isEqualTo("replace"))}]})),(0,m.E_)(new rt({id:"acceptAlternativeSelectedSuggestion",precondition:k.M$.and(A.ob.Visible,b.R.textInputFocus,A.ob.HasFocusedSuggestion),kbOpts:{weight:st,kbExpr:b.R.textInputFocus,primary:1027,secondary:[1026]},handler(e){e.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:A.dt,group:"left",order:2,when:k.M$.and(A.ob.HasInsertAndReplaceRange,A.ob.InsertMode.isEqualTo("insert")),title:E.k("accept.replace","Replace")},{menuId:A.dt,group:"left",order:2,when:k.M$.and(A.ob.HasInsertAndReplaceRange,A.ob.InsertMode.isEqualTo("replace")),title:E.k("accept.insert","Insert")}]})),I.w.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),(0,m.E_)(new rt({id:"hideSuggestWidget",precondition:A.ob.Visible,handler:e=>e.cancelSuggestWidget(),kbOpts:{weight:st,kbExpr:b.R.textInputFocus,primary:9,secondary:[1033]}})),(0,m.E_)(new rt({id:"selectNextSuggestion",precondition:k.M$.and(A.ob.Visible,k.M$.or(A.ob.MultipleSuggestions,A.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectNextSuggestion(),kbOpts:{weight:st,kbExpr:b.R.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),(0,m.E_)(new rt({id:"selectNextPageSuggestion",precondition:k.M$.and(A.ob.Visible,k.M$.or(A.ob.MultipleSuggestions,A.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectNextPageSuggestion(),kbOpts:{weight:st,kbExpr:b.R.textInputFocus,primary:12,secondary:[2060]}})),(0,m.E_)(new rt({id:"selectLastSuggestion",precondition:k.M$.and(A.ob.Visible,k.M$.or(A.ob.MultipleSuggestions,A.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectLastSuggestion()})),(0,m.E_)(new rt({id:"selectPrevSuggestion",precondition:k.M$.and(A.ob.Visible,k.M$.or(A.ob.MultipleSuggestions,A.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectPrevSuggestion(),kbOpts:{weight:st,kbExpr:b.R.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),(0,m.E_)(new rt({id:"selectPrevPageSuggestion",precondition:k.M$.and(A.ob.Visible,k.M$.or(A.ob.MultipleSuggestions,A.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectPrevPageSuggestion(),kbOpts:{weight:st,kbExpr:b.R.textInputFocus,primary:11,secondary:[2059]}})),(0,m.E_)(new rt({id:"selectFirstSuggestion",precondition:k.M$.and(A.ob.Visible,k.M$.or(A.ob.MultipleSuggestions,A.ob.HasFocusedSuggestion.negate())),handler:e=>e.selectFirstSuggestion()})),(0,m.E_)(new rt({id:"focusSuggestion",precondition:k.M$.and(A.ob.Visible,A.ob.HasFocusedSuggestion.negate()),handler:e=>e.focusSuggestion(),kbOpts:{weight:st,kbExpr:b.R.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}}})),(0,m.E_)(new rt({id:"focusAndAcceptSuggestion",precondition:k.M$.and(A.ob.Visible,A.ob.HasFocusedSuggestion.negate()),handler:e=>{e.focusSuggestion(),e.acceptSelectedSuggestion(!0,!1)}})),(0,m.E_)(new rt({id:"toggleSuggestionDetails",precondition:k.M$.and(A.ob.Visible,A.ob.HasFocusedSuggestion),handler:e=>e.toggleSuggestionDetails(),kbOpts:{weight:st,kbExpr:b.R.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}},menuOpts:[{menuId:A.dt,group:"right",order:1,when:k.M$.and(A.ob.DetailsVisible,A.ob.CanResolve),title:E.k("detail.more","show less")},{menuId:A.dt,group:"right",order:1,when:k.M$.and(A.ob.DetailsVisible.toNegated(),A.ob.CanResolve),title:E.k("detail.less","show more")}]})),(0,m.E_)(new rt({id:"toggleExplainMode",precondition:A.ob.Visible,handler:e=>e.toggleExplainMode(),kbOpts:{weight:100,primary:2138}})),(0,m.E_)(new rt({id:"toggleSuggestionFocus",precondition:A.ob.Visible,handler:e=>e.toggleSuggestionFocus(),kbOpts:{weight:st,kbExpr:b.R.textInputFocus,primary:2570,mac:{primary:778}}})),(0,m.E_)(new rt({id:"insertBestCompletion",precondition:k.M$.and(b.R.textInputFocus,k.M$.equals("config.editor.tabCompletion","on"),S.AtEnd,A.ob.Visible.toNegated(),T.OtherSuggestions.toNegated(),w.SnippetController2.InSnippetMode.toNegated()),handler:(e,t)=>{e.triggerSuggestAndAcceptBest((0,g.Gv)(t)?{fallback:"tab",...t}:{fallback:"tab"})},kbOpts:{weight:st,primary:2}})),(0,m.E_)(new rt({id:"insertNextSuggestion",precondition:k.M$.and(b.R.textInputFocus,k.M$.equals("config.editor.tabCompletion","on"),T.OtherSuggestions,A.ob.Visible.toNegated(),w.SnippetController2.InSnippetMode.toNegated()),handler:e=>e.acceptNextSuggestion(),kbOpts:{weight:st,kbExpr:b.R.textInputFocus,primary:2}})),(0,m.E_)(new rt({id:"insertPrevSuggestion",precondition:k.M$.and(b.R.textInputFocus,k.M$.equals("config.editor.tabCompletion","on"),T.OtherSuggestions,A.ob.Visible.toNegated(),w.SnippetController2.InSnippetMode.toNegated()),handler:e=>e.acceptPrevSuggestion(),kbOpts:{weight:st,kbExpr:b.R.textInputFocus,primary:1026}})),(0,m.Fl)(class extends m.ks{constructor(){super({id:"editor.action.resetSuggestSize",label:E.k("suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}run(e,t){var i;null===(i=it.get(t))||void 0===i||i.resetWidgetSize()}})},1302:(e,t,i)=>{"use strict";i.r(t),i.d(t,{SuggestInlineCompletions:()=>y});var n=i(78903),o=i(75637),s=i(17954),r=i(10998),a=i(87301),l=i(28061),d=i(90426),c=i(52230),h=i(51693),u=i(93516),g=i(85847),p=i(58819),m=i(10079),f=i(3338),v=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},_=function(e,t){return function(i,n){t(i,n,e)}};class b{constructor(e,t,i,n,o,s){this.range=e,this.insertText=t,this.filterText=i,this.additionalTextEdits=n,this.command=o,this.completion=s}}let w=class extends r.mp{constructor(e,t,i,n,o,s){super(o.disposable),this.model=e,this.line=t,this.word=i,this.completionModel=n,this._suggestMemoryService=s}canBeReused(e,t,i){return this.model===e&&this.line===t&&this.word.word.length>0&&this.word.startColumn===i.startColumn&&this.word.endColumn=0&&i.resolve(n.XO.None)}return t}};w=v([_(5,g.GS)],w);let y=class extends r.jG{constructor(e,t,i,n){super(),this._languageFeatureService=e,this._clipboardService=t,this._suggestMemoryService=i,this._editorService=n,this._store.add(e.inlineCompletionsProvider.register("*",this))}async provideInlineCompletions(e,t,i,n){var o;if(i.selectedSuggestionInfo)return;let s;for(const t of this._editorService.listCodeEditors())if(t.getModel()===e){s=t;break}if(!s)return;const r=s.getOption(90);if(u.r3.isAllOff(r))return;e.tokenization.tokenizeIfCheap(t.lineNumber);const a=e.tokenization.getLineTokens(t.lineNumber),d=a.getStandardTokenType(a.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if("inline"!==u.r3.valueFor(r,d))return;let c,g,f=e.getWordAtPosition(t);if((null==f?void 0:f.word)||(c=this._getTriggerCharacterInfo(e,t)),!(null==f?void 0:f.word)&&!c)return;if(f||(f=e.getWordUntilPosition(t)),f.endColumn!==t.column)return;const v=e.getValueInRange(new l.Q(t.lineNumber,1,t.lineNumber,t.column));if(!c&&(null===(o=this._lastResult)||void 0===o?void 0:o.canBeReused(e,t.lineNumber,f))){const e=new h.O(v,t.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=e,this._lastResult.acquire(),g=this._lastResult}else{const i=await(0,u.aR)(this._languageFeatureService.completionProvider,e,t,new u.l1(void 0,p.Y.createSuggestFilter(s).itemKind,null==c?void 0:c.providers),c&&{triggerKind:1,triggerCharacter:c.ch},n);let o;i.needsClipboard&&(o=await this._clipboardService.readText());const r=new h.C(i.items,t.column,new h.O(v,0),m.S.None,s.getOption(119),s.getOption(113),{boostFullMatch:!1,firstMatchCanBeWeak:!1},o);g=new w(e,t.lineNumber,f,r,i,this._suggestMemoryService)}return this._lastResult=g,g}handleItemDidShow(e,t){t.completion.resolve(n.XO.None)}freeInlineCompletions(e){e.release()}_getTriggerCharacterInfo(e,t){var i;const n=e.getValueInRange(l.Q.fromPositions({lineNumber:t.lineNumber,column:t.column-1},t)),o=new Set;for(const t of this._languageFeatureService.completionProvider.all(e))(null===(i=t.triggerCharacters)||void 0===i?void 0:i.includes(n))&&o.add(t);if(0!==o.size)return{providers:o,ch:n}}};y=v([_(0,c.u),_(1,f.h),_(2,g.GS),_(3,a.T)],y),(0,d.x)(y)},85847:(e,t,i)=>{"use strict";i.d(t,{GS:()=>v});var n,o=i(65958),s=i(10998),r=i(27992),a=i(66525),l=i(47317),d=i(85753),c=i(66726),h=i(82399),u=i(90840),g=function(e,t){return function(i,n){t(i,n,e)}};class p{constructor(e){this.name=e}select(e,t,i){if(0===i.length)return 0;const n=i[0].score[0];for(let e=0;ethis._saveState()),500),this._disposables.add(e.onWillSaveState((e=>{e.reason===u.LP.SHUTDOWN&&this._saveState()})))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(e,t,i){this._withStrategy(e,t).memorize(e,t,i),this._persistSoon.schedule()}select(e,t,i){return this._withStrategy(e,t).select(e,t,i)}_withStrategy(e,t){var i;const o=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:e.getLanguageIdAtPosition(t.lineNumber,t.column),resource:e.uri});if((null===(i=this._strategy)||void 0===i?void 0:i.name)!==o){this._saveState();const e=n._strategyCtors.get(o)||m;this._strategy=new e;try{const e=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,t=this._storageService.get(`${n._storagePrefix}/${o}`,e);t&&this._strategy.fromJSON(JSON.parse(t))}catch(e){}}return this._strategy}_saveState(){if(this._strategy){const e=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,t=JSON.stringify(this._strategy);this._storageService.store(`${n._storagePrefix}/${this._strategy.name}`,t,e,1)}}};f._strategyCtors=new Map([["recentlyUsedByPrefix",class extends p{constructor(){super("recentlyUsedByPrefix"),this._trie=a.cB.forStrings(),this._seq=0}memorize(e,t,i){const{word:n}=e.getWordUntilPosition(t),o=`${e.getLanguageId()}/${n}`;this._trie.set(o,{type:i.completion.kind,insertText:i.completion.insertText,touch:this._seq++})}select(e,t,i){const{word:n}=e.getWordUntilPosition(t);if(!n)return super.select(e,t,i);const o=`${e.getLanguageId()}/${n}`;let s=this._trie.get(o);if(s||(s=this._trie.findSubstr(o)),s)for(let e=0;ee.push([i,t]))),e.sort(((e,t)=>-(e[1].touch-t[1].touch))).forEach(((e,t)=>e[1].touch=t)),e.slice(0,200)}fromJSON(e){if(this._trie.clear(),e.length>0){this._seq=e[0][1].touch+1;for(const[t,i]of e)i.type="number"==typeof i.type?i.type:l.HC.fromString(i.type),this._trie.set(t,i)}}}],["recentlyUsed",class extends p{constructor(){super("recentlyUsed"),this._cache=new r.qK(300,.66),this._seq=0}memorize(e,t,i){const n=`${e.getLanguageId()}/${i.textLabel}`;this._cache.set(n,{touch:this._seq++,type:i.completion.kind,insertText:i.completion.insertText})}select(e,t,i){if(0===i.length)return 0;const n=e.getLineContent(t.lineNumber).substr(t.column-10,t.column-1);if(/\s$/.test(n))return super.select(e,t,i);const o=i[0].score[0];let s=-1,r=-1;for(let t=0;tr&&o.type===i[t].completion.kind&&o.insertText===i[t].completion.insertText&&(r=o.touch,s=t),i[t].completion.preselect)return t}return-1!==s?s:0}toJSON(){return this._cache.toJSON()}fromJSON(e){this._cache.clear();for(const[t,i]of e)i.touch=0,i.type="number"==typeof i.type?i.type:l.HC.fromString(i.type),this._cache.set(t,i);this._seq=this._cache.size}}],["first",m]]),f._storagePrefix="suggest/memories",f=n=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([g(0,u.CS),g(1,d.pG)],f);const v=(0,h.u1)("ISuggestMemories");(0,c.v)(v,f,1)},58819:(e,t,i)=>{"use strict";i.d(t,{Y:()=>E});var n,o=i(65958),s=i(78903),r=i(94327),a=i(2106),l=i(10998),d=i(16844),c=i(93702),h=i(90304),u=i(10079),g=i(3338),p=i(85753),m=i(31540),f=i(46441),v=i(76243),_=i(51693),b=i(93516),w=i(52230),y=i(75637),C=i(79359),k=i(14070),S=i(50960),x=i(88195),L=function(e,t){return function(i,n){t(i,n,e)}};class D{static shouldAutoTrigger(e){if(!e.hasModel())return!1;const t=e.getModel(),i=e.getPosition();t.tokenization.tokenizeIfCheap(i.lineNumber);const n=t.getWordAtPosition(i);return!(!n||n.endColumn!==i.column&&n.startColumn+1!==i.column||!isNaN(Number(n.word)))}constructor(e,t,i){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.triggerOptions=i}}let E=n=class{constructor(e,t,i,n,s,r,d,h,u){this._editor=e,this._editorWorkerService=t,this._clipboardService=i,this._telemetryService=n,this._logService=s,this._contextKeyService=r,this._configurationService=d,this._languageFeaturesService=h,this._envService=u,this._toDispose=new l.Cm,this._triggerCharacterListener=new l.Cm,this._triggerQuickSuggest=new o.pc,this._triggerState=void 0,this._completionDisposables=new l.Cm,this._onDidCancel=new a.vl,this._onDidTrigger=new a.vl,this._onDidSuggest=new a.vl,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new c.L(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 g=!1;this._toDispose.add(this._editor.onDidCompositionStart((()=>{g=!0}))),this._toDispose.add(this._editor.onDidCompositionEnd((()=>{g=!1,this._onCompositionEnd()}))),this._toDispose.add(this._editor.onDidChangeCursorSelection((e=>{g||this._onCursorChange(e)}))),this._toDispose.add(this._editor.onDidChangeModelContent((()=>{g||void 0===this._triggerState||this._refilterCompletionItems()}))),this._updateTriggerCharacters()}dispose(){(0,l.AS)(this._triggerCharacterListener),(0,l.AS)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(92)||!this._editor.hasModel()||!this._editor.getOption(122))return;const e=new Map;for(const t of this._languageFeaturesService.completionProvider.all(this._editor.getModel()))for(const i of t.triggerCharacters||[]){let n=e.get(i);n||(n=new Set,n.add((0,b.f3)()),e.set(i,n)),n.add(t)}const t=t=>{var i;if(!function(e,t,i){if(!Boolean(t.getContextKeyValue("inlineSuggestionVisible")))return!0;const n=t.getContextKeyValue(k.p.suppressSuggestions.key);return void 0!==n?!n:!e.getOption(62).suppressSuggestions}(this._editor,this._contextKeyService,this._configurationService))return;if(D.shouldAutoTrigger(this._editor))return;if(!t){const e=this._editor.getPosition();t=this._editor.getModel().getLineContent(e.lineNumber).substr(0,e.column-1)}let n="";(0,d.LJ)(t.charCodeAt(t.length-1))?(0,d.pc)(t.charCodeAt(t.length-2))&&(n=t.substr(t.length-2)):n=t.charAt(t.length-1);const o=e.get(n);if(o){const e=new Map;if(this._completionModel)for(const[t,i]of this._completionModel.getItemsByProvider())o.has(t)||e.set(t,i);this.trigger({auto:!0,triggerKind:1,triggerCharacter:n,retrigger:Boolean(this._completionModel),clipboardText:null===(i=this._completionModel)||void 0===i?void 0:i.clipboardText,completionOptions:{providerFilter:o,providerItemsToReuse:e}})}};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;void 0!==this._triggerState&&(this._triggerQuickSuggest.cancel(),null===(t=this._requestToken)||void 0===t||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(){void 0!==this._triggerState&&(this._editor.hasModel()&&this._languageFeaturesService.completionProvider.has(this._editor.getModel())?this.trigger({auto:this._triggerState.auto,retrigger:!0}):this.cancel())}_onCursorChange(e){if(!this._editor.hasModel())return;const t=this._currentSelection;this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||0!==e.reason&&3!==e.reason||"keyboard"!==e.source&&"deleteLeft"!==e.source?this.cancel():void 0===this._triggerState&&0===e.reason?(t.containsRange(this._currentSelection)||t.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))&&this._doTriggerQuickSuggest():void 0!==this._triggerState&&3===e.reason&&this._refilterCompletionItems()}_onCompositionEnd(){void 0===this._triggerState?this._doTriggerQuickSuggest():this._refilterCompletionItems()}_doTriggerQuickSuggest(){var e;b.r3.isAllOff(this._editor.getOption(90))||this._editor.getOption(119).snippetsPreventQuickSuggestions&&(null===(e=S.SnippetController2.get(this._editor))||void 0===e?void 0:e.isInSnippet())||(this.cancel(),this._triggerQuickSuggest.cancelAndSet((()=>{if(void 0!==this._triggerState)return;if(!D.shouldAutoTrigger(this._editor))return;if(!this._editor.hasModel()||!this._editor.hasWidgetFocus())return;const e=this._editor.getModel(),t=this._editor.getPosition(),i=this._editor.getOption(90);if(!b.r3.isAllOff(i)){if(!b.r3.isAllOn(i)){e.tokenization.tokenizeIfCheap(t.lineNumber);const n=e.tokenization.getLineTokens(t.lineNumber),o=n.getStandardTokenType(n.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if("on"!==b.r3.valueFor(i,o))return}(function(e,t,i){if(!Boolean(t.getContextKeyValue(k.p.inlineSuggestionVisible.key)))return!0;const n=t.getContextKeyValue(k.p.suppressSuggestions.key);return void 0!==n?!n:!e.getOption(62).suppressSuggestions})(this._editor,this._contextKeyService,this._configurationService)&&this._languageFeaturesService.completionProvider.has(e)&&this.trigger({auto:!0})}}),this._editor.getOption(91)))}_refilterCompletionItems(){(0,C.j)(this._editor.hasModel()),(0,C.j)(void 0!==this._triggerState);const e=this._editor.getModel(),t=this._editor.getPosition(),i=new D(e,t,{...this._triggerState,refilter:!0});this._onNewContext(i)}trigger(e){var t,i,o,a,l,d;if(!this._editor.hasModel())return;const c=this._editor.getModel(),h=new D(c,this._editor.getPosition(),e);this.cancel(e.retrigger),this._triggerState=e,this._onDidTrigger.fire({auto:e.auto,shy:null!==(t=e.shy)&&void 0!==t&&t,position:this._editor.getPosition()}),this._context=h;let g={triggerKind:null!==(i=e.triggerKind)&&void 0!==i?i:0};e.triggerCharacter&&(g={triggerKind:1,triggerCharacter:e.triggerCharacter}),this._requestToken=new s.Qi;let p=1;switch(this._editor.getOption(113)){case"top":p=0;break;case"bottom":p=2}const{itemKind:m,showDeprecated:f}=n.createSuggestFilter(this._editor),v=new b.l1(p,null!==(a=null===(o=e.completionOptions)||void 0===o?void 0:o.kindFilter)&&void 0!==a?a:m,null===(l=e.completionOptions)||void 0===l?void 0:l.providerFilter,null===(d=e.completionOptions)||void 0===d?void 0:d.providerItemsToReuse,f),w=u.S.create(this._editorWorkerService,this._editor),C=(0,b.aR)(this._languageFeaturesService.completionProvider,c,this._editor.getPosition(),v,g,this._requestToken.token);Promise.all([C,w]).then((async([t,i])=>{var n;if(null===(n=this._requestToken)||void 0===n||n.dispose(),!this._editor.hasModel())return;let o=null==e?void 0:e.clipboardText;if(!o&&t.needsClipboard&&(o=await this._clipboardService.readText()),void 0===this._triggerState)return;const s=this._editor.getModel(),r=new D(s,this._editor.getPosition(),e),a={...y.Nd.default,firstMatchCanBeWeak:!this._editor.getOption(119).matchOnWordStartOnly};if(this._completionModel=new _.C(t.items,this._context.column,{leadingLineContent:r.leadingLineContent,characterCountDelta:r.column-this._context.column},i,this._editor.getOption(119),this._editor.getOption(113),a,o),this._completionDisposables.add(t.disposable),this._onNewContext(r),this._reportDurationsTelemetry(t.durations),!this._envService.isBuilt||this._envService.isExtensionDevelopment)for(const e of t.items)e.isInvalid&&this._logService.warn(`[suggest] did IGNORE invalid completion item from ${e.provider._debugDisplayName}`,e.completion)})).catch(r.dz)}_reportDurationsTelemetry(e){this._telemetryGate++%230==0&&setTimeout((()=>{this._telemetryService.publicLog2("suggest.durations.json",{data:JSON.stringify(e)}),this._logService.debug("suggest.durations.json",e)}))}static createSuggestFilter(e){const t=new Set;"none"===e.getOption(113)&&t.add(27);const i=e.getOption(119);return i.showMethods||t.add(0),i.showFunctions||t.add(1),i.showConstructors||t.add(2),i.showFields||t.add(3),i.showVariables||t.add(4),i.showClasses||t.add(5),i.showStructs||t.add(6),i.showInterfaces||t.add(7),i.showModules||t.add(8),i.showProperties||t.add(9),i.showEvents||t.add(10),i.showOperators||t.add(11),i.showUnits||t.add(12),i.showValues||t.add(13),i.showConstants||t.add(14),i.showEnums||t.add(15),i.showEnumMembers||t.add(16),i.showKeywords||t.add(17),i.showWords||t.add(18),i.showColors||t.add(19),i.showFiles||t.add(20),i.showReferences||t.add(21),i.showColors||t.add(22),i.showFolders||t.add(23),i.showTypeParameters||t.add(24),i.showSnippets||t.add(27),i.showUsers||t.add(25),i.showIssues||t.add(26),{itemKind:t,showDeprecated:i.showDeprecated}}_onNewContext(e){if(this._context)if(e.lineNumber===this._context.lineNumber)if((0,d.UU)(e.leadingLineContent)===(0,d.UU)(this._context.leadingLineContent)){if(e.columnthis._context.leadingWord.startColumn){if(D.shouldAutoTrigger(this._editor)&&this._context){const e=this._completionModel.getItemsByProvider();this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerItemsToReuse:e}})}}else if(e.column>this._context.column&&this._completionModel.getIncompleteProvider().size>0&&0!==e.leadingWord.word.length){const e=new Map,t=new Set;for(const[i,n]of this._completionModel.getItemsByProvider())n.length>0&&n[0].container.incomplete?t.add(i):e.set(i,n);this.trigger({auto:this._context.triggerOptions.auto,triggerKind:2,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerFilter:t,providerItemsToReuse:e}})}else{const t=this._completionModel.lineContext;let i=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},0===this._completionModel.items.length){const n=D.shouldAutoTrigger(this._editor);if(!this._context)return void this.cancel();if(n&&this._context.leadingWord.endColumn0,i&&0===e.leadingWord.word.length)return void this.cancel()}this._onDidSuggest.fire({completionModel:this._completionModel,triggerOptions:e.triggerOptions,isFrozen:i})}}else this.cancel();else this.cancel()}};E=n=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([L(1,h.w),L(2,g.h),L(3,v.k),L(4,f.rr),L(5,m.fN),L(6,p.pG),L(7,w.u),L(8,x.k)],E)},10079:(e,t,i)=>{"use strict";i.d(t,{S:()=>r});var n=i(13338),o=i(28061),s=i(91934);class r{static async create(e,t){if(!t.getOption(119).localityBonus)return r.None;if(!t.hasModel())return r.None;const i=t.getModel(),a=t.getPosition();if(!e.canComputeWordRanges(i.uri))return r.None;const[l]=await(new s.n).provideSelectionRanges(i,[a]);if(0===l.length)return r.None;const d=await e.computeWordRanges(i.uri,l[0].range);if(!d)return r.None;const c=i.getWordUntilPosition(a);return delete d[c.word],new class extends r{distance(e,i){if(!a.equals(t.getPosition()))return 0;if(17===i.kind)return 2<<20;const s="string"==typeof i.label?i.label:i.label.label,r=d[s];if((0,n.Ct)(r))return 2<<20;const c=(0,n.El)(r,o.Q.fromPositions(e),o.Q.compareRangesUsingStarts),h=c>=0?r[c]:r[Math.max(0,~c-1)];let u=l.length;for(const e of l){if(!o.Q.containsRange(e.range,h))break;u-=1}return u}}}}r.None=new class extends r{distance(){return 0}}},4344:(e,t,i)=>{"use strict";var n=i(85072),o=i.n(n),s=i(97825),r=i.n(s),a=i(77659),l=i.n(a),d=i(55056),c=i.n(d),h=i(10540),u=i.n(h),g=i(41113),p=i.n(g),m=i(51029),f={};f.styleTagTransform=p(),f.setAttributes=c(),f.insert=l().bind(null,"head"),f.domAPI=r(),f.insertStyleElement=u(),o()(m.A,f),m.A&&m.A.locals&&m.A.locals;var v=i(3765),_=i(70559);(0,_.x1A)("symbolIcon.arrayForeground",_.CU6,(0,v.k)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.booleanForeground",_.CU6,(0,v.k)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,v.k)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.colorForeground",_.CU6,(0,v.k)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.constantForeground",_.CU6,(0,v.k)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,v.k)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,v.k)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,v.k)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,v.k)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,v.k)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.fileForeground",_.CU6,(0,v.k)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.folderForeground",_.CU6,(0,v.k)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,v.k)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,v.k)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.keyForeground",_.CU6,(0,v.k)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.keywordForeground",_.CU6,(0,v.k)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,v.k)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.moduleForeground",_.CU6,(0,v.k)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.namespaceForeground",_.CU6,(0,v.k)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.nullForeground",_.CU6,(0,v.k)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.numberForeground",_.CU6,(0,v.k)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.objectForeground",_.CU6,(0,v.k)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.operatorForeground",_.CU6,(0,v.k)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.packageForeground",_.CU6,(0,v.k)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.propertyForeground",_.CU6,(0,v.k)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.referenceForeground",_.CU6,(0,v.k)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.snippetForeground",_.CU6,(0,v.k)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.stringForeground",_.CU6,(0,v.k)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.structForeground",_.CU6,(0,v.k)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.textForeground",_.CU6,(0,v.k)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.typeParameterForeground",_.CU6,(0,v.k)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.unitForeground",_.CU6,(0,v.k)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),(0,_.x1A)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,v.k)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."))},1184:(e,t,i)=>{"use strict";i.r(t),i.d(t,{ToggleTabFocusModeAction:()=>a});var n=i(9009),o=i(25155),s=i(3765),r=i(58067);class a extends r.L{constructor(){super({id:a.ID,title:s.a({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),precondition:void 0,keybinding:{primary:2091,mac:{primary:1323},weight:100},metadata:{description:s.a("tabMovesFocusDescriptions","Determines whether the tab key moves focus around the workbench or inserts the tab character in the current editor. This is also called tab trapping, tab navigation, or tab focus mode.")},f1:!0})}run(){const e=!o.M.getTabFocusMode();o.M.setTabFocusMode(e),e?(0,n.xE)(s.k("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):(0,n.xE)(s.k("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}a.ID="editor.action.toggleTabFocusMode",(0,r.ug)(a)},32526:(e,t,i)=>{"use strict";i.r(t);var n=i(23013),o=i(50946),s=i(3765);class r extends o.ks{constructor(){super({id:"editor.action.forceRetokenize",label:s.k("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;const i=t.getModel();i.tokenization.resetTokenization();const o=new n.W;i.tokenization.forceTokenization(i.getLineCount()),o.stop(),console.log(`tokenization took ${o.elapsed()}`)}}(0,o.Fl)(r)},80654:(e,t,i)=>{"use strict";i.r(t),i.d(t,{DisableHighlightingInCommentsAction:()=>_e,DisableHighlightingInStringsAction:()=>be,DisableHighlightingOfAmbiguousCharactersAction:()=>we,DisableHighlightingOfInvisibleCharactersAction:()=>ye,DisableHighlightingOfNonBasicAsciiCharactersAction:()=>Ce,ShowExcludeOptions:()=>ke,UnicodeHighlighter:()=>de,UnicodeHighlighterHoverParticipant:()=>ge,warningIcon:()=>le});var n=i(65958),o=i(26048),s=i(90028),r=i(10998),a=i(63339),l=i(16844),d=i(85072),c=i.n(d),h=i(97825),u=i.n(h),g=i(77659),p=i.n(g),m=i(55056),f=i.n(m),v=i(10540),_=i.n(v),b=i(41113),w=i.n(b),y=i(18245),C={};C.styleTagTransform=w(),C.setAttributes=f(),C.insert=p().bind(null,"head"),C.domAPI=u(),C.insertStyleElement=_(),c()(y.A,C),y.A&&y.A.locals&&y.A.locals;var k=i(50946),S=i(66476),x=i(74774),L=i(49887),D=i(90304),E=i(77922),I=i(31430),N=i(46311),M=i(14270),A=i(6065),T={};T.styleTagTransform=w(),T.setAttributes=f(),T.insert=p().bind(null,"head"),T.domAPI=u(),T.insertStyleElement=_(),c()(A.A,T),A.A&&A.A.locals&&A.A.locals;var R=i(14333),P=i(77439),O=i(27969),F=i(86708),B=i(82399),W=i(34061),H=i(87594),V=i(30474),z=i(2106),j=i(54435),U=i(4646),$={};$.styleTagTransform=w(),$.setAttributes=f(),$.insert=p().bind(null,"head"),$.domAPI=u(),$.insertStyleElement=_(),c()(U.A,$),U.A&&U.A.locals&&U.A.locals;var K=i(65568),q=i(90428),G=function(e,t){return function(i,n){t(i,n,e)}};let Q=class extends r.jG{get enabled(){return this._enabled}set enabled(e){e?(this.el.setAttribute("aria-disabled","false"),this.el.tabIndex=0,this.el.style.pointerEvents="auto",this.el.style.opacity="1",this.el.style.cursor="pointer",this._enabled=!1):(this.el.setAttribute("aria-disabled","true"),this.el.tabIndex=-1,this.el.style.pointerEvents="none",this.el.style.opacity="0.4",this.el.style.cursor="default",this._enabled=!0),this._enabled=e}constructor(e,t,i={},n,o){var s,r;super(),this._link=t,this._hoverService=n,this._enabled=!0,this.el=(0,R.BC)(e,(0,R.$)("a.monaco-link",{tabIndex:null!==(s=t.tabIndex)&&void 0!==s?s:0,href:t.href},t.label)),this.hoverDelegate=null!==(r=i.hoverDelegate)&&void 0!==r?r:(0,K.nZ)("mouse"),this.setTooltip(t.title),this.el.setAttribute("role","button");const a=this._register(new W.f(this.el,"click")),l=this._register(new W.f(this.el,"keypress")),d=z.Jh.chain(l.event,(e=>e.map((e=>new H.Z(e))).filter((e=>3===e.keyCode)))),c=this._register(new W.f(this.el,V.B.Tap)).event;this._register(V.q.addTarget(this.el));const h=z.Jh.any(a.event,d,c);this._register(h((e=>{this.enabled&&(R.fs.stop(e,!0),(null==i?void 0:i.opener)?i.opener(this._link.href):o.open(this._link.href,{allowCommands:!0}))}))),this.enabled=!0}setTooltip(e){this.hoverDelegate.showNativeHover?this.el.title=null!=e?e:"":!this.hover&&e?this.hover=this._register(this._hoverService.setupManagedHover(this.hoverDelegate,this.el,e)):this.hover&&this.hover.update(e)}};Q=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([G(3,q.TN),G(4,j.C)],Q);var Z=i(11210),Y=i(58881),X=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},J=function(e,t){return function(i,n){t(i,n,e)}};let ee=class extends r.jG{constructor(e,t){super(),this._editor=e,this.instantiationService=t,this.banner=this._register(this.instantiationService.createInstance(te))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(e){this.banner.show({...e,onClose:()=>{var t;this.hide(),null===(t=e.onClose)||void 0===t||t.call(e)}}),this._editor.setBanner(this.banner.element,26)}};ee=X([J(1,B._Y)],ee);let te=class extends r.jG{constructor(e){super(),this.instantiationService=e,this.markdownRenderer=this.instantiationService.createInstance(F.T,{}),this.element=(0,R.$)("div.editor-banner"),this.element.tabIndex=0}getAriaLabel(e){return e.ariaLabel?e.ariaLabel:"string"==typeof e.message?e.message:void 0}getBannerMessage(e){if("string"==typeof e){const t=(0,R.$)("span");return t.innerText=e,t}return this.markdownRenderer.render(e).element}clear(){(0,R.w_)(this.element)}show(e){(0,R.w_)(this.element);const t=this.getAriaLabel(e);t&&this.element.setAttribute("aria-label",t);const i=(0,R.BC)(this.element,(0,R.$)("div.icon-container"));i.setAttribute("aria-hidden","true"),e.icon&&i.appendChild((0,R.$)(`div${Y.L.asCSSSelector(e.icon)}`));const n=(0,R.BC)(this.element,(0,R.$)("div.message-container"));if(n.setAttribute("aria-hidden","true"),n.appendChild(this.getBannerMessage(e.message)),this.messageActionsContainer=(0,R.BC)(this.element,(0,R.$)("div.message-actions-container")),e.actions)for(const t of e.actions)this._register(this.instantiationService.createInstance(Q,this.messageActionsContainer,{...t,tabIndex:-1},{}));const o=(0,R.BC)(this.element,(0,R.$)("div.action-container"));this.actionBar=this._register(new P.E(o)),this.actionBar.push(this._register(new O.rc("banner.close","Close Banner",Y.L.asClassName(Z.$_),!0,(()=>{"function"==typeof e.onClose&&e.onClose()}))),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};te=X([J(0,B._Y)],te);var ie=i(3765),ne=i(85753),oe=i(73027),se=i(84657),re=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},ae=function(e,t){return function(i,n){t(i,n,e)}};const le=(0,Z.pU)("extensions-warning-message",o.W.warning,ie.k("warningIcon","Icon shown with a warning message in the extensions editor."));let de=class extends r.jG{constructor(e,t,i,n){super(),this._editor=e,this._editorWorkerService=t,this._workspaceTrustService=i,this._highlighter=null,this._bannerClosed=!1,this._updateState=e=>{if(e&&e.hasMore){if(this._bannerClosed)return;const t=Math.max(e.ambiguousCharacterCount,e.nonBasicAsciiCharacterCount,e.invisibleCharacterCount);let i;if(e.nonBasicAsciiCharacterCount>=t)i={message:ie.k("unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters","This document contains many non-basic ASCII unicode characters"),command:new Ce};else if(e.ambiguousCharacterCount>=t)i={message:ie.k("unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters","This document contains many ambiguous unicode characters"),command:new we};else{if(!(e.invisibleCharacterCount>=t))throw new Error("Unreachable");i={message:ie.k("unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters","This document contains many invisible unicode characters"),command:new ye}}this._bannerController.show({id:"unicodeHighlightBanner",message:i.message,icon:le,actions:[{label:i.command.shortLabel,href:`command:${i.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(n.createInstance(ee,e)),this._register(this._editor.onDidChangeModel((()=>{this._bannerClosed=!1,this._updateHighlighter()}))),this._options=e.getOption(126),this._register(i.onDidChangeTrust((e=>{this._updateHighlighter()}))),this._register(e.onDidChangeConfiguration((t=>{t.hasChanged(126)&&(this._options=e.getOption(126),this._updateHighlighter())}))),this._updateHighlighter()}dispose(){this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),super.dispose()}_updateHighlighter(){if(this._updateState(null),this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),!this._editor.hasModel())return;const e=function(e,t){return{nonBasicASCII:t.nonBasicASCII===S.XR?!e:t.nonBasicASCII,ambiguousCharacters:t.ambiguousCharacters,invisibleCharacters:t.invisibleCharacters,includeComments:t.includeComments===S.XR?!e:t.includeComments,includeStrings:t.includeStrings===S.XR?!e:t.includeStrings,allowedCharacters:t.allowedCharacters,allowedLocales:t.allowedLocales}}(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if([e.nonBasicASCII,e.ambiguousCharacters,e.invisibleCharacters].every((e=>!1===e)))return;const t={nonBasicASCII:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments,includeStrings:e.includeStrings,allowedCodePoints:Object.keys(e.allowedCharacters).map((e=>e.codePointAt(0))),allowedLocales:Object.keys(e.allowedLocales).map((e=>"_os"===e?(new Intl.NumberFormat).resolvedOptions().locale:"_vscode"===e?a.BH:e))};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new ce(this._editor,t,this._updateState,this._editorWorkerService):this._highlighter=new he(this._editor,t,this._updateState)}getDecorationInfo(e){return this._highlighter?this._highlighter.getDecorationInfo(e):null}};de.ID="editor.contrib.unicodeHighlighter",de=re([ae(1,D.w),ae(2,se.L),ae(3,B._Y)],de);let ce=class extends r.jG{constructor(e,t,i,o){super(),this._editor=e,this._options=t,this._updateState=i,this._editorWorkerService=o,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new n.uC((()=>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())return void this._decorations.clear();const e=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then((t=>{if(this._model.isDisposed())return;if(this._model.getVersionId()!==e)return;this._updateState(t);const i=[];if(!t.hasMore)for(const e of t.ranges)i.push({range:e,options:ve.instance.getDecorationFromOptions(this._options)});this._decorations.set(i)}))}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel();return(0,I.GN)(t,e)?{reason:fe(t.getValueInRange(e.range),this._options),inComment:(0,I.a6)(t,e),inString:(0,I.wc)(t,e)}:null}};ce=re([ae(3,D.w)],ce);class he extends r.jG{constructor(e,t,i){super(),this._editor=e,this._options=t,this._updateState=i,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new n.uC((()=>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())return void this._decorations.clear();const e=this._editor.getVisibleRanges(),t=[],i={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(const t of e){const e=L.P.computeUnicodeHighlights(this._model,this._options,t);for(const t of e.ranges)i.ranges.push(t);i.ambiguousCharacterCount+=i.ambiguousCharacterCount,i.invisibleCharacterCount+=i.invisibleCharacterCount,i.nonBasicAsciiCharacterCount+=i.nonBasicAsciiCharacterCount,i.hasMore=i.hasMore||e.hasMore}if(!i.hasMore)for(const e of i.ranges)t.push({range:e,options:ve.instance.getDecorationFromOptions(this._options)});this._updateState(i),this._decorations.set(t)}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel(),i=t.getValueInRange(e.range);return(0,I.GN)(t,e)?{reason:fe(i,this._options),inComment:(0,I.a6)(t,e),inString:(0,I.wc)(t,e)}:null}}const ue=ie.k("unicodeHighlight.configureUnicodeHighlightOptions","Configure Unicode Highlight Options");let ge=class{constructor(e,t,i){this._editor=e,this._languageService=t,this._openerService=i,this.hoverOrdinal=5}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];const i=this._editor.getModel(),n=this._editor.getContribution(de.ID);if(!n)return[];const o=[],r=new Set;let a=300;for(const e of t){const t=n.getDecorationInfo(e);if(!t)continue;const d=i.getValueInRange(e.range).codePointAt(0),c=me(d);let h;switch(t.reason.kind){case 0:h=(0,l.aC)(t.reason.confusableWith)?ie.k("unicodeHighlight.characterIsAmbiguousASCII","The character {0} could be confused with the ASCII character {1}, which is more common in source code.",c,me(t.reason.confusableWith.codePointAt(0))):ie.k("unicodeHighlight.characterIsAmbiguous","The character {0} could be confused with the character {1}, which is more common in source code.",c,me(t.reason.confusableWith.codePointAt(0)));break;case 1:h=ie.k("unicodeHighlight.characterIsInvisible","The character {0} is invisible.",c);break;case 2:h=ie.k("unicodeHighlight.characterIsNonBasicAscii","The character {0} is not a basic ASCII character.",c)}if(r.has(h))continue;r.add(h);const u={codePoint:d,reason:t.reason,inComment:t.inComment,inString:t.inString},g=ie.k("unicodeHighlight.adjustSettings","Adjust settings"),p=`command:${ke.ID}?${encodeURIComponent(JSON.stringify(u))}`,m=new s.Bc("",!0).appendMarkdown(h).appendText(" ").appendLink(p,g,ue);o.push(new M.eH(this,e.range,[m],!1,a++))}return o}renderHoverParts(e,t){return(0,M.fm)(e,t,this._editor,this._languageService,this._openerService)}getAccessibleContent(e){return e.contents.map((e=>e.value)).join("\n")}};function pe(e){return`U+${e.toString(16).padStart(4,"0")}`}function me(e){let t=`\`${pe(e)}\``;return l.y_.isInvisibleCharacter(e)||(t+=` "${function(e){return 96===e?"`` ` ``":"`"+String.fromCodePoint(e)+"`"}(e)}"`),t}function fe(e,t){return L.P.computeUnicodeHighlightReason(e,t)}ge=re([ae(1,E.L),ae(2,j.C)],ge);class ve{constructor(){this.map=new Map}getDecorationFromOptions(e){return this.getDecoration(!e.includeComments,!e.includeStrings)}getDecoration(e,t){const i=`${e}${t}`;let n=this.map.get(i);return n||(n=x.kI.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:e,hideInStringTokens:t}),this.map.set(i,n)),n}}ve.instance=new ve;class _e extends k.ks{constructor(){super({id:we.ID,label:ie.k("action.unicodeHighlight.disableHighlightingInComments","Disable highlighting of characters in comments"),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=ie.k("unicodeHighlight.disableHighlightingInComments.shortLabel","Disable Highlight In Comments")}async run(e,t,i){const n=null==e?void 0:e.get(ne.pG);n&&this.runAction(n)}async runAction(e){await e.updateValue(S.Of.includeComments,!1,2)}}class be extends k.ks{constructor(){super({id:we.ID,label:ie.k("action.unicodeHighlight.disableHighlightingInStrings","Disable highlighting of characters in strings"),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=ie.k("unicodeHighlight.disableHighlightingInStrings.shortLabel","Disable Highlight In Strings")}async run(e,t,i){const n=null==e?void 0:e.get(ne.pG);n&&this.runAction(n)}async runAction(e){await e.updateValue(S.Of.includeStrings,!1,2)}}class we extends k.ks{constructor(){super({id:we.ID,label:ie.k("action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters","Disable highlighting of ambiguous characters"),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=ie.k("unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel","Disable Ambiguous Highlight")}async run(e,t,i){const n=null==e?void 0:e.get(ne.pG);n&&this.runAction(n)}async runAction(e){await e.updateValue(S.Of.ambiguousCharacters,!1,2)}}we.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters";class ye extends k.ks{constructor(){super({id:ye.ID,label:ie.k("action.unicodeHighlight.disableHighlightingOfInvisibleCharacters","Disable highlighting of invisible characters"),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=ie.k("unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel","Disable Invisible Highlight")}async run(e,t,i){const n=null==e?void 0:e.get(ne.pG);n&&this.runAction(n)}async runAction(e){await e.updateValue(S.Of.invisibleCharacters,!1,2)}}ye.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters";class Ce extends k.ks{constructor(){super({id:Ce.ID,label:ie.k("action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters","Disable highlighting of non basic ASCII characters"),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=ie.k("unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel","Disable Non ASCII Highlight")}async run(e,t,i){const n=null==e?void 0:e.get(ne.pG);n&&this.runAction(n)}async runAction(e){await e.updateValue(S.Of.nonBasicASCII,!1,2)}}Ce.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters";class ke extends k.ks{constructor(){super({id:ke.ID,label:ie.k("action.unicodeHighlight.showExcludeOptions","Show Exclude Options"),alias:"Show Exclude Options",precondition:void 0})}async run(e,t,i){const{codePoint:n,reason:o,inString:s,inComment:r}=i,a=String.fromCodePoint(n),d=e.get(oe.GK),c=e.get(ne.pG),h=[];if(0===o.kind)for(const e of o.notAmbiguousInLocales)h.push({label:ie.k("unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',e),run:async()=>{Se(c,[e])}});if(h.push({label:function(e){return l.y_.isInvisibleCharacter(e)?ie.k("unicodeHighlight.excludeInvisibleCharFromBeingHighlighted","Exclude {0} (invisible character) from being highlighted",pe(e)):ie.k("unicodeHighlight.excludeCharFromBeingHighlighted","Exclude {0} from being highlighted",`${pe(e)} "${a}"`)}(n),run:()=>async function(e,t){const i=e.getValue(S.Of.allowedCharacters);let n;n="object"==typeof i&&i?i:{};for(const e of t)n[String.fromCodePoint(e)]=!0;await e.updateValue(S.Of.allowedCharacters,n,2)}(c,[n])}),r){const e=new _e;h.push({label:e.label,run:async()=>e.runAction(c)})}else if(s){const e=new be;h.push({label:e.label,run:async()=>e.runAction(c)})}if(0===o.kind){const e=new we;h.push({label:e.label,run:async()=>e.runAction(c)})}else if(1===o.kind){const e=new ye;h.push({label:e.label,run:async()=>e.runAction(c)})}else if(2===o.kind){const e=new Ce;h.push({label:e.label,run:async()=>e.runAction(c)})}else!function(e){throw new Error(`Unexpected value: ${e}`)}(o);const u=await d.pick(h,{title:ue});u&&await u.run()}}async function Se(e,t){var i;const n=null===(i=e.inspect(S.Of.allowedLocales).user)||void 0===i?void 0:i.value;let o;o="object"==typeof n&&n?Object.assign({},n):{};for(const e of t)o[e]=!0;await e.updateValue(S.Of.allowedLocales,o,2)}ke.ID="editor.action.unicodeHighlight.showExcludeOptions",(0,k.Fl)(we),(0,k.Fl)(ye),(0,k.Fl)(Ce),(0,k.Fl)(ke),(0,k.HW)(de.ID,de,1),N.B2.register(ge)},98690:(e,t,i)=>{"use strict";i.r(t),i.d(t,{UnusualLineTerminatorsDetector:()=>h});var n=i(10998),o=i(22467),s=i(50946),r=i(87301),a=i(3765),l=i(94535),d=function(e,t){return function(i,n){t(i,n,e)}};const c="ignoreUnusualLineTerminators";let h=class extends n.jG{constructor(e,t,i){super(),this._editor=e,this._dialogService=t,this._codeEditorService=i,this._isPresentingDialog=!1,this._config=this._editor.getOption(127),this._register(this._editor.onDidChangeConfiguration((e=>{e.hasChanged(127)&&(this._config=this._editor.getOption(127),this._checkForUnusualLineTerminators())}))),this._register(this._editor.onDidChangeModel((()=>{this._checkForUnusualLineTerminators()}))),this._register(this._editor.onDidChangeModelContent((e=>{e.isUndoing||this._checkForUnusualLineTerminators()}))),this._checkForUnusualLineTerminators()}async _checkForUnusualLineTerminators(){if("off"===this._config)return;if(!this._editor.hasModel())return;const e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators())return;const t=function(e,t){return e.getModelProperty(t.uri,c)}(this._codeEditorService,e);if(!0===t)return;if(this._editor.getOption(92))return;if("auto"===this._config)return void e.removeUnusualLineTerminators(this._editor.getSelections());if(this._isPresentingDialog)return;let i;try{this._isPresentingDialog=!0,i=await this._dialogService.confirm({title:a.k("unusualLineTerminators.title","Unusual Line Terminators"),message:a.k("unusualLineTerminators.message","Detected unusual line terminators"),detail:a.k("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`.",(0,o.P8)(e.uri)),primaryButton:a.k({key:"unusualLineTerminators.fix",comment:["&& denotes a mnemonic"]},"&&Remove Unusual Line Terminators"),cancelButton:a.k("unusualLineTerminators.ignore","Ignore")})}finally{this._isPresentingDialog=!1}i.confirmed?e.removeUnusualLineTerminators(this._editor.getSelections()):function(e,t,i){e.setModelProperty(t.uri,c,!0)}(this._codeEditorService,e)}};h.ID="editor.contrib.unusualLineTerminatorsDetector",h=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([d(1,l.X),d(2,r.T)],h),(0,s.HW)(h.ID,h,1)},80494:(e,t,i)=>{"use strict";i.d(t,{P:()=>T,v:()=>R});var n=i(85072),o=i.n(n),s=i(97825),r=i.n(s),a=i(77659),l=i.n(a),d=i(55056),c=i.n(d),h=i(10540),u=i.n(h),g=i(41113),p=i.n(g),m=i(19803),f={};f.styleTagTransform=p(),f.setAttributes=c(),f.insert=l().bind(null,"head"),f.domAPI=r(),f.insertStyleElement=u(),o()(m.A,f),m.A&&m.A.locals&&m.A.locals;var v=i(66055),_=i(74774),b=i(47317),w=i(3765),y=i(70559),C=i(89044);const k=(0,y.x1A)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},w.k("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);(0,y.x1A)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},w.k("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),(0,y.x1A)("editor.wordHighlightTextBackground",k,w.k("wordHighlightText","Background color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0);const S=(0,y.x1A)("editor.wordHighlightBorder",{light:null,dark:null,hcDark:y.buw,hcLight:y.buw},w.k("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable."));(0,y.x1A)("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:y.buw,hcLight:y.buw},w.k("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),(0,y.x1A)("editor.wordHighlightTextBorder",S,w.k("wordHighlightTextBorder","Border color of a textual occurrence for a symbol."));const x=(0,y.x1A)("editorOverviewRuler.wordHighlightForeground","#A0A0A0CC",w.k("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),L=(0,y.x1A)("editorOverviewRuler.wordHighlightStrongForeground","#C0A0C0CC",w.k("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),D=(0,y.x1A)("editorOverviewRuler.wordHighlightTextForeground",y.z5H,w.k("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),E=_.kI.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:(0,C.Yf)(L),position:v.A5.Center},minimap:{color:(0,C.Yf)(y.Xp1),position:1}}),I=_.kI.register({description:"word-highlight-text",stickiness:1,className:"wordHighlightText",overviewRuler:{color:(0,C.Yf)(D),position:v.A5.Center},minimap:{color:(0,C.Yf)(y.Xp1),position:1}}),N=_.kI.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",overviewRuler:{color:(0,C.Yf)(y.z5H),position:v.A5.Center},minimap:{color:(0,C.Yf)(y.Xp1),position:1}}),M=_.kI.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"}),A=_.kI.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:(0,C.Yf)(x),position:v.A5.Center},minimap:{color:(0,C.Yf)(y.Xp1),position:1}});function T(e){return e===b.Kb.Write?E:e===b.Kb.Text?I:A}function R(e){return e?M:N}(0,C.zy)(((e,t)=>{const i=e.getColor(y.QwA);i&&t.addRule(`.monaco-editor .selectionHighlight { background-color: ${i.transparent(.5)}; }`)}))},60980:(e,t,i)=>{"use strict";i.r(t),i.d(t,{WordHighlighterContribution:()=>P,getOccurrencesAcrossMultipleModels:()=>I,getOccurrencesAtPosition:()=>E});var n,o,s=i(3765),r=i(13338),a=i(9009),l=i(65958),d=i(78903),c=i(94327),h=i(10998),u=i(66638),g=i(50946),p=i(87301),m=i(28061),f=i(38122),v=i(47317),_=i(66055),b=i(52230),w=i(80494),y=i(31540),C=i(13072),k=i(27992),S=i(74403),x=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},L=function(e,t){return function(i,n){t(i,n,e)}};const D=new y.N1("hasWordHighlights",!1);function E(e,t,i,n){const o=e.ordered(t);return(0,l.$1)(o.map((e=>()=>Promise.resolve(e.provideDocumentHighlights(t,i,n)).then(void 0,c.M_))),r.EI).then((e=>{if(e){const i=new k.fT;return i.set(t.uri,e),i}return new k.fT}))}function I(e,t,i,n,o,s){const r=e.ordered(t);return(0,l.$1)(r.map((e=>()=>{const n=s.filter((e=>(0,_.vd)(e))).filter((t=>(0,S.f)(e.selector,t.uri,t.getLanguageId(),!0,void 0,void 0)>0));return Promise.resolve(e.provideMultiDocumentHighlights(t,i,n,o)).then(void 0,c.M_)})),(e=>e instanceof k.fT&&e.size>0))}class N{constructor(e,t,i){this._model=e,this._selection=t,this._wordSeparators=i,this._wordRange=this._getCurrentWordRange(e,t),this._result=null}get result(){return this._result||(this._result=(0,l.SS)((e=>this._compute(this._model,this._selection,this._wordSeparators,e)))),this._result}_getCurrentWordRange(e,t){const i=e.getWordAtPosition(t.getPosition());return i?new m.Q(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):null}isValid(e,t,i){const n=t.startLineNumber,o=t.startColumn,s=t.endColumn,r=this._getCurrentWordRange(e,t);let a=Boolean(this._wordRange&&this._wordRange.equalsRange(r));for(let e=0,t=i.length;!a&&e=s&&(a=!0)}return a}cancel(){this.result.cancel()}}class M extends N{constructor(e,t,i,n){super(e,t,i),this._providers=n}_compute(e,t,i,n){return E(this._providers,e,t.getPosition(),n).then((e=>e||new k.fT))}}class A extends N{constructor(e,t,i,n,o){super(e,t,i),this._providers=n,this._otherModels=o}_compute(e,t,i,n){return I(this._providers,e,t.getPosition(),0,n,this._otherModels).then((e=>e||new k.fT))}}class T extends N{constructor(e,t,i,n,o){super(e,t,n),this._otherModels=o,this._selectionIsEmpty=t.isEmpty(),this._word=i}_compute(e,t,i,n){return(0,l.wR)(250,n).then((()=>{const n=new k.fT;let o;if(o=this._word?this._word:e.getWordAtPosition(t.getPosition()),!o)return new k.fT;const s=[e,...this._otherModels];for(const e of s){if(e.isDisposed())continue;const t=e.findMatches(o.word,!0,!1,!0,i,!1).map((e=>({range:e.range,kind:v.Kb.Text})));t&&n.set(e.uri,t)}return n}))}isValid(e,t,i){const n=t.isEmpty();return this._selectionIsEmpty===n&&super.isValid(e,t,i)}}(0,g.ke)("_executeDocumentHighlights",(async(e,t,i)=>{const n=e.get(b.u),o=await E(n.documentHighlightProvider,t,i,d.XO.None);return null==o?void 0:o.get(t.uri)}));let R=n=class{constructor(e,t,i,o,s){this.toUnhook=new h.Cm,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=new k.fT,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this.providers=t,this.multiDocumentProviders=i,this.codeEditorService=s,this._hasWordHighlights=D.bindTo(o),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(81),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition((e=>{this._ignorePositionChangeEvent||"off"!==this.occurrencesHighlight&&this._onPositionChanged(e)}))),this.toUnhook.add(e.onDidFocusEditorText((e=>{"off"!==this.occurrencesHighlight&&(this.workerRequest||this._run())}))),this.toUnhook.add(e.onDidChangeModelContent((e=>{this._stopAll()}))),this.toUnhook.add(e.onDidChangeModel((e=>{!e.newModelUrl&&e.oldModelUrl?this._stopSingular():n.query&&this._run()}))),this.toUnhook.add(e.onDidChangeConfiguration((e=>{const t=this.editor.getOption(81);this.occurrencesHighlight!==t&&(this.occurrencesHighlight=t,this._stopAll())}))),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,n.query&&this._run()}hasDecorations(){return this.decorations.length>0}restore(){"off"!==this.occurrencesHighlight&&this._run()}_getSortedHighlights(){return this.decorations.getRanges().sort(m.Q.compareRangesUsingStarts)}moveNext(){const e=this._getSortedHighlights(),t=(e.findIndex((e=>e.containsPosition(this.editor.getPosition())))+1)%e.length,i=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(i.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(i);const n=this._getWord();if(n){const o=this.editor.getModel().getLineContent(i.startLineNumber);(0,a.xE)(`${o}, ${t+1} of ${e.length} for '${n.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){const e=this._getSortedHighlights(),t=(e.findIndex((e=>e.containsPosition(this.editor.getPosition())))-1+e.length)%e.length,i=e[t];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(i.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(i);const n=this._getWord();if(n){const o=this.editor.getModel().getLineContent(i.startLineNumber);(0,a.xE)(`${o}, ${t+1} of ${e.length} for '${n.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeSingleDecorations(){if(!this.editor.hasModel())return;const e=n.storedDecorations.get(this.editor.getModel().uri);e&&(this.editor.removeDecorations(e),n.storedDecorations.delete(this.editor.getModel().uri),this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1)))}_removeAllDecorations(){const e=this.codeEditorService.listCodeEditors(),t=[];for(const i of e){if(!i.hasModel())continue;const e=n.storedDecorations.get(i.getModel().uri);if(!e)continue;i.removeDecorations(e),t.push(i.getModel().uri);const o=P.get(i);(null==o?void 0:o.wordHighlighter)&&o.wordHighlighter.decorations.length>0&&(o.wordHighlighter.decorations.clear(),o.wordHighlighter.workerRequest=null,o.wordHighlighter._hasWordHighlights.set(!1))}for(const e of t)n.storedDecorations.delete(e)}_stopSingular(){var e,t,i,o;this._removeSingleDecorations(),this.editor.hasTextFocus()&&((null===(e=this.editor.getModel())||void 0===e?void 0:e.uri.scheme)!==C.ny.vscodeNotebookCell&&(null===(i=null===(t=n.query)||void 0===t?void 0:t.modelInfo)||void 0===i?void 0:i.model.uri.scheme)!==C.ny.vscodeNotebookCell?(n.query=null,this._run()):(null===(o=n.query)||void 0===o?void 0:o.modelInfo)&&(n.query.modelInfo=null)),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_stopAll(){this._removeAllDecorations(),-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(e){var t;"off"===this.occurrencesHighlight||3!==e.reason&&(null===(t=this.editor.getModel())||void 0===t?void 0:t.uri.scheme)!==C.ny.vscodeNotebookCell?this._stopAll():this._run()}_getWord(){const e=this.editor.getSelection(),t=e.startLineNumber,i=e.startColumn;return this.model.isDisposed()?null:this.model.getWordAtPosition({lineNumber:t,column:i})}getOtherModelsToHighlight(e){if(!e)return[];if(e.uri.scheme===C.ny.vscodeNotebookCell){const t=[],i=this.codeEditorService.listCodeEditors();for(const n of i){const i=n.getModel();i&&i!==e&&i.uri.scheme===C.ny.vscodeNotebookCell&&t.push(i)}return t}const t=[],i=this.codeEditorService.listCodeEditors();for(const n of i){if(!(0,u.Np)(n))continue;const i=n.getModel();i&&e===i.modified&&t.push(i.modified)}if(t.length)return t;if("singleFile"===this.occurrencesHighlight)return[];for(const n of i){const i=n.getModel();i&&i!==e&&t.push(i)}return t}_run(){var e;let t;if(this.editor.hasTextFocus()){const e=this.editor.getSelection();if(!e||e.startLineNumber!==e.endLineNumber)return n.query=null,void this._stopAll();const i=e.startColumn,o=e.endColumn,s=this._getWord();if(!s||s.startColumn>i||s.endColumn{t===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=e||[],this._beginRenderDecorations())}),c.dz)}}computeWithModel(e,t,i,n){return n.length?function(e,t,i,n,o,s){return e.has(t)?new A(t,i,o,e,s):new T(t,i,n,o,s)}(this.multiDocumentProviders,e,t,i,this.editor.getOption(132),n):function(e,t,i,n,o){return e.has(t)?new M(t,i,o,e):new T(t,i,n,o,[])}(this.providers,e,t,i,this.editor.getOption(132))}_beginRenderDecorations(){const e=(new Date).getTime(),t=this.lastCursorPositionChangeTime+250;e>=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout((()=>{this.renderDecorations()}),t-e)}renderDecorations(){var e,t,i;this.renderDecorationsTimer=-1;const o=this.codeEditorService.listCodeEditors();for(const s of o){const o=P.get(s);if(!o)continue;const r=[],a=null===(e=s.getModel())||void 0===e?void 0:e.uri;if(a&&this.workerRequestValue.has(a)){const e=n.storedDecorations.get(a),l=this.workerRequestValue.get(a);if(l)for(const e of l)e.range&&r.push({range:e.range,options:(0,w.P)(e.kind)});let d=[];s.changeDecorations((t=>{d=t.deltaDecorations(null!=e?e:[],r)})),n.storedDecorations=n.storedDecorations.set(a,d),r.length>0&&(null===(t=o.wordHighlighter)||void 0===t||t.decorations.set(r),null===(i=o.wordHighlighter)||void 0===i||i._hasWordHighlights.set(!0))}}}dispose(){this._stopSingular(),this.toUnhook.dispose()}};R.storedDecorations=new k.fT,R.query=null,R=n=x([L(4,p.T)],R);let P=o=class extends h.jG{static get(e){return e.getContribution(o.ID)}constructor(e,t,i,n){super(),this._wordHighlighter=null;const o=()=>{e.hasModel()&&!e.getModel().isTooLargeForTokenization()&&(this._wordHighlighter=new R(e,i.documentHighlightProvider,i.multiDocumentHighlightProvider,t,n))};this._register(e.onDidChangeModel((e=>{this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),o()}))),o()}get wordHighlighter(){return this._wordHighlighter}saveViewState(){return!(!this._wordHighlighter||!this._wordHighlighter.hasDecorations())}moveNext(){var e;null===(e=this._wordHighlighter)||void 0===e||e.moveNext()}moveBack(){var e;null===(e=this._wordHighlighter)||void 0===e||e.moveBack()}restoreViewState(e){this._wordHighlighter&&e&&this._wordHighlighter.restore()}dispose(){this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),super.dispose()}};P.ID="editor.contrib.wordHighlighter",P=o=x([L(1,y.fN),L(2,b.u),L(3,p.T)],P);class O extends g.ks{constructor(e,t){super(t),this._isNext=e}run(e,t){const i=P.get(t);i&&(this._isNext?i.moveNext():i.moveBack())}}class F extends g.ks{constructor(){super({id:"editor.action.wordHighlight.trigger",label:s.k("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:D.toNegated(),kbOpts:{kbExpr:f.R.editorTextFocus,primary:0,weight:100}})}run(e,t,i){const n=P.get(t);n&&n.restoreViewState(!0)}}(0,g.HW)(P.ID,P,0),(0,g.Fl)(class extends O{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:s.k("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:D,kbOpts:{kbExpr:f.R.editorTextFocus,primary:65,weight:100}})}}),(0,g.Fl)(class extends O{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:s.k("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:D,kbOpts:{kbExpr:f.R.editorTextFocus,primary:1089,weight:100}})}}),(0,g.Fl)(F)},21600:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CursorWordAccessibilityLeft:()=>D,CursorWordAccessibilityLeftSelect:()=>E,CursorWordAccessibilityRight:()=>P,CursorWordAccessibilityRightSelect:()=>O,CursorWordEndLeft:()=>C,CursorWordEndLeftSelect:()=>x,CursorWordEndRight:()=>N,CursorWordEndRightSelect:()=>T,CursorWordLeft:()=>k,CursorWordLeftSelect:()=>L,CursorWordRight:()=>M,CursorWordRightSelect:()=>R,CursorWordStartLeft:()=>y,CursorWordStartLeftSelect:()=>S,CursorWordStartRight:()=>I,CursorWordStartRightSelect:()=>A,DeleteInsideWord:()=>K,DeleteWordCommand:()=>F,DeleteWordEndLeft:()=>V,DeleteWordEndRight:()=>U,DeleteWordLeft:()=>z,DeleteWordLeftCommand:()=>B,DeleteWordRight:()=>$,DeleteWordRightCommand:()=>W,DeleteWordStartLeft:()=>H,DeleteWordStartRight:()=>j,MoveWordCommand:()=>_,WordLeftCommand:()=>b,WordRightCommand:()=>w});var n=i(50946),o=i(66316),s=i(66476),r=i(29895),a=i(89673),l=i(82862),d=i(15365),c=i(28061),h=i(93702),u=i(38122),g=i(52394),p=i(3765),m=i(53909),f=i(31540),v=i(13034);class _ extends n.DX{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){if(!t.hasModel())return;const n=(0,l.i)(t.getOption(132),t.getOption(131)),o=t.getModel(),s=t.getSelections(),a=s.length>1,c=s.map((e=>{const t=new d.y(e.positionLineNumber,e.positionColumn),i=this._move(n,o,t,this._wordNavigationType,a);return this._moveTo(e,i,this._inSelectionMode)}));if(o.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",3,c.map((e=>r.MF.fromModelSelection(e)))),1===c.length){const e=new d.y(c[0].positionLineNumber,c[0].positionColumn);t.revealPosition(e,0)}}_moveTo(e,t,i){return i?new h.L(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new h.L(t.lineNumber,t.column,t.lineNumber,t.column)}}class b extends _{_move(e,t,i,n,o){return a.z.moveWordLeft(e,t,i,n,o)}}class w extends _{_move(e,t,i,n,o){return a.z.moveWordRight(e,t,i,n)}}class y extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}class C extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}class k extends b{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:f.M$.and(u.R.textInputFocus,null===(e=f.M$.and(m.f,v.nd))||void 0===e?void 0:e.negate()),primary:2063,mac:{primary:527},weight:100}})}}class S extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}class x extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}class L extends b{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:f.M$.and(u.R.textInputFocus,null===(e=f.M$.and(m.f,v.nd))||void 0===e?void 0:e.negate()),primary:3087,mac:{primary:1551},weight:100}})}}class D extends b{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(e,t,i,n,o){return super._move((0,l.i)(s.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n,o)}}class E extends b{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(e,t,i,n,o){return super._move((0,l.i)(s.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n,o)}}class I extends w{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}class N extends w{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:f.M$.and(u.R.textInputFocus,null===(e=f.M$.and(m.f,v.nd))||void 0===e?void 0:e.negate()),primary:2065,mac:{primary:529},weight:100}})}}class M extends w{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}class A extends w{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}class T extends w{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:f.M$.and(u.R.textInputFocus,null===(e=f.M$.and(m.f,v.nd))||void 0===e?void 0:e.negate()),primary:3089,mac:{primary:1553},weight:100}})}}class R extends w{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}class P extends w{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,t,i,n,o){return super._move((0,l.i)(s.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n,o)}}class O extends w{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,t,i,n,o){return super._move((0,l.i)(s.qB.wordSeparators.defaultValue,e.intlSegmenterLocales),t,i,n,o)}}class F extends n.DX{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){const n=e.get(g.JZ);if(!t.hasModel())return;const s=(0,l.i)(t.getOption(132),t.getOption(131)),r=t.getModel(),a=t.getSelections(),d=t.getOption(6),c=t.getOption(11),h=n.getLanguageConfiguration(r.getLanguageId()).getAutoClosingPairs(),u=t._getViewModel(),p=a.map((e=>{const i=this._delete({wordSeparators:s,model:r,selection:e,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(9),autoClosingBrackets:d,autoClosingQuotes:c,autoClosingPairs:h,autoClosedCharacters:u.getCursorAutoClosedCharacters()},this._wordNavigationType);return new o.iu(i,"")}));t.pushUndoStop(),t.executeCommands(this.id,p),t.pushUndoStop()}}class B extends F{_delete(e,t){return a.z.deleteWordLeft(e,t)||new c.Q(1,1,1,1)}}class W extends F{_delete(e,t){const i=a.z.deleteWordRight(e,t);if(i)return i;const n=e.model.getLineCount(),o=e.model.getLineMaxColumn(n);return new c.Q(n,o,n,o)}}class H extends B{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:u.R.writable})}}class V extends B{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:u.R.writable})}}class z extends B{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:u.R.writable,kbOpts:{kbExpr:u.R.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}class j extends W{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:u.R.writable})}}class U extends W{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:u.R.writable})}}class $ extends W{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:u.R.writable,kbOpts:{kbExpr:u.R.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}}class K extends n.ks{constructor(){super({id:"deleteInsideWord",precondition:u.R.writable,label:p.k("deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(e,t,i){if(!t.hasModel())return;const n=(0,l.i)(t.getOption(132),t.getOption(131)),s=t.getModel(),r=t.getSelections().map((e=>{const t=a.z.deleteInsideWord(n,s,e);return new o.iu(t,"")}));t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop()}}(0,n.E_)(new y),(0,n.E_)(new C),(0,n.E_)(new k),(0,n.E_)(new S),(0,n.E_)(new x),(0,n.E_)(new L),(0,n.E_)(new I),(0,n.E_)(new N),(0,n.E_)(new M),(0,n.E_)(new A),(0,n.E_)(new T),(0,n.E_)(new R),(0,n.E_)(new D),(0,n.E_)(new E),(0,n.E_)(new P),(0,n.E_)(new O),(0,n.E_)(new H),(0,n.E_)(new V),(0,n.E_)(new z),(0,n.E_)(new j),(0,n.E_)(new U),(0,n.E_)(new $),(0,n.Fl)(K)},51302:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CursorWordPartLeft:()=>u,CursorWordPartLeftSelect:()=>g,CursorWordPartRight:()=>m,CursorWordPartRightSelect:()=>f,DeleteWordPartLeft:()=>d,DeleteWordPartRight:()=>c,WordPartLeftCommand:()=>h,WordPartRightCommand:()=>p});var n=i(50946),o=i(89673),s=i(28061),r=i(38122),a=i(21600),l=i(59715);class d extends a.DeleteWordCommand{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:r.R.writable,kbOpts:{kbExpr:r.R.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){return o.c.deleteWordPartLeft(e)||new s.Q(1,1,1,1)}}class c extends a.DeleteWordCommand{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:r.R.writable,kbOpts:{kbExpr:r.R.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){const i=o.c.deleteWordPartRight(e);if(i)return i;const n=e.model.getLineCount(),r=e.model.getLineMaxColumn(n);return new s.Q(n,r,n,r)}}class h extends a.MoveWordCommand{_move(e,t,i,n,s){return o.c.moveWordPartLeft(e,t,i,s)}}class u extends h{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:r.R.textInputFocus,primary:0,mac:{primary:783},weight:100}})}}l.w.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");class g extends h{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:r.R.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}l.w.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class p extends a.MoveWordCommand{_move(e,t,i,n,s){return o.c.moveWordPartRight(e,t,i)}}class m extends p{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:r.R.textInputFocus,primary:0,mac:{primary:785},weight:100}})}}class f extends p{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:r.R.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}}(0,n.E_)(new d),(0,n.E_)(new c),(0,n.E_)(new u),(0,n.E_)(new g),(0,n.E_)(new m),(0,n.E_)(new f)},57180:(e,t,i)=>{"use strict";i.r(t),i.d(t,{CancellationTokenSource:()=>Aa,Emitter:()=>Ta,KeyCode:()=>Ra,KeyMod:()=>Pa,MarkerSeverity:()=>Ha,MarkerTag:()=>Va,Position:()=>Oa,Range:()=>Fa,Selection:()=>Ba,SelectionDirection:()=>Wa,Token:()=>ja,Uri:()=>za,editor:()=>Ua,languages:()=>$a});var n=i(66476),o=i(93059),s=i(48877),r=i(10998),a=i(16844),l=i(37264),d=i(85072),c=i.n(d),h=i(97825),u=i.n(h),g=i(77659),p=i.n(g),m=i(55056),f=i.n(m),v=i(10540),_=i.n(v),b=i(41113),w=i.n(b),y=i(3614),C={};C.styleTagTransform=w(),C.setAttributes=f(),C.insert=p().bind(null,"head"),C.domAPI=u(),C.insertStyleElement=_(),c()(y.A,C),y.A&&y.A.locals&&y.A.locals;var k=i(41106),S=i(50946),x=i(87301),L=i(71386),D=i(7002);class E extends D.Z6{constructor(e,t,i){super(e,i.keepIdleModels||!1,i.label,t),this._foreignModuleId=i.moduleId,this._foreignModuleCreateData=i.createData||null,this._foreignModuleHost=i.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||"function"!=typeof this._foreignModuleHost[e])return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(e){return Promise.reject(e)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then((e=>{const t=this._foreignModuleHost?(0,L.V0)(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then((t=>{this._foreignModuleCreateData=null;const i=(t,i)=>e.fmr(t,i),n=(e,t)=>function(){const i=Array.prototype.slice.call(arguments,0);return t(e,i)},o={};for(const e of t)o[e]=n(e,i);return o}))}))),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then((e=>this.getProxy()))}}var I=i(84587),N=i(28060),M=i(12596),A=i(47317),T=i(77922),R=i(52394),P=i(54957),O=i(97036),F=i(66055),B=i(64830),W=i(42783),H=i(13021),V=i(57445),z=i(39723),j=i(11608);function U(e){return"string"==typeof e}function $(e){return!U(e)}function K(e){return!e}function q(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function G(e){return e.replace(/[&<>'"_]/g,"-")}function Q(e,t){return new Error(`${e.languageId}: ${t}`)}function Z(e,t,i,n,o){let s=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,(function(t,r,a,l,d,c,h,u,g){return K(a)?K(l)?!K(d)&&d0;){const t=e.tokenizer[i];if(t)return t;const n=i.lastIndexOf(".");i=n<0?null:i.substr(0,n)}return null}var X,J=i(85753);class ee{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new te(e,t);let i=te.getStackElementId(e);i.length>0&&(i+="|"),i+=t;let n=this._entries[i];return n||(n=new te(e,t),this._entries[i]=n,n)}}ee._INSTANCE=new ee(5);class te{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";for(;null!==e;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;null!==e&&null!==t;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t}equals(e){return te._equals(this,e)}push(e){return ee.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return ee.create(this.parent,e)}}class ie{constructor(e,t){this.languageId=e,this.state=t}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){return this.state.clone()===this.state?this:new ie(this.languageId,this.state)}}class ne{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(null!==t)return new oe(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new oe(e,t);const i=te.getStackElementId(e);let n=this._entries[i];return n||(n=new oe(e,null),this._entries[i]=n,n)}}ne._INSTANCE=new ne(5);class oe{constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:ne.create(this.stack,this.embeddedLanguageData)}equals(e){return e instanceof oe&&!!this.stack.equals(e.stack)&&(null===this.embeddedLanguageData&&null===e.embeddedLanguageData||null!==this.embeddedLanguageData&&null!==e.embeddedLanguageData&&this.embeddedLanguageData.equals(e.embeddedLanguageData))}}class se{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._languageId||(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new A.ou(e,t,this._languageId)))}nestedLanguageTokenize(e,t,i,n){const o=i.languageId,s=i.state,r=A.dG.get(o);if(!r)return this.enterLanguage(o),this.emit(n,""),s;const a=r.tokenize(e,t,s);if(0!==n)for(const e of a.tokens)this._tokens.push(new A.ou(e.offset+n,e.type,e.language));else this._tokens=this._tokens.concat(a.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,a.endState}finalize(e){return new A.$M(this._tokens,e)}}class re{constructor(e,t){this._languageService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,t){const i=1024|this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==i&&(this._lastTokenMetadata=i,this._tokens.push(e),this._tokens.push(i))}static _merge(e,t,i){const n=null!==e?e.length:0,o=t.length,s=null!==i?i.length:0;if(0===n&&0===o&&0===s)return new Uint32Array(0);if(0===n&&0===o)return i;if(0===o&&0===s)return e;const r=new Uint32Array(n+o+s);null!==e&&r.set(e);for(let e=0;e{if(s)return;let t=!1;for(let i=0,n=e.changedLanguages.length;i{e.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))})))}getLoadStatus(){const e=[];for(const t in this._embeddedLanguages){const i=A.dG.get(t);if(i){if(i instanceof X){const t=i.getLoadStatus();!1===t.loaded&&e.push(t.promise)}}else A.dG.isResolved(t)||e.push(A.dG.getOrCreate(t))}return 0===e.length?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then((e=>{}))}}getInitialState(){const e=ee.create(null,this._lexer.start);return ne.create(e,null)}tokenize(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,O.$H)(this._languageId,i);const n=new se,o=this._tokenize(e,t,i,n);return n.finalize(o)}tokenizeEncoded(e,t,i){if(e.length>=this._maxTokenizationLineLength)return(0,O.Lh)(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),i);const n=new re(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),o=this._tokenize(e,t,i,n);return n.finalize(o)}_tokenize(e,t,i,n){return i.embeddedLanguageData?this._nestedTokenize(e,t,i,0,n):this._myTokenize(e,t,i,0,n)}_findLeavingNestedLanguageOffset(e,t){let i=this._lexer.tokenizer[t.stack.state];if(!i&&(i=Y(this._lexer,t.stack.state),!i))throw Q(this._lexer,"tokenizer state is not defined: "+t.stack.state);let n=-1,o=!1;for(const s of i){if(!$(s.action)||"@pop"!==s.action.nextEmbedded)continue;o=!0;let i=s.resolveRegex(t.stack.state);const r=i.source;if("^(?:"===r.substr(0,4)&&")"===r.substr(r.length-1,1)){const e=(i.ignoreCase?"i":"")+(i.unicode?"u":"");i=new RegExp(r.substr(4,r.length-5),e)}const a=e.search(i);-1===a||0!==a&&s.matchOnlyAtLineStart||(-1===n||a0&&o.nestedLanguageTokenize(r,!1,i.embeddedLanguageData,n);const a=e.substring(s);return this._myTokenize(a,t,i,n+s,o)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,i,n,o){o.enterLanguage(this._languageId);const s=e.length,r=t&&this._lexer.includeLF?e+"\n":e,a=r.length;let l=i.embeddedLanguageData,d=i.stack,c=0,h=null,u=!0;for(;u||c=a)break;u=!1;let e=this._lexer.tokenizer[v];if(!e&&(e=Y(this._lexer,v),!e))throw Q(this._lexer,"tokenizer state is not defined: "+v);const t=r.substr(c);for(const i of e)if((0===c||!i.matchOnlyAtLineStart)&&(_=t.match(i.resolveRegex(v)),_)){b=_[0],w=i.action;break}}if(_||(_=[""],b=""),w||(c=this._lexer.maxStack)throw Q(this._lexer,"maximum tokenizer stack size reached: ["+d.state+","+d.parent.state+",...]");d=d.push(v)}else if("@pop"===w.next){if(d.depth<=1)throw Q(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(y));d=d.pop()}else if("@popall"===w.next)d=d.popall();else{let e=Z(this._lexer,w.next,b,_,v);if("@"===e[0]&&(e=e.substr(1)),!Y(this._lexer,e))throw Q(this._lexer,"trying to set a next state '"+e+"' that is undefined in rule: "+this._safeRuleName(y));d=d.push(e)}}w.log&&"string"==typeof w.log&&(g=this._lexer,p=this._lexer.languageId+": "+Z(this._lexer,w.log,b,_,v),console.log(`${g.languageId}: ${p}`))}if(null===k)throw Q(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(y));const S=i=>{const s=this._languageService.getLanguageIdByLanguageName(i)||this._languageService.getLanguageIdByMimeType(i)||i,r=this._getNestedEmbeddedLanguageData(s);if(c0)throw Q(this._lexer,"groups cannot be nested: "+this._safeRuleName(y));if(_.length!==k.length+1)throw Q(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(y));let e=0;for(let t=1;t<_.length;t++)e+=_[t].length;if(e!==b.length)throw Q(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(y));h={rule:y,matches:_,groups:[]};for(let e=0;e=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(de=4,ce=J.pG,function(e,t){ce(e,t,de)})],ae);const he=(0,H.H)("standaloneColorizer",{createHTML:e=>e});class ue{static colorizeElement(e,t,i,n){const o=(n=n||{}).theme||"vs",s=n.mimeType||i.getAttribute("lang")||i.getAttribute("data-lang");if(!s)return console.error("Mode not detected"),Promise.resolve();const r=t.getLanguageIdByMimeType(s)||s;e.setTheme(o);const a=i.firstChild?i.firstChild.nodeValue:"";return i.className+=" "+o,this.colorize(t,a||"",r,n).then((e=>{var t;const n=null!==(t=null==he?void 0:he.createHTML(e))&&void 0!==t?t:e;i.innerHTML=n}),(e=>console.error(e)))}static async colorize(e,t,i,n){const o=e.languageIdCodec;let s=4;n&&"number"==typeof n.tabSize&&(s=n.tabSize),a.LU(t)&&(t=t.substr(1));const r=a.uz(t);if(!e.isRegisteredLanguageId(i))return ge(r,s,o);const l=await A.dG.getOrCreate(i);return l?function(e,t,i,n){return new Promise(((o,s)=>{const r=()=>{const a=function(e,t,i,n){let o=[],s=i.getInitialState();for(let r=0,a=e.length;r"),s=l.endState}return o.join("")}(e,t,i,n);if(i instanceof ae){const e=i.getLoadStatus();if(!1===e.loaded)return void e.promise.then(r,s)}o(a)};r()}))}(r,s,l,o):ge(r,s,o)}static colorizeLine(e,t,i,n,o=4){const s=j.qL.isBasicASCII(e,t),r=j.qL.containsRTL(e,s,i);return(0,z.Md)(new z.zL(!1,!0,e,!1,s,r,0,n,[],o,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(e,t,i=4){const n=e.getLineContent(t);e.tokenization.forceTokenization(t);const o=e.tokenization.getLineTokens(t).inflate();return this.colorizeLine(n,e.mightContainNonBasicASCII(),e.mightContainRTL(),o,i)}}function ge(e,t,i){let n=[];const o=new Uint32Array(2);o[0]=0,o[1]=33587200;for(let s=0,r=e.length;s")}return n.join("")}var pe=i(9009),me=i(6233),fe=i(22595),ve=i(14333),_e=i(13072),be=i(2106),we=i(85525),ye=i(89044);let Ce=class extends r.jG{constructor(e){super(),this._themeService=e,this._onWillCreateCodeEditor=this._register(new be.vl),this._onCodeEditorAdd=this._register(new be.vl),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new be.vl),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onWillCreateDiffEditor=this._register(new be.vl),this._onDiffEditorAdd=this._register(new be.vl),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new be.vl),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._codeEditorOpenHandlers=new we.w,this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._globalStyleSheet=null}willCreateCodeEditor(){this._onWillCreateCodeEditor.fire()}addCodeEditor(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)}removeCodeEditor(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)}listCodeEditors(){return Object.keys(this._codeEditors).map((e=>this._codeEditors[e]))}willCreateDiffEditor(){this._onWillCreateDiffEditor.fire()}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}listDiffEditors(){return Object.keys(this._diffEditors).map((e=>this._diffEditors[e]))}getFocusedCodeEditor(){let e=null;const t=this.listCodeEditors();for(const i of t){if(i.hasTextFocus())return i;i.hasWidgetFocus()&&(e=i)}return e}removeDecorationType(e){const t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach((t=>t.removeDecorationsByType(e)))))}setModelProperty(e,t,i){const n=e.toString();let o;this._modelProperties.has(n)?o=this._modelProperties.get(n):(o=new Map,this._modelProperties.set(n,o)),o.set(t,i)}getModelProperty(e,t){const i=e.toString();if(this._modelProperties.has(i))return this._modelProperties.get(i).get(t)}async openCodeEditor(e,t,i){for(const n of this._codeEditorOpenHandlers){const o=await n(e,t,i);if(null!==o)return o}return null}registerCodeEditorOpenHandler(e){const t=this._codeEditorOpenHandlers.unshift(e);return(0,r.s)(t)}};Ce=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([function(e,t){return function(i,n){t(i,n,e)}}(0,ye.Gy)],Ce);var ke=i(31540),Se=i(66726),xe=function(e,t){return function(i,n){t(i,n,e)}};let Le=class extends Ce{constructor(e,t){super(t),this._register(this.onCodeEditorAdd((()=>this._checkContextKey()))),this._register(this.onCodeEditorRemove((()=>this._checkContextKey()))),this._editorIsOpen=e.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this._register(this.registerCodeEditorOpenHandler((async(e,t,i)=>t?this.doOpenEditor(t,e):null)))}_checkContextKey(){let e=!1;for(const t of this.listCodeEditors())if(!t.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}doOpenEditor(e,t){if(!this.findModel(e,t.resource)){if(t.resource){const i=t.resource.scheme;if(i===_e.ny.http||i===_e.ny.https)return(0,ve.CE)(t.resource.toString()),e}return null}const i=t.options?t.options.selection:null;if(i)if("number"==typeof i.endLineNumber&&"number"==typeof i.endColumn)e.setSelection(i),e.revealRangeInCenter(i,1);else{const t={lineNumber:i.startLineNumber,column:i.startColumn};e.setPosition(t),e.revealPositionInCenter(t,1)}return e}findModel(e,t){const i=e.getModel();return i&&i.uri.toString()!==t.toString()?null:i}};Le=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([xe(0,ke.fN),xe(1,ye.Gy)],Le),(0,Se.v)(x.T,Le,0);var De=i(13338),Ee=i(82399);const Ie=(0,Ee.u1)("layoutService");var Ne=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Me=function(e,t){return function(i,n){t(i,n,e)}};let Ae=class{get mainContainer(){var e,t;return null!==(t=null===(e=(0,De.Fy)(this._codeEditorService.listCodeEditors()))||void 0===e?void 0:e.getContainerDomNode())&&void 0!==t?t:s.G.document.body}get activeContainer(){var e,t;const i=null!==(e=this._codeEditorService.getFocusedCodeEditor())&&void 0!==e?e:this._codeEditorService.getActiveCodeEditor();return null!==(t=null==i?void 0:i.getContainerDomNode())&&void 0!==t?t:this.mainContainer}get mainContainerDimension(){return ve.tG(this.mainContainer)}get activeContainerDimension(){return ve.tG(this.activeContainer)}get containers(){return(0,De.Yc)(this._codeEditorService.listCodeEditors().map((e=>e.getContainerDomNode())))}getContainer(){return this.activeContainer}whenContainerStylesLoaded(){}focus(){var e;null===(e=this._codeEditorService.getFocusedCodeEditor())||void 0===e||e.focus()}constructor(e){this._codeEditorService=e,this.onDidLayoutMainContainer=be.Jh.None,this.onDidLayoutActiveContainer=be.Jh.None,this.onDidLayoutContainer=be.Jh.None,this.onDidChangeActiveContainer=be.Jh.None,this.onDidAddContainer=be.Jh.None,this.mainContainerOffset={top:0,quickPickTop:0},this.activeContainerOffset={top:0,quickPickTop:0}}};Ae=Ne([Me(0,x.T)],Ae);let Te=class extends Ae{get mainContainer(){return this._container}constructor(e,t){super(t),this._container=e}};Te=Ne([Me(1,x.T)],Te),(0,Se.v)(Ie,Ae,1);var Re=i(94327),Pe=i(66459),Oe=i(3765),Fe=i(94535),Be=i(29879),We=i(38803),He=function(e,t){return function(i,n){t(i,n,e)}};function Ve(e){return e.scheme===_e.ny.file?e.fsPath:e.path}let ze=0;class je{constructor(e,t,i,n,o,s,r){this.id=++ze,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=i,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=n,this.groupOrder=o,this.sourceId=s,this.sourceOrder=r,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class Ue{constructor(e,t){this.resourceLabel=e,this.reason=t}}class $e{constructor(){this.elements=new Map}createMessage(){const e=[],t=[];for(const[,i]of this.elements)(0===i.reason?e:t).push(i.resourceLabel);const i=[];return e.length>0&&i.push(Oe.k({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&i.push(Oe.k({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),i.join("\n")}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class Ke{constructor(e,t,i,n,o,s,r){this.id=++ze,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=i,this.groupId=n,this.groupOrder=o,this.sourceId=s,this.sourceOrder=r,this.removedResources=null,this.invalidatedResources=null}canSplit(){return"function"==typeof this.actual.split}removeResource(e,t,i){this.removedResources||(this.removedResources=new $e),this.removedResources.has(t)||this.removedResources.set(t,new Ue(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),0===this.invalidatedResources.size&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new $e),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new Ue(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class qe{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const e of this._past)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);for(const e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){const e=[];e.push(`* ${this.strResource}:`);for(let t=0;t=0;t--)e.push(` * [REDO] ${this._future[t]}`);return e.join("\n")}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){1===e.type?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(const i of this._past)t(i.actual)&&this._setElementValidFlag(i,e);for(const i of this._future)t(i.actual)&&this._setElementValidFlag(i,e)}pushElement(e){for(const e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){const t=[];for(let e=0,i=this._past.length;e=0;e--)t.push(this._future[e].id);return new We.To(e,t)}restoreSnapshot(e){const t=e.elements.length;let i=!0,n=0,o=-1;for(let s=0,r=this._past.length;s=t||r.id!==e.elements[n])&&(i=!1,o=0),i||1!==r.type||r.removeResource(this.resourceLabel,this.strResource,0)}let s=-1;for(let o=this._future.length-1;o>=0;o--,n++){const r=this._future[o];i&&(n>=t||r.id!==e.elements[n])&&(i=!1,s=o),i||1!==r.type||r.removeResource(this.resourceLabel,this.strResource,0)}-1!==o&&(this._past=this._past.slice(0,o)),-1!==s&&(this._future=this._future.slice(s+1)),this.versionId++}getElements(){const e=[],t=[];for(const t of this._past)e.push(t.actual);for(const e of this._future)t.push(e.actual);return{past:e,future:t}}getClosestPastElement(){return 0===this._past.length?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return 0===this._future.length?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,t){for(let i=this._past.length-1;i>=0;i--)if(this._past[i]===e){t.has(this.strResource)?this._past[i]=t.get(this.strResource):this._past.splice(i,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let i=this._future.length-1;i>=0;i--)if(this._future[i]===e){t.has(this.strResource)?this._future[i]=t.get(this.strResource):this._future.splice(i,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}}class Ge{constructor(e){this.editStacks=e,this._versionIds=[];for(let e=0,t=this.editStacks.length;et.sourceOrder)&&(t=s,i=n)}return[t,i]}canUndo(e){if(e instanceof We.Ym){const[,t]=this._findClosestUndoElementWithSource(e.id);return!!t}const t=this.getUriComparisonKey(e);return!!this._editStacks.has(t)&&this._editStacks.get(t).hasPastElements()}_onError(e,t){(0,Re.dz)(e);for(const e of t.strResources)this.removeElements(e);this._notificationService.error(e)}_acquireLocks(e){for(const t of e.editStacks)if(t.locked)throw new Error("Cannot acquire edit stack lock");for(const t of e.editStacks)t.locked=!0;return()=>{for(const t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,i,n,o){const s=this._acquireLocks(i);let r;try{r=t()}catch(t){return s(),n.dispose(),this._onError(t,e)}return r?r.then((()=>(s(),n.dispose(),o())),(t=>(s(),n.dispose(),this._onError(t,e)))):(s(),n.dispose(),o())}async _invokeWorkspacePrepare(e){if(void 0===e.actual.prepareUndoRedo)return r.jG.None;const t=e.actual.prepareUndoRedo();return void 0===t?r.jG.None:t}_invokeResourcePrepare(e,t){if(1!==e.actual.type||void 0===e.actual.prepareUndoRedo)return t(r.jG.None);const i=e.actual.prepareUndoRedo();return i?(0,r.Xm)(i)?t(i):i.then((e=>t(e))):t(r.jG.None)}_getAffectedEditStacks(e){const t=[];for(const i of e.strResources)t.push(this._editStacks.get(i)||Qe);return new Ge(t)}_tryToSplitAndUndo(e,t,i,n){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(n),new Ye(this._undo(e,0,!0));for(const e of t.strResources)this.removeElements(e);return this._notificationService.warn(n),new Ye}_checkWorkspaceUndo(e,t,i,n){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,Oe.k({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(n&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,Oe.k({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const o=[];for(const e of i.editStacks)e.getClosestPastElement()!==t&&o.push(e.resourceLabel);if(o.length>0)return this._tryToSplitAndUndo(e,t,null,Oe.k({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",t.label,o.join(", ")));const s=[];for(const e of i.editStacks)e.locked&&s.push(e.resourceLabel);return s.length>0?this._tryToSplitAndUndo(e,t,null,Oe.k({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,s.join(", "))):i.isValid()?null:this._tryToSplitAndUndo(e,t,null,Oe.k({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t,i){const n=this._getAffectedEditStacks(t),o=this._checkWorkspaceUndo(e,t,n,!1);return o?o.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,n,i)}_isPartOfUndoGroup(e){if(!e.groupId)return!1;for(const[,t]of this._editStacks){const i=t.getClosestPastElement();if(i){if(i===e){const i=t.getSecondClosestPastElement();if(i&&i.groupId===e.groupId)return!0}if(i.groupId===e.groupId)return!0}}return!1}async _confirmAndExecuteWorkspaceUndo(e,t,i,n){if(t.canSplit()&&!this._isPartOfUndoGroup(t)){let o;!function(e){e[e.All=0]="All",e[e.This=1]="This",e[e.Cancel=2]="Cancel"}(o||(o={}));const{result:s}=await this._dialogService.prompt({type:Pe.A.Info,message:Oe.k("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),buttons:[{label:Oe.k({key:"ok",comment:["{0} denotes a number that is > 1, && denotes a mnemonic"]},"&&Undo in {0} Files",i.editStacks.length),run:()=>o.All},{label:Oe.k({key:"nok",comment:["&& denotes a mnemonic"]},"Undo this &&File"),run:()=>o.This}],cancelButton:{run:()=>o.Cancel}});if(s===o.Cancel)return;if(s===o.This)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);const r=this._checkWorkspaceUndo(e,t,i,!1);if(r)return r.returnValue;n=!0}let o;try{o=await this._invokeWorkspacePrepare(t)}catch(e){return this._onError(e,t)}const s=this._checkWorkspaceUndo(e,t,i,!0);if(s)return o.dispose(),s.returnValue;for(const e of i.editStacks)e.moveBackward(t);return this._safeInvokeWithLocks(t,(()=>t.actual.undo()),i,o,(()=>this._continueUndoInGroup(t.groupId,n)))}_resourceUndo(e,t,i){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,(n=>(e.moveBackward(t),this._safeInvokeWithLocks(t,(()=>t.actual.undo()),new Ge([e]),n,(()=>this._continueUndoInGroup(t.groupId,i))))));{const e=Oe.k({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e)}}else e.flushAllElements()}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,o]of this._editStacks){const s=o.getClosestPastElement();s&&s.groupId===e&&(!t||s.groupOrder>t.groupOrder)&&(t=s,i=n)}return[t,i]}_continueUndoInGroup(e,t){if(!e)return;const[,i]=this._findClosestUndoElementInGroup(e);return i?this._undo(i,0,t):void 0}undo(e){if(e instanceof We.Ym){const[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return"string"==typeof e?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e,t=0,i){if(!this._editStacks.has(e))return;const n=this._editStacks.get(e),o=n.getClosestPastElement();if(o){if(o.groupId){const[e,n]=this._findClosestUndoElementInGroup(o.groupId);if(o!==e&&n)return this._undo(n,t,i)}if((o.sourceId!==t||o.confirmBeforeUndo)&&!i)return this._confirmAndContinueUndo(e,t,o);try{return 1===o.type?this._workspaceUndo(e,o,i):this._resourceUndo(n,o,i)}finally{}}}async _confirmAndContinueUndo(e,t,i){if((await this._dialogService.confirm({message:Oe.k("confirmDifferentSource","Would you like to undo '{0}'?",i.label),primaryButton:Oe.k({key:"confirmDifferentSource.yes",comment:["&& denotes a mnemonic"]},"&&Yes"),cancelButton:Oe.k("confirmDifferentSource.no","No")})).confirmed)return this._undo(e,t,!0)}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(const[n,o]of this._editStacks){const s=o.getClosestFutureElement();s&&s.sourceId===e&&(!t||s.sourceOrder0)return this._tryToSplitAndRedo(e,t,null,Oe.k({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",t.label,o.join(", ")));const s=[];for(const e of i.editStacks)e.locked&&s.push(e.resourceLabel);return s.length>0?this._tryToSplitAndRedo(e,t,null,Oe.k({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,s.join(", "))):i.isValid()?null:this._tryToSplitAndRedo(e,t,null,Oe.k({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){const i=this._getAffectedEditStacks(t),n=this._checkWorkspaceRedo(e,t,i,!1);return n?n.returnValue:this._executeWorkspaceRedo(e,t,i)}async _executeWorkspaceRedo(e,t,i){let n;try{n=await this._invokeWorkspacePrepare(t)}catch(e){return this._onError(e,t)}const o=this._checkWorkspaceRedo(e,t,i,!0);if(o)return n.dispose(),o.returnValue;for(const e of i.editStacks)e.moveForward(t);return this._safeInvokeWithLocks(t,(()=>t.actual.redo()),i,n,(()=>this._continueRedoInGroup(t.groupId)))}_resourceRedo(e,t){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,(i=>(e.moveForward(t),this._safeInvokeWithLocks(t,(()=>t.actual.redo()),new Ge([e]),i,(()=>this._continueRedoInGroup(t.groupId))))));{const e=Oe.k({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e)}}else e.flushAllElements()}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(const[n,o]of this._editStacks){const s=o.getClosestFutureElement();s&&s.groupId===e&&(!t||s.groupOrder=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([He(0,Fe.X),He(1,Be.Ot)],Ze);class Ye{constructor(e){this.returnValue=e}}(0,Se.v)(We.$D,Ze,1),i(12060);var Xe=i(46441),Je=i(9520),et=i(82891),tt=function(e,t){return function(i,n){t(i,n,e)}};let it=class extends r.jG{constructor(e,t,i){super(),this._themeService=e,this._logService=t,this._languageService=i,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange((()=>{this._caches=new WeakMap})))}getStyling(e){return this._caches.has(e)||this._caches.set(e,new Je.i(e.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(e)}};it=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([tt(0,ye.Gy),tt(1,Xe.rr),tt(2,T.L)],it),(0,Se.v)(et.F,it,1);var nt=i(74403);function ot(e){return"string"!=typeof e&&(Array.isArray(e)?e.every(ot):!!e.exclusive)}class st{constructor(e,t,i,n){this.uri=e,this.languageId=t,this.notebookUri=i,this.notebookType=n}equals(e){var t,i;return this.notebookType===e.notebookType&&this.languageId===e.languageId&&this.uri.toString()===e.uri.toString()&&(null===(t=this.notebookUri)||void 0===t?void 0:t.toString())===(null===(i=e.notebookUri)||void 0===i?void 0:i.toString())}}class rt{constructor(e){this._notebookInfoResolver=e,this._clock=0,this._entries=[],this._onDidChange=new be.vl,this.onDidChange=this._onDidChange.event}register(e,t){let i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,r.s)((()=>{if(i){const e=this._entries.indexOf(i);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),i=void 0)}}))}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e);const t=[];for(const e of this._entries)e._score>0&&t.push(e.provider);return t}ordered(e){const t=[];return this._orderedForEach(e,(e=>t.push(e.provider))),t}orderedGroups(e){const t=[];let i,n;return this._orderedForEach(e,(e=>{i&&n===e._score?i.push(e.provider):(n=e._score,i=[e.provider],t.push(i))})),t}_orderedForEach(e,t){this._updateScores(e);for(const e of this._entries)e._score>0&&t(e)}_updateScores(e){var t,i;const n=null===(t=this._notebookInfoResolver)||void 0===t?void 0:t.call(this,e.uri),o=n?new st(e.uri,e.getLanguageId(),n.uri,n.type):new st(e.uri,e.getLanguageId(),void 0,void 0);if(!(null===(i=this._lastCandidate)||void 0===i?void 0:i.equals(o))){this._lastCandidate=o;for(const t of this._entries)if(t._score=(0,nt.f)(t.selector,o.uri,o.languageId,(0,F.vd)(e),o.notebookUri,o.notebookType),ot(t.selector)&&t._score>0){for(const e of this._entries)e._score=0;t._score=1e3;break}this._entries.sort(rt._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._scoret._score?-1:at(e.selector)&&!at(t.selector)?1:!at(e.selector)&&at(t.selector)?-1:e._timet._time?-1:0}}function at(e){return"string"!=typeof e&&(Array.isArray(e)?e.some(at):Boolean(e.isBuiltin))}var lt=i(52230);(0,Se.v)(lt.u,class{constructor(){this.referenceProvider=new rt(this._score.bind(this)),this.renameProvider=new rt(this._score.bind(this)),this.newSymbolNamesProvider=new rt(this._score.bind(this)),this.codeActionProvider=new rt(this._score.bind(this)),this.definitionProvider=new rt(this._score.bind(this)),this.typeDefinitionProvider=new rt(this._score.bind(this)),this.declarationProvider=new rt(this._score.bind(this)),this.implementationProvider=new rt(this._score.bind(this)),this.documentSymbolProvider=new rt(this._score.bind(this)),this.inlayHintsProvider=new rt(this._score.bind(this)),this.colorProvider=new rt(this._score.bind(this)),this.codeLensProvider=new rt(this._score.bind(this)),this.documentFormattingEditProvider=new rt(this._score.bind(this)),this.documentRangeFormattingEditProvider=new rt(this._score.bind(this)),this.onTypeFormattingEditProvider=new rt(this._score.bind(this)),this.signatureHelpProvider=new rt(this._score.bind(this)),this.hoverProvider=new rt(this._score.bind(this)),this.documentHighlightProvider=new rt(this._score.bind(this)),this.multiDocumentHighlightProvider=new rt(this._score.bind(this)),this.selectionRangeProvider=new rt(this._score.bind(this)),this.foldingRangeProvider=new rt(this._score.bind(this)),this.linkProvider=new rt(this._score.bind(this)),this.inlineCompletionsProvider=new rt(this._score.bind(this)),this.inlineEditProvider=new rt(this._score.bind(this)),this.completionProvider=new rt(this._score.bind(this)),this.linkedEditingRangeProvider=new rt(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new rt(this._score.bind(this)),this.documentSemanticTokensProvider=new rt(this._score.bind(this)),this.documentDropEditProvider=new rt(this._score.bind(this)),this.documentPasteEditProvider=new rt(this._score.bind(this))}_score(e){var t;return null===(t=this._notebookTypeResolver)||void 0===t?void 0:t.call(this,e)}},1);var dt=i(70559),ct=i(90428),ht=i(52348),ut=i(23377),gt={};gt.styleTagTransform=w(),gt.setAttributes=f(),gt.insert=p().bind(null,"head"),gt.domAPI=u(),gt.insertStyleElement=_(),c()(ut.A,gt),ut.A&&ut.A.locals&&ut.A.locals;var pt=i(56071),mt=i(35190),ft=i(45222),vt=i(54435),_t=i(86708),bt=i(90028),wt=i(63339),yt=i(53909),Ct=function(e,t){return function(i,n){t(i,n,e)}};const kt=ve.$;let St=class extends ft.x{get _targetWindow(){return ve.zk(this._target.targetElements[0])}get _targetDocumentElement(){return ve.zk(this._target.targetElements[0]).document.documentElement}get isDisposed(){return this._isDisposed}get isMouseIn(){return this._lockMouseTracker.isMouseIn}get domNode(){return this._hover.containerDomNode}get onDispose(){return this._onDispose.event}get onRequestLayout(){return this._onRequestLayout.event}get anchor(){return 2===this._hoverPosition?0:1}get x(){return this._x}get y(){return this._y}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this._hoverContainer.classList.toggle("locked",this._isLocked))}constructor(e,t,i,o,s,a){var l,d,c,h,u,g,p,m;super(),this._keybindingService=t,this._configurationService=i,this._openerService=o,this._instantiationService=s,this._accessibilityService=a,this._messageListeners=new r.Cm,this._isDisposed=!1,this._forcePosition=!1,this._x=0,this._y=0,this._isLocked=!1,this._enableFocusTraps=!1,this._addedFocusTrap=!1,this._onDispose=this._register(new be.vl),this._onRequestLayout=this._register(new be.vl),this._linkHandler=e.linkHandler||(t=>(0,_t.i)(this._openerService,t,(0,bt.VS)(e.content)?e.content.isTrusted:void 0)),this._target="targetElements"in e.target?e.target:new Lt(e.target),this._hoverPointer=(null===(l=e.appearance)||void 0===l?void 0:l.showPointer)?kt("div.workbench-hover-pointer"):void 0,this._hover=this._register(new mt.N4),this._hover.containerDomNode.classList.add("workbench-hover","fadeIn"),(null===(d=e.appearance)||void 0===d?void 0:d.compact)&&this._hover.containerDomNode.classList.add("workbench-hover","compact"),(null===(c=e.appearance)||void 0===c?void 0:c.skipFadeInAnimation)&&this._hover.containerDomNode.classList.add("skip-fade-in"),e.additionalClasses&&this._hover.containerDomNode.classList.add(...e.additionalClasses),(null===(h=e.position)||void 0===h?void 0:h.forcePosition)&&(this._forcePosition=!0),e.trapFocus&&(this._enableFocusTraps=!0),this._hoverPosition=null!==(g=null===(u=e.position)||void 0===u?void 0:u.hoverPosition)&&void 0!==g?g:3,this.onmousedown(this._hover.containerDomNode,(e=>e.stopPropagation())),this.onkeydown(this._hover.containerDomNode,(e=>{e.equals(9)&&this.dispose()})),this._register(ve.ko(this._targetWindow,"blur",(()=>this.dispose())));const f=kt("div.hover-row.markdown-hover"),v=kt("div.hover-contents");if("string"==typeof e.content)v.textContent=e.content,v.style.whiteSpace="pre-wrap";else if(ve.sb(e.content))v.appendChild(e.content),v.classList.add("html-hover-contents");else{const t=e.content,i=this._instantiationService.createInstance(_t.T,{codeBlockFontFamily:this._configurationService.getValue("editor").fontFamily||n.jU.fontFamily}),{element:o}=i.render(t,{actionHandler:{callback:e=>this._linkHandler(e),disposables:this._messageListeners},asyncRenderCallback:()=>{v.classList.add("code-hover-contents"),this.layout(),this._onRequestLayout.fire()}});v.appendChild(o)}if(f.appendChild(v),this._hover.contentsDomNode.appendChild(f),e.actions&&e.actions.length>0){const t=kt("div.hover-row.status-bar"),i=kt("div.actions");e.actions.forEach((e=>{const t=this._keybindingService.lookupKeybinding(e.commandId),n=t?t.getLabel():null;mt.jQ.render(i,{label:e.label,commandId:e.commandId,run:t=>{e.run(t),this.dispose()},iconClass:e.iconClass},n)})),t.appendChild(i),this._hover.containerDomNode.appendChild(t)}let _;if(this._hoverContainer=kt("div.workbench-hover-container"),this._hoverPointer&&this._hoverContainer.appendChild(this._hoverPointer),this._hoverContainer.appendChild(this._hover.containerDomNode),_=!(e.actions&&e.actions.length>0)&&(void 0===(null===(p=e.persistence)||void 0===p?void 0:p.hideOnHover)?"string"==typeof e.content||(0,bt.VS)(e.content)&&!e.content.value.includes("](")&&!e.content.value.includes(""):e.persistence.hideOnHover),_&&(null===(m=e.appearance)||void 0===m?void 0:m.showHoverHint)){const e=kt("div.hover-row.status-bar"),t=kt("div.info");t.textContent=(0,Oe.k)("hoverhint","Hold {0} key to mouse over",wt.zx?"Option":"Alt"),e.appendChild(t),this._hover.containerDomNode.appendChild(e)}const b=[...this._target.targetElements];_||b.push(this._hoverContainer);const w=this._register(new xt(b));if(this._register(w.onMouseOut((()=>{this._isLocked||this.dispose()}))),_){const e=[...this._target.targetElements,this._hoverContainer];this._lockMouseTracker=this._register(new xt(e)),this._register(this._lockMouseTracker.onMouseOut((()=>{this._isLocked||this.dispose()})))}else this._lockMouseTracker=w}addFocusTrap(){if(!this._enableFocusTraps||this._addedFocusTrap)return;this._addedFocusTrap=!0;const e=this._hover.containerDomNode,t=this.findLastFocusableChild(this._hover.containerDomNode);if(t){const i=ve.Hs(this._hoverContainer,kt("div")),n=ve.BC(this._hoverContainer,kt("div"));i.tabIndex=0,n.tabIndex=0,this._register(ve.ko(n,"focus",(t=>{e.focus(),t.preventDefault()}))),this._register(ve.ko(i,"focus",(e=>{t.focus(),e.preventDefault()})))}}findLastFocusableChild(e){if(e.hasChildNodes())for(let t=0;t=0)return e}const n=this.findLastFocusableChild(i);if(n)return n}}render(e){var t;e.appendChild(this._hoverContainer);const i=this._hoverContainer.contains(this._hoverContainer.ownerDocument.activeElement)&&(0,mt.vr)(!0===this._configurationService.getValue("accessibility.verbosity.hover")&&this._accessibilityService.isScreenReaderOptimized(),null===(t=this._keybindingService.lookupKeybinding("editor.action.accessibleView"))||void 0===t?void 0:t.getAriaLabel());i&&(0,pe.h5)(i),this.layout(),this.addFocusTrap()}layout(){this._hover.containerDomNode.classList.remove("right-aligned"),this._hover.contentsDomNode.style.maxHeight="";const e=this._target.targetElements.map((e=>(e=>{const t=ve.mU(e),i=e.getBoundingClientRect();return{top:i.top*t,bottom:i.bottom*t,right:i.right*t,left:i.left*t}})(e))),{top:t,right:i,bottom:n,left:o}=e[0],s=i-o,r=n-t,a={top:t,right:i,bottom:n,left:o,width:s,height:r,center:{x:o+s/2,y:t+r/2}};if(this.adjustHorizontalHoverPosition(a),this.adjustVerticalHoverPosition(a),this.adjustHoverMaxHeight(a),this._hoverContainer.style.padding="",this._hoverContainer.style.margin="",this._hoverPointer){switch(this._hoverPosition){case 1:a.left+=3,a.right+=3,this._hoverContainer.style.paddingLeft="3px",this._hoverContainer.style.marginLeft="-3px";break;case 0:a.left-=3,a.right-=3,this._hoverContainer.style.paddingRight="3px",this._hoverContainer.style.marginRight="-3px";break;case 2:a.top+=3,a.bottom+=3,this._hoverContainer.style.paddingTop="3px",this._hoverContainer.style.marginTop="-3px";break;case 3:a.top-=3,a.bottom-=3,this._hoverContainer.style.paddingBottom="3px",this._hoverContainer.style.marginBottom="-3px"}a.center.x=a.left+s/2,a.center.y=a.top+r/2}this.computeXCordinate(a),this.computeYCordinate(a),this._hoverPointer&&(this._hoverPointer.classList.remove("top"),this._hoverPointer.classList.remove("left"),this._hoverPointer.classList.remove("right"),this._hoverPointer.classList.remove("bottom"),this.setHoverPointerPosition(a)),this._hover.onContentsChanged()}computeXCordinate(e){const t=this._hover.containerDomNode.clientWidth+2;void 0!==this._target.x?this._x=this._target.x:1===this._hoverPosition?this._x=e.right:0===this._hoverPosition?this._x=e.left-t:(this._hoverPointer?this._x=e.center.x-this._hover.containerDomNode.clientWidth/2:this._x=e.left,this._x+t>=this._targetDocumentElement.clientWidth&&(this._hover.containerDomNode.classList.add("right-aligned"),this._x=Math.max(this._targetDocumentElement.clientWidth-t-2,this._targetDocumentElement.clientLeft))),this._xthis._targetWindow.innerHeight&&(this._y=e.bottom)}adjustHorizontalHoverPosition(e){if(void 0!==this._target.x)return;const t=this._hoverPointer?3:0;if(this._forcePosition){const i=t+2;1===this._hoverPosition?this._hover.containerDomNode.style.maxWidth=this._targetDocumentElement.clientWidth-e.right-i+"px":0===this._hoverPosition&&(this._hover.containerDomNode.style.maxWidth=e.left-i+"px")}else 1===this._hoverPosition?this._targetDocumentElement.clientWidth-e.right=this._hover.containerDomNode.clientWidth+t?this._hoverPosition=0:this._hoverPosition=2):0===this._hoverPosition&&(e.left=this._hover.containerDomNode.clientWidth+t?this._hoverPosition=1:this._hoverPosition=2),e.left-this._hover.containerDomNode.clientWidth-t<=this._targetDocumentElement.clientLeft&&(this._hoverPosition=1))}adjustVerticalHoverPosition(e){if(void 0!==this._target.y||this._forcePosition)return;const t=this._hoverPointer?3:0;3===this._hoverPosition?e.top-this._hover.containerDomNode.clientHeight-t<0&&(this._hoverPosition=2):2===this._hoverPosition&&e.bottom+this._hover.containerDomNode.clientHeight+t>this._targetWindow.innerHeight&&(this._hoverPosition=3)}adjustHoverMaxHeight(e){let t=this._targetWindow.innerHeight/2;if(this._forcePosition){const i=2+(this._hoverPointer?3:0);3===this._hoverPosition?t=Math.min(t,e.top-i):2===this._hoverPosition&&(t=Math.min(t,this._targetWindow.innerHeight-e.bottom-i))}if(this._hover.containerDomNode.style.maxHeight=`${t}px`,this._hover.contentsDomNode.clientHeighte.height?this._hoverPointer.style.top=e.center.y-(this._y-t)-3+"px":this._hoverPointer.style.top=Math.round(t/2)-3+"px";break}case 3:case 2:{this._hoverPointer.classList.add(3===this._hoverPosition?"bottom":"top");const t=this._hover.containerDomNode.clientWidth;let i=Math.round(t/2)-3;const n=this._x+i;(ne.right)&&(i=e.center.x-this._x-3),this._hoverPointer.style.left=`${i}px`;break}}}focus(){this._hover.containerDomNode.focus()}dispose(){this._isDisposed||(this._onDispose.fire(),this._hoverContainer.remove(),this._messageListeners.dispose(),this._target.dispose(),super.dispose()),this._isDisposed=!0}};St=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Ct(1,pt.b),Ct(2,J.pG),Ct(3,vt.C),Ct(4,Ee._Y),Ct(5,yt.j)],St);class xt extends ft.x{get onMouseOut(){return this._onMouseOut.event}get isMouseIn(){return this._isMouseIn}constructor(e){super(),this._elements=e,this._isMouseIn=!0,this._onMouseOut=this._register(new be.vl),this._elements.forEach((e=>this.onmouseover(e,(()=>this._onTargetMouseOver(e))))),this._elements.forEach((e=>this.onmouseleave(e,(()=>this._onTargetMouseLeave(e)))))}_onTargetMouseOver(e){this._isMouseIn=!0,this._clearEvaluateMouseStateTimeout(e)}_onTargetMouseLeave(e){this._isMouseIn=!1,this._evaluateMouseState(e)}_evaluateMouseState(e){this._clearEvaluateMouseStateTimeout(e),this._mouseTimeout=ve.zk(e).setTimeout((()=>this._fireIfMouseOutside()),0)}_clearEvaluateMouseStateTimeout(e){this._mouseTimeout&&(ve.zk(e).clearTimeout(this._mouseTimeout),this._mouseTimeout=void 0)}_fireIfMouseOutside(){this._isMouseIn||this._onMouseOut.fire()}}class Lt{constructor(e){this._element=e,this.targetElements=[this._element]}dispose(){}}var Dt,Et=i(87594),It=i(51577),Nt=i(82199),Mt=i(8970),At={};function Tt(e,t,i){const n=i.mode===Dt.ALIGN?i.offset:i.offset+i.size,o=i.mode===Dt.ALIGN?i.offset+i.size:i.offset;return 0===i.position?t<=e-n?n:t<=o?o-t:Math.max(e-t,0):t<=o?o-t:t<=e-n?n:0}At.styleTagTransform=w(),At.setAttributes=f(),At.insert=p().bind(null,"head"),At.domAPI=u(),At.insertStyleElement=_(),c()(Mt.A,At),Mt.A&&Mt.A.locals&&Mt.A.locals,function(e){e[e.AVOID=0]="AVOID",e[e.ALIGN=1]="ALIGN"}(Dt||(Dt={}));class Rt extends r.jG{constructor(e,t){super(),this.container=null,this.useFixedPosition=!1,this.useShadowDOM=!1,this.delegate=null,this.toDisposeOnClean=r.jG.None,this.toDisposeOnSetContainer=r.jG.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=ve.$(".context-view"),ve.jD(this.view),this.setContainer(e,t),this._register((0,r.s)((()=>this.setContainer(null,1))))}setContainer(e,t){var i;this.useFixedPosition=1!==t;const n=this.useShadowDOM;if(this.useShadowDOM=3===t,(e!==this.container||n!==this.useShadowDOM)&&(this.container&&(this.toDisposeOnSetContainer.dispose(),this.view.remove(),this.shadowRoot&&(this.shadowRoot=null,null===(i=this.shadowRootHostElement)||void 0===i||i.remove(),this.shadowRootHostElement=null),this.container=null),e)){if(this.container=e,this.useShadowDOM){this.shadowRootHostElement=ve.$(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});const e=document.createElement("style");e.textContent=Pt,this.shadowRoot.appendChild(e),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(ve.$("slot"))}else this.container.appendChild(this.view);const t=new r.Cm;Rt.BUBBLE_UP_EVENTS.forEach((e=>{t.add(ve.b2(this.container,e,(e=>{this.onDOMEvent(e,!1)})))})),Rt.BUBBLE_DOWN_EVENTS.forEach((e=>{t.add(ve.b2(this.container,e,(e=>{this.onDOMEvent(e,!0)}),!0))})),this.toDisposeOnSetContainer=t}}show(e){var t,i,n;this.isVisible()&&this.hide(),ve.w_(this.view),this.view.className="context-view monaco-component",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex=`${2575+(null!==(t=e.layer)&&void 0!==t?t:0)}`,this.view.style.position=this.useFixedPosition?"fixed":"absolute",ve.WU(this.view),this.toDisposeOnClean=e.render(this.view)||r.jG.None,this.delegate=e,this.doLayout(),null===(n=(i=this.delegate).focus)||void 0===n||n.call(i)}getViewElement(){return this.view}layout(){var e,t;this.isVisible()&&(!1!==this.delegate.canRelayout||wt.un&&It.e.pointerEvents?(null===(t=null===(e=this.delegate)||void 0===e?void 0:e.layout)||void 0===t||t.call(e),this.doLayout()):this.hide())}doLayout(){if(!this.isVisible())return;const e=this.delegate.getAnchor();let t;if(ve.sb(e)){const i=ve.BK(e),n=ve.mU(e);t={top:i.top*n,left:i.left*n,width:i.width*n,height:i.height*n}}else t=function(e){const t=e;return!!t&&"number"==typeof t.x&&"number"==typeof t.y}(e)?{top:e.y,left:e.x,width:e.width||1,height:e.height||2}:{top:e.posy,left:e.posx,width:2,height:2};const i=ve.Tr(this.view),n=ve.OK(this.view),o=this.delegate.anchorPosition||0,s=this.delegate.anchorAlignment||0,r=this.delegate.anchorAxisAlignment||0;let a,l;const d=ve.fz();if(0===r){const e={offset:t.top-d.pageYOffset,size:t.height,position:0===o?0:1},r={offset:t.left,size:t.width,position:0===s?0:1,mode:Dt.ALIGN};a=Tt(d.innerHeight,n,e)+d.pageYOffset,Nt.Q.intersects({start:a,end:a+n},{start:e.offset,end:e.offset+e.size})&&(r.mode=Dt.AVOID),l=Tt(d.innerWidth,i,r)}else{const e={offset:t.left,size:t.width,position:0===s?0:1},r={offset:t.top,size:t.height,position:0===o?0:1,mode:Dt.ALIGN};l=Tt(d.innerWidth,i,e),Nt.Q.intersects({start:l,end:l+i},{start:e.offset,end:e.offset+e.size})&&(r.mode=Dt.AVOID),a=Tt(d.innerHeight,n,r)+d.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(0===o?"bottom":"top"),this.view.classList.add(0===s?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);const c=ve.BK(this.container);this.view.style.top=a-(this.useFixedPosition?ve.BK(this.view).top:c.top)+"px",this.view.style.left=l-(this.useFixedPosition?ve.BK(this.view).left:c.left)+"px",this.view.style.width="initial"}hide(e){const t=this.delegate;this.delegate=null,(null==t?void 0:t.onHide)&&t.onHide(e),this.toDisposeOnClean.dispose(),ve.jD(this.view)}isVisible(){return!!this.delegate}onDOMEvent(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,ve.zk(e).document.activeElement):t&&!ve.QX(e.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}Rt.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],Rt.BUBBLE_DOWN_EVENTS=["click"];const Pt='\n\t:host {\n\t\tall: initial; /* 1st rule so subsequent properties are reset. */\n\t}\n\n\t.codicon[class*=\'codicon-\'] {\n\t\tfont: normal normal normal 16px/1 codicon;\n\t\tdisplay: inline-block;\n\t\ttext-decoration: none;\n\t\ttext-rendering: auto;\n\t\ttext-align: center;\n\t\t-webkit-font-smoothing: antialiased;\n\t\t-moz-osx-font-smoothing: grayscale;\n\t\tuser-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t}\n\n\t:host {\n\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;\n\t}\n\n\t:host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }\n\t:host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; }\n\t:host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; }\n\t:host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; }\n\t:host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; }\n\n\t:host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; }\n\t:host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; }\n\t:host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; }\n\t:host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; }\n\t:host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; }\n\n\t:host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; }\n';let Ot=class extends r.jG{constructor(e){super(),this.layoutService=e,this.contextView=this._register(new Rt(this.layoutService.mainContainer,1)),this.layout(),this._register(e.onDidLayoutContainer((()=>this.layout())))}showContextView(e,t,i){let n;n=t?t===this.layoutService.getContainer((0,ve.zk)(t))?1:i?3:2:1,this.contextView.setContainer(null!=t?t:this.layoutService.activeContainer,n),this.contextView.show(e);const o={close:()=>{this.openContextView===o&&this.hideContextView()}};return this.openContextView=o,o}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e),this.openContextView=void 0}};Ot=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([function(e,t){return function(i,n){t(i,n,e)}}(0,Ie)],Ot);class Ft extends Ot{getContextViewElement(){return this.contextView.getViewElement()}}var Bt=i(78903),Wt=i(79359);class Ht{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}async update(e,t,i){var n;if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let o;if(void 0===e||(0,Wt.Kg)(e)||(0,ve.sb)(e))o=e;else if((0,Wt.Tn)(e.markdown)){this._hoverWidget||this.show((0,Oe.k)("iconLabel.loading","Loading..."),t,i),this._cancellationTokenSource=new Bt.Qi;const n=this._cancellationTokenSource.token;if(o=await e.markdown(n),void 0===o&&(o=e.markdownNotSupportedFallback),this.isDisposed||n.isCancellationRequested)return}else o=null!==(n=e.markdown)&&void 0!==n?n:e.markdownNotSupportedFallback;this.show(o,t,i)}show(e,t,i){const n=this._hoverWidget;if(this.hasContent(e)){const o={content:e,target:this.target,appearance:{showPointer:"element"===this.hoverDelegate.placement,skipFadeInAnimation:!this.fadeInAnimation||!!n},position:{hoverPosition:2},...i};this._hoverWidget=this.hoverDelegate.showHover(o,t)}null==n||n.dispose()}hasContent(e){return!(!e||(0,bt.VS)(e)&&!e.value)}get isDisposed(){var e;return null===(e=this._hoverWidget)||void 0===e?void 0:e.isDisposed}dispose(){var e,t;null===(e=this._hoverWidget)||void 0===e||e.dispose(),null===(t=this._cancellationTokenSource)||void 0===t||t.dispose(!0),this._cancellationTokenSource=void 0}}var Vt=i(65958),zt=function(e,t){return function(i,n){t(i,n,e)}};let jt=class extends r.jG{constructor(e,t,i,n,o){super(),this._instantiationService=e,this._keybindingService=i,this._layoutService=n,this._accessibilityService=o,this._managedHovers=new Map,t.onDidShowContextMenu((()=>this.hideHover())),this._contextViewHandler=this._register(new Ot(this._layoutService))}showHover(e,t,i){var n,o,a,l;if(Ut(this._currentHoverOptions)===Ut(e))return;if(this._currentHover&&(null===(o=null===(n=this._currentHoverOptions)||void 0===n?void 0:n.persistence)||void 0===o?void 0:o.sticky))return;this._currentHoverOptions=e,this._lastHoverOptions=e;const d=e.trapFocus||this._accessibilityService.isScreenReaderOptimized(),c=(0,ve.bq)();i||(d&&c?c.classList.contains("monaco-hover")||(this._lastFocusedElementBeforeOpen=c):this._lastFocusedElementBeforeOpen=void 0);const h=new r.Cm,u=this._instantiationService.createInstance(St,e);if((null===(a=e.persistence)||void 0===a?void 0:a.sticky)&&(u.isLocked=!0),u.onDispose((()=>{var t,i;(null===(t=this._currentHover)||void 0===t?void 0:t.domNode)&&(0,ve.nR)(this._currentHover.domNode)&&(null===(i=this._lastFocusedElementBeforeOpen)||void 0===i||i.focus()),this._currentHoverOptions===e&&(this._currentHoverOptions=void 0),h.dispose()}),void 0,h),!e.container){const t=(0,ve.sb)(e.target)?e.target:e.target.targetElements[0];e.container=this._layoutService.getContainer((0,ve.zk)(t))}if(this._contextViewHandler.showContextView(new $t(u,t),e.container),u.onRequestLayout((()=>this._contextViewHandler.layout()),void 0,h),null===(l=e.persistence)||void 0===l?void 0:l.sticky)h.add((0,ve.ko)((0,ve.zk)(e.container).document,ve.Bx.MOUSE_DOWN,(e=>{(0,ve.QX)(e.target,u.domNode)||this.doHideHover()})));else{if("targetElements"in e.target)for(const t of e.target.targetElements)h.add((0,ve.ko)(t,ve.Bx.CLICK,(()=>this.hideHover())));else h.add((0,ve.ko)(e.target,ve.Bx.CLICK,(()=>this.hideHover())));const t=(0,ve.bq)();if(t){const i=(0,ve.zk)(t).document;h.add((0,ve.ko)(t,ve.Bx.KEY_DOWN,(t=>{var i;return this._keyDown(t,u,!!(null===(i=e.persistence)||void 0===i?void 0:i.hideOnKeyDown))}))),h.add((0,ve.ko)(i,ve.Bx.KEY_DOWN,(t=>{var i;return this._keyDown(t,u,!!(null===(i=e.persistence)||void 0===i?void 0:i.hideOnKeyDown))}))),h.add((0,ve.ko)(t,ve.Bx.KEY_UP,(e=>this._keyUp(e,u)))),h.add((0,ve.ko)(i,ve.Bx.KEY_UP,(e=>this._keyUp(e,u))))}}if("IntersectionObserver"in s.G){const t=new IntersectionObserver((e=>this._intersectionChange(e,u)),{threshold:0}),i="targetElements"in e.target?e.target.targetElements[0]:e.target;t.observe(i),h.add((0,r.s)((()=>t.disconnect())))}return this._currentHover=u,u}hideHover(){var e;!(null===(e=this._currentHover)||void 0===e?void 0:e.isLocked)&&this._currentHoverOptions&&this.doHideHover()}doHideHover(){this._currentHover=void 0,this._currentHoverOptions=void 0,this._contextViewHandler.hideContextView()}_intersectionChange(e,t){e[e.length-1].isIntersecting||t.dispose()}showAndFocusLastHover(){this._lastHoverOptions&&this.showHover(this._lastHoverOptions,!0,!0)}_keyDown(e,t,i){var n,o;if("Alt"===e.key)return void(t.isLocked=!0);const s=new Et.Z(e);this._keybindingService.resolveKeyboardEvent(s).getSingleModifierDispatchChords().some((e=>!!e))||0!==this._keybindingService.softDispatch(s,s.target).kind||!i||(null===(n=this._currentHoverOptions)||void 0===n?void 0:n.trapFocus)&&"Tab"===e.key||(this.hideHover(),null===(o=this._lastFocusedElementBeforeOpen)||void 0===o||o.focus())}_keyUp(e,t){var i;"Alt"===e.key&&(t.isLocked=!1,t.isMouseIn||(this.hideHover(),null===(i=this._lastFocusedElementBeforeOpen)||void 0===i||i.focus()))}setupManagedHover(e,t,i,n){let o,s;t.setAttribute("custom-hover","true"),""!==t.title&&(console.warn("HTML element already has a title attribute, which will conflict with the custom hover. Please remove the title attribute."),console.trace("Stack trace:",t.title),t.title="");const a=(t,i)=>{var n;const r=void 0!==s;t&&(null==s||s.dispose(),s=void 0),i&&(null==o||o.dispose(),o=void 0),r&&(null===(n=e.onDidHideHover)||void 0===n||n.call(e),s=void 0)},l=(o,r,a,l)=>new Vt.pc((async()=>{s&&!s.isDisposed||(s=new Ht(e,a||t,o>0),await s.update("function"==typeof i?i():i,r,{...n,trapFocus:l}))}),o);let d=!1;const c=(0,ve.ko)(t,ve.Bx.MOUSE_DOWN,(()=>{d=!0,a(!0,!0)}),!0),h=(0,ve.ko)(t,ve.Bx.MOUSE_UP,(()=>{d=!1}),!0),u=(0,ve.ko)(t,ve.Bx.MOUSE_LEAVE,(e=>{d=!1,a(!1,e.fromElement===t)}),!0),g=(0,ve.ko)(t,ve.Bx.MOUSE_OVER,(i=>{if(o)return;const n=new r.Cm,s={targetElements:[t],dispose:()=>{}};if(void 0===e.placement||"mouse"===e.placement){const e=e=>{s.x=e.x+10,(0,ve.sb)(e.target)&&Kt(e.target,t)!==t&&a(!0,!0)};n.add((0,ve.ko)(t,ve.Bx.MOUSE_MOVE,e,!0))}o=n,(0,ve.sb)(i.target)&&Kt(i.target,t)!==t||n.add(l(e.delay,!1,s))}),!0);let p;const m=t.tagName.toLowerCase();"input"!==m&&"textarea"!==m&&(p=(0,ve.ko)(t,ve.Bx.FOCUS,(()=>{if(d||o)return;const i={targetElements:[t],dispose:()=>{}},n=new r.Cm;n.add((0,ve.ko)(t,ve.Bx.BLUR,(()=>a(!0,!0)),!0)),n.add(l(e.delay,!1,i)),o=n}),!0));const f={show:e=>{a(!1,!0),l(0,e,void 0,e)},hide:()=>{a(!0,!0)},update:async(e,t)=>{i=e,await(null==s?void 0:s.update(i,void 0,t))},dispose:()=>{this._managedHovers.delete(t),g.dispose(),u.dispose(),c.dispose(),h.dispose(),null==p||p.dispose(),a(!0,!0)}};return this._managedHovers.set(t,f),f}showManagedHover(e){const t=this._managedHovers.get(e);t&&t.show(!0)}dispose(){this._managedHovers.forEach((e=>e.dispose())),super.dispose()}};function Ut(e){var t;if(void 0!==e)return null!==(t=null==e?void 0:e.id)&&void 0!==t?t:e}jt=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([zt(0,Ee._Y),zt(1,ht.Z),zt(2,pt.b),zt(3,Ie),zt(4,yt.j)],jt);class $t{get anchorPosition(){return this._hover.anchor}constructor(e,t=!1){this._hover=e,this._focus=t,this.layer=1}render(e){return this._hover.render(e),this._focus&&this._hover.focus(),this._hover}getAnchor(){return{x:this._hover.x,y:this._hover.y}}layout(){this._hover.layout()}}function Kt(e,t){for(t=null!=t?t:(0,ve.zk)(e).document.body;!e.hasAttribute("custom-hover")&&e!==t;)e=e.parentElement;return e}(0,Se.v)(ct.TN,jt,1),(0,ye.zy)(((e,t)=>{const i=e.getColor(dt.oZ8);i&&(t.addRule(`.monaco-workbench .workbench-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${i.transparent(.5)}; }`),t.addRule(`.monaco-workbench .workbench-hover hr { border-top: 1px solid ${i.transparent(.5)}; }`))}));var qt=i(39619),Gt=i(98769),Qt=i(85003),Zt=i(23877),Yt=i(15365),Xt=i(28061),Jt=i(37042),ei=i(41504),ti=i(59715),ii=i(27992),ni=i(27142),oi=i(67167);function si(e){return Object.isFrozen(e)?e:L.ol(e)}class ri{static createEmptyModel(e){return new ri({},[],[],void 0,e)}constructor(e,t,i,n,o){this._contents=e,this._keys=t,this._overrides=i,this.raw=n,this.logService=o,this.overrideConfigurations=new Map}get rawConfiguration(){var e;if(!this._rawConfiguration)if(null===(e=this.raw)||void 0===e?void 0:e.length){const e=this.raw.map((e=>{if(e instanceof ri)return e;const t=new ai("",this.logService);return t.parseRaw(e),t.configurationModel}));this._rawConfiguration=e.reduce(((e,t)=>t===e?t:e.merge(t)),e[0])}else this._rawConfiguration=this;return this._rawConfiguration}get contents(){return this._contents}get overrides(){return this._overrides}get keys(){return this._keys}isEmpty(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length}getValue(e){return e?(0,J.gD)(this.contents,e):this.contents}inspect(e,t){const i=this;return{get value(){return si(i.rawConfiguration.getValue(e))},get override(){return t?si(i.rawConfiguration.getOverrideValue(e,t)):void 0},get merged(){return si(t?i.rawConfiguration.override(t).getValue(e):i.rawConfiguration.getValue(e))},get overrides(){const t=[];for(const{contents:n,identifiers:o,keys:s}of i.rawConfiguration.overrides){const r=new ri(n,s,[],void 0,i.logService).getValue(e);void 0!==r&&t.push({identifiers:o,value:r})}return t.length?si(t):void 0}}}getOverrideValue(e,t){const i=this.getContentsForOverrideIdentifer(t);return i?e?(0,J.gD)(i,e):i:void 0}override(e){let t=this.overrideConfigurations.get(e);return t||(t=this.createOverrideConfigurationModel(e),this.overrideConfigurations.set(e,t)),t}merge(...e){var t,i;const n=L.Go(this.contents),o=L.Go(this.overrides),s=[...this.keys],r=(null===(t=this.raw)||void 0===t?void 0:t.length)?[...this.raw]:[this];for(const t of e)if(r.push(...(null===(i=t.raw)||void 0===i?void 0:i.length)?t.raw:[t]),!t.isEmpty()){this.mergeContents(n,t.contents);for(const e of t.overrides){const[t]=o.filter((t=>De.aI(t.identifiers,e.identifiers)));t?(this.mergeContents(t.contents,e.contents),t.keys.push(...e.keys),t.keys=De.dM(t.keys)):o.push(L.Go(e))}for(const e of t.keys)-1===s.indexOf(e)&&s.push(e)}return new ri(n,s,o,r.every((e=>e instanceof ri))?void 0:r,this.logService)}createOverrideConfigurationModel(e){const t=this.getContentsForOverrideIdentifer(e);if(!t||"object"!=typeof t||!Object.keys(t).length)return this;const i={};for(const e of De.dM([...Object.keys(this.contents),...Object.keys(t)])){let n=this.contents[e];const o=t[e];o&&("object"==typeof n&&"object"==typeof o?(n=L.Go(n),this.mergeContents(n,o)):n=o),i[e]=n}return new ri(i,this.keys,this.overrides,void 0,this.logService)}mergeContents(e,t){for(const i of Object.keys(t))i in e&&Wt.Gv(e[i])&&Wt.Gv(t[i])?this.mergeContents(e[i],t[i]):e[i]=L.Go(t[i])}getContentsForOverrideIdentifer(e){let t=null,i=null;const n=e=>{e&&(i?this.mergeContents(i,e):i=L.Go(e))};for(const i of this.overrides)1===i.identifiers.length&&i.identifiers[0]===e?t=i.contents:i.identifiers.includes(e)&&n(i.contents);return n(t),i}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}addValue(e,t){this.updateValue(e,t,!0)}setValue(e,t){this.updateValue(e,t,!1)}removeValue(e){const t=this.keys.indexOf(e);-1!==t&&(this.keys.splice(t,1),(0,J.iB)(this.contents,e),ni.rC.test(e)&&this.overrides.splice(this.overrides.findIndex((t=>De.aI(t.identifiers,(0,ni.Gv)(e)))),1))}updateValue(e,t,i){(0,J.kW)(this.contents,e,t,(e=>this.logService.error(e))),(i=i||-1===this.keys.indexOf(e))&&this.keys.push(e),ni.rC.test(e)&&this.overrides.push({identifiers:(0,ni.Gv)(e),keys:Object.keys(this.contents[e]),contents:(0,J.ad)(this.contents[e],(e=>this.logService.error(e)))})}}class ai{constructor(e,t){this._name=e,this.logService=t,this._raw=null,this._configurationModel=null,this._restrictedConfigurations=[]}get configurationModel(){return this._configurationModel||ri.createEmptyModel(this.logService)}parseRaw(e,t){this._raw=e;const{contents:i,keys:n,overrides:o,restricted:s,hasExcludedProperties:r}=this.doParseRaw(e,t);this._configurationModel=new ri(i,n,o,r?[e]:void 0,this.logService),this._restrictedConfigurations=s||[]}doParseRaw(e,t){const i=oi.O.as(ni.Fd.Configuration).getConfigurationProperties(),n=this.filter(e,i,!0,t);return e=n.raw,{contents:(0,J.ad)(e,(e=>this.logService.error(`Conflict in settings file ${this._name}: ${e}`))),keys:Object.keys(e),overrides:this.toOverrides(e,(e=>this.logService.error(`Conflict in settings file ${this._name}: ${e}`))),restricted:n.restricted,hasExcludedProperties:n.hasExcludedProperties}}filter(e,t,i,n){var o,s,r;let a=!1;if(!(null==n?void 0:n.scopes)&&!(null==n?void 0:n.skipRestricted)&&!(null===(o=null==n?void 0:n.exclude)||void 0===o?void 0:o.length))return{raw:e,restricted:[],hasExcludedProperties:a};const l={},d=[];for(const o in e)if(ni.rC.test(o)&&i){const i=this.filter(e[o],t,!1,n);l[o]=i.raw,a=a||i.hasExcludedProperties,d.push(...i.restricted)}else{const i=t[o],c=i?void 0!==i.scope?i.scope:3:void 0;(null==i?void 0:i.restricted)&&d.push(o),(null===(s=n.exclude)||void 0===s?void 0:s.includes(o))||!(null===(r=n.include)||void 0===r?void 0:r.includes(o))&&(void 0!==c&&void 0!==n.scopes&&!n.scopes.includes(c)||n.skipRestricted&&(null==i?void 0:i.restricted))?a=!0:l[o]=e[o]}return{raw:l,restricted:d,hasExcludedProperties:a}}toOverrides(e,t){const i=[];for(const n of Object.keys(e))if(ni.rC.test(n)){const o={};for(const t in e[n])o[t]=e[n][t];i.push({identifiers:(0,ni.Gv)(n),keys:Object.keys(o),contents:(0,J.ad)(o,t)})}return i}}class li{constructor(e,t,i,n,o,s,r,a,l,d,c,h,u){this.key=e,this.overrides=t,this._value=i,this.overrideIdentifiers=n,this.defaultConfiguration=o,this.policyConfiguration=s,this.applicationConfiguration=r,this.userConfiguration=a,this.localUserConfiguration=l,this.remoteUserConfiguration=d,this.workspaceConfiguration=c,this.folderConfigurationModel=h,this.memoryConfigurationModel=u}toInspectValue(e){return void 0!==(null==e?void 0:e.value)||void 0!==(null==e?void 0:e.override)||void 0!==(null==e?void 0:e.overrides)?e:void 0}get userInspectValue(){return this._userInspectValue||(this._userInspectValue=this.userConfiguration.inspect(this.key,this.overrides.overrideIdentifier)),this._userInspectValue}get user(){return this.toInspectValue(this.userInspectValue)}}class di{constructor(e,t,i,n,o,s,r,a,l,d){this._defaultConfiguration=e,this._policyConfiguration=t,this._applicationConfiguration=i,this._localUserConfiguration=n,this._remoteUserConfiguration=o,this._workspaceConfiguration=s,this._folderConfigurations=r,this._memoryConfiguration=a,this._memoryConfigurationByResource=l,this.logService=d,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new ii.fT,this._userConfiguration=null}getValue(e,t,i){return this.getConsolidatedConfigurationModel(e,t,i).getValue(e)}updateValue(e,t,i={}){let n;i.resource?(n=this._memoryConfigurationByResource.get(i.resource),n||(n=ri.createEmptyModel(this.logService),this._memoryConfigurationByResource.set(i.resource,n))):n=this._memoryConfiguration,void 0===t?n.removeValue(e):n.setValue(e,t),i.resource||(this._workspaceConsolidatedConfiguration=null)}inspect(e,t,i){const n=this.getConsolidatedConfigurationModel(e,t,i),o=this.getFolderConfigurationModelForResource(t.resource,i),s=t.resource&&this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration,r=new Set;for(const t of n.overrides)for(const i of t.identifiers)void 0!==n.getOverrideValue(e,i)&&r.add(i);return new li(e,t,n.getValue(e),r.size?[...r]:void 0,this._defaultConfiguration,this._policyConfiguration.isEmpty()?void 0:this._policyConfiguration,this.applicationConfiguration.isEmpty()?void 0:this.applicationConfiguration,this.userConfiguration,this.localUserConfiguration,this.remoteUserConfiguration,i?this._workspaceConfiguration:void 0,o||void 0,s)}get applicationConfiguration(){return this._applicationConfiguration}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration)),this._userConfiguration}get localUserConfiguration(){return this._localUserConfiguration}get remoteUserConfiguration(){return this._remoteUserConfiguration}getConsolidatedConfigurationModel(e,t,i){let n=this.getConsolidatedConfigurationModelForResource(t,i);return t.overrideIdentifier&&(n=n.override(t.overrideIdentifier)),this._policyConfiguration.isEmpty()||void 0===this._policyConfiguration.getValue(e)||(n=n.merge(this._policyConfiguration)),n}getConsolidatedConfigurationModelForResource({resource:e},t){let i=this.getWorkspaceConsolidatedConfiguration();if(t&&e){const n=t.getFolder(e);n&&(i=this.getFolderConsolidatedConfiguration(n.uri)||i);const o=this._memoryConfigurationByResource.get(e);o&&(i=i.merge(o))}return i}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.applicationConfiguration,this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration)),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(e){let t=this._foldersConsolidatedConfigurations.get(e);if(!t){const i=this.getWorkspaceConsolidatedConfiguration(),n=this._folderConfigurations.get(e);n?(t=i.merge(n),this._foldersConsolidatedConfigurations.set(e,t)):t=i}return t}getFolderConfigurationModelForResource(e,t){if(t&&e){const i=t.getFolder(e);if(i)return this._folderConfigurations.get(i.uri)}}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},policy:{contents:this._policyConfiguration.contents,overrides:this._policyConfiguration.overrides,keys:this._policyConfiguration.keys},application:{contents:this.applicationConfiguration.contents,overrides:this.applicationConfiguration.overrides,keys:this.applicationConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce(((e,t)=>{const{contents:i,overrides:n,keys:o}=this._folderConfigurations.get(t);return e.push([t,{contents:i,overrides:n,keys:o}]),e}),[])}}static parse(e,t){const i=this.parseConfigurationModel(e.defaults,t),n=this.parseConfigurationModel(e.policy,t),o=this.parseConfigurationModel(e.application,t),s=this.parseConfigurationModel(e.user,t),r=this.parseConfigurationModel(e.workspace,t),a=e.folders.reduce(((e,i)=>(e.set(l.r.revive(i[0]),this.parseConfigurationModel(i[1],t)),e)),new ii.fT);return new di(i,n,o,s,ri.createEmptyModel(t),r,a,ri.createEmptyModel(t),new ii.fT,t)}static parseConfigurationModel(e,t){return new ri(e.contents,e.keys,e.overrides,void 0,t)}}class ci{constructor(e,t,i,n,o){this.change=e,this.previous=t,this.currentConfiguraiton=i,this.currentWorkspace=n,this.logService=o,this._marker="\n",this._markerCode1=this._marker.charCodeAt(0),this._markerCode2=".".charCodeAt(0),this.affectedKeys=new Set,this._previousConfiguration=void 0;for(const t of e.keys)this.affectedKeys.add(t);for(const[,t]of e.overrides)for(const e of t)this.affectedKeys.add(e);this._affectsConfigStr=this._marker;for(const e of this.affectedKeys)this._affectsConfigStr+=e+this._marker}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=di.parse(this.previous.data,this.logService)),this._previousConfiguration}affectsConfiguration(e,t){var i;const n=this._marker+e,o=this._affectsConfigStr.indexOf(n);if(o<0)return!1;const s=o+n.length;if(s>=this._affectsConfigStr.length)return!1;const r=this._affectsConfigStr.charCodeAt(s);if(r!==this._markerCode1&&r!==this._markerCode2)return!1;if(t){const n=this.previousConfiguration?this.previousConfiguration.getValue(e,t,null===(i=this.previous)||void 0===i?void 0:i.workspace):void 0,o=this.currentConfiguraiton.getValue(e,t,this.currentWorkspace);return!L.aI(n,o)}return!0}}var hi=i(37043);const ui={kind:0},gi={kind:1};class pi{constructor(e,t,i){var n;this._log=i,this._defaultKeybindings=e,this._defaultBoundCommands=new Map;for(const t of e){const e=t.command;e&&"-"!==e.charAt(0)&&this._defaultBoundCommands.set(e,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=pi.handleRemovals([].concat(e).concat(t));for(let e=0,t=this._keybindings.length;e=0;e--){const n=i[e];if(n.command===t.command)continue;let o=!0;for(let e=1;e=0;e--){const n=i[e];if(t.contextMatchesRules(n.when))return n}return i[i.length-1]}resolve(e,t,i){const n=[...t,i];this._log(`| Resolving ${n}`);const o=this._map.get(n[0]);if(void 0===o)return this._log("\\ No keybinding entries."),ui;let s=null;if(n.length<2)s=o;else{s=[];for(let e=0,t=o.length;et.chords.length)continue;let i=!0;for(let e=1;e=0;i--){const n=t[i];if(pi._contextMatchesRules(e,n.when))return n}return null}static _contextMatchesRules(e,t){return!t||t.evaluate(e)}}function mi(e){return e?`${e.serialize()}`:"no when condition"}function fi(e){return e.extensionId?e.isBuiltinExtension?`built-in extension ${e.extensionId}`:`user extension ${e.extensionId}`:e.isDefault?"built-in":"user"}const vi=/^(cursor|delete|undo|redo|tab|editor\.action\.clipboard)/;class _i extends r.jG{get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:be.Jh.None}get inChordMode(){return this._currentChords.length>0}constructor(e,t,i,n,o){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=i,this._notificationService=n,this._logService=o,this._onDidUpdateKeybindings=this._register(new be.vl),this._currentChords=[],this._currentChordChecker=new Vt.vb,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=bi.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new Vt.pc,this._currentlyDispatchingCommandId=null,this._logging=!1}dispose(){super.dispose()}_log(e){this._logging&&this._logService.info(`[KeybindingService]: ${e}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(e,t){const i=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService);if(i)return i.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){this._log("/ Soft dispatching keyboard event");const i=this.resolveKeyboardEvent(e);if(i.hasMultipleChords())return console.warn("keyboard event should not be mapped to multiple chords"),ui;const[n]=i.getDispatchChords();if(null===n)return this._log("\\ Keyboard event cannot be dispatched"),ui;const o=this._contextKeyService.getContext(t),s=this._currentChords.map((({keypress:e})=>e));return this._getResolver().resolve(o,s,n)}_scheduleLeaveChordMode(){const e=Date.now();this._currentChordChecker.cancelAndSet((()=>{this._documentHasFocus()?Date.now()-e>5e3&&this._leaveChordMode():this._leaveChordMode()}),500)}_expectAnotherChord(e,t){switch(this._currentChords.push({keypress:e,label:t}),this._currentChords.length){case 0:throw(0,Re.iH)("impossible");case 1:this._currentChordStatusMessage=this._notificationService.status(Oe.k("first.chord","({0}) was pressed. Waiting for second key of chord...",t));break;default:{const e=this._currentChords.map((({label:e})=>e)).join(", ");this._currentChordStatusMessage=this._notificationService.status(Oe.k("next.chord","({0}) was pressed. Waiting for next key of chord...",e))}}this._scheduleLeaveChordMode(),hi.M.enabled&&hi.M.disable()}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChords=[],hi.M.enable()}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){const i=this.resolveKeyboardEvent(e),[n]=i.getSingleModifierDispatchChords();if(n)return this._ignoreSingleModifiers.has(n)?(this._log(`+ Ignoring single modifier ${n} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=bi.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=bi.EMPTY,null===this._currentSingleModifier?(this._log(`+ Storing single modifier for possible chord ${n}.`),this._currentSingleModifier=n,this._currentSingleModifierClearTimeout.cancelAndSet((()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null}),300),!1):n===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${n} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(i,t,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${n}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[o]=i.getChords();return this._ignoreSingleModifiers=new bi(o),null!==this._currentSingleModifier&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(e,t,i=!1){var n;let o=!1;if(e.hasMultipleChords())return console.warn("Unexpected keyboard event mapped to multiple chords"),!1;let s=null,r=null;if(i){const[t]=e.getSingleModifierDispatchChords();s=t,r=t?[t]:[]}else[s]=e.getDispatchChords(),r=this._currentChords.map((({keypress:e})=>e));if(null===s)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),o;const a=this._contextKeyService.getContext(t),l=e.getLabel(),d=this._getResolver().resolve(a,r,s);switch(d.kind){case 0:if(this._logService.trace("KeybindingService#dispatch",l,"[ No matching keybinding ]"),this.inChordMode){const e=this._currentChords.map((({label:e})=>e)).join(", ");this._log(`+ Leaving multi-chord mode: Nothing bound to "${e}, ${l}".`),this._notificationService.status(Oe.k("missing.chord","The key combination ({0}, {1}) is not a command.",e,l),{hideAfter:1e4}),this._leaveChordMode(),o=!0}return o;case 1:return this._logService.trace("KeybindingService#dispatch",l,"[ Several keybindings match - more chords needed ]"),o=!0,this._expectAnotherChord(s,l),this._log(1===this._currentChords.length?"+ Entering multi-chord mode...":"+ Continuing multi-chord mode..."),o;case 2:if(this._logService.trace("KeybindingService#dispatch",l,`[ Will dispatch command ${d.commandId} ]`),null===d.commandId||""===d.commandId){if(this.inChordMode){const e=this._currentChords.map((({label:e})=>e)).join(", ");this._log(`+ Leaving chord mode: Nothing bound to "${e}, ${l}".`),this._notificationService.status(Oe.k("missing.chord","The key combination ({0}, {1}) is not a command.",e,l),{hideAfter:1e4}),this._leaveChordMode(),o=!0}}else{this.inChordMode&&this._leaveChordMode(),d.isBubble||(o=!0),this._log(`+ Invoking command ${d.commandId}.`),this._currentlyDispatchingCommandId=d.commandId;try{void 0===d.commandArgs?this._commandService.executeCommand(d.commandId).then(void 0,(e=>this._notificationService.warn(e))):this._commandService.executeCommand(d.commandId,d.commandArgs).then(void 0,(e=>this._notificationService.warn(e)))}finally{this._currentlyDispatchingCommandId=null}vi.test(d.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:d.commandId,from:"keybinding",detail:null!==(n=e.getUserSettingsLabel())&&void 0!==n?n:void 0})}return o}}mightProducePrintableCharacter(e){return!e.ctrlKey&&!e.metaKey&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30)}}class bi{constructor(e){this._ctrlKey=!!e&&e.ctrlKey,this._shiftKey=!!e&&e.shiftKey,this._altKey=!!e&&e.altKey,this._metaKey=!!e&&e.metaKey}has(e){switch(e){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}}bi.EMPTY=new bi(null);var wi=i(48421);class yi{constructor(e,t,i,n,o,s,r){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=e,this.chords=e?Ci(e.getDispatchChords()):[],e&&0===this.chords.length&&(this.chords=Ci(e.getSingleModifierDispatchChords())),this.bubble=!!t&&94===t.charCodeAt(0),this.command=this.bubble?t.substr(1):t,this.commandArgs=i,this.when=n,this.isDefault=o,this.extensionId=s,this.isBuiltinExtension=r}}function Ci(e){const t=[];for(let i=0,n=e.length;ithis._getLabel(e)))}getAriaLabel(){return Si.r0.toLabel(this._os,this._chords,(e=>this._getAriaLabel(e)))}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:Si.rr.toLabel(this._os,this._chords,(e=>this._getElectronAccelerator(e)))}getUserSettingsLabel(){return Si.G$.toLabel(this._os,this._chords,(e=>this._getUserSettingsLabel(e)))}hasMultipleChords(){return this._chords.length>1}getChords(){return this._chords.map((e=>this._getChord(e)))}_getChord(e){return new qt.FW(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchChords(){return this._chords.map((e=>this._getChordDispatch(e)))}getSingleModifierDispatchChords(){return this._chords.map((e=>this._getSingleModifierChordDispatch(e)))}}class Li extends xi{constructor(e,t){super(t,e)}_keyCodeToUILabel(e){if(2===this._os)switch(e){case 15:return"←";case 16:return"↑";case 17:return"→";case 18:return"↓"}return ki.YM.toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?"":ki.YM.toString(e.keyCode)}_getElectronAccelerator(e){return ki.YM.toElectronAccelerator(e.keyCode)}_getUserSettingsLabel(e){if(e.isDuplicateModifierCase())return"";const t=ki.YM.toUserSettingsUS(e.keyCode);return t?t.toLowerCase():t}_getChordDispatch(e){return Li.getDispatchStr(e)}static getDispatchStr(e){if(e.isModifierKey())return null;let t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=ki.YM.toString(e.keyCode),t}_getSingleModifierChordDispatch(e){return 5!==e.keyCode||e.shiftKey||e.altKey||e.metaKey?4!==e.keyCode||e.ctrlKey||e.altKey||e.metaKey?6!==e.keyCode||e.ctrlKey||e.shiftKey||e.metaKey?57!==e.keyCode||e.ctrlKey||e.shiftKey||e.altKey?null:"meta":"alt":"shift":"ctrl"}static _scanCodeToKeyCode(e){const t=ki.Fo[e];if(-1!==t)return t;switch(e){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 88;case 52:return 86;case 53:return 92;case 54:return 94;case 55:return 93;case 56:return 0;case 57:return 85;case 58:return 95;case 59:return 91;case 60:return 87;case 61:return 89;case 62:return 90;case 106:return 97}return 0}static _toKeyCodeChord(e){if(!e)return null;if(e instanceof qt.dG)return e;const t=this._scanCodeToKeyCode(e.scanCode);return 0===t?null:new qt.dG(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,t)}static resolveKeybinding(e,t){const i=Ci(e.chords.map((e=>this._toKeyCodeChord(e))));return i.length>0?[new Li(i,t)]:[]}}var Di=i(8377),Ei=i(44023),Ii=i(76243),Ni=i(26851),Mi=i(45933),Ai=i(22467),Ti=i(84657),Ri=i(83958),Pi=i(53720),Oi=i(18019);let Fi=[],Bi=[],Wi=[];function Hi(e,t=!1){!function(e,t,i){const n=function(e,t){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:false,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?(0,Ri.qg)(e.filepattern.toLowerCase()):void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(Oi.SA.sep)>=0}}(e);Fi.push(n),n.userConfigured?Wi.push(n):Bi.push(n),i&&!n.userConfigured&&Fi.forEach((e=>{e.mime===n.mime||e.userConfigured||(n.extension&&e.extension===n.extension&&console.warn(`Overwriting extension <<${n.extension}>> to now point to mime <<${n.mime}>>`),n.filename&&e.filename===n.filename&&console.warn(`Overwriting filename <<${n.filename}>> to now point to mime <<${n.mime}>>`),n.filepattern&&e.filepattern===n.filepattern&&console.warn(`Overwriting filepattern <<${n.filepattern}>> to now point to mime <<${n.mime}>>`),n.firstline&&e.firstline===n.firstline&&console.warn(`Overwriting firstline <<${n.firstline}>> to now point to mime <<${n.mime}>>`))}))}(e,0,t)}function Vi(e,t,i){var n;let o,s,r;for(let a=i.length-1;a>=0;a--){const l=i[a];if(t===l.filenameLowercase){o=l;break}if(l.filepattern&&(!s||l.filepattern.length>s.filepattern.length)){const i=l.filepatternOnPath?e:t;(null===(n=l.filepatternLowercase)||void 0===n?void 0:n.call(l,i))&&(s=l)}l.extension&&(!r||l.extension.length>r.extension.length)&&t.endsWith(l.extensionLowercase)&&(r=l)}return o||s||r||void 0}const zi=Object.prototype.hasOwnProperty,ji="vs.editor.nullLanguage";class Ui{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(ji,0),this._register(P.vH,1),this._nextLanguageId=2}_register(e,t){this._languageIdToLanguage[t]=e,this._languageToLanguageId.set(e,t)}register(e){if(this._languageToLanguageId.has(e))return;const t=this._nextLanguageId++;this._register(e,t)}encodeLanguageId(e){return this._languageToLanguageId.get(e)||0}decodeLanguageId(e){return this._languageIdToLanguage[e]||ji}}class $i extends r.jG{constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new be.vl),this.onDidChange=this._onDidChange.event,$i.instanceCount++,this._warnOnOverwrite=t,this.languageIdCodec=new Ui,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(P.W6.onDidChangeLanguages((e=>{this._initializeFromRegistry()}))))}dispose(){$i.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Fi=Fi.filter((e=>e.userConfigured)),Bi=[];const e=[].concat(P.W6.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach((e=>{const t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach((e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier})),t.mimetypes.forEach((e=>{this._mimeTypesMap[e]=t.identifier}))})),oi.O.as(ni.Fd.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(e){const t=e.id;let i;zi.call(this._languages,t)?i=this._languages[t]:(this.languageIdCodec.register(t),i={identifier:t,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[t]=i),this._mergeLanguage(i,e)}_mergeLanguage(e,t){const i=t.id;let n=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),n=t.mimetypes[0]),n||(n=`text/x-${i}`,e.mimetypes.push(n)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(const e of t.extensions)Hi({id:i,mime:n,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(const o of t.filenames)Hi({id:i,mime:n,filename:o},this._warnOnOverwrite),e.filenames.push(o);if(Array.isArray(t.filenamePatterns))for(const e of t.filenamePatterns)Hi({id:i,mime:n,filepattern:e},this._warnOnOverwrite);if("string"==typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{const t=new RegExp(e);(0,a.eY)(t)||Hi({id:i,mime:n,firstline:t},this._warnOnOverwrite)}catch(i){console.warn(`[${t.id}]: Invalid regular expression \`${e}\`: `,i)}}e.aliases.push(i);let o=null;if(void 0!==t.aliases&&Array.isArray(t.aliases)&&(o=0===t.aliases.length?[null]:t.aliases),null!==o)for(const t of o)t&&0!==t.length&&e.aliases.push(t);const s=null!==o&&o.length>0;if(s&&null===o[0]);else{const t=(s?o[0]:null)||i;!s&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration),t.icon&&e.icons.push(t.icon)}isRegisteredLanguageId(e){return!!e&&zi.call(this._languages,e)}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(e){const t=e.toLowerCase();return zi.call(this._lowercaseNameMap,t)?this._lowercaseNameMap[t]:null}getLanguageIdByMimeType(e){return e&&zi.call(this._mimeTypesMap,e)?this._mimeTypesMap[e]:null}guessLanguageIdByFilepathOrFirstLine(e,t){return e||t?function(e,t){return function(e,t){let i;if(e)switch(e.scheme){case _e.ny.file:i=e.fsPath;break;case _e.ny.data:i=Ai.B6.parseMetaData(e).get(Ai.B6.META_DATA_LABEL);break;case _e.ny.vscodeNotebookCell:i=void 0;break;default:i=e.path}if(!i)return[{id:"unknown",mime:Pi.K.unknown}];i=i.toLowerCase();const n=(0,Oi.P8)(i),o=Vi(i,n,Wi);if(o)return[o,{id:P.vH,mime:Pi.K.text}];const s=Vi(i,n,Bi);if(s)return[s,{id:P.vH,mime:Pi.K.text}];if(t){const e=function(e){if((0,a.LU)(e)&&(e=e.substr(1)),e.length>0)for(let t=Fi.length-1;t>=0;t--){const i=Fi[t];if(!i.firstline)continue;const n=e.match(i.firstline);if(n&&n.length>0)return i}}(t);if(e)return[e,{id:P.vH,mime:Pi.K.text}]}return[{id:"unknown",mime:Pi.K.unknown}]}(e,t).map((e=>e.id))}(e,t):[]}}$i.instanceCount=0;class Ki extends r.jG{constructor(e=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new be.vl),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new be.vl),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new be.vl({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,Ki.instanceCount++,this._registry=this._register(new $i(!0,e)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange((()=>this._onDidChange.fire())))}dispose(){Ki.instanceCount--,super.dispose()}isRegisteredLanguageId(e){return this._registry.isRegisteredLanguageId(e)}getLanguageIdByLanguageName(e){return this._registry.getLanguageIdByLanguageName(e)}getLanguageIdByMimeType(e){return this._registry.getLanguageIdByMimeType(e)}guessLanguageIdByFilepathOrFirstLine(e,t){const i=this._registry.guessLanguageIdByFilepathOrFirstLine(e,t);return(0,De.Fy)(i,null)}createById(e){return new qi(this.onDidChange,(()=>this._createAndGetLanguageIdentifier(e)))}createByFilepathOrFirstLine(e,t){return new qi(this.onDidChange,(()=>{const i=this.guessLanguageIdByFilepathOrFirstLine(e,t);return this._createAndGetLanguageIdentifier(i)}))}_createAndGetLanguageIdentifier(e){return e&&this.isRegisteredLanguageId(e)||(e=P.vH),e}requestBasicLanguageFeatures(e){this._requestedBasicLanguages.has(e)||(this._requestedBasicLanguages.add(e),this._onDidRequestBasicLanguageFeatures.fire(e))}requestRichLanguageFeatures(e){this._requestedRichLanguages.has(e)||(this._requestedRichLanguages.add(e),this.requestBasicLanguageFeatures(e),A.dG.getOrCreate(e),this._onDidRequestRichLanguageFeatures.fire(e))}}Ki.instanceCount=0;class qi{constructor(e,t){this._onDidChangeLanguages=e,this._selector=t,this._listener=null,this._emitter=null,this.languageId=this._selector()}_dispose(){this._listener&&(this._listener.dispose(),this._listener=null),this._emitter&&(this._emitter.dispose(),this._emitter=null)}get onDidChange(){return this._listener||(this._listener=this._onDidChangeLanguages((()=>this._evaluate()))),this._emitter||(this._emitter=new be.vl({onDidRemoveLastListener:()=>{this._dispose()}})),this._emitter.event}_evaluate(){var e;const t=this._selector();t!==this.languageId&&(this.languageId=t,null===(e=this._emitter)||void 0===e||e.fire(this.languageId))}}var Gi=i(27969),Qi=i(22751),Zi=i(58067),Yi=i(9715),Xi=i(55893),Ji=i(30474),en=i(77439),tn=i(47971),nn=i(75239),on=i(26048),sn=i(19892),rn=i(58881),an=i(24594);const ln=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,dn=/(&)?(&)([^\s&])/g;var cn,hn;!function(e){e[e.Right=0]="Right",e[e.Left=1]="Left"}(cn||(cn={})),function(e){e[e.Above=0]="Above",e[e.Below=1]="Below"}(hn||(hn={}));class un extends en.E{constructor(e,t,i,n){e.classList.add("monaco-menu-container"),e.setAttribute("role","presentation");const o=document.createElement("div");o.classList.add("monaco-menu"),o.setAttribute("role","presentation"),super(o,{orientation:1,actionViewItemProvider:e=>this.doGetActionViewItem(e,i,s),context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,ariaRole:"menu",focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...wt.zx||wt.j9?[10]:[]],keyDown:!0}}),this.menuStyles=n,this.menuElement=o,this.actionsList.tabIndex=0,this.initializeOrUpdateStyleSheet(e,n),this._register(Ji.q.addTarget(o)),this._register((0,ve.ko)(o,ve.Bx.KEY_DOWN,(e=>{new Et.Z(e).equals(2)&&e.preventDefault()}))),i.enableMnemonics&&this._register((0,ve.ko)(o,ve.Bx.KEY_DOWN,(e=>{const t=e.key.toLocaleLowerCase();if(this.mnemonics.has(t)){ve.fs.stop(e,!0);const i=this.mnemonics.get(t);if(1===i.length&&(i[0]instanceof pn&&i[0].container&&this.focusItemByElement(i[0].container),i[0].onClick(e)),i.length>1){const e=i.shift();e&&e.container&&(this.focusItemByElement(e.container),i.push(e)),this.mnemonics.set(t,i)}}}))),wt.j9&&this._register((0,ve.ko)(o,ve.Bx.KEY_DOWN,(e=>{const t=new Et.Z(e);t.equals(14)||t.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),ve.fs.stop(e,!0)):(t.equals(13)||t.equals(12))&&(this.focusedItem=0,this.focusPrevious(),ve.fs.stop(e,!0))}))),this._register((0,ve.ko)(this.domNode,ve.Bx.MOUSE_OUT,(e=>{const t=e.relatedTarget;(0,ve.QX)(t,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),e.stopPropagation())}))),this._register((0,ve.ko)(this.actionsList,ve.Bx.MOUSE_OVER,(e=>{let t=e.target;if(t&&(0,ve.QX)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}}))),this._register(Ji.q.addTarget(this.actionsList)),this._register((0,ve.ko)(this.actionsList,Ji.B.Tap,(e=>{let t=e.initialTarget;if(t&&(0,ve.QX)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}})));const s={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new nn.MU(o,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const r=this.scrollableElement.getDomNode();r.style.position="",this.styleScrollElement(r,n),this._register((0,ve.ko)(o,Ji.B.Change,(e=>{ve.fs.stop(e,!0);const t=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:t-e.translationY})}))),this._register((0,ve.ko)(r,ve.Bx.MOUSE_UP,(e=>{e.preventDefault()})));const a=(0,ve.zk)(e);o.style.maxHeight=`${Math.max(10,a.innerHeight-e.getBoundingClientRect().top-35)}px`,t=t.filter(((e,n)=>{var o;if(null===(o=i.submenuIds)||void 0===o?void 0:o.has(e.id))return console.warn(`Found submenu cycle: ${e.id}`),!1;if(e instanceof Gi.wv){if(n===t.length-1||0===n)return!1;if(t[n-1]instanceof Gi.wv)return!1}return!0})),this.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter((e=>!(e instanceof mn))).forEach(((e,t,i)=>{e.updatePositionInSet(t+1,i.length)}))}initializeOrUpdateStyleSheet(e,t){this.styleSheet||((0,ve.Cl)(e)?this.styleSheet=(0,ve.li)(e):(un.globalStyleSheet||(un.globalStyleSheet=(0,ve.li)()),this.styleSheet=un.globalStyleSheet)),this.styleSheet.textContent=function(e,t){let i=`\n.monaco-menu {\n\tfont-size: 13px;\n\tborder-radius: 5px;\n\tmin-width: 160px;\n}\n\n${fn(on.W.menuSelection)}\n${fn(on.W.menuSubmenu)}\n\n.monaco-menu .monaco-action-bar {\n\ttext-align: right;\n\toverflow: hidden;\n\twhite-space: nowrap;\n}\n\n.monaco-menu .monaco-action-bar .actions-container {\n\tdisplay: flex;\n\tmargin: 0 auto;\n\tpadding: 0;\n\twidth: 100%;\n\tjustify-content: flex-end;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar.reverse .actions-container {\n\tflex-direction: row-reverse;\n}\n\n.monaco-menu .monaco-action-bar .action-item {\n\tcursor: pointer;\n\tdisplay: inline-block;\n\ttransition: transform 50ms ease;\n\tposition: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled {\n\tcursor: default;\n}\n\n.monaco-menu .monaco-action-bar .action-item .icon,\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar .action-label {\n\tfont-size: 11px;\n\tmargin-right: 4px;\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label,\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover {\n\tcolor: var(--vscode-disabledForeground);\n}\n\n/* Vertical actions */\n\n.monaco-menu .monaco-action-bar.vertical {\n\ttext-align: left;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tdisplay: block;\n\tborder-bottom: 1px solid var(--vscode-menu-separatorBackground);\n\tpadding-top: 1px;\n\tpadding: 30px;\n}\n\n.monaco-menu .secondary-actions .monaco-action-bar .action-label {\n\tmargin-left: 6px;\n}\n\n/* Action Items */\n.monaco-menu .monaco-action-bar .action-item.select-container {\n\toverflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */\n\tflex: 1;\n\tmax-width: 170px;\n\tmin-width: 60px;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin-right: 10px;\n}\n\n.monaco-menu .monaco-action-bar.vertical {\n\tmargin-left: 0;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tpadding: 0;\n\ttransform: none;\n\tdisplay: flex;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.active {\n\ttransform: none;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\tflex: 1 1 auto;\n\tdisplay: flex;\n\theight: 2em;\n\talign-items: center;\n\tposition: relative;\n\tmargin: 0 4px;\n\tborder-radius: 4px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .keybinding {\n\topacity: unset;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label {\n\tflex: 1 1 auto;\n\ttext-decoration: none;\n\tpadding: 0 1em;\n\tbackground: none;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .keybinding,\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tdisplay: inline-block;\n\tflex: 2 1 auto;\n\tpadding: 0 1em;\n\ttext-align: right;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon {\n\tfont-size: 16px !important;\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before {\n\tmargin-left: auto;\n\tmargin-right: -20px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator {\n\topacity: 0.4;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) {\n\tdisplay: inline-block;\n\tbox-sizing: border-box;\n\tmargin: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tposition: static;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu {\n\tposition: absolute;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\twidth: 100%;\n\theight: 0px !important;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator.text {\n\tpadding: 0.7em 1em 0.1em 1em;\n\tfont-weight: bold;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:hover {\n\tcolor: inherit;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tposition: absolute;\n\tvisibility: hidden;\n\twidth: 1em;\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check {\n\tvisibility: visible;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Context Menu */\n\n.context-view.monaco-menu-container {\n\toutline: 0;\n\tborder: none;\n\tanimation: fadeIn 0.083s linear;\n\t-webkit-app-region: no-drag;\n}\n\n.context-view.monaco-menu-container :focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical:focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical :focus {\n\toutline: 0;\n}\n\n.hc-black .context-view.monaco-menu-container,\n.hc-light .context-view.monaco-menu-container,\n:host-context(.hc-black) .context-view.monaco-menu-container,\n:host-context(.hc-light) .context-view.monaco-menu-container {\n\tbox-shadow: none;\n}\n\n.hc-black .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n.hc-light .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n:host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused,\n:host-context(.hc-light) .monaco-menu .monaco-action-bar.vertical .action-item.focused {\n\tbackground: none;\n}\n\n/* Vertical Action Bar Styles */\n\n.monaco-menu .monaco-action-bar.vertical {\n\tpadding: 4px 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\theight: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator),\n.monaco-menu .monaco-action-bar.vertical .keybinding {\n\tfont-size: inherit;\n\tpadding: 0 2em;\n\tmax-height: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tfont-size: inherit;\n\twidth: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tfont-size: inherit;\n\tmargin: 5px 0 !important;\n\tpadding: 0;\n\tborder-radius: 0;\n}\n\n.linux .monaco-menu .monaco-action-bar.vertical .action-label.separator,\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tmargin-left: 0;\n\tmargin-right: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tfont-size: 60%;\n\tpadding: 0 1.8em;\n}\n\n.linux .monaco-menu .monaco-action-bar.vertical .submenu-indicator,\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n\tmask-size: 10px 10px;\n\t-webkit-mask-size: 10px 10px;\n}\n\n.monaco-menu .action-item {\n\tcursor: default;\n}`;if(t){i+="\n\t\t\t/* Arrows */\n\t\t\t.monaco-scrollable-element > .scrollbar > .scra {\n\t\t\t\tcursor: pointer;\n\t\t\t\tfont-size: 11px !important;\n\t\t\t}\n\n\t\t\t.monaco-scrollable-element > .visible {\n\t\t\t\topacity: 1;\n\n\t\t\t\t/* Background rule added for IE9 - to allow clicks on dom node */\n\t\t\t\tbackground:rgba(0,0,0,0);\n\n\t\t\t\ttransition: opacity 100ms linear;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .invisible {\n\t\t\t\topacity: 0;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .invisible.fade {\n\t\t\t\ttransition: opacity 800ms linear;\n\t\t\t}\n\n\t\t\t/* Scrollable Content Inset Shadow */\n\t\t\t.monaco-scrollable-element > .shadow {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 3px;\n\t\t\t\theight: 3px;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 3px;\n\t\t\t\tleft: 0;\n\t\t\t\theight: 100%;\n\t\t\t\twidth: 3px;\n\t\t\t}\n\t\t\t.monaco-scrollable-element > .shadow.top-left-corner {\n\t\t\t\tdisplay: block;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\theight: 3px;\n\t\t\t\twidth: 3px;\n\t\t\t}\n\t\t";const t=e.scrollbarShadow;t&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .shadow.top {\n\t\t\t\t\tbox-shadow: ${t} 0 6px 6px -6px inset;\n\t\t\t\t}\n\n\t\t\t\t.monaco-scrollable-element > .shadow.left {\n\t\t\t\t\tbox-shadow: ${t} 6px 0 6px -6px inset;\n\t\t\t\t}\n\n\t\t\t\t.monaco-scrollable-element > .shadow.top.left {\n\t\t\t\t\tbox-shadow: ${t} 6px 6px 6px -6px inset;\n\t\t\t\t}\n\t\t\t`);const n=e.scrollbarSliderBackground;n&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider {\n\t\t\t\t\tbackground: ${n};\n\t\t\t\t}\n\t\t\t`);const o=e.scrollbarSliderHoverBackground;o&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider:hover {\n\t\t\t\t\tbackground: ${o};\n\t\t\t\t}\n\t\t\t`);const s=e.scrollbarSliderActiveBackground;s&&(i+=`\n\t\t\t\t.monaco-scrollable-element > .scrollbar > .slider.active {\n\t\t\t\t\tbackground: ${s};\n\t\t\t\t}\n\t\t\t`)}return i}(t,(0,ve.Cl)(e))}styleScrollElement(e,t){var i,n;const o=null!==(i=t.foregroundColor)&&void 0!==i?i:"",s=null!==(n=t.backgroundColor)&&void 0!==n?n:"",r=t.borderColor?`1px solid ${t.borderColor}`:"",a=t.shadowColor?`0 2px 8px ${t.shadowColor}`:"";e.style.outline=r,e.style.borderRadius="5px",e.style.color=o,e.style.backgroundColor=s,e.style.boxShadow=a}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(e){const t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()}setFocusedItem(e){for(let t=0;t{this.element&&(this._register((0,ve.ko)(this.element,ve.Bx.MOUSE_UP,(e=>{if(ve.fs.stop(e,!0),Xi.gm){if(new Yi.P((0,ve.zk)(this.element),e).rightButton)return;this.onClick(e)}else setTimeout((()=>{this.onClick(e)}),0)}))),this._register((0,ve.ko)(this.element,ve.Bx.CONTEXT_MENU,(e=>{ve.fs.stop(e,!0)}))))}),100),this._register(this.runOnceToEnableMouseUp)}render(e){super.render(e),this.element&&(this.container=e,this.item=(0,ve.BC)(this.element,(0,ve.$)("a.action-menu-item")),this._action.id===Gi.wv.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=(0,ve.BC)(this.item,(0,ve.$)("span.menu-item-check"+rn.L.asCSSSelector(on.W.menuSelection))),this.check.setAttribute("role","none"),this.label=(0,ve.BC)(this.item,(0,ve.$)("span.action-label")),this.options.label&&this.options.keybinding&&((0,ve.BC)(this.item,(0,ve.$)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked(),this.applyStyle())}blur(){super.blur(),this.applyStyle()}focus(){var e;super.focus(),null===(e=this.item)||void 0===e||e.focus(),this.applyStyle()}updatePositionInSet(e,t){this.item&&(this.item.setAttribute("aria-posinset",`${e}`),this.item.setAttribute("aria-setsize",`${t}`))}updateLabel(){var e;if(this.label&&this.options.label){(0,ve.w_)(this.label);let t=(0,an.pS)(this.action.label);if(t){const i=function(e){const t=ln,i=t.exec(e);if(!i)return e;const n=!i[1];return e.replace(t,n?"$2$3":"").trim()}(t);this.options.enableMnemonics||(t=i),this.label.setAttribute("aria-label",i.replace(/&&/g,"&"));const n=ln.exec(t);if(n){t=a.ih(t),dn.lastIndex=0;let i=dn.exec(t);for(;i&&i[1];)i=dn.exec(t);const o=e=>e.replace(/&&/g,"&");i?this.label.append(a.NB(o(t.substr(0,i.index))," "),(0,ve.$)("u",{"aria-hidden":"true"},i[3]),a.BO(o(t.substr(i.index+i[0].length))," ")):this.label.innerText=o(t).trim(),null===(e=this.item)||void 0===e||e.setAttribute("aria-keyshortcuts",(n[1]?n[1]:n[3]).toLocaleLowerCase())}else this.label.innerText=t.replace(/&&/g,"&").trim()}}}updateTooltip(){}updateClass(){this.cssClass&&this.item&&this.item.classList.remove(...this.cssClass.split(" ")),this.options.icon&&this.label?(this.cssClass=this.action.class||"",this.label.classList.add("icon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" ")),this.updateEnabled()):this.label&&this.label.classList.remove("icon")}updateEnabled(){this.action.enabled?(this.element&&(this.element.classList.remove("disabled"),this.element.removeAttribute("aria-disabled")),this.item&&(this.item.classList.remove("disabled"),this.item.removeAttribute("aria-disabled"),this.item.tabIndex=0)):(this.element&&(this.element.classList.add("disabled"),this.element.setAttribute("aria-disabled","true")),this.item&&(this.item.classList.add("disabled"),this.item.setAttribute("aria-disabled","true")))}updateChecked(){if(!this.item)return;const e=this.action.checked;this.item.classList.toggle("checked",!!e),void 0!==e?(this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked",e?"true":"false")):(this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked",""))}getMnemonic(){return this.mnemonic}applyStyle(){const e=this.element&&this.element.classList.contains("focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,i=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,n=e&&this.menuStyle.selectionBorderColor?`1px solid ${this.menuStyle.selectionBorderColor}`:"",o=e&&this.menuStyle.selectionBorderColor?"-1px":"";this.item&&(this.item.style.color=null!=t?t:"",this.item.style.backgroundColor=null!=i?i:"",this.item.style.outline=n,this.item.style.outlineOffset=o),this.check&&(this.check.style.color=null!=t?t:"")}}class pn extends gn{constructor(e,t,i,n,o){super(e,e,n,o),this.submenuActions=t,this.parentData=i,this.submenuOptions=n,this.mysubmenu=null,this.submenuDisposables=this._register(new r.Cm),this.mouseOver=!1,this.expandDirection=n&&void 0!==n.expandDirection?n.expandDirection:{horizontal:cn.Right,vertical:hn.Below},this.showScheduler=new Vt.uC((()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))}),250),this.hideScheduler=new Vt.uC((()=>{this.element&&!(0,ve.QX)((0,ve.bq)(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))}),750)}render(e){super.render(e),this.element&&(this.item&&(this.item.classList.add("monaco-submenu-item"),this.item.tabIndex=0,this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=(0,ve.BC)(this.item,(0,ve.$)("span.submenu-indicator"+rn.L.asCSSSelector(on.W.menuSubmenu))),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register((0,ve.ko)(this.element,ve.Bx.KEY_UP,(e=>{const t=new Et.Z(e);(t.equals(17)||t.equals(3))&&(ve.fs.stop(e,!0),this.createSubmenu(!0))}))),this._register((0,ve.ko)(this.element,ve.Bx.KEY_DOWN,(e=>{const t=new Et.Z(e);(0,ve.bq)()===this.item&&(t.equals(17)||t.equals(3))&&ve.fs.stop(e,!0)}))),this._register((0,ve.ko)(this.element,ve.Bx.MOUSE_OVER,(e=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())}))),this._register((0,ve.ko)(this.element,ve.Bx.MOUSE_LEAVE,(e=>{this.mouseOver=!1}))),this._register((0,ve.ko)(this.element,ve.Bx.FOCUS_OUT,(e=>{this.element&&!(0,ve.QX)((0,ve.bq)(),this.element)&&this.hideScheduler.schedule()}))),this._register(this.parentData.parent.onScroll((()=>{this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))}))))}updateEnabled(){}onClick(e){ve.fs.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(e){if(this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch(e){}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(e,t,i,n){const o={top:0,left:0};return o.left=Tt(e.width,t.width,{position:n.horizontal===cn.Right?0:1,offset:i.left,size:i.width}),o.left>=i.left&&o.left{new Et.Z(e).equals(15)&&(ve.fs.stop(e,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))}))),this.submenuDisposables.add((0,ve.ko)(this.submenuContainer,ve.Bx.KEY_DOWN,(e=>{new Et.Z(e).equals(15)&&ve.fs.stop(e,!0)}))),this.submenuDisposables.add(this.parentData.submenu.onDidCancel((()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)}))),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(e){var t;this.item&&(null===(t=this.item)||void 0===t||t.setAttribute("aria-expanded",e))}applyStyle(){super.applyStyle();const e=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=null!=e?e:"")}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class mn extends tn.Z4{constructor(e,t,i,n){super(e,t,i),this.menuStyles=n}render(e){super.render(e),this.label&&(this.label.style.borderBottomColor=this.menuStyles.separatorColor?`${this.menuStyles.separatorColor}`:"")}}function fn(e){const t=(0,sn.J)()[e.id];return`.codicon-${e.id}:before { content: '\\${t.toString(16)}'; }`}var vn=i(25654);class _n{constructor(e,t,i,n){this.contextViewService=e,this.telemetryService=t,this.notificationService=i,this.keybindingService=n,this.focusToReturn=null,this.lastContainer=null,this.block=null,this.blockDisposable=null,this.options={blockMouse:!0}}configure(e){this.options=e}showContextMenu(e){const t=e.getActions();if(!t.length)return;let i;this.focusToReturn=(0,ve.bq)();const n=(0,ve.sb)(e.domForShadowRoot)?e.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>e.getAnchor(),canRelayout:!1,anchorAlignment:e.anchorAlignment,anchorAxisAlignment:e.anchorAxisAlignment,render:n=>{var o;this.lastContainer=n;const s=e.getMenuClassName?e.getMenuClassName():"";s&&(n.className+=" "+s),this.options.blockMouse&&(this.block=n.appendChild((0,ve.$)(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",null===(o=this.blockDisposable)||void 0===o||o.dispose(),this.blockDisposable=(0,ve.ko)(this.block,ve.Bx.MOUSE_DOWN,(e=>e.stopPropagation())));const a=new r.Cm,l=e.actionRunner||new Gi.LN;l.onWillRun((t=>this.onActionRun(t,!e.skipTelemetry)),this,a),l.onDidRun(this.onDidActionRun,this,a),i=new un(n,t,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:l,getKeyBinding:e.getKeyBinding?e.getKeyBinding:e=>this.keybindingService.lookupKeybinding(e.id)},vn.XS),i.onDidCancel((()=>this.contextViewService.hideContextView(!0)),null,a),i.onDidBlur((()=>this.contextViewService.hideContextView(!0)),null,a);const d=(0,ve.zk)(n);return a.add((0,ve.ko)(d,ve.Bx.BLUR,(()=>this.contextViewService.hideContextView(!0)))),a.add((0,ve.ko)(d,ve.Bx.MOUSE_DOWN,(e=>{if(e.defaultPrevented)return;const t=new Yi.P(d,e);let i=t.target;if(!t.rightButton){for(;i;){if(i===n)return;i=i.parentElement}this.contextViewService.hideContextView(!0)}}))),(0,r.qE)(a,i)},focus:()=>{null==i||i.focus(!!e.autoSelectFirstItem)},onHide:t=>{var i,n,o;null===(i=e.onHide)||void 0===i||i.call(e,!!t),this.block&&(this.block.remove(),this.block=null),null===(n=this.blockDisposable)||void 0===n||n.dispose(),this.blockDisposable=null,this.lastContainer&&((0,ve.bq)()===this.lastContainer||(0,ve.QX)((0,ve.bq)(),this.lastContainer))&&(null===(o=this.focusToReturn)||void 0===o||o.focus()),this.lastContainer=null}},n,!!n)}onActionRun(e,t){t&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1)}onDidActionRun(e){e.error&&!(0,Re.MB)(e.error)&&this.notificationService.error(e.error)}}var bn=function(e,t){return function(i,n){t(i,n,e)}};let wn=class extends r.jG{get contextMenuHandler(){return this._contextMenuHandler||(this._contextMenuHandler=new _n(this.contextViewService,this.telemetryService,this.notificationService,this.keybindingService)),this._contextMenuHandler}constructor(e,t,i,n,o,s){super(),this.telemetryService=e,this.notificationService=t,this.contextViewService=i,this.keybindingService=n,this.menuService=o,this.contextKeyService=s,this._contextMenuHandler=void 0,this._onDidShowContextMenu=this._store.add(new be.vl),this.onDidShowContextMenu=this._onDidShowContextMenu.event,this._onDidHideContextMenu=this._store.add(new be.vl)}configure(e){this.contextMenuHandler.configure(e)}showContextMenu(e){e=yn.transform(e,this.menuService,this.contextKeyService),this.contextMenuHandler.showContextMenu({...e,onHide:t=>{var i;null===(i=e.onHide)||void 0===i||i.call(e,t),this._onDidHideContextMenu.fire()}}),ve.Di.getInstance().resetKeyStatus(),this._onDidShowContextMenu.fire()}};var yn;wn=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([bn(0,Ii.k),bn(1,Be.Ot),bn(2,ht.l),bn(3,pt.b),bn(4,Zi.ez),bn(5,ke.fN)],wn),function(e){e.transform=function(e,t,i){if(!((n=e)&&n.menuId instanceof Zi.D8))return e;var n;const{menuId:o,menuActionOptions:s,contextKeyService:r}=e;return{...e,getActions:()=>{const n=[];if(o){const e=t.createMenu(o,null!=r?r:i);(0,Qi.$u)(e,s,n),e.dispose()}return e.getActions?Gi.wv.join(e.getActions(),n):n}}}}(yn||(yn={}));var Cn,kn=i(50180);!function(e){e[e.API=0]="API",e[e.USER=1]="USER"}(Cn||(Cn={}));var Sn=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},xn=function(e,t){return function(i,n){t(i,n,e)}};let Ln=class{constructor(e){this._commandService=e}async open(e,t){if(!(0,_e.v$)(e,_e.ny.command))return!1;if(!(null==t?void 0:t.allowCommands))return!0;if("string"==typeof e&&(e=l.r.parse(e)),Array.isArray(t.allowCommands)&&!t.allowCommands.includes(e.path))return!0;let i=[];try{i=(0,kn.qg)(decodeURIComponent(e.query))}catch(t){try{i=(0,kn.qg)(e.query)}catch(e){}}return Array.isArray(i)||(i=[i]),await this._commandService.executeCommand(e.path,...i),!0}};Ln=Sn([xn(0,ti.d)],Ln);let Dn=class{constructor(e){this._editorService=e}async open(e,t){"string"==typeof e&&(e=l.r.parse(e));const{selection:i,uri:n}=(0,vt.e)(e);return(e=n).scheme===_e.ny.file&&(e=(0,Ai.Fd)(e)),await this._editorService.openCodeEditor({resource:e,options:{selection:i,source:(null==t?void 0:t.fromUserGesture)?Cn.USER:Cn.API,...null==t?void 0:t.editorOptions}},this._editorService.getFocusedCodeEditor(),null==t?void 0:t.openToSide),!0}};Dn=Sn([xn(0,x.T)],Dn);let En=class{constructor(e,t){this._openers=new we.w,this._validators=new we.w,this._resolvers=new we.w,this._resolvedUriTargets=new ii.fT((e=>e.with({path:null,fragment:null,query:null}).toString())),this._externalOpeners=new we.w,this._defaultExternalOpener={openExternal:async e=>((0,_e.fV)(e,_e.ny.http,_e.ny.https)?ve.CE(e):s.G.location.href=e,!0)},this._openers.push({open:async(e,t)=>!(!(null==t?void 0:t.openExternal)&&!(0,_e.fV)(e,_e.ny.mailto,_e.ny.http,_e.ny.https,_e.ny.vsls)||(await this._doOpenExternal(e,t),0))}),this._openers.push(new Ln(t)),this._openers.push(new Dn(e))}registerOpener(e){return{dispose:this._openers.unshift(e)}}async open(e,t){var i;const n="string"==typeof e?l.r.parse(e):e,o=null!==(i=this._resolvedUriTargets.get(n))&&void 0!==i?i:e;for(const e of this._validators)if(!await e.shouldOpen(o,t))return!1;for(const i of this._openers)if(await i.open(e,t))return!0;return!1}async resolveExternalUri(e,t){for(const i of this._resolvers)try{const n=await i.resolveExternalUri(e,t);if(n)return this._resolvedUriTargets.has(n.resolved)||this._resolvedUriTargets.set(n.resolved,e),n}catch(e){}throw new Error("Could not resolve external URI: "+e.toString())}async _doOpenExternal(e,t){const i="string"==typeof e?l.r.parse(e):e;let n,o;try{n=(await this.resolveExternalUri(i,t)).resolved}catch(e){n=i}if(o="string"==typeof e&&i.toString()===n.toString()?e:encodeURI(n.toString(!0)),null==t?void 0:t.allowContributedOpeners){const e="string"==typeof(null==t?void 0:t.allowContributedOpeners)?null==t?void 0:t.allowContributedOpeners:void 0;for(const t of this._externalOpeners)if(await t.openExternal(o,{sourceUri:i,preferredOpenerId:e},Bt.XO.None))return!0}return this._defaultExternalOpener.openExternal(o,{sourceUri:i},Bt.XO.None)}dispose(){this._validators.clear()}};En=Sn([xn(0,x.T),xn(1,ti.d)],En);var In=i(90304),Nn=i(27619),Mn=i(48295),An=i(88436),Tn=function(e,t){return function(i,n){t(i,n,e)}};let Rn=class extends r.jG{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new be.vl),this._markerDecorations=new ii.fT,e.getModels().forEach((e=>this._onModelAdded(e))),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach((e=>e.dispose())),this._markerDecorations.clear()}getMarker(e,t){const i=this._markerDecorations.get(e);return i&&i.getMarker(t)||null}_handleMarkerChange(e){e.forEach((e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)}))}_onModelAdded(e){const t=new Pn(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){var t;const i=this._markerDecorations.get(e.uri);i&&(i.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==_e.ny.inMemory&&e.uri.scheme!==_e.ny.internal&&e.uri.scheme!==_e.ny.vscode||null===(t=this._markerService)||void 0===t||t.read({resource:e.uri}).map((e=>e.owner)).forEach((t=>this._markerService.remove(t,[e.uri])))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});e.update(t)&&this._onDidChangeMarker.fire(e.model)}};Rn=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Tn(0,B.S),Tn(1,Nn.DR)],Rn);class Pn extends r.jG{constructor(e){super(),this.model=e,this._map=new ii.cO,this._register((0,r.s)((()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()})))}update(e){const{added:t,removed:i}=(0,An.Z)(new Set(this._map.keys()),new Set(e));if(0===t.length&&0===i.length)return!1;const n=i.map((e=>this._map.get(e))),o=t.map((e=>({range:this._createDecorationRange(this.model,e),options:this._createDecorationOption(e)}))),s=this.model.deltaDecorations(n,o);for(const e of i)this._map.delete(e);for(let e=0;e=t)return i;const n=e.getWordAtPosition(i.getStartPosition());n&&(i=new Xt.Q(i.startLineNumber,n.startColumn,i.endLineNumber,n.endColumn))}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&i.startLineNumber===i.endLineNumber){const n=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);n=0}}var On,Fn=i(80886),Bn=i(74774),Wn=i(12590),Hn=i(22344),Vn=i(54296),zn=function(e,t){return function(i,n){t(i,n,e)}};function jn(e){return e.toString()}class Un{constructor(e,t,i){this.model=e,this._modelEventListeners=new r.Cm,this.model=e,this._modelEventListeners.add(e.onWillDispose((()=>t(e)))),this._modelEventListeners.add(e.onDidChangeLanguage((t=>i(e,t))))}dispose(){this._modelEventListeners.dispose()}}const $n=wt.j9||wt.zx?1:2;class Kn{constructor(e,t,i,n,o,s,r,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=i,this.sharesUndoRedoStack=n,this.heapSize=o,this.sha1=s,this.versionId=r,this.alternativeVersionId=a}}let qn=On=class extends r.jG{constructor(e,t,i,n,o){super(),this._configurationService=e,this._resourcePropertiesService=t,this._undoRedoService=i,this._languageService=n,this._languageConfigurationService=o,this._onModelAdded=this._register(new be.vl),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new be.vl),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new be.vl),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration((e=>this._updateModelOptions(e)))),this._updateModelOptions(void 0)}static _readModelOptions(e,t){var i;let n=Wn.R.tabSize;if(e.editor&&void 0!==e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(n=t),n<1&&(n=1)}let o="tabSize";if(e.editor&&void 0!==e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(o=Math.max(t,1))}let s=Wn.R.insertSpaces;e.editor&&void 0!==e.editor.insertSpaces&&(s="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let r=$n;const a=e.eol;"\r\n"===a?r=2:"\n"===a&&(r=1);let l=Wn.R.trimAutoWhitespace;e.editor&&void 0!==e.editor.trimAutoWhitespace&&(l="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let d=Wn.R.detectIndentation;e.editor&&void 0!==e.editor.detectIndentation&&(d="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let c=Wn.R.largeFileOptimizations;e.editor&&void 0!==e.editor.largeFileOptimizations&&(c="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));let h=Wn.R.bracketPairColorizationOptions;return(null===(i=e.editor)||void 0===i?void 0:i.bracketPairColorization)&&"object"==typeof e.editor.bracketPairColorization&&(h={enabled:!!e.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!e.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:t,tabSize:n,indentSize:o,insertSpaces:s,detectIndentation:d,defaultEOL:r,trimAutoWhitespace:l,largeFileOptimizations:c,bracketPairColorizationOptions:h}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const i=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return i&&"string"==typeof i&&"auto"!==i?i:3===wt.OS||2===wt.OS?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!=typeof e||e}getCreationOptions(e,t,i){const n="string"==typeof e?e:e.languageId;let o=this._modelCreationOptionsByLanguageAndResource[n+t];if(!o){const e=this._configurationService.getValue("editor",{overrideIdentifier:n,resource:t}),s=this._getEOL(t,n);o=On._readModelOptions({editor:e,eol:s},i),this._modelCreationOptionsByLanguageAndResource[n+t]=o}return o}_updateModelOptions(e){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const i=Object.keys(this._models);for(let n=0,o=i.length;ne){const t=[];for(this._disposedModels.forEach((e=>{e.sharesUndoRedoStack||t.push(e)})),t.sort(((e,t)=>e.time-t.time));t.length>0&&this._disposedModelsHeapSize>e;){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,i,n){const o=this.getCreationOptions(t,i,n),s=new Bn.Bz(e,t,o,i,this._undoRedoService,this._languageService,this._languageConfigurationService);if(i&&this._disposedModels.has(jn(i))){const e=this._removeDisposedModel(i),t=this._undoRedoService.getElements(i),n=this._getSHA1Computer(),o=!!n.canComputeSHA1(s)&&n.computeSHA1(s)===e.sha1;if(o||e.sharesUndoRedoStack){for(const e of t.past)(0,Vn.Th)(e)&&e.matchesResource(i)&&e.setModel(s);for(const e of t.future)(0,Vn.Th)(e)&&e.matchesResource(i)&&e.setModel(s);this._undoRedoService.setElementsValidFlag(i,!0,(e=>(0,Vn.Th)(e)&&e.matchesResource(i))),o&&(s._overwriteVersionId(e.versionId),s._overwriteAlternativeVersionId(e.alternativeVersionId),s._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const r=jn(s.uri);if(this._models[r])throw new Error("ModelService: Cannot add model because it already exists!");const a=new Un(s,(e=>this._onWillDispose(e)),((e,t)=>this._onDidChangeLanguage(e,t)));return this._models[r]=a,a}createModel(e,t,i,n=!1){let o;return o=t?this._createModelData(e,t,i,n):this._createModelData(e,P.vH,i,n),this._onModelAdded.fire(o.model),o.model}getModels(){const e=[],t=Object.keys(this._models);for(let i=0,n=t.length;i0||t.future.length>0){for(const i of t.past)(0,Vn.Th)(i)&&i.matchesResource(e.uri)&&(o=!0,s+=i.heapSize(e.uri),i.setModel(e.uri));for(const i of t.future)(0,Vn.Th)(i)&&i.matchesResource(e.uri)&&(o=!0,s+=i.heapSize(e.uri),i.setModel(e.uri))}}const r=On.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,a=this._getSHA1Computer();if(o)if(n||!(s>r)&&a.canComputeSHA1(e))this._ensureDisposedModelsHeapSize(r-s),this._undoRedoService.setElementsValidFlag(e.uri,!1,(t=>(0,Vn.Th)(t)&&t.matchesResource(e.uri))),this._insertDisposedModel(new Kn(e.uri,i.model.getInitialUndoRedoSnapshot(),Date.now(),n,s,a.computeSHA1(e),e.getVersionId(),e.getAlternativeVersionId()));else{const e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else if(!n){const e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[t],i.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageId()+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(e,t){const i=t.oldLanguage,n=e.getLanguageId(),o=this.getCreationOptions(i,e.uri,e.isForSimpleWidget),s=this.getCreationOptions(n,e.uri,e.isForSimpleWidget);On._setModelOptionsForModel(e,s,o),this._onModelModeChanged.fire({model:e,oldLanguageId:i})}_getSHA1Computer(){return new Gn}};qn.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520,qn=On=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([zn(0,J.pG),zn(1,ei.J),zn(2,We.$D),zn(3,T.L),zn(4,R.JZ)],qn);class Gn{canComputeSHA1(e){return e.getValueLength()<=Gn.MAX_MODEL_SIZE}computeSHA1(e){const t=new Hn.v7,i=e.createSnapshot();let n;for(;n=i.read();)t.update(n);return t.digest()}}Gn.MAX_MODEL_SIZE=10485760;var Qn=i(71446),Zn={};Zn.styleTagTransform=w(),Zn.setAttributes=f(),Zn.insert=p().bind(null,"head"),Zn.domAPI=u(),Zn.insertStyleElement=_(),c()(Qn.A,Zn),Qn.A&&Qn.A.locals&&Qn.A.locals;var Yn=i(19381),Xn=i(73027),Jn=function(e,t){return function(i,n){t(i,n,e)}};let eo=class extends r.jG{constructor(e,t){super(),this.quickInputService=e,this.instantiationService=t,this.registry=oi.O.as(Yn.Fd.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(e="",t){this.doShowOrPick(e,!1,t)}doShowOrPick(e,t,i){var n,o,s,a;const[l,d]=this.getOrInstantiateProvider(e,null==i?void 0:i.enabledProviderPrefixes),c=this.visibleQuickAccess,h=null==c?void 0:c.descriptor;if(c&&d&&h===d)return e===d.prefix||(null==i?void 0:i.preserveValue)||(c.picker.value=e),void this.adjustValueSelection(c.picker,d,i);if(d&&!(null==i?void 0:i.preserveValue)){let t;if(c&&h&&h!==d){const e=c.value.substr(h.prefix.length);e&&(t=`${d.prefix}${e}`)}if(!t){const e=null==l?void 0:l.defaultFilterValue;e===Yn.aJ.LAST?t=this.lastAcceptedPickerValues.get(d):"string"==typeof e&&(t=`${d.prefix}${e}`)}"string"==typeof t&&(e=t)}const u=null===(n=null==c?void 0:c.picker)||void 0===n?void 0:n.valueSelection,g=null===(o=null==c?void 0:c.picker)||void 0===o?void 0:o.value,p=new r.Cm,m=p.add(this.quickInputService.createQuickPick());let f;m.value=e,this.adjustValueSelection(m,d,i),m.placeholder=null!==(s=null==i?void 0:i.placeholder)&&void 0!==s?s:null==d?void 0:d.placeholder,m.quickNavigate=null==i?void 0:i.quickNavigateConfiguration,m.hideInput=!!m.quickNavigate&&!c,("number"==typeof(null==i?void 0:i.itemActivation)||(null==i?void 0:i.quickNavigateConfiguration))&&(m.itemActivation=null!==(a=null==i?void 0:i.itemActivation)&&void 0!==a?a:Xn.C1.SECOND),m.contextKey=null==d?void 0:d.contextKey,m.filterValue=e=>e.substring(d?d.prefix.length:0),t&&(f=new Vt.Zv,p.add(be.Jh.once(m.onWillAccept)((e=>{e.veto(),m.hide()})))),p.add(this.registerPickerListeners(m,l,d,e,i));const v=p.add(new Bt.Qi);return l&&p.add(l.provide(m,v.token,null==i?void 0:i.providerOptions)),be.Jh.once(m.onDidHide)((()=>{0===m.selectedItems.length&&v.cancel(),p.dispose(),null==f||f.complete(m.selectedItems.slice(0))})),m.show(),u&&g===e&&(m.valueSelection=u),t?null==f?void 0:f.p:void 0}adjustValueSelection(e,t,i){var n;let o;o=(null==i?void 0:i.preserveValue)?[e.value.length,e.value.length]:[null!==(n=null==t?void 0:t.prefix.length)&&void 0!==n?n:0,e.value.length],e.valueSelection=o}registerPickerListeners(e,t,i,n,o){const s=new r.Cm,a=this.visibleQuickAccess={picker:e,descriptor:i,value:n};return s.add((0,r.s)((()=>{a===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)}))),s.add(e.onDidChangeValue((e=>{const[i]=this.getOrInstantiateProvider(e,null==o?void 0:o.enabledProviderPrefixes);i!==t?this.show(e,{enabledProviderPrefixes:null==o?void 0:o.enabledProviderPrefixes,preserveValue:!0,providerOptions:null==o?void 0:o.providerOptions}):a.value=e}))),i&&s.add(e.onDidAccept((()=>{this.lastAcceptedPickerValues.set(i,e.value)}))),s}getOrInstantiateProvider(e,t){const i=this.registry.getQuickAccessProvider(e);if(!i||t&&!(null==t?void 0:t.includes(i.prefix)))return[void 0,void 0];let n=this.mapProviderToDescriptor.get(i);return n||(n=this.instantiationService.createInstance(i.ctor),this.mapProviderToDescriptor.set(i,n)),[n,i]}};eo=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Jn(0,Xn.GK),Jn(1,Ee._Y)],eo);var to=i(86004),io=i(87492),no={};no.styleTagTransform=w(),no.setAttributes=f(),no.insert=p().bind(null,"head"),no.domAPI=u(),no.insertStyleElement=_(),c()(io.A,no),io.A&&io.A.locals&&io.A.locals;var oo=i(34061),so=i(91818),ro=i(94664),ao=i(88846);class lo{constructor(e){this.nodes=e}toString(){return this.nodes.map((e=>"string"==typeof e?e:e.label)).join("")}}!function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);s>3&&r&&Object.defineProperty(t,i,r)}([ao.B],lo.prototype,"toString",null);const co=/\[([^\]]+)\]\(((?:https?:\/\/|command:|file:)[^\)\s]+)(?: (["'])(.+?)(\3))?\)/gi,ho={},uo=new ro.n("quick-input-button-icon-");function go(e,t,i){let n=e.iconClass||function(e){if(!e)return;let t;const i=e.dark.toString();return ho[i]?t=ho[i]:(t=uo.nextId(),ve.Wt(`.${t}, .hc-light .${t}`,`background-image: ${ve.Tf(e.light||e.dark)}`),ve.Wt(`.vs-dark .${t}, .hc-black .${t}`,`background-image: ${ve.Tf(e.dark)}`),ho[i]=t),t}(e.iconPath);return e.alwaysVisible&&(n=n?`${n} always-visible`:"always-visible"),{id:t,label:"",tooltip:e.tooltip||"",class:n,enabled:!0,run:i}}var po=function(e,t){return function(i,n){t(i,n,e)}};const mo="inQuickInput",fo=new ke.N1(mo,!1,(0,Oe.k)("inQuickInput","Whether keyboard focus is inside the quick input control")),vo=ke.M$.has(mo),_o="quickInputType",bo=new ke.N1(_o,void 0,(0,Oe.k)("quickInputType","The type of the currently visible quick input")),wo="cursorAtEndOfQuickInputBox",yo=new ke.N1(wo,!1,(0,Oe.k)("cursorAtEndOfQuickInputBox","Whether the cursor in the quick input is at the end of the input box")),Co=ke.M$.has(wo),ko={iconClass:rn.L.asClassName(on.W.quickInputBack),tooltip:(0,Oe.k)("quickInput.back","Back"),handle:-1};class So extends r.jG{constructor(e){super(),this.ui=e,this._widgetUpdated=!1,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.buttonsUpdated=!1,this._toggles=[],this.togglesUpdated=!1,this.noValidationMessage=So.noPromptMessage,this._severity=Pe.A.Ignore,this.onDidTriggerButtonEmitter=this._register(new be.vl),this.onDidHideEmitter=this._register(new be.vl),this.onWillHideEmitter=this._register(new be.vl),this.onDisposeEmitter=this._register(new be.vl),this.visibleDisposables=this._register(new r.Cm),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(e){this._title=e,this.update()}get description(){return this._description}set description(e){this._description=e,this.update()}get step(){return this._steps}set step(e){this._steps=e,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update()}get contextKey(){return this._contextKey}set contextKey(e){this._contextKey=e,this.update()}get busy(){return this._busy}set busy(e){this._busy=e,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){const t=this._ignoreFocusOut!==e&&!wt.un;this._ignoreFocusOut=e&&!wt.un,t&&this.update()}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.buttonsUpdated=!0,this.update()}get toggles(){return this._toggles}set toggles(e){this._toggles=null!=e?e:[],this.togglesUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(e){this._validationMessage=e,this.update()}get severity(){return this._severity}set severity(e){this._severity=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton((e=>{-1!==this.buttons.indexOf(e)&&this.onDidTriggerButtonEmitter.fire(e)}))),this.ui.show(this),this.visible=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.toggles.length&&(this.togglesUpdated=!0),this.update())}hide(){this.visible&&this.ui.hide()}didHide(e=Xn.kF.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}willHide(e=Xn.kF.Other){this.onWillHideEmitter.fire({reason:e})}update(){var e,t;if(!this.visible)return;const i=this.getTitle();i&&this.ui.title.textContent!==i?this.ui.title.textContent=i:i||" "===this.ui.title.innerHTML||(this.ui.title.innerText=" ");const n=this.getDescription();if(this.ui.description1.textContent!==n&&(this.ui.description1.textContent=n),this.ui.description2.textContent!==n&&(this.ui.description2.textContent=n),this._widgetUpdated&&(this._widgetUpdated=!1,this._widget?ve.Ln(this.ui.widget,this._widget):ve.Ln(this.ui.widget)),this.busy&&!this.busyDelay&&(this.busyDelay=new Vt.pc,this.busyDelay.setIfNotSet((()=>{this.visible&&this.ui.progressBar.infinite()}),800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();const e=this.buttons.filter((e=>e===ko)).map(((e,t)=>go(e,`id-${t}`,(async()=>this.onDidTriggerButtonEmitter.fire(e)))));this.ui.leftActionBar.push(e,{icon:!0,label:!1}),this.ui.rightActionBar.clear();const t=this.buttons.filter((e=>e!==ko)).map(((e,t)=>go(e,`id-${t}`,(async()=>this.onDidTriggerButtonEmitter.fire(e)))));this.ui.rightActionBar.push(t,{icon:!0,label:!1})}if(this.togglesUpdated){this.togglesUpdated=!1;const i=null!==(t=null===(e=this.toggles)||void 0===e?void 0:e.filter((e=>e instanceof to.l)))&&void 0!==t?t:[];this.ui.inputBox.toggles=i}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const o=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==o&&(this._lastValidationMessage=o,ve.Ln(this.ui.message),function(e,t,i){ve.Ln(t);const n=function(e){const t=[];let i,n=0;for(;i=co.exec(e);){i.index-n>0&&t.push(e.substring(n,i.index));const[,o,s,,r]=i;r?t.push({label:o,href:s,title:r}):t.push({label:o,href:s}),n=i.index+i[0].length}return n{ve.sd(t)&&ve.fs.stop(t,!0),i.callback(e.href)},a=i.disposables.add(new oo.f(s,ve.Bx.CLICK)).event,l=i.disposables.add(new oo.f(s,ve.Bx.KEY_DOWN)).event,d=be.Jh.chain(l,(e=>e.filter((e=>{const t=new Et.Z(e);return t.equals(10)||t.equals(3)}))));i.disposables.add(Ji.q.addTarget(s));const c=i.disposables.add(new oo.f(s,Ji.B.Tap)).event;be.Jh.any(a,c,d)(r,null,i.disposables),t.appendChild(s)}}(o,this.ui.message,{callback:e=>{this.ui.linkOpenerDelegate(e)},disposables:this.visibleDisposables})),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?(0,Oe.k)("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==Pe.A.Ignore){const t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?`${t.foreground}`:"",this.ui.message.style.backgroundColor=t.background?`${t.background}`:"",this.ui.message.style.border=t.border?`1px solid ${t.border}`:"",this.ui.message.style.marginBottom="-2px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.marginBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}So.noPromptMessage=(0,Oe.k)("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");class xo extends So{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new be.vl),this.onWillAcceptEmitter=this._register(new be.vl),this.onDidAcceptEmitter=this._register(new be.vl),this.onDidCustomEmitter=this._register(new be.vl),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._keepScrollPosition=!1,this._itemActivation=Xn.C1.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new be.vl),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new be.vl),this.onDidTriggerItemButtonEmitter=this._register(new be.vl),this.onDidTriggerSeparatorButtonEmitter=this._register(new be.vl),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this._focusEventBufferer=new be.at,this.type="quickPick",this.filterValue=e=>e,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event,this.onDidTriggerSeparatorButton=this.onDidTriggerSeparatorButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(e){this._quickNavigate=e,this.update()}get value(){return this._value}set value(e){this.doSetValue(e)}doSetValue(e,t){this._value!==e&&(this._value=e,t||this.update(),this.visible&&this.ui.list.filter(this.filterValue(this._value))&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(this._value))}set ariaLabel(e){this._ariaLabel=e,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get items(){return this._items}get scrollTop(){return this.ui.list.scrollTop}set scrollTop(e){this.ui.list.scrollTop=e}set items(e){this._items=e,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(e){this._canSelectMany=e,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(e){this._canAcceptInBackground=e}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e,this.update()}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(e){this._matchOnLabelMode=e,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e,this.update()}get keepScrollPosition(){return this._keepScrollPosition}set keepScrollPosition(e){this._keepScrollPosition=e}get itemActivation(){return this._itemActivation}set itemActivation(e){this._itemActivation=e}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?Xn.Ym:this.ui.keyMods}get valueSelection(){const e=this.ui.inputBox.getSelection();if(e)return[e.start,e.end]}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(e){this._customButton=e,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(e){this._customButtonLabel=e,this.update()}get customHover(){return this._customButtonHover}set customHover(e){this._customButtonHover=e,this.update()}get ok(){return this._ok}set ok(e){this._ok=e,this.update()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}trySelectFirst(){this.canSelectMany||this.ui.list.focus(Xn.Fp.First)}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange((e=>{this.doSetValue(e,!0)}))),this.visibleDisposables.add(this.ui.onDidAccept((()=>{this.canSelectMany?this.ui.list.getCheckedElements().length||(this._selectedItems=[],this.onDidChangeSelectionEmitter.fire(this.selectedItems)):this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1)}))),this.visibleDisposables.add(this.ui.onDidCustom((()=>{this.onDidCustomEmitter.fire()}))),this.visibleDisposables.add(this._focusEventBufferer.wrapEvent(this.ui.list.onDidChangeFocus,((e,t)=>t))((e=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&(0,De.aI)(e,this._activeItems,((e,t)=>e===t))||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))}))),this.visibleDisposables.add(this.ui.list.onDidChangeSelection((({items:e,event:t})=>{this.canSelectMany?e.length&&this.ui.list.setSelectedElements([]):this.selectedItemsToConfirm!==this._selectedItems&&(0,De.aI)(e,this._selectedItems,((e,t)=>e===t))||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(ve.Er(t)&&1===t.button))}))),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements((e=>{this.canSelectMany&&(this.selectedItemsToConfirm!==this._selectedItems&&(0,De.aI)(e,this._selectedItems,((e,t)=>e===t))||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e)))}))),this.visibleDisposables.add(this.ui.list.onButtonTriggered((e=>this.onDidTriggerItemButtonEmitter.fire(e)))),this.visibleDisposables.add(this.ui.list.onSeparatorButtonTriggered((e=>this.onDidTriggerSeparatorButtonEmitter.fire(e)))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(e){let t=!1;this.onWillAcceptEmitter.fire({veto:()=>t=!0}),t||this.onDidAcceptEmitter.fire({inBackground:e})}registerQuickNavigation(){return ve.ko(this.ui.container,ve.Bx.KEY_UP,(e=>{if(this.canSelectMany||!this._quickNavigate)return;const t=new Et.Z(e),i=t.keyCode;this._quickNavigate.keybindings.some((e=>{const n=e.getChords();return!(n.length>1||(n[0].shiftKey&&4===i?t.ctrlKey||t.altKey||t.metaKey:!(n[0].altKey&&6===i||n[0].ctrlKey&&5===i||n[0].metaKey&&57===i)))}))&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)}))}update(){if(!this.visible)return;const e=this.keepScrollPosition?this.scrollTop:0,t=!!this.description,i={title:!!this.title||!!this.step||!!this.buttons.length,description:t,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!this._hideInput,progressBar:!this._hideInput||t,visibleCount:!0,count:this.canSelectMany&&!this._hideCountBadge,ok:"default"===this.ok?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(i),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");let n=this.ariaLabel;!n&&i.inputBox&&(n=this.placeholder||xo.DEFAULT_ARIA_LABEL,this.title&&(n+=` - ${this.title}`)),this.ui.list.ariaLabel!==n&&(this.ui.list.ariaLabel=null!=n?n:null),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.matchOnLabelMode=this.matchOnLabelMode,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated&&(this.itemsUpdated=!1,this._focusEventBufferer.bufferEvents((()=>{switch(this.ui.list.setElements(this.items),this.ui.list.shouldLoop=!this.canSelectMany,this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this._itemActivation){case Xn.C1.NONE:this._itemActivation=Xn.C1.FIRST;break;case Xn.C1.SECOND:this.ui.list.focus(Xn.Fp.Second),this._itemActivation=Xn.C1.FIRST;break;case Xn.C1.LAST:this.ui.list.focus(Xn.Fp.Last),this._itemActivation=Xn.C1.FIRST;break;default:this.trySelectFirst()}}))),this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",i.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(Xn.Fp.First)),this.keepScrollPosition&&(this.scrollTop=e)}focus(e){this.ui.list.focus(e),this.canSelectMany&&this.ui.list.domFocus()}accept(e){e&&!this._canAcceptInBackground||this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(null!=e&&e))}}xo.DEFAULT_ARIA_LABEL=(0,Oe.k)("quickInputBox.ariaLabel","Type to narrow down results.");class Lo extends So{constructor(){super(...arguments),this._value="",this.valueSelectionUpdated=!0,this._password=!1,this.onDidValueChangeEmitter=this._register(new be.vl),this.onDidAcceptEmitter=this._register(new be.vl),this.type="inputBox",this.onDidChangeValue=this.onDidValueChangeEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event}get value(){return this._value}set value(e){this._value=e||"",this.update()}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get password(){return this._password}set password(e){this._password=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange((e=>{e!==this.value&&(this._value=e,this.onDidValueChangeEmitter.fire(e))}))),this.visibleDisposables.add(this.ui.onDidAccept((()=>this.onDidAcceptEmitter.fire()))),this.valueSelectionUpdated=!0),super.show()}update(){if(!this.visible)return;this.ui.container.classList.remove("hidden-input");const e={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description||!!this.step,inputBox:!0,message:!0,progressBar:!0};this.ui.setVisibilities(e),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||""),this.ui.inputBox.password!==this.password&&(this.ui.inputBox.password=this.password)}}let Do=class extends ct.fO{constructor(e,t){super("element",!1,(e=>this.getOverrideOptions(e)),e,t)}getOverrideOptions(e){var t;return{persistence:{hideOnKeyDown:!1},appearance:{showHoverHint:(ve.sb(e.content)?null!==(t=e.content.textContent)&&void 0!==t?t:"":"string"==typeof e.content?e.content:e.content.value).includes("\n"),skipFadeInAnimation:!0}}}};Do=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([po(0,J.pG),po(1,ct.TN)],Do);var Eo=i(75524),Io=i(42443),No=i(44978),Mo={};Mo.styleTagTransform=w(),Mo.setAttributes=f(),Mo.insert=p().bind(null,"head"),Mo.domAPI=u(),Mo.insertStyleElement=_(),c()(No.A,Mo),No.A&&No.A.locals&&No.A.locals;const Ao="done",To="active",Ro="infinite",Po="infinite-long-running",Oo="discrete";class Fo extends r.jG{constructor(e,t){super(),this.progressSignal=this._register(new r.HE),this.workedVal=0,this.showDelayedScheduler=this._register(new Vt.uC((()=>(0,ve.WU)(this.element)),0)),this.longRunningScheduler=this._register(new Vt.uC((()=>this.infiniteLongRunning()),Fo.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(e,t)}create(e,t){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),e.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.bit.style.backgroundColor=(null==t?void 0:t.progressBarBackground)||"#0E70C0",this.element.appendChild(this.bit)}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(To,Ro,Po,Oo),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel(),this.progressSignal.clear()}stop(){return this.doDone(!1)}doDone(e){return this.element.classList.add(Ao),this.element.classList.contains(Ro)?(this.bit.style.opacity="0",e?setTimeout((()=>this.off()),200):this.off()):(this.bit.style.width="inherit",e?setTimeout((()=>this.off()),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(Oo,Ao,Po),this.element.classList.add(To,Ro),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add(Po)}getContainer(){return this.element}}Fo.LONG_RUNNING_INFINITE_THRESHOLD=1e4;var Bo=i(6595);const Wo=ve.$;class Ho extends r.jG{constructor(e,t,i){super(),this.parent=e,this.onKeyDown=e=>ve.b2(this.findInput.inputBox.inputElement,ve.Bx.KEY_DOWN,e),this.onDidChange=e=>this.findInput.onDidChange(e),this.container=ve.BC(this.parent,Wo(".quick-input-box")),this.findInput=this._register(new Bo.c(this.container,void 0,{label:"",inputBoxStyles:t,toggleStyles:i}));const n=this.findInput.inputBox.inputElement;n.role="combobox",n.ariaHasPopup="menu",n.ariaAutoComplete="list",n.ariaExpanded="true"}get value(){return this.findInput.getValue()}set value(e){this.findInput.setValue(e)}select(e=null){this.findInput.inputBox.select(e)}getSelection(){return this.findInput.inputBox.getSelection()}isSelectionAtEnd(){return this.findInput.inputBox.isSelectionAtEnd()}get placeholder(){return this.findInput.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(e){this.findInput.inputBox.setPlaceHolder(e)}get password(){return"password"===this.findInput.inputBox.inputElement.type}set password(e){this.findInput.inputBox.inputElement.type=e?"password":"text"}set enabled(e){this.findInput.inputBox.inputElement.toggleAttribute("readonly",!e)}set toggles(e){this.findInput.setAdditionalToggles(e)}setAttribute(e,t){this.findInput.inputBox.inputElement.setAttribute(e,t)}showDecoration(e){e===Pe.A.Ignore?this.findInput.clearMessage():this.findInput.showMessage({type:e===Pe.A.Info?1:e===Pe.A.Warning?2:3,content:""})}stylesForType(e){return this.findInput.inputBox.stylesForType(e===Pe.A.Info?1:e===Pe.A.Warning?2:3)}setFocus(){this.findInput.focus()}layout(){this.findInput.inputBox.layout()}}var Vo=i(87148),zo=i(24772),jo=i(57784),Uo=i(89563),$o=i(63946);const Ko=new $o.d((()=>{const e=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:e,collatorIsNumeric:e.resolvedOptions().numeric}}));new $o.d((()=>({collator:new Intl.Collator(void 0,{numeric:!0})}))),new $o.d((()=>({collator:new Intl.Collator(void 0,{numeric:!0,sensitivity:"accent"})})));var qo,Go=i(47611),Qo=i(16311),Zo=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Yo=function(e,t){return function(i,n){t(i,n,e)}};const Xo=ve.$;class Jo{constructor(e,t,i){this.index=e,this.hasCheckbox=t,this._hidden=!1,this._init=new $o.d((()=>{var e;const t=null!==(e=i.label)&&void 0!==e?e:"",n=(0,an._k)(t).text.trim(),o=i.ariaLabel||[t,this.saneDescription,this.saneDetail].map((e=>(0,an.R$)(e))).filter((e=>!!e)).join(", ");return{saneLabel:t,saneSortLabel:n,saneAriaLabel:o}})),this._saneDescription=i.description,this._saneTooltip=i.tooltip}get saneLabel(){return this._init.value.saneLabel}get saneSortLabel(){return this._init.value.saneSortLabel}get saneAriaLabel(){return this._init.value.saneAriaLabel}get element(){return this._element}set element(e){this._element=e}get hidden(){return this._hidden}set hidden(e){this._hidden=e}get saneDescription(){return this._saneDescription}set saneDescription(e){this._saneDescription=e}get saneDetail(){return this._saneDetail}set saneDetail(e){this._saneDetail=e}get saneTooltip(){return this._saneTooltip}set saneTooltip(e){this._saneTooltip=e}get labelHighlights(){return this._labelHighlights}set labelHighlights(e){this._labelHighlights=e}get descriptionHighlights(){return this._descriptionHighlights}set descriptionHighlights(e){this._descriptionHighlights=e}get detailHighlights(){return this._detailHighlights}set detailHighlights(e){this._detailHighlights=e}}class es extends Jo{constructor(e,t,i,n,o,s){var r,a,l;super(e,t,o),this.fireButtonTriggered=i,this._onChecked=n,this.item=o,this._separator=s,this._checked=!1,this.onChecked=t?be.Jh.map(be.Jh.filter(this._onChecked.event,(e=>e.element===this)),(e=>e.checked)):be.Jh.None,this._saneDetail=o.detail,this._labelHighlights=null===(r=o.highlights)||void 0===r?void 0:r.label,this._descriptionHighlights=null===(a=o.highlights)||void 0===a?void 0:a.description,this._detailHighlights=null===(l=o.highlights)||void 0===l?void 0:l.detail}get separator(){return this._separator}set separator(e){this._separator=e}get checked(){return this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire({element:this,checked:e}))}get checkboxDisabled(){return!!this.item.disabled}}var ts;!function(e){e[e.NONE=0]="NONE",e[e.MOUSE_HOVER=1]="MOUSE_HOVER",e[e.ACTIVE_ITEM=2]="ACTIVE_ITEM"}(ts||(ts={}));class is extends Jo{constructor(e,t,i){super(e,!1,i),this.fireSeparatorButtonTriggered=t,this.separator=i,this.children=new Array,this.focusInsideSeparator=ts.NONE}}class ns{getHeight(e){return e instanceof is?30:e.saneDetail?44:22}getTemplateId(e){return e instanceof es?rs.ID:as.ID}}class os{getWidgetAriaLabel(){return(0,Oe.k)("quickInput","Quick Input")}getAriaLabel(e){var t;return(null===(t=e.separator)||void 0===t?void 0:t.label)?`${e.saneAriaLabel}, ${e.separator.label}`:e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(e){return e.hasCheckbox?"checkbox":"option"}isChecked(e){if(e.hasCheckbox&&e instanceof es)return{get value(){return e.checked},onDidChange:t=>e.onChecked((()=>t()))}}}class ss{constructor(e){this.hoverDelegate=e}renderTemplate(e){const t=Object.create(null);t.toDisposeElement=new r.Cm,t.toDisposeTemplate=new r.Cm,t.entry=ve.BC(e,Xo(".quick-input-list-entry"));const i=ve.BC(t.entry,Xo("label.quick-input-list-label"));t.toDisposeTemplate.add(ve.b2(i,ve.Bx.CLICK,(e=>{t.checkbox.offsetParent||e.preventDefault()}))),t.checkbox=ve.BC(i,Xo("input.quick-input-list-checkbox")),t.checkbox.type="checkbox";const n=ve.BC(i,Xo(".quick-input-list-rows")),o=ve.BC(n,Xo(".quick-input-list-row")),s=ve.BC(n,Xo(".quick-input-list-row"));t.label=new zo.s(o,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.label),t.icon=ve.Hs(t.label.element,Xo(".quick-input-list-icon"));const a=ve.BC(o,Xo(".quick-input-list-entry-keybinding"));t.keybinding=new jo.x(a,wt.OS),t.toDisposeTemplate.add(t.keybinding);const l=ve.BC(s,Xo(".quick-input-list-label-meta"));return t.detail=new zo.s(l,{supportHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),t.toDisposeTemplate.add(t.detail),t.separator=ve.BC(t.entry,Xo(".quick-input-list-separator")),t.actionBar=new en.E(t.entry,this.hoverDelegate?{hoverDelegate:this.hoverDelegate}:void 0),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.add(t.actionBar),t}disposeTemplate(e){e.toDisposeElement.dispose(),e.toDisposeTemplate.dispose()}disposeElement(e,t,i){i.toDisposeElement.clear(),i.actionBar.clear()}}let rs=qo=class extends ss{constructor(e,t){super(e),this.themeService=t,this._itemsWithSeparatorsFrequency=new Map}get templateId(){return qo.ID}renderTemplate(e){const t=super.renderTemplate(e);return t.toDisposeTemplate.add(ve.b2(t.checkbox,ve.Bx.CHANGE,(e=>{t.element.checked=t.checkbox.checked}))),t}renderElement(e,t,i){var n,o,s;const r=e.element;i.element=r,r.element=null!==(n=i.entry)&&void 0!==n?n:void 0;const a=r.item;i.checkbox.checked=r.checked,i.toDisposeElement.add(r.onChecked((e=>i.checkbox.checked=e))),i.checkbox.disabled=r.checkboxDisabled;const{labelHighlights:d,descriptionHighlights:c,detailHighlights:h}=r;if(a.iconPath){const e=(0,Uo.HD)(this.themeService.getColorTheme().type)?a.iconPath.dark:null!==(o=a.iconPath.light)&&void 0!==o?o:a.iconPath.dark,t=l.r.revive(e);i.icon.className="quick-input-list-icon",i.icon.style.backgroundImage=ve.Tf(t)}else i.icon.style.backgroundImage="",i.icon.className=a.iconClass?`quick-input-list-icon ${a.iconClass}`:"";let u;!r.saneTooltip&&r.saneDescription&&(u={markdown:{value:r.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:r.saneDescription});const g={matches:d||[],descriptionTitle:u,descriptionMatches:c||[],labelEscapeNewLines:!0};if(g.extraClasses=a.iconClasses,g.italic=a.italic,g.strikethrough=a.strikethrough,i.entry.classList.remove("quick-input-list-separator-as-item"),i.label.setLabel(r.saneLabel,r.saneDescription,g),i.keybinding.set(a.keybinding),r.saneDetail){let e;r.saneTooltip||(e={markdown:{value:r.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:r.saneDetail}),i.detail.element.style.display="",i.detail.setLabel(r.saneDetail,void 0,{matches:h,title:e,labelEscapeNewLines:!0})}else i.detail.element.style.display="none";(null===(s=r.separator)||void 0===s?void 0:s.label)?(i.separator.textContent=r.separator.label,i.separator.style.display="",this.addItemWithSeparator(r)):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!r.separator);const p=a.buttons;p&&p.length?(i.actionBar.push(p.map(((e,t)=>go(e,`id-${t}`,(()=>r.fireButtonTriggered({button:e,item:r.item}))))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(e,t,i){this.removeItemWithSeparator(e.element),super.disposeElement(e,t,i)}isItemWithSeparatorVisible(e){return this._itemsWithSeparatorsFrequency.has(e)}addItemWithSeparator(e){this._itemsWithSeparatorsFrequency.set(e,(this._itemsWithSeparatorsFrequency.get(e)||0)+1)}removeItemWithSeparator(e){const t=this._itemsWithSeparatorsFrequency.get(e)||0;t>1?this._itemsWithSeparatorsFrequency.set(e,t-1):this._itemsWithSeparatorsFrequency.delete(e)}};rs.ID="quickpickitem",rs=qo=Zo([Yo(1,ye.Gy)],rs);class as extends ss{constructor(){super(...arguments),this._visibleSeparatorsFrequency=new Map}get templateId(){return as.ID}get visibleSeparators(){return[...this._visibleSeparatorsFrequency.keys()]}isSeparatorVisible(e){return this._visibleSeparatorsFrequency.has(e)}renderElement(e,t,i){var n;const o=e.element;i.element=o,o.element=null!==(n=i.entry)&&void 0!==n?n:void 0,o.element.classList.toggle("focus-inside",!!o.focusInsideSeparator);const s=o.separator,{labelHighlights:r,descriptionHighlights:a,detailHighlights:l}=o;let d;i.icon.style.backgroundImage="",i.icon.className="",!o.saneTooltip&&o.saneDescription&&(d={markdown:{value:o.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:o.saneDescription});const c={matches:r||[],descriptionTitle:d,descriptionMatches:a||[],labelEscapeNewLines:!0};if(i.entry.classList.add("quick-input-list-separator-as-item"),i.label.setLabel(o.saneLabel,o.saneDescription,c),o.saneDetail){let e;o.saneTooltip||(e={markdown:{value:o.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:o.saneDetail}),i.detail.element.style.display="",i.detail.setLabel(o.saneDetail,void 0,{matches:l,title:e,labelEscapeNewLines:!0})}else i.detail.element.style.display="none";i.separator.style.display="none",i.entry.classList.add("quick-input-list-separator-border");const h=s.buttons;h&&h.length?(i.actionBar.push(h.map(((e,t)=>go(e,`id-${t}`,(()=>o.fireSeparatorButtonTriggered({button:e,separator:o.separator}))))),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions"),this.addSeparator(o)}disposeElement(e,t,i){var n;this.removeSeparator(e.element),this.isSeparatorVisible(e.element)||null===(n=e.element.element)||void 0===n||n.classList.remove("focus-inside"),super.disposeElement(e,t,i)}addSeparator(e){this._visibleSeparatorsFrequency.set(e,(this._visibleSeparatorsFrequency.get(e)||0)+1)}removeSeparator(e){const t=this._visibleSeparatorsFrequency.get(e)||0;t>1?this._visibleSeparatorsFrequency.set(e,t-1):this._visibleSeparatorsFrequency.delete(e)}}as.ID="quickpickseparator";let ls=class extends r.jG{constructor(e,t,i,n,o,s){super(),this.parent=e,this.hoverDelegate=t,this.linkOpenerDelegate=i,this.accessibilityService=s,this._onKeyDown=new be.vl,this._onLeave=new be.vl,this.onLeave=this._onLeave.event,this._visibleCountObservable=(0,Qo.FY)("VisibleCount",0),this.onChangedVisibleCount=be.Jh.fromObservable(this._visibleCountObservable,this._store),this._allVisibleCheckedObservable=(0,Qo.FY)("AllVisibleChecked",!1),this.onChangedAllVisibleChecked=be.Jh.fromObservable(this._allVisibleCheckedObservable,this._store),this._checkedCountObservable=(0,Qo.FY)("CheckedCount",0),this.onChangedCheckedCount=be.Jh.fromObservable(this._checkedCountObservable,this._store),this._checkedElementsObservable=(0,Qo.Zh)({equalsFn:De.aI},new Array),this.onChangedCheckedElements=be.Jh.fromObservable(this._checkedElementsObservable,this._store),this._onButtonTriggered=new be.vl,this.onButtonTriggered=this._onButtonTriggered.event,this._onSeparatorButtonTriggered=new be.vl,this.onSeparatorButtonTriggered=this._onSeparatorButtonTriggered.event,this._elementChecked=new be.vl,this._elementCheckedEventBufferer=new be.at,this._hasCheckboxes=!1,this._inputElements=new Array,this._elementTree=new Array,this._itemElements=new Array,this._elementDisposable=this._register(new r.Cm),this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._shouldLoop=!0,this._container=ve.BC(this.parent,Xo(".quick-input-list")),this._separatorRenderer=new as(t),this._itemRenderer=o.createInstance(rs,t),this._tree=this._register(o.createInstance(Vo.zL,"QuickInput",this._container,new ns,[this._itemRenderer,this._separatorRenderer],{accessibilityProvider:new os,setRowLineHeight:!1,multipleSelectionSupport:!1,hideTwistiesOfChildlessElements:!0,renderIndentGuides:Go.KP.None,findWidgetEnabled:!1,indent:0,horizontalScrolling:!1,allowNonCollapsibleParents:!0,alwaysConsumeMouseWheel:!0})),this._tree.getHTMLElement().id=n,this._registerListeners()}get onDidChangeFocus(){return be.Jh.map(this._tree.onDidChangeFocus,(e=>e.elements.filter((e=>e instanceof es)).map((e=>e.item))),this._store)}get onDidChangeSelection(){return be.Jh.map(this._tree.onDidChangeSelection,(e=>({items:e.elements.filter((e=>e instanceof es)).map((e=>e.item)),event:e.browserEvent})),this._store)}get displayed(){return"none"!==this._container.style.display}set displayed(e){this._container.style.display=e?"":"none"}get scrollTop(){return this._tree.scrollTop}set scrollTop(e){this._tree.scrollTop=e}get ariaLabel(){return this._tree.ariaLabel}set ariaLabel(e){this._tree.ariaLabel=null!=e?e:""}set enabled(e){this._tree.getHTMLElement().style.pointerEvents=e?"":"none"}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(e){this._matchOnLabelMode=e}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e}get shouldLoop(){return this._shouldLoop}set shouldLoop(e){this._shouldLoop=e}_registerListeners(){this._registerOnKeyDown(),this._registerOnContainerClick(),this._registerOnMouseMiddleClick(),this._registerOnTreeModelChanged(),this._registerOnElementChecked(),this._registerOnContextMenu(),this._registerHoverListeners(),this._registerSelectionChangeListener(),this._registerSeparatorActionShowingListeners()}_registerOnKeyDown(){this._register(this._tree.onKeyDown((e=>{const t=new Et.Z(e);10===t.keyCode&&this.toggleCheckbox(),this._onKeyDown.fire(t)})))}_registerOnContainerClick(){this._register(ve.ko(this._container,ve.Bx.CLICK,(e=>{(e.x||e.y)&&this._onLeave.fire()})))}_registerOnMouseMiddleClick(){this._register(ve.ko(this._container,ve.Bx.AUXCLICK,(e=>{1===e.button&&this._onLeave.fire()})))}_registerOnTreeModelChanged(){this._register(this._tree.onDidChangeModel((()=>{const e=this._itemElements.filter((e=>!e.hidden)).length;this._visibleCountObservable.set(e,void 0),this._hasCheckboxes&&this._updateCheckedObservables()})))}_registerOnElementChecked(){this._register(this._elementCheckedEventBufferer.wrapEvent(this._elementChecked.event,((e,t)=>t))((e=>this._updateCheckedObservables())))}_registerOnContextMenu(){this._register(this._tree.onContextMenu((e=>{e.element&&(e.browserEvent.preventDefault(),this._tree.setSelection([e.element]))})))}_registerHoverListeners(){const e=this._register(new Vt.Th(this.hoverDelegate.delay));this._register(this._tree.onMouseOver((async t=>{var i;if(ve.nY(t.browserEvent.target))e.cancel();else if(ve.nY(t.browserEvent.relatedTarget)||!ve.QX(t.browserEvent.relatedTarget,null===(i=t.element)||void 0===i?void 0:i.element))try{await e.trigger((async()=>{t.element instanceof es&&this.showHover(t.element)}))}catch(t){if(!(0,Re.MB)(t))throw t}}))),this._register(this._tree.onMouseOut((t=>{var i;ve.QX(t.browserEvent.relatedTarget,null===(i=t.element)||void 0===i?void 0:i.element)||e.cancel()})))}_registerSeparatorActionShowingListeners(){this._register(this._tree.onDidChangeFocus((e=>{const t=e.elements[0]?this._tree.getParentElement(e.elements[0]):null;for(const e of this._separatorRenderer.visibleSeparators){const i=e===t;!!(e.focusInsideSeparator&ts.ACTIVE_ITEM)!==i&&(i?e.focusInsideSeparator|=ts.ACTIVE_ITEM:e.focusInsideSeparator&=~ts.ACTIVE_ITEM,this._tree.rerender(e))}}))),this._register(this._tree.onMouseOver((e=>{const t=e.element?this._tree.getParentElement(e.element):null;for(const e of this._separatorRenderer.visibleSeparators)e===t&&(e.focusInsideSeparator&ts.MOUSE_HOVER||(e.focusInsideSeparator|=ts.MOUSE_HOVER,this._tree.rerender(e)))}))),this._register(this._tree.onMouseOut((e=>{const t=e.element?this._tree.getParentElement(e.element):null;for(const e of this._separatorRenderer.visibleSeparators)e===t&&e.focusInsideSeparator&ts.MOUSE_HOVER&&(e.focusInsideSeparator&=~ts.MOUSE_HOVER,this._tree.rerender(e))})))}_registerSelectionChangeListener(){this._register(this._tree.onDidChangeSelection((e=>{const t=e.elements.filter((e=>e instanceof es));t.length!==e.elements.length&&(1===e.elements.length&&e.elements[0]instanceof is&&(this._tree.setFocus([e.elements[0].children[0]]),this._tree.reveal(e.elements[0],0)),this._tree.setSelection(t))})))}setAllVisibleChecked(e){this._elementCheckedEventBufferer.bufferEvents((()=>{this._itemElements.forEach((t=>{t.hidden||t.checkboxDisabled||(t.checked=e)}))}))}setElements(e){let t;this._elementDisposable.clear(),this._inputElements=e,this._hasCheckboxes=this.parent.classList.contains("show-checkboxes"),this._itemElements=new Array,this._elementTree=e.reduce(((i,n,o)=>{let s;if("separator"===n.type){if(!n.buttons)return i;t=new is(o,(e=>this._onSeparatorButtonTriggered.fire(e)),n),s=t}else{const r=o>0?e[o-1]:void 0;let a;r&&"separator"===r.type&&!r.buttons&&(t=void 0,a=r);const l=new es(o,this._hasCheckboxes,(e=>this._onButtonTriggered.fire(e)),this._elementChecked,n,a);if(this._itemElements.push(l),t)return t.children.push(l),i;s=l}return i.push(s),i}),new Array),this._setElementsToTree(this._elementTree),this.accessibilityService.isScreenReaderOptimized()&&setTimeout((()=>{const e=this._tree.getHTMLElement().querySelector(".monaco-list-row.focused"),t=null==e?void 0:e.parentNode;if(e&&t){const i=e.nextSibling;e.remove(),t.insertBefore(e,i)}}),0)}setFocusedElements(e){const t=e.map((e=>this._itemElements.find((t=>t.item===e)))).filter((e=>!!e));if(this._tree.setFocus(t),e.length>0){const e=this._tree.getFocus()[0];e&&this._tree.reveal(e)}}getActiveDescendant(){return this._tree.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){const t=e.map((e=>this._itemElements.find((t=>t.item===e)))).filter((e=>!!e));this._tree.setSelection(t)}getCheckedElements(){return this._itemElements.filter((e=>e.checked)).map((e=>e.item))}setCheckedElements(e){this._elementCheckedEventBufferer.bufferEvents((()=>{const t=new Set;for(const i of e)t.add(i);for(const e of this._itemElements)e.checked=t.has(e.item)}))}focus(e){var t;if(this._itemElements.length)switch(e===Xn.Fp.Second&&this._itemElements.length<2&&(e=Xn.Fp.First),e){case Xn.Fp.First:this._tree.scrollTop=0,this._tree.focusFirst(void 0,(e=>e.element instanceof es));break;case Xn.Fp.Second:{this._tree.scrollTop=0;let e=!1;this._tree.focusFirst(void 0,(t=>t.element instanceof es&&(!!e||(e=!e,!1))));break}case Xn.Fp.Last:this._tree.scrollTop=this._tree.scrollHeight,this._tree.focusLast(void 0,(e=>e.element instanceof es));break;case Xn.Fp.Next:{const e=this._tree.getFocus();this._tree.focusNext(void 0,this._shouldLoop,void 0,(e=>e.element instanceof es&&(this._tree.reveal(e.element),!0)));const t=this._tree.getFocus();e.length&&e[0]===t[0]&&e[0]===this._itemElements[this._itemElements.length-1]&&this._onLeave.fire();break}case Xn.Fp.Previous:{const e=this._tree.getFocus();this._tree.focusPrevious(void 0,this._shouldLoop,void 0,(e=>{if(!(e.element instanceof es))return!1;const t=this._tree.getParentElement(e.element);return null===t||t.children[0]!==e.element?this._tree.reveal(e.element):this._tree.reveal(t),!0}));const t=this._tree.getFocus();e.length&&e[0]===t[0]&&e[0]===this._itemElements[0]&&this._onLeave.fire();break}case Xn.Fp.NextPage:this._tree.focusNextPage(void 0,(e=>e.element instanceof es&&(this._tree.reveal(e.element),!0)));break;case Xn.Fp.PreviousPage:this._tree.focusPreviousPage(void 0,(e=>{if(!(e.element instanceof es))return!1;const t=this._tree.getParentElement(e.element);return null===t||t.children[0]!==e.element?this._tree.reveal(e.element):this._tree.reveal(t),!0}));break;case Xn.Fp.NextSeparator:{let e=!1;const t=this._tree.getFocus()[0];this._tree.focusNext(void 0,!0,void 0,(t=>{if(e)return!0;if(t.element instanceof is)e=!0,this._separatorRenderer.isSeparatorVisible(t.element)?this._tree.reveal(t.element.children[0]):this._tree.reveal(t.element,0);else if(t.element instanceof es){if(t.element.separator)return this._itemRenderer.isItemWithSeparatorVisible(t.element)?this._tree.reveal(t.element):this._tree.reveal(t.element,0),!0;if(t.element===this._elementTree[0])return this._tree.reveal(t.element,0),!0}return!1})),t===this._tree.getFocus()[0]&&(this._tree.scrollTop=this._tree.scrollHeight,this._tree.focusLast(void 0,(e=>e.element instanceof es)));break}case Xn.Fp.PreviousSeparator:{let e,i=!!(null===(t=this._tree.getFocus()[0])||void 0===t?void 0:t.separator);this._tree.focusPrevious(void 0,!0,void 0,(t=>{if(t.element instanceof is)i?e||(this._separatorRenderer.isSeparatorVisible(t.element)?this._tree.reveal(t.element):this._tree.reveal(t.element,0),e=t.element.children[0]):i=!0;else if(t.element instanceof es&&!e)if(t.element.separator)this._itemRenderer.isItemWithSeparatorVisible(t.element)?this._tree.reveal(t.element):this._tree.reveal(t.element,0),e=t.element;else if(t.element===this._elementTree[0])return this._tree.reveal(t.element,0),!0;return!1})),e&&this._tree.setFocus([e]);break}}}clearFocus(){this._tree.setFocus([])}domFocus(){this._tree.domFocus()}layout(e){this._tree.getHTMLElement().style.maxHeight=e?44*Math.floor(e/44)+6+"px":"",this._tree.layout()}filter(e){if(!(this._sortByLabel||this._matchOnLabel||this._matchOnDescription||this._matchOnDetail))return this._tree.layout(),!1;const t=e;if((e=e.trim())&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)){let i;this._elementTree.forEach((n=>{var o,s,r,l;let d;d="fuzzy"===this.matchOnLabelMode?this.matchOnLabel&&null!==(o=(0,an.pz)(e,(0,an._k)(n.saneLabel)))&&void 0!==o?o:void 0:this.matchOnLabel&&null!==(s=function(e,t){const{text:i,iconOffsets:n}=t;if(!n||0===n.length)return ds(e,i);const o=(0,a.NB)(i," "),s=i.length-o.length,r=ds(e,o);if(r)for(const e of r){const t=n[e.start+s]+s;e.start+=t,e.end+=t}return r}(t,(0,an._k)(n.saneLabel)))&&void 0!==s?s:void 0;const c=this.matchOnDescription&&null!==(r=(0,an.pz)(e,(0,an._k)(n.saneDescription||"")))&&void 0!==r?r:void 0,h=this.matchOnDetail&&null!==(l=(0,an.pz)(e,(0,an._k)(n.saneDetail||"")))&&void 0!==l?l:void 0;if(d||c||h?(n.labelHighlights=d,n.descriptionHighlights=c,n.detailHighlights=h,n.hidden=!1):(n.labelHighlights=void 0,n.descriptionHighlights=void 0,n.detailHighlights=void 0,n.hidden=!n.item||!n.item.alwaysShow),n.item?n.separator=void 0:n.separator&&(n.hidden=!0),!this.sortByLabel){const e=n.index&&this._inputElements[n.index-1];i=e&&"separator"===e.type?e:i,i&&!n.hidden&&(n.separator=i,i=void 0)}}))}else this._itemElements.forEach((e=>{e.labelHighlights=void 0,e.descriptionHighlights=void 0,e.detailHighlights=void 0,e.hidden=!1;const t=e.index&&this._inputElements[e.index-1];e.item&&(e.separator=t&&"separator"===t.type&&!t.buttons?t:void 0)}));const i=this._elementTree.filter((e=>!e.hidden));if(this.sortByLabel&&e){const t=e.toLowerCase();i.sort(((e,i)=>function(e,t,i){const n=e.labelHighlights||[],o=t.labelHighlights||[];return n.length&&!o.length?-1:!n.length&&o.length?1:0===n.length&&0===o.length?0:function(e,t,i){const n=e.toLowerCase(),o=t.toLowerCase(),s=function(e,t,i){const n=e.toLowerCase(),o=t.toLowerCase(),s=n.startsWith(i),r=o.startsWith(i);if(s!==r)return s?-1:1;if(s&&r){if(n.lengtho.length)return 1}return 0}(e,t,i);if(s)return s;const r=n.endsWith(i);if(r!==o.endsWith(i))return r?-1:1;const a=function(e,t,i=!1){const n=e||"",o=t||"",s=Ko.value.collator.compare(n,o);return Ko.value.collatorIsNumeric&&0===s&&n!==o?n(t instanceof es?n?n.children.push(t):e.push(t):t instanceof is&&(t.children=[],n=t,e.push(t)),e)),new Array);return this._setElementsToTree(o),this._tree.layout(),!0}toggleCheckbox(){this._elementCheckedEventBufferer.bufferEvents((()=>{const e=this._tree.getFocus().filter((e=>e instanceof es)),t=this._allVisibleChecked(e);for(const i of e)i.checkboxDisabled||(i.checked=!t)}))}style(e){this._tree.style(e)}toggleHover(){const e=this._tree.getFocus()[0];if(!((null==e?void 0:e.saneTooltip)&&e instanceof es))return;if(this._lastHover&&!this._lastHover.isDisposed)return void this._lastHover.dispose();this.showHover(e);const t=new r.Cm;t.add(this._tree.onDidChangeFocus((e=>{e.elements[0]instanceof es&&this.showHover(e.elements[0])}))),this._lastHover&&t.add(this._lastHover),this._elementDisposable.add(t)}_setElementsToTree(e){const t=new Array;for(const i of e)i instanceof is?t.push({element:i,collapsible:!1,collapsed:!1,children:i.children.map((e=>({element:e,collapsible:!1,collapsed:!1})))}):t.push({element:i,collapsible:!1,collapsed:!1});this._tree.setChildren(null,t)}_allVisibleChecked(e,t=!0){for(let i=0,n=e.length;ie.checked)).length;this._checkedCountObservable.set(e,void 0),this._checkedElementsObservable.set(this.getCheckedElements(),void 0)}showHover(e){var t,i,n;this._lastHover&&!this._lastHover.isDisposed&&(null===(i=(t=this.hoverDelegate).onDidHideHover)||void 0===i||i.call(t),null===(n=this._lastHover)||void 0===n||n.dispose()),e.element&&e.saneTooltip&&(this._lastHover=this.hoverDelegate.showHover({content:e.saneTooltip,target:e.element,linkHandler:e=>{this.linkOpenerDelegate(e)},appearance:{showPointer:!0},container:this._container,position:{hoverPosition:1}},!1))}};function ds(e,t){const i=t.toLowerCase().indexOf(e.toLowerCase());return-1!==i?[{start:i,end:i+e.length}]:null}Zo([ao.B],ls.prototype,"onDidChangeFocus",null),Zo([ao.B],ls.prototype,"onDidChangeSelection",null),ls=Zo([Yo(4,Ee._Y),Yo(5,yt.j)],ls);var cs=i(13034);const hs={weight:200,when:ke.M$.and(ke.M$.equals(_o,"quickPick"),vo),metadata:{description:(0,Oe.k)("quickPick","Used while in the context of the quick pick. If you change one keybinding for this command, you should change all of the other keybindings (modifier variants) of this command as well.")}};function us(e,t={}){var i;wi.f.registerCommandAndKeybindingRule({...hs,...e,secondary:ps(e.primary,null!==(i=e.secondary)&&void 0!==i?i:[],t)})}const gs=wt.zx?256:2048;function ps(e,t,i={}){return i.withAltMod&&t.push(512+e),i.withCtrlMod&&(t.push(gs+e),i.withAltMod&&t.push(512+gs+e)),i.withCmdMod&&wt.zx&&(t.push(2048+e),i.withCtrlMod&&t.push(2304+e),i.withAltMod&&(t.push(2560+e),i.withCtrlMod&&t.push(2816+e))),t}function ms(e,t){return i=>{const n=i.get(Xn.GK).currentQuickInput;if(n)return t&&n.quickNavigate?n.focus(t):n.focus(e)}}us({id:"quickInput.pageNext",primary:12,handler:ms(Xn.Fp.NextPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0}),us({id:"quickInput.pagePrevious",primary:11,handler:ms(Xn.Fp.PreviousPage)},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0}),us({id:"quickInput.first",primary:gs+14,handler:ms(Xn.Fp.First)},{withAltMod:!0,withCmdMod:!0}),us({id:"quickInput.last",primary:gs+13,handler:ms(Xn.Fp.Last)},{withAltMod:!0,withCmdMod:!0}),us({id:"quickInput.next",primary:18,handler:ms(Xn.Fp.Next)},{withCtrlMod:!0}),us({id:"quickInput.previous",primary:16,handler:ms(Xn.Fp.Previous)},{withCtrlMod:!0});const fs=(0,Oe.k)("quickInput.nextSeparatorWithQuickAccessFallback","If we're in quick access mode, this will navigate to the next item. If we are not in quick access mode, this will navigate to the next separator."),vs=(0,Oe.k)("quickInput.previousSeparatorWithQuickAccessFallback","If we're in quick access mode, this will navigate to the previous item. If we are not in quick access mode, this will navigate to the previous separator.");wt.zx?(us({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:2066,handler:ms(Xn.Fp.NextSeparator,Xn.Fp.Next),metadata:{description:fs}}),us({id:"quickInput.nextSeparator",primary:2578,secondary:[2322],handler:ms(Xn.Fp.NextSeparator)},{withCtrlMod:!0}),us({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:2064,handler:ms(Xn.Fp.PreviousSeparator,Xn.Fp.Previous),metadata:{description:vs}}),us({id:"quickInput.previousSeparator",primary:2576,secondary:[2320],handler:ms(Xn.Fp.PreviousSeparator)},{withCtrlMod:!0})):(us({id:"quickInput.nextSeparatorWithQuickAccessFallback",primary:530,handler:ms(Xn.Fp.NextSeparator,Xn.Fp.Next),metadata:{description:fs}}),us({id:"quickInput.nextSeparator",primary:2578,handler:ms(Xn.Fp.NextSeparator)}),us({id:"quickInput.previousSeparatorWithQuickAccessFallback",primary:528,handler:ms(Xn.Fp.PreviousSeparator,Xn.Fp.Previous),metadata:{description:vs}}),us({id:"quickInput.previousSeparator",primary:2576,handler:ms(Xn.Fp.PreviousSeparator)})),us({id:"quickInput.acceptInBackground",when:ke.M$.and(hs.when,ke.M$.or(cs.J7.negate(),Co)),primary:17,weight:250,handler:e=>{const t=e.get(Xn.GK).currentQuickInput;null==t||t.accept(!0)}},{withAltMod:!0,withCtrlMod:!0,withCmdMod:!0});var _s,bs=function(e,t){return function(i,n){t(i,n,e)}};const ws=ve.$;let ys=_s=class extends r.jG{get currentQuickInput(){var e;return null!==(e=this.controller)&&void 0!==e?e:void 0}get container(){return this._container}constructor(e,t,i,n){super(),this.options=e,this.layoutService=t,this.instantiationService=i,this.contextKeyService=n,this.enabled=!0,this.onDidAcceptEmitter=this._register(new be.vl),this.onDidCustomEmitter=this._register(new be.vl),this.onDidTriggerButtonEmitter=this._register(new be.vl),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new be.vl),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new be.vl),this.onHide=this.onHideEmitter.event,this.inQuickInputContext=fo.bindTo(this.contextKeyService),this.quickInputTypeContext=bo.bindTo(this.contextKeyService),this.endOfQuickInputBoxContext=yo.bindTo(this.contextKeyService),this.idPrefix=e.idPrefix,this._container=e.container,this.styles=e.styles,this._register(be.Jh.runAndSubscribe(ve.Iv,(({window:e,disposables:t})=>this.registerKeyModsListeners(e,t)),{window:s.G,disposables:this._store})),this._register(ve.q3((e=>{this.ui&&ve.zk(this.ui.container)===e&&(this.reparentUI(this.layoutService.mainContainer),this.layout(this.layoutService.mainContainerDimension,this.layoutService.mainContainerOffset.quickPickTop))})))}registerKeyModsListeners(e,t){const i=e=>{this.keyMods.ctrlCmd=e.ctrlKey||e.metaKey,this.keyMods.alt=e.altKey};for(const n of[ve.Bx.KEY_DOWN,ve.Bx.KEY_UP,ve.Bx.MOUSE_DOWN])t.add(ve.ko(e,n,i,!0))}getUI(e){if(this.ui)return e&&ve.zk(this._container)!==ve.zk(this.layoutService.activeContainer)&&(this.reparentUI(this.layoutService.activeContainer),this.layout(this.layoutService.activeContainerDimension,this.layoutService.activeContainerOffset.quickPickTop)),this.ui;const t=ve.BC(this._container,ws(".quick-input-widget.show-file-icons"));t.tabIndex=-1,t.style.display="none";const i=ve.li(t),n=ve.BC(t,ws(".quick-input-titlebar")),o=this._register(new en.E(n,{hoverDelegate:this.options.hoverDelegate}));o.domNode.classList.add("quick-input-left-action-bar");const s=ve.BC(n,ws(".quick-input-title")),r=this._register(new en.E(n,{hoverDelegate:this.options.hoverDelegate}));r.domNode.classList.add("quick-input-right-action-bar");const a=ve.BC(t,ws(".quick-input-header")),l=ve.BC(a,ws("input.quick-input-check-all"));l.type="checkbox",l.setAttribute("aria-label",(0,Oe.k)("quickInput.checkAll","Toggle all checkboxes")),this._register(ve.b2(l,ve.Bx.CHANGE,(e=>{const t=l.checked;L.setAllVisibleChecked(t)}))),this._register(ve.ko(l,ve.Bx.CLICK,(e=>{(e.x||e.y)&&u.setFocus()})));const d=ve.BC(a,ws(".quick-input-description")),c=ve.BC(a,ws(".quick-input-and-message")),h=ve.BC(c,ws(".quick-input-filter")),u=this._register(new Ho(h,this.styles.inputBox,this.styles.toggle));u.setAttribute("aria-describedby",`${this.idPrefix}message`);const g=ve.BC(h,ws(".quick-input-visible-count"));g.setAttribute("aria-live","polite"),g.setAttribute("aria-atomic","true");const p=new Io.x(g,{countFormat:(0,Oe.k)({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")},this.styles.countBadge),m=ve.BC(h,ws(".quick-input-count"));m.setAttribute("aria-live","polite");const f=new Io.x(m,{countFormat:(0,Oe.k)({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")},this.styles.countBadge),v=ve.BC(a,ws(".quick-input-action")),_=this._register(new Eo.$(v,this.styles.button));_.label=(0,Oe.k)("ok","OK"),this._register(_.onDidClick((e=>{this.onDidAcceptEmitter.fire()})));const b=ve.BC(a,ws(".quick-input-action")),w=this._register(new Eo.$(b,{...this.styles.button,supportIcons:!0}));w.label=(0,Oe.k)("custom","Custom"),this._register(w.onDidClick((e=>{this.onDidCustomEmitter.fire()})));const y=ve.BC(c,ws(`#${this.idPrefix}message.quick-input-message`)),C=this._register(new Fo(t,this.styles.progressBar));C.getContainer().classList.add("quick-input-progress");const k=ve.BC(t,ws(".quick-input-html-widget"));k.tabIndex=-1;const S=ve.BC(t,ws(".quick-input-description")),x=this.idPrefix+"list",L=this._register(this.instantiationService.createInstance(ls,t,this.options.hoverDelegate,this.options.linkOpenerDelegate,x));u.setAttribute("aria-controls",x),this._register(L.onDidChangeFocus((()=>{var e;u.setAttribute("aria-activedescendant",null!==(e=L.getActiveDescendant())&&void 0!==e?e:"")}))),this._register(L.onChangedAllVisibleChecked((e=>{l.checked=e}))),this._register(L.onChangedVisibleCount((e=>{p.setCount(e)}))),this._register(L.onChangedCheckedCount((e=>{f.setCount(e)}))),this._register(L.onLeave((()=>{setTimeout((()=>{this.controller&&(u.setFocus(),this.controller instanceof xo&&this.controller.canSelectMany&&L.clearFocus())}),0)})));const D=ve.w5(t);return this._register(D),this._register(ve.ko(t,ve.Bx.FOCUS,(e=>{const t=this.getUI();if(ve.QX(e.relatedTarget,t.inputContainer)){const e=t.inputBox.isSelectionAtEnd();this.endOfQuickInputBoxContext.get()!==e&&this.endOfQuickInputBoxContext.set(e)}ve.QX(e.relatedTarget,t.container)||(this.inQuickInputContext.set(!0),this.previousFocusElement=ve.sb(e.relatedTarget)?e.relatedTarget:void 0)}),!0)),this._register(D.onDidBlur((()=>{this.getUI().ignoreFocusOut||this.options.ignoreFocusOut()||this.hide(Xn.kF.Blur),this.inQuickInputContext.set(!1),this.endOfQuickInputBoxContext.set(!1),this.previousFocusElement=void 0}))),this._register(u.onKeyDown((e=>{const t=this.getUI().inputBox.isSelectionAtEnd();this.endOfQuickInputBoxContext.get()!==t&&this.endOfQuickInputBoxContext.set(t)}))),this._register(ve.ko(t,ve.Bx.FOCUS,(e=>{u.setFocus()}))),this._register(ve.b2(t,ve.Bx.KEY_DOWN,(e=>{if(!ve.QX(e.target,k))switch(e.keyCode){case 3:ve.fs.stop(e,!0),this.enabled&&this.onDidAcceptEmitter.fire();break;case 9:ve.fs.stop(e,!0),this.hide(Xn.kF.Gesture);break;case 2:if(!e.altKey&&!e.ctrlKey&&!e.metaKey){const i=[".quick-input-list .monaco-action-bar .always-visible",".quick-input-list-entry:hover .monaco-action-bar",".monaco-list-row.focused .monaco-action-bar"];if(t.classList.contains("show-checkboxes")?i.push("input"):i.push("input[type=text]"),this.getUI().list.displayed&&i.push(".monaco-list"),this.getUI().message&&i.push(".quick-input-message a"),this.getUI().widget){if(ve.QX(e.target,this.getUI().widget))break;i.push(".quick-input-html-widget")}const n=t.querySelectorAll(i.join(", "));e.shiftKey&&e.target===n[0]?(ve.fs.stop(e,!0),L.clearFocus()):!e.shiftKey&&ve.QX(e.target,n[n.length-1])&&(ve.fs.stop(e,!0),n[0].focus())}break;case 10:e.ctrlKey&&(ve.fs.stop(e,!0),this.getUI().list.toggleHover())}}))),this.ui={container:t,styleSheet:i,leftActionBar:o,titleBar:n,title:s,description1:S,description2:d,widget:k,rightActionBar:r,checkAll:l,inputContainer:c,filterContainer:h,inputBox:u,visibleCountContainer:g,visibleCount:p,countContainer:m,count:f,okContainer:v,ok:_,message:y,customButtonContainer:b,customButton:w,list:L,progressBar:C,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,show:e=>this.show(e),hide:()=>this.hide(),setVisibilities:e=>this.setVisibilities(e),setEnabled:e=>this.setEnabled(e),setContextKey:e=>this.options.setContextKey(e),linkOpenerDelegate:e=>this.options.linkOpenerDelegate(e)},this.updateStyles(),this.ui}reparentUI(e){this.ui&&(this._container=e,ve.BC(this._container,this.ui.container))}pick(e,t={},i=Bt.XO.None){return new Promise(((n,o)=>{let s=e=>{var i;s=n,null===(i=t.onKeyMods)||void 0===i||i.call(t,a.keyMods),n(e)};if(i.isCancellationRequested)return void s(void 0);const a=this.createQuickPick();let l;const d=[a,a.onDidAccept((()=>{if(a.canSelectMany)s(a.selectedItems.slice()),a.hide();else{const e=a.activeItems[0];e&&(s(e),a.hide())}})),a.onDidChangeActive((e=>{const i=e[0];i&&t.onDidFocus&&t.onDidFocus(i)})),a.onDidChangeSelection((e=>{if(!a.canSelectMany){const t=e[0];t&&(s(t),a.hide())}})),a.onDidTriggerItemButton((e=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton({...e,removeItem:()=>{const t=a.items.indexOf(e.item);if(-1!==t){const e=a.items.slice(),i=e.splice(t,1),n=a.activeItems.filter((e=>e!==i[0])),o=a.keepScrollPosition;a.keepScrollPosition=!0,a.items=e,n&&(a.activeItems=n),a.keepScrollPosition=o}}}))),a.onDidTriggerSeparatorButton((e=>{var i;return null===(i=t.onDidTriggerSeparatorButton)||void 0===i?void 0:i.call(t,e)})),a.onDidChangeValue((e=>{!l||e||1===a.activeItems.length&&a.activeItems[0]===l||(a.activeItems=[l])})),i.onCancellationRequested((()=>{a.hide()})),a.onDidHide((()=>{(0,r.AS)(d),s(void 0)}))];a.title=t.title,a.canSelectMany=!!t.canPickMany,a.placeholder=t.placeHolder,a.ignoreFocusOut=!!t.ignoreFocusLost,a.matchOnDescription=!!t.matchOnDescription,a.matchOnDetail=!!t.matchOnDetail,a.matchOnLabel=void 0===t.matchOnLabel||t.matchOnLabel,a.quickNavigate=t.quickNavigate,a.hideInput=!!t.hideInput,a.contextKey=t.contextKey,a.busy=!0,Promise.all([e,t.activeItem]).then((([e,t])=>{l=t,a.busy=!1,a.items=e,a.canSelectMany&&(a.selectedItems=e.filter((e=>"separator"!==e.type&&e.picked))),l&&(a.activeItems=[l])})),a.show(),Promise.resolve(e).then(void 0,(e=>{o(e),a.hide()}))}))}createQuickPick(){const e=this.getUI(!0);return new xo(e)}createInputBox(){const e=this.getUI(!0);return new Lo(e)}show(e){const t=this.getUI(!0);this.onShowEmitter.fire();const i=this.controller;this.controller=e,null==i||i.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",ve.Ln(t.widget),t.rightActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(Pe.A.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),ve.Ln(t.message),t.progressBar.stop(),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,t.inputBox.toggles=void 0;const n=this.options.backKeybindingLabel();ko.tooltip=n?(0,Oe.k)("quickInput.backWithKeybinding","Back ({0})",n):(0,Oe.k)("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus(),this.quickInputTypeContext.set(e.type)}isVisible(){return!!this.ui&&"none"!==this.ui.container.style.display}setVisibilities(e){const t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=!e.description||e.inputBox||e.checkAll?"none":"",t.checkAll.style.display=e.checkAll?"":"none",t.inputContainer.style.display=e.inputBox?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.displayed=!!e.list,t.container.classList.toggle("show-checkboxes",!!e.checkBox),t.container.classList.toggle("hidden-input",!e.inputBox&&!e.description),this.updateLayout()}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(const t of this.getUI().leftActionBar.viewItems)t.action.enabled=e;for(const t of this.getUI().rightActionBar.viewItems)t.action.enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().inputBox.enabled=e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){var t,i;const n=this.controller;if(!n)return;n.willHide(e);const o=null===(t=this.ui)||void 0===t?void 0:t.container,s=o&&!ve.nR(o);if(this.controller=null,this.onHideEmitter.fire(),o&&(o.style.display="none"),!s){let e=this.previousFocusElement;for(;e&&!e.offsetParent;)e=null!==(i=e.parentElement)&&void 0!==i?i:void 0;(null==e?void 0:e.offsetParent)?(e.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}n.didHide(e)}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui&&this.isVisible()){this.ui.container.style.top=`${this.titleBarOffset}px`;const e=this.ui.container.style,t=Math.min(.62*this.dimension.width,_s.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&.4*this.dimension.height)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,widgetBorder:n,widgetShadow:o}=this.styles.widget;this.ui.titleBar.style.backgroundColor=null!=e?e:"",this.ui.container.style.backgroundColor=null!=t?t:"",this.ui.container.style.color=null!=i?i:"",this.ui.container.style.border=n?`1px solid ${n}`:"",this.ui.container.style.boxShadow=o?`0 0 8px 2px ${o}`:"",this.ui.list.style(this.styles.list);const s=[];this.styles.pickerGroup.pickerGroupBorder&&s.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.pickerGroup.pickerGroupBorder}; }`),this.styles.pickerGroup.pickerGroupForeground&&s.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.pickerGroup.pickerGroupForeground}; }`),this.styles.pickerGroup.pickerGroupForeground&&s.push(".quick-input-list .quick-input-list-separator-as-item { color: var(--vscode-descriptionForeground); }"),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(s.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&s.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&s.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&s.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&s.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&s.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),s.push("}"));const r=s.join("\n");r!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=r)}}};ys.MAX_WIDTH=600,ys=_s=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([bs(1,Ie),bs(2,Ee._Y),bs(3,ke.fN)],ys);var Cs=function(e,t){return function(i,n){t(i,n,e)}};let ks=class extends ye.lR{get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get hasController(){return!!this._controller}get currentQuickInput(){return this.controller.currentQuickInput}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(eo))),this._quickAccess}constructor(e,t,i,n,o){super(i),this.instantiationService=e,this.contextKeyService=t,this.layoutService=n,this.configurationService=o,this._onShow=this._register(new be.vl),this._onHide=this._register(new be.vl),this.contexts=new Map}createController(e=this.layoutService,t){const i={idPrefix:"quickInput_",container:e.activeContainer,ignoreFocusOut:()=>!1,backKeybindingLabel:()=>{},setContextKey:e=>this.setContextKey(e),linkOpenerDelegate:e=>{this.instantiationService.invokeFunction((t=>{t.get(vt.C).open(e,{allowCommands:!0,fromUserGesture:!0})}))},returnFocus:()=>e.focus(),styles:this.computeStyles(),hoverDelegate:this._register(this.instantiationService.createInstance(Do))},n=this._register(this.instantiationService.createInstance(ys,{...i,...t}));return n.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop),this._register(e.onDidLayoutActiveContainer((t=>{(0,ve.zk)(e.activeContainer)===(0,ve.zk)(n.container)&&n.layout(t,e.activeContainerOffset.quickPickTop)}))),this._register(e.onDidChangeActiveContainer((()=>{n.isVisible()||n.layout(e.activeContainerDimension,e.activeContainerOffset.quickPickTop)}))),this._register(n.onShow((()=>{this.resetContextKeys(),this._onShow.fire()}))),this._register(n.onHide((()=>{this.resetContextKeys(),this._onHide.fire()}))),n}setContextKey(e){let t;e&&(t=this.contexts.get(e),t||(t=new ke.N1(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),t&&t.get()||(this.resetContextKeys(),null==t||t.set(!0))}resetContextKeys(){this.contexts.forEach((e=>{e.get()&&e.reset()}))}pick(e,t={},i=Bt.XO.None){return this.controller.pick(e,t,i)}createQuickPick(){return this.controller.createQuickPick()}createInputBox(){return this.controller.createInputBox()}updateStyles(){this.hasController&&this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:{quickInputBackground:(0,dt.GuP)(dt.ELA),quickInputForeground:(0,dt.GuP)(dt.HJZ),quickInputTitleBackground:(0,dt.GuP)(dt.er1),widgetBorder:(0,dt.GuP)(dt.DSL),widgetShadow:(0,dt.GuP)(dt.f9l)},inputBox:vn.ho,toggle:vn.mk,countBadge:vn.m$,button:vn.cv,progressBar:vn.oJ,keybindingLabel:vn.ir,list:(0,vn.t8)({listBackground:dt.ELA,listFocusBackground:dt.AlL,listFocusForeground:dt.nH,listInactiveFocusForeground:dt.nH,listInactiveSelectionIconForeground:dt.c7i,listInactiveFocusBackground:dt.AlL,listFocusOutline:dt.buw,listInactiveFocusOutline:dt.buw}),pickerGroup:{pickerGroupBorder:(0,dt.GuP)(dt.iwL),pickerGroupForeground:(0,dt.GuP)(dt.NBf)}}}};ks=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Cs(0,Ee._Y),Cs(1,ke.fN),Cs(2,ye.Gy),Cs(3,Ie),Cs(4,J.pG)],ks);var Ss=i(48289),xs=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Ls=function(e,t){return function(i,n){t(i,n,e)}};let Ds=class extends ks{constructor(e,t,i,n,o,s){super(t,i,n,new Te(e.getContainerDomNode(),o),s),this.host=void 0;const r=Is.get(e);if(r){const t=r.widget;this.host={_serviceBrand:void 0,get mainContainer(){return t.getDomNode()},getContainer:()=>t.getDomNode(),whenContainerStylesLoaded(){},get containers(){return[t.getDomNode()]},get activeContainer(){return t.getDomNode()},get mainContainerDimension(){return e.getLayoutInfo()},get activeContainerDimension(){return e.getLayoutInfo()},get onDidLayoutMainContainer(){return e.onDidLayoutChange},get onDidLayoutActiveContainer(){return e.onDidLayoutChange},get onDidLayoutContainer(){return be.Jh.map(e.onDidLayoutChange,(e=>({container:t.getDomNode(),dimension:e})))},get onDidChangeActiveContainer(){return be.Jh.None},get onDidAddContainer(){return be.Jh.None},get mainContainerOffset(){return{top:0,quickPickTop:0}},get activeContainerOffset(){return{top:0,quickPickTop:0}},focus:()=>e.focus()}}else this.host=void 0}createController(){return super.createController(this.host)}};Ds=xs([Ls(1,Ee._Y),Ls(2,ke.fN),Ls(3,ye.Gy),Ls(4,x.T),Ls(5,J.pG)],Ds);let Es=class{get activeService(){const e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw new Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){const i=t=this.instantiationService.createInstance(Ds,e);this.mapEditorToService.set(e,t),(0,Ss.P)(e.onDidDispose)((()=>{i.dispose(),this.mapEditorToService.delete(e)}))}return t}get currentQuickInput(){return this.activeService.currentQuickInput}get quickAccess(){return this.activeService.quickAccess}constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map}pick(e,t={},i=Bt.XO.None){return this.activeService.pick(e,t,i)}createQuickPick(){return this.activeService.createQuickPick()}createInputBox(){return this.activeService.createInputBox()}};Es=xs([Ls(0,Ee._Y),Ls(1,x.T)],Es);class Is{static get(e){return e.getContribution(Is.ID)}constructor(e){this.editor=e,this.widget=new Ns(this.editor)}dispose(){this.widget.dispose()}}Is.ID="editor.controller.quickInput";class Ns{constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return Ns.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}Ns.ID="editor.contrib.quickInputWidget",(0,S.HW)(Is.ID,Is,4);var Ms=i(53575),As=i(83616),Ts=function(e,t){return function(i,n){t(i,n,e)}};let Rs=class extends r.jG{constructor(e,t,i){super(),this._contextKeyService=e,this._layoutService=t,this._configurationService=i,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new be.vl,this._onDidChangeReducedMotion=new be.vl,this._onDidChangeLinkUnderline=new be.vl,this._accessibilityModeEnabledContext=yt.f.bindTo(this._contextKeyService);const n=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("editor.accessibilitySupport")&&(n(),this._onDidChangeScreenReaderOptimized.fire()),e.affectsConfiguration("workbench.reduceMotion")&&(this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this._onDidChangeReducedMotion.fire())}))),n(),this._register(this.onDidChangeScreenReaderOptimized((()=>n())));const o=s.G.matchMedia("(prefers-reduced-motion: reduce)");this._systemMotionReduced=o.matches,this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this._linkUnderlinesEnabled=this._configurationService.getValue("accessibility.underlineLinks"),this.initReducedMotionListeners(o),this.initLinkUnderlineListeners()}initReducedMotionListeners(e){this._register((0,ve.ko)(e,"change",(()=>{this._systemMotionReduced=e.matches,"auto"===this._configMotionReduced&&this._onDidChangeReducedMotion.fire()})));const t=()=>{const e=this.isMotionReduced();this._layoutService.mainContainer.classList.toggle("reduce-motion",e),this._layoutService.mainContainer.classList.toggle("enable-motion",!e)};t(),this._register(this.onDidChangeReducedMotion((()=>t())))}initLinkUnderlineListeners(){this._register(this._configurationService.onDidChangeConfiguration((e=>{if(e.affectsConfiguration("accessibility.underlineLinks")){const e=this._configurationService.getValue("accessibility.underlineLinks");this._linkUnderlinesEnabled=e,this._onDidChangeLinkUnderline.fire()}})));const e=()=>{const e=this._linkUnderlinesEnabled;this._layoutService.mainContainer.classList.toggle("underline-links",e)};e(),this._register(this.onDidChangeLinkUnderlines((()=>e())))}onDidChangeLinkUnderlines(e){return this._onDidChangeLinkUnderline.event(e)}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const e=this._configurationService.getValue("editor.accessibilitySupport");return"on"===e||"auto"===e&&2===this._accessibilitySupport}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){const e=this._configMotionReduced;return"on"===e||"auto"===e&&this._systemMotionReduced}getAccessibilitySupport(){return this._accessibilitySupport}};Rs=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Ts(0,ke.fN),Ts(1,Ie),Ts(2,J.pG)],Rs);var Ps,Os=i(73810),Fs=function(e,t){return function(i,n){t(i,n,e)}};let Bs=Ps=class extends r.jG{constructor(e,t){super(),this.layoutService=e,this.logService=t,this.mapTextToType=new Map,this.findText="",this.resources=[],this.resourcesStateHash=void 0,(Xi.nr||Xi.c8)&&this.installWebKitWriteTextWorkaround(),this._register(be.Jh.runAndSubscribe(ve.Iv,(({window:e,disposables:t})=>{t.add((0,ve.ko)(e.document,"copy",(()=>this.clearResources())))}),{window:s.G,disposables:this._store}))}installWebKitWriteTextWorkaround(){const e=()=>{const e=new Vt.Zv;this.webKitPendingClipboardWritePromise&&!this.webKitPendingClipboardWritePromise.isSettled&&this.webKitPendingClipboardWritePromise.cancel(),this.webKitPendingClipboardWritePromise=e,(0,ve.fz)().navigator.clipboard.write([new ClipboardItem({"text/plain":e.p})]).catch((async t=>{t instanceof Error&&"NotAllowedError"===t.name&&e.isRejected||this.logService.error(t)}))};this._register(be.Jh.runAndSubscribe(this.layoutService.onDidAddContainer,(({container:t,disposables:i})=>{i.add((0,ve.ko)(t,"click",e)),i.add((0,ve.ko)(t,"keydown",e))}),{container:this.layoutService.mainContainer,disposables:this._store}))}async writeText(e,t){if(this.writeResources([]),t)this.mapTextToType.set(t,e);else{if(this.webKitPendingClipboardWritePromise)return this.webKitPendingClipboardWritePromise.complete(e);try{return await(0,ve.fz)().navigator.clipboard.writeText(e)}catch(e){console.error(e)}this.fallbackWriteText(e)}}fallbackWriteText(e){const t=(0,ve.a)(),i=t.activeElement,n=t.body.appendChild((0,ve.$)("textarea",{"aria-hidden":!0}));n.style.height="1px",n.style.width="1px",n.style.position="absolute",n.value=e,n.focus(),n.select(),t.execCommand("copy"),(0,ve.sb)(i)&&i.focus(),n.remove()}async readText(e){if(e)return this.mapTextToType.get(e)||"";try{return await(0,ve.fz)().navigator.clipboard.readText()}catch(e){console.error(e)}return""}async readFindText(){return this.findText}async writeFindText(e){this.findText=e}async writeResources(e){0===e.length?this.clearResources():(this.resources=e,this.resourcesStateHash=await this.computeResourcesStateHash())}async readResources(){const e=await this.computeResourcesStateHash();return this.resourcesStateHash!==e&&this.clearResources(),this.resources}async computeResourcesStateHash(){if(0===this.resources.length)return;const e=await this.readText();return(0,Hn.tW)(e.substring(0,Ps.MAX_RESOURCE_STATE_SOURCE_LENGTH))}clearResources(){this.resources=[],this.resourcesStateHash=void 0}};Bs.MAX_RESOURCE_STATE_SOURCE_LENGTH=1e3,Bs=Ps=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([Fs(0,Ie),Fs(1,Xe.rr)],Bs);var Ws=i(3338),Hs=i(17954),Vs=i(66525);const zs="data-keybinding-context";class js{constructor(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}get value(){return{...this._value}}setValue(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)}removeValue(e){return e in this._value&&(delete this._value[e],!0)}getValue(e){const t=this._value[e];return void 0===t&&this._parent?this._parent.getValue(e):t}}class Us extends js{constructor(){super(-1,null)}setValue(e,t){return!1}removeValue(e){return!1}getValue(e){}}Us.INSTANCE=new Us;class $s extends js{constructor(e,t,i){super(e,null),this._configurationService=t,this._values=Vs.cB.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration((e=>{if(7===e.source){const e=Array.from(this._values,(([e])=>e));this._values.clear(),i.fire(new Gs(e))}else{const t=[];for(const i of e.affectedKeys){const e=`config.${i}`,n=this._values.findSuperstr(e);void 0!==n&&(t.push(...Hs.f.map(n,(([e])=>e))),this._values.deleteSuperstr(e)),this._values.has(e)&&(t.push(e),this._values.delete(e))}i.fire(new Gs(t))}}))}dispose(){this._listener.dispose()}getValue(e){if(0!==e.indexOf($s._keyPrefix))return super.getValue(e);if(this._values.has(e))return this._values.get(e);const t=e.substr($s._keyPrefix.length),i=this._configurationService.getValue(t);let n;switch(typeof i){case"number":case"boolean":case"string":n=i;break;default:n=Array.isArray(i)?JSON.stringify(i):i}return this._values.set(e,n),n}setValue(e,t){return super.setValue(e,t)}removeValue(e){return super.removeValue(e)}}$s._keyPrefix="config.";class Ks{constructor(e,t,i){this._service=e,this._key=t,this._defaultValue=i,this.reset()}set(e){this._service.setContext(this._key,e)}reset(){void 0===this._defaultValue?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class qs{constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}allKeysContainedIn(e){return this.affectsSome(e)}}class Gs{constructor(e){this.keys=e}affectsSome(e){for(const t of this.keys)if(e.has(t))return!0;return!1}allKeysContainedIn(e){return this.keys.every((t=>e.has(t)))}}class Qs{constructor(e){this.events=e}affectsSome(e){for(const t of this.events)if(t.affectsSome(e))return!0;return!1}allKeysContainedIn(e){return this.events.every((t=>t.allKeysContainedIn(e)))}}class Zs extends r.jG{constructor(e){super(),this._onDidChangeContext=this._register(new be.fV({merge:e=>new Qs(e)})),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=e}createKey(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Ks(this,e,t)}bufferChangeEvents(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}}createScoped(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Xs(this,e)}contextMatchesRules(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");const t=this.getContextValuesContainer(this._myContextId);return!e||e.evaluate(t)}getContextKeyValue(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)}setContext(e,t){if(this._isDisposed)return;const i=this.getContextValuesContainer(this._myContextId);i&&i.setValue(e,t)&&this._onDidChangeContext.fire(new qs(e))}removeContext(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new qs(e))}getContext(e){return this._isDisposed?Us.INSTANCE:this.getContextValuesContainer(function(e){for(;e;){if(e.hasAttribute(zs)){const t=e.getAttribute(zs);return t?parseInt(t,10):NaN}e=e.parentElement}return 0}(e))}dispose(){super.dispose(),this._isDisposed=!0}}let Ys=class extends Zs{constructor(e){super(0),this._contexts=new Map,this._lastContextId=0;const t=this._register(new $s(this._myContextId,e,this._onDidChangeContext));this._contexts.set(this._myContextId,t)}getContextValuesContainer(e){return this._isDisposed?Us.INSTANCE:this._contexts.get(e)||Us.INSTANCE}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");const t=++this._lastContextId;return this._contexts.set(t,new js(t,this.getContextValuesContainer(e))),t}disposeContext(e){this._isDisposed||this._contexts.delete(e)}};Ys=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([function(e,t){return function(i,n){t(i,n,e)}}(0,J.pG)],Ys);class Xs extends Zs{constructor(e,t){if(super(e.createChildContext()),this._parentChangeListener=this._register(new r.HE),this._parent=e,this._updateParentChangeListener(),this._domNode=t,this._domNode.hasAttribute(zs)){let e="";this._domNode.classList&&(e=Array.from(this._domNode.classList.values()).join(", ")),console.error("Element already has context attribute"+(e?": "+e:""))}this._domNode.setAttribute(zs,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext((e=>{var t;t=this._parent.getContextValuesContainer(this._myContextId).value,e.allKeysContainedIn(new Set(Object.keys(t)))||this._onDidChangeContext.fire(e)}))}dispose(){this._isDisposed||(this._parent.disposeContext(this._myContextId),this._domNode.removeAttribute(zs),super.dispose())}getContextValuesContainer(e){return this._isDisposed?Us.INSTANCE:this._parent.getContextValuesContainer(e)}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)}disposeContext(e){this._isDisposed||this._parent.disposeContext(e)}}ti.w.registerCommand("_setContext",(function(e,t,i){e.get(ke.fN).createKey(String(t),function(e){return(0,L.PI)(e,(e=>"object"==typeof e&&1===e.$mid?l.r.revive(e).toString():e instanceof l.r?e.toString():void 0))}(i))})),ti.w.registerCommand({id:"getContextKeyInfo",handler:()=>[...ke.N1.all()].sort(((e,t)=>e.key.localeCompare(t.key))),metadata:{description:(0,Oe.k)("getContextKeyInfo","A command that returns information about context keys"),args:[]}}),ti.w.registerCommand("_generateContextKeyInfo",(function(){const e=[],t=new Set;for(const i of ke.N1.all())t.has(i.key)||(t.add(i.key),e.push(i));e.sort(((e,t)=>e.key.localeCompare(t.key))),console.log(JSON.stringify(e,void 0,2))}));var Js=i(83312);class er{constructor(e,t){this.key=e,this.data=t,this.incoming=new Map,this.outgoing=new Map}}class tr{constructor(e){this._hashFn=e,this._nodes=new Map}roots(){const e=[];for(const t of this._nodes.values())0===t.outgoing.size&&e.push(t);return e}insertEdge(e,t){const i=this.lookupOrInsertNode(e),n=this.lookupOrInsertNode(t);i.outgoing.set(n.key,n),n.incoming.set(i.key,i)}removeNode(e){const t=this._hashFn(e);this._nodes.delete(t);for(const e of this._nodes.values())e.outgoing.delete(t),e.incoming.delete(t)}lookupOrInsertNode(e){const t=this._hashFn(e);let i=this._nodes.get(t);return i||(i=new er(t,e),this._nodes.set(t,i)),i}isEmpty(){return 0===this._nodes.size}toString(){const e=[];for(const[t,i]of this._nodes)e.push(`${t}\n\t(-> incoming)[${[...i.incoming.keys()].join(", ")}]\n\t(outgoing ->)[${[...i.outgoing.keys()].join(",")}]\n`);return e.join("\n")}findCycleSlow(){for(const[e,t]of this._nodes){const i=new Set([e]),n=this._findCycle(t,i);if(n)return n}}_findCycle(e,t){for(const[i,n]of e.outgoing){if(t.has(i))return[...t,i].join(" -> ");t.add(i);const e=this._findCycle(n,t);if(e)return e;t.delete(i)}}}var ir=i(30657);class nr extends Error{constructor(e){var t;super("cyclic dependency between services"),this.message=null!==(t=e.findCycleSlow())&&void 0!==t?t:`UNABLE to detect cycle, dumping graph: \n${e.toString()}`}}class or{constructor(e=new ir.a,t=!1,i,n=!1){var o;this._services=e,this._strict=t,this._parent=i,this._enableTracing=n,this._isDisposed=!1,this._servicesToMaybeDispose=new Set,this._children=new Set,this._activeInstantiations=new Set,this._services.set(Ee._Y,this),this._globalGraph=n?null!==(o=null==i?void 0:i._globalGraph)&&void 0!==o?o:new tr((e=>e)):void 0}dispose(){if(!this._isDisposed){this._isDisposed=!0,(0,r.AS)(this._children),this._children.clear();for(const e of this._servicesToMaybeDispose)(0,r.Xm)(e)&&e.dispose();this._servicesToMaybeDispose.clear()}}_throwIfDisposed(){if(this._isDisposed)throw new Error("InstantiationService has been disposed")}createChild(e,t){this._throwIfDisposed();const i=this,n=new class extends or{dispose(){i._children.delete(n),super.dispose()}}(e,this._strict,this,this._enableTracing);return this._children.add(n),null==t||t.add(n),n}invokeFunction(e,...t){this._throwIfDisposed();const i=sr.traceInvocation(this._enableTracing,e);let n=!1;try{return e({get:e=>{if(n)throw(0,Re.iH)("service accessor is only valid during the invocation of its target method");const t=this._getOrCreateServiceInstance(e,i);if(!t)throw new Error(`[invokeFunction] unknown service '${e}'`);return t}},...t)}finally{n=!0,i.stop()}}createInstance(e,...t){let i,n;return this._throwIfDisposed(),e instanceof Js.d?(i=sr.traceCreation(this._enableTracing,e.ctor),n=this._createInstance(e.ctor,e.staticArguments.concat(t),i)):(i=sr.traceCreation(this._enableTracing,e),n=this._createInstance(e,t,i)),i.stop(),n}_createInstance(e,t=[],i){const n=Ee._$.getServiceDependencies(e).sort(((e,t)=>e.index-t.index)),o=[];for(const t of n){const n=this._getOrCreateServiceInstance(t.id,i);n||this._throwIfStrict(`[createInstance] ${e.name} depends on UNKNOWN service ${t.id}.`,!1),o.push(n)}const s=n.length>0?n[0].index:t.length;if(t.length!==s){console.trace(`[createInstance] First service dependency of ${e.name} at position ${s+1} conflicts with ${t.length} static arguments`);const i=s-t.length;t=i>0?t.concat(new Array(i)):t.slice(0,s)}return Reflect.construct(e,t.concat(o))}_setCreatedServiceInstance(e,t){if(this._services.get(e)instanceof Js.d)this._services.set(e,t);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setCreatedServiceInstance(e,t)}}_getServiceInstanceOrDescriptor(e){const t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t}_getOrCreateServiceInstance(e,t){this._globalGraph&&this._globalGraphImplicitDependency&&this._globalGraph.insertEdge(this._globalGraphImplicitDependency,String(e));const i=this._getServiceInstanceOrDescriptor(e);return i instanceof Js.d?this._safeCreateAndCacheServiceInstance(e,i,t.branch(e,!0)):(t.branch(e,!1),i)}_safeCreateAndCacheServiceInstance(e,t,i){if(this._activeInstantiations.has(e))throw new Error(`illegal state - RECURSIVELY instantiating service '${e}'`);this._activeInstantiations.add(e);try{return this._createAndCacheServiceInstance(e,t,i)}finally{this._activeInstantiations.delete(e)}}_createAndCacheServiceInstance(e,t,i){var n;const o=new tr((e=>e.id.toString()));let s=0;const r=[{id:e,desc:t,_trace:i}],a=new Set;for(;r.length;){const t=r.pop();if(!a.has(String(t.id))){if(a.add(String(t.id)),o.lookupOrInsertNode(t),s++>1e3)throw new nr(o);for(const i of Ee._$.getServiceDependencies(t.desc.ctor)){const s=this._getServiceInstanceOrDescriptor(i.id);if(s||this._throwIfStrict(`[createInstance] ${e} depends on ${i.id} which is NOT registered.`,!0),null===(n=this._globalGraph)||void 0===n||n.insertEdge(String(t.id),String(i.id)),s instanceof Js.d){const e={id:i.id,desc:s,_trace:t._trace.branch(i.id,!0)};o.insertEdge(t,e),r.push(e)}}}}for(;;){const e=o.roots();if(0===e.length){if(!o.isEmpty())throw new nr(o);break}for(const{data:t}of e){if(this._getServiceInstanceOrDescriptor(t.id)instanceof Js.d){const e=this._createServiceInstanceWithOwner(t.id,t.desc.ctor,t.desc.staticArguments,t.desc.supportsDelayedInstantiation,t._trace);this._setCreatedServiceInstance(t.id,e)}o.removeNode(t)}}return this._getServiceInstanceOrDescriptor(e)}_createServiceInstanceWithOwner(e,t,i=[],n,o){if(this._services.get(e)instanceof Js.d)return this._createServiceInstance(e,t,i,n,o,this._servicesToMaybeDispose);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,i,n,o);throw new Error(`illegalState - creating UNKNOWN service instance ${t.name}`)}_createServiceInstance(e,t,i=[],n,o,s){if(n){const n=new or(void 0,this._strict,this,this._enableTracing);n._globalGraphImplicitDependency=String(e);const a=new Map,l=new Vt.F6((()=>{const e=n._createInstance(t,i,o);for(const[t,i]of a){const n=e[t];if("function"==typeof n)for(const t of i)t.disposable=n.apply(e,t.listener)}return a.clear(),s.add(e),e}));return new Proxy(Object.create(null),{get(e,t){if(!l.isInitialized&&"string"==typeof t&&(t.startsWith("onDid")||t.startsWith("onWill"))){let e=a.get(t);return e||(e=new we.w,a.set(t,e)),(i,n,o)=>{if(l.isInitialized)return l.value[t](i,n,o);{const t={listener:[i,n,o],disposable:void 0},s=e.push(t);return(0,r.s)((()=>{var e;s(),null===(e=t.disposable)||void 0===e||e.dispose()}))}}}if(t in e)return e[t];const i=l.value;let n=i[t];return"function"!=typeof n||(n=n.bind(i),e[t]=n),n},set:(e,t,i)=>(l.value[t]=i,!0),getPrototypeOf:e=>t.prototype})}{const e=this._createInstance(t,i,o);return s.add(e),e}}_throwIfStrict(e,t){if(t&&console.warn(e),this._strict)throw new Error(e)}}class sr{static traceInvocation(e,t){return e?new sr(2,t.name||(new Error).stack.split("\n").slice(3,4).join("\n")):sr._None}static traceCreation(e,t){return e?new sr(1,t.name):sr._None}constructor(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}branch(e,t){const i=new sr(3,e.toString());return this._dep.push([e,t,i]),i}stop(){const e=Date.now()-this._start;sr._totals+=e;let t=!1;const i=[`${1===this.type?"CREATE":"CALL"} ${this.name}`,`${function e(i,n){const o=[],s=new Array(i+1).join("\t");for(const[r,a,l]of n._dep)if(a&&l){t=!0,o.push(`${s}CREATES -> ${r}`);const n=e(i+1,l);n&&o.push(n)}else o.push(`${s}uses -> ${r}`);return o.join("\n")}(1,this)}`,`DONE, took ${e.toFixed(2)}ms (grand total ${sr._totals.toFixed(2)}ms)`];(e>2||t)&&sr.all.add(i.join("\n"))}}sr.all=new Set,sr._None=new class extends sr{constructor(){super(0,null)}stop(){}branch(){return this}},sr._totals=0;const rr=new Set([_e.ny.inMemory,_e.ny.vscodeSourceControl,_e.ny.walkThrough,_e.ny.walkThroughSnippet,_e.ny.vscodeChatCodeBlock,_e.ny.vscodeCopilotBackingChatCodeBlock]);class ar{constructor(){this._byResource=new ii.fT,this._byOwner=new Map}set(e,t,i){let n=this._byResource.get(e);n||(n=new Map,this._byResource.set(e,n)),n.set(t,i);let o=this._byOwner.get(t);o||(o=new ii.fT,this._byOwner.set(t,o)),o.set(e,i)}get(e,t){const i=this._byResource.get(e);return null==i?void 0:i.get(t)}delete(e,t){let i=!1,n=!1;const o=this._byResource.get(e);o&&(i=o.delete(t));const s=this._byOwner.get(t);if(s&&(n=s.delete(e)),i!==n)throw new Error("illegal state");return i&&n}values(e){var t,i,n,o;return"string"==typeof e?null!==(i=null===(t=this._byOwner.get(e))||void 0===t?void 0:t.values())&&void 0!==i?i:Hs.f.empty():l.r.isUri(e)?null!==(o=null===(n=this._byResource.get(e))||void 0===n?void 0:n.values())&&void 0!==o?o:Hs.f.empty():Hs.f.map(Hs.f.concat(...this._byOwner.values()),(e=>e[1]))}}class lr{constructor(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new ii.fT,this._service=e,this._subscription=e.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(e){for(const t of e){const e=this._data.get(t);e&&this._substract(e);const i=this._resourceStats(t);this._add(i),this._data.set(t,i)}}_resourceStats(e){const t={errors:0,warnings:0,infos:0,unknowns:0};if(rr.has(e.scheme))return t;for(const{severity:i}of this._service.read({resource:e}))i===Nn.cj.Error?t.errors+=1:i===Nn.cj.Warning?t.warnings+=1:i===Nn.cj.Info?t.infos+=1:t.unknowns+=1;return t}_substract(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns}_add(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns}}class dr{constructor(){this._onMarkerChanged=new be.uI({delay:0,merge:dr._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new ar,this._stats=new lr(this)}dispose(){this._stats.dispose(),this._onMarkerChanged.dispose()}remove(e,t){for(const i of t||[])this.changeOne(e,i,[])}changeOne(e,t,i){if((0,De.Ct)(i))this._data.delete(t,e)&&this._onMarkerChanged.fire([t]);else{const n=[];for(const o of i){const i=dr._toMarker(e,t,o);i&&n.push(i)}this._data.set(t,e,n),this._onMarkerChanged.fire([t])}}static _toMarker(e,t,i){let{code:n,severity:o,message:s,source:r,startLineNumber:a,startColumn:l,endLineNumber:d,endColumn:c,relatedInformation:h,tags:u}=i;if(s)return a=a>0?a:1,l=l>0?l:1,d=d>=a?d:a,c=c>0?c:l,{resource:t,owner:e,code:n,severity:o,message:s,source:r,startLineNumber:a,startColumn:l,endLineNumber:d,endColumn:c,relatedInformation:h,tags:u}}changeAll(e,t){const i=[],n=this._data.values(e);if(n)for(const t of n){const n=Hs.f.first(t);n&&(i.push(n.resource),this._data.delete(n.resource,e))}if((0,De.EI)(t)){const n=new ii.fT;for(const{resource:o,marker:s}of t){const t=dr._toMarker(e,o,s);if(!t)continue;const r=n.get(o);r?r.push(t):(n.set(o,[t]),i.push(o))}for(const[t,i]of n)this._data.set(t,e,i)}i.length>0&&this._onMarkerChanged.fire(i)}read(e=Object.create(null)){let{owner:t,resource:i,severities:n,take:o}=e;if((!o||o<0)&&(o=-1),t&&i){const e=this._data.get(i,t);if(e){const t=[];for(const i of e)if(dr._accept(i,n)){const e=t.push(i);if(o>0&&e===o)break}return t}return[]}if(t||i){const e=this._data.values(null!=i?i:t),s=[];for(const t of e)for(const e of t)if(dr._accept(e,n)){const t=s.push(e);if(o>0&&t===o)return s}return s}{const e=[];for(const t of this._data.values())for(const i of t)if(dr._accept(i,n)){const t=e.push(i);if(o>0&&t===o)return e}return e}}static _accept(e,t){return void 0===t||(t&e.severity)===e.severity}static _merge(e){const t=new ii.fT;for(const i of e)for(const e of i)t.set(e,!0);return Array.from(t.keys())}}var cr=i(90840);class hr extends r.jG{get configurationModel(){return this._configurationModel}constructor(e){super(),this.logService=e,this._configurationModel=ri.createEmptyModel(this.logService)}reload(){return this.resetConfigurationModel(),this.configurationModel}getConfigurationDefaultOverrides(){return{}}resetConfigurationModel(){this._configurationModel=ri.createEmptyModel(this.logService);const e=oi.O.as(ni.Fd.Configuration).getConfigurationProperties();this.updateConfigurationModel(Object.keys(e),e)}updateConfigurationModel(e,t){const i=this.getConfigurationDefaultOverrides();for(const n of e){const e=i[n],o=t[n];void 0!==e?this._configurationModel.addValue(n,e):o?this._configurationModel.addValue(n,o.default):this._configurationModel.removeValue(n)}}}var ur=i(71285);class gr extends r.jG{constructor(e,t=[]){super(),this.logger=new Xe.Dk([e,...t]),this._register(e.onDidChangeLogLevel((e=>this.setLevel(e))))}get onDidChangeLogLevel(){return this.logger.onDidChangeLogLevel}setLevel(e){this.logger.setLevel(e)}getLevel(){return this.logger.getLevel()}trace(e,...t){this.logger.trace(e,...t)}debug(e,...t){this.logger.debug(e,...t)}info(e,...t){this.logger.info(e,...t)}warn(e,...t){this.logger.warn(e,...t)}error(e,...t){this.logger.error(e,...t)}}var pr=i(90426),mr=i(88195),fr=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},vr=function(e,t){return function(i,n){t(i,n,e)}};class _r{constructor(e){this.disposed=!1,this.model=e,this._onWillDispose=new be.vl}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}}let br=class{constructor(e){this.modelService=e}createModelReference(e){const t=this.modelService.getModel(e);return t?Promise.resolve(new r.BO(new _r(t))):Promise.reject(new Error("Model not found"))}};br=fr([vr(0,B.S)],br);class wr{show(){return wr.NULL_PROGRESS_RUNNER}async showWhile(e,t){await e}}wr.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};class yr{info(e){return this.notify({severity:Pe.A.Info,message:e})}warn(e){return this.notify({severity:Pe.A.Warning,message:e})}error(e){return this.notify({severity:Pe.A.Error,message:e})}notify(e){switch(e.severity){case Pe.A.Error:console.error(e.message);break;case Pe.A.Warning:console.warn(e.message);break;default:console.log(e.message)}return yr.NO_OP}prompt(e,t,i,n){return yr.NO_OP}status(e,t){return r.jG.None}}yr.NO_OP=new Be.Kz;let Cr=class{constructor(e){this._onWillExecuteCommand=new be.vl,this._onDidExecuteCommand=new be.vl,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=e}executeCommand(e,...t){const i=ti.w.getCommand(e);if(!i)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});const n=this._instantiationService.invokeFunction.apply(this._instantiationService,[i.handler,...t]);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(e){return Promise.reject(e)}}};Cr=fr([vr(0,Ee._Y)],Cr);let kr=class extends _i{constructor(e,t,i,n,o,s){super(e,t,i,n,o),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const a=e=>{const t=new r.Cm;t.add(ve.ko(e,ve.Bx.KEY_DOWN,(e=>{const t=new Et.Z(e);this._dispatch(t,t.target)&&(t.preventDefault(),t.stopPropagation())}))),t.add(ve.ko(e,ve.Bx.KEY_UP,(e=>{const t=new Et.Z(e);this._singleModifierDispatch(t,t.target)&&t.preventDefault()}))),this._domNodeListeners.push(new Sr(e,t))},l=e=>{for(let t=0;t{e.getOption(61)||a(e.getContainerDomNode())};this._register(s.onCodeEditorAdd(d)),this._register(s.onCodeEditorRemove((e=>{e.getOption(61)||l(e.getContainerDomNode())}))),s.listCodeEditors().forEach(d);const c=e=>{a(e.getContainerDomNode())};this._register(s.onDiffEditorAdd(c)),this._register(s.onDiffEditorRemove((e=>{l(e.getContainerDomNode())}))),s.listDiffEditors().forEach(c)}addDynamicKeybinding(e,t,i,n){return(0,r.qE)(ti.w.registerCommand(e,i),this.addDynamicKeybindings([{keybinding:t,command:e,when:n}]))}addDynamicKeybindings(e){const t=e.map((e=>{var t;return{keybinding:(0,qt.Zv)(e.keybinding,wt.OS),command:null!==(t=e.command)&&void 0!==t?t:null,commandArgs:e.commandArgs,when:e.when,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}}));return this._dynamicKeybindings=this._dynamicKeybindings.concat(t),this.updateResolver(),(0,r.s)((()=>{for(let e=0;ethis._log(e)))}return this._cachedResolver}_documentHasFocus(){return s.G.document.hasFocus()}_toNormalizedKeybindingItems(e,t){const i=[];let n=0;for(const o of e){const e=o.when||void 0,s=o.keybinding;if(s){const r=Li.resolveKeybinding(s,wt.OS);for(const s of r)i[n++]=new yi(s,o.command,o.commandArgs,e,t,null,!1)}else i[n++]=new yi(void 0,o.command,o.commandArgs,e,t,null,!1)}return i}resolveKeyboardEvent(e){const t=new qt.dG(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode);return new Li([t],wt.OS)}};kr=fr([vr(0,ke.fN),vr(1,ti.d),vr(2,Ii.k),vr(3,Be.Ot),vr(4,Xe.rr),vr(5,x.T)],kr);class Sr extends r.jG{constructor(e,t){super(),this.domNode=e,this._register(t)}}function xr(e){return e&&"object"==typeof e&&(!e.overrideIdentifier||"string"==typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof l.r)}let Lr=class{constructor(e){this.logService=e,this._onDidChangeConfiguration=new be.vl,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event;const t=new hr(e);this._configuration=new di(t.reload(),ri.createEmptyModel(e),ri.createEmptyModel(e),ri.createEmptyModel(e),ri.createEmptyModel(e),ri.createEmptyModel(e),new ii.fT,ri.createEmptyModel(e),new ii.fT,e),t.dispose()}getValue(e,t){const i="string"==typeof e?e:void 0,n=xr(e)?e:xr(t)?t:{};return this._configuration.getValue(i,n,void 0)}updateValues(e){const t={data:this._configuration.toData()},i=[];for(const t of e){const[e,n]=t;this.getValue(e)!==n&&(this._configuration.updateValue(e,n),i.push(e))}if(i.length>0){const e=new ci({keys:i,overrides:[]},t,this._configuration,void 0,this.logService);e.source=8,this._onDidChangeConfiguration.fire(e)}return Promise.resolve()}updateValue(e,t,i,n){return this.updateValues([[e,t]])}inspect(e,t={}){return this._configuration.inspect(e,t,void 0)}};Lr=fr([vr(0,Xe.rr)],Lr);let Dr=class{constructor(e,t,i){this.configurationService=e,this.modelService=t,this.languageService=i,this._onDidChangeConfiguration=new be.vl,this.configurationService.onDidChangeConfiguration((e=>{this._onDidChangeConfiguration.fire({affectedKeys:e.affectedKeys,affectsConfiguration:(t,i)=>e.affectsConfiguration(i)})}))}getValue(e,t,i){const n=Yt.y.isIPosition(t)?t:null,o=n?"string"==typeof i?i:void 0:"string"==typeof t?t:void 0,s=e?this.getLanguage(e,n):void 0;return void 0===o?this.configurationService.getValue({resource:e,overrideIdentifier:s}):this.configurationService.getValue(o,{resource:e,overrideIdentifier:s})}getLanguage(e,t){const i=this.modelService.getModel(e);return i?t?i.getLanguageIdAtPosition(t.lineNumber,t.column):i.getLanguageId():this.languageService.guessLanguageIdByFilepathOrFirstLine(e)}};Dr=fr([vr(0,J.pG),vr(1,B.S),vr(2,T.L)],Dr);let Er=class{constructor(e){this.configurationService=e}getEOL(e,t){const i=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return i&&"string"==typeof i&&"auto"!==i?i:wt.j9||wt.zx?"\n":"\r\n"}};Er=fr([vr(0,J.pG)],Er);class Ir{constructor(){const e=l.r.from({scheme:Ir.SCHEME,authority:"model",path:"/"});this.workspace={id:Ni.cn,folders:[new Ni.mX({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===Ir.SCHEME?this.workspace.folders[0]:null}}function Nr(e,t,i){if(!t)return;if(!(e instanceof Lr))return;const n=[];Object.keys(t).forEach((e=>{(0,Qt.vf)(e)&&n.push([`editor.${e}`,t[e]]),i&&(0,Qt.Gn)(e)&&n.push([`diffEditor.${e}`,t[e]])})),n.length>0&&e.updateValues(n)}Ir.SCHEME="inmemory";let Mr=class{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}async apply(e,t){const i=Array.isArray(e)?e:Gt.jN.convert(e),n=new Map;for(const e of i){if(!(e instanceof Gt.cw))throw new Error("bad edit - only text edits are supported");const t=this._modelService.getModel(e.resource);if(!t)throw new Error("bad edit - model not found");if("number"==typeof e.versionId&&t.getVersionId()!==e.versionId)throw new Error("bad state - model changed in the meantime");let i=n.get(t);i||(i=[],n.set(t,i)),i.push(Zt.k.replaceMove(Xt.Q.lift(e.textEdit.range),e.textEdit.text))}let o=0,s=0;for(const[e,t]of n)e.pushStackElement(),e.pushEditOperations([],t,(()=>[])),e.pushStackElement(),s+=1,o+=t.length;return{ariaSummary:a.GP(Mi.tu.bulkEditServiceSummary,o,s),isApplied:o>0}}};Mr=fr([vr(0,B.S)],Mr);let Ar=class extends Ft{constructor(e,t){super(e),this._codeEditorService=t}showContextView(e,t,i){if(!t){const e=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();e&&(t=e.getContainerDomNode())}return super.showContextView(e,t,i)}};Ar=fr([vr(0,Ie),vr(1,x.T)],Ar);let Tr=class extends wn{constructor(e,t,i,n,o,s){super(e,t,i,n,o,s),this.configure({blockMouse:!1})}};var Rr;Tr=fr([vr(0,Ii.k),vr(1,Be.Ot),vr(2,ht.l),vr(3,pt.b),vr(4,Zi.ez),vr(5,ke.fN)],Tr),(0,Se.v)(Xe.rr,class extends gr{constructor(){super(new Xe.Cr)}},0),(0,Se.v)(J.pG,Lr,0),(0,Se.v)(ei.U,Dr,0),(0,Se.v)(ei.J,Er,0),(0,Se.v)(Ni.VR,Ir,0),(0,Se.v)(Di.L,class{getUriLabel(e,t){return"file"===e.scheme?e.fsPath:e.path}getUriBasenameLabel(e){return(0,Ai.P8)(e)}},0),(0,Se.v)(Ii.k,class{publicLog2(){}},0),(0,Se.v)(Fe.X,class{async confirm(e){return{confirmed:this.doConfirm(e.message,e.detail),checkboxChecked:!1}}doConfirm(e,t){let i=e;return t&&(i=i+"\n\n"+t),s.G.confirm(i)}async prompt(e){var t,i;let n;if(this.doConfirm(e.message,e.detail)){const o=[...null!==(t=e.buttons)&&void 0!==t?t:[]];e.cancelButton&&"string"!=typeof e.cancelButton&&"boolean"!=typeof e.cancelButton&&o.push(e.cancelButton),n=await(null===(i=o[0])||void 0===i?void 0:i.run({checkboxChecked:!1}))}return{result:n}}async error(e,t){await this.prompt({type:Pe.A.Error,message:e,detail:t})}},0),(0,Se.v)(mr.k,class{constructor(){this.isExtensionDevelopment=!1,this.isBuilt=!1}},0),(0,Se.v)(Be.Ot,yr,0),(0,Se.v)(Nn.DR,dr,0),(0,Se.v)(T.L,class extends Ki{constructor(){super()}},0),(0,Se.v)(As.L,Ms.Sx,0),(0,Se.v)(B.S,qn,0),(0,Se.v)(Fn.A,Rn,0),(0,Se.v)(ke.fN,Ys,0),(0,Se.v)(Ei.G5,class{withProgress(e,t,i){return t({report:()=>{}})}},0),(0,Se.v)(Ei.N8,wr,0),(0,Se.v)(cr.CS,cr.pc,0),(0,Se.v)(In.w,D.Bc,0),(0,Se.v)(Gt.nu,Mr,0),(0,Se.v)(Ti.L,class{constructor(){this._neverEmitter=new be.vl,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}},0),(0,Se.v)(Jt.b,br,0),(0,Se.v)(yt.j,Rs,0),(0,Se.v)(Vo.PE,Vo.aG,0),(0,Se.v)(ti.d,Cr,0),(0,Se.v)(pt.b,kr,0),(0,Se.v)(Xn.GK,Es,0),(0,Se.v)(ht.l,Ar,0),(0,Se.v)(vt.C,En,0),(0,Se.v)(Ws.h,Bs,0),(0,Se.v)(ht.Z,Tr,0),(0,Se.v)(Zi.ez,Os.$,0),(0,Se.v)(ur.Nt,class{async playSignal(e,t){}},0),function(e){const t=new ir.a;for(const[e,i]of(0,Se.N)())t.set(e,i);const i=new or(t,!0);t.set(Ee._Y,i),e.get=function(e){n||s({});const o=t.get(e);if(!o)throw new Error("Missing service "+e);return o instanceof Js.d?i.invokeFunction((t=>t.get(e))):o};let n=!1;const o=new be.vl;function s(e){if(n)return i;n=!0;for(const[e,i]of(0,Se.N)())t.get(e)||t.set(e,i);for(const i in e)if(e.hasOwnProperty(i)){const n=(0,Ee.u1)(i);t.get(n)instanceof Js.d&&t.set(n,e[i])}const s=(0,pr.T)();for(const e of s)try{i.createInstance(e)}catch(e){(0,Re.dz)(e)}return o.fire(),i}e.initialize=s,e.withServices=function(e){if(n)return e();const t=new r.Cm,i=t.add(o.event((()=>{i.dispose(),t.add(e())})));return t}}(Rr||(Rr={}));var Pr=i(85518),Or=i(65568),Fr=i(20396),Br=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Wr=function(e,t){return function(i,n){t(i,n,e)}};let Hr=0,Vr=!1,zr=class extends me.CodeEditorWidget{constructor(e,t,i,n,o,r,a,l,d,c,h,u,g){const p={...t};p.ariaLabel=p.ariaLabel||Mi.vp.editorViewAccessibleLabel,p.ariaLabel=p.ariaLabel+";"+Mi.vp.accessibilityHelpMessage,super(e,p,{},i,n,o,r,d,c,h,u,g),this._standaloneKeybindingService=l instanceof kr?l:null,function(e){if(!e){if(Vr)return;Vr=!0}pe.vr(e||s.G.document.body)}(p.ariaContainerElement),(0,Or.MW)(((e,t)=>i.createInstance(ct.fO,e,t,{}))),(0,Fr.e)(a)}addCommand(e,t,i){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;const n="DYNAMIC_"+ ++Hr,o=ke.M$.deserialize(i);return this._standaloneKeybindingService.addDynamicKeybinding(n,e,t,o),n}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if("string"!=typeof e.id||"string"!=typeof e.label||"function"!=typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),r.jG.None;const t=e.id,i=e.label,n=ke.M$.and(ke.M$.equals("editorId",this.getId()),ke.M$.deserialize(e.precondition)),o=e.keybindings,s=ke.M$.and(n,ke.M$.deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,l=e.contextMenuOrder||0,d=(t,...i)=>Promise.resolve(e.run(this,...i)),c=new r.Cm,h=this.getId()+":"+t;if(c.add(ti.w.registerCommand(h,d)),a){const e={command:{id:h,title:i},when:n,group:a,order:l};c.add(Zi.ZG.appendMenuItem(Zi.D8.EditorContext,e))}if(Array.isArray(o))for(const e of o)c.add(this._standaloneKeybindingService.addDynamicKeybinding(h,e,d,s));const u=new fe.f(h,i,i,void 0,n,((...t)=>Promise.resolve(e.run(this,...t))),this._contextKeyService);return this._actions.set(t,u),c.add((0,r.s)((()=>{this._actions.delete(t)}))),c}_triggerCommand(e,t){if(this._codeEditorService instanceof Le)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};zr=Br([Wr(2,Ee._Y),Wr(3,x.T),Wr(4,ti.d),Wr(5,ke.fN),Wr(6,ct.TN),Wr(7,pt.b),Wr(8,ye.Gy),Wr(9,Be.Ot),Wr(10,yt.j),Wr(11,R.JZ),Wr(12,lt.u)],zr);let jr=class extends zr{constructor(e,t,i,n,o,s,r,a,l,d,c,h,u,g,p,m){const f={...t};Nr(c,f,!1);const v=l.registerEditorContainer(e);"string"==typeof f.theme&&l.setTheme(f.theme),void 0!==f.autoDetectHighContrast&&l.setAutoDetectHighContrast(Boolean(f.autoDetectHighContrast));const _=f.model;let b;if(delete f.model,super(e,f,i,n,o,s,r,a,l,d,h,p,m),this._configurationService=c,this._standaloneThemeService=l,this._register(v),void 0===_){const e=g.getLanguageIdByMimeType(f.language)||f.language||P.vH;b=$r(u,g,f.value||"",e,void 0),this._ownsModel=!0}else b=_,this._ownsModel=!1;if(this._attachModel(b),b){const e={oldModelUrl:null,newModelUrl:b.uri};this._onDidChangeModel.fire(e)}}dispose(){super.dispose()}updateOptions(e){Nr(this._configurationService,e,!1),"string"==typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),void 0!==e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};jr=Br([Wr(2,Ee._Y),Wr(3,x.T),Wr(4,ti.d),Wr(5,ke.fN),Wr(6,ct.TN),Wr(7,pt.b),Wr(8,As.L),Wr(9,Be.Ot),Wr(10,J.pG),Wr(11,yt.j),Wr(12,B.S),Wr(13,T.L),Wr(14,R.JZ),Wr(15,lt.u)],jr);let Ur=class extends Pr.T{constructor(e,t,i,n,o,s,r,a,l,d,c,h){const u={...t};Nr(a,u,!0);const g=s.registerEditorContainer(e);"string"==typeof u.theme&&s.setTheme(u.theme),void 0!==u.autoDetectHighContrast&&s.setAutoDetectHighContrast(Boolean(u.autoDetectHighContrast)),super(e,u,{},n,i,o,h,d),this._configurationService=a,this._standaloneThemeService=s,this._register(g)}dispose(){super.dispose()}updateOptions(e){Nr(this._configurationService,e,!0),"string"==typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),void 0!==e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_createInnerEditor(e,t,i){return e.createInstance(zr,t,i)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,i){return this.getModifiedEditor().addCommand(e,t,i)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}};function $r(e,t,i,n,o){if(i=i||"",!n){const n=i.indexOf("\n");let s=i;return-1!==n&&(s=i.substring(0,n)),Kr(e,i,t.createByFilepathOrFirstLine(o||null,s),o)}return Kr(e,i,t.createById(n),o)}function Kr(e,t,i,n){return e.createModel(t,i,n)}Ur=Br([Wr(2,Ee._Y),Wr(3,ke.fN),Wr(4,x.T),Wr(5,As.L),Wr(6,Be.Ot),Wr(7,J.pG),Wr(8,ht.Z),Wr(9,Ei.N8),Wr(10,Ws.h),Wr(11,ur.Nt)],Ur);var qr=i(41807),Gr=i(97393),Qr=i(34442),Zr=i(94513),Yr=i(46514),Xr={};Xr.styleTagTransform=w(),Xr.setAttributes=f(),Xr.insert=p().bind(null,"head"),Xr.domAPI=u(),Xr.insertStyleElement=_(),c()(Yr.A,Xr),Yr.A&&Yr.A.locals&&Yr.A.locals;var Jr=i(2744),ea=i(72532),ta=i(93702),ia=i(38122),na=i(534),oa=i(16551);class sa{constructor(e,t){this.viewModel=e,this.deltaScrollVertical=t}getId(){return this.viewModel}}let ra=class extends r.jG{constructor(e,t,i,n){super(),this._container=e,this._overflowWidgetsDomNode=t,this._workbenchUIElementFactory=i,this._instantiationService=n,this._viewModel=(0,Qr.FY)(this,void 0),this._collapsed=(0,Qo.un)(this,(e=>{var t;return null===(t=this._viewModel.read(e))||void 0===t?void 0:t.collapsed.read(e)})),this._editorContentHeight=(0,Qr.FY)(this,500),this.contentHeight=(0,Qo.un)(this,(e=>(this._collapsed.read(e)?0:this._editorContentHeight.read(e))+this._outerEditorHeight)),this._modifiedContentWidth=(0,Qr.FY)(this,0),this._modifiedWidth=(0,Qr.FY)(this,0),this._originalContentWidth=(0,Qr.FY)(this,0),this._originalWidth=(0,Qr.FY)(this,0),this.maxScroll=(0,Qo.un)(this,(e=>{const t=this._modifiedContentWidth.read(e)-this._modifiedWidth.read(e),i=this._originalContentWidth.read(e)-this._originalWidth.read(e);return t>i?{maxScroll:t,width:this._modifiedWidth.read(e)}:{maxScroll:i,width:this._originalWidth.read(e)}})),this._elements=(0,ve.h)("div.multiDiffEntry",[(0,ve.h)("div.header@header",[(0,ve.h)("div.header-content",[(0,ve.h)("div.collapse-button@collapseButton"),(0,ve.h)("div.file-path",[(0,ve.h)("div.title.modified.show-file-icons@primaryPath",[]),(0,ve.h)("div.status.deleted@status",["R"]),(0,ve.h)("div.title.original.show-file-icons@secondaryPath",[])]),(0,ve.h)("div.actions@actions")])]),(0,ve.h)("div.editorParent",[(0,ve.h)("div.editorContainer@editor")])]),this.editor=this._register(this._instantiationService.createInstance(Pr.T,this._elements.editor,{overflowWidgetsDomNode:this._overflowWidgetsDomNode},{})),this.isModifedFocused=aa(this.editor.getModifiedEditor()),this.isOriginalFocused=aa(this.editor.getOriginalEditor()),this.isFocused=(0,Qo.un)(this,(e=>this.isModifedFocused.read(e)||this.isOriginalFocused.read(e))),this._resourceLabel=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.primaryPath)):void 0,this._resourceLabel2=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.secondaryPath)):void 0,this._dataStore=new r.Cm,this._headerHeight=40,this._lastScrollTop=-1,this._isSettingScrollTop=!1;const o=new Eo.$(this._elements.collapseButton,{});this._register((0,Qo.fm)((e=>{o.element.className="",o.icon=this._collapsed.read(e)?on.W.chevronRight:on.W.chevronDown}))),this._register(o.onDidClick((()=>{var e;null===(e=this._viewModel.get())||void 0===e||e.collapsed.set(!this._collapsed.get(),void 0)}))),this._register((0,Qo.fm)((e=>{this._elements.editor.style.display=this._collapsed.read(e)?"none":"block"}))),this._register(this.editor.getModifiedEditor().onDidLayoutChange((e=>{const t=this.editor.getModifiedEditor().getLayoutInfo().contentWidth;this._modifiedWidth.set(t,void 0)}))),this._register(this.editor.getOriginalEditor().onDidLayoutChange((e=>{const t=this.editor.getOriginalEditor().getLayoutInfo().contentWidth;this._originalWidth.set(t,void 0)}))),this._register(this.editor.onDidContentSizeChange((e=>{(0,Qr.YY)((t=>{this._editorContentHeight.set(e.contentHeight,t),this._modifiedContentWidth.set(this.editor.getModifiedEditor().getContentWidth(),t),this._originalContentWidth.set(this.editor.getOriginalEditor().getContentWidth(),t)}))}))),this._register(this.editor.getOriginalEditor().onDidScrollChange((e=>{if(this._isSettingScrollTop)return;if(!e.scrollTopChanged||!this._data)return;const t=e.scrollTop-this._lastScrollTop;this._data.deltaScrollVertical(t)}))),this._register((0,Qo.fm)((e=>{var t;const i=null===(t=this._viewModel.read(e))||void 0===t?void 0:t.isActive.read(e);this._elements.root.classList.toggle("active",i)}))),this._container.appendChild(this._elements.root),this._outerEditorHeight=this._headerHeight,this._register(this._instantiationService.createInstance(na.m,this._elements.actions,Zi.D8.MultiDiffEditorFileToolbar,{actionRunner:this._register(new oa.I((()=>{var e;return null===(e=this._viewModel.get())||void 0===e?void 0:e.modifiedUri}))),menuOptions:{shouldForwardArgs:!0},toolbarOptions:{primaryGroup:e=>e.startsWith("navigation")},actionViewItemProvider:(e,t)=>(0,Qi.rN)(n,e,t)}))}setScrollLeft(e){this._modifiedContentWidth.get()-this._modifiedWidth.get()>this._originalContentWidth.get()-this._originalWidth.get()?this.editor.getModifiedEditor().setScrollLeft(e):this.editor.getOriginalEditor().setScrollLeft(e)}setData(e){function t(e){return{...e,scrollBeyondLastLine:!1,hideUnchangedRegions:{enabled:!0},scrollbar:{vertical:"hidden",horizontal:"hidden",handleMouseWheel:!1,useShadows:!1},renderOverviewRuler:!1,fixedOverflowWidgets:!0,overviewRulerBorder:!1}}this._data=e;const i=e.viewModel.entry.value;i.onOptionsDidChange&&this._dataStore.add(i.onOptionsDidChange((()=>{var e;this.editor.updateOptions(t(null!==(e=i.options)&&void 0!==e?e:{}))}))),(0,Qr.YY)((n=>{var o,s,r,a;null===(o=this._resourceLabel)||void 0===o||o.setUri(null!==(s=e.viewModel.modifiedUri)&&void 0!==s?s:e.viewModel.originalUri,{strikethrough:void 0===e.viewModel.modifiedUri});let l=!1,d=!1,c=!1,h="";e.viewModel.modifiedUri&&e.viewModel.originalUri&&e.viewModel.modifiedUri.path!==e.viewModel.originalUri.path?(h="R",l=!0):e.viewModel.modifiedUri?e.viewModel.originalUri||(h="A",c=!0):(h="D",d=!0),this._elements.status.classList.toggle("renamed",l),this._elements.status.classList.toggle("deleted",d),this._elements.status.classList.toggle("added",c),this._elements.status.innerText=h,null===(r=this._resourceLabel2)||void 0===r||r.setUri(l?e.viewModel.originalUri:void 0,{strikethrough:!0}),this._dataStore.clear(),this._viewModel.set(e.viewModel,n),this.editor.setModel(e.viewModel.diffEditorViewModel,n),this.editor.updateOptions(t(null!==(a=i.options)&&void 0!==a?a:{}))}))}render(e,t,i,n){this._elements.root.style.visibility="visible",this._elements.root.style.top=`${e.start}px`,this._elements.root.style.height=`${e.length}px`,this._elements.root.style.width=`${t}px`,this._elements.root.style.position="absolute";const o=e.length-this._headerHeight,s=Math.max(0,Math.min(n.start-e.start,o));this._elements.header.style.transform=`translateY(${s}px)`,(0,Qr.YY)((i=>{this.editor.layout({width:t-16-2,height:e.length-this._outerEditorHeight})}));try{this._isSettingScrollTop=!0,this._lastScrollTop=i,this.editor.getOriginalEditor().setScrollTop(i)}finally{this._isSettingScrollTop=!1}this._elements.header.classList.toggle("shadow",s>0||i>0),this._elements.header.classList.toggle("collapsed",s===o)}hide(){this._elements.root.style.top="-100000px",this._elements.root.style.visibility="hidden"}};function aa(e){return(0,Qo.y0)((t=>{const i=new r.Cm;return i.add(e.onDidFocusEditorWidget((()=>t(!0)))),i.add(e.onDidBlurEditorWidget((()=>t(!1)))),i}),(()=>e.hasTextFocus()))}ra=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([function(e,t){return function(i,n){t(i,n,e)}}(3,Ee._Y)],ra);class la{constructor(e){this._create=e,this._unused=new Set,this._used=new Set,this._itemData=new Map}getUnusedObj(e){var t;let i;if(0===this._unused.size)i=this._create(e),this._itemData.set(i,e);else{const n=[...this._unused.values()];i=null!==(t=n.find((t=>this._itemData.get(t).getId()===e.getId())))&&void 0!==t?t:n[0],this._unused.delete(i),this._itemData.set(i,e),i.setData(e)}return this._used.add(i),{object:i,dispose:()=>{this._used.delete(i),this._unused.size>5?i.dispose():this._unused.add(i)}}}dispose(){for(const e of this._used)e.dispose();for(const e of this._unused)e.dispose();this._used.clear(),this._unused.clear()}}var da=function(e,t){return function(i,n){t(i,n,e)}};let ca=class extends r.jG{constructor(e,t,i,n,o,s){super(),this._element=e,this._dimension=t,this._viewModel=i,this._workbenchUIElementFactory=n,this._parentContextKeyService=o,this._parentInstantiationService=s,this._scrollableElements=(0,ve.h)("div.scrollContent",[(0,ve.h)("div@content",{style:{overflow:"hidden"}}),(0,ve.h)("div.monaco-editor@overflowWidgetsDomNode",{})]),this._scrollable=this._register(new Zr.yE({forceIntegerValues:!1,scheduleAtNextAnimationFrame:e=>(0,ve.PG)((0,ve.zk)(this._element),e),smoothScrollDuration:100})),this._scrollableElement=this._register(new nn.oO(this._scrollableElements.root,{vertical:1,horizontal:1,useShadows:!1},this._scrollable)),this._elements=(0,ve.h)("div.monaco-component.multiDiffEditor",{},[(0,ve.h)("div",{},[this._scrollableElement.getDomNode()]),(0,ve.h)("div.placeholder@placeholder",{},[(0,ve.h)("div",[(0,Oe.k)("noChangedFiles","No Changed Files")])])]),this._sizeObserver=this._register(new Jr.pN(this._element,void 0)),this._objectPool=this._register(new la((e=>{const t=this._instantiationService.createInstance(ra,this._scrollableElements.content,this._scrollableElements.overflowWidgetsDomNode,this._workbenchUIElementFactory);return t.setData(e),t}))),this.scrollTop=(0,Qo.y0)(this,this._scrollableElement.onScroll,(()=>this._scrollableElement.getScrollPosition().scrollTop)),this.scrollLeft=(0,Qo.y0)(this,this._scrollableElement.onScroll,(()=>this._scrollableElement.getScrollPosition().scrollLeft)),this._viewItemsInfo=(0,Qo.rm)(this,((e,t)=>{const i=this._viewModel.read(e);if(!i)return{items:[],getItem:e=>{throw new Re.D7}};const n=i.items.read(e),o=new Map;return{items:n.map((e=>{var i;const n=t.add(new ha(e,this._objectPool,this.scrollLeft,(e=>{this._scrollableElement.setScrollPosition({scrollTop:this._scrollableElement.getScrollPosition().scrollTop+e})}))),s=null===(i=this._lastDocStates)||void 0===i?void 0:i[n.getKey()];return s&&(0,Qr.Rn)((e=>{n.setViewState(s,e)})),o.set(e,n),n})),getItem:e=>o.get(e)}})),this._viewItems=this._viewItemsInfo.map(this,(e=>e.items)),this._spaceBetweenPx=0,this._totalHeight=this._viewItems.map(this,((e,t)=>e.reduce(((e,i)=>e+i.contentHeight.read(t)+this._spaceBetweenPx),0))),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._element)),this._instantiationService=this._register(this._parentInstantiationService.createChild(new ir.a([ke.fN,this._contextKeyService]))),this._lastDocStates={},this._contextKeyService.createKey(ia.R.inMultiDiffEditor.key,!0),this._register((0,Qo.yC)(((e,t)=>{const i=this._viewModel.read(e);if(i&&i.contextKeys)for(const[e,n]of Object.entries(i.contextKeys)){const i=this._contextKeyService.createKey(e,void 0);i.set(n),t.add((0,r.s)((()=>i.reset())))}})));const a=this._parentContextKeyService.createKey(ia.R.multiDiffEditorAllCollapsed.key,!1);this._register((0,Qo.fm)((e=>{const t=this._viewModel.read(e);if(t){const i=t.items.read(e).every((t=>t.collapsed.read(e)));a.set(i)}}))),this._register((0,Qo.fm)((e=>{const t=this._dimension.read(e);this._sizeObserver.observe(t)}))),this._register((0,Qo.fm)((e=>{const t=this._viewItems.read(e);this._elements.placeholder.classList.toggle("visible",0===t.length)}))),this._scrollableElements.content.style.position="relative",this._register((0,Qo.fm)((e=>{const t=this._sizeObserver.height.read(e);this._scrollableElements.root.style.height=`${t}px`;const i=this._totalHeight.read(e);this._scrollableElements.content.style.height=`${i}px`;const n=this._sizeObserver.width.read(e);let o=n;const s=this._viewItems.read(e),r=(0,Gr.Cn)(s,(0,De.VE)((t=>t.maxScroll.read(e).maxScroll),De.U9));r&&(o=n+r.maxScroll.read(e).maxScroll),this._scrollableElement.setScrollDimensions({width:n,height:t,scrollHeight:i,scrollWidth:o})}))),e.replaceChildren(this._elements.root),this._register((0,r.s)((()=>{e.replaceChildren()}))),this._register(this._register((0,Qo.fm)((e=>{(0,Qr.YY)((t=>{this.render(e)}))}))))}render(e){const t=this.scrollTop.read(e);let i=0,n=0,o=0;const s=this._sizeObserver.height.read(e),r=ea.L.ofStartAndLength(t,s),a=this._sizeObserver.width.read(e);for(const l of this._viewItems.read(e)){const d=l.contentHeight.read(e),c=Math.min(d,s),h=ea.L.ofStartAndLength(n,c),u=ea.L.ofStartAndLength(o,d);if(u.isBefore(r))i-=d-c,l.hide();else if(u.isAfter(r))l.hide();else{const e=Math.max(0,Math.min(r.start-u.start,d-c));i-=e;const n=ea.L.ofStartAndLength(t+i,s);l.render(h,e,a,n)}n+=c+this._spaceBetweenPx,o+=d+this._spaceBetweenPx}this._scrollableElements.content.style.transform=`translateY(${-(t+i)}px)`}};ca=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([da(4,ke.fN),da(5,Ee._Y)],ca);class ha extends r.jG{constructor(e,t,i,n){super(),this.viewModel=e,this._objectPool=t,this._scrollLeft=i,this._deltaScrollVertical=n,this._templateRef=this._register((0,Qr.X2)(this,void 0)),this.contentHeight=(0,Qo.un)(this,(e=>{var t,i,n;return null!==(n=null===(i=null===(t=this._templateRef.read(e))||void 0===t?void 0:t.object.contentHeight)||void 0===i?void 0:i.read(e))&&void 0!==n?n:this.viewModel.lastTemplateData.read(e).contentHeight})),this.maxScroll=(0,Qo.un)(this,(e=>{var t,i;return null!==(i=null===(t=this._templateRef.read(e))||void 0===t?void 0:t.object.maxScroll.read(e))&&void 0!==i?i:{maxScroll:0,scrollWidth:0}})),this.template=(0,Qo.un)(this,(e=>{var t;return null===(t=this._templateRef.read(e))||void 0===t?void 0:t.object})),this._isHidden=(0,Qo.FY)(this,!1),this._isFocused=(0,Qo.un)(this,(e=>{var t,i;return null!==(i=null===(t=this.template.read(e))||void 0===t?void 0:t.isFocused.read(e))&&void 0!==i&&i})),this.viewModel.setIsFocused(this._isFocused,void 0),this._register((0,Qo.fm)((e=>{var t;const i=this._scrollLeft.read(e);null===(t=this._templateRef.read(e))||void 0===t||t.object.setScrollLeft(i)}))),this._register((0,Qo.fm)((e=>{const t=this._templateRef.read(e);t&&this._isHidden.read(e)&&(t.object.isFocused.read(e)||this._clear())})))}dispose(){this._clear(),super.dispose()}toString(){var e;return`VirtualViewItem(${null===(e=this.viewModel.entry.value.modified)||void 0===e?void 0:e.uri.toString()})`}getKey(){return this.viewModel.getKey()}setViewState(e,t){var i;this.viewModel.collapsed.set(e.collapsed,t),this._updateTemplateData(t);const n=this.viewModel.lastTemplateData.get(),o=null===(i=e.selections)||void 0===i?void 0:i.map(ta.L.liftSelection);this.viewModel.lastTemplateData.set({...n,selections:o},t);const s=this._templateRef.get();s&&o&&s.object.editor.setSelections(o)}_updateTemplateData(e){var t;const i=this._templateRef.get();i&&this.viewModel.lastTemplateData.set({contentHeight:i.object.contentHeight.get(),selections:null!==(t=i.object.editor.getSelections())&&void 0!==t?t:void 0},e)}_clear(){const e=this._templateRef.get();e&&(0,Qr.Rn)((t=>{this._updateTemplateData(t),e.object.hide(),this._templateRef.set(void 0,t)}))}hide(){this._isHidden.set(!0,void 0)}render(e,t,i,n){this._isHidden.set(!1,void 0);let o=this._templateRef.get();if(!o){o=this._objectPool.getUnusedObj(new sa(this.viewModel,this._deltaScrollVertical)),this._templateRef.set(o,void 0);const e=this.viewModel.lastTemplateData.get().selections;e&&o.object.editor.setSelections(e)}o.object.render(e,i,t,n)}}(0,dt.x1A)("multiDiffEditor.headerBackground",{dark:"#262626",light:"tab.inactiveBackground",hcDark:"tab.inactiveBackground",hcLight:"tab.inactiveBackground"},(0,Oe.k)("multiDiffEditor.headerBackground","The background color of the diff editor's header")),(0,dt.x1A)("multiDiffEditor.background","editorBackground",(0,Oe.k)("multiDiffEditor.background","The background color of the multi file diff editor")),(0,dt.x1A)("multiDiffEditor.border",{dark:"sideBarSectionHeader.border",light:"#cccccc",hcDark:"sideBarSectionHeader.border",hcLight:"#cccccc"},(0,Oe.k)("multiDiffEditor.border","The border color of the multi file diff editor"));let ua=class extends r.jG{constructor(e,t,i){super(),this._element=e,this._workbenchUIElementFactory=t,this._instantiationService=i,this._dimension=(0,Qo.FY)(this,void 0),this._viewModel=(0,Qo.FY)(this,void 0),this._widgetImpl=(0,Qo.rm)(this,((e,t)=>((0,qr.b)(ra,e),t.add(this._instantiationService.createInstance((0,qr.b)(ca,e),this._element,this._dimension,this._viewModel,this._workbenchUIElementFactory))))),this._register((0,Qo.OI)(this._widgetImpl))}};ua=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([function(e,t){return function(i,n){t(i,n,e)}}(2,Ee._Y)],ua);var ga=i(2548);function pa(e){const t=Rr.get(pt.b);return t instanceof kr?t.addDynamicKeybindings(e.map((e=>({keybinding:e.keybinding,command:e.command,commandArgs:e.commandArgs,when:ke.M$.deserialize(e.when)})))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),r.jG.None)}function ma(e){return Rr.get(B.S).getModel(e)}var fa=i(94901);function va(e,t){return"boolean"==typeof e?e:t}function _a(e,t){return"string"==typeof e?e:t}function ba(e,t=!1){t&&(e=e.map((function(e){return e.toLowerCase()})));const i=function(e){const t={};for(const i of e)t[i]=!0;return t}(e);return t?function(e){return void 0!==i[e.toLowerCase()]&&i.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==i[e]&&i.hasOwnProperty(e)}}function wa(e,t,i){t=t.replace(/@@/g,"");let n,o=0;do{n=!1,t=t.replace(/@(\w+)/g,(function(i,o){n=!0;let s="";if("string"==typeof e[o])s=e[o];else{if(!(e[o]&&e[o]instanceof RegExp))throw void 0===e[o]?Q(e,"language definition does not contain attribute '"+o+"', used at: "+t):Q(e,"attribute reference '"+o+"' must be a string, used at: "+t);s=e[o].source}return K(s)?"":"(?:"+s+")"})),o++}while(n&&o<5);t=t.replace(/\x01/g,"@");const s=(e.ignoreCase?"i":"")+(e.unicode?"u":"");if(i&&t.match(/\$[sS](\d\d?)/g)){let i=null,n=null;return o=>(n&&i===o||(i=o,n=new RegExp(function(e,t,i){let n=null;return t.replace(/\$[sS](\d\d?)/g,(function(t,o){return null===n&&(n=i.split("."),n.unshift(i)),!K(o)&&o=100){n-=100;const e=i.split(".");if(e.unshift(i),n=0&&(n.tokenSubst=!0),"string"==typeof i.bracket)if("@open"===i.bracket)n.bracket=1;else{if("@close"!==i.bracket)throw Q(e,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+t);n.bracket=-1}if(i.next){if("string"!=typeof i.next)throw Q(e,"the next state must be a string value in rule: "+t);{let o=i.next;if(!/^(@pop|@push|@popall)$/.test(o)&&("@"===o[0]&&(o=o.substr(1)),o.indexOf("$")<0&&!function(e,t){let i=t;for(;i&&i.length>0;){if(e.stateNames[i])return!0;const t=i.lastIndexOf(".");i=t<0?null:i.substr(0,t)}return!1}(e,Z(e,o,"",[],""))))throw Q(e,"the next state '"+i.next+"' is not defined in rule: "+t);n.next=o}}return"number"==typeof i.goBack&&(n.goBack=i.goBack),"string"==typeof i.switchTo&&(n.switchTo=i.switchTo),"string"==typeof i.log&&(n.log=i.log),"string"==typeof i.nextEmbedded&&(n.nextEmbedded=i.nextEmbedded,e.usesEmbedded=!0),n}}if(Array.isArray(i)){const n=[];for(let o=0,s=i.length;o0&&"^"===i[0],this.name=this.name+": "+i,this.regex=wa(e,"^(?:"+(this.matchOnlyAtLineStart?i.substr(1):i)+")",!0)}setAction(e,t){this.action=Ca(e,this.name,t)}resolveRegex(e){return this.regex instanceof RegExp?this.regex:this.regex(e)}}function Sa(e,t){if(!t||"object"!=typeof t)throw new Error("Monarch: expecting a language definition object");const i={languageId:e,includeLF:va(t.includeLF,!1),noThrow:!1,maxStack:100,start:"string"==typeof t.start?t.start:null,ignoreCase:va(t.ignoreCase,!1),unicode:va(t.unicode,!1),tokenPostfix:_a(t.tokenPostfix,"."+e),defaultToken:_a(t.defaultToken,"source"),usesEmbedded:!1,stateNames:{},tokenizer:{},brackets:[]},n=t;function o(e,s,r){for(const a of r){let r=a.include;if(r){if("string"!=typeof r)throw Q(i,"an 'include' attribute must be a string at: "+e);if("@"===r[0]&&(r=r.substr(1)),!t.tokenizer[r])throw Q(i,"include target '"+r+"' is not defined at: "+e);o(e+"."+r,s,t.tokenizer[r])}else{const t=new ka(e);if(Array.isArray(a)&&a.length>=1&&a.length<=3)if(t.setRegex(n,a[0]),a.length>=3)if("string"==typeof a[1])t.setAction(n,{token:a[1],next:a[2]});else{if("object"!=typeof a[1])throw Q(i,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+e);{const e=a[1];e.next=a[2],t.setAction(n,e)}}else t.setAction(n,a[1]);else{if(!a.regex)throw Q(i,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e);a.name&&"string"==typeof a.name&&(t.name=a.name),a.matchOnlyAtStart&&(t.matchOnlyAtLineStart=va(a.matchOnlyAtLineStart,!1)),t.setRegex(n,a.regex),t.setAction(n,a.action)}s.push(t)}}}if(n.languageId=e,n.includeLF=i.includeLF,n.ignoreCase=i.ignoreCase,n.unicode=i.unicode,n.noThrow=i.noThrow,n.usesEmbedded=i.usesEmbedded,n.stateNames=t.tokenizer,n.defaultToken=i.defaultToken,!t.tokenizer||"object"!=typeof t.tokenizer)throw Q(i,"a language definition must define the 'tokenizer' attribute as an object");i.tokenizer=[];for(const e in t.tokenizer)if(t.tokenizer.hasOwnProperty(e)){i.start||(i.start=e);const n=t.tokenizer[e];i.tokenizer[e]=new Array,o("tokenizer."+e,i.tokenizer[e],n)}if(i.usesEmbedded=n.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw Q(i,"the 'brackets' attribute must be defined as an array")}else t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];const s=[];for(const e of t.brackets){let t=e;if(t&&Array.isArray(t)&&3===t.length&&(t={token:t[2],open:t[0],close:t[1]}),t.open===t.close)throw Q(i,"open and close brackets in a 'brackets' attribute must be different: "+t.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!=typeof t.open||"string"!=typeof t.token||"string"!=typeof t.close)throw Q(i,"every element in the 'brackets' array must be a '{open,close,token}' object or array");s.push({token:t.token+i.tokenPostfix,open:q(i,t.open),close:q(i,t.close)})}return i.brackets=s,i.noThrow=!0,i}class xa{constructor(e,t){this._languageId=e,this._actual=t}dispose(){}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,i){if("function"==typeof this._actual.tokenize)return La.adaptTokenize(this._languageId,this._actual,e,i);throw new Error("Not supported!")}tokenizeEncoded(e,t,i){const n=this._actual.tokenizeEncoded(e,i);return new A.rY(n.tokens,n.endState)}}class La{constructor(e,t,i,n){this._languageId=e,this._actual=t,this._languageService=i,this._standaloneThemeService=n}dispose(){}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t){const i=[];let n=0;for(let o=0,s=e.length;o0&&o[s-1]===l)continue;let d=a.startIndex;0===e?d=0:d{const i=await Promise.resolve(t.create());return i?"function"==typeof i.getInitialState?Ea(e,i):new ae(Rr.get(T.L),Rr.get(As.L),e,Sa(e,i),Rr.get(J.pG)):null}));return A.dG.registerFactory(e,i)}var Na=i(38801);n.qB.wrappingIndent.defaultValue=0,n.qB.glyphMargin.defaultValue=!1,n.qB.autoIndent.defaultValue=3,n.qB.overviewRulerLanes.defaultValue=2,Na.Pj.setFormatterSelector(((e,t,i)=>Promise.resolve(e[0])));const Ma=(0,o.r)();Ma.editor={computeDirtyDiff:async function(e,t,i){const n=ma(l.r.parse(e)),o=ma(l.r.parse(t));if(!n||!o)return null;const s=n.getLinesContent(),r=o.getLinesContent();return new ga.h(s,r,{shouldComputeCharChanges:!1,shouldPostProcessCharChanges:!1,shouldIgnoreTrimWhitespace:i,shouldMakePrettyDiff:!0,maxComputationTime:1e3}).computeDiff().changes},create:function(e,t,i){return Rr.initialize(i||{}).createInstance(jr,e,t)},getEditors:function(){return Rr.get(x.T).listCodeEditors()},getDiffEditors:function(){return Rr.get(x.T).listDiffEditors()},onDidCreateEditor:function(e){return Rr.get(x.T).onCodeEditorAdd((t=>{e(t)}))},onDidCreateDiffEditor:function(e){return Rr.get(x.T).onDiffEditorAdd((t=>{e(t)}))},createDiffEditor:function(e,t,i){return Rr.initialize(i||{}).createInstance(Ur,e,t)},addCommand:function(e){if("string"!=typeof e.id||"function"!=typeof e.run)throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return ti.w.registerCommand(e.id,e.run)},addEditorAction:function(e){if("string"!=typeof e.id||"string"!=typeof e.label||"function"!=typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");const t=ke.M$.deserialize(e.precondition),i=new r.Cm;if(i.add(ti.w.registerCommand(e.id,((i,...n)=>S.DX.runEditorCommand(i,n,t,((t,i,n)=>Promise.resolve(e.run(i,...n))))))),e.contextMenuGroupId){const n={command:{id:e.id,title:e.label},when:t,group:e.contextMenuGroupId,order:e.contextMenuOrder||0};i.add(Zi.ZG.appendMenuItem(Zi.D8.EditorContext,n))}if(Array.isArray(e.keybindings)){const n=Rr.get(pt.b);if(n instanceof kr){const o=ke.M$.and(t,ke.M$.deserialize(e.keybindingContext));i.add(n.addDynamicKeybindings(e.keybindings.map((t=>({keybinding:t,command:e.id,when:o})))))}else console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService")}return i},addKeybindingRule:function(e){return pa([e])},addKeybindingRules:pa,createModel:function(e,t,i){const n=Rr.get(T.L),o=n.getLanguageIdByMimeType(t)||t;return $r(Rr.get(B.S),n,e,o,i)},setModelLanguage:function(e,t){const i=Rr.get(T.L),n=i.getLanguageIdByMimeType(t)||t||P.vH;e.setLanguage(i.createById(n))},setModelMarkers:function(e,t,i){e&&Rr.get(Nn.DR).changeOne(t,e.uri,i)},getModelMarkers:function(e){return Rr.get(Nn.DR).read(e)},removeAllMarkers:function(e){Rr.get(Nn.DR).changeAll(e,[])},onDidChangeMarkers:function(e){return Rr.get(Nn.DR).onMarkerChanged(e)},getModels:function(){return Rr.get(B.S).getModels()},getModel:ma,onDidCreateModel:function(e){return Rr.get(B.S).onModelAdded(e)},onWillDisposeModel:function(e){return Rr.get(B.S).onModelRemoved(e)},onDidChangeModelLanguage:function(e){return Rr.get(B.S).onModelLanguageChanged((t=>{e({model:t.model,oldLanguage:t.oldLanguageId})}))},createWebWorker:function(e){return function(e,t,i){return new E(e,t,i)}(Rr.get(B.S),Rr.get(R.JZ),e)},colorizeElement:function(e,t){const i=Rr.get(T.L),n=Rr.get(As.L);return ue.colorizeElement(n,i,e,t).then((()=>{n.registerEditorContainer(e)}))},colorize:function(e,t,i){const n=Rr.get(T.L);return Rr.get(As.L).registerEditorContainer(s.G.document.body),ue.colorize(n,e,t,i)},colorizeModelLine:function(e,t,i=4){return Rr.get(As.L).registerEditorContainer(s.G.document.body),ue.colorizeModelLine(e,t,i)},tokenize:function(e,t){A.dG.getOrCreate(t);const i=(s=t,A.dG.get(s)||{getInitialState:()=>O.r3,tokenize:(e,t,i)=>(0,O.$H)(s,i)}),n=(0,a.uz)(e),o=[];var s;let r=i.getInitialState();for(let e=0,t=n.length;e("string"==typeof t&&(t=l.r.parse(t)),e.open(t))})},registerEditorOpener:function(e){return Rr.get(x.T).registerCodeEditorOpenHandler((async(t,i,n)=>{var o;if(!i)return null;const s=null===(o=t.options)||void 0===o?void 0:o.selection;let r;return s&&"number"==typeof s.endLineNumber&&"number"==typeof s.endColumn?r=s:s&&(r={lineNumber:s.startLineNumber,column:s.startColumn}),await e.openCodeEditor(i,t.resource,r)?i:null}))},AccessibilitySupport:W.Gn,ContentWidgetPositionPreference:W.Qj,CursorChangeReason:W.h5,DefaultEndOfLine:W.of,EditorAutoIndentStrategy:W.e0,EditorOption:W.p2,EndOfLinePreference:W.kf,EndOfLineSequence:W.WU,MinimapPosition:W.R3,MinimapSectionHeaderStyle:W.VX,MouseTargetType:W.hS,OverlayWidgetPositionPreference:W.dE,OverviewRulerLane:W.A5,GlyphMarginLane:W.ZS,RenderLineNumbersType:W.DO,RenderMinimap:W.hW,ScrollbarVisibility:W.XR,ScrollType:W.ov,TextEditorCursorBlinkingStyle:W.U7,TextEditorCursorStyle:W.m9,TrackedRangeStickiness:W.kK,WrappingIndent:W.tJ,InjectedTextCursorStops:W.VW,PositionAffinity:W.Ic,ShowLightbulbIconMode:W.jT,ConfigurationChangedEvent:n.lw,BareFontInfo:N._8,FontInfo:N.YJ,TextModelResolvedOptions:F.X2,FindMatch:F.Dg,ApplyUpdateResult:n.hZ,EditorZoom:I.D,createMultiFileDiffEditor:function(e,t){const i=Rr.initialize(t||{});return new ua(e,{},i)},EditorType:M._,EditorOptions:n.qB},Ma.languages={register:function(e){P.W6.registerLanguage(e)},getLanguages:function(){let e=[];return e=e.concat(P.W6.getLanguages()),e},onLanguage:function(e,t){return Rr.withServices((()=>{const i=Rr.get(T.L).onDidRequestRichLanguageFeatures((n=>{n===e&&(i.dispose(),t())}));return i}))},onLanguageEncountered:function(e,t){return Rr.withServices((()=>{const i=Rr.get(T.L).onDidRequestBasicLanguageFeatures((n=>{n===e&&(i.dispose(),t())}));return i}))},getEncodedLanguageId:function(e){return Rr.get(T.L).languageIdCodec.encodeLanguageId(e)},setLanguageConfiguration:function(e,t){if(!Rr.get(T.L).isRegisteredLanguageId(e))throw new Error(`Cannot set configuration for unknown language ${e}`);return Rr.get(R.JZ).register(e,t,100)},setColorMap:function(e){const t=Rr.get(As.L);if(e){const i=[null];for(let t=1,n=e.length;tt}):A.dG.register(e,Ea(e,t))},setMonarchTokensProvider:function(e,t){return Da(t)?Ia(e,{create:()=>t}):A.dG.register(e,(t=>new ae(Rr.get(T.L),Rr.get(As.L),e,Sa(e,t),Rr.get(J.pG)))(t))},registerReferenceProvider:function(e,t){return Rr.get(lt.u).referenceProvider.register(e,t)},registerRenameProvider:function(e,t){return Rr.get(lt.u).renameProvider.register(e,t)},registerNewSymbolNameProvider:function(e,t){return Rr.get(lt.u).newSymbolNamesProvider.register(e,t)},registerCompletionItemProvider:function(e,t){return Rr.get(lt.u).completionProvider.register(e,t)},registerSignatureHelpProvider:function(e,t){return Rr.get(lt.u).signatureHelpProvider.register(e,t)},registerHoverProvider:function(e,t){return Rr.get(lt.u).hoverProvider.register(e,{provideHover:async(e,i,n,o)=>{const s=e.getWordAtPosition(i);return Promise.resolve(t.provideHover(e,i,n,o)).then((e=>{if(e)return!e.range&&s&&(e.range=new Xt.Q(i.lineNumber,s.startColumn,i.lineNumber,s.endColumn)),e.range||(e.range=new Xt.Q(i.lineNumber,i.column,i.lineNumber,i.column)),e}))}})},registerDocumentSymbolProvider:function(e,t){return Rr.get(lt.u).documentSymbolProvider.register(e,t)},registerDocumentHighlightProvider:function(e,t){return Rr.get(lt.u).documentHighlightProvider.register(e,t)},registerLinkedEditingRangeProvider:function(e,t){return Rr.get(lt.u).linkedEditingRangeProvider.register(e,t)},registerDefinitionProvider:function(e,t){return Rr.get(lt.u).definitionProvider.register(e,t)},registerImplementationProvider:function(e,t){return Rr.get(lt.u).implementationProvider.register(e,t)},registerTypeDefinitionProvider:function(e,t){return Rr.get(lt.u).typeDefinitionProvider.register(e,t)},registerCodeLensProvider:function(e,t){return Rr.get(lt.u).codeLensProvider.register(e,t)},registerCodeActionProvider:function(e,t,i){return Rr.get(lt.u).codeActionProvider.register(e,{providedCodeActionKinds:null==i?void 0:i.providedCodeActionKinds,documentation:null==i?void 0:i.documentation,provideCodeActions:(e,i,n,o)=>{const s=Rr.get(Nn.DR).read({resource:e.uri}).filter((e=>Xt.Q.areIntersectingOrTouching(e,i)));return t.provideCodeActions(e,i,{markers:s,only:n.only,trigger:n.trigger},o)},resolveCodeAction:t.resolveCodeAction})},registerDocumentFormattingEditProvider:function(e,t){return Rr.get(lt.u).documentFormattingEditProvider.register(e,t)},registerDocumentRangeFormattingEditProvider:function(e,t){return Rr.get(lt.u).documentRangeFormattingEditProvider.register(e,t)},registerOnTypeFormattingEditProvider:function(e,t){return Rr.get(lt.u).onTypeFormattingEditProvider.register(e,t)},registerLinkProvider:function(e,t){return Rr.get(lt.u).linkProvider.register(e,t)},registerColorProvider:function(e,t){return Rr.get(lt.u).colorProvider.register(e,t)},registerFoldingRangeProvider:function(e,t){return Rr.get(lt.u).foldingRangeProvider.register(e,t)},registerDeclarationProvider:function(e,t){return Rr.get(lt.u).declarationProvider.register(e,t)},registerSelectionRangeProvider:function(e,t){return Rr.get(lt.u).selectionRangeProvider.register(e,t)},registerDocumentSemanticTokensProvider:function(e,t){return Rr.get(lt.u).documentSemanticTokensProvider.register(e,t)},registerDocumentRangeSemanticTokensProvider:function(e,t){return Rr.get(lt.u).documentRangeSemanticTokensProvider.register(e,t)},registerInlineCompletionsProvider:function(e,t){return Rr.get(lt.u).inlineCompletionsProvider.register(e,t)},registerInlineEditProvider:function(e,t){return Rr.get(lt.u).inlineEditProvider.register(e,t)},registerInlayHintsProvider:function(e,t){return Rr.get(lt.u).inlayHintsProvider.register(e,t)},DocumentHighlightKind:W.Kb,CompletionItemKind:W.Io,CompletionItemTag:W.QP,CompletionItemInsertTextRule:W._E,SymbolKind:W.v0,SymbolTag:W.H_,IndentAction:W.l,CompletionTriggerKind:W.t7,SignatureHelpTriggerKind:W.WA,InlayHintKind:W.r4,InlineCompletionTriggerKind:W.qw,InlineEditTriggerKind:W.sm,CodeActionTriggerType:W.ok,NewSymbolNameTag:W.OV,NewSymbolNameTriggerKind:W.YT,PartialAcceptTriggerKind:W.Ah,HoverVerbosityAction:W.M$,FoldingRangeKind:A.lO,SelectedSuggestionInfo:A.GE};const Aa=Ma.CancellationTokenSource,Ta=Ma.Emitter,Ra=Ma.KeyCode,Pa=Ma.KeyMod,Oa=Ma.Position,Fa=Ma.Range,Ba=Ma.Selection,Wa=Ma.SelectionDirection,Ha=Ma.MarkerSeverity,Va=Ma.MarkerTag,za=Ma.Uri,ja=Ma.Token,Ua=Ma.editor,$a=Ma.languages,Ka=globalThis.MonacoEnvironment;((null==Ka?void 0:Ka.globalAPI)||"function"==typeof define&&i.amdO)&&(globalThis.monaco=Ma),void 0!==globalThis.require&&"function"==typeof globalThis.require.config&&globalThis.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]})},24185:(e,t,i)=>{"use strict";i.r(t),i.d(t,{IPadShowKeyboard:()=>w});var n=i(85072),o=i.n(n),s=i(97825),r=i.n(s),a=i(77659),l=i.n(a),d=i(55056),c=i.n(d),h=i(10540),u=i.n(h),g=i(41113),p=i.n(g),m=i(59337),f={};f.styleTagTransform=p(),f.setAttributes=c(),f.insert=l().bind(null,"head"),f.domAPI=r(),f.insertStyleElement=u(),o()(m.A,f),m.A&&m.A.locals&&m.A.locals;var v=i(14333),_=i(10998),b=i(50946);class w extends _.jG{constructor(e){super(),this.editor=e,this.widget=null}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}w.ID="editor.contrib.iPadShowKeyboard";class y extends _.jG{constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(v.ko(this._domNode,"touchstart",(e=>{this.editor.focus()}))),this._register(v.ko(this._domNode,"focus",(e=>{this.editor.focus()}))),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return y.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}y.ID="editor.contrib.ShowKeyboardWidget",(0,b.HW)(w.ID,w,3)},21845:(e,t,i)=>{"use strict";i.r(t);var n=i(85072),o=i.n(n),s=i(97825),r=i.n(s),a=i(77659),l=i.n(a),d=i(55056),c=i.n(d),h=i(10540),u=i.n(h),g=i(41113),p=i.n(g),m=i(72931),f={};f.styleTagTransform=p(),f.setAttributes=c(),f.insert=l().bind(null,"head"),f.domAPI=r(),f.insertStyleElement=u(),o()(m.A,f),m.A&&m.A.locals&&m.A.locals;var v,_=i(14333),b=i(94901),w=i(10998),y=i(50946),C=i(47317),k=i(15910),S=i(97036),x=i(77922),L=i(83616),D=i(45933),E=function(e,t){return function(i,n){t(i,n,e)}};let I=v=class extends w.jG{static get(e){return e.getContribution(v.ID)}constructor(e,t,i){super(),this._editor=e,this._languageService=i,this._widget=null,this._register(this._editor.onDidChangeModel((e=>this.stop()))),this._register(this._editor.onDidChangeModelLanguage((e=>this.stop()))),this._register(C.dG.onDidChange((e=>this.stop()))),this._register(this._editor.onKeyUp((e=>9===e.keyCode&&this.stop())))}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new M(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};I.ID="editor.contrib.inspectTokens",I=v=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([E(1,L.L),E(2,x.L)],I);class N extends y.ks{constructor(){super({id:"editor.action.inspectTokens",label:D.YN.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(e,t){const i=I.get(t);null==i||i.launch()}}class M extends w.jG{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=function(e,t){const i=C.dG.get(t);if(i)return i;const n=e.encodeLanguageId(t);return{getInitialState:()=>S.r3,tokenize:(e,i,n)=>(0,S.$H)(t,n),tokenizeEncoded:(e,t,i)=>(0,S.Lh)(n,i)}}(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition((e=>this._compute(this._editor.getPosition())))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return M._ID}_compute(e){const t=this._getTokensAtLine(e.lineNumber);let i=0;for(let n=t.tokens1.length-1;n>=0;n--){const o=t.tokens1[n];if(e.column-1>=o.offset){i=n;break}}let n=0;for(let i=t.tokens2.length>>>1;i>=0;i--)if(e.column-1>=t.tokens2[i<<1]){n=i;break}const o=this._model.getLineContent(e.lineNumber);let s="";if(i{"use strict";i.r(t),i.d(t,{GotoLineAction:()=>U,StandaloneCommandsQuickAccessProvider:()=>j});var n=i(67167),o=i(19381),s=i(45933),r=i(87301),a=i(24594),l=i(58039),d=i(44437),c=i(94327),h=i(75637),u=i(48289),g=i(10998),p=i(27992);class m{constructor(){this.chunkCount=0,this.chunkOccurrences=new Map,this.documents=new Map}calculateScores(e,t){const i=this.computeEmbedding(e),n=new Map,o=[];for(const[e,s]of this.documents){if(t.isCancellationRequested)return[];for(const t of s.chunks){const s=this.computeSimilarityScore(t,i,n);s>0&&o.push({key:e,score:s})}}return o}static termFrequencies(e){return function(e){var t;const i=new Map;for(const n of e)i.set(n,(null!==(t=i.get(n))&&void 0!==t?t:0)+1);return i}(m.splitTerms(e))}static*splitTerms(e){const t=e=>e.toLowerCase();for(const[i]of e.matchAll(/\b\p{Letter}[\p{Letter}\d]{2,}\b/gu)){yield t(i);const e=i.replace(/([a-z])([A-Z])/g,"$1 $2").split(/\s+/g);if(e.length>1)for(const i of e)i.length>2&&/\p{Letter}{3,}/gu.test(i)&&(yield t(i))}}updateDocuments(e){var t;for(const{key:t}of e)this.deleteDocument(t);for(const i of e){const e=[];for(const n of i.textChunks){const i=m.termFrequencies(n);for(const e of i.keys())this.chunkOccurrences.set(e,(null!==(t=this.chunkOccurrences.get(e))&&void 0!==t?t:0)+1);e.push({text:n,tf:i})}this.chunkCount+=e.length,this.documents.set(i.key,{chunks:e})}return this}deleteDocument(e){const t=this.documents.get(e);if(t){this.documents.delete(e),this.chunkCount-=t.chunks.length;for(const e of t.chunks)for(const t of e.tf.keys()){const e=this.chunkOccurrences.get(t);if("number"==typeof e){const i=e-1;i<=0?this.chunkOccurrences.delete(t):this.chunkOccurrences.set(t,i)}}}}computeSimilarityScore(e,t,i){let n=0;for(const[o,s]of Object.entries(t)){const t=e.tf.get(o);if(!t)continue;let r=i.get(o);"number"!=typeof r&&(r=this.computeIdf(o),i.set(o,r)),n+=t*r*s}return n}computeEmbedding(e){const t=m.termFrequencies(e);return this.computeTfidf(t)}computeIdf(e){var t;const i=null!==(t=this.chunkOccurrences.get(e))&&void 0!==t?t:0;return i>0?Math.log((this.chunkCount+1)/i):0}computeTfidf(e){const t=Object.create(null);for(const[i,n]of e){const e=this.computeIdf(i);e>0&&(t[i]=n*e)}return t}}var f,v=i(3765),_=i(59715),b=i(85753),w=i(94535),y=i(82399),C=i(56071),k=i(46441),S=i(65958),x=i(78903),L=i(79359);function D(e){const t=e;return Array.isArray(t.items)}function E(e){const t=e;return!!t.picks&&t.additionalPicks instanceof Promise}!function(e){e[e.NO_ACTION=0]="NO_ACTION",e[e.CLOSE_PICKER=1]="CLOSE_PICKER",e[e.REFRESH_PICKER=2]="REFRESH_PICKER",e[e.REMOVE_ITEM=3]="REMOVE_ITEM"}(f||(f={}));class I extends g.jG{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t,i){var n;const o=new g.Cm;let s;e.canAcceptInBackground=!!(null===(n=this.options)||void 0===n?void 0:n.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const r=o.add(new g.HE),a=async()=>{var n;const o=r.value=new g.Cm;null==s||s.dispose(!0),e.busy=!1,s=new x.Qi(t);const a=s.token;let l=e.value.substring(this.prefix.length);(null===(n=this.options)||void 0===n?void 0:n.shouldSkipTrimPickFilter)||(l=l.trim());const d=this._getPicks(l,o,a,i),c=(t,i)=>{var n;let o,s;if(D(t)?(o=t.items,s=t.active):o=t,0===o.length){if(i)return!1;(l.length>0||e.hideInput)&&(null===(n=this.options)||void 0===n?void 0:n.noResultsPick)&&(o=(0,L.Tn)(this.options.noResultsPick)?[this.options.noResultsPick(l)]:[this.options.noResultsPick])}return e.items=o,s&&(e.activeItems=[s]),!0},h=async t=>{let i=!1,n=!1;await Promise.all([(async()=>{"number"==typeof t.mergeDelay&&(await(0,S.wR)(t.mergeDelay),a.isCancellationRequested)||n||(i=c(t.picks,!0))})(),(async()=>{e.busy=!0;try{const n=await t.additionalPicks;if(a.isCancellationRequested)return;let o,s,r,l;if(D(t.picks)?(o=t.picks.items,s=t.picks.active):o=t.picks,D(n)?(r=n.items,l=n.active):r=n,r.length>0||!i){let t;if(!s&&!l){const i=e.activeItems[0];i&&-1!==o.indexOf(i)&&(t=i)}c({items:[...o,...r],active:s||l||t})}}finally{a.isCancellationRequested||(e.busy=!1),n=!0}})()])};if(null===d);else if(E(d))await h(d);else if(d instanceof Promise){e.busy=!0;try{const e=await d;if(a.isCancellationRequested)return;E(e)?await h(e):c(e)}finally{a.isCancellationRequested||(e.busy=!1)}}else c(d)};o.add(e.onDidChangeValue((()=>a()))),a(),o.add(e.onDidAccept((t=>{var n;if(null==i?void 0:i.handleAccept)return t.inBackground||e.hide(),void(null===(n=i.handleAccept)||void 0===n||n.call(i,e.activeItems[0]));const[o]=e.selectedItems;"function"==typeof(null==o?void 0:o.accept)&&(t.inBackground||e.hide(),o.accept(e.keyMods,t))})));const l=async(i,n)=>{var o,s;if("function"!=typeof n.trigger)return;const r=null!==(s=null===(o=n.buttons)||void 0===o?void 0:o.indexOf(i))&&void 0!==s?s:-1;if(r>=0){const i=n.trigger(r,e.keyMods),o="number"==typeof i?i:await i;if(t.isCancellationRequested)return;switch(o){case f.NO_ACTION:break;case f.CLOSE_PICKER:e.hide();break;case f.REFRESH_PICKER:a();break;case f.REMOVE_ITEM:{const t=e.items.indexOf(n);if(-1!==t){const i=e.items.slice(),n=i.splice(t,1),o=e.activeItems.filter((e=>e!==n[0])),s=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=i,o&&(e.activeItems=o),e.keepScrollPosition=s}break}}}};return o.add(e.onDidTriggerItemButton((({button:e,item:t})=>l(e,t)))),o.add(e.onDidTriggerSeparatorButton((({button:e,separator:t})=>l(e,t)))),o}}var N,M,A=i(90840),T=i(76243),R=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},P=function(e,t){return function(i,n){t(i,n,e)}};let O=N=class extends I{constructor(e,t,i,n,o,s){super(N.PREFIX,e),this.instantiationService=t,this.keybindingService=i,this.commandService=n,this.telemetryService=o,this.dialogService=s,this.commandsHistory=this._register(this.instantiationService.createInstance(F)),this.options=e}async _getPicks(e,t,i,n){var o,s,r,a;const l=await this.getCommandPicks(i);if(i.isCancellationRequested)return[];const d=(0,u.P)((()=>{const t=new m;return t.updateDocuments(l.map((e=>({key:e.commandId,textChunks:[this.getTfIdfChunk(e)]})))),function(e){var t,i;const n=e.slice(0);n.sort(((e,t)=>t.score-e.score));const o=null!==(i=null===(t=n[0])||void 0===t?void 0:t.score)&&void 0!==i?i:0;if(o>0)for(const e of n)e.score/=o;return n}(t.calculateScores(e,i)).filter((e=>e.score>N.TFIDF_THRESHOLD)).slice(0,N.TFIDF_MAX_RESULTS)})),c=[];for(const t of l){const n=null!==(o=N.WORD_FILTER(e,t.label))&&void 0!==o?o:void 0,r=t.commandAlias&&null!==(s=N.WORD_FILTER(e,t.commandAlias))&&void 0!==s?s:void 0;if(n||r)t.highlights={label:n,detail:this.options.showAlias?r:void 0},c.push(t);else if(e===t.commandId)c.push(t);else if(e.length>=3){const e=d();if(i.isCancellationRequested)return[];const n=e.find((e=>e.key===t.commandId));n&&(t.tfIdfScore=n.score,c.push(t))}}const h=new Map;for(const e of c){const t=h.get(e.label);t?(e.description=e.commandId,t.description=t.commandId):h.set(e.label,e)}c.sort(((e,t)=>{if(e.tfIdfScore&&t.tfIdfScore)return e.tfIdfScore===t.tfIdfScore?e.label.localeCompare(t.label):t.tfIdfScore-e.tfIdfScore;if(e.tfIdfScore)return 1;if(t.tfIdfScore)return-1;const i=this.commandsHistory.peek(e.commandId),n=this.commandsHistory.peek(t.commandId);if(i&&n)return i>n?-1:1;if(i)return-1;if(n)return 1;if(this.options.suggestedCommandIds){const i=this.options.suggestedCommandIds.has(e.commandId),n=this.options.suggestedCommandIds.has(t.commandId);if(i&&n)return 0;if(i)return-1;if(n)return 1}return e.label.localeCompare(t.label)}));const g=[];let p=!1,f=!0,_=!!this.options.suggestedCommandIds;for(let e=0;e{var t;const o=await this.getAdditionalCommandPicks(l,c,e,i);if(i.isCancellationRequested)return[];const s=o.map((e=>this.toCommandPick(e,n)));return f&&"separator"!==(null===(t=s[0])||void 0===t?void 0:t.type)&&s.unshift({type:"separator",label:(0,v.k)("suggested","similar commands")}),s})()}:g}toCommandPick(e,t){if("separator"===e.type)return e;const i=this.keybindingService.lookupKeybinding(e.commandId),n=i?(0,v.k)("commandPickAriaLabelWithKeybinding","{0}, {1}",e.label,i.getAriaLabel()):e.label;return{...e,ariaLabel:n,detail:this.options.showAlias&&e.commandAlias!==e.label?e.commandAlias:void 0,keybinding:i,accept:async()=>{var i,n;this.commandsHistory.push(e.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.commandId,from:null!==(i=null==t?void 0:t.from)&&void 0!==i?i:"quick open"});try{(null===(n=e.args)||void 0===n?void 0:n.length)?await this.commandService.executeCommand(e.commandId,...e.args):await this.commandService.executeCommand(e.commandId)}catch(t){(0,c.MB)(t)||this.dialogService.error((0,v.k)("canNotRun","Command '{0}' resulted in an error",e.label),(0,d.r)(t))}}}}getTfIdfChunk({label:e,commandAlias:t,commandDescription:i}){let n=e;return t&&t!==e&&(n+=` - ${t}`),i&&i.value!==e&&(n+=` - ${i.value===i.original?i.value:`${i.value} (${i.original})`}`),n}};O.PREFIX=">",O.TFIDF_THRESHOLD=.5,O.TFIDF_MAX_RESULTS=5,O.WORD_FILTER=(0,h.or)(h.WP,h.J1,h.Tt),O=N=R([P(1,y._Y),P(2,C.b),P(3,_.d),P(4,T.k),P(5,w.X)],O);let F=M=class extends g.jG{constructor(e,t,i){super(),this.storageService=e,this.configurationService=t,this.logService=i,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration((e=>this.updateConfiguration(e)))),this._register(this.storageService.onWillSaveState((e=>{e.reason===A.LP.SHUTDOWN&&this.saveState()})))}updateConfiguration(e){e&&!e.affectsConfiguration("workbench.commandPalette.history")||(this.configuredCommandsHistoryLength=M.getConfiguredCommandHistoryLength(this.configurationService),M.cache&&M.cache.limit!==this.configuredCommandsHistoryLength&&(M.cache.limit=this.configuredCommandsHistoryLength,M.hasChanges=!0))}load(){const e=this.storageService.get(M.PREF_KEY_CACHE,0);let t;if(e)try{t=JSON.parse(e)}catch(e){this.logService.error(`[CommandsHistory] invalid data: ${e}`)}const i=M.cache=new p.qK(this.configuredCommandsHistoryLength,1);if(t){let e;e=t.usesLRU?t.entries:t.entries.sort(((e,t)=>e.value-t.value)),e.forEach((e=>i.set(e.key,e.value)))}M.counter=this.storageService.getNumber(M.PREF_KEY_COUNTER,0,M.counter)}push(e){M.cache&&(M.cache.set(e,M.counter++),M.hasChanges=!0)}peek(e){var t;return null===(t=M.cache)||void 0===t?void 0:t.peek(e)}saveState(){if(!M.cache)return;if(!M.hasChanges)return;const e={usesLRU:!0,entries:[]};M.cache.forEach(((t,i)=>e.entries.push({key:i,value:t}))),this.storageService.store(M.PREF_KEY_CACHE,JSON.stringify(e),0,0),this.storageService.store(M.PREF_KEY_COUNTER,M.counter,0,0),M.hasChanges=!1}static getConfiguredCommandHistoryLength(e){var t,i;const n=null===(i=null===(t=e.getValue().workbench)||void 0===t?void 0:t.commandPalette)||void 0===i?void 0:i.history;return"number"==typeof n?n:M.DEFAULT_COMMANDS_HISTORY_LENGTH}};F.DEFAULT_COMMANDS_HISTORY_LENGTH=50,F.PREF_KEY_CACHE="commandPalette.mru.cache",F.PREF_KEY_COUNTER="commandPalette.mru.counter",F.counter=1,F.hasChanges=!1,F=M=R([P(0,A.CS),P(1,b.pG),P(2,k.rr)],F);class B extends O{constructor(e,t,i,n,o,s){super(e,t,i,n,o,s)}getCodeEditorCommandPicks(){var e;const t=this.activeTextEditorControl;if(!t)return[];const i=[];for(const n of t.getSupportedActions()){let t;(null===(e=n.metadata)||void 0===e?void 0:e.description)&&(t=(0,l.f)(n.metadata.description)?n.metadata.description:{original:n.metadata.description,value:n.metadata.description}),i.push({commandId:n.id,commandAlias:n.alias,commandDescription:t,label:(0,a.pS)(n.label)||n.id})}return i}}var W=i(50946),H=i(38122),V=i(73027),z=function(e,t){return function(i,n){t(i,n,e)}};let j=class extends B{get activeTextEditorControl(){var e;return null!==(e=this.codeEditorService.getFocusedCodeEditor())&&void 0!==e?e:void 0}constructor(e,t,i,n,o,s){super({showAlias:!1},e,i,n,o,s),this.codeEditorService=t}async getCommandPicks(){return this.getCodeEditorCommandPicks()}hasAdditionalCommandPicks(){return!1}async getAdditionalCommandPicks(){return[]}};j=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([z(0,y._Y),z(1,r.T),z(2,C.b),z(3,_.d),z(4,T.k),z(5,w.X)],j);class U extends W.ks{constructor(){super({id:U.ID,label:s.gf.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:H.R.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(V.GK).quickAccess.show(j.PREFIX)}}U.ID="editor.action.quickCommand",(0,W.Fl)(U),n.O.as(o.Fd.Quickaccess).registerQuickAccessProvider({ctor:j,prefix:j.PREFIX,helpEntries:[{description:s.gf.quickCommandHelp,commandId:U.ID}]})},94806:(e,t,i)=>{"use strict";i.r(t),i.d(t,{GotoLineAction:()=>b,StandaloneGotoLineQuickAccessProvider:()=>f});var n=i(10998),o=i(66638),s=i(86653),r=i(3765);class a extends s.o{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){const t=(0,r.k)("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,n.jG.None}provideWithTextEditor(e,t,i){const s=e.editor,r=new n.Cm;r.add(t.onDidAccept((i=>{const[n]=t.selectedItems;if(n){if(!this.isValidLineNumber(s,n.lineNumber))return;this.gotoLocation(e,{range:this.toRange(n.lineNumber,n.column),keyMods:t.keyMods,preserveFocus:i.inBackground}),i.inBackground||t.hide()}})));const l=()=>{const e=this.parsePosition(s,t.value.trim().substr(a.PREFIX.length)),i=this.getPickLabel(s,e.lineNumber,e.column);if(t.items=[{lineNumber:e.lineNumber,column:e.column,label:i}],t.ariaLabel=i,!this.isValidLineNumber(s,e.lineNumber))return void this.clearDecorations(s);const n=this.toRange(e.lineNumber,e.column);s.revealRangeInCenter(n,0),this.addDecorations(s,n)};l(),r.add(t.onDidChangeValue((()=>l())));const d=(0,o.jA)(s);return d&&2===d.getOptions().get(68).renderType&&(d.updateOptions({lineNumbers:"on"}),r.add((0,n.s)((()=>d.updateOptions({lineNumbers:"relative"}))))),r}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){const i=t.split(/,|:|#/).map((e=>parseInt(e,10))).filter((e=>!isNaN(e))),n=this.lineCount(e)+1;return{lineNumber:i[0]>0?i[0]:n+i[0],column:i[1]}}getPickLabel(e,t,i){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,i)?(0,r.k)("gotoLineColumnLabel","Go to line {0} and character {1}.",t,i):(0,r.k)("gotoLineLabel","Go to line {0}.",t);const n=e.getPosition()||{lineNumber:1,column:1},o=this.lineCount(e);return o>1?(0,r.k)("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",n.lineNumber,n.column,o):(0,r.k)("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",n.lineNumber,n.column)}isValidLineNumber(e,t){return!(!t||"number"!=typeof t)&&t>0&&t<=this.lineCount(e)}isValidColumn(e,t,i){if(!i||"number"!=typeof i)return!1;const n=this.getModel(e);if(!n)return!1;const o={lineNumber:t,column:i};return n.validatePosition(o).equals(o)}lineCount(e){var t,i;return null!==(i=null===(t=this.getModel(e))||void 0===t?void 0:t.getLineCount())&&void 0!==i?i:0}}a.PREFIX=":";var l=i(67167),d=i(19381),c=i(87301),h=i(45933),u=i(2106),g=i(50946),p=i(38122),m=i(73027);let f=class extends a{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=u.Jh.None}get activeTextEditorControl(){var e;return null!==(e=this.editorService.getFocusedCodeEditor())&&void 0!==e?e:void 0}};var v,_;f=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(v=0,_=c.T,function(e,t){_(e,t,v)})],f);class b extends g.ks{constructor(){super({id:b.ID,label:h.Hw.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:p.R.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(m.GK).quickAccess.show(f.PREFIX)}}b.ID="editor.action.gotoLine",(0,g.Fl)(b),l.O.as(d.Fd.Quickaccess).registerQuickAccessProvider({ctor:f,prefix:f.PREFIX,helpEntries:[{description:h.Hw.gotoLineActionLabel,commandId:b.ID}]})},1722:(e,t,i)=>{"use strict";i.r(t),i.d(t,{GotoSymbolAction:()=>j,StandaloneGotoSymbolQuickAccessProvider:()=>z}),i(30761),i(4344);var n=i(65958),o=i(78903),s=i(26048),r=i(58881),a=i(75637),l=i(18019),d=i(63339),c=i(16844);const h=[void 0,[]];function u(e,t,i=0,n=0){const o=t;return o.values&&o.values.length>1?function(e,t,i,n){let o=0;const s=[];for(const r of t){const[t,a]=g(e,r,i,n);if("number"!=typeof t)return h;o+=t,s.push(...a)}return[o,p(s)]}(e,o.values,i,n):g(e,t,i,n)}function g(e,t,i,n){const o=(0,a.dt)(t.original,t.originalLowercase,i,e,e.toLowerCase(),n,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return o?[o[0],(0,a.WJ)(o)]:h}function p(e){const t=e.sort(((e,t)=>e.start-t.start)),i=[];let n;for(const e of t)!n||(s=e,(o=n).end=0,r=m(e);let a;const d=e.split(f);if(d.length>1)for(const e of d){const t=m(e),{pathNormalized:i,normalized:n,normalizedLowercase:o}=_(e);n&&(a||(a=[]),a.push({original:e,originalLowercase:e.toLowerCase(),pathNormalized:i,normalized:n,normalizedLowercase:o,expectContiguousMatch:t}))}return{original:e,originalLowercase:t,pathNormalized:i,normalized:n,normalizedLowercase:o,values:a,containsPathSeparator:s,expectContiguousMatch:r}}function _(e){let t;t=d.uF?e.replace(/\//g,l.Vn):e.replace(/\\/g,l.Vn);const i=(0,c.wB)(t).replace(/\s|"/g,"");return{pathNormalized:t,normalized:i,normalizedLowercase:i.toLowerCase()}}function b(e){return Array.isArray(e)?v(e.map((e=>e.original)).join(f)):v(e.original)}var w,y=i(10998),C=i(28061),k=i(47317),S=i(14583),x=i(86653),L=i(3765),D=i(52230),E=i(97393),I=function(e,t){return function(i,n){t(i,n,e)}};let N=w=class extends x.o{constructor(e,t,i=Object.create(null)){super(i),this._languageFeaturesService=e,this._outlineModelService=t,this.options=i,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,(0,L.k)("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),y.jG.None}provideWithTextEditor(e,t,i,n){const o=e.editor,s=this.getModel(o);return s?this._languageFeaturesService.documentSymbolProvider.has(s)?this.doProvideWithEditorSymbols(e,s,t,i,n):this.doProvideWithoutEditorSymbols(e,s,t,i):y.jG.None}doProvideWithoutEditorSymbols(e,t,i,n){const o=new y.Cm;return this.provideLabelPick(i,(0,L.k)("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),(async()=>{await this.waitForLanguageSymbolRegistry(t,o)&&!n.isCancellationRequested&&o.add(this.doProvideWithEditorSymbols(e,t,i,n))})(),o}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}async waitForLanguageSymbolRegistry(e,t){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;const i=new n.Zv,o=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange((()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(o.dispose(),i.complete(!0))})));return t.add((0,y.s)((()=>i.complete(!1)))),i.p}doProvideWithEditorSymbols(e,t,i,n,s){var r;const a=e.editor,l=new y.Cm;l.add(i.onDidAccept((t=>{var n;const[o]=i.selectedItems;o&&o.range&&(this.gotoLocation(e,{range:o.range.selection,keyMods:i.keyMods,preserveFocus:t.inBackground}),null===(n=null==s?void 0:s.handleAccept)||void 0===n||n.call(s,o),t.inBackground||i.hide())}))),l.add(i.onDidTriggerItemButton((({item:t})=>{t&&t.range&&(this.gotoLocation(e,{range:t.range.selection,keyMods:i.keyMods,forceSideBySide:!0}),i.hide())})));const d=this.getDocumentSymbols(t,n);let c;const h=async e=>{null==c||c.dispose(!0),i.busy=!1,c=new o.Qi(n),i.busy=!0;try{const o=v(i.value.substr(w.PREFIX.length).trim()),s=await this.doGetSymbolPicks(d,o,void 0,c.token,t);if(n.isCancellationRequested)return;if(s.length>0){if(i.items=s,e&&0===o.original.length){const t=(0,E.Uk)(s,(t=>Boolean("separator"!==t.type&&t.range&&C.Q.containsPosition(t.range.decoration,e))));t&&(i.activeItems=[t])}}else o.original.length>0?this.provideLabelPick(i,(0,L.k)("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(i,(0,L.k)("noSymbolResults","No editor symbols"))}finally{n.isCancellationRequested||(i.busy=!1)}};return l.add(i.onDidChangeValue((()=>h(void 0)))),h(null===(r=a.getSelection())||void 0===r?void 0:r.getPosition()),l.add(i.onDidChangeActive((()=>{const[e]=i.activeItems;e&&e.range&&(a.revealRangeInCenter(e.range.selection,0),this.addDecorations(a,e.range.decoration))}))),l}async doGetSymbolPicks(e,t,i,n,o){var a,l;const d=await e;if(n.isCancellationRequested)return[];const h=0===t.original.indexOf(w.SCOPE_PREFIX),g=h?1:0;let p,m,f;t.values&&t.values.length>1?(p=b(t.values[0]),m=b(t.values.slice(1))):p=t;const v=null===(l=null===(a=this.options)||void 0===a?void 0:a.openSideBySideDirection)||void 0===l?void 0:l.call(a);v&&(f=[{iconClass:"right"===v?r.L.asClassName(s.W.splitHorizontal):r.L.asClassName(s.W.splitVertical),tooltip:"right"===v?(0,L.k)("openToSide","Open to the Side"):(0,L.k)("openToBottom","Open to the Bottom")}]);const _=[];for(let x=0;xg){let W=!1;if(p!==t&&([T,R]=u(I,{...t,values:void 0},g,N),"number"==typeof T&&(W=!0)),"number"!=typeof T&&([T,R]=u(I,p,g,N),"number"!=typeof T))continue;if(!W&&m){if(F&&m.original.length>0&&([P,O]=u(F,m)),"number"!=typeof P)continue;"number"==typeof T&&(T+=P)}}const B=D.tags&&D.tags.indexOf(1)>=0;_.push({index:x,kind:D.kind,score:T,label:I,ariaLabel:(0,k.PK)(D.name,D.kind),description:F,highlights:B?void 0:{label:R,description:O},range:{selection:C.Q.collapseToStart(D.selectionRange),decoration:D.range},uri:o.uri,symbolName:E,strikethrough:B,buttons:f})}const y=_.sort(((e,t)=>h?this.compareByKindAndScore(e,t):this.compareByScore(e,t)));let S=[];if(h){let H,V,z=0;function j(){V&&"number"==typeof H&&z>0&&(V.label=(0,c.GP)(A[H]||M,z))}for(const U of y)H!==U.kind?(j(),H=U.kind,z=1,V={type:"separator"},S.push(V)):z++,S.push(U);j()}else y.length>0&&(S=[{label:(0,L.k)("symbols","symbols ({0})",_.length),type:"separator"},...y]);return S}compareByScore(e,t){if("number"!=typeof e.score&&"number"==typeof t.score)return 1;if("number"==typeof e.score&&"number"!=typeof t.score)return-1;if("number"==typeof e.score&&"number"==typeof t.score){if(e.score>t.score)return-1;if(e.scoret.index?1:0}compareByKindAndScore(e,t){const i=A[e.kind]||M,n=A[t.kind]||M,o=i.localeCompare(n);return 0===o?this.compareByScore(e,t):o}async getDocumentSymbols(e,t){const i=await this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:i.asListOfDocumentSymbols()}};N.PREFIX="@",N.SCOPE_PREFIX=":",N.PREFIX_BY_CATEGORY=`${w.PREFIX}${w.SCOPE_PREFIX}`,N=w=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([I(0,D.u),I(1,S.gW)],N);const M=(0,L.k)("property","properties ({0})"),A={5:(0,L.k)("method","methods ({0})"),11:(0,L.k)("function","functions ({0})"),8:(0,L.k)("_constructor","constructors ({0})"),12:(0,L.k)("variable","variables ({0})"),4:(0,L.k)("class","classes ({0})"),22:(0,L.k)("struct","structs ({0})"),23:(0,L.k)("event","events ({0})"),24:(0,L.k)("operator","operators ({0})"),10:(0,L.k)("interface","interfaces ({0})"),2:(0,L.k)("namespace","namespaces ({0})"),3:(0,L.k)("package","packages ({0})"),25:(0,L.k)("typeParameter","type parameters ({0})"),1:(0,L.k)("modules","modules ({0})"),6:(0,L.k)("property","properties ({0})"),9:(0,L.k)("enum","enumerations ({0})"),21:(0,L.k)("enumMember","enumeration members ({0})"),14:(0,L.k)("string","strings ({0})"),0:(0,L.k)("file","files ({0})"),17:(0,L.k)("array","arrays ({0})"),15:(0,L.k)("number","numbers ({0})"),16:(0,L.k)("boolean","booleans ({0})"),18:(0,L.k)("object","objects ({0})"),19:(0,L.k)("key","keys ({0})"),7:(0,L.k)("field","fields ({0})"),13:(0,L.k)("constant","constants ({0})")};var T=i(67167),R=i(19381),P=i(87301),O=i(45933),F=i(2106),B=i(50946),W=i(38122),H=i(73027),V=function(e,t){return function(i,n){t(i,n,e)}};let z=class extends N{constructor(e,t,i){super(t,i),this.editorService=e,this.onDidActiveTextEditorControlChange=F.Jh.None}get activeTextEditorControl(){var e;return null!==(e=this.editorService.getFocusedCodeEditor())&&void 0!==e?e:void 0}};z=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([V(0,P.T),V(1,D.u),V(2,S.gW)],z);class j extends B.ks{constructor(){super({id:j.ID,label:O.n9.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:W.R.hasDocumentSymbolProvider,kbOpts:{kbExpr:W.R.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(H.GK).quickAccess.show(N.PREFIX,{itemActivation:H.C1.NONE})}}j.ID="editor.action.quickOutline",(0,B.Fl)(j),T.O.as(R.Fd.Quickaccess).registerQuickAccessProvider({ctor:z,prefix:N.PREFIX,helpEntries:[{description:O.n9.quickOutlineActionLabel,prefix:N.PREFIX,commandId:j.ID},{description:O.n9.quickOutlineByCategoryActionLabel,prefix:N.PREFIX_BY_CATEGORY}]})},84253:(e,t,i)=>{"use strict";i.r(t);var n,o=i(67167),s=i(19381),r=i(45933),a=i(3765),l=i(10998),d=i(56071),c=i(73027),h=function(e,t){return function(i,n){t(i,n,e)}};let u=n=class{constructor(e,t){this.quickInputService=e,this.keybindingService=t,this.registry=o.O.as(s.Fd.Quickaccess)}provide(e){const t=new l.Cm;return t.add(e.onDidAccept((()=>{const[t]=e.selectedItems;t&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})}))),t.add(e.onDidChangeValue((e=>{const t=this.registry.getQuickAccessProvider(e.substr(n.PREFIX.length));t&&t.prefix&&t.prefix!==n.PREFIX&&this.quickInputService.quickAccess.show(t.prefix,{preserveValue:!0})}))),e.items=this.getQuickAccessProviders().filter((e=>e.prefix!==n.PREFIX)),t}getQuickAccessProviders(){return this.registry.getQuickAccessProviders().sort(((e,t)=>e.prefix.localeCompare(t.prefix))).flatMap((e=>this.createPicks(e)))}createPicks(e){return e.helpEntries.map((t=>{const i=t.prefix||e.prefix,n=i||"…";return{prefix:i,label:n,keybinding:t.commandId?this.keybindingService.lookupKeybinding(t.commandId):void 0,ariaLabel:(0,a.k)("helpPickAriaLabel","{0}, {1}",n,t.description),description:t.description}}))}};u.PREFIX="?",u=n=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([h(0,c.GK),h(1,d.b)],u),o.O.as(s.Fd.Quickaccess).registerQuickAccessProvider({ctor:u,prefix:"",helpEntries:[{description:r.oq.helpQuickAccessActionLabel}]})},73817:(e,t,i)=>{"use strict";i.r(t),i.d(t,{StandaloneReferencesController:()=>u});var n=i(50946),o=i(87301),s=i(45280),r=i(85753),a=i(31540),l=i(82399),d=i(29879),c=i(90840),h=function(e,t){return function(i,n){t(i,n,e)}};let u=class extends s.X{constructor(e,t,i,n,o,s,r){super(!0,e,t,i,n,o,s,r)}};u=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([h(1,a.fN),h(2,o.T),h(3,d.Ot),h(4,l._Y),h(5,c.CS),h(6,r.pG)],u),(0,n.HW)(s.X.ID,u,4)},53575:(e,t,i)=>{"use strict";i.d(t,{aQ:()=>L,nr:()=>D,Sx:()=>R,po:()=>x,tj:()=>S});var n=i(14333),o=i(55893),s=i(94901),r=i(2106),a=i(47317),l=i(15910),d=i(18676),c=i(48295),h=i(70559);const u={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[h.YtV]:"#FFFFFE",[h.By2]:"#000000",[h.tan]:"#E5EBF1",[c.vV]:"#D3D3D3",[c.H0]:"#939393",[h.QwA]:"#ADD6FF4D"}},g={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[h.YtV]:"#1E1E1E",[h.By2]:"#D4D4D4",[h.tan]:"#3A3D41",[c.vV]:"#404040",[c.H0]:"#707070",[h.QwA]:"#ADD6FF26"}},p={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[h.YtV]:"#000000",[h.By2]:"#FFFFFF",[c.vV]:"#FFFFFF",[c.H0]:"#FFFFFF"}},m={base:"hc-light",inherit:!1,rules:[{token:"",foreground:"292929",background:"FFFFFF"},{token:"invalid",foreground:"B5200D"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"264F70"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"B5200D"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"264F78"},{token:"attribute.value",foreground:"0451A5"},{token:"string",foreground:"A31515"},{token:"string.sql",foreground:"B5200D"},{token:"keyword",foreground:"0000FF"},{token:"keyword.flow",foreground:"AF00DB"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[h.YtV]:"#FFFFFF",[h.By2]:"#292929",[c.vV]:"#292929",[c.H0]:"#292929"}};var f=i(67167),v=i(89044),_=i(10998),b=i(89563),w=i(58881),y=i(11210);class C{getIcon(e){const t=(0,y.HT)();let i=e.defaults;for(;w.L.isThemeIcon(i);){const e=t.getIcon(i.id);if(!e)return;i=e.defaults}return i}}var k=i(48877);const S="vs",x="vs-dark",L="hc-black",D="hc-light",E=f.O.as(h.FdG.ColorContribution),I=f.O.as(v.Fd.ThemingContribution);class N{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;const i=t.base;e.length>0?(M(e)?this.id=e:this.id=i+" "+e,this.themeName=e):(this.id=i,this.themeName=i),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){const e=new Map;for(const t in this.themeData.colors)e.set(t,s.Q1.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){const t=A(this.themeData.base);for(const i in t.colors)e.has(i)||e.set(i,s.Q1.fromHex(t.colors[i]))}this.colors=e}return this.colors}getColor(e,t){return this.getColors().get(e)||(!1!==t?this.getDefault(e):void 0)}getDefault(e){let t=this.defaultColors[e];return t||(t=E.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}defines(e){return this.getColors().has(e)}get type(){switch(this.base){case S:return b.zM.LIGHT;case L:return b.zM.HIGH_CONTRAST_DARK;case D:return b.zM.HIGH_CONTRAST_LIGHT;default:return b.zM.DARK}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){const i=A(this.themeData.base);e=i.rules,i.encodedTokensColors&&(t=i.encodedTokensColors)}const i=this.themeData.colors["editor.foreground"],n=this.themeData.colors["editor.background"];if(i||n){const t={token:""};i&&(t.foreground=i),n&&(t.background=n),e.push(t)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=d.TQ.createFromRawTokenTheme(e,t)}return this._tokenTheme}getTokenStyleMetadata(e,t,i){const n=this.tokenTheme._match([e].concat(t).join(".")).metadata,o=l.x.getForeground(n),s=l.x.getFontStyle(n);return{foreground:o,italic:Boolean(1&s),bold:Boolean(2&s),underline:Boolean(4&s),strikethrough:Boolean(8&s)}}}function M(e){return e===S||e===x||e===L||e===D}function A(e){switch(e){case S:return u;case x:return g;case L:return p;case D:return m}}function T(e){const t=A(e);return new N(e,t)}class R extends _.jG{constructor(){super(),this._onColorThemeChange=this._register(new r.vl),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new r.vl),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new C,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(S,T(S)),this._knownThemes.set(x,T(x)),this._knownThemes.set(L,T(L)),this._knownThemes.set(D,T(D));const e=this._register(function(e){const t=new _.Cm,i=t.add(new r.vl),o=(0,y.HT)();return t.add(o.onDidChange((()=>i.fire()))),e&&t.add(e.onDidProductIconThemeChange((()=>i.fire()))),{dispose:()=>t.dispose(),onDidChange:i.event,getCSS(){const t=e?e.getProductIconTheme():new C,i={},s=[],r=[];for(const e of o.getIcons()){const o=t.getIcon(e);if(!o)continue;const a=o.font,l=`--vscode-icon-${e.id}-font-family`,d=`--vscode-icon-${e.id}-content`;a?(i[a.id]=a.definition,r.push(`${l}: ${(0,n.yt)(a.id)};`,`${d}: '${o.fontCharacter}';`),s.push(`.codicon-${e.id}:before { content: '${o.fontCharacter}'; font-family: ${(0,n.yt)(a.id)}; }`)):(r.push(`${d}: '${o.fontCharacter}'; ${l}: 'codicon';`),s.push(`.codicon-${e.id}:before { content: '${o.fontCharacter}'; }`))}for(const e in i){const t=i[e],o=t.weight?`font-weight: ${t.weight};`:"",r=t.style?`font-style: ${t.style};`:"",a=t.src.map((e=>`${(0,n.Tf)(e.location)} format('${e.format}')`)).join(", ");s.push(`@font-face { src: ${a}; font-family: ${(0,n.yt)(e)};${o}${r} font-display: block; }`)}return s.push(`:root { ${r.join(" ")} }`),s.join("\n")}}}(this));this._codiconCSS=e.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(S),this._onOSSchemeChanged(),this._register(e.onDidChange((()=>{this._codiconCSS=e.getCSS(),this._updateCSS()}))),(0,o.Dy)(k.G,"(forced-colors: active)",(()=>{this._onOSSchemeChanged()}))}registerEditorContainer(e){return n.Cl(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=n.li(void 0,(e=>{e.className="monaco-colors",e.textContent=this._allCSS})),this._styleElements.push(this._globalStyleElement)),_.jG.None}_registerShadowDomContainer(e){const t=n.li(e,(e=>{e.className="monaco-colors",e.textContent=this._allCSS}));return this._styleElements.push(t),{dispose:()=>{for(let e=0;e{t.base===e&&t.notifyBaseUpdated()})),this._theme.themeName===e&&this.setTheme(e)}getColorTheme(){return this._theme}setColorMapOverride(e){this._colorMapOverride=e,this._updateThemeOrColorMap()}setTheme(e){let t;t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(S),this._updateActualTheme(t)}_updateActualTheme(e){e&&this._theme!==e&&(this._theme=e,this._updateThemeOrColorMap())}_onOSSchemeChanged(){if(this._autoDetectHighContrast){const e=k.G.matchMedia("(forced-colors: active)").matches;if(e!==(0,b.Bb)(this._theme.type)){let t;t=(0,b.HD)(this._theme.type)?e?L:x:e?D:S,this._updateActualTheme(this._knownThemes.get(t))}}}setAutoDetectHighContrast(e){this._autoDetectHighContrast=e,this._onOSSchemeChanged()}_updateThemeOrColorMap(){const e=[],t={},i={addRule:i=>{t[i]||(e.push(i),t[i]=!0)}};I.getThemingParticipants().forEach((e=>e(this._theme,i,this._environment)));const n=[];for(const e of E.getColors()){const t=this._theme.getColor(e.id,!0);t&&n.push(`${(0,h.Bbc)(e.id)}: ${t.toString()};`)}i.addRule(`.monaco-editor, .monaco-diff-editor, .monaco-component { ${n.join("\n")} }`);const o=this._colorMapOverride||this._theme.tokenTheme.getColorMap();i.addRule((0,d.nh)(o)),this._themeCSS=e.join("\n"),this._updateCSS(),a.dG.setColorMap(o),this._onColorThemeChange.fire(this._theme)}_updateCSS(){this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._styleElements.forEach((e=>e.textContent=this._allCSS))}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}}},16706:(e,t,i)=>{"use strict";i.r(t);var n=i(50946),o=i(83616),s=i(45933),r=i(89563),a=i(53575);class l extends n.ks{constructor(){super({id:"editor.action.toggleHighContrast",label:s.E6.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){const i=e.get(o.L),n=i.getColorTheme();(0,r.Bb)(n.type)?(i.setTheme(this._originalThemeName||((0,r.HD)(n.type)?a.po:a.tj)),this._originalThemeName=null):(i.setTheme((0,r.HD)(n.type)?a.aQ:a.nr),this._originalThemeName=n.themeName)}}(0,n.Fl)(l)},83616:(e,t,i)=>{"use strict";i.d(t,{L:()=>n});const n=(0,i(82399).u1)("themeService")},19664:(e,t,i)=>{"use strict";i.d(t,{IF:()=>v});var n=i(514),o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,l=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of r(t))a.call(e,l)||l===i||o(e,l,{get:()=>t[l],enumerable:!(n=s(t,l))||n.enumerable});return e},d={};l(d,n,"default");var c=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ESNext=99]="ESNext",e))(c||{}),h=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(h||{}),u=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(u||{}),g=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(g||{}),p=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e))(p||{}),m=class{constructor(e,t,i,n,o){this._onDidChange=new d.Emitter,this._onDidExtraLibsChange=new d.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(i),this.setInlayHintsOptions(n),this.setModeConfiguration(o),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,t){let i;if(i=void 0===t?`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t,this._extraLibs[i]&&this._extraLibs[i].content===e)return{dispose:()=>{}};let n=1;return this._removedExtraLibs[i]&&(n=this._removedExtraLibs[i]+1),this._extraLibs[i]&&(n=this._extraLibs[i].version+1),this._extraLibs[i]={content:e,version:n},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let e=this._extraLibs[i];e&&e.version===n&&(delete this._extraLibs[i],this._removedExtraLibs[i]=n,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(const t of e){const e=t.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=t.content;let n=1;this._removedExtraLibs[e]&&(n=this._removedExtraLibs[e]+1),this._extraLibs[e]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){-1===this._onDidExtraLibsChangeTimeout&&(this._onDidExtraLibsChangeTimeout=window.setTimeout((()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)}),0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(e){}setEagerModelSync(e){this._eagerModelSync=e}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(void 0)}},f={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},v=new m({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},f),_=new m({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},f);function b(){return i.e(355).then(i.bind(i,59355))}d.languages.typescript={ModuleKind:c,JsxEmit:h,NewLineKind:u,ScriptTarget:g,ModuleResolutionKind:p,typescriptVersion:"5.4.5",typescriptDefaults:v,javascriptDefaults:_,getTypeScriptWorker:()=>b().then((e=>e.getTypeScriptWorker())),getJavaScriptWorker:()=>b().then((e=>e.getJavaScriptWorker()))},d.languages.onLanguage("typescript",(()=>b().then((e=>e.setupTypeScript(v))))),d.languages.onLanguage("javascript",(()=>b().then((e=>e.setupJavaScript(_)))))},3765:(e,t,i)=>{"use strict";i.d(t,{a:()=>a,k:()=>s});const n="pseudo"===globalThis._VSCODE_NLS_LANGUAGE||"undefined"!=typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function o(e,t){let i;return i=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,i)=>{const n=i[0],o=t[n];let s=e;return"string"==typeof o?s=o:"number"!=typeof o&&"boolean"!=typeof o&&null!=o||(s=String(o)),s})),n&&(i="["+i.replace(/[aouei]/g,"$&$&")+"]"),i}function s(e,t,...i){return o("number"==typeof e?r(e,t):t,i)}function r(e,t){var i;const n=null===(i=globalThis._VSCODE_NLS_MESSAGES)||void 0===i?void 0:i[e];if("string"!=typeof n){if("string"==typeof t)return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}function a(e,t,...i){let n;n="number"==typeof e?r(e,t):t;const s=o(n,i);return{value:s,original:t===n?s:o(t,i)}}},15250:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n=new class{constructor(){this._implementations=[]}register(e){return this._implementations.push(e),{dispose:()=>{const t=this._implementations.indexOf(e);-1!==t&&this._implementations.splice(t,1),e.dispose()}}}getImplementations(){return this._implementations}}},53909:(e,t,i)=>{"use strict";i.d(t,{f:()=>s,j:()=>o});var n=i(31540);const o=(0,i(82399).u1)("accessibilityService"),s=new n.N1("accessibilityModeEnabled",!1)},71285:(e,t,i)=>{"use strict";i.d(t,{Nt:()=>o,Rh:()=>a});var n=i(3765);const o=(0,i(82399).u1)("accessibilitySignalService");Symbol("AcknowledgeDocCommentsToken");class s{static register(e){return new s(e.fileName)}constructor(e){this.fileName=e}}s.error=s.register({fileName:"error.mp3"}),s.warning=s.register({fileName:"warning.mp3"}),s.success=s.register({fileName:"success.mp3"}),s.foldedArea=s.register({fileName:"foldedAreas.mp3"}),s.break=s.register({fileName:"break.mp3"}),s.quickFixes=s.register({fileName:"quickFixes.mp3"}),s.taskCompleted=s.register({fileName:"taskCompleted.mp3"}),s.taskFailed=s.register({fileName:"taskFailed.mp3"}),s.terminalBell=s.register({fileName:"terminalBell.mp3"}),s.diffLineInserted=s.register({fileName:"diffLineInserted.mp3"}),s.diffLineDeleted=s.register({fileName:"diffLineDeleted.mp3"}),s.diffLineModified=s.register({fileName:"diffLineModified.mp3"}),s.chatRequestSent=s.register({fileName:"chatRequestSent.mp3"}),s.chatResponseReceived1=s.register({fileName:"chatResponseReceived1.mp3"}),s.chatResponseReceived2=s.register({fileName:"chatResponseReceived2.mp3"}),s.chatResponseReceived3=s.register({fileName:"chatResponseReceived3.mp3"}),s.chatResponseReceived4=s.register({fileName:"chatResponseReceived4.mp3"}),s.clear=s.register({fileName:"clear.mp3"}),s.save=s.register({fileName:"save.mp3"}),s.format=s.register({fileName:"format.mp3"}),s.voiceRecordingStarted=s.register({fileName:"voiceRecordingStarted.mp3"}),s.voiceRecordingStopped=s.register({fileName:"voiceRecordingStopped.mp3"}),s.progress=s.register({fileName:"progress.mp3"});class r{constructor(e){this.randomOneOf=e}}class a{constructor(e,t,i,n,o,s,r){this.sound=e,this.name=t,this.legacySoundSettingsKey=i,this.settingsKey=n,this.legacyAnnouncementSettingsKey=o,this.announcementMessage=s,this.delaySettingsKey=r}static register(e){const t=new r("randomOneOf"in e.sound?e.sound.randomOneOf:[e.sound]),i=new a(t,e.name,e.legacySoundSettingsKey,e.settingsKey,e.legacyAnnouncementSettingsKey,e.announcementMessage,e.delaySettingsKey);return a._signals.add(i),i}}a._signals=new Set,a.errorAtPosition=a.register({name:(0,n.k)("accessibilitySignals.positionHasError.name","Error at Position"),sound:s.error,announcementMessage:(0,n.k)("accessibility.signals.positionHasError","Error"),settingsKey:"accessibility.signals.positionHasError",delaySettingsKey:"accessibility.signalOptions.delays.errorAtPosition"}),a.warningAtPosition=a.register({name:(0,n.k)("accessibilitySignals.positionHasWarning.name","Warning at Position"),sound:s.warning,announcementMessage:(0,n.k)("accessibility.signals.positionHasWarning","Warning"),settingsKey:"accessibility.signals.positionHasWarning",delaySettingsKey:"accessibility.signalOptions.delays.warningAtPosition"}),a.errorOnLine=a.register({name:(0,n.k)("accessibilitySignals.lineHasError.name","Error on Line"),sound:s.error,legacySoundSettingsKey:"audioCues.lineHasError",legacyAnnouncementSettingsKey:"accessibility.alert.error",announcementMessage:(0,n.k)("accessibility.signals.lineHasError","Error on Line"),settingsKey:"accessibility.signals.lineHasError"}),a.warningOnLine=a.register({name:(0,n.k)("accessibilitySignals.lineHasWarning.name","Warning on Line"),sound:s.warning,legacySoundSettingsKey:"audioCues.lineHasWarning",legacyAnnouncementSettingsKey:"accessibility.alert.warning",announcementMessage:(0,n.k)("accessibility.signals.lineHasWarning","Warning on Line"),settingsKey:"accessibility.signals.lineHasWarning"}),a.foldedArea=a.register({name:(0,n.k)("accessibilitySignals.lineHasFoldedArea.name","Folded Area on Line"),sound:s.foldedArea,legacySoundSettingsKey:"audioCues.lineHasFoldedArea",legacyAnnouncementSettingsKey:"accessibility.alert.foldedArea",announcementMessage:(0,n.k)("accessibility.signals.lineHasFoldedArea","Folded"),settingsKey:"accessibility.signals.lineHasFoldedArea"}),a.break=a.register({name:(0,n.k)("accessibilitySignals.lineHasBreakpoint.name","Breakpoint on Line"),sound:s.break,legacySoundSettingsKey:"audioCues.lineHasBreakpoint",legacyAnnouncementSettingsKey:"accessibility.alert.breakpoint",announcementMessage:(0,n.k)("accessibility.signals.lineHasBreakpoint","Breakpoint"),settingsKey:"accessibility.signals.lineHasBreakpoint"}),a.inlineSuggestion=a.register({name:(0,n.k)("accessibilitySignals.lineHasInlineSuggestion.name","Inline Suggestion on Line"),sound:s.quickFixes,legacySoundSettingsKey:"audioCues.lineHasInlineSuggestion",settingsKey:"accessibility.signals.lineHasInlineSuggestion"}),a.terminalQuickFix=a.register({name:(0,n.k)("accessibilitySignals.terminalQuickFix.name","Terminal Quick Fix"),sound:s.quickFixes,legacySoundSettingsKey:"audioCues.terminalQuickFix",legacyAnnouncementSettingsKey:"accessibility.alert.terminalQuickFix",announcementMessage:(0,n.k)("accessibility.signals.terminalQuickFix","Quick Fix"),settingsKey:"accessibility.signals.terminalQuickFix"}),a.onDebugBreak=a.register({name:(0,n.k)("accessibilitySignals.onDebugBreak.name","Debugger Stopped on Breakpoint"),sound:s.break,legacySoundSettingsKey:"audioCues.onDebugBreak",legacyAnnouncementSettingsKey:"accessibility.alert.onDebugBreak",announcementMessage:(0,n.k)("accessibility.signals.onDebugBreak","Breakpoint"),settingsKey:"accessibility.signals.onDebugBreak"}),a.noInlayHints=a.register({name:(0,n.k)("accessibilitySignals.noInlayHints","No Inlay Hints on Line"),sound:s.error,legacySoundSettingsKey:"audioCues.noInlayHints",legacyAnnouncementSettingsKey:"accessibility.alert.noInlayHints",announcementMessage:(0,n.k)("accessibility.signals.noInlayHints","No Inlay Hints"),settingsKey:"accessibility.signals.noInlayHints"}),a.taskCompleted=a.register({name:(0,n.k)("accessibilitySignals.taskCompleted","Task Completed"),sound:s.taskCompleted,legacySoundSettingsKey:"audioCues.taskCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.taskCompleted",announcementMessage:(0,n.k)("accessibility.signals.taskCompleted","Task Completed"),settingsKey:"accessibility.signals.taskCompleted"}),a.taskFailed=a.register({name:(0,n.k)("accessibilitySignals.taskFailed","Task Failed"),sound:s.taskFailed,legacySoundSettingsKey:"audioCues.taskFailed",legacyAnnouncementSettingsKey:"accessibility.alert.taskFailed",announcementMessage:(0,n.k)("accessibility.signals.taskFailed","Task Failed"),settingsKey:"accessibility.signals.taskFailed"}),a.terminalCommandFailed=a.register({name:(0,n.k)("accessibilitySignals.terminalCommandFailed","Terminal Command Failed"),sound:s.error,legacySoundSettingsKey:"audioCues.terminalCommandFailed",legacyAnnouncementSettingsKey:"accessibility.alert.terminalCommandFailed",announcementMessage:(0,n.k)("accessibility.signals.terminalCommandFailed","Command Failed"),settingsKey:"accessibility.signals.terminalCommandFailed"}),a.terminalCommandSucceeded=a.register({name:(0,n.k)("accessibilitySignals.terminalCommandSucceeded","Terminal Command Succeeded"),sound:s.success,announcementMessage:(0,n.k)("accessibility.signals.terminalCommandSucceeded","Command Succeeded"),settingsKey:"accessibility.signals.terminalCommandSucceeded"}),a.terminalBell=a.register({name:(0,n.k)("accessibilitySignals.terminalBell","Terminal Bell"),sound:s.terminalBell,legacySoundSettingsKey:"audioCues.terminalBell",legacyAnnouncementSettingsKey:"accessibility.alert.terminalBell",announcementMessage:(0,n.k)("accessibility.signals.terminalBell","Terminal Bell"),settingsKey:"accessibility.signals.terminalBell"}),a.notebookCellCompleted=a.register({name:(0,n.k)("accessibilitySignals.notebookCellCompleted","Notebook Cell Completed"),sound:s.taskCompleted,legacySoundSettingsKey:"audioCues.notebookCellCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellCompleted",announcementMessage:(0,n.k)("accessibility.signals.notebookCellCompleted","Notebook Cell Completed"),settingsKey:"accessibility.signals.notebookCellCompleted"}),a.notebookCellFailed=a.register({name:(0,n.k)("accessibilitySignals.notebookCellFailed","Notebook Cell Failed"),sound:s.taskFailed,legacySoundSettingsKey:"audioCues.notebookCellFailed",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellFailed",announcementMessage:(0,n.k)("accessibility.signals.notebookCellFailed","Notebook Cell Failed"),settingsKey:"accessibility.signals.notebookCellFailed"}),a.diffLineInserted=a.register({name:(0,n.k)("accessibilitySignals.diffLineInserted","Diff Line Inserted"),sound:s.diffLineInserted,legacySoundSettingsKey:"audioCues.diffLineInserted",settingsKey:"accessibility.signals.diffLineInserted"}),a.diffLineDeleted=a.register({name:(0,n.k)("accessibilitySignals.diffLineDeleted","Diff Line Deleted"),sound:s.diffLineDeleted,legacySoundSettingsKey:"audioCues.diffLineDeleted",settingsKey:"accessibility.signals.diffLineDeleted"}),a.diffLineModified=a.register({name:(0,n.k)("accessibilitySignals.diffLineModified","Diff Line Modified"),sound:s.diffLineModified,legacySoundSettingsKey:"audioCues.diffLineModified",settingsKey:"accessibility.signals.diffLineModified"}),a.chatRequestSent=a.register({name:(0,n.k)("accessibilitySignals.chatRequestSent","Chat Request Sent"),sound:s.chatRequestSent,legacySoundSettingsKey:"audioCues.chatRequestSent",legacyAnnouncementSettingsKey:"accessibility.alert.chatRequestSent",announcementMessage:(0,n.k)("accessibility.signals.chatRequestSent","Chat Request Sent"),settingsKey:"accessibility.signals.chatRequestSent"}),a.chatResponseReceived=a.register({name:(0,n.k)("accessibilitySignals.chatResponseReceived","Chat Response Received"),legacySoundSettingsKey:"audioCues.chatResponseReceived",sound:{randomOneOf:[s.chatResponseReceived1,s.chatResponseReceived2,s.chatResponseReceived3,s.chatResponseReceived4]},settingsKey:"accessibility.signals.chatResponseReceived"}),a.progress=a.register({name:(0,n.k)("accessibilitySignals.progress","Progress"),sound:s.progress,legacySoundSettingsKey:"audioCues.chatResponsePending",legacyAnnouncementSettingsKey:"accessibility.alert.progress",announcementMessage:(0,n.k)("accessibility.signals.progress","Progress"),settingsKey:"accessibility.signals.progress"}),a.clear=a.register({name:(0,n.k)("accessibilitySignals.clear","Clear"),sound:s.clear,legacySoundSettingsKey:"audioCues.clear",legacyAnnouncementSettingsKey:"accessibility.alert.clear",announcementMessage:(0,n.k)("accessibility.signals.clear","Clear"),settingsKey:"accessibility.signals.clear"}),a.save=a.register({name:(0,n.k)("accessibilitySignals.save","Save"),sound:s.save,legacySoundSettingsKey:"audioCues.save",legacyAnnouncementSettingsKey:"accessibility.alert.save",announcementMessage:(0,n.k)("accessibility.signals.save","Save"),settingsKey:"accessibility.signals.save"}),a.format=a.register({name:(0,n.k)("accessibilitySignals.format","Format"),sound:s.format,legacySoundSettingsKey:"audioCues.format",legacyAnnouncementSettingsKey:"accessibility.alert.format",announcementMessage:(0,n.k)("accessibility.signals.format","Format"),settingsKey:"accessibility.signals.format"}),a.voiceRecordingStarted=a.register({name:(0,n.k)("accessibilitySignals.voiceRecordingStarted","Voice Recording Started"),sound:s.voiceRecordingStarted,legacySoundSettingsKey:"audioCues.voiceRecordingStarted",settingsKey:"accessibility.signals.voiceRecordingStarted"}),a.voiceRecordingStopped=a.register({name:(0,n.k)("accessibilitySignals.voiceRecordingStopped","Voice Recording Stopped"),sound:s.voiceRecordingStopped,legacySoundSettingsKey:"audioCues.voiceRecordingStopped",settingsKey:"accessibility.signals.voiceRecordingStopped"})},58039:(e,t,i)=>{"use strict";function n(e){return e&&"object"==typeof e&&"string"==typeof e.original&&"string"==typeof e.value}function o(e){return!!e&&void 0!==e.condition}i.d(t,{N:()=>o,f:()=>n})},22751:(e,t,i)=>{"use strict";i.d(t,{oq:()=>K,rr:()=>q,rN:()=>Y,Ot:()=>U,$u:()=>j});var n=i(14333),o=i(87594),s=i(47971),r=i(53568),a=i(27969),l=i(98315),d=i(10998),c=i(63339),h=i(85072),u=i.n(h),g=i(97825),p=i.n(g),m=i(77659),f=i.n(m),v=i(55056),_=i.n(v),b=i(10540),w=i.n(b),y=i(41113),C=i.n(y),k=i(19055),S={};S.styleTagTransform=C(),S.setAttributes=_(),S.insert=f().bind(null,"head"),S.domAPI=p(),S.insertStyleElement=w(),u()(k.A,S),k.A&&k.A.locals&&k.A.locals;var x=i(3765),L=i(58067),D=i(58039),E=i(31540),I=i(52348),N=i(82399),M=i(56071),A=i(29879),T=i(90840),R=i(89044),P=i(58881),O=i(89563),F=i(79359),B=i(70559),W=i(25654),H=i(53909),V=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},z=function(e,t){return function(i,n){t(i,n,e)}};function j(e,t,i,o){const s=e.getActions(t),r=n.Di.getInstance();$(s,i,r.keyStatus.altKey||(c.uF||c.j9)&&r.keyStatus.shiftKey,o?e=>e===o:e=>"navigation"===e)}function U(e,t,i,n,o,s){$(e.getActions(t),i,!1,"string"==typeof n?e=>e===n:n,o,s)}function $(e,t,i,n=(e=>"navigation"===e),o=(()=>!1),s=!1){let r,l;Array.isArray(t)?(r=t,l=t):(r=t.primary,l=t.secondary);const d=new Set;for(const[t,o]of e){let e;n(t)?(e=r,e.length>0&&s&&e.push(new a.wv)):(e=l,e.length>0&&e.push(new a.wv));for(let n of o){i&&(n=n instanceof L.Xe&&n.alt?n.alt:n);const o=e.push(n);n instanceof a.YH&&d.add({group:t,action:n,index:o-1})}}for(const{group:e,action:t,index:i}of d){const s=n(e)?r:l,a=t.actions;o(t,e,s.length)&&s.splice(i,1,...a)}}let K=class extends s.Z4{constructor(e,t,i,o,s,r,a,l){super(void 0,e,{icon:!(!e.class&&!e.item.icon),label:!e.class&&!e.item.icon,draggable:null==t?void 0:t.draggable,keybinding:null==t?void 0:t.keybinding,hoverDelegate:null==t?void 0:t.hoverDelegate}),this._options=t,this._keybindingService=i,this._notificationService=o,this._contextKeyService=s,this._themeService=r,this._contextMenuService=a,this._accessibilityService=l,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new d.HE),this._altKey=n.Di.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}async onClick(e){e.preventDefault(),e.stopPropagation();try{await this.actionRunner.run(this._commandAction,this._context)}catch(e){this._notificationService.error(e)}}render(e){if(super.render(e),e.classList.add("menu-entry"),this.options.icon&&this._updateItemClass(this._menuItemAction.item),this._menuItemAction.alt){let t=!1;const i=()=>{var e;const i=!!(null===(e=this._menuItemAction.alt)||void 0===e?void 0:e.enabled)&&(!this._accessibilityService.isMotionReduced()||t)&&(this._altKey.keyStatus.altKey||this._altKey.keyStatus.shiftKey&&t);i!==this._wantsAltCommand&&(this._wantsAltCommand=i,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._register(this._altKey.event(i)),this._register((0,n.ko)(e,"mouseleave",(e=>{t=!1,i()}))),this._register((0,n.ko)(e,"mouseenter",(e=>{t=!0,i()}))),i()}}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}getTooltip(){var e;const t=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),i=t&&t.getLabel(),n=this._commandAction.tooltip||this._commandAction.label;let o=i?(0,x.k)("titleAndKb","{0} ({1})",n,i):n;if(!this._wantsAltCommand&&(null===(e=this._menuItemAction.alt)||void 0===e?void 0:e.enabled)){const e=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,t=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),i=t&&t.getLabel(),n=i?(0,x.k)("titleAndKb","{0} ({1})",e,i):e;o=(0,x.k)("titleAndKbAndAlt","{0}\n[{1}] {2}",o,l.Of.modifierLabels[c.OS].altKey,n)}return o}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}_updateItemClass(e){this._itemClassDispose.value=void 0;const{element:t,label:i}=this;if(!t||!i)return;const o=this._commandAction.checked&&(0,D.N)(e.toggled)&&e.toggled.icon?e.toggled.icon:e.icon;if(o)if(P.L.isThemeIcon(o)){const e=P.L.asClassNameArray(o);i.classList.add(...e),this._itemClassDispose.value=(0,d.s)((()=>{i.classList.remove(...e)}))}else i.style.backgroundImage=(0,O.HD)(this._themeService.getColorTheme().type)?(0,n.Tf)(o.dark):(0,n.Tf)(o.light),i.classList.add("icon"),this._itemClassDispose.value=(0,d.qE)((0,d.s)((()=>{i.style.backgroundImage="",i.classList.remove("icon")})),this._themeService.onDidColorThemeChange((()=>{this.updateClass()})))}};K=V([z(2,M.b),z(3,A.Ot),z(4,E.fN),z(5,R.Gy),z(6,I.Z),z(7,H.j)],K);class q extends K{render(e){var t,i;this.options.label=!0,this.options.icon=!1,super.render(e),e.classList.add("text-only"),e.classList.toggle("use-comma",null!==(i=null===(t=this._options)||void 0===t?void 0:t.useComma)&&void 0!==i&&i)}updateLabel(){var e;const t=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!t)return super.updateLabel();if(this.label){const i=q._symbolPrintEnter(t);(null===(e=this._options)||void 0===e?void 0:e.conversational)?this.label.textContent=(0,x.k)({key:"content2",comment:['A label with keybindg like "ESC to dismiss"']},"{1} to {0}",this._action.label,i):this.label.textContent=(0,x.k)({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",this._action.label,i)}}static _symbolPrintEnter(e){var t;return null===(t=e.getLabel())||void 0===t?void 0:t.replace(/\benter\b/gi,"⏎").replace(/\bEscape\b/gi,"Esc")}}let G=class extends r.d{constructor(e,t,i,n,o){var s,r,a;const l={...t,menuAsChild:null!==(s=null==t?void 0:t.menuAsChild)&&void 0!==s&&s,classNames:null!==(r=null==t?void 0:t.classNames)&&void 0!==r?r:P.L.isThemeIcon(e.item.icon)?P.L.asClassName(e.item.icon):void 0,keybindingProvider:null!==(a=null==t?void 0:t.keybindingProvider)&&void 0!==a?a:e=>i.lookupKeybinding(e.id)};super(e,{getActions:()=>e.actions},n,l),this._keybindingService=i,this._contextMenuService=n,this._themeService=o}render(e){super.render(e),(0,F.j)(this.element),e.classList.add("menu-entry");const t=this._action,{icon:i}=t.item;if(i&&!P.L.isThemeIcon(i)){this.element.classList.add("icon");const e=()=>{this.element&&(this.element.style.backgroundImage=(0,O.HD)(this._themeService.getColorTheme().type)?(0,n.Tf)(i.dark):(0,n.Tf)(i.light))};e(),this._register(this._themeService.onDidColorThemeChange((()=>{e()})))}}};G=V([z(2,M.b),z(3,I.Z),z(4,R.Gy)],G);let Q=class extends s.EH{constructor(e,t,i,n,o,s,l,d){var c,h,u;let g;super(null,e),this._keybindingService=i,this._notificationService=n,this._contextMenuService=o,this._menuService=s,this._instaService=l,this._storageService=d,this._container=null,this._options=t,this._storageKey=`${e.item.submenu.id}_lastActionId`;const p=(null==t?void 0:t.persistLastActionId)?d.get(this._storageKey,1):void 0;p&&(g=e.actions.find((e=>p===e.id))),g||(g=e.actions[0]),this._defaultAction=this._instaService.createInstance(K,g,{keybinding:this._getDefaultActionKeybindingLabel(g)});const m={keybindingProvider:e=>this._keybindingService.lookupKeybinding(e.id),...t,menuAsChild:null===(c=null==t?void 0:t.menuAsChild)||void 0===c||c,classNames:null!==(h=null==t?void 0:t.classNames)&&void 0!==h?h:["codicon","codicon-chevron-down"],actionRunner:null!==(u=null==t?void 0:t.actionRunner)&&void 0!==u?u:new a.LN};this._dropdown=new r.d(e,e.actions,this._contextMenuService,m),this._register(this._dropdown.actionRunner.onDidRun((e=>{e.action instanceof L.Xe&&this.update(e.action)})))}update(e){var t;(null===(t=this._options)||void 0===t?void 0:t.persistLastActionId)&&this._storageService.store(this._storageKey,e.id,1,1),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(K,e,{keybinding:this._getDefaultActionKeybindingLabel(e)}),this._defaultAction.actionRunner=new class extends a.LN{async runAction(e,t){await e.run(void 0)}},this._container&&this._defaultAction.render((0,n.Hs)(this._container,(0,n.$)(".action-container")))}_getDefaultActionKeybindingLabel(e){var t;let i;if(null===(t=this._options)||void 0===t?void 0:t.renderKeybindingWithDefaultActionLabel){const t=this._keybindingService.lookupKeybinding(e.id);t&&(i=`(${t.getLabel()})`)}return i}setActionContext(e){super.setActionContext(e),this._defaultAction.setActionContext(e),this._dropdown.setActionContext(e)}render(e){this._container=e,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");const t=(0,n.$)(".action-container");this._defaultAction.render((0,n.BC)(this._container,t)),this._register((0,n.ko)(t,n.Bx.KEY_DOWN,(e=>{const t=new o.Z(e);t.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),t.stopPropagation())})));const i=(0,n.$)(".dropdown-action-container");this._dropdown.render((0,n.BC)(this._container,i)),this._register((0,n.ko)(i,n.Bx.KEY_DOWN,(e=>{var t;const i=new o.Z(e);i.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),null===(t=this._defaultAction.element)||void 0===t||t.focus(),i.stopPropagation())})))}focus(e){e?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(e){e?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};Q=V([z(2,M.b),z(3,A.Ot),z(4,I.Z),z(5,L.ez),z(6,N._Y),z(7,T.CS)],Q);let Z=class extends s.XF{constructor(e,t){super(null,e,e.actions.map((e=>({text:e.id===a.wv.ID?"─────────":e.label,isDisabled:!e.enabled}))),0,t,W.RE,{ariaLabel:e.tooltip,optionsAsChildren:!0}),this.select(Math.max(0,e.actions.findIndex((e=>e.checked))))}render(e){super.render(e),e.style.borderColor=(0,B.GuP)(B.HcB)}runAction(e,t){const i=this.action.actions[t];i&&this.actionRunner.run(i)}};function Y(e,t,i){return t instanceof L.Xe?e.createInstance(K,t,i):t instanceof L.nI?t.item.isSelection?e.createInstance(Z,t):t.item.rememberDefaultAction?e.createInstance(Q,t,{...i,persistLastActionId:!0}):e.createInstance(G,t,i):void 0}Z=V([z(1,I.l)],Z)},534:(e,t,i)=>{"use strict";i.d(t,{m:()=>$,p:()=>U});var n=i(14333),o=i(9715),s=i(77439),r=i(53568),a=i(27969),l=i(26048),d=i(58881),c=i(2106),h=i(10998),u=i(85072),g=i.n(u),p=i(97825),m=i.n(p),f=i(77659),v=i.n(f),_=i(55056),b=i.n(_),w=i(10540),y=i.n(w),C=i(41113),k=i.n(C),S=i(87982),x={};x.styleTagTransform=k(),x.setAttributes=b(),x.insert=v().bind(null,"head"),x.domAPI=m(),x.insertStyleElement=y(),g()(S.A,x),S.A&&S.A.locals&&S.A.locals;var L=i(3765),D=i(65568);class E extends h.jG{constructor(e,t,i={orientation:0}){var n;super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new c._B),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=this._register(new h.Cm),i.hoverDelegate=null!==(n=i.hoverDelegate)&&void 0!==n?n:this._register((0,D.bW)()),this.options=i,this.toggleMenuAction=this._register(new I((()=>{var e;return null===(e=this.toggleMenuActionViewItem)||void 0===e?void 0:e.show()}),i.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new s.E(this.element,{orientation:i.orientation,ariaLabel:i.ariaLabel,actionRunner:i.actionRunner,allowContextMenu:i.allowContextMenu,highlightToggledItems:i.highlightToggledItems,hoverDelegate:i.hoverDelegate,actionViewItemProvider:(e,n)=>{var o;if(e.id===I.ID)return this.toggleMenuActionViewItem=new r.d(e,e.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:d.L.asClassNameArray(null!==(o=i.moreIcon)&&void 0!==o?o:l.W.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,isMenu:!0,hoverDelegate:this.options.hoverDelegate}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(i.actionViewItemProvider){const t=i.actionViewItemProvider(e,n);if(t)return t}if(e instanceof a.YH){const i=new r.d(e,e.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:e.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,hoverDelegate:this.options.hoverDelegate});return i.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(i),this.disposables.add(this._onDidChangeDropdownVisibility.add(i.onDidChangeVisibility)),i}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}setActions(e,t){this.clear();const i=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),i.push(this.toggleMenuAction)),i.forEach((e=>{var t,i;this.actionBar.push(e,{icon:null===(t=this.options.icon)||void 0===t||t,label:null!==(i=this.options.label)&&void 0!==i&&i,keybinding:this.getKeybindingLabel(e)})}))}getKeybindingLabel(e){var t,i,n;const o=null===(i=(t=this.options).getKeyBinding)||void 0===i?void 0:i.call(t,e);return null!==(n=null==o?void 0:o.getLabel())&&void 0!==n?n:void 0}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),this.disposables.dispose(),super.dispose()}}class I extends a.rc{constructor(e,t){t=t||L.k("moreActions","More Actions..."),super(I.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}async run(){this.toggleDropdownMenu()}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}}I.ID="toolbar.toggle.more";var N=i(13338),M=i(88436),A=i(94327),T=i(17954),R=i(22751),P=i(58067),O=i(73810),F=i(59715),B=i(31540),W=i(52348),H=i(56071),V=i(76243),z=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},j=function(e,t){return function(i,n){t(i,n,e)}};let U=class extends E{constructor(e,t,i,n,o,s,r,a){super(e,o,{getKeyBinding:e=>{var t;return null!==(t=s.lookupKeybinding(e.id))&&void 0!==t?t:void 0},...t,allowContextMenu:!0,skipTelemetry:"string"==typeof(null==t?void 0:t.telemetrySource)}),this._options=t,this._menuService=i,this._contextKeyService=n,this._contextMenuService=o,this._keybindingService=s,this._commandService=r,this._sessionDisposables=this._store.add(new h.Cm);const l=null==t?void 0:t.telemetrySource;l&&this._store.add(this.actionBar.onDidRun((e=>a.publicLog2("workbenchActionExecuted",{id:e.action.id,from:l}))))}setActions(e,t=[],i){var s,r,l;this._sessionDisposables.clear();const d=e.slice(),c=t.slice(),h=[];let u=0;const g=[];let p=!1;if(-1!==(null===(s=this._options)||void 0===s?void 0:s.hiddenItemStrategy))for(let e=0;enull==e?void 0:e.id))),t=this._options.overflowBehavior.maxItems-e.size;let i=0;for(let n=0;n=t&&(d[n]=void 0,g[n]=o))}}(0,N.SK)(d),(0,N.SK)(g),super.setActions(d,a.wv.join(g,c)),(h.length>0||d.length>0)&&this._sessionDisposables.add((0,n.ko)(this.getElement(),"contextmenu",(e=>{var t,s,r,l,d;const c=new o.P((0,n.zk)(this.getElement()),e),g=this.getItemAction(c.target);if(!g)return;c.preventDefault(),c.stopPropagation();const m=[];if(g instanceof P.Xe&&g.menuKeybinding)m.push(g.menuKeybinding);else if(!(g instanceof P.nI||g instanceof I)){const e=g.id.startsWith("statusbaraction");m.push((0,O.D)(this._commandService,this._keybindingService,g.id,void 0,!e))}if(h.length>0){let e=!1;if(1===u&&0===(null===(t=this._options)||void 0===t?void 0:t.hiddenItemStrategy)){e=!0;for(let e=0;ethis._menuService.resetHiddenStates(i)}))),0!==f.length&&this._contextMenuService.showContextMenu({getAnchor:()=>c,getActions:()=>f,menuId:null===(r=this._options)||void 0===r?void 0:r.contextMenu,menuActionOptions:{renderShortTitle:!0,...null===(l=this._options)||void 0===l?void 0:l.menuOptions},skipTelemetry:"string"==typeof(null===(d=this._options)||void 0===d?void 0:d.telemetrySource),contextKeyService:this._contextKeyService})})))}};U=z([j(2,P.ez),j(3,B.fN),j(4,W.Z),j(5,H.b),j(6,F.d),j(7,V.k)],U);let $=class extends U{constructor(e,t,i,n,o,s,r,a,l){super(e,{resetMenu:t,...i},n,o,s,r,a,l),this._onDidChangeMenuItems=this._store.add(new c.vl),this.onDidChangeMenuItems=this._onDidChangeMenuItems.event;const d=this._store.add(n.createMenu(t,o,{emitEventsForSubmenuChanges:!0})),h=()=>{var t,n,o;const s=[],r=[];(0,R.Ot)(d,null==i?void 0:i.menuOptions,{primary:s,secondary:r},null===(t=null==i?void 0:i.toolbarOptions)||void 0===t?void 0:t.primaryGroup,null===(n=null==i?void 0:i.toolbarOptions)||void 0===n?void 0:n.shouldInlineSubmenu,null===(o=null==i?void 0:i.toolbarOptions)||void 0===o?void 0:o.useSeparatorsInPrimaryActions),e.classList.toggle("has-no-actions",0===s.length&&0===r.length),super.setActions(s,r)};this._store.add(d.onDidChange((()=>{h(),this._onDidChangeMenuItems.fire(this)}))),h()}setActions(){throw new A.D7("This toolbar is populated from a menu.")}};$=z([j(3,P.ez),j(4,B.fN),j(5,W.Z),j(6,H.b),j(7,F.d),j(8,V.k)],$)},58067:(e,t,i)=>{"use strict";i.d(t,{D8:()=>f,L:()=>C,Xe:()=>y,ZG:()=>b,ez:()=>v,i1:()=>m,is:()=>p,nI:()=>w,ug:()=>k});var n,o=i(27969),s=i(58881),r=i(2106),a=i(10998),l=i(85525),d=i(59715),c=i(31540),h=i(82399),u=i(48421),g=function(e,t){return function(i,n){t(i,n,e)}};function p(e){return void 0!==e.command}function m(e){return void 0!==e.submenu}class f{constructor(e){if(f._instances.has(e))throw new TypeError(`MenuId with identifier '${e}' already exists. Use MenuId.for(ident) or a unique identifier`);f._instances.set(e,this),this.id=e}}f._instances=new Map,f.CommandPalette=new f("CommandPalette"),f.DebugBreakpointsContext=new f("DebugBreakpointsContext"),f.DebugCallStackContext=new f("DebugCallStackContext"),f.DebugConsoleContext=new f("DebugConsoleContext"),f.DebugVariablesContext=new f("DebugVariablesContext"),f.NotebookVariablesContext=new f("NotebookVariablesContext"),f.DebugHoverContext=new f("DebugHoverContext"),f.DebugWatchContext=new f("DebugWatchContext"),f.DebugToolBar=new f("DebugToolBar"),f.DebugToolBarStop=new f("DebugToolBarStop"),f.EditorContext=new f("EditorContext"),f.SimpleEditorContext=new f("SimpleEditorContext"),f.EditorContent=new f("EditorContent"),f.EditorLineNumberContext=new f("EditorLineNumberContext"),f.EditorContextCopy=new f("EditorContextCopy"),f.EditorContextPeek=new f("EditorContextPeek"),f.EditorContextShare=new f("EditorContextShare"),f.EditorTitle=new f("EditorTitle"),f.EditorTitleRun=new f("EditorTitleRun"),f.EditorTitleContext=new f("EditorTitleContext"),f.EditorTitleContextShare=new f("EditorTitleContextShare"),f.EmptyEditorGroup=new f("EmptyEditorGroup"),f.EmptyEditorGroupContext=new f("EmptyEditorGroupContext"),f.EditorTabsBarContext=new f("EditorTabsBarContext"),f.EditorTabsBarShowTabsSubmenu=new f("EditorTabsBarShowTabsSubmenu"),f.EditorTabsBarShowTabsZenModeSubmenu=new f("EditorTabsBarShowTabsZenModeSubmenu"),f.EditorActionsPositionSubmenu=new f("EditorActionsPositionSubmenu"),f.ExplorerContext=new f("ExplorerContext"),f.ExplorerContextShare=new f("ExplorerContextShare"),f.ExtensionContext=new f("ExtensionContext"),f.GlobalActivity=new f("GlobalActivity"),f.CommandCenter=new f("CommandCenter"),f.CommandCenterCenter=new f("CommandCenterCenter"),f.LayoutControlMenuSubmenu=new f("LayoutControlMenuSubmenu"),f.LayoutControlMenu=new f("LayoutControlMenu"),f.MenubarMainMenu=new f("MenubarMainMenu"),f.MenubarAppearanceMenu=new f("MenubarAppearanceMenu"),f.MenubarDebugMenu=new f("MenubarDebugMenu"),f.MenubarEditMenu=new f("MenubarEditMenu"),f.MenubarCopy=new f("MenubarCopy"),f.MenubarFileMenu=new f("MenubarFileMenu"),f.MenubarGoMenu=new f("MenubarGoMenu"),f.MenubarHelpMenu=new f("MenubarHelpMenu"),f.MenubarLayoutMenu=new f("MenubarLayoutMenu"),f.MenubarNewBreakpointMenu=new f("MenubarNewBreakpointMenu"),f.PanelAlignmentMenu=new f("PanelAlignmentMenu"),f.PanelPositionMenu=new f("PanelPositionMenu"),f.ActivityBarPositionMenu=new f("ActivityBarPositionMenu"),f.MenubarPreferencesMenu=new f("MenubarPreferencesMenu"),f.MenubarRecentMenu=new f("MenubarRecentMenu"),f.MenubarSelectionMenu=new f("MenubarSelectionMenu"),f.MenubarShare=new f("MenubarShare"),f.MenubarSwitchEditorMenu=new f("MenubarSwitchEditorMenu"),f.MenubarSwitchGroupMenu=new f("MenubarSwitchGroupMenu"),f.MenubarTerminalMenu=new f("MenubarTerminalMenu"),f.MenubarViewMenu=new f("MenubarViewMenu"),f.MenubarHomeMenu=new f("MenubarHomeMenu"),f.OpenEditorsContext=new f("OpenEditorsContext"),f.OpenEditorsContextShare=new f("OpenEditorsContextShare"),f.ProblemsPanelContext=new f("ProblemsPanelContext"),f.SCMInputBox=new f("SCMInputBox"),f.SCMChangesSeparator=new f("SCMChangesSeparator"),f.SCMIncomingChanges=new f("SCMIncomingChanges"),f.SCMIncomingChangesContext=new f("SCMIncomingChangesContext"),f.SCMIncomingChangesSetting=new f("SCMIncomingChangesSetting"),f.SCMOutgoingChanges=new f("SCMOutgoingChanges"),f.SCMOutgoingChangesContext=new f("SCMOutgoingChangesContext"),f.SCMOutgoingChangesSetting=new f("SCMOutgoingChangesSetting"),f.SCMIncomingChangesAllChangesContext=new f("SCMIncomingChangesAllChangesContext"),f.SCMIncomingChangesHistoryItemContext=new f("SCMIncomingChangesHistoryItemContext"),f.SCMOutgoingChangesAllChangesContext=new f("SCMOutgoingChangesAllChangesContext"),f.SCMOutgoingChangesHistoryItemContext=new f("SCMOutgoingChangesHistoryItemContext"),f.SCMChangeContext=new f("SCMChangeContext"),f.SCMResourceContext=new f("SCMResourceContext"),f.SCMResourceContextShare=new f("SCMResourceContextShare"),f.SCMResourceFolderContext=new f("SCMResourceFolderContext"),f.SCMResourceGroupContext=new f("SCMResourceGroupContext"),f.SCMSourceControl=new f("SCMSourceControl"),f.SCMSourceControlInline=new f("SCMSourceControlInline"),f.SCMSourceControlTitle=new f("SCMSourceControlTitle"),f.SCMTitle=new f("SCMTitle"),f.SearchContext=new f("SearchContext"),f.SearchActionMenu=new f("SearchActionContext"),f.StatusBarWindowIndicatorMenu=new f("StatusBarWindowIndicatorMenu"),f.StatusBarRemoteIndicatorMenu=new f("StatusBarRemoteIndicatorMenu"),f.StickyScrollContext=new f("StickyScrollContext"),f.TestItem=new f("TestItem"),f.TestItemGutter=new f("TestItemGutter"),f.TestMessageContext=new f("TestMessageContext"),f.TestMessageContent=new f("TestMessageContent"),f.TestPeekElement=new f("TestPeekElement"),f.TestPeekTitle=new f("TestPeekTitle"),f.TouchBarContext=new f("TouchBarContext"),f.TitleBarContext=new f("TitleBarContext"),f.TitleBarTitleContext=new f("TitleBarTitleContext"),f.TunnelContext=new f("TunnelContext"),f.TunnelPrivacy=new f("TunnelPrivacy"),f.TunnelProtocol=new f("TunnelProtocol"),f.TunnelPortInline=new f("TunnelInline"),f.TunnelTitle=new f("TunnelTitle"),f.TunnelLocalAddressInline=new f("TunnelLocalAddressInline"),f.TunnelOriginInline=new f("TunnelOriginInline"),f.ViewItemContext=new f("ViewItemContext"),f.ViewContainerTitle=new f("ViewContainerTitle"),f.ViewContainerTitleContext=new f("ViewContainerTitleContext"),f.ViewTitle=new f("ViewTitle"),f.ViewTitleContext=new f("ViewTitleContext"),f.CommentEditorActions=new f("CommentEditorActions"),f.CommentThreadTitle=new f("CommentThreadTitle"),f.CommentThreadActions=new f("CommentThreadActions"),f.CommentThreadAdditionalActions=new f("CommentThreadAdditionalActions"),f.CommentThreadTitleContext=new f("CommentThreadTitleContext"),f.CommentThreadCommentContext=new f("CommentThreadCommentContext"),f.CommentTitle=new f("CommentTitle"),f.CommentActions=new f("CommentActions"),f.CommentsViewThreadActions=new f("CommentsViewThreadActions"),f.InteractiveToolbar=new f("InteractiveToolbar"),f.InteractiveCellTitle=new f("InteractiveCellTitle"),f.InteractiveCellDelete=new f("InteractiveCellDelete"),f.InteractiveCellExecute=new f("InteractiveCellExecute"),f.InteractiveInputExecute=new f("InteractiveInputExecute"),f.InteractiveInputConfig=new f("InteractiveInputConfig"),f.ReplInputExecute=new f("ReplInputExecute"),f.IssueReporter=new f("IssueReporter"),f.NotebookToolbar=new f("NotebookToolbar"),f.NotebookStickyScrollContext=new f("NotebookStickyScrollContext"),f.NotebookCellTitle=new f("NotebookCellTitle"),f.NotebookCellDelete=new f("NotebookCellDelete"),f.NotebookCellInsert=new f("NotebookCellInsert"),f.NotebookCellBetween=new f("NotebookCellBetween"),f.NotebookCellListTop=new f("NotebookCellTop"),f.NotebookCellExecute=new f("NotebookCellExecute"),f.NotebookCellExecuteGoTo=new f("NotebookCellExecuteGoTo"),f.NotebookCellExecutePrimary=new f("NotebookCellExecutePrimary"),f.NotebookDiffCellInputTitle=new f("NotebookDiffCellInputTitle"),f.NotebookDiffCellMetadataTitle=new f("NotebookDiffCellMetadataTitle"),f.NotebookDiffCellOutputsTitle=new f("NotebookDiffCellOutputsTitle"),f.NotebookOutputToolbar=new f("NotebookOutputToolbar"),f.NotebookOutlineFilter=new f("NotebookOutlineFilter"),f.NotebookOutlineActionMenu=new f("NotebookOutlineActionMenu"),f.NotebookEditorLayoutConfigure=new f("NotebookEditorLayoutConfigure"),f.NotebookKernelSource=new f("NotebookKernelSource"),f.BulkEditTitle=new f("BulkEditTitle"),f.BulkEditContext=new f("BulkEditContext"),f.TimelineItemContext=new f("TimelineItemContext"),f.TimelineTitle=new f("TimelineTitle"),f.TimelineTitleContext=new f("TimelineTitleContext"),f.TimelineFilterSubMenu=new f("TimelineFilterSubMenu"),f.AccountsContext=new f("AccountsContext"),f.SidebarTitle=new f("SidebarTitle"),f.PanelTitle=new f("PanelTitle"),f.AuxiliaryBarTitle=new f("AuxiliaryBarTitle"),f.AuxiliaryBarHeader=new f("AuxiliaryBarHeader"),f.TerminalInstanceContext=new f("TerminalInstanceContext"),f.TerminalEditorInstanceContext=new f("TerminalEditorInstanceContext"),f.TerminalNewDropdownContext=new f("TerminalNewDropdownContext"),f.TerminalTabContext=new f("TerminalTabContext"),f.TerminalTabEmptyAreaContext=new f("TerminalTabEmptyAreaContext"),f.TerminalStickyScrollContext=new f("TerminalStickyScrollContext"),f.WebviewContext=new f("WebviewContext"),f.InlineCompletionsActions=new f("InlineCompletionsActions"),f.InlineEditsActions=new f("InlineEditsActions"),f.InlineEditActions=new f("InlineEditActions"),f.NewFile=new f("NewFile"),f.MergeInput1Toolbar=new f("MergeToolbar1Toolbar"),f.MergeInput2Toolbar=new f("MergeToolbar2Toolbar"),f.MergeBaseToolbar=new f("MergeBaseToolbar"),f.MergeInputResultToolbar=new f("MergeToolbarResultToolbar"),f.InlineSuggestionToolbar=new f("InlineSuggestionToolbar"),f.InlineEditToolbar=new f("InlineEditToolbar"),f.ChatContext=new f("ChatContext"),f.ChatCodeBlock=new f("ChatCodeblock"),f.ChatCompareBlock=new f("ChatCompareBlock"),f.ChatMessageTitle=new f("ChatMessageTitle"),f.ChatExecute=new f("ChatExecute"),f.ChatExecuteSecondary=new f("ChatExecuteSecondary"),f.ChatInputSide=new f("ChatInputSide"),f.AccessibleView=new f("AccessibleView"),f.MultiDiffEditorFileToolbar=new f("MultiDiffEditorFileToolbar"),f.DiffEditorHunkToolbar=new f("DiffEditorHunkToolbar"),f.DiffEditorSelectionToolbar=new f("DiffEditorSelectionToolbar");const v=(0,h.u1)("menuService");class _{static for(e){let t=this._all.get(e);return t||(t=new _(e),this._all.set(e,t)),t}static merge(e){const t=new Set;for(const i of e)i instanceof _&&t.add(i.id);return t}constructor(e){this.id=e,this.has=t=>t===e}}_._all=new Map;const b=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new r.QT({merge:_.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event}addCommand(e){return this._commands.set(e.id,e),this._onDidChangeMenu.fire(_.for(f.CommandPalette)),(0,a.s)((()=>{this._commands.delete(e.id)&&this._onDidChangeMenu.fire(_.for(f.CommandPalette))}))}getCommand(e){return this._commands.get(e)}getCommands(){const e=new Map;return this._commands.forEach(((t,i)=>e.set(i,t))),e}appendMenuItem(e,t){let i=this._menuItems.get(e);i||(i=new l.w,this._menuItems.set(e,i));const n=i.push(t);return this._onDidChangeMenu.fire(_.for(e)),(0,a.s)((()=>{n(),this._onDidChangeMenu.fire(_.for(e))}))}appendMenuItems(e){const t=new a.Cm;for(const{id:i,item:n}of e)t.add(this.appendMenuItem(i,n));return t}getMenuItems(e){let t;return t=this._menuItems.has(e)?[...this._menuItems.get(e)]:[],e===f.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(e){const t=new Set;for(const i of e)p(i)&&(t.add(i.command.id),i.alt&&t.add(i.alt.id));this._commands.forEach(((i,n)=>{t.has(n)||e.push({command:i})}))}};class w extends o.YH{constructor(e,t,i){super(`submenuitem.${e.submenu.id}`,"string"==typeof e.title?e.title:e.title.value,i,"submenu"),this.item=e,this.hideActions=t}}let y=n=class{static label(e,t){return(null==t?void 0:t.renderShortTitle)&&e.shortTitle?"string"==typeof e.shortTitle?e.shortTitle:e.shortTitle.value:"string"==typeof e.title?e.title:e.title.value}constructor(e,t,i,o,r,a,l){var d,c;let h;if(this.hideActions=o,this.menuKeybinding=r,this._commandService=l,this.id=e.id,this.label=n.label(e,i),this.tooltip=null!==(c="string"==typeof e.tooltip?e.tooltip:null===(d=e.tooltip)||void 0===d?void 0:d.value)&&void 0!==c?c:"",this.enabled=!e.precondition||a.contextMatchesRules(e.precondition),this.checked=void 0,e.toggled){const t=e.toggled.condition?e.toggled:{condition:e.toggled};this.checked=a.contextMatchesRules(t.condition),this.checked&&t.tooltip&&(this.tooltip="string"==typeof t.tooltip?t.tooltip:t.tooltip.value),this.checked&&s.L.isThemeIcon(t.icon)&&(h=t.icon),this.checked&&t.title&&(this.label="string"==typeof t.title?t.title:t.title.value)}h||(h=s.L.isThemeIcon(e.icon)?e.icon:void 0),this.item=e,this.alt=t?new n(t,void 0,i,o,void 0,a,l):void 0,this._options=i,this.class=h&&s.L.asClassName(h)}run(...e){var t,i;let n=[];return(null===(t=this._options)||void 0===t?void 0:t.arg)&&(n=[...n,this._options.arg]),(null===(i=this._options)||void 0===i?void 0:i.shouldForwardArgs)&&(n=[...n,...e]),this._commandService.executeCommand(this.id,...n)}};y=n=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([g(5,c.fN),g(6,d.d)],y);class C{constructor(e){this.desc=e}}function k(e){const t=[],i=new e,{f1:n,menu:o,keybinding:s,...r}=i.desc;if(d.w.getCommand(r.id))throw new Error(`Cannot register two commands with the same id: ${r.id}`);if(t.push(d.w.registerCommand({id:r.id,handler:(e,...t)=>i.run(e,...t),metadata:r.metadata})),Array.isArray(o))for(const e of o)t.push(b.appendMenuItem(e.id,{command:{...r,precondition:null===e.precondition?void 0:r.precondition},...e}));else o&&t.push(b.appendMenuItem(o.id,{command:{...r,precondition:null===o.precondition?void 0:r.precondition},...o}));if(n&&(t.push(b.appendMenuItem(f.CommandPalette,{command:r,when:r.precondition})),t.push(b.addCommand(r))),Array.isArray(s))for(const e of s)t.push(u.f.registerKeybindingRule({...e,id:r.id,when:r.precondition?c.M$.and(r.precondition,e.when):e.when}));else s&&t.push(u.f.registerKeybindingRule({...s,id:r.id,when:r.precondition?c.M$.and(r.precondition,s.when):s.when}));return{dispose(){(0,a.AS)(t)}}}},73810:(e,t,i)=>{"use strict";i.d(t,{$:()=>_,D:()=>k});var n,o,s=i(65958),r=i(2106),a=i(10998),l=i(58067),d=i(59715),c=i(31540),h=i(27969),u=i(90840),g=i(13338),p=i(3765),m=i(56071),f=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},v=function(e,t){return function(i,n){t(i,n,e)}};let _=class{constructor(e,t,i){this._commandService=e,this._keybindingService=t,this._hiddenStates=new b(i)}createMenu(e,t,i){return new y(e,this._hiddenStates,{emitEventsForSubmenuChanges:!1,eventDebounceDelay:50,...i},this._commandService,this._keybindingService,t)}resetHiddenStates(e){this._hiddenStates.reset(e)}};_=f([v(0,d.d),v(1,m.b),v(2,u.CS)],_);let b=n=class{constructor(e){this._storageService=e,this._disposables=new a.Cm,this._onDidChange=new r.vl,this.onDidChange=this._onDidChange.event,this._ignoreChangeEvent=!1,this._hiddenByDefaultCache=new Map;try{const t=e.get(n._key,0,"{}");this._data=JSON.parse(t)}catch(e){this._data=Object.create(null)}this._disposables.add(e.onDidChangeValue(0,n._key,this._disposables)((()=>{if(!this._ignoreChangeEvent)try{const t=e.get(n._key,0,"{}");this._data=JSON.parse(t)}catch(e){console.log("FAILED to read storage after UPDATE",e)}this._onDidChange.fire()})))}dispose(){this._onDidChange.dispose(),this._disposables.dispose()}_isHiddenByDefault(e,t){var i;return null!==(i=this._hiddenByDefaultCache.get(`${e.id}/${t}`))&&void 0!==i&&i}setDefaultState(e,t,i){this._hiddenByDefaultCache.set(`${e.id}/${t}`,i)}isHidden(e,t){var i,n;const o=this._isHiddenByDefault(e,t),s=null!==(n=null===(i=this._data[e.id])||void 0===i?void 0:i.includes(t))&&void 0!==n&&n;return o?!s:s}updateHidden(e,t,i){this._isHiddenByDefault(e,t)&&(i=!i);const n=this._data[e.id];if(i)n?n.indexOf(t)<0&&n.push(t):this._data[e.id]=[t];else if(n){const i=n.indexOf(t);i>=0&&(0,g.UH)(n,i),0===n.length&&delete this._data[e.id]}this._persist()}reset(e){if(void 0===e)this._data=Object.create(null),this._persist();else{for(const{id:t}of e)this._data[t]&&delete this._data[t];this._persist()}}_persist(){try{this._ignoreChangeEvent=!0;const e=JSON.stringify(this._data);this._storageService.store(n._key,e,0,0)}finally{this._ignoreChangeEvent=!1}}};b._key="menu.hiddenCommands",b=n=f([v(0,u.CS)],b);let w=o=class{constructor(e,t,i,n,o,s){this._id=e,this._hiddenStates=t,this._collectContextKeysForSubmenus=i,this._commandService=n,this._keybindingService=o,this._contextKeyService=s,this._menuGroups=[],this._structureContextKeys=new Set,this._preconditionContextKeys=new Set,this._toggledContextKeys=new Set,this.refresh()}get structureContextKeys(){return this._structureContextKeys}get preconditionContextKeys(){return this._preconditionContextKeys}get toggledContextKeys(){return this._toggledContextKeys}refresh(){this._menuGroups.length=0,this._structureContextKeys.clear(),this._preconditionContextKeys.clear(),this._toggledContextKeys.clear();const e=l.ZG.getMenuItems(this._id);let t;e.sort(o._compareMenuItems);for(const i of e){const e=i.group||"";t&&t[0]===e||(t=[e,[]],this._menuGroups.push(t)),t[1].push(i),this._collectContextKeys(i)}}_collectContextKeys(e){if(o._fillInKbExprKeys(e.when,this._structureContextKeys),(0,l.is)(e)){if(e.command.precondition&&o._fillInKbExprKeys(e.command.precondition,this._preconditionContextKeys),e.command.toggled){const t=e.command.toggled.condition||e.command.toggled;o._fillInKbExprKeys(t,this._toggledContextKeys)}}else this._collectContextKeysForSubmenus&&l.ZG.getMenuItems(e.submenu).forEach(this._collectContextKeys,this)}createActionGroups(e){const t=[];for(const i of this._menuGroups){const[n,s]=i;let r;for(const t of s)if(this._contextKeyService.contextMatchesRules(t.when)){const i=(0,l.is)(t);i&&this._hiddenStates.setDefaultState(this._id,t.command.id,!!t.isHiddenByDefault);const n=C(this._id,i?t.command:t,this._hiddenStates);if(i){const i=k(this._commandService,this._keybindingService,t.command.id,t.when);(null!=r?r:r=[]).push(new l.Xe(t.command,t.alt,e,n,i,this._contextKeyService,this._commandService))}else{const i=new o(t.submenu,this._hiddenStates,this._collectContextKeysForSubmenus,this._commandService,this._keybindingService,this._contextKeyService).createActionGroups(e),s=h.wv.join(...i.map((e=>e[1])));s.length>0&&(null!=r?r:r=[]).push(new l.nI(t,n,s))}}r&&r.length>0&&t.push([n,r])}return t}static _fillInKbExprKeys(e,t){if(e)for(const i of e.keys())t.add(i)}static _compareMenuItems(e,t){const i=e.group,n=t.group;if(i!==n){if(!i)return 1;if(!n)return-1;if("navigation"===i)return-1;if("navigation"===n)return 1;const e=i.localeCompare(n);if(0!==e)return e}const s=e.order||0,r=t.order||0;return sr?1:o._compareTitles((0,l.is)(e)?e.command.title:e.title,(0,l.is)(t)?t.command.title:t.title)}static _compareTitles(e,t){const i="string"==typeof e?e:e.original,n="string"==typeof t?t:t.original;return i.localeCompare(n)}};w=o=f([v(3,d.d),v(4,m.b),v(5,c.fN)],w);let y=class{constructor(e,t,i,n,o,d){this._disposables=new a.Cm,this._menuInfo=new w(e,t,i.emitEventsForSubmenuChanges,n,o,d);const c=new s.uC((()=>{this._menuInfo.refresh(),this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!0,isToggleChange:!0})}),i.eventDebounceDelay);this._disposables.add(c),this._disposables.add(l.ZG.onDidChangeMenu((t=>{t.has(e)&&c.schedule()})));const h=this._disposables.add(new a.Cm);this._onDidChange=new r.uI({onWillAddFirstListener:()=>{h.add(d.onDidChangeContext((e=>{const t=e.affectsSome(this._menuInfo.structureContextKeys),i=e.affectsSome(this._menuInfo.preconditionContextKeys),n=e.affectsSome(this._menuInfo.toggledContextKeys);(t||i||n)&&this._onDidChange.fire({menu:this,isStructuralChange:t,isEnablementChange:i,isToggleChange:n})}))),h.add(t.onDidChange((e=>{this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!1,isToggleChange:!1})})))},onDidRemoveLastListener:h.clear.bind(h),delay:i.eventDebounceDelay,merge:e=>{let t=!1,i=!1,n=!1;for(const o of e)if(t=t||o.isStructuralChange,i=i||o.isEnablementChange,n=n||o.isToggleChange,t&&i&&n)break;return{menu:this,isStructuralChange:t,isEnablementChange:i,isToggleChange:n}}}),this.onDidChange=this._onDidChange.event}getActions(e){return this._menuInfo.createActionGroups(e)}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}};function C(e,t,i){const n=(0,l.i1)(t)?t.submenu.id:t.id,o="string"==typeof t.title?t.title:t.title.value,s=(0,h.ih)({id:`hide/${e.id}/${n}`,label:(0,p.k)("hide.label","Hide '{0}'",o),run(){i.updateHidden(e,n,!0)}}),r=(0,h.ih)({id:`toggle/${e.id}/${n}`,label:o,get checked(){return!i.isHidden(e,n)},run(){i.updateHidden(e,n,!!this.checked)}});return{hide:s,toggle:r,get isHidden(){return!r.checked}}}function k(e,t,i,n=void 0,o=!0){return(0,h.ih)({id:`configureKeybinding/${i}`,label:(0,p.k)("configure keybinding","Configure Keybinding"),enabled:o,run(){const o=!t.lookupKeybinding(i)&&n?n.serialize():void 0;e.executeCommand("workbench.action.openGlobalKeybindings",`@command:${i}`+(o?` +when:${o}`:""))}})}y=f([v(3,d.d),v(4,m.b),v(5,c.fN)],y)},3338:(e,t,i)=>{"use strict";i.d(t,{h:()=>n});const n=(0,i(82399).u1)("clipboardService")},59715:(e,t,i)=>{"use strict";i.d(t,{d:()=>l,w:()=>d});var n=i(2106),o=i(17954),s=i(10998),r=i(85525),a=i(79359);const l=(0,i(82399).u1)("commandService"),d=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new n.vl,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,t){if(!e)throw new Error("invalid command");if("string"==typeof e){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.metadata&&Array.isArray(e.metadata.args)){const t=[];for(const i of e.metadata.args)t.push(i.constraint);const i=e.handler;e.handler=function(e,...n){return(0,a.jx)(n,t),i(e,...n)}}const{id:i}=e;let n=this._commands.get(i);n||(n=new r.w,this._commands.set(i,n));const o=n.unshift(e),l=(0,s.s)((()=>{o();const e=this._commands.get(i);(null==e?void 0:e.isEmpty())&&this._commands.delete(i)}));return this._onDidRegisterCommand.fire(i),l}registerCommandAlias(e,t){return d.registerCommand(e,((e,...i)=>e.get(l).executeCommand(t,...i)))}getCommand(e){const t=this._commands.get(e);if(t&&!t.isEmpty())return o.f.first(t)}getCommands(){const e=new Map;for(const t of this._commands.keys()){const i=this.getCommand(t);i&&e.set(t,i)}return e}};d.registerCommand("noop",(()=>{}))},85753:(e,t,i)=>{"use strict";i.d(t,{Mo:()=>d,ad:()=>o,gD:()=>l,iB:()=>r,kW:()=>s,pG:()=>n});const n=(0,i(82399).u1)("configurationService");function o(e,t){const i=Object.create(null);for(const n in e)s(i,n,e[n],t);return i}function s(e,t,i,n){const o=t.split("."),s=o.pop();let r=e;for(let e=0;e{"use strict";i.d(t,{Fd:()=>c,Gv:()=>k,rC:()=>C});var n=i(13338),o=i(2106),s=i(79359),r=i(3765),a=i(85753),l=i(51460),d=i(67167);const c={Configuration:"base.contributions.configuration"},h={properties:{},patternProperties:{}},u={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},v="vscode://schemas/settings/resourceLanguage",_=d.O.as(l.F.JSONContribution),b="\\[([^\\]]+)\\]",w=new RegExp(b,"g"),y=`^(${b})+$`,C=new RegExp(y);function k(e){const t=[];if(C.test(e)){let i=w.exec(e);for(;null==i?void 0:i.length;){const n=i[1].trim();n&&t.push(n),i=w.exec(e)}}return(0,n.dM)(t)}const S=new class{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new o.vl,this._onDidUpdateConfiguration=new o.vl,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:r.k("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},_.registerSchema(v,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const i=new Set;this.doRegisterConfigurations(e,t,i),_.registerSchema(v,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){var i,n,o,l;const d=[];for(const{overrides:c,source:h}of e)for(const e in c)if(t.add(e),C.test(e)){const t=this.configurationDefaultsOverrides.get(e),o=null!==(i=null==t?void 0:t.valuesSources)&&void 0!==i?i:new Map,l=(null==t?void 0:t.value)||{};for(const t of Object.keys(c[e])){const i=c[e][t];if(s.Gv(i)&&(s.b0(l[t])||s.Gv(l[t]))){if(l[t]={...null!==(n=l[t])&&void 0!==n?n:{},...i},h){let e=o.get(t);if(e||(e=new Map,o.set(t,e)),!(e instanceof Map)){console.error("objectConfigurationSources is not a Map");continue}for(const t in i)e.set(t,h)}}else l[t]=i,h&&o.set(t,h)}this.configurationDefaultsOverrides.set(e,{source:h,value:l,valuesSources:o});const u=(0,a.Mo)(e),g={type:"object",default:l,description:r.k("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",u),$ref:v,defaultDefaultValue:l,source:s.Kg(h)?void 0:h,defaultValueSource:h};d.push(...k(e)),this.configurationProperties[e]=g,this.defaultLanguageConfigurationOverridesNode.properties[e]=g}else{const t=this.configurationProperties[e],i=this.configurationDefaultsOverrides.get(e);let n=null!==(o=null==i?void 0:i.value)&&void 0!==o?o:null==t?void 0:t.defaultDefaultValue,r=c[e],a=h;if(s.Gv(r)&&(void 0!==t&&"object"===t.type||void 0===t&&(s.b0(n)||s.Gv(n)))){if(s.Gv(n)||(n={}),r={...n,...r},a=null!==(l=null==i?void 0:i.source)&&void 0!==l?l:new Map,!(a instanceof Map)){console.error("defaultValueSource is not a Map");continue}for(const t in c[e])h?a.set(t,h):a.delete(t)}this.configurationDefaultsOverrides.set(e,{value:r,source:a}),t&&(this.updatePropertyDefaultValue(e,t),this.updateSchema(e,t))}this.doRegisterOverrideIdentifiers(d)}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,i){e.forEach((e=>{this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties,void 0,i),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}))}validateAndRegisterProperties(e,t=!0,i,n,o=3,r){var a;o=s.z(e.scope)?o:e.scope;const l=e.properties;if(l)for(const e in l){const d=l[e];t&&x(e,d)?delete l[e]:(d.source=i,d.defaultDefaultValue=l[e].default,this.updatePropertyDefaultValue(e,d),C.test(e)?d.scope=void 0:(d.scope=s.z(d.scope)?o:d.scope,d.restricted=s.z(d.restricted)?!!(null==n?void 0:n.includes(e)):d.restricted),!l[e].hasOwnProperty("included")||l[e].included?(this.configurationProperties[e]=l[e],(null===(a=l[e].policy)||void 0===a?void 0:a.name)&&this.policyConfigurations.set(l[e].policy.name,e),!l[e].deprecationMessage&&l[e].markdownDeprecationMessage&&(l[e].deprecationMessage=l[e].markdownDeprecationMessage),r.add(e)):(this.excludedConfigurationProperties[e]=l[e],delete l[e]))}const d=e.allOf;if(d)for(const e of d)this.validateAndRegisterProperties(e,t,i,n,o,r)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=e=>{const i=e.properties;if(i)for(const e in i)this.updateSchema(e,i[e]);const n=e.allOf;null==n||n.forEach(t)};t(e)}updateSchema(e,t){switch(h.properties[e]=t,t.scope){case 1:u.properties[e]=t;break;case 2:g.properties[e]=t;break;case 6:p.properties[e]=t;break;case 3:m.properties[e]=t;break;case 4:f.properties[e]=t;break;case 5:f.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,i={type:"object",description:r.k("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:r.k("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:v};this.updatePropertyDefaultValue(t,i),h.properties[t]=i,u.properties[t]=i,g.properties[t]=i,p.properties[t]=i,m.properties[t]=i,f.properties[t]=i}}registerOverridePropertyPatternKey(){const e={type:"object",description:r.k("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:r.k("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:v};h.patternProperties[y]=e,u.patternProperties[y]=e,g.patternProperties[y]=e,p.patternProperties[y]=e,m.patternProperties[y]=e,f.patternProperties[y]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const i=this.configurationDefaultsOverrides.get(e);let n=null==i?void 0:i.value,o=null==i?void 0:i.source;s.b0(n)&&(n=t.defaultDefaultValue,o=void 0),s.b0(n)&&(n=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=n,t.defaultValueSource=o}};function x(e,t){var i,n,o,s;return e.trim()?C.test(e)?r.k("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==S.getConfigurationProperties()[e]?r.k("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):(null===(i=t.policy)||void 0===i?void 0:i.name)&&void 0!==S.getPolicyConfigurations().get(null===(n=t.policy)||void 0===n?void 0:n.name)?r.k("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,null===(o=t.policy)||void 0===o?void 0:o.name,S.getPolicyConfigurations().get(null===(s=t.policy)||void 0===s?void 0:s.name)):null:r.k("config.property.empty","Cannot register an empty property")}d.O.add(c.Configuration,S)},31540:(e,t,i)=>{"use strict";i.d(t,{f1:()=>N,M$:()=>S,fN:()=>K,N1:()=>$,jQ:()=>x,M0:()=>Q});var n=i(63339),o=i(16844),s=i(94327),r=i(3765);function a(...e){switch(e.length){case 1:return(0,r.k)("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",e[0]);case 2:return(0,r.k)("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",e[0],e[1]);case 3:return(0,r.k)("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",e[0],e[1],e[2]);default:return}}const l=(0,r.k)("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),d=(0,r.k)("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class c{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:case 8:return">=";case 9:return"=~";case 10:case 17:case 18:case 19:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 20:return"EOF";default:throw(0,s.iH)(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(a("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(a("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(a("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return!this._isAtEnd()&&this._input.charCodeAt(this._current)===e&&(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,i=this._input.substring(this._start,this._current),n={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(n)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),i=c._keywords.get(t);i?this._addToken(i):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;39!==this._peek()&&!this._isAtEnd();)this._advance();this._isAtEnd()?this._error(l):(this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1}))}_regex(){let e=this._current,t=!1,i=!1;for(;;){if(e>=this._input.length)return this._current=e,void this._error(d);const n=this._input.charCodeAt(e);if(t)t=!1;else{if(47===n&&!i){e++;break}91===n?i=!0:92===n?t=!0:93===n&&(i=!1)}e++}for(;e=this._input.length}}c._regexFlags=new Set(["i","g","s","m","y","u"].map((e=>e.charCodeAt(0)))),c._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);var h=i(82399);const u=new Map;u.set("false",!1),u.set("true",!0),u.set("isMac",n.zx),u.set("isLinux",n.j9),u.set("isWindows",n.uF),u.set("isWeb",n.HZ),u.set("isMacNative",n.zx&&!n.HZ),u.set("isEdge",n.UP),u.set("isFirefox",n.gm),u.set("isChrome",n.H8),u.set("isSafari",n.nr);const g=Object.prototype.hasOwnProperty,p={regexParsingWithErrorRecovery:!0},m=(0,r.k)("contextkey.parser.error.emptyString","Empty context key expression"),f=(0,r.k)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),v=(0,r.k)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),_=(0,r.k)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),b=(0,r.k)("contextkey.parser.error.unexpectedToken","Unexpected token"),w=(0,r.k)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),y=(0,r.k)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),C=(0,r.k)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class k{constructor(e=p){this._config=e,this._scanner=new c,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(""!==e){this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const e=this._expr();if(!this._isAtEnd()){const e=this._peek(),t=17===e.type?w:void 0;throw this._parsingErrors.push({message:b,offset:e.offset,lexeme:c.getLexeme(e),additionalInfo:t}),k._parseError}return e}catch(e){if(e!==k._parseError)throw e;return}}else this._parsingErrors.push({message:m,offset:0,lexeme:"",additionalInfo:f})}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return 1===e.length?e[0]:S.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return 1===e.length?e[0]:S.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),D.INSTANCE;case 12:return this._advance(),E.INSTANCE;case 0:{this._advance();const e=this._expr();return this._consume(1,_),null==e?void 0:e.negate()}case 17:return this._advance(),R.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),S.true();case 12:return this._advance(),S.false();case 0:{this._advance();const e=this._expr();return this._consume(1,_),e}case 17:{const t=e.lexeme;if(this._advance(),this._matchOne(9)){const e=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),10!==e.type)throw this._errExpectedButGot("REGEX",e);const i=e.lexeme,n=i.lastIndexOf("/"),o=n===i.length-1?void 0:this._removeFlagsGY(i.substring(n+1));let s;try{s=new RegExp(i.substring(1,n),o)}catch(t){throw this._errExpectedButGot("REGEX",e)}return H.create(t,s)}switch(e.type){case 10:case 19:{const i=[e.lexeme];this._advance();let n=this._peek(),o=0;for(let t=0;t=0){const s=i.slice(t+1,o),r="i"===i[o+1]?"i":"";try{n=new RegExp(s,r)}catch(t){throw this._errExpectedButGot("REGEX",e)}}}if(null===n)throw this._errExpectedButGot("REGEX",e);return H.create(t,n)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,v);const e=this._value();return S.notIn(t,e)}switch(this._peek().type){case 3:{this._advance();const e=this._value();if(18===this._previous().type)return S.equals(t,e);switch(e){case"true":return S.has(t);case"false":return S.not(t);default:return S.equals(t,e)}}case 4:{this._advance();const e=this._value();if(18===this._previous().type)return S.notEquals(t,e);switch(e){case"true":return S.not(t);case"false":return S.has(t);default:return S.notEquals(t,e)}}case 5:return this._advance(),B.create(t,this._value());case 6:return this._advance(),W.create(t,this._value());case 7:return this._advance(),O.create(t,this._value());case 8:return this._advance(),F.create(t,this._value());case 13:return this._advance(),S.in(t,this._value());default:return S.has(t)}}case 20:throw this._parsingErrors.push({message:y,offset:e.offset,lexeme:"",additionalInfo:C}),k._parseError;default:throw this._errExpectedButGot("true | false | KEY \n\t| KEY '=~' REGEX \n\t| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value",this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return!!this._check(e)&&(this._advance(),!0)}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,i){const n=(0,r.k)("contextkey.parser.error.expectedButGot","Expected: {0}\nReceived: '{1}'.",e,c.getLexeme(t)),o=t.offset,s=c.getLexeme(t);return this._parsingErrors.push({message:n,offset:o,lexeme:s,additionalInfo:i}),k._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return 20===this._peek().type}}k._parseError=new Error;class S{static false(){return D.INSTANCE}static true(){return E.INSTANCE}static has(e){return I.create(e)}static equals(e,t){return N.create(e,t)}static notEquals(e,t){return T.create(e,t)}static regex(e,t){return H.create(e,t)}static in(e,t){return M.create(e,t)}static notIn(e,t){return A.create(e,t)}static not(e){return R.create(e)}static and(...e){return j.create(e,null,!0)}static or(...e){return U.create(e,null,!0)}static deserialize(e){if(null!=e)return this._parser.parse(e)}}function x(e,t){const i=e?e.substituteConstants():void 0,n=t?t.substituteConstants():void 0;return!i&&!n||!(!i||!n)&&i.equals(n)}function L(e,t){return e.cmp(t)}S._parser=new k({regexParsingWithErrorRecovery:!1});class D{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return E.INSTANCE}}D.INSTANCE=new D;class E{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return D.INSTANCE}}E.INSTANCE=new E;class I{static create(e,t=null){const i=u.get(e);return"boolean"==typeof i?i?E.INSTANCE:D.INSTANCE:new I(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=u.get(this.key);return"boolean"==typeof e?e?E.INSTANCE:D.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=R.create(this.key,this)),this.negated}}class N{static create(e,t,i=null){if("boolean"==typeof t)return t?I.create(e,i):R.create(e,i);const n=u.get(e);return"boolean"==typeof n?t===(n?"true":"false")?E.INSTANCE:D.INSTANCE:new N(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){const e=u.get(this.key);if("boolean"==typeof e){const t=e?"true":"false";return this.value===t?E.INSTANCE:D.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=T.create(this.key,this.value,this)),this.negated}}class M{static create(e,t){return new M(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&this.key===e.key&&this.valueKey===e.valueKey}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),i=e.getValue(this.key);return Array.isArray(t)?t.includes(i):"string"==typeof i&&"object"==typeof t&&null!==t&&g.call(t,i)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=A.create(this.key,this.valueKey)),this.negated}}class A{static create(e,t){return new A(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=M.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type&&this._negated.equals(e._negated)}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class T{static create(e,t,i=null){if("boolean"==typeof t)return t?R.create(e,i):I.create(e,i);const n=u.get(e);return"boolean"==typeof n?t===(n?"true":"false")?D.INSTANCE:E.INSTANCE:new T(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){const e=u.get(this.key);if("boolean"==typeof e){const t=e?"true":"false";return this.value===t?D.INSTANCE:E.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=N.create(this.key,this.value,this)),this.negated}}class R{static create(e,t=null){const i=u.get(e);return"boolean"==typeof i?i?D.INSTANCE:E.INSTANCE:new R(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:q(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}substituteConstants(){const e=u.get(this.key);return"boolean"==typeof e?e?D.INSTANCE:E.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=I.create(this.key,this)),this.negated}}function P(e,t){if("string"==typeof e){const t=parseFloat(e);isNaN(t)||(e=t)}return"string"==typeof e||"number"==typeof e?t(e):D.INSTANCE}class O{static create(e,t,i=null){return P(t,(t=>new O(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=W.create(this.key,this.value,this)),this.negated}}class F{static create(e,t,i=null){return P(t,(t=>new F(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B.create(this.key,this.value,this)),this.negated}}class B{static create(e,t,i=null){return P(t,(t=>new B(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))new W(e,t,i)))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:G(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}substituteConstants(){return this}evaluate(e){return"string"!=typeof this.value&&parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=O.create(this.key,this.value,this)),this.negated}}class H{static create(e,t){return new H(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.keye.key)return 1;const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return ti?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return this.key===e.key&&t===i}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=V.create(this)),this.negated}}class V{static create(e){return new V(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function z(e){let t=null;for(let i=0,n=e.length;ie.expr.length)return 1;for(let t=0,i=this.expr.length;t1;){const e=n[n.length-1];if(9!==e.type)break;n.pop();const t=n.pop(),o=0===n.length,s=U.create(e.expr.map((e=>j.create([e,t],null,i))),null,o);s&&(n.push(s),n.sort(L))}if(1===n.length)return n[0];if(i){for(let e=0;ee.serialize())).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=U.create(e,this,!0)}return this.negated}}class U{static create(e,t,i){return U._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.lengthe.expr.length)return 1;for(let t=0,i=this.expr.length;te.serialize())).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),i=e.shift(),n=[];for(const e of Y(t))for(const t of Y(i))n.push(j.create([e,t],null,!1));e.unshift(U.create(n,null,!1))}this.negated=U.create(e,this,!0)}return this.negated}}class $ extends I{static all(){return $._info.values()}constructor(e,t,i){super(e,null),this._defaultValue=t,"object"==typeof i?$._info.push({...i,key:e}):!0!==i&&$._info.push({key:e,description:i,type:null!=t?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return N.create(this.key,e)}}$._info=[];const K=(0,h.u1)("contextKeyService");function q(e,t){return et?1:0}function G(e,t,i,n){return ei?1:tn?1:0}function Q(e,t){if(0===e.type||1===t.type)return!0;if(9===e.type)return 9===t.type&&Z(e.expr,t.expr);if(9===t.type){for(const i of t.expr)if(Q(e,i))return!0;return!1}if(6===e.type){if(6===t.type)return Z(t.expr,e.expr);for(const i of e.expr)if(Q(i,t))return!0;return!1}return e.equals(t)}function Z(e,t){let i=0,n=0;for(;i{"use strict";i.d(t,{J7:()=>d,W0:()=>a,aV:()=>l,nd:()=>r});var n=i(63339),o=i(3765),s=i(31540);new s.N1("isMac",n.zx,(0,o.k)("isMac","Whether the operating system is macOS")),new s.N1("isLinux",n.j9,(0,o.k)("isLinux","Whether the operating system is Linux"));const r=new s.N1("isWindows",n.uF,(0,o.k)("isWindows","Whether the operating system is Windows")),a=new s.N1("isWeb",n.HZ,(0,o.k)("isWeb","Whether the platform is a web browser")),l=(new s.N1("isMacNative",n.zx&&!n.HZ,(0,o.k)("isMacNative","Whether the operating system is macOS on a non-browser platform")),new s.N1("isIOS",n.un,(0,o.k)("isIOS","Whether the operating system is iOS")),new s.N1("isMobile",n.Fr,(0,o.k)("isMobile","Whether the platform is a mobile web browser")),new s.N1("isDevelopment",!1,!0),new s.N1("productQualityType","",(0,o.k)("productQualityType","Quality type of VS Code")),"inputFocus"),d=new s.N1(l,!1,(0,o.k)("inputFocus","Whether keyboard focus is inside an input box"))},52348:(e,t,i)=>{"use strict";i.d(t,{Z:()=>s,l:()=>o});var n=i(82399);const o=(0,n.u1)("contextViewService"),s=(0,n.u1)("contextMenuService")},94535:(e,t,i)=>{"use strict";i.d(t,{X:()=>n});const n=(0,i(82399).u1)("dialogService")},91860:(e,t,i)=>{"use strict";i.d(t,{PD:()=>s,sV:()=>o});var n=i(67167);const o={EDITORS:"CodeEditors",FILES:"CodeFiles"};n.O.add("workbench.contributions.dragAndDrop",new class{});class s{constructor(){}static getInstance(){return s.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}}s.INSTANCE=new s},88195:(e,t,i)=>{"use strict";i.d(t,{k:()=>n});const n=(0,i(82399).u1)("environmentService")},33242:(e,t,i)=>{"use strict";i.d(t,{pG:()=>E,_Q:()=>I,dg:()=>y});var n=i(6595),o=i(14333),s=i(86004),r=i(39451),a=i(45222),l=i(26048),d=i(2106),c=(i(37905),i(3765)),h=i(65568);const u=c.k("defaultLabel","input"),g=c.k("label.preserveCaseToggle","Preserve Case");class p extends s.l{constructor(e){var t;super({icon:l.W.preserveCase,title:g+e.appendTitle,isChecked:e.isChecked,hoverDelegate:null!==(t=e.hoverDelegate)&&void 0!==t?t:(0,h.nZ)("element"),inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class m extends a.x{constructor(e,t,i,n){super(),this._showOptionButtons=i,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new d.vl),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new d.vl),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new d.vl),this._onInput=this._register(new d.vl),this._onKeyUp=this._register(new d.vl),this._onPreserveCaseKeyDown=this._register(new d.vl),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||u;const s=n.appendPreserveCaseLabel||"",a=n.history||[],l=!!n.flexibleHeight,c=!!n.flexibleWidth,h=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new r.mJ(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:a,showHistoryHint:n.showHistoryHint,flexibleHeight:l,flexibleWidth:c,flexibleMaxHeight:h,inputBoxStyles:n.inputBoxStyles})),this.preserveCase=this._register(new p({appendTitle:s,isChecked:!1,...n.toggleStyles})),this._register(this.preserveCase.onChange((e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()}))),this._register(this.preserveCase.onKeyDown((e=>{this._onPreserveCaseKeyDown.fire(e)}))),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const g=[this.preserveCase.domNode];this.onkeydown(this.domNode,(e=>{if(e.equals(15)||e.equals(17)||e.equals(9)){const t=g.indexOf(this.domNode.ownerDocument.activeElement);if(t>=0){let i=-1;e.equals(17)?i=(t+1)%g.length:e.equals(15)&&(i=0===t?g.length-1:t-1),e.equals(9)?(g[t].blur(),this.inputBox.focus()):i>=0&&g[i].focus(),o.fs.stop(e,!0)}}}));const m=document.createElement("div");m.className="controls",m.style.display=this._showOptionButtons?"block":"none",m.appendChild(this.preserveCase.domNode),this.domNode.appendChild(m),null==e||e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,(e=>this._onKeyDown.fire(e))),this.onkeyup(this.inputBox.inputElement,(e=>this._onKeyUp.fire(e))),this.oninput(this.inputBox.inputElement,(e=>this._onInput.fire())),this.onmousedown(this.inputBox.inputElement,(e=>this._onMouseDown.fire(e)))}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;null===(e=this.inputBox)||void 0===e||e.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var f=i(31540),v=i(48421),_=i(10998),b=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},w=function(e,t){return function(i,n){t(i,n,e)}};const y=new f.N1("suggestWidgetVisible",!1,(0,c.k)("suggestWidgetVisible","Whether suggestion are visible")),C="historyNavigationWidgetFocus",k="historyNavigationForwardsEnabled",S="historyNavigationBackwardsEnabled";let x;const L=[];function D(e,t){if(L.includes(t))throw new Error("Cannot register the same widget multiple times");L.push(t);const i=new _.Cm,n=new f.N1(C,!1).bindTo(e),s=new f.N1(k,!0).bindTo(e),r=new f.N1(S,!0).bindTo(e),a=()=>{n.set(!0),x=t},l=()=>{n.set(!1),x===t&&(x=void 0)};return(0,o.X7)(t.element)&&a(),i.add(t.onDidFocus((()=>a()))),i.add(t.onDidBlur((()=>l()))),i.add((0,_.s)((()=>{L.splice(L.indexOf(t),1),l()}))),{historyNavigationForwardsEnablement:s,historyNavigationBackwardsEnablement:r,dispose(){i.dispose()}}}let E=class extends n.c{constructor(e,t,i,n){super(e,t,i);const o=this._register(n.createScoped(this.inputBox.element));this._register(D(o,this.inputBox))}};E=b([w(3,f.fN)],E);let I=class extends m{constructor(e,t,i,n,o=!1){super(e,t,o,i);const s=this._register(n.createScoped(this.inputBox.element));this._register(D(s,this.inputBox))}};I=b([w(3,f.fN)],I),v.f.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:f.M$.and(f.M$.has(C),f.M$.equals(S,!0),f.M$.not("isComposing"),y.isEqualTo(!1)),primary:16,secondary:[528],handler:e=>{null==x||x.showPreviousValue()}}),v.f.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:f.M$.and(f.M$.has(C),f.M$.equals(k,!0),f.M$.not("isComposing"),y.isEqualTo(!1)),primary:18,secondary:[530],handler:e=>{null==x||x.showNextValue()}})},90428:(e,t,i)=>{"use strict";i.d(t,{TN:()=>l,fO:()=>d});var n=i(82399),o=i(10998),s=i(85753),r=i(14333),a=function(e,t){return function(i,n){t(i,n,e)}};const l=(0,n.u1)("hoverService");let d=class extends o.jG{get delay(){return this.isInstantlyHovering()?0:this._delay}constructor(e,t,i={},n,s){super(),this.placement=e,this.instantHover=t,this.overrideOptions=i,this.configurationService=n,this.hoverService=s,this.lastHoverHideTime=0,this.timeLimit=200,this.hoverDisposables=this._register(new o.Cm),this._delay=this.configurationService.getValue("workbench.hover.delay"),this._register(this.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration("workbench.hover.delay")&&(this._delay=this.configurationService.getValue("workbench.hover.delay"))})))}showHover(e,t){const i="function"==typeof this.overrideOptions?this.overrideOptions(e,t):this.overrideOptions;this.hoverDisposables.clear();const n=(0,r.sb)(e.target)?[e.target]:e.target.targetElements;for(const e of n)this.hoverDisposables.add((0,r.b2)(e,"keydown",(e=>{e.equals(9)&&this.hoverService.hideHover()})));const o=(0,r.sb)(e.content)?void 0:e.content.toString();return this.hoverService.showHover({...e,...i,persistence:{hideOnKeyDown:!0,...i.persistence},id:o,appearance:{...e.appearance,compact:!0,skipFadeInAnimation:this.isInstantlyHovering(),...i.appearance}},t)}isInstantlyHovering(){return this.instantHover&&Date.now()-this.lastHoverHideTime=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([a(3,s.pG),a(4,l)],d)},83312:(e,t,i)=>{"use strict";i.d(t,{d:()=>n});class n{constructor(e,t=[],i=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=i}}},66726:(e,t,i)=>{"use strict";i.d(t,{N:()=>r,v:()=>s});var n=i(83312);const o=[];function s(e,t,i){t instanceof n.d||(t=new n.d(t,[],Boolean(i))),o.push([e,t])}function r(){return o}},82399:(e,t,i)=>{"use strict";var n;i.d(t,{_$:()=>n,_Y:()=>o,u1:()=>s}),function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(n||(n={}));const o=s("instantiationService");function s(e){if(n.serviceIds.has(e))return n.serviceIds.get(e);const t=function(e,i,o){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,i){t[n.DI_TARGET]===t?t[n.DI_DEPENDENCIES].push({id:e,index:i}):(t[n.DI_DEPENDENCIES]=[{id:e,index:i}],t[n.DI_TARGET]=t)}(t,e,o)};return t.toString=()=>e,n.serviceIds.set(e,t),t}},30657:(e,t,i)=>{"use strict";i.d(t,{a:()=>n});class n{constructor(...e){this._entries=new Map;for(const[t,i]of e)this.set(t,i)}set(e,t){const i=this._entries.get(e);return this._entries.set(e,t),i}get(e){return this._entries.get(e)}}},51460:(e,t,i)=>{"use strict";i.d(t,{F:()=>s});var n=i(2106),o=i(67167);const s={JSONContribution:"base.contributions.json"},r=new class{constructor(){this._onDidChangeSchema=new n.vl,this.schemasById={}}registerSchema(e,t){var i;this.schemasById[(i=e,i.length>0&&"#"===i.charAt(i.length-1)?i.substring(0,i.length-1):i)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};o.O.add(s.JSONContribution,r)},56071:(e,t,i)=>{"use strict";i.d(t,{b:()=>n});const n=(0,i(82399).u1)("keybindingService")},48421:(e,t,i)=>{"use strict";i.d(t,{f:()=>c});var n=i(39619),o=i(63339),s=i(59715),r=i(67167),a=i(10998),l=i(85525);class d{constructor(){this._coreKeybindings=new l.w,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(1===o.OS){if(e&&e.win)return e.win}else if(2===o.OS){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(e){const t=d.bindToCurrentPlatform(e),i=new a.Cm;if(t&&t.primary){const s=(0,n.Zv)(t.primary,o.OS);s&&i.add(this._registerDefaultKeybinding(s,e.id,e.args,e.weight,0,e.when))}if(t&&Array.isArray(t.secondary))for(let s=0,r=t.secondary.length;s{r(),this._cachedMergedKeybindings=null}))}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(h)),this._cachedMergedKeybindings.slice(0)}}const c=new d;function h(e,t){if(e.weight1!==t.weight1)return e.weight1-t.weight1;if(e.command&&t.command){if(e.commandt.command)return 1}return e.weight2-t.weight2}r.O.add("platform.keybindingsRegistry",c)},8377:(e,t,i)=>{"use strict";i.d(t,{L:()=>n});const n=(0,i(82399).u1)("labelService")},87148:(e,t,i)=>{"use strict";i.d(t,{PE:()=>Ae,aG:()=>Te,er:()=>It,YD:()=>Be,zL:()=>Lt,Nf:()=>Ue,cH:()=>Ke});var n=i(14333),o=i(13338),s=i(78903),r=i(2106),a=i(10998),l=(i(67119),i(67954));class d{get templateId(){return this.renderer.templateId}constructor(e,t){this.renderer=e,this.modelProvider=t}renderTemplate(e){return{data:this.renderer.renderTemplate(e),disposable:a.jG.None}}renderElement(e,t,i,n){var o;if(null===(o=i.disposable)||void 0===o||o.dispose(),!i.data)return;const r=this.modelProvider();if(r.isResolved(e))return this.renderer.renderElement(r.get(e),e,i.data,n);const a=new s.Qi,l=r.resolve(e,a.token);i.disposable={dispose:()=>a.cancel()},this.renderer.renderPlaceholder(e,i.data),l.then((t=>this.renderer.renderElement(t,e,i.data,n)))}disposeTemplate(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)}}class c{constructor(e,t){this.modelProvider=e,this.accessibilityProvider=t}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(e){const t=this.modelProvider();return t.isResolved(e)?this.accessibilityProvider.getAriaLabel(t.get(e)):null}}class h{constructor(e,t,i,n,o={}){const s=()=>this.model,r=n.map((e=>new d(e,s)));this.list=new l.B8(e,t,i,r,function(e,t){return{...t,accessibilityProvider:t.accessibilityProvider&&new c(e,t.accessibilityProvider)}}(s,o))}updateOptions(e){this.list.updateOptions(e)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get widget(){return this.list}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return r.Jh.map(this.list.onMouseDblClick,(({element:e,index:t,browserEvent:i})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:i})))}get onPointer(){return r.Jh.map(this.list.onPointer,(({element:e,index:t,browserEvent:i})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:i})))}get onDidChangeSelection(){return r.Jh.map(this.list.onDidChangeSelection,(({elements:e,indexes:t,browserEvent:i})=>({elements:e.map((e=>this._model.get(e))),indexes:t,browserEvent:i})))}get model(){return this._model}set model(e){this._model=e,this.list.splice(0,this.list.length,(0,o.y1)(e.length))}getFocus(){return this.list.getFocus()}getSelection(){return this.list.getSelection()}getSelectedElements(){return this.getSelection().map((e=>this.model.get(e)))}style(e){this.list.style(e)}dispose(){this.list.dispose()}}var u=i(20396),g=i(65568),p=i(53963),m=i(85072),f=i.n(m),v=i(97825),_=i.n(v),b=i(77659),w=i.n(b),y=i(55056),C=i.n(y),k=i(10540),S=i.n(k),x=i(41113),L=i.n(x),D=i(94234),E={};E.styleTagTransform=L(),E.setAttributes=C(),E.insert=w().bind(null,"head"),E.domAPI=_(),E.insertStyleElement=S(),f()(D.A,E),D.A&&D.A.locals&&D.A.locals;class I{constructor(e,t,i){this.columns=e,this.getColumnSize=i,this.templateId=I.TemplateId,this.renderedTemplates=new Set;const n=new Map(t.map((e=>[e.templateId,e])));this.renderers=[];for(const t of e){const e=n.get(t.templateId);if(!e)throw new Error(`Table cell renderer for template id ${t.templateId} not found.`);this.renderers.push(e)}}renderTemplate(e){const t=(0,n.BC)(e,(0,n.$)(".monaco-table-tr")),i=[],o=[];for(let e=0;ethis.disposables.add(new N(e,t)))),h={size:c.reduce(((e,t)=>e+t.column.weight),0),views:c.map((e=>({size:e.column.weight,view:e})))};this.splitview=this.disposables.add(new p.U(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:h})),this.splitview.el.style.height=`${i.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${i.headerRowHeight}px`;const u=new I(o,s,(e=>this.splitview.getViewSize(e)));var g;this.list=this.disposables.add(new l.B8(e,this.domNode,(g=i,{getHeight:e=>g.getHeight(e),getTemplateId:()=>I.TemplateId}),[u],d)),r.Jh.any(...c.map((e=>e.onDidLayout)))((([e,t])=>u.layoutColumn(e,t)),null,this.disposables),this.splitview.onDidSashReset((e=>{const t=o.reduce(((e,t)=>e+t.weight),0),i=o[e].weight/t*this.cachedWidth;this.splitview.resizeView(e,i)}),null,this.disposables),this.styleElement=(0,n.li)(this.domNode),this.style(l.bG)}updateOptions(e){this.list.updateOptions(e)}splice(e,t,i=[]){this.list.splice(e,t,i)}getHTMLElement(){return this.domNode}style(e){const t=[];t.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\ttop: ${this.virtualDelegate.headerRowHeight+1}px;\n\t\t\theight: calc(100% - ${this.virtualDelegate.headerRowHeight}px);\n\t\t}`),this.styleElement.textContent=t.join("\n"),this.list.style(e)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}}M.InstanceCount=0;var A=i(47611),T=i(83022),R=i(31272),P=i(97757),O=i(17954);class F{constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new R.G6(e,t,null,i),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,i.sorter&&(this.sorter={compare:(e,t)=>i.sorter.compare(e.element,t.element)}),this.identityProvider=i.identityProvider}setChildren(e,t=O.f.empty(),i={}){const n=this.getElementLocation(e);this._setChildren(n,this.preserveCollapseState(t),i)}_setChildren(e,t=O.f.empty(),i){const n=new Set,o=new Set;this.model.splice([...e,0],Number.MAX_VALUE,t,{...i,onDidCreateNode:e=>{var t;if(null===e.element)return;const s=e;if(n.add(s.element),this.nodes.set(s.element,s),this.identityProvider){const e=this.identityProvider.getId(s.element).toString();o.add(e),this.nodesByIdentity.set(e,s)}null===(t=i.onDidCreateNode)||void 0===t||t.call(i,s)},onDidDeleteNode:e=>{var t;if(null===e.element)return;const s=e;if(n.has(s.element)||this.nodes.delete(s.element),this.identityProvider){const e=this.identityProvider.getId(s.element).toString();o.has(e)||this.nodesByIdentity.delete(e)}null===(t=i.onDidDeleteNode)||void 0===t||t.call(i,s)}})}preserveCollapseState(e=O.f.empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),O.f.map(e,(e=>{let t=this.nodes.get(e.element);if(!t&&this.identityProvider){const i=this.identityProvider.getId(e.element).toString();t=this.nodesByIdentity.get(i)}if(!t){let t;return t=void 0===e.collapsed?void 0:e.collapsed===P.Yo.Collapsed||e.collapsed===P.Yo.PreserveOrCollapsed||e.collapsed!==P.Yo.Expanded&&e.collapsed!==P.Yo.PreserveOrExpanded&&Boolean(e.collapsed),{...e,children:this.preserveCollapseState(e.children),collapsed:t}}const i="boolean"==typeof e.collapsible?e.collapsible:t.collapsible;let n;return n=void 0===e.collapsed||e.collapsed===P.Yo.PreserveOrCollapsed||e.collapsed===P.Yo.PreserveOrExpanded?t.collapsed:e.collapsed===P.Yo.Collapsed||e.collapsed!==P.Yo.Expanded&&Boolean(e.collapsed),{...e,collapsible:i,collapsed:n,children:this.preserveCollapseState(e.children)}}))}rerender(e){const t=this.getElementLocation(e);this.model.rerender(t)}getFirstElementChild(e=null){const t=this.getElementLocation(e);return this.model.getFirstElementChild(t)}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){const t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getElementLocation(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getElementLocation(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(e=null){if(null===e)return this.model.getNode(this.model.rootRef);const t=this.nodes.get(e);if(!t)throw new P.jh(this.user,`Tree element not found: ${e}`);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(null===e)throw new P.jh(this.user,"Invalid getParentNodeLocation call");const t=this.nodes.get(e);if(!t)throw new P.jh(this.user,`Tree element not found: ${e}`);const i=this.model.getNodeLocation(t),n=this.model.getParentNodeLocation(i);return this.model.getNode(n).element}getElementLocation(e){if(null===e)return[];const t=this.nodes.get(e);if(!t)throw new P.jh(this.user,`Tree element not found: ${e}`);return this.model.getNodeLocation(t)}}function B(e){return{element:{elements:[e.element],incompressible:e.incompressible||!1},children:O.f.map(O.f.from(e.children),B),collapsible:e.collapsible,collapsed:e.collapsed}}function W(e){const t=[e.element],i=e.incompressible||!1;let n,o;for(;[o,n]=O.f.consume(O.f.from(e.children),2),1===o.length&&!o[0].incompressible;)e=o[0],t.push(e.element);return{element:{elements:t,incompressible:i},children:O.f.map(O.f.concat(o,n),W),collapsible:e.collapsible,collapsed:e.collapsed}}function H(e,t=0){let i;return i=tH(e,0))),0===t&&e.element.incompressible?{element:e.element.elements[t],children:i,incompressible:!0,collapsible:e.collapsible,collapsed:e.collapsed}:{element:e.element.elements[t],children:i,collapsible:e.collapsible,collapsed:e.collapsed}}function V(e){return H(e,0)}function z(e,t,i){return e.element===t?{...e,children:i}:{...e,children:O.f.map(O.f.from(e.children),(e=>z(e,t,i)))}}class j{get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}constructor(e,t,i={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new F(e,t,i),this.enabled=void 0===i.compressionEnabled||i.compressionEnabled,this.identityProvider=i.identityProvider}setChildren(e,t=O.f.empty(),i){const n=i.diffIdentityProvider&&(s=i.diffIdentityProvider,{getId:e=>e.elements.map((e=>s.getId(e).toString())).join("\0")});var s;if(null===e){const e=O.f.map(t,this.enabled?W:B);return void this._setChildren(null,e,{diffIdentityProvider:n,diffDepth:1/0})}const r=this.nodes.get(e);if(!r)throw new P.jh(this.user,"Unknown compressed tree node");const a=this.model.getNode(r),l=this.model.getParentNodeLocation(r),d=this.model.getNode(l),c=z(V(a),e,t),h=(this.enabled?W:B)(c),u=i.diffIdentityProvider?(e,t)=>i.diffIdentityProvider.getId(e)===i.diffIdentityProvider.getId(t):void 0;if((0,o.aI)(h.element.elements,a.element.elements,u))return void this._setChildren(r,h.children||O.f.empty(),{diffIdentityProvider:n,diffDepth:1});const g=d.children.map((e=>e===a?h:e));this._setChildren(d.element,g,{diffIdentityProvider:n,diffDepth:a.depth-d.depth})}isCompressionEnabled(){return this.enabled}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;const t=this.model.getNode().children,i=O.f.map(t,V),n=O.f.map(i,e?W:B);this._setChildren(null,n,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(e,t,i){const n=new Set;this.model.setChildren(e,t,{...i,onDidCreateNode:e=>{for(const t of e.element.elements)n.add(t),this.nodes.set(t,e.element)},onDidDeleteNode:e=>{for(const t of e.element.elements)n.has(t)||this.nodes.delete(t)}})}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if(void 0===e)return this.model.getNode();const t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){const t=this.model.getNodeLocation(e);return null===t?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){const t=this.getCompressedNode(e),i=this.model.getParentNodeLocation(t);return null===i?null:i.elements[i.elements.length-1]}getFirstElementChild(e){const t=this.getCompressedNode(e);return this.model.getFirstElementChild(t)}isCollapsible(e){const t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const i=this.getCompressedNode(e);return this.model.setCollapsible(i,t)}isCollapsed(e){const t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,i){const n=this.getCompressedNode(e);return this.model.setCollapsed(n,t,i)}expandTo(e){const t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){const t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}getCompressedNode(e){if(null===e)return null;const t=this.nodes.get(e);if(!t)throw new P.jh(this.user,`Tree element not found: ${e}`);return t}}const U=e=>e[e.length-1];class ${get element(){return null===this.node.element?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map((e=>new $(this.unwrapper,e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e,t){this.unwrapper=e,this.node=t}}class K{get onDidSplice(){return r.Jh.map(this.model.onDidSplice,(({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map((e=>this.nodeMapper.map(e))),deletedNodes:t.map((e=>this.nodeMapper.map(e)))})))}get onDidChangeCollapseState(){return r.Jh.map(this.model.onDidChangeCollapseState,(({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t})))}get onDidChangeRenderNodeCount(){return r.Jh.map(this.model.onDidChangeRenderNodeCount,(e=>this.nodeMapper.map(e)))}constructor(e,t,i={}){this.rootRef=null,this.elementMapper=i.elementMapper||U;const n=e=>this.elementMapper(e.elements);this.nodeMapper=new P.y2((e=>new $(n,e))),this.model=new j(e,function(e,t){return{splice(i,n,o){t.splice(i,n,o.map((t=>e.map(t))))},updateElementHeight(e,i){t.updateElementHeight(e,i)}}}(this.nodeMapper,t),function(e,t){return{...t,identityProvider:t.identityProvider&&{getId:i=>t.identityProvider.getId(e(i))},sorter:t.sorter&&{compare:(e,i)=>t.sorter.compare(e.elements[0],i.elements[0])},filter:t.filter&&{filter:(i,n)=>t.filter.filter(e(i),n)}}}(n,i))}setChildren(e,t=O.f.empty(),i={}){this.model.setChildren(e,t,i)}isCompressionEnabled(){return this.model.isCompressionEnabled()}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}getFirstElementChild(e){const t=this.model.getFirstElementChild(e);return null==t?t:this.elementMapper(t.elements)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,t,i){return this.model.setCollapsed(e,t,i)}expandTo(e){return this.model.expandTo(e)}rerender(e){return this.model.rerender(e)}refilter(){return this.model.refilter()}getCompressedTreeNode(e=null){return this.model.getNode(e)}}var q=i(88846);class G extends A.DO{get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}constructor(e,t,i,n,o={}){super(e,t,i,n,o),this.user=e}setChildren(e,t=O.f.empty(),i){this.model.setChildren(e,t,i)}rerender(e){void 0!==e?this.model.rerender(e):this.view.rerender()}hasElement(e){return this.model.has(e)}createModel(e,t,i){return new F(e,t,i)}}class Q{get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}constructor(e,t,i){this._compressedTreeNodeProvider=e,this.stickyScrollDelegate=t,this.renderer=i,this.templateId=i.templateId,i.onDidChangeTwistieState&&(this.onDidChangeTwistieState=i.onDidChangeTwistieState)}renderTemplate(e){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){let o=this.stickyScrollDelegate.getCompressedNode(e);o||(o=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element)),1===o.element.elements.length?(i.compressedTreeNode=void 0,this.renderer.renderElement(e,t,i.data,n)):(i.compressedTreeNode=o,this.renderer.renderCompressedElements(o,t,i.data,n))}disposeElement(e,t,i,n){var o,s,r,a;i.compressedTreeNode?null===(s=(o=this.renderer).disposeCompressedElements)||void 0===s||s.call(o,i.compressedTreeNode,t,i.data,n):null===(a=(r=this.renderer).disposeElement)||void 0===a||a.call(r,e,t,i.data,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){return!!this.renderer.renderTwistie&&this.renderer.renderTwistie(e,t)}}!function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);s>3&&r&&Object.defineProperty(t,i,r)}([q.B],Q.prototype,"compressedTreeNodeProvider",null);class Z{constructor(e){this.modelProvider=e,this.compressedStickyNodes=new Map}getCompressedNode(e){return this.compressedStickyNodes.get(e)}constrainStickyScrollNodes(e,t,i){if(this.compressedStickyNodes.clear(),0===e.length)return[];for(let n=0;ni||n>=t-1&&tthis,r=new Z((()=>this.model));super(e,t,i,n.map((e=>new Q(s,r,e))),{...Y(s,o),stickyScrollDelegate:r})}setChildren(e,t=O.f.empty(),i){this.model.setChildren(e,t,i)}createModel(e,t,i){return new K(e,t,i)}updateOptions(e={}){super.updateOptions(e),void 0!==e.compressionEnabled&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e)}}var J=i(65958),ee=i(26048),te=i(58881),ie=i(94327),ne=i(79359);function oe(e){return{...e,children:[],refreshPromise:void 0,stale:!0,slow:!1,forceExpanded:!1}}function se(e,t){return!!t.parent&&(t.parent===e||se(e,t.parent))}class re{get element(){return this.node.element.element}get children(){return this.node.children.map((e=>new re(e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e){this.node=e}}class ae{constructor(e,t,i){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...te.L.asClassNameArray(ee.W.treeItemLoading)),!0):(t.classList.remove(...te.L.asClassNameArray(ee.W.treeItemLoading)),!1)}disposeElement(e,t,i,n){var o,s;null===(s=(o=this.renderer).disposeElement)||void 0===s||s.call(o,this.nodeMapper.map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}}function le(e){return{browserEvent:e.browserEvent,elements:e.elements.map((e=>e.element))}}function de(e){return{browserEvent:e.browserEvent,element:e.element&&e.element.element,target:e.target}}class ce extends T.ur{constructor(e){super(e.elements.map((e=>e.element))),this.data=e}}function he(e){return e instanceof T.ur?new ce(e):e}class ue{constructor(e){this.dnd=e}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map((e=>e.element)),t)}onDragStart(e,t){var i,n;null===(n=(i=this.dnd).onDragStart)||void 0===n||n.call(i,he(e),t)}onDragOver(e,t,i,n,o,s=!0){return this.dnd.onDragOver(he(e),t&&t.element,i,n,o)}drop(e,t,i,n,o){this.dnd.drop(he(e),t&&t.element,i,n,o)}onDragEnd(e){var t,i;null===(i=(t=this.dnd).onDragEnd)||void 0===i||i.call(t,e)}dispose(){this.dnd.dispose()}}function ge(e){return e&&{...e,collapseByDefault:!0,identityProvider:e.identityProvider&&{getId:t=>e.identityProvider.getId(t.element)},dnd:e.dnd&&new ue(e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent:t=>e.multipleSelectionController.isSelectionSingleChangeEvent({...t,element:t.element}),isSelectionRangeChangeEvent:t=>e.multipleSelectionController.isSelectionRangeChangeEvent({...t,element:t.element})},accessibilityProvider:e.accessibilityProvider&&{...e.accessibilityProvider,getPosInSet:void 0,getSetSize:void 0,getRole:e.accessibilityProvider.getRole?t=>e.accessibilityProvider.getRole(t.element):()=>"treeitem",isChecked:e.accessibilityProvider.isChecked?t=>{var i;return!!(null===(i=e.accessibilityProvider)||void 0===i?void 0:i.isChecked(t.element))}:void 0,getAriaLabel:t=>e.accessibilityProvider.getAriaLabel(t.element),getWidgetAriaLabel:()=>e.accessibilityProvider.getWidgetAriaLabel(),getWidgetRole:e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider.getAriaLevel&&(t=>e.accessibilityProvider.getAriaLevel(t.element)),getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(t=>e.accessibilityProvider.getActiveDescendantId(t.element))},filter:e.filter&&{filter:(t,i)=>e.filter.filter(t.element,i)},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&{...e.keyboardNavigationLabelProvider,getKeyboardNavigationLabel:t=>e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)},sorter:void 0,expandOnlyOnTwistieClick:void 0===e.expandOnlyOnTwistieClick?void 0:"function"!=typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:t=>e.expandOnlyOnTwistieClick(t.element),defaultFindVisibility:t=>t.hasChildren&&t.stale?1:"number"==typeof e.defaultFindVisibility?e.defaultFindVisibility:void 0===e.defaultFindVisibility?2:e.defaultFindVisibility(t.element)}}function pe(e,t){t(e),e.children.forEach((e=>pe(e,t)))}class me{get onDidScroll(){return this.tree.onDidScroll}get onDidChangeFocus(){return r.Jh.map(this.tree.onDidChangeFocus,le)}get onDidChangeSelection(){return r.Jh.map(this.tree.onDidChangeSelection,le)}get onMouseDblClick(){return r.Jh.map(this.tree.onMouseDblClick,de)}get onPointer(){return r.Jh.map(this.tree.onPointer,de)}get onDidFocus(){return this.tree.onDidFocus}get onDidChangeModel(){return this.tree.onDidChangeModel}get onDidChangeCollapseState(){return this.tree.onDidChangeCollapseState}get onDidChangeFindOpenState(){return this.tree.onDidChangeFindOpenState}get onDidChangeStickyScrollFocused(){return this.tree.onDidChangeStickyScrollFocused}get onDidDispose(){return this.tree.onDidDispose}constructor(e,t,i,n,o,s={}){this.user=e,this.dataSource=o,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new r.vl,this._onDidChangeNodeSlowState=new r.vl,this.nodeMapper=new P.y2((e=>new re(e))),this.disposables=new a.Cm,this.identityProvider=s.identityProvider,this.autoExpandSingleChildren=void 0!==s.autoExpandSingleChildren&&s.autoExpandSingleChildren,this.sorter=s.sorter,this.getDefaultCollapseState=e=>s.collapseByDefault?s.collapseByDefault(e)?P.Yo.PreserveOrCollapsed:P.Yo.PreserveOrExpanded:void 0,this.tree=this.createTree(e,t,i,n,s),this.onDidChangeFindMode=this.tree.onDidChangeFindMode,this.onDidChangeFindMatchType=this.tree.onDidChangeFindMatchType,this.root=oe({element:void 0,parent:null,hasChildren:!0,defaultCollapseState:void 0}),this.identityProvider&&(this.root={...this.root,id:null}),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}createTree(e,t,i,n,o){const s=new A.w0(i),r=n.map((e=>new ae(e,this.nodeMapper,this._onDidChangeNodeSlowState.event))),a=ge(o)||{};return new G(e,t,s,r,a)}updateOptions(e={}){this.tree.updateOptions(e)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(e){this.tree.scrollTop=e}get scrollHeight(){return this.tree.scrollHeight}get renderHeight(){return this.tree.renderHeight}domFocus(){this.tree.domFocus()}layout(e,t){this.tree.layout(e,t)}style(e){this.tree.style(e)}getInput(){return this.root.element}async setInput(e,t){this.refreshPromises.forEach((e=>e.cancel())),this.refreshPromises.clear(),this.root.element=e;const i=t&&{viewState:t,focus:[],selection:[]};await this._updateChildren(e,!0,!1,i),i&&(this.tree.setFocus(i.focus),this.tree.setSelection(i.selection)),t&&"number"==typeof t.scrollTop&&(this.scrollTop=t.scrollTop)}async _updateChildren(e=this.root.element,t=!0,i=!1,n,o){if(void 0===this.root.element)throw new P.jh(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await r.Jh.toPromise(this._onDidRender.event));const s=this.getDataNode(e);if(await this.refreshAndRenderNode(s,t,n,o),i)try{this.tree.rerender(s)}catch(e){}}rerender(e){if(void 0===e||e===this.root.element)return void this.tree.rerender();const t=this.getDataNode(e);this.tree.rerender(t)}getNode(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getNode(t===this.root?null:t);return this.nodeMapper.map(i)}collapse(e,t=!1){const i=this.getDataNode(e);return this.tree.collapse(i===this.root?null:i,t)}async expand(e,t=!1){if(void 0===this.root.element)throw new P.jh(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await r.Jh.toPromise(this._onDidRender.event));const i=this.getDataNode(e);if(this.tree.hasElement(i)&&!this.tree.isCollapsible(i))return!1;if(i.refreshPromise&&(await this.root.refreshPromise,await r.Jh.toPromise(this._onDidRender.event)),i!==this.root&&!i.refreshPromise&&!this.tree.isCollapsed(i))return!1;const n=this.tree.expand(i===this.root?null:i,t);return i.refreshPromise&&(await this.root.refreshPromise,await r.Jh.toPromise(this._onDidRender.event)),n}setSelection(e,t){const i=e.map((e=>this.getDataNode(e)));this.tree.setSelection(i,t)}getSelection(){return this.tree.getSelection().map((e=>e.element))}setFocus(e,t){const i=e.map((e=>this.getDataNode(e)));this.tree.setFocus(i,t)}getFocus(){return this.tree.getFocus().map((e=>e.element))}reveal(e,t){this.tree.reveal(this.getDataNode(e),t)}getParentElement(e){const t=this.tree.getParentElement(this.getDataNode(e));return t&&t.element}getFirstElementChild(e=this.root.element){const t=this.getDataNode(e),i=this.tree.getFirstElementChild(t===this.root?null:t);return i&&i.element}getDataNode(e){const t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new P.jh(this.user,`Data tree node not found: ${e}`);return t}async refreshAndRenderNode(e,t,i,n){await this.refreshNode(e,t,i),this.disposables.isDisposed||this.render(e,i,n)}async refreshNode(e,t,i){let n;return this.subTreeRefreshPromises.forEach(((o,s)=>{!n&&function(e,t){return e===t||se(e,t)||se(t,e)}(s,e)&&(n=o.then((()=>this.refreshNode(e,t,i))))})),n||(e!==this.root&&this.tree.getNode(e).collapsed?(e.hasChildren=!!this.dataSource.hasChildren(e.element),e.stale=!0,void this.setChildren(e,[],t,i)):this.doRefreshSubTree(e,t,i))}async doRefreshSubTree(e,t,i){let n;e.refreshPromise=new Promise((e=>n=e)),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally((()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)}));try{const n=await this.doRefreshNode(e,t,i);e.stale=!1,await J.HC.settled(n.map((e=>this.doRefreshSubTree(e,t,i))))}finally{n()}}async doRefreshNode(e,t,i){let n;if(e.hasChildren=!!this.dataSource.hasChildren(e.element),e.hasChildren){const t=this.doGetChildren(e);if((0,ne.xZ)(t))n=Promise.resolve(t);else{const i=(0,J.wR)(800);i.then((()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)}),(e=>null)),n=t.finally((()=>i.cancel()))}}else n=Promise.resolve(O.f.empty());try{const o=await n;return this.setChildren(e,o,t,i)}catch(t){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),(0,ie.MB)(t))return[];throw t}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}}doGetChildren(e){let t=this.refreshPromises.get(e);if(t)return t;const i=this.dataSource.getChildren(e.element);return(0,ne.xZ)(i)?this.processChildren(i):(t=(0,J.SS)((async()=>this.processChildren(await i))),this.refreshPromises.set(e,t),t.finally((()=>{this.refreshPromises.delete(e)})))}_onDidChangeCollapseState({node:e,deep:t}){null!==e.element&&!e.collapsed&&e.element.stale&&(t?this.collapse(e.element.element):this.refreshAndRenderNode(e.element,!1).catch(ie.dz))}setChildren(e,t,i,n){const o=[...t];if(0===e.children.length&&0===o.length)return[];const s=new Map,r=new Map;for(const t of e.children)s.set(t.element,t),this.identityProvider&&r.set(t.id,{node:t,collapsed:this.tree.hasElement(t)&&this.tree.isCollapsed(t)});const a=[],l=o.map((t=>{const o=!!this.dataSource.hasChildren(t);if(!this.identityProvider){const i=oe({element:t,parent:e,hasChildren:o,defaultCollapseState:this.getDefaultCollapseState(t)});return o&&i.defaultCollapseState===P.Yo.PreserveOrExpanded&&a.push(i),i}const l=this.identityProvider.getId(t).toString(),d=r.get(l);if(d){const e=d.node;return s.delete(e.element),this.nodes.delete(e.element),this.nodes.set(t,e),e.element=t,e.hasChildren=o,i?d.collapsed?(e.children.forEach((e=>pe(e,(e=>this.nodes.delete(e.element))))),e.children.splice(0,e.children.length),e.stale=!0):a.push(e):o&&!d.collapsed&&a.push(e),e}const c=oe({element:t,parent:e,id:l,hasChildren:o,defaultCollapseState:this.getDefaultCollapseState(t)});return n&&n.viewState.focus&&n.viewState.focus.indexOf(l)>-1&&n.focus.push(c),n&&n.viewState.selection&&n.viewState.selection.indexOf(l)>-1&&n.selection.push(c),(n&&n.viewState.expanded&&n.viewState.expanded.indexOf(l)>-1||o&&c.defaultCollapseState===P.Yo.PreserveOrExpanded)&&a.push(c),c}));for(const e of s.values())pe(e,(e=>this.nodes.delete(e.element)));for(const e of l)this.nodes.set(e.element,e);return e.children.splice(0,e.children.length,...l),e!==this.root&&this.autoExpandSingleChildren&&1===l.length&&0===a.length&&(l[0].forceExpanded=!0,a.push(l[0])),a}render(e,t,i){const n=e.children.map((e=>this.asTreeElement(e,t))),o=i&&{...i,diffIdentityProvider:i.diffIdentityProvider&&{getId:e=>i.diffIdentityProvider.getId(e.element)}};this.tree.setChildren(e===this.root?null:e,n,o),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let i;return t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1?i=!1:e.forceExpanded?(i=!1,e.forceExpanded=!1):i=e.defaultCollapseState,{element:e,children:e.hasChildren?O.f.map(e.children,(e=>this.asTreeElement(e,t))):[],collapsible:e.hasChildren,collapsed:i}}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e}dispose(){this.disposables.dispose(),this.tree.dispose()}}class fe{get element(){return{elements:this.node.element.elements.map((e=>e.element)),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map((e=>new fe(e)))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(e){this.node=e}}class ve{constructor(e,t,i,n){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=i,this.onDidChangeTwistieState=n,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){return{templateData:this.renderer.renderTemplate(e)}}renderElement(e,t,i,n){this.renderer.renderElement(this.nodeMapper.map(e),t,i.templateData,n)}renderCompressedElements(e,t,i,n){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}renderTwistie(e,t){return e.slow?(t.classList.add(...te.L.asClassNameArray(ee.W.treeItemLoading)),!0):(t.classList.remove(...te.L.asClassNameArray(ee.W.treeItemLoading)),!1)}disposeElement(e,t,i,n){var o,s;null===(s=(o=this.renderer).disposeElement)||void 0===s||s.call(o,this.nodeMapper.map(e),t,i.templateData,n)}disposeCompressedElements(e,t,i,n){var o,s;null===(s=(o=this.renderer).disposeCompressedElements)||void 0===s||s.call(o,this.compressibleNodeMapperProvider().map(e),t,i.templateData,n)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=(0,a.AS)(this.disposables)}}class _e extends me{constructor(e,t,i,n,o,s,r={}){super(e,t,i,o,s,r),this.compressionDelegate=n,this.compressibleNodeMapper=new P.y2((e=>new fe(e))),this.filter=r.filter}createTree(e,t,i,n,o){const s=new A.w0(i),r=n.map((e=>new ve(e,this.nodeMapper,(()=>this.compressibleNodeMapper),this._onDidChangeNodeSlowState.event))),a=function(e){const t=e&&ge(e);return t&&{...t,keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{...t.keyboardNavigationLabelProvider,getCompressedNodeKeyboardNavigationLabel:t=>e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map((e=>e.element)))}}}(o)||{};return new X(e,t,s,r,a)}asTreeElement(e,t){return{incompressible:this.compressionDelegate.isIncompressible(e.element),...super.asTreeElement(e,t)}}updateOptions(e={}){this.tree.updateOptions(e)}render(e,t,i){if(!this.identityProvider)return super.render(e,t);const n=e=>this.identityProvider.getId(e).toString(),o=e=>{const t=new Set;for(const i of e){const e=this.tree.getCompressedTreeNode(i===this.root?null:i);if(e.element)for(const i of e.element.elements)t.add(n(i.element))}return t},s=o(this.tree.getSelection()),r=o(this.tree.getFocus());super.render(e,t,i);const a=this.getSelection();let l=!1;const d=this.getFocus();let c=!1;const h=e=>{const t=e.element;if(t)for(let e=0;e{const t="boolean"==typeof(i=this.filter.filter(e,1))?i?1:0:(0,R.iZ)(i)?(0,R.Mn)(i.visibility):(0,R.Mn)(i);var i;if(2===t)throw new Error("Recursive tree visibility not supported in async data compressed trees");return 1===t}))),super.processChildren(e)}}class be extends A.DO{constructor(e,t,i,n,o,s={}){super(e,t,i,n,s),this.user=e,this.dataSource=o,this.identityProvider=s.identityProvider}createModel(e,t,i){return new F(e,t,i)}}var we=i(3765),ye=i(85753),Ce=i(27142),ke=i(31540),Se=i(13034),xe=i(52348),Le=i(82399),De=i(56071),Ee=i(67167),Ie=i(25654),Ne=function(e,t,i,n){var o,s=arguments.length,r=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(s<3?o(r):s>3?o(t,i,r):o(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},Me=function(e,t){return function(i,n){t(i,n,e)}};const Ae=(0,Le.u1)("listService");class Te{get lastFocusedList(){return this._lastFocusedWidget}constructor(){this.disposables=new a.Cm,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}setLastFocusedList(e){var t,i;e!==this._lastFocusedWidget&&(null===(t=this._lastFocusedWidget)||void 0===t||t.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=e,null===(i=this._lastFocusedWidget)||void 0===i||i.getHTMLElement().classList.add("last-focused"))}register(e,t){if(this._hasCreatedStyleController||(this._hasCreatedStyleController=!0,new l.hb((0,n.li)(),"").style(Ie.IN)),this.lists.some((t=>t.widget===e)))throw new Error("Cannot register the same widget multiple times");const i={widget:e,extraContextKeys:t};return this.lists.push(i),(0,n.X7)(e.getHTMLElement())&&this.setLastFocusedList(e),(0,a.qE)(e.onDidFocus((()=>this.setLastFocusedList(e))),(0,a.s)((()=>this.lists.splice(this.lists.indexOf(i),1))),e.onDidDispose((()=>{this.lists=this.lists.filter((e=>e!==i)),this._lastFocusedWidget===e&&this.setLastFocusedList(void 0)})))}dispose(){this.disposables.dispose()}}const Re=new ke.N1("listScrollAtBoundary","none"),Pe=(ke.M$.or(Re.isEqualTo("top"),Re.isEqualTo("both")),ke.M$.or(Re.isEqualTo("bottom"),Re.isEqualTo("both")),new ke.N1("listFocus",!0)),Oe=new ke.N1("treestickyScrollFocused",!1),Fe=new ke.N1("listSupportsMultiselect",!0),Be=ke.M$.and(Pe,ke.M$.not(Se.aV),Oe.negate()),We=new ke.N1("listHasSelectionOrFocus",!1),He=new ke.N1("listDoubleSelection",!1),Ve=new ke.N1("listMultiSelection",!1),ze=new ke.N1("listSelectionNavigation",!1),je=new ke.N1("listSupportsFind",!0),Ue=new ke.N1("treeElementCanCollapse",!1),$e=new ke.N1("treeElementHasParent",!1),Ke=new ke.N1("treeElementCanExpand",!1),qe=new ke.N1("treeElementHasChild",!1),Ge=new ke.N1("treeFindOpen",!1),Qe="listTypeNavigationMode",Ze="listAutomaticKeyboardNavigation";function Ye(e,t){const i=e.createScoped(t.getHTMLElement());return Pe.bindTo(i),i}function Xe(e,t){const i=Re.bindTo(e),n=()=>{const e=0===t.scrollTop,n=t.scrollHeight-t.renderHeight-t.scrollTop<1;e&&n?i.set("both"):e?i.set("top"):n?i.set("bottom"):i.set("none")};return n(),t.onDidScroll(n)}const Je="workbench.list.multiSelectModifier",et="workbench.list.openMode",tt="workbench.list.horizontalScrolling",it="workbench.list.defaultFindMode",nt="workbench.list.typeNavigationMode",ot="workbench.list.keyboardNavigation",st="workbench.list.scrollByPage",rt="workbench.list.defaultFindMatchType",at="workbench.tree.indent",lt="workbench.tree.renderIndentGuides",dt="workbench.list.smoothScrolling",ct="workbench.list.mouseWheelScrollSensitivity",ht="workbench.list.fastScrollSensitivity",ut="workbench.tree.expandMode",gt="workbench.tree.enableStickyScroll",pt="workbench.tree.stickyScrollMaxItemCount";function mt(e){return"alt"===e.getValue(Je)}class ft extends a.jG{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=mt(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(Je)&&(this.useAltAsMultipleSelectionModifier=mt(this.configurationService))})))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:(0,l.tX)(e)}isSelectionRangeChangeEvent(e){return(0,l.mh)(e)}}function vt(e,t){var i;const n=e.get(ye.pG),o=e.get(De.b),s=new a.Cm;return[{...t,keyboardNavigationDelegate:{mightProducePrintableCharacter:e=>o.mightProducePrintableCharacter(e)},smoothScrolling:Boolean(n.getValue(dt)),mouseWheelScrollSensitivity:n.getValue(ct),fastScrollSensitivity:n.getValue(ht),multipleSelectionController:null!==(i=t.multipleSelectionController)&&void 0!==i?i:s.add(new ft(n)),keyboardNavigationEventFilter:xt(o),scrollByPage:Boolean(n.getValue(st))},s]}let _t=class extends l.B8{constructor(e,t,i,n,o,s,r,a,l){const d=void 0!==o.horizontalScrolling?o.horizontalScrolling:Boolean(a.getValue(tt)),[c,h]=l.invokeFunction(vt,o);super(e,t,i,n,{keyboardSupport:!1,...c,horizontalScrolling:d}),this.disposables.add(h),this.contextKeyService=Ye(s,this),this.disposables.add(Xe(this.contextKeyService,this)),this.listSupportsMultiSelect=Fe.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==o.multipleSelectionSupport),ze.bindTo(this.contextKeyService).set(Boolean(o.selectionNavigation)),this.listHasSelectionOrFocus=We.bindTo(this.contextKeyService),this.listDoubleSelection=He.bindTo(this.contextKeyService),this.listMultiSelection=Ve.bindTo(this.contextKeyService),this.horizontalScrolling=o.horizontalScrolling,this._useAltAsMultipleSelectionModifier=mt(a),this.disposables.add(this.contextKeyService),this.disposables.add(r.register(this)),this.updateStyles(o.overrideStyles),this.disposables.add(this.onDidChangeSelection((()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length)}))}))),this.disposables.add(this.onDidChangeFocus((()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),this.disposables.add(a.onDidChangeConfiguration((e=>{e.affectsConfiguration(Je)&&(this._useAltAsMultipleSelectionModifier=mt(a));let t={};if(e.affectsConfiguration(tt)&&void 0===this.horizontalScrolling){const e=Boolean(a.getValue(tt));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(st)){const e=Boolean(a.getValue(st));t={...t,scrollByPage:e}}if(e.affectsConfiguration(dt)){const e=Boolean(a.getValue(dt));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(ct)){const e=a.getValue(ct);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(ht)){const e=a.getValue(ht);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new Ct(this,{configurationService:a,...o}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,Ie.t8)(e):Ie.IN)}};_t=Ne([Me(5,ke.fN),Me(6,Ae),Me(7,ye.pG),Me(8,Le._Y)],_t);let bt=class extends h{constructor(e,t,i,n,o,s,r,l,d){const c=void 0!==o.horizontalScrolling?o.horizontalScrolling:Boolean(l.getValue(tt)),[h,u]=d.invokeFunction(vt,o);super(e,t,i,n,{keyboardSupport:!1,...h,horizontalScrolling:c}),this.disposables=new a.Cm,this.disposables.add(u),this.contextKeyService=Ye(s,this),this.disposables.add(Xe(this.contextKeyService,this.widget)),this.horizontalScrolling=o.horizontalScrolling,this.listSupportsMultiSelect=Fe.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==o.multipleSelectionSupport),ze.bindTo(this.contextKeyService).set(Boolean(o.selectionNavigation)),this._useAltAsMultipleSelectionModifier=mt(l),this.disposables.add(this.contextKeyService),this.disposables.add(r.register(this)),this.updateStyles(o.overrideStyles),this.disposables.add(l.onDidChangeConfiguration((e=>{e.affectsConfiguration(Je)&&(this._useAltAsMultipleSelectionModifier=mt(l));let t={};if(e.affectsConfiguration(tt)&&void 0===this.horizontalScrolling){const e=Boolean(l.getValue(tt));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(st)){const e=Boolean(l.getValue(st));t={...t,scrollByPage:e}}if(e.affectsConfiguration(dt)){const e=Boolean(l.getValue(dt));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(ct)){const e=l.getValue(ct);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(ht)){const e=l.getValue(ht);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new Ct(this,{configurationService:l,...o}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,Ie.t8)(e):Ie.IN)}dispose(){this.disposables.dispose(),super.dispose()}};bt=Ne([Me(5,ke.fN),Me(6,Ae),Me(7,ye.pG),Me(8,Le._Y)],bt);let wt=class extends M{constructor(e,t,i,n,o,s,r,a,l,d){const c=void 0!==s.horizontalScrolling?s.horizontalScrolling:Boolean(l.getValue(tt)),[h,u]=d.invokeFunction(vt,s);super(e,t,i,n,o,{keyboardSupport:!1,...h,horizontalScrolling:c}),this.disposables.add(u),this.contextKeyService=Ye(r,this),this.disposables.add(Xe(this.contextKeyService,this)),this.listSupportsMultiSelect=Fe.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==s.multipleSelectionSupport),ze.bindTo(this.contextKeyService).set(Boolean(s.selectionNavigation)),this.listHasSelectionOrFocus=We.bindTo(this.contextKeyService),this.listDoubleSelection=He.bindTo(this.contextKeyService),this.listMultiSelection=Ve.bindTo(this.contextKeyService),this.horizontalScrolling=s.horizontalScrolling,this._useAltAsMultipleSelectionModifier=mt(l),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),this.updateStyles(s.overrideStyles),this.disposables.add(this.onDidChangeSelection((()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length)}))}))),this.disposables.add(this.onDidChangeFocus((()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)}))),this.disposables.add(l.onDidChangeConfiguration((e=>{e.affectsConfiguration(Je)&&(this._useAltAsMultipleSelectionModifier=mt(l));let t={};if(e.affectsConfiguration(tt)&&void 0===this.horizontalScrolling){const e=Boolean(l.getValue(tt));t={...t,horizontalScrolling:e}}if(e.affectsConfiguration(st)){const e=Boolean(l.getValue(st));t={...t,scrollByPage:e}}if(e.affectsConfiguration(dt)){const e=Boolean(l.getValue(dt));t={...t,smoothScrolling:e}}if(e.affectsConfiguration(ct)){const e=l.getValue(ct);t={...t,mouseWheelScrollSensitivity:e}}if(e.affectsConfiguration(ht)){const e=l.getValue(ht);t={...t,fastScrollSensitivity:e}}Object.keys(t).length>0&&this.updateOptions(t)}))),this.navigator=new kt(this,{configurationService:l,...s}),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),void 0!==e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){this.style(e?(0,Ie.t8)(e):Ie.IN)}dispose(){this.disposables.dispose(),super.dispose()}};wt=Ne([Me(6,ke.fN),Me(7,Ae),Me(8,ye.pG),Me(9,Le._Y)],wt);class yt extends a.jG{constructor(e,t){var i;super(),this.widget=e,this._onDidOpen=this._register(new r.vl),this.onDidOpen=this._onDidOpen.event,this._register(r.Jh.filter(this.widget.onDidChangeSelection,(e=>(0,n.kx)(e.browserEvent)))((e=>this.onSelectionFromKeyboard(e)))),this._register(this.widget.onPointer((e=>this.onPointer(e.element,e.browserEvent)))),this._register(this.widget.onMouseDblClick((e=>this.onMouseDblClick(e.element,e.browserEvent)))),"boolean"!=typeof(null==t?void 0:t.openOnSingleClick)&&(null==t?void 0:t.configurationService)?(this.openOnSingleClick="doubleClick"!==(null==t?void 0:t.configurationService.getValue(et)),this._register(null==t?void 0:t.configurationService.onDidChangeConfiguration((e=>{e.affectsConfiguration(et)&&(this.openOnSingleClick="doubleClick"!==(null==t?void 0:t.configurationService.getValue(et)))})))):this.openOnSingleClick=null===(i=null==t?void 0:t.openOnSingleClick)||void 0===i||i}onSelectionFromKeyboard(e){if(1!==e.elements.length)return;const t=e.browserEvent,i="boolean"!=typeof t.preserveFocus||t.preserveFocus,n="boolean"==typeof t.pinned?t.pinned:!i;this._open(this.getSelectedElement(),i,n,!1,e.browserEvent)}onPointer(e,t){if(!this.openOnSingleClick)return;if(2===t.detail)return;const i=1===t.button,n=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!0,i,n,t)}onMouseDblClick(e,t){if(!t)return;const i=t.target;if(i.classList.contains("monaco-tl-twistie")||i.classList.contains("monaco-icon-label")&&i.classList.contains("folder-icon")&&t.offsetX<16)return;const n=t.ctrlKey||t.metaKey||t.altKey;this._open(e,!1,!0,n,t)}_open(e,t,i,n,o){e&&this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:i,revealIfVisible:!0},sideBySide:n,element:e,browserEvent:o})}}class Ct extends yt{constructor(e,t){super(e,t),this.widget=e}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class kt extends yt{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class St extends yt{constructor(e,t){super(e,t)}getSelectedElement(){var e;return null!==(e=this.widget.getSelection()[0])&&void 0!==e?e:void 0}}function xt(e){let t=!1;return i=>{if(i.toKeyCodeChord().isModifierKey())return!1;if(t)return t=!1,!1;const n=e.softDispatch(i,i.target);return 1===n.kind?(t=!0,!1):(t=!1,0===n.kind)}}let Lt=class extends G{constructor(e,t,i,n,o,s,r,a,l){const{options:d,getTypeNavigationMode:c,disposable:h}=s.invokeFunction(Tt,o);super(e,t,i,n,d),this.disposables.add(h),this.internals=new Rt(this,o,c,o.overrideStyles,r,a,l),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};Lt=Ne([Me(5,Le._Y),Me(6,ke.fN),Me(7,Ae),Me(8,ye.pG)],Lt);let Dt=class extends X{constructor(e,t,i,n,o,s,r,a,l){const{options:d,getTypeNavigationMode:c,disposable:h}=s.invokeFunction(Tt,o);super(e,t,i,n,d),this.disposables.add(h),this.internals=new Rt(this,o,c,o.overrideStyles,r,a,l),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};Dt=Ne([Me(5,Le._Y),Me(6,ke.fN),Me(7,Ae),Me(8,ye.pG)],Dt);let Et=class extends be{constructor(e,t,i,n,o,s,r,a,l,d){const{options:c,getTypeNavigationMode:h,disposable:u}=r.invokeFunction(Tt,s);super(e,t,i,n,o,c),this.disposables.add(u),this.internals=new Rt(this,s,h,s.overrideStyles,a,l,d),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),void 0!==e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};Et=Ne([Me(6,Le._Y),Me(7,ke.fN),Me(8,Ae),Me(9,ye.pG)],Et);let It=class extends me{get onDidOpen(){return this.internals.onDidOpen}constructor(e,t,i,n,o,s,r,a,l,d){const{options:c,getTypeNavigationMode:h,disposable:u}=r.invokeFunction(Tt,s);super(e,t,i,n,o,c),this.disposables.add(u),this.internals=new Rt(this,s,h,s.overrideStyles,a,l,d),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};It=Ne([Me(6,Le._Y),Me(7,ke.fN),Me(8,Ae),Me(9,ye.pG)],It);let Nt=class extends _e{constructor(e,t,i,n,o,s,r,a,l,d,c){const{options:h,getTypeNavigationMode:u,disposable:g}=a.invokeFunction(Tt,r);super(e,t,i,n,o,s,h),this.disposables.add(g),this.internals=new Rt(this,r,u,r.overrideStyles,l,d,c),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};function Mt(e){const t=e.getValue(it);if("highlight"===t)return A.vD.Highlight;if("filter"===t)return A.vD.Filter;const i=e.getValue(ot);return"simple"===i||"highlight"===i?A.vD.Highlight:"filter"===i?A.vD.Filter:void 0}function At(e){const t=e.getValue(rt);return"fuzzy"===t?A.RD.Fuzzy:"contiguous"===t?A.RD.Contiguous:void 0}function Tt(e,t){var i;const n=e.get(ye.pG),o=e.get(xe.l),s=e.get(ke.fN),r=e.get(Le._Y),a=void 0!==t.horizontalScrolling?t.horizontalScrolling:Boolean(n.getValue(tt)),[d,c]=r.invokeFunction(vt,t),h=t.paddingBottom,u=void 0!==t.renderIndentGuides?t.renderIndentGuides:n.getValue(lt);return{getTypeNavigationMode:()=>{const e=s.getContextKeyValue(Qe);if("automatic"===e)return l._C.Automatic;if("trigger"===e)return l._C.Trigger;if(!1===s.getContextKeyValue(Ze))return l._C.Trigger;const t=n.getValue(nt);return"automatic"===t?l._C.Automatic:"trigger"===t?l._C.Trigger:void 0},disposable:c,options:{keyboardSupport:!1,...d,indent:"number"==typeof n.getValue(at)?n.getValue(at):void 0,renderIndentGuides:u,smoothScrolling:Boolean(n.getValue(dt)),defaultFindMode:Mt(n),defaultFindMatchType:At(n),horizontalScrolling:a,scrollByPage:Boolean(n.getValue(st)),paddingBottom:h,hideTwistiesOfChildlessElements:t.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:null!==(i=t.expandOnlyOnTwistieClick)&&void 0!==i?i:"doubleClick"===n.getValue(ut),contextViewProvider:o,findWidgetStyles:Ie.Dk,enableStickyScroll:Boolean(n.getValue(gt)),stickyScrollMaxItemCount:Number(n.getValue(pt))}}}Nt=Ne([Me(7,Le._Y),Me(8,ke.fN),Me(9,Ae),Me(10,ye.pG)],Nt);let Rt=class{get onDidOpen(){return this.navigator.onDidOpen}constructor(e,t,i,n,o,s,r){var a;this.tree=e,this.disposables=[],this.contextKeyService=Ye(o,e),this.disposables.push(Xe(this.contextKeyService,e)),this.listSupportsMultiSelect=Fe.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==t.multipleSelectionSupport),ze.bindTo(this.contextKeyService).set(Boolean(t.selectionNavigation)),this.listSupportFindWidget=je.bindTo(this.contextKeyService),this.listSupportFindWidget.set(null===(a=t.findWidgetEnabled)||void 0===a||a),this.hasSelectionOrFocus=We.bindTo(this.contextKeyService),this.hasDoubleSelection=He.bindTo(this.contextKeyService),this.hasMultiSelection=Ve.bindTo(this.contextKeyService),this.treeElementCanCollapse=Ue.bindTo(this.contextKeyService),this.treeElementHasParent=$e.bindTo(this.contextKeyService),this.treeElementCanExpand=Ke.bindTo(this.contextKeyService),this.treeElementHasChild=qe.bindTo(this.contextKeyService),this.treeFindOpen=Ge.bindTo(this.contextKeyService),this.treeStickyScrollFocused=Oe.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=mt(r),this.updateStyleOverrides(n);const l=()=>{const t=e.getFocus()[0];if(!t)return;const i=e.getNode(t);this.treeElementCanCollapse.set(i.collapsible&&!i.collapsed),this.treeElementHasParent.set(!!e.getParentElement(t)),this.treeElementCanExpand.set(i.collapsible&&i.collapsed),this.treeElementHasChild.set(!!e.getFirstElementChild(t))},d=new Set;d.add(Qe),d.add(Ze),this.disposables.push(this.contextKeyService,s.register(e),e.onDidChangeSelection((()=>{const t=e.getSelection(),i=e.getFocus();this.contextKeyService.bufferChangeEvents((()=>{this.hasSelectionOrFocus.set(t.length>0||i.length>0),this.hasMultiSelection.set(t.length>1),this.hasDoubleSelection.set(2===t.length)}))})),e.onDidChangeFocus((()=>{const t=e.getSelection(),i=e.getFocus();this.hasSelectionOrFocus.set(t.length>0||i.length>0),l()})),e.onDidChangeCollapseState(l),e.onDidChangeModel(l),e.onDidChangeFindOpenState((e=>this.treeFindOpen.set(e))),e.onDidChangeStickyScrollFocused((e=>this.treeStickyScrollFocused.set(e))),r.onDidChangeConfiguration((n=>{let o={};if(n.affectsConfiguration(Je)&&(this._useAltAsMultipleSelectionModifier=mt(r)),n.affectsConfiguration(at)){const e=r.getValue(at);o={...o,indent:e}}if(n.affectsConfiguration(lt)&&void 0===t.renderIndentGuides){const e=r.getValue(lt);o={...o,renderIndentGuides:e}}if(n.affectsConfiguration(dt)){const e=Boolean(r.getValue(dt));o={...o,smoothScrolling:e}}if(n.affectsConfiguration(it)||n.affectsConfiguration(ot)){const e=Mt(r);o={...o,defaultFindMode:e}}if(n.affectsConfiguration(nt)||n.affectsConfiguration(ot)){const e=i();o={...o,typeNavigationMode:e}}if(n.affectsConfiguration(rt)){const e=At(r);o={...o,defaultFindMatchType:e}}if(n.affectsConfiguration(tt)&&void 0===t.horizontalScrolling){const e=Boolean(r.getValue(tt));o={...o,horizontalScrolling:e}}if(n.affectsConfiguration(st)){const e=Boolean(r.getValue(st));o={...o,scrollByPage:e}}if(n.affectsConfiguration(ut)&&void 0===t.expandOnlyOnTwistieClick&&(o={...o,expandOnlyOnTwistieClick:"doubleClick"===r.getValue(ut)}),n.affectsConfiguration(gt)){const e=r.getValue(gt);o={...o,enableStickyScroll:e}}if(n.affectsConfiguration(pt)){const e=Math.max(1,r.getValue(pt));o={...o,stickyScrollMaxItemCount:e}}if(n.affectsConfiguration(ct)){const e=r.getValue(ct);o={...o,mouseWheelScrollSensitivity:e}}if(n.affectsConfiguration(ht)){const e=r.getValue(ht);o={...o,fastScrollSensitivity:e}}Object.keys(o).length>0&&e.updateOptions(o)})),this.contextKeyService.onDidChangeContext((t=>{t.affectsSome(d)&&e.updateOptions({typeNavigationMode:i()})}))),this.navigator=new St(e,{configurationService:r,...t}),this.disposables.push(this.navigator)}updateOptions(e){void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyleOverrides(e){this.tree.style(e?(0,Ie.t8)(e):Ie.IN)}dispose(){this.disposables=(0,a.AS)(this.disposables)}};Rt=Ne([Me(4,ke.fN),Me(5,Ae),Me(6,ye.pG)],Rt),Ee.O.as(Ce.Fd.Configuration).registerConfiguration({id:"workbench",order:7,title:(0,we.k)("workbenchConfigurationTitle","Workbench"),type:"object",properties:{[Je]:{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[(0,we.k)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),(0,we.k)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:(0,we.k)({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},[et]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,we.k)({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[tt]:{type:"boolean",default:!1,description:(0,we.k)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[st]:{type:"boolean",default:!1,description:(0,we.k)("list.scrollByPage","Controls whether clicks in the scrollbar scroll page by page.")},[at]:{type:"number",default:8,minimum:4,maximum:40,description:(0,we.k)("tree indent setting","Controls tree indentation in pixels.")},[lt]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:(0,we.k)("render tree indent guides","Controls whether the tree should render indent guides.")},[dt]:{type:"boolean",default:!1,description:(0,we.k)("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[ct]:{type:"number",default:1,markdownDescription:(0,we.k)("Mouse Wheel Scroll Sensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[ht]:{type:"number",default:5,markdownDescription:(0,we.k)("Fast Scroll Sensitivity","Scrolling speed multiplier when pressing `Alt`.")},[it]:{type:"string",enum:["highlight","filter"],enumDescriptions:[(0,we.k)("defaultFindModeSettingKey.highlight","Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."),(0,we.k)("defaultFindModeSettingKey.filter","Filter elements when searching.")],default:"highlight",description:(0,we.k)("defaultFindModeSettingKey","Controls the default find mode for lists and trees in the workbench.")},[ot]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[(0,we.k)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),(0,we.k)("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),(0,we.k)("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:(0,we.k)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."),deprecated:!0,deprecationMessage:(0,we.k)("keyboardNavigationSettingKeyDeprecated","Please use 'workbench.list.defaultFindMode' and\t'workbench.list.typeNavigationMode' instead.")},[rt]:{type:"string",enum:["fuzzy","contiguous"],enumDescriptions:[(0,we.k)("defaultFindMatchTypeSettingKey.fuzzy","Use fuzzy matching when searching."),(0,we.k)("defaultFindMatchTypeSettingKey.contiguous","Use contiguous matching when searching.")],default:"fuzzy",description:(0,we.k)("defaultFindMatchTypeSettingKey","Controls the type of matching used when searching lists and trees in the workbench.")},[ut]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,we.k)("expand mode","Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[gt]:{type:"boolean",default:!0,description:(0,we.k)("sticky scroll","Controls whether sticky scrolling is enabled in trees.")},[pt]:{type:"number",minimum:1,default:7,markdownDescription:(0,we.k)("sticky scroll maximum items","Controls the number of sticky elements displayed in the tree when {0} is enabled.","`#workbench.tree.enableStickyScroll#`")},[nt]:{type:"string",enum:["automatic","trigger"],default:"automatic",markdownDescription:(0,we.k)("typeNavigationMode2","Controls how type navigation works in lists and trees in the workbench. When set to `trigger`, type navigation begins once the `list.triggerTypeNavigation` command is run.")}}})},46441:(e,t,i)=>{"use strict";i.d(t,{$b:()=>a,Cr:()=>c,Dk:()=>h,rr:()=>r});var n=i(2106),o=i(10998),s=i(31540);const r=(0,i(82399).u1)("logService");var a;!function(e){e[e.Off=0]="Off",e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error"}(a||(a={}));const l=a.Info;class d extends o.jG{constructor(){super(...arguments),this.level=l,this._onDidChangeLogLevel=this._register(new n.vl),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(e){return this.level!==a.Off&&this.level<=e}}class c extends d{constructor(e=l,t=!0){super(),this.useColors=t,this.setLevel(e)}trace(e,...t){this.checkLogLevel(a.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",e,...t):console.log(e,...t))}debug(e,...t){this.checkLogLevel(a.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...t):console.log(e,...t))}info(e,...t){this.checkLogLevel(a.Info)&&(this.useColors?console.log("%c INFO","color: #33f",e,...t):console.log(e,...t))}warn(e,...t){this.checkLogLevel(a.Warning)&&(this.useColors?console.log("%c WARN","color: #993",e,...t):console.log(e,...t))}error(e,...t){this.checkLogLevel(a.Error)&&(this.useColors?console.log("%c ERR","color: #f33",e,...t):console.error(e,...t))}}class h extends d{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const t of this.loggers)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(const i of this.loggers)i.trace(e,...t)}debug(e,...t){for(const i of this.loggers)i.debug(e,...t)}info(e,...t){for(const i of this.loggers)i.info(e,...t)}warn(e,...t){for(const i of this.loggers)i.warn(e,...t)}error(e,...t){for(const i of this.loggers)i.error(e,...t)}dispose(){for(const e of this.loggers)e.dispose();super.dispose()}}new s.N1("logLevel",function(e){switch(e){case a.Trace:return"trace";case a.Debug:return"debug";case a.Info:return"info";case a.Warning:return"warn";case a.Error:return"error";case a.Off:return"off"}}(a.Info))},27619:(e,t,i)=>{"use strict";i.d(t,{DR:()=>l,cj:()=>n,oc:()=>o});var n,o,s=i(66459),r=i(3765),a=i(82399);!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(n||(n={})),function(e){e.compare=function(e,t){return t-e};const t=Object.create(null);t[e.Error]=(0,r.k)("sev.error","Error"),t[e.Warning]=(0,r.k)("sev.warning","Warning"),t[e.Info]=(0,r.k)("sev.info","Info"),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case s.A.Error:return e.Error;case s.A.Warning:return e.Warning;case s.A.Info:return e.Info;case s.A.Ignore:return e.Hint}},e.toSeverity=function(t){switch(t){case e.Error:return s.A.Error;case e.Warning:return s.A.Warning;case e.Info:return s.A.Info;case e.Hint:return s.A.Ignore}}}(n||(n={})),function(e){const t="";function i(e,i){const o=[t];return e.source?o.push(e.source.replace("¦","\\¦")):o.push(t),e.code?"string"==typeof e.code?o.push(e.code.replace("¦","\\¦")):o.push(e.code.value.replace("¦","\\¦")):o.push(t),void 0!==e.severity&&null!==e.severity?o.push(n.toString(e.severity)):o.push(t),e.message&&i?o.push(e.message.replace("¦","\\¦")):o.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?o.push(e.startLineNumber.toString()):o.push(t),void 0!==e.startColumn&&null!==e.startColumn?o.push(e.startColumn.toString()):o.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?o.push(e.endLineNumber.toString()):o.push(t),void 0!==e.endColumn&&null!==e.endColumn?o.push(e.endColumn.toString()):o.push(t),o.push(t),o.join("¦")}e.makeKey=function(e){return i(e,!0)},e.makeKeyOptionalMessage=i}(o||(o={}));const l=(0,a.u1)("markerService")},29879:(e,t,i)=>{"use strict";i.d(t,{AI:()=>s,Kz:()=>a,Ot:()=>r});var n=i(66459),o=i(82399),s=n.A;const r=(0,o.u1)("notificationService");class a{}},24975:(e,t,i)=>{"use strict";i.d(t,{V:()=>s,w:()=>r});var n=i(16311),o=i(12146);function s(e,t,i){return(0,o.eP)({debugName:()=>`Configuration Key "${e}"`},(t=>i.onDidChangeConfiguration((i=>{i.affectsConfiguration(e)&&t(i)}))),(()=>{var n;return null!==(n=i.getValue(e))&&void 0!==n?n:t}))}function r(e,t,i){const o=e.bindTo(t);return(0,n.zL)({debugName:()=>`Set Context Key "${e.key}"`},(e=>{o.set(i(e))}))}},54435:(e,t,i)=>{"use strict";i.d(t,{C:()=>n,e:()=>o});const n=(0,i(82399).u1)("openerService");function o(e){let t;const i=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(e.fragment);return i&&(t={startLineNumber:parseInt(i[1]),startColumn:i[2]?parseInt(i[2]):1,endLineNumber:i[4]?parseInt(i[4]):void 0,endColumn:i[4]?i[5]?parseInt(i[5]):1:void 0},e=e.with({fragment:""})),{selection:t,uri:e}}},44023:(e,t,i)=>{"use strict";i.d(t,{G5:()=>o,N8:()=>r,ke:()=>s});var n=i(82399);const o=(0,n.u1)("progressService");Object.freeze({total(){},worked(){},done(){}});class s{constructor(e){this.callback=e}report(e){this._value=e,this.callback(this._value)}}s.None=Object.freeze({report(){}});const r=(0,n.u1)("editorProgressService")},19381:(e,t,i)=>{"use strict";i.d(t,{Fd:()=>a,aJ:()=>n});var n,o=i(13338),s=i(10998),r=i(67167);!function(e){e[e.PRESERVE=0]="PRESERVE",e[e.LAST=1]="LAST"}(n||(n={}));const a={Quickaccess:"workbench.contributions.quickaccess"};r.O.add(a.Quickaccess,new class{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return 0===e.prefix.length?this.defaultProvider=e:this.providers.push(e),this.providers.sort(((e,t)=>t.prefix.length-e.prefix.length)),(0,s.s)((()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)}))}getQuickAccessProviders(){return(0,o.Yc)([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){return e&&this.providers.find((t=>e.startsWith(t.prefix)))||this.defaultProvider}})},73027:(e,t,i)=>{"use strict";i.d(t,{C1:()=>r,Fp:()=>a,GK:()=>l,Ym:()=>o,kF:()=>s});var n=i(82399);const o={ctrlCmd:!1,alt:!1};var s,r,a;!function(e){e[e.Blur=1]="Blur",e[e.Gesture=2]="Gesture",e[e.Other=3]="Other"}(s||(s={})),function(e){e[e.NONE=0]="NONE",e[e.FIRST=1]="FIRST",e[e.SECOND=2]="SECOND",e[e.LAST=3]="LAST"}(r||(r={})),function(e){e[e.First=1]="First",e[e.Second=2]="Second",e[e.Last=3]="Last",e[e.Next=4]="Next",e[e.Previous=5]="Previous",e[e.NextPage=6]="NextPage",e[e.PreviousPage=7]="PreviousPage",e[e.NextSeparator=8]="NextSeparator",e[e.PreviousSeparator=9]="PreviousSeparator"}(a||(a={})),new class{constructor(e){this.options=e}};const l=(0,n.u1)("quickInputService")},67167:(e,t,i)=>{"use strict";i.d(t,{O:()=>s});var n=i(87110),o=i(79359);const s=new class{constructor(){this.data=new Map}add(e,t){n.ok(o.Kg(e)),n.ok(o.Gv(t)),n.ok(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}},90840:(e,t,i)=>{"use strict";i.d(t,{CS:()=>p,pc:()=>v,LP:()=>m});var n,o,s=i(2106),r=i(10998),a=i(79359),l=i(65958),d=i(50180);!function(e){e[e.STORAGE_DOES_NOT_EXIST=0]="STORAGE_DOES_NOT_EXIST",e[e.STORAGE_IN_MEMORY=1]="STORAGE_IN_MEMORY"}(n||(n={})),function(e){e[e.None=0]="None",e[e.Initialized=1]="Initialized",e[e.Closed=2]="Closed"}(o||(o={}));class c extends r.jG{constructor(e,t=Object.create(null)){super(),this.database=e,this.options=t,this._onDidChangeStorage=this._register(new s.fV),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=o.None,this.cache=new Map,this.flushDelayer=this._register(new l.Th(c.DEFAULT_FLUSH_DELAY)),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal((e=>this.onDidChangeItemsExternal(e))))}onDidChangeItemsExternal(e){var t,i;this._onDidChangeStorage.pause();try{null===(t=e.changed)||void 0===t||t.forEach(((e,t)=>this.acceptExternal(t,e))),null===(i=e.deleted)||void 0===i||i.forEach((e=>this.acceptExternal(e,void 0)))}finally{this._onDidChangeStorage.resume()}}acceptExternal(e,t){if(this.state===o.Closed)return;let i=!1;(0,a.z)(t)?i=this.cache.delete(e):this.cache.get(e)!==t&&(this.cache.set(e,t),i=!0),i&&this._onDidChangeStorage.fire({key:e,external:!0})}get(e,t){const i=this.cache.get(e);return(0,a.z)(i)?t:i}getBoolean(e,t){const i=this.get(e);return(0,a.z)(i)?t:"true"===i}getNumber(e,t){const i=this.get(e);return(0,a.z)(i)?t:parseInt(i,10)}async set(e,t,i=!1){if(this.state===o.Closed)return;if((0,a.z)(t))return this.delete(e,i);const n=(0,a.Gv)(t)||Array.isArray(t)?(0,d.As)(t):String(t);return this.cache.get(e)!==n?(this.cache.set(e,n),this.pendingInserts.set(e,n),this.pendingDeletes.delete(e),this._onDidChangeStorage.fire({key:e,external:i}),this.doFlush()):void 0}async delete(e,t=!1){if(this.state!==o.Closed)return this.cache.delete(e)?(this.pendingDeletes.has(e)||this.pendingDeletes.add(e),this.pendingInserts.delete(e),this._onDidChangeStorage.fire({key:e,external:t}),this.doFlush()):void 0}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}async flushPending(){if(!this.hasPending)return;const e={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(e).finally((()=>{var e;if(!this.hasPending)for(;this.whenFlushedCallbacks.length;)null===(e=this.whenFlushedCallbacks.pop())||void 0===e||e()}))}async doFlush(e){return this.options.hint===n.STORAGE_IN_MEMORY?this.flushPending():this.flushDelayer.trigger((()=>this.flushPending()),e)}}c.DEFAULT_FLUSH_DELAY=100;class h{constructor(){this.onDidChangeItemsExternal=s.Jh.None,this.items=new Map}async updateItems(e){var t,i;null===(t=e.insert)||void 0===t||t.forEach(((e,t)=>this.items.set(t,e))),null===(i=e.delete)||void 0===i||i.forEach((e=>this.items.delete(e)))}}var u=i(82399);const g="__$__targetStorageMarker",p=(0,u.u1)("storageService");var m;!function(e){e[e.NONE=0]="NONE",e[e.SHUTDOWN=1]="SHUTDOWN"}(m||(m={}));class f extends r.jG{constructor(e={flushInterval:f.DEFAULT_FLUSH_INTERVAL}){super(),this.options=e,this._onDidChangeValue=this._register(new s.fV),this._onDidChangeTarget=this._register(new s.fV),this._onWillSaveState=this._register(new s.vl),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._profileKeyTargets=void 0,this._applicationKeyTargets=void 0}onDidChangeValue(e,t,i){return s.Jh.filter(this._onDidChangeValue.event,(i=>i.scope===e&&(void 0===t||i.key===t)),i)}emitDidChangeValue(e,t){const{key:i,external:n}=t;if(i===g){switch(e){case-1:this._applicationKeyTargets=void 0;break;case 0:this._profileKeyTargets=void 0;break;case 1:this._workspaceKeyTargets=void 0}this._onDidChangeTarget.fire({scope:e})}else this._onDidChangeValue.fire({scope:e,key:i,target:this.getKeyTargets(e)[i],external:n})}get(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.get(e,i)}getBoolean(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.getBoolean(e,i)}getNumber(e,t,i){var n;return null===(n=this.getStorage(t))||void 0===n?void 0:n.getNumber(e,i)}store(e,t,i,n,o=!1){(0,a.z)(t)?this.remove(e,i,o):this.withPausedEmitters((()=>{var s;this.updateKeyTarget(e,i,n),null===(s=this.getStorage(i))||void 0===s||s.set(e,t,o)}))}remove(e,t,i=!1){this.withPausedEmitters((()=>{var n;this.updateKeyTarget(e,t,void 0),null===(n=this.getStorage(t))||void 0===n||n.delete(e,i)}))}withPausedEmitters(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(e,t,i,n=!1){var o,s;const r=this.getKeyTargets(t);"number"==typeof i?r[e]!==i&&(r[e]=i,null===(o=this.getStorage(t))||void 0===o||o.set(g,JSON.stringify(r),n)):"number"==typeof r[e]&&(delete r[e],null===(s=this.getStorage(t))||void 0===s||s.set(g,JSON.stringify(r),n))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get profileKeyTargets(){return this._profileKeyTargets||(this._profileKeyTargets=this.loadKeyTargets(0)),this._profileKeyTargets}get applicationKeyTargets(){return this._applicationKeyTargets||(this._applicationKeyTargets=this.loadKeyTargets(-1)),this._applicationKeyTargets}getKeyTargets(e){switch(e){case-1:return this.applicationKeyTargets;case 0:return this.profileKeyTargets;default:return this.workspaceKeyTargets}}loadKeyTargets(e){const t=this.getStorage(e);return t?function(e){const t=e.get(g);if(t)try{return JSON.parse(t)}catch(e){}return Object.create(null)}(t):Object.create(null)}}f.DEFAULT_FLUSH_INTERVAL=6e4;class v extends f{constructor(){super(),this.applicationStorage=this._register(new c(new h,{hint:n.STORAGE_IN_MEMORY})),this.profileStorage=this._register(new c(new h,{hint:n.STORAGE_IN_MEMORY})),this.workspaceStorage=this._register(new c(new h,{hint:n.STORAGE_IN_MEMORY})),this._register(this.workspaceStorage.onDidChangeStorage((e=>this.emitDidChangeValue(1,e)))),this._register(this.profileStorage.onDidChangeStorage((e=>this.emitDidChangeValue(0,e)))),this._register(this.applicationStorage.onDidChangeStorage((e=>this.emitDidChangeValue(-1,e))))}getStorage(e){switch(e){case-1:return this.applicationStorage;case 0:return this.profileStorage;default:return this.workspaceStorage}}}},76243:(e,t,i)=>{"use strict";i.d(t,{k:()=>n});const n=(0,i(82399).u1)("telemetryService")},25654:(e,t,i)=>{"use strict";i.d(t,{Dk:()=>c,IN:()=>u,RE:()=>p,XS:()=>m,cv:()=>r,ho:()=>d,ir:()=>s,m$:()=>h,mk:()=>l,oJ:()=>a,t8:()=>g});var n=i(70559),o=i(94901);const s={keybindingLabelBackground:(0,n.GuP)(n.HDX),keybindingLabelForeground:(0,n.GuP)(n.eUu),keybindingLabelBorder:(0,n.GuP)(n.zUX),keybindingLabelBottomBorder:(0,n.GuP)(n.Qfh),keybindingLabelShadow:(0,n.GuP)(n.f9l)},r={buttonForeground:(0,n.GuP)(n.G_h),buttonSeparator:(0,n.GuP)(n.Q1$),buttonBackground:(0,n.GuP)(n.XJc),buttonHoverBackground:(0,n.GuP)(n.T9h),buttonSecondaryForeground:(0,n.GuP)(n.Inn),buttonSecondaryBackground:(0,n.GuP)(n.xOA),buttonSecondaryHoverBackground:(0,n.GuP)(n.nZG),buttonBorder:(0,n.GuP)(n.raQ)},a={progressBarBackground:(0,n.GuP)(n.BTi)},l={inputActiveOptionBorder:(0,n.GuP)(n.uNK),inputActiveOptionForeground:(0,n.GuP)(n.$$0),inputActiveOptionBackground:(0,n.GuP)(n.c1f)},d=((0,n.GuP)(n.OcU),(0,n.GuP)(n.C5U),(0,n.GuP)(n.t0B),(0,n.GuP)(n.CgL),(0,n.GuP)(n.FiB),(0,n.GuP)(n.f9l),(0,n.GuP)(n.b1q),(0,n.GuP)(n.tYX),(0,n.GuP)(n.JPj),(0,n.GuP)(n.bNw),(0,n.GuP)(n.vwp),{inputBackground:(0,n.GuP)(n.L4c),inputForeground:(0,n.GuP)(n.cws),inputBorder:(0,n.GuP)(n.Zgs),inputValidationInfoBorder:(0,n.GuP)(n.YSW),inputValidationInfoBackground:(0,n.GuP)(n.I$A),inputValidationInfoForeground:(0,n.GuP)(n.L9Z),inputValidationWarningBorder:(0,n.GuP)(n.C1n),inputValidationWarningBackground:(0,n.GuP)(n.ULt),inputValidationWarningForeground:(0,n.GuP)(n.T5N),inputValidationErrorBorder:(0,n.GuP)(n.eYZ),inputValidationErrorBackground:(0,n.GuP)(n._$n),inputValidationErrorForeground:(0,n.GuP)(n.h9z)}),c={listFilterWidgetBackground:(0,n.GuP)(n.pnl),listFilterWidgetOutline:(0,n.GuP)(n.fiM),listFilterWidgetNoMatchesOutline:(0,n.GuP)(n.P9Z),listFilterWidgetShadow:(0,n.GuP)(n.H8q),inputBoxStyles:d,toggleStyles:l},h={badgeBackground:(0,n.GuP)(n.WMx),badgeForeground:(0,n.GuP)(n.zRE),badgeBorder:(0,n.GuP)(n.b1q)},u=((0,n.GuP)(n.vV$),(0,n.GuP)(n.mc0),(0,n.GuP)(n.etE),(0,n.GuP)(n.etE),(0,n.GuP)(n.sAS),{listBackground:void 0,listInactiveFocusForeground:void 0,listFocusBackground:(0,n.GuP)(n.VFX),listFocusForeground:(0,n.GuP)(n.efJ),listFocusOutline:(0,n.GuP)(n.p7Y),listActiveSelectionBackground:(0,n.GuP)(n.Rjz),listActiveSelectionForeground:(0,n.GuP)(n.GVV),listActiveSelectionIconForeground:(0,n.GuP)(n.fED),listFocusAndSelectionOutline:(0,n.GuP)(n.gtq),listFocusAndSelectionBackground:(0,n.GuP)(n.Rjz),listFocusAndSelectionForeground:(0,n.GuP)(n.GVV),listInactiveSelectionBackground:(0,n.GuP)(n.uNx),listInactiveSelectionIconForeground:(0,n.GuP)(n.C9U),listInactiveSelectionForeground:(0,n.GuP)(n.f4y),listInactiveFocusBackground:(0,n.GuP)(n.CQ3),listInactiveFocusOutline:(0,n.GuP)(n.ijf),listHoverBackground:(0,n.GuP)(n.lO1),listHoverForeground:(0,n.GuP)(n.QRv),listDropOverBackground:(0,n.GuP)(n.Yoe),listDropBetweenBackground:(0,n.GuP)(n.yIp),listSelectionOutline:(0,n.GuP)(n.buw),listHoverOutline:(0,n.GuP)(n.buw),treeIndentGuidesStroke:(0,n.GuP)(n.U4U),treeInactiveIndentGuidesStroke:(0,n.GuP)(n.pft),treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:(0,n.GuP)(n.bXl),tableColumnsBorder:(0,n.GuP)(n.k5u),tableOddRowsBackgroundColor:(0,n.GuP)(n.sbQ)});function g(e){return function(e,t){const i={...t};for(const t in e){const o=e[t];i[t]=void 0!==o?(0,n.GuP)(o):void 0}return i}(e,u)}const p={selectBackground:(0,n.GuP)(n.rvE),selectListBackground:(0,n.GuP)(n.lWP),selectForeground:(0,n.GuP)(n.yqq),decoratorRightForeground:(0,n.GuP)(n.NBf),selectBorder:(0,n.GuP)(n.HcB),focusBorder:(0,n.GuP)(n.tAP),listFocusBackground:(0,n.GuP)(n.AlL),listInactiveSelectionIconForeground:(0,n.GuP)(n.c7i),listFocusForeground:(0,n.GuP)(n.nH),listFocusOutline:(0,n.HP_)(n.buw,o.Q1.transparent.toString()),listHoverBackground:(0,n.GuP)(n.lO1),listHoverForeground:(0,n.GuP)(n.QRv),listHoverOutline:(0,n.GuP)(n.buw),selectListBorder:(0,n.GuP)(n.sIe),listBackground:void 0,listActiveSelectionBackground:void 0,listActiveSelectionForeground:void 0,listActiveSelectionIconForeground:void 0,listFocusAndSelectionBackground:void 0,listDropOverBackground:void 0,listDropBetweenBackground:void 0,listInactiveSelectionBackground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusBackground:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listFocusAndSelectionForeground:void 0,listFocusAndSelectionOutline:void 0,listInactiveFocusForeground:void 0,tableColumnsBorder:void 0,tableOddRowsBackgroundColor:void 0,treeIndentGuidesStroke:void 0,treeInactiveIndentGuidesStroke:void 0,treeStickyScrollBackground:void 0,treeStickyScrollBorder:void 0,treeStickyScrollShadow:void 0},m={shadowColor:(0,n.GuP)(n.f9l),borderColor:(0,n.GuP)(n.g$2),foregroundColor:(0,n.GuP)(n.dd_),backgroundColor:(0,n.GuP)(n.c6Y),selectionForegroundColor:(0,n.GuP)(n.pmr),selectionBackgroundColor:(0,n.GuP)(n.Ux$),selectionBorderColor:(0,n.GuP)(n.SNb),separatorColor:(0,n.GuP)(n.D7X),scrollbarShadow:(0,n.GuP)(n.bXl),scrollbarSliderBackground:(0,n.GuP)(n.gnV),scrollbarSliderHoverBackground:(0,n.GuP)(n.cI_),scrollbarSliderActiveBackground:(0,n.GuP)(n.mhZ)}},70559:(e,t,i)=>{"use strict";i.d(t,{FdG:()=>n.Fd,buw:()=>c,GuP:()=>n.Gu,Bbc:()=>n.Bb,HP_:()=>n.HP,WMx:()=>u,zRE:()=>g,sAS:()=>de,vV$:()=>ae,etE:()=>le,mc0:()=>re,XJc:()=>Ye,raQ:()=>Je,G_h:()=>Qe,T9h:()=>Xe,xOA:()=>tt,Inn:()=>et,nZG:()=>it,Q1$:()=>Ze,OcU:()=>nt,C5U:()=>st,t0B:()=>ot,b1q:()=>d,EY1:()=>Y,ZEf:()=>X,Gj6:()=>J,ld8:()=>te,$BZ:()=>ie,GNm:()=>ee,Ztu:()=>A,YtV:()=>b,AN$:()=>x,Rbi:()=>S,f3U:()=>F,Ubg:()=>B,ECk:()=>H,p8Y:()=>W,S5J:()=>V,By2:()=>w,i61:()=>M,WfR:()=>z,oZ8:()=>j,tan:()=>P,IIb:()=>N,pOz:()=>I,WL6:()=>$,P6i:()=>U,B2L:()=>Q,sjA:()=>G,_pU:()=>q,HwT:()=>K,seu:()=>T,rm4:()=>R,QwA:()=>O,whs:()=>L,Stt:()=>E,Hng:()=>D,CgL:()=>y,sIe:()=>k,FiB:()=>C,tAP:()=>l,CU6:()=>r,t4B:()=>a,c1f:()=>Re,uNK:()=>Te,$$0:()=>Pe,L4c:()=>Ne,Zgs:()=>Ae,cws:()=>Me,_$n:()=>ze,eYZ:()=>Ue,h9z:()=>je,I$A:()=>Oe,YSW:()=>Be,L9Z:()=>Fe,ULt:()=>We,C1n:()=>Ve,T5N:()=>He,HDX:()=>rt,zUX:()=>lt,Qfh:()=>dt,eUu:()=>at,Rjz:()=>pt,GVV:()=>mt,fED:()=>ft,yIp:()=>xt,Yoe:()=>St,pnl:()=>Et,P9Z:()=>Nt,fiM:()=>It,H8q:()=>Mt,gtq:()=>gt,VFX:()=>ct,efJ:()=>ht,eMz:()=>Dt,p7Y:()=>ut,QI5:()=>Lt,lO1:()=>Ct,QRv:()=>kt,CQ3:()=>wt,ijf:()=>yt,uNx:()=>vt,f4y:()=>_t,C9U:()=>bt,c6Y:()=>Bt,g$2:()=>Ot,dd_:()=>Ft,Ux$:()=>Ht,SNb:()=>Vt,pmr:()=>Wt,D7X:()=>zt,ILr:()=>Ee,yLC:()=>De,AjU:()=>Ce,K1Z:()=>Ie,KoI:()=>xe,yr0:()=>Se,Xp1:()=>ke,uMG:()=>Le,yLr:()=>n.yL,fAP:()=>ve,z5H:()=>_e,iwL:()=>qt,NBf:()=>Kt,tYX:()=>be,bNw:()=>ye,JPj:()=>we,BTi:()=>_,ELA:()=>jt,HJZ:()=>Ut,AlL:()=>Yt,nH:()=>Qt,c7i:()=>Zt,er1:()=>$t,x1A:()=>n.x1,bXl:()=>p,mhZ:()=>v,gnV:()=>m,cI_:()=>f,rvE:()=>$e,HcB:()=>Ge,yqq:()=>qe,lWP:()=>Ke,k5u:()=>Rt,sbQ:()=>Pt,vwp:()=>h,JO0:()=>n.JO,pft:()=>Tt,U4U:()=>At,DSL:()=>oe,f9l:()=>ne});var n=i(87676),o=i(3765),s=i(94901);const r=(0,n.x1)("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},o.k("foreground","Overall foreground color. This color is only used if not overridden by a component.")),a=((0,n.x1)("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},o.k("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),(0,n.x1)("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},o.k("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),(0,n.x1)("descriptionForeground",{light:"#717171",dark:(0,n.JO)(r,.7),hcDark:(0,n.JO)(r,.7),hcLight:(0,n.JO)(r,.7)},o.k("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),(0,n.x1)("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},o.k("iconForeground","The default color for icons in the workbench."))),l=(0,n.x1)("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},o.k("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),d=(0,n.x1)("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},o.k("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),c=(0,n.x1)("contrastActiveBorder",{light:null,dark:null,hcDark:l,hcLight:l},o.k("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),h=((0,n.x1)("selection.background",null,o.k("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),(0,n.x1)("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},o.k("textLinkForeground","Foreground color for links in text."))),u=((0,n.x1)("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},o.k("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),(0,n.x1)("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:s.Q1.black,hcLight:"#292929"},o.k("textSeparatorForeground","Color for text separators.")),(0,n.x1)("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},o.k("textPreformatForeground","Foreground color for preformatted text segments.")),(0,n.x1)("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},o.k("textPreformatBackground","Background color for preformatted text segments.")),(0,n.x1)("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},o.k("textBlockQuoteBackground","Background color for block quotes in text.")),(0,n.x1)("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:s.Q1.white,hcLight:"#292929"},o.k("textBlockQuoteBorder","Border color for block quotes in text.")),(0,n.x1)("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:s.Q1.black,hcLight:"#F2F2F2"},o.k("textCodeBlockBackground","Background color for code blocks in text.")),(0,n.x1)("sash.hoverBorder",l,o.k("sashActiveBorder","Border color of active sashes.")),(0,n.x1)("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:s.Q1.black,hcLight:"#0F4A85"},o.k("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count."))),g=(0,n.x1)("badge.foreground",{dark:s.Q1.white,light:"#333",hcDark:s.Q1.white,hcLight:s.Q1.white},o.k("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),p=(0,n.x1)("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},o.k("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),m=(0,n.x1)("scrollbarSlider.background",{dark:s.Q1.fromHex("#797979").transparent(.4),light:s.Q1.fromHex("#646464").transparent(.4),hcDark:(0,n.JO)(d,.6),hcLight:(0,n.JO)(d,.4)},o.k("scrollbarSliderBackground","Scrollbar slider background color.")),f=(0,n.x1)("scrollbarSlider.hoverBackground",{dark:s.Q1.fromHex("#646464").transparent(.7),light:s.Q1.fromHex("#646464").transparent(.7),hcDark:(0,n.JO)(d,.8),hcLight:(0,n.JO)(d,.8)},o.k("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),v=(0,n.x1)("scrollbarSlider.activeBackground",{dark:s.Q1.fromHex("#BFBFBF").transparent(.4),light:s.Q1.fromHex("#000000").transparent(.6),hcDark:d,hcLight:d},o.k("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),_=(0,n.x1)("progressBar.background",{dark:s.Q1.fromHex("#0E70C0"),light:s.Q1.fromHex("#0E70C0"),hcDark:d,hcLight:d},o.k("progressBarBackground","Background color of the progress bar that can show for long running operations.")),b=(0,n.x1)("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:s.Q1.black,hcLight:s.Q1.white},o.k("editorBackground","Editor background color.")),w=(0,n.x1)("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:s.Q1.white,hcLight:r},o.k("editorForeground","Editor default foreground color.")),y=((0,n.x1)("editorStickyScroll.background",b,o.k("editorStickyScrollBackground","Background color of sticky scroll in the editor")),(0,n.x1)("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},o.k("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),(0,n.x1)("editorStickyScroll.border",{dark:null,light:null,hcDark:d,hcLight:d},o.k("editorStickyScrollBorder","Border color of sticky scroll in the editor")),(0,n.x1)("editorStickyScroll.shadow",p,o.k("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor")),(0,n.x1)("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:s.Q1.white},o.k("editorWidgetBackground","Background color of editor widgets, such as find/replace."))),C=(0,n.x1)("editorWidget.foreground",r,o.k("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),k=(0,n.x1)("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:d,hcLight:d},o.k("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),S=((0,n.x1)("editorWidget.resizeBorder",null,o.k("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),(0,n.x1)("editorError.background",null,o.k("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),(0,n.x1)("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},o.k("editorError.foreground","Foreground color of error squigglies in the editor."))),x=(0,n.x1)("editorError.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},o.k("errorBorder","If set, color of double underlines for errors in the editor.")),L=(0,n.x1)("editorWarning.background",null,o.k("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),D=(0,n.x1)("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},o.k("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),E=(0,n.x1)("editorWarning.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#FFCC00").transparent(.8),hcLight:s.Q1.fromHex("#FFCC00").transparent(.8)},o.k("warningBorder","If set, color of double underlines for warnings in the editor.")),I=((0,n.x1)("editorInfo.background",null,o.k("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),(0,n.x1)("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},o.k("editorInfo.foreground","Foreground color of info squigglies in the editor."))),N=(0,n.x1)("editorInfo.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},o.k("infoBorder","If set, color of double underlines for infos in the editor.")),M=(0,n.x1)("editorHint.foreground",{dark:s.Q1.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},o.k("editorHint.foreground","Foreground color of hint squigglies in the editor.")),A=((0,n.x1)("editorHint.border",{dark:null,light:null,hcDark:s.Q1.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},o.k("hintBorder","If set, color of double underlines for hints in the editor.")),(0,n.x1)("editorLink.activeForeground",{dark:"#4E94CE",light:s.Q1.blue,hcDark:s.Q1.cyan,hcLight:"#292929"},o.k("activeLinkForeground","Color of active links."))),T=(0,n.x1)("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},o.k("editorSelectionBackground","Color of the editor selection.")),R=(0,n.x1)("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:s.Q1.white},o.k("editorSelectionForeground","Color of the selected text for high contrast.")),P=(0,n.x1)("editor.inactiveSelectionBackground",{light:(0,n.JO)(T,.5),dark:(0,n.JO)(T,.5),hcDark:(0,n.JO)(T,.7),hcLight:(0,n.JO)(T,.5)},o.k("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),O=(0,n.x1)("editor.selectionHighlightBackground",{light:(0,n.oG)(T,b,.3,.6),dark:(0,n.oG)(T,b,.3,.6),hcDark:null,hcLight:null},o.k("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),F=((0,n.x1)("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:c,hcLight:c},o.k("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),(0,n.x1)("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},o.k("editorFindMatch","Color of the current search match.")),(0,n.x1)("editor.findMatchForeground",null,o.k("editorFindMatchForeground","Text color of the current search match."))),B=(0,n.x1)("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},o.k("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),W=(0,n.x1)("editor.findMatchHighlightForeground",null,o.k("findMatchHighlightForeground","Foreground color of the other search matches."),!0),H=((0,n.x1)("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},o.k("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),(0,n.x1)("editor.findMatchBorder",{light:null,dark:null,hcDark:c,hcLight:c},o.k("editorFindMatchBorder","Border color of the current search match.")),(0,n.x1)("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:c,hcLight:c},o.k("findMatchHighlightBorder","Border color of the other search matches."))),V=(0,n.x1)("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:(0,n.JO)(c,.4),hcLight:(0,n.JO)(c,.4)},o.k("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),z=((0,n.x1)("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},o.k("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),(0,n.x1)("editorHoverWidget.background",y,o.k("hoverBackground","Background color of the editor hover."))),j=((0,n.x1)("editorHoverWidget.foreground",C,o.k("hoverForeground","Foreground color of the editor hover.")),(0,n.x1)("editorHoverWidget.border",k,o.k("hoverBorder","Border color of the editor hover."))),U=((0,n.x1)("editorHoverWidget.statusBarBackground",{dark:(0,n.a)(z,.2),light:(0,n.e$)(z,.05),hcDark:y,hcLight:y},o.k("statusBarBackground","Background color of the editor hover status bar.")),(0,n.x1)("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:s.Q1.white,hcLight:s.Q1.black},o.k("editorInlayHintForeground","Foreground color of inline hints"))),$=(0,n.x1)("editorInlayHint.background",{dark:(0,n.JO)(u,.1),light:(0,n.JO)(u,.1),hcDark:(0,n.JO)(s.Q1.white,.1),hcLight:(0,n.JO)(u,.1)},o.k("editorInlayHintBackground","Background color of inline hints")),K=(0,n.x1)("editorInlayHint.typeForeground",U,o.k("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),q=(0,n.x1)("editorInlayHint.typeBackground",$,o.k("editorInlayHintBackgroundTypes","Background color of inline hints for types")),G=(0,n.x1)("editorInlayHint.parameterForeground",U,o.k("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),Q=(0,n.x1)("editorInlayHint.parameterBackground",$,o.k("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),Z=(0,n.x1)("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},o.k("editorLightBulbForeground","The color used for the lightbulb actions icon.")),Y=((0,n.x1)("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},o.k("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),(0,n.x1)("editorLightBulbAi.foreground",Z,o.k("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),(0,n.x1)("editor.snippetTabstopHighlightBackground",{dark:new s.Q1(new s.bU(124,124,124,.3)),light:new s.Q1(new s.bU(10,50,100,.2)),hcDark:new s.Q1(new s.bU(124,124,124,.3)),hcLight:new s.Q1(new s.bU(10,50,100,.2))},o.k("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),(0,n.x1)("editor.snippetTabstopHighlightBorder",null,o.k("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),(0,n.x1)("editor.snippetFinalTabstopHighlightBackground",null,o.k("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),(0,n.x1)("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new s.Q1(new s.bU(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},o.k("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),new s.Q1(new s.bU(155,185,85,.2))),X=new s.Q1(new s.bU(255,0,0,.2)),J=(0,n.x1)("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},o.k("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),ee=(0,n.x1)("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},o.k("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),te=((0,n.x1)("diffEditor.insertedLineBackground",{dark:Y,light:Y,hcDark:null,hcLight:null},o.k("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),(0,n.x1)("diffEditor.removedLineBackground",{dark:X,light:X,hcDark:null,hcLight:null},o.k("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),(0,n.x1)("diffEditorGutter.insertedLineBackground",null,o.k("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),(0,n.x1)("diffEditorGutter.removedLineBackground",null,o.k("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),(0,n.x1)("diffEditorOverview.insertedForeground",null,o.k("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content."))),ie=(0,n.x1)("diffEditorOverview.removedForeground",null,o.k("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),ne=((0,n.x1)("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},o.k("diffEditorInsertedOutline","Outline color for the text that got inserted.")),(0,n.x1)("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},o.k("diffEditorRemovedOutline","Outline color for text that got removed.")),(0,n.x1)("diffEditor.border",{dark:null,light:null,hcDark:d,hcLight:d},o.k("diffEditorBorder","Border color between the two text editors.")),(0,n.x1)("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},o.k("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),(0,n.x1)("diffEditor.unchangedRegionBackground","sideBar.background",o.k("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),(0,n.x1)("diffEditor.unchangedRegionForeground","foreground",o.k("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),(0,n.x1)("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},o.k("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),(0,n.x1)("widget.shadow",{dark:(0,n.JO)(s.Q1.black,.36),light:(0,n.JO)(s.Q1.black,.16),hcDark:null,hcLight:null},o.k("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),oe=(0,n.x1)("widget.border",{dark:null,light:null,hcDark:d,hcLight:d},o.k("widgetBorder","Border color of widgets such as find/replace inside the editor.")),se=(0,n.x1)("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},o.k("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse")),re=((0,n.x1)("toolbar.hoverOutline",{dark:null,light:null,hcDark:c,hcLight:c},o.k("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),(0,n.x1)("toolbar.activeBackground",{dark:(0,n.a)(se,.1),light:(0,n.e$)(se,.1),hcDark:null,hcLight:null},o.k("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),(0,n.x1)("breadcrumb.foreground",(0,n.JO)(r,.8),o.k("breadcrumbsFocusForeground","Color of focused breadcrumb items."))),ae=(0,n.x1)("breadcrumb.background",b,o.k("breadcrumbsBackground","Background color of breadcrumb items.")),le=(0,n.x1)("breadcrumb.focusForeground",{light:(0,n.e$)(r,.2),dark:(0,n.a)(r,.1),hcDark:(0,n.a)(r,.1),hcLight:(0,n.a)(r,.1)},o.k("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),de=(0,n.x1)("breadcrumb.activeSelectionForeground",{light:(0,n.e$)(r,.2),dark:(0,n.a)(r,.1),hcDark:(0,n.a)(r,.1),hcLight:(0,n.a)(r,.1)},o.k("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),ce=((0,n.x1)("breadcrumbPicker.background",y,o.k("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),s.Q1.fromHex("#40C8AE").transparent(.5)),he=s.Q1.fromHex("#40A6FF").transparent(.5),ue=s.Q1.fromHex("#606060").transparent(.4),ge=(0,n.x1)("merge.currentHeaderBackground",{dark:ce,light:ce,hcDark:null,hcLight:null},o.k("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),pe=((0,n.x1)("merge.currentContentBackground",(0,n.JO)(ge,.4),o.k("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),(0,n.x1)("merge.incomingHeaderBackground",{dark:he,light:he,hcDark:null,hcLight:null},o.k("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),me=((0,n.x1)("merge.incomingContentBackground",(0,n.JO)(pe,.4),o.k("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),(0,n.x1)("merge.commonHeaderBackground",{dark:ue,light:ue,hcDark:null,hcLight:null},o.k("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0)),fe=((0,n.x1)("merge.commonContentBackground",(0,n.JO)(me,.4),o.k("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),(0,n.x1)("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},o.k("mergeBorder","Border color on headers and the splitter in inline merge-conflicts."))),ve=((0,n.x1)("editorOverviewRuler.currentContentForeground",{dark:(0,n.JO)(ge,1),light:(0,n.JO)(ge,1),hcDark:fe,hcLight:fe},o.k("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),(0,n.x1)("editorOverviewRuler.incomingContentForeground",{dark:(0,n.JO)(pe,1),light:(0,n.JO)(pe,1),hcDark:fe,hcLight:fe},o.k("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),(0,n.x1)("editorOverviewRuler.commonContentForeground",{dark:(0,n.JO)(me,1),light:(0,n.JO)(me,1),hcDark:fe,hcLight:fe},o.k("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),(0,n.x1)("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:""},o.k("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0)),_e=(0,n.x1)("editorOverviewRuler.selectionHighlightForeground","#A0A0A0CC",o.k("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),be=(0,n.x1)("problemsErrorIcon.foreground",S,o.k("problemsErrorIconForeground","The color used for the problems error icon.")),we=(0,n.x1)("problemsWarningIcon.foreground",D,o.k("problemsWarningIconForeground","The color used for the problems warning icon.")),ye=(0,n.x1)("problemsInfoIcon.foreground",I,o.k("problemsInfoIconForeground","The color used for the problems info icon.")),Ce=(0,n.x1)("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},o.k("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),ke=(0,n.x1)("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},o.k("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),Se=(0,n.x1)("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},o.k("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),xe=(0,n.x1)("minimap.infoHighlight",{dark:I,light:I,hcDark:N,hcLight:N},o.k("minimapInfo","Minimap marker color for infos.")),Le=(0,n.x1)("minimap.warningHighlight",{dark:D,light:D,hcDark:E,hcLight:E},o.k("overviewRuleWarning","Minimap marker color for warnings.")),De=(0,n.x1)("minimap.errorHighlight",{dark:new s.Q1(new s.bU(255,18,18,.7)),light:new s.Q1(new s.bU(255,18,18,.7)),hcDark:new s.Q1(new s.bU(255,50,50,1)),hcLight:"#B5200D"},o.k("minimapError","Minimap marker color for errors.")),Ee=(0,n.x1)("minimap.background",null,o.k("minimapBackground","Minimap background color.")),Ie=(0,n.x1)("minimap.foregroundOpacity",s.Q1.fromHex("#000f"),o.k("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),Ne=((0,n.x1)("minimapSlider.background",(0,n.JO)(m,.5),o.k("minimapSliderBackground","Minimap slider background color.")),(0,n.x1)("minimapSlider.hoverBackground",(0,n.JO)(f,.5),o.k("minimapSliderHoverBackground","Minimap slider background color when hovering.")),(0,n.x1)("minimapSlider.activeBackground",(0,n.JO)(v,.5),o.k("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),(0,n.x1)("charts.foreground",r,o.k("chartsForeground","The foreground color used in charts.")),(0,n.x1)("charts.lines",(0,n.JO)(r,.5),o.k("chartsLines","The color used for horizontal lines in charts.")),(0,n.x1)("charts.red",S,o.k("chartsRed","The red color used in chart visualizations.")),(0,n.x1)("charts.blue",I,o.k("chartsBlue","The blue color used in chart visualizations.")),(0,n.x1)("charts.yellow",D,o.k("chartsYellow","The yellow color used in chart visualizations.")),(0,n.x1)("charts.orange",Ce,o.k("chartsOrange","The orange color used in chart visualizations.")),(0,n.x1)("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},o.k("chartsGreen","The green color used in chart visualizations.")),(0,n.x1)("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},o.k("chartsPurple","The purple color used in chart visualizations.")),(0,n.x1)("input.background",{dark:"#3C3C3C",light:s.Q1.white,hcDark:s.Q1.black,hcLight:s.Q1.white},o.k("inputBoxBackground","Input box background."))),Me=(0,n.x1)("input.foreground",r,o.k("inputBoxForeground","Input box foreground.")),Ae=(0,n.x1)("input.border",{dark:null,light:null,hcDark:d,hcLight:d},o.k("inputBoxBorder","Input box border.")),Te=(0,n.x1)("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:d,hcLight:d},o.k("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),Re=((0,n.x1)("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},o.k("inputOption.hoverBackground","Background color of activated options in input fields.")),(0,n.x1)("inputOption.activeBackground",{dark:(0,n.JO)(l,.4),light:(0,n.JO)(l,.2),hcDark:s.Q1.transparent,hcLight:s.Q1.transparent},o.k("inputOption.activeBackground","Background hover color of options in input fields."))),Pe=(0,n.x1)("inputOption.activeForeground",{dark:s.Q1.white,light:s.Q1.black,hcDark:r,hcLight:r},o.k("inputOption.activeForeground","Foreground color of activated options in input fields.")),Oe=((0,n.x1)("input.placeholderForeground",{light:(0,n.JO)(r,.5),dark:(0,n.JO)(r,.5),hcDark:(0,n.JO)(r,.7),hcLight:(0,n.JO)(r,.7)},o.k("inputPlaceholderForeground","Input box foreground color for placeholder text.")),(0,n.x1)("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:s.Q1.black,hcLight:s.Q1.white},o.k("inputValidationInfoBackground","Input validation background color for information severity."))),Fe=(0,n.x1)("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:r},o.k("inputValidationInfoForeground","Input validation foreground color for information severity.")),Be=(0,n.x1)("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:d,hcLight:d},o.k("inputValidationInfoBorder","Input validation border color for information severity.")),We=(0,n.x1)("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:s.Q1.black,hcLight:s.Q1.white},o.k("inputValidationWarningBackground","Input validation background color for warning severity.")),He=(0,n.x1)("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:r},o.k("inputValidationWarningForeground","Input validation foreground color for warning severity.")),Ve=(0,n.x1)("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:d,hcLight:d},o.k("inputValidationWarningBorder","Input validation border color for warning severity.")),ze=(0,n.x1)("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:s.Q1.black,hcLight:s.Q1.white},o.k("inputValidationErrorBackground","Input validation background color for error severity.")),je=(0,n.x1)("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:r},o.k("inputValidationErrorForeground","Input validation foreground color for error severity.")),Ue=(0,n.x1)("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:d,hcLight:d},o.k("inputValidationErrorBorder","Input validation border color for error severity.")),$e=(0,n.x1)("dropdown.background",{dark:"#3C3C3C",light:s.Q1.white,hcDark:s.Q1.black,hcLight:s.Q1.white},o.k("dropdownBackground","Dropdown background.")),Ke=(0,n.x1)("dropdown.listBackground",{dark:null,light:null,hcDark:s.Q1.black,hcLight:s.Q1.white},o.k("dropdownListBackground","Dropdown list background.")),qe=(0,n.x1)("dropdown.foreground",{dark:"#F0F0F0",light:r,hcDark:s.Q1.white,hcLight:r},o.k("dropdownForeground","Dropdown foreground.")),Ge=(0,n.x1)("dropdown.border",{dark:$e,light:"#CECECE",hcDark:d,hcLight:d},o.k("dropdownBorder","Dropdown border.")),Qe=(0,n.x1)("button.foreground",s.Q1.white,o.k("buttonForeground","Button foreground color.")),Ze=(0,n.x1)("button.separator",(0,n.JO)(Qe,.4),o.k("buttonSeparator","Button separator color.")),Ye=(0,n.x1)("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},o.k("buttonBackground","Button background color.")),Xe=(0,n.x1)("button.hoverBackground",{dark:(0,n.a)(Ye,.2),light:(0,n.e$)(Ye,.2),hcDark:Ye,hcLight:Ye},o.k("buttonHoverBackground","Button background color when hovering.")),Je=(0,n.x1)("button.border",d,o.k("buttonBorder","Button border color.")),et=(0,n.x1)("button.secondaryForeground",{dark:s.Q1.white,light:s.Q1.white,hcDark:s.Q1.white,hcLight:r},o.k("buttonSecondaryForeground","Secondary button foreground color.")),tt=(0,n.x1)("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:s.Q1.white},o.k("buttonSecondaryBackground","Secondary button background color.")),it=(0,n.x1)("button.secondaryHoverBackground",{dark:(0,n.a)(tt,.2),light:(0,n.e$)(tt,.2),hcDark:null,hcLight:null},o.k("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),nt=(0,n.x1)("checkbox.background",$e,o.k("checkbox.background","Background color of checkbox widget.")),ot=((0,n.x1)("checkbox.selectBackground",y,o.k("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),(0,n.x1)("checkbox.foreground",qe,o.k("checkbox.foreground","Foreground color of checkbox widget."))),st=(0,n.x1)("checkbox.border",Ge,o.k("checkbox.border","Border color of checkbox widget.")),rt=((0,n.x1)("checkbox.selectBorder",a,o.k("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),(0,n.x1)("keybindingLabel.background",{dark:new s.Q1(new s.bU(128,128,128,.17)),light:new s.Q1(new s.bU(221,221,221,.4)),hcDark:s.Q1.transparent,hcLight:s.Q1.transparent},o.k("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut."))),at=(0,n.x1)("keybindingLabel.foreground",{dark:s.Q1.fromHex("#CCCCCC"),light:s.Q1.fromHex("#555555"),hcDark:s.Q1.white,hcLight:r},o.k("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),lt=(0,n.x1)("keybindingLabel.border",{dark:new s.Q1(new s.bU(51,51,51,.6)),light:new s.Q1(new s.bU(204,204,204,.4)),hcDark:new s.Q1(new s.bU(111,195,223)),hcLight:d},o.k("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),dt=(0,n.x1)("keybindingLabel.bottomBorder",{dark:new s.Q1(new s.bU(68,68,68,.6)),light:new s.Q1(new s.bU(187,187,187,.4)),hcDark:new s.Q1(new s.bU(111,195,223)),hcLight:r},o.k("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),ct=(0,n.x1)("list.focusBackground",null,o.k("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ht=(0,n.x1)("list.focusForeground",null,o.k("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ut=(0,n.x1)("list.focusOutline",{dark:l,light:l,hcDark:c,hcLight:c},o.k("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),gt=(0,n.x1)("list.focusAndSelectionOutline",null,o.k("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),pt=(0,n.x1)("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},o.k("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),mt=(0,n.x1)("list.activeSelectionForeground",{dark:s.Q1.white,light:s.Q1.white,hcDark:null,hcLight:null},o.k("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ft=(0,n.x1)("list.activeSelectionIconForeground",null,o.k("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),vt=(0,n.x1)("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},o.k("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),_t=(0,n.x1)("list.inactiveSelectionForeground",null,o.k("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),bt=(0,n.x1)("list.inactiveSelectionIconForeground",null,o.k("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),wt=(0,n.x1)("list.inactiveFocusBackground",null,o.k("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),yt=(0,n.x1)("list.inactiveFocusOutline",null,o.k("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Ct=(0,n.x1)("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:s.Q1.white.transparent(.1),hcLight:s.Q1.fromHex("#0F4A85").transparent(.1)},o.k("listHoverBackground","List/Tree background when hovering over items using the mouse.")),kt=(0,n.x1)("list.hoverForeground",null,o.k("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),St=(0,n.x1)("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},o.k("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),xt=(0,n.x1)("list.dropBetweenBackground",{dark:a,light:a,hcDark:null,hcLight:null},o.k("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),Lt=(0,n.x1)("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:l,hcLight:l},o.k("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Dt=(0,n.x1)("list.focusHighlightForeground",{dark:Lt,light:(0,n.Hz)(pt,Lt,"#BBE7FF"),hcDark:Lt,hcLight:Lt},o.k("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree.")),Et=((0,n.x1)("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},o.k("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),(0,n.x1)("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},o.k("listErrorForeground","Foreground color of list items containing errors.")),(0,n.x1)("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},o.k("listWarningForeground","Foreground color of list items containing warnings.")),(0,n.x1)("listFilterWidget.background",{light:(0,n.e$)(y,0),dark:(0,n.a)(y,0),hcDark:y,hcLight:y},o.k("listFilterWidgetBackground","Background color of the type filter widget in lists and trees."))),It=(0,n.x1)("listFilterWidget.outline",{dark:s.Q1.transparent,light:s.Q1.transparent,hcDark:"#f38518",hcLight:"#007ACC"},o.k("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),Nt=(0,n.x1)("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:d,hcLight:d},o.k("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),Mt=(0,n.x1)("listFilterWidget.shadow",ne,o.k("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),At=((0,n.x1)("list.filterMatchBackground",{dark:B,light:B,hcDark:null,hcLight:null},o.k("listFilterMatchHighlight","Background color of the filtered match.")),(0,n.x1)("list.filterMatchBorder",{dark:H,light:H,hcDark:d,hcLight:c},o.k("listFilterMatchHighlightBorder","Border color of the filtered match.")),(0,n.x1)("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},o.k("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized.")),(0,n.x1)("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},o.k("treeIndentGuidesStroke","Tree stroke color for the indentation guides."))),Tt=(0,n.x1)("tree.inactiveIndentGuidesStroke",(0,n.JO)(At,.4),o.k("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),Rt=(0,n.x1)("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},o.k("tableColumnsBorder","Table border color between columns.")),Pt=(0,n.x1)("tree.tableOddRowsBackground",{dark:(0,n.JO)(r,.04),light:(0,n.JO)(r,.04),hcDark:null,hcLight:null},o.k("tableOddRowsBackgroundColor","Background color for odd table rows.")),Ot=(0,n.x1)("menu.border",{dark:null,light:null,hcDark:d,hcLight:d},o.k("menuBorder","Border color of menus.")),Ft=(0,n.x1)("menu.foreground",qe,o.k("menuForeground","Foreground color of menu items.")),Bt=(0,n.x1)("menu.background",$e,o.k("menuBackground","Background color of menu items.")),Wt=(0,n.x1)("menu.selectionForeground",mt,o.k("menuSelectionForeground","Foreground color of the selected menu item in menus.")),Ht=(0,n.x1)("menu.selectionBackground",pt,o.k("menuSelectionBackground","Background color of the selected menu item in menus.")),Vt=(0,n.x1)("menu.selectionBorder",{dark:null,light:null,hcDark:c,hcLight:c},o.k("menuSelectionBorder","Border color of the selected menu item in menus.")),zt=(0,n.x1)("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:d,hcLight:d},o.k("menuSeparatorBackground","Color of a separator menu item in menus.")),jt=(0,n.x1)("quickInput.background",y,o.k("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),Ut=(0,n.x1)("quickInput.foreground",C,o.k("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),$t=(0,n.x1)("quickInputTitle.background",{dark:new s.Q1(new s.bU(255,255,255,.105)),light:new s.Q1(new s.bU(0,0,0,.06)),hcDark:"#000000",hcLight:s.Q1.white},o.k("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),Kt=(0,n.x1)("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:s.Q1.white,hcLight:"#0F4A85"},o.k("pickerGroupForeground","Quick picker color for grouping labels.")),qt=(0,n.x1)("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:s.Q1.white,hcLight:"#0F4A85"},o.k("pickerGroupBorder","Quick picker color for grouping borders.")),Gt=(0,n.x1)("quickInput.list.focusBackground",null,"",void 0,o.k("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")),Qt=(0,n.x1)("quickInputList.focusForeground",mt,o.k("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),Zt=(0,n.x1)("quickInputList.focusIconForeground",ft,o.k("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),Yt=(0,n.x1)("quickInputList.focusBackground",{dark:(0,n.yL)(Gt,pt),light:(0,n.yL)(Gt,pt),hcDark:null,hcLight:null},o.k("quickInput.listFocusBackground","Quick picker background color for the focused item."));(0,n.x1)("search.resultsInfoForeground",{light:r,dark:(0,n.JO)(r,.65),hcDark:r,hcLight:r},o.k("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),(0,n.x1)("searchEditor.findMatchBackground",{light:(0,n.JO)(B,.66),dark:(0,n.JO)(B,.66),hcDark:B,hcLight:B},o.k("searchEditor.queryMatch","Color of the Search Editor query matches.")),(0,n.x1)("searchEditor.findMatchBorder",{light:(0,n.JO)(H,.66),dark:(0,n.JO)(H,.66),hcDark:H,hcLight:H},o.k("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."))},87676:(e,t,i)=>{"use strict";i.d(t,{Bb:()=>c,Fd:()=>g,Gu:()=>h,HP:()=>u,Hz:()=>w,JO:()=>_,a:()=>v,e$:()=>f,oG:()=>y,x1:()=>m,yL:()=>b});var n=i(87110),o=i(65958),s=i(94901),r=i(2106),a=i(51460),l=i(67167),d=i(3765);function c(e){return`--vscode-${e.replace(/\./g,"-")}`}function h(e){return`var(${c(e)})`}function u(e,t){return`var(${c(e)}, ${t})`}const g={ColorContribution:"base.contributions.colors"},p=new class{constructor(){this._onDidChangeSchema=new r.vl,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,i,n=!1,o){const s={id:e,description:i,defaults:t,needsTransparency:n,deprecationMessage:o};this.colorsById[e]=s;const r={type:"string",description:i,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return o&&(r.deprecationMessage=o),n&&(r.pattern="^#(?:(?[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",r.patternErrorMessage=d.k("transparecyRequired","This color must be transparent or it will obscure content")),this.colorSchema.properties[e]={oneOf:[r,{type:"string",const:"default",description:d.k("useDefault","Use the default color.")}]},this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(i),this._onDidChangeSchema.fire(),e}getColors(){return Object.keys(this.colorsById).map((e=>this.colorsById[e]))}resolveDefaultColor(e,t){const i=this.colorsById[e];if(null==i?void 0:i.defaults)return C(null!==(n=i.defaults)&&"object"==typeof n&&"light"in n&&"dark"in n?i.defaults[t.type]:i.defaults,t);var n}getColorSchema(){return this.colorSchema}toString(){return Object.keys(this.colorsById).sort(((e,t)=>{const i=-1===e.indexOf(".")?0:1,n=-1===t.indexOf(".")?0:1;return i!==n?i-n:e.localeCompare(t)})).map((e=>`- \`${e}\`: ${this.colorsById[e].description}`)).join("\n")}};function m(e,t,i,n,o){return p.registerColor(e,t,i,n,o)}function f(e,t){return{op:0,value:e,factor:t}}function v(e,t){return{op:1,value:e,factor:t}}function _(e,t){return{op:2,value:e,factor:t}}function b(...e){return{op:4,values:e}}function w(e,t,i){return{op:6,if:e,then:t,else:i}}function y(e,t,i,n){return{op:5,value:e,background:t,factor:i,transparency:n}}function C(e,t){if(null!==e)return"string"==typeof e?"#"===e[0]?s.Q1.fromHex(e):t.getColor(e):e instanceof s.Q1?e:"object"==typeof e?function(e,t){var i,o,r,a;switch(e.op){case 0:return null===(i=C(e.value,t))||void 0===i?void 0:i.darken(e.factor);case 1:return null===(o=C(e.value,t))||void 0===o?void 0:o.lighten(e.factor);case 2:return null===(r=C(e.value,t))||void 0===r?void 0:r.transparent(e.factor);case 3:{const i=C(e.background,t);return i?null===(a=C(e.value,t))||void 0===a?void 0:a.makeOpaque(i):C(e.value,t)}case 4:for(const i of e.values){const e=C(i,t);if(e)return e}return;case 6:return C(t.defines(e.if)?e.then:e.else,t);case 5:{const i=C(e.value,t);if(!i)return;const n=C(e.background,t);return n?i.isDarkerThan(n)?s.Q1.getLighterColor(i,n,e.factor).transparent(e.transparency):s.Q1.getDarkerColor(i,n,e.factor).transparent(e.transparency):i.transparent(e.factor*e.transparency)}default:throw(0,n.xb)(e)}}(e,t):void 0}l.O.add(g.ColorContribution,p);const k="vscode://schemas/workbench-colors",S=l.O.as(a.F.JSONContribution);S.registerSchema(k,p.getColorSchema());const x=new o.uC((()=>S.notifySchemaChanged(k)),200);p.onDidChangeSchema((()=>{x.isScheduled()||x.schedule()}))},11210:(e,t,i)=>{"use strict";i.d(t,{$_:()=>y,HT:()=>v,pU:()=>f});var n,o,s=i(65958),r=i(26048),a=i(19892),l=i(58881),d=i(2106),c=i(79359),h=i(37264),u=i(3765),g=i(51460),p=i(67167);!function(e){e.getDefinition=function(e,t){let i=e.defaults;for(;l.L.isThemeIcon(i);){const e=m.getIcon(i.id);if(!e)return;i=e.defaults}return i}}(n||(n={})),function(e){e.toJSONObject=function(e){return{weight:e.weight,style:e.style,src:e.src.map((e=>({format:e.format,location:e.location.toString()})))}},e.fromJSONObject=function(e){const t=e=>(0,c.Kg)(e)?e:void 0;if(e&&Array.isArray(e.src)&&e.src.every((e=>(0,c.Kg)(e.format)&&(0,c.Kg)(e.location))))return{weight:t(e.weight),style:t(e.style),src:e.src.map((e=>({format:e.format,location:h.r.parse(e.location)})))}}}(o||(o={}));const m=new class{constructor(){this._onDidChange=new d.vl,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:(0,u.k)("iconDefinition.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:(0,u.k)("iconDefinition.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${l.L.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,i,n){const o=this.iconsById[e];if(o){if(i&&!o.description){o.description=i,this.iconSchema.properties[e].markdownDescription=`${i} $(${e})`;const t=this.iconReferenceSchema.enum.indexOf(e);-1!==t&&(this.iconReferenceSchema.enumDescriptions[t]=i),this._onDidChange.fire()}return o}const s={id:e,description:i,defaults:t,deprecationMessage:n};this.iconsById[e]=s;const r={$ref:"#/definitions/icons"};return n&&(r.deprecationMessage=n),i&&(r.markdownDescription=`${i}: $(${e})`),this.iconSchema.properties[e]=r,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(i||""),this._onDidChange.fire(),{id:e}}getIcons(){return Object.keys(this.iconsById).map((e=>this.iconsById[e]))}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}toString(){const e=(e,t)=>e.id.localeCompare(t.id),t=e=>{for(;l.L.isThemeIcon(e.defaults);)e=this.iconsById[e.defaults.id];return`codicon codicon-${e?e.id:""}`},i=[];i.push("| preview | identifier | default codicon ID | description"),i.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const n=Object.keys(this.iconsById).map((e=>this.iconsById[e]));for(const o of n.filter((e=>!!e.description)).sort(e))i.push(`||${o.id}|${l.L.isThemeIcon(o.defaults)?o.defaults.id:o.id}|${o.description||""}|`);i.push("| preview | identifier "),i.push("| ----------- | --------------------------------- |");for(const o of n.filter((e=>!l.L.isThemeIcon(e.defaults))).sort(e))i.push(`||${o.id}|`);return i.join("\n")}};function f(e,t,i,n){return m.registerIcon(e,t,i,n)}function v(){return m}p.O.add("base.contributions.icons",m),function(){const e=(0,a.J)();for(const t in e){const i="\\"+e[t].toString(16);m.registerIcon(t,{fontCharacter:i})}}();const _="vscode://schemas/icons",b=p.O.as(g.F.JSONContribution);b.registerSchema(_,m.getIconSchema());const w=new s.uC((()=>b.notifySchemaChanged(_)),200);m.onDidChange((()=>{w.isScheduled()||w.schedule()}));const y=f("widget-close",r.W.close,(0,u.k)("widgetClose","Icon for the close action in widgets."));f("goto-previous-location",r.W.arrowUp,(0,u.k)("previousChangeIcon","Icon for goto previous editor location.")),f("goto-next-location",r.W.arrowDown,(0,u.k)("nextChangeIcon","Icon for goto next editor location.")),l.L.modify(r.W.sync,"spin"),l.L.modify(r.W.loading,"spin")},89563:(e,t,i)=>{"use strict";var n;function o(e){return e===n.HIGH_CONTRAST_DARK||e===n.HIGH_CONTRAST_LIGHT}function s(e){return e===n.DARK||e===n.HIGH_CONTRAST_DARK}i.d(t,{Bb:()=>o,HD:()=>s,zM:()=>n}),function(e){e.DARK="dark",e.LIGHT="light",e.HIGH_CONTRAST_DARK="hcDark",e.HIGH_CONTRAST_LIGHT="hcLight"}(n||(n={}))},89044:(e,t,i)=>{"use strict";i.d(t,{Fd:()=>h,Gy:()=>l,Pz:()=>c,Yf:()=>d,lR:()=>p,zy:()=>g});var n=i(2106),o=i(10998),s=i(82399),r=i(67167),a=i(89563);const l=(0,s.u1)("themeService");function d(e){return{id:e}}function c(e){switch(e){case a.zM.DARK:return"vs-dark";case a.zM.HIGH_CONTRAST_DARK:return"hc-black";case a.zM.HIGH_CONTRAST_LIGHT:return"hc-light";default:return"vs"}}const h={ThemingContribution:"base.contributions.theming"},u=new class{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new n.vl}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,o.s)((()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)}))}getThemingParticipants(){return this.themingParticipants}};function g(e){return u.onColorThemeChange(e)}r.O.add(h.ThemingContribution,u);class p extends o.jG{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange((e=>this.onThemeChange(e))))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}},38803:(e,t,i)=>{"use strict";i.d(t,{$D:()=>n,I_:()=>s,To:()=>o,Ym:()=>r});const n=(0,i(82399).u1)("undoRedoService");class o{constructor(e,t){this.resource=e,this.elements=t}}class s{constructor(){this.id=s._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}}s._ID=0,s.None=new s;class r{constructor(){this.id=r._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}}r._ID=0,r.None=new r},26851:(e,t,i)=>{"use strict";i.d(t,{A7:()=>l,Q_:()=>h,VR:()=>r,cn:()=>p,ct:()=>m,jB:()=>a,kF:()=>g,mX:()=>u});var n=i(3765),o=i(18019),s=(i(66525),i(37264));const r=(0,i(82399).u1)("contextService");function a(e){const t=e;return"string"==typeof(null==t?void 0:t.id)&&s.r.isUri(t.uri)}function l(e){return"string"==typeof(null==e?void 0:e.id)&&!a(e)&&!function(e){const t=e;return"string"==typeof(null==t?void 0:t.id)&&s.r.isUri(t.configPath)}(e)}const d={id:"ext-dev"},c={id:"empty-window"};function h(e,t){if("string"==typeof e||void 0===e)return"string"==typeof e?{id:(0,o.P8)(e)}:t?d:c;const i=e;return i.configuration?{id:i.id,configPath:i.configuration}:1===i.folders.length?{id:i.id,uri:i.folders[0].uri}:{id:i.id}}class u{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}const g="code-workspace",p=((0,n.k)("codeWorkspace","Code Workspace"),"4064f6ec-cb38-4ad0-af64-ee6467e63c82");function m(e){return e.id===p}},84657:(e,t,i)=>{"use strict";i.d(t,{L:()=>n});const n=(0,i(82399).u1)("workspaceTrustManagementService")},54470:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Vim=void 0;var n,o=(n=i(37999))&&n.__esModule?n:{default:n};function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}var r=o.default.Pos;function a(e,t){var i=e.state.vim;if(!i||i.insertMode)return t.head;var n=i.sel.head;return n?i.visualBlock&&t.head.line!=n.line?void 0:t.from()!=t.anchor||t.empty()||t.head.line!=n.line||t.head.ch==n.ch?t.head:new r(t.head.line,t.head.ch-1):t.head}var l=[{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"}],d=l.length,c=[{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"}],h=function(){function e(e,i){e.attached=!1,this==o.default.keyMap.vim&&(e.options.$customCursor=null),i&&i.attach==t||function(e){e.setOption("disableInput",!1),e.off("cursorActivity",Xe),e.state.vim=null,Be&&clearTimeout(Be),e.leaveVimMode()}(e)}function t(e,i){this==o.default.keyMap.vim&&(e.attached=!0,e.curOp&&(e.curOp.selectionChanged=!0),e.options.$customCursor=a),i&&i.attach==t||function(e){e.setOption("disableInput",!0),e.setOption("showCursorWhenSelecting",!1),o.default.signal(e,"vim-mode-change",{mode:"normal"}),e.on("cursorActivity",Xe),F(e),e.enterVimMode()}(e)}function i(e,t){if(t){if(this[e])return this[e];var i=function(e){if("'"==e.charAt(0))return e.charAt(1);if("AltGraph"===e)return!1;var t=e.split(/-(?!$)/),i=t[t.length-1];if(1==t.length&&1==t[0].length)return!1;if(2==t.length&&"Shift"==t[0]&&1==i.length)return!1;for(var o=!1,s=0;s")}(e);if(!i)return!1;var s=W.findKey(t,i);return"function"==typeof s&&o.default.signal(t,"vim-keypress",i),s}}o.default.defineOption("vimMode",!1,(function(e,t,i){t&&"vim"!=e.getOption("keyMap")?e.setOption("keyMap","vim"):!t&&i!=o.default.Init&&/^vim/.test(e.getOption("keyMap"))&&e.setOption("keyMap","default")}));var n={Shift:"S",Ctrl:"C",Alt:"A",Cmd:"D",Mod:"A",CapsLock:""},h={Enter:"CR",Backspace:"BS",Delete:"Del",Insert:"Ins"},u=/[\d]/,g=[o.default.isWordChar,function(e){return e&&!o.default.isWordChar(e)&&!/\s/.test(e)}],p=[function(e){return/\S/.test(e)}];function m(e,t){for(var i=[],n=e;n"]),y=[].concat(v,_,b,["-",'"',".",":","_","/"]);try{f=new RegExp("^[\\p{Lu}]$","u")}catch(e){f=/^[A-Z]$/}function C(e,t){return t>=e.firstLine()&&t<=e.lastLine()}function k(e){return/^[a-z]$/.test(e)}function S(e){return f.test(e)}function x(e){return/^\s*$/.test(e)}function L(e){return-1!=".?!".indexOf(e)}function D(e,t){for(var i=0;ii?t=i:t0?1:-1,c=s.getCursor();do{if((a=o[(e+(t+=d))%e])&&(l=a.find())&&!ie(c,l))break}while(tn)}return a}return{cachedCursor:void 0,add:function(s,r,a){var l=o[t%e];function d(i){var n=++t%e,r=o[n];r&&r.clear(),o[n]=s.setBookmark(i)}if(l){var c=l.find();c&&!ie(c,r)&&d(r)}else d(r);d(a),i=t,(n=t-e+1)<0&&(n=0)},find:function(e,i){var n=t,o=s(e,i);return t=n,o&&o.find()},move:s}},P=function(e){return e?{changes:e.changes,expectCursorActivityForChange:e.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};function O(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=P()}function F(e){return e.state.vim||(e.state.vim={inputState:new H,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:{}}),e.state.vim}function B(){for(var e in A={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:R(),macroModeState:new O,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new j({}),searchHistoryController:new U,exCommandHistoryController:new U},E){var t=E[e];t.value=t.defaultValue}}O.prototype={exitMacroRecordMode:function(){var e=A.macroModeState;e.onRecordingDone&&e.onRecordingDone(),e.onRecordingDone=void 0,e.isRecording=!1},enterMacroRecordMode:function(e,t){var i=A.registerController.getRegister(t);i&&(i.clear(),this.latestRegister=t,e.openDialog&&(this.onRecordingDone=e.openDialog(document.createTextNode("(recording)["+t+"]"),null,{bottom:!0})),this.isRecording=!0)}};var W={buildKeyMap:function(){},getRegisterController:function(){return A.registerController},resetVimGlobalState_:B,getVimGlobalState_:function(){return A},maybeInitVimState_:F,suppressErrorLogging:!1,InsertModeKey:Je,map:function(e,t,i){qe.map(e,t,i)},unmap:function(e,t){return qe.unmap(e,t)},noremap:function(e,t,i){function n(e){return e?[e]:["normal","insert","visual"]}for(var o=n(i),s=l.length,r=s-d;r=0;o--){var s=n[o];if(e!==s.context)if(s.context)this._mapCommand(s);else{var r=["normal","insert","visual"];for(var a in r)if(r[a]!==e){var c={};for(var h in s)c[h]=s[h];c.context=r[a],this._mapCommand(c)}}}},setOption:N,getOption:M,defineOption:I,defineEx:function(e,t,i){if(t){if(0!==e.indexOf(t))throw new Error('(Vim.defineEx) "'+t+'" is not a prefix of "'+e+'", command not registered')}else t=e;Ke[e]=i,qe.commandMap_[t]={name:e,shortName:t,type:"api"}},handleKey:function(e,t,i){var n=this.findKey(e,t,i);if("function"==typeof n)return n()},findKey:function(e,t,i){var n,o=F(e);function s(){if(""==t){if(o.visualMode)me(e);else{if(!o.insertMode)return;Ge(e)}return V(e),!0}}return!1===(n=o.insertMode?function(){if(s())return!0;for(var i=o.inputState.keyBuffer=o.inputState.keyBuffer+t,n=1==t.length,r=$.matchCommand(i,l,o.inputState,"insert");i.length>1&&"full"!=r.type;){i=o.inputState.keyBuffer=i.slice(1);var a=$.matchCommand(i,l,o.inputState,"insert");"none"!=a.type&&(r=a)}if("none"==r.type)return V(e),!1;if("partial"==r.type)return T&&window.clearTimeout(T),T=window.setTimeout((function(){o.insertMode&&o.inputState.keyBuffer&&V(e)}),M("insertModeEscKeysTimeout")),!n;if(T&&window.clearTimeout(T),n){for(var d=e.listSelections(),c=0;c|<\w+>|./.exec(i),t=n[0],i=i.substring(n.index+t.length),W.handleKey(e,t,"mapping")}(n.toKeys):$.processCommand(e,o,n)}catch(t){throw e.state.vim=void 0,F(e),W.suppressErrorLogging||console.log(t),t}return!0}))}},handleEx:function(e,t){qe.processCommand(e,t)},defineMotion:function(e,t){K[e]=t},defineAction:function(e,t){Q[e]=t},defineOperator:function(e,t){G[e]=t},mapCommand:function(e,t,i,n,o){var s={keys:e,type:t};for(var r in s[t]=i,s[t+"Args"]=n,o)s[r]=o[r];Qe(s)},_mapCommand:Qe,defineRegister:function(e,t){var i=A.registerController.registers;if(!e||1!=e.length)throw Error("Register name must be 1 character");if(i[e])throw Error("Register already defined "+e);i[e]=t,y.push(e)},exitVisualMode:me,exitInsertMode:Ge};function H(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=null}function V(e,t){e.state.vim.inputState=new H,o.default.signal(e,"vim-command-done",t)}function z(e,t,i){this.clear(),this.keyBuffer=[e||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!t,this.blockwise=!!i}function j(e){this.registers=e,this.unnamedRegister=e['"']=new z,e["."]=new z,e[":"]=new z,e["/"]=new z}function U(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}H.prototype.pushRepeatDigit=function(e){this.operator?this.motionRepeat=this.motionRepeat.concat(e):this.prefixRepeat=this.prefixRepeat.concat(e)},H.prototype.getRepeat=function(){var e=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(e=1,this.prefixRepeat.length>0&&(e*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(e*=parseInt(this.motionRepeat.join(""),10))),e},z.prototype={setText:function(e,t,i){this.keyBuffer=[e||""],this.linewise=!!t,this.blockwise=!!i},pushText:function(e,t){t&&(this.linewise||this.keyBuffer.push("\n"),this.linewise=!0),this.keyBuffer.push(e)},pushInsertModeChanges:function(e){this.insertModeChanges.push(P(e))},pushSearchQuery:function(e){this.searchQueries.push(e)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}},j.prototype={pushText:function(e,t,i,n,o){if("_"!==e){n&&"\n"!==i.charAt(i.length-1)&&(i+="\n");var s=this.isValidRegister(e)?this.getRegister(e):null;if(s)S(e)?s.pushText(i,n):s.setText(i,n,o),this.unnamedRegister.setText(s.toString(),n);else{switch(t){case"yank":this.registers[0]=new z(i,n,o);break;case"delete":case"change":-1==i.indexOf("\n")?this.registers["-"]=new z(i,n):(this.shiftNumericRegisters_(),this.registers[1]=new z(i,n))}this.unnamedRegister.setText(i,n,o)}}},getRegister:function(e){return this.isValidRegister(e)?(e=e.toLowerCase(),this.registers[e]||(this.registers[e]=new z),this.registers[e]):this.unnamedRegister},isValidRegister:function(e){return e&&D(e,y)},shiftNumericRegisters_:function(){for(var e=9;e>=2;e--)this.registers[e]=this.getRegister(""+(e-1))}},U.prototype={nextMatch:function(e,t){var i=this.historyBuffer,n=t?-1:1;null===this.initialPrefix&&(this.initialPrefix=e);for(var o=this.iterator+n;t?o>=0:o=i.length?(this.iterator=i.length,this.initialPrefix):o<0?e:void 0},pushInput:function(e){var t=this.historyBuffer.indexOf(e);t>-1&&this.historyBuffer.splice(t,1),e.length&&this.historyBuffer.push(e)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var $={matchCommand:function(e,t,i,n){var o,s=function(e,t,i,n){for(var o,s=[],r=[],a=0;a"==o.keys.slice(-11)){var l=function(e){var t=/^.*(<[^>]+>)$/.exec(e),i=t?t[1]:e.slice(-1);if(i.length>1)switch(i){case"":i="\n";break;case"":i=" ";break;default:i=""}return i}(e);if(!l)return{type:"none"};i.selectedCharacter=l}return{type:"full",command:o}},processCommand:function(e,t,i){switch(t.inputState.repeatOverride=i.repeatOverride,i.type){case"motion":this.processMotion(e,t,i);break;case"operator":this.processOperator(e,t,i);break;case"operatorMotion":this.processOperatorMotion(e,t,i);break;case"action":this.processAction(e,t,i);break;case"search":this.processSearch(e,t,i);break;case"ex":case"keyToEx":this.processEx(e,t,i)}},processMotion:function(e,t,i){t.inputState.motion=i.motion,t.inputState.motionArgs=Y(i.motionArgs),this.evalInput(e,t)},processOperator:function(e,t,i){var n=t.inputState;if(n.operator){if(n.operator==i.operator)return n.motion="expandToLine",n.motionArgs={linewise:!0},void this.evalInput(e,t);V(e)}n.operator=i.operator,n.operatorArgs=Y(i.operatorArgs),i.keys.length>1&&(n.operatorShortcut=i.keys),i.exitVisualBlock&&(t.visualBlock=!1,ge(e)),t.visualMode&&this.evalInput(e,t)},processOperatorMotion:function(e,t,i){var n=t.visualMode,o=Y(i.operatorMotionArgs);o&&n&&o.visualLine&&(t.visualLine=!0),this.processOperator(e,t,i),n||this.processMotion(e,t,i)},processAction:function(e,t,i){var n=t.inputState,o=n.getRepeat(),s=!!o,r=Y(i.actionArgs)||{};n.selectedCharacter&&(r.selectedCharacter=n.selectedCharacter),i.operator&&this.processOperator(e,t,i),i.motion&&this.processMotion(e,t,i),(i.motion||i.operator)&&this.evalInput(e,t),r.repeat=o||1,r.repeatIsExplicit=s,r.registerName=n.registerName,V(e),t.lastMotion=null,i.isEdit&&this.recordLastEdit(t,n,i),Q[i.action](e,r,t)},processSearch:function(e,t,i){if(e.getSearchCursor){var n=i.searchArgs.forward,s=i.searchArgs.wholeWordOnly;Ie(e).setReversed(!n);var r=n?"/":"?",a=Ie(e).getQuery(),l=e.getScrollInfo();switch(i.searchArgs.querySrc){case"prompt":var d=A.macroModeState;d.isPlaying?g(u=d.replaySearchQueries.shift(),!0,!1):Oe(e,{onClose:function(t){e.scrollTo(l.left,l.top),g(t,!0,!0);var i=A.macroModeState;i.isRecording&&function(e,t){if(!e.isPlaying){var i=e.latestRegister,n=A.registerController.getRegister(i);n&&n.pushSearchQuery&&n.pushSearchQuery(t)}}(i,t)},prefix:r,desc:"(JavaScript regexp)",onKeyUp:function(t,i,s){var r,a,d,c=o.default.keyName(t);"Up"==c||"Down"==c?(r="Up"==c,a=t.target?t.target.selectionEnd:0,s(i=A.searchHistoryController.nextMatch(i,r)||""),a&&t.target&&(t.target.selectionEnd=t.target.selectionStart=Math.min(a,t.target.value.length))):"Left"!=c&&"Right"!=c&&"Ctrl"!=c&&"Alt"!=c&&"Shift"!=c&&A.searchHistoryController.reset();try{d=Fe(e,i,!0,!0)}catch(t){}d?e.scrollIntoView(He(e,!n,d),30):(Ve(e),e.scrollTo(l.left,l.top))},onKeyDown:function(t,i,n){var s=o.default.keyName(t);"Esc"==s||"Ctrl-C"==s||"Ctrl-["==s||"Backspace"==s&&""==i?(A.searchHistoryController.pushInput(i),A.searchHistoryController.reset(),Fe(e,a),Ve(e),e.scrollTo(l.left,l.top),o.default.e_stop(t),V(e),n(),e.focus()):"Up"==s||"Down"==s?o.default.e_stop(t):"Ctrl-U"==s&&(o.default.e_stop(t),n(""))}});break;case"wordUnderCursor":var c=ve(e,!1,0,!1,!0),h=!0;if(c||(c=ve(e,!1,0,!1,!1),h=!1),!c)return;var u=e.getLine(c.start.line).substring(c.start.ch,c.end.ch);u=h&&s?"\\b"+u+"\\b":u.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1"),A.jumpList.cachedCursor=e.getCursor(),e.setCursor(c.start),g(u,!0,!1)}}function g(n,o,s){A.searchHistoryController.pushInput(n),A.searchHistoryController.reset();try{Fe(e,n,o,s)}catch(t){return Pe(e,"Invalid regex: "+n),void V(e)}$.processMotion(e,t,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:i.searchArgs.toJumplist}})}},processEx:function(e,t,i){function n(t){A.exCommandHistoryController.pushInput(t),A.exCommandHistoryController.reset(),qe.processCommand(e,t)}function s(t,i,n){var s,r,a=o.default.keyName(t);("Esc"==a||"Ctrl-C"==a||"Ctrl-["==a||"Backspace"==a&&""==i)&&(A.exCommandHistoryController.pushInput(i),A.exCommandHistoryController.reset(),o.default.e_stop(t),V(e),n(),e.focus()),"Up"==a||"Down"==a?(o.default.e_stop(t),s="Up"==a,r=t.target?t.target.selectionEnd:0,n(i=A.exCommandHistoryController.nextMatch(i,s)||""),r&&t.target&&(t.target.selectionEnd=t.target.selectionStart=Math.min(r,t.target.value.length))):"Ctrl-U"==a?(o.default.e_stop(t),n("")):"Left"!=a&&"Right"!=a&&"Ctrl"!=a&&"Alt"!=a&&"Shift"!=a&&A.exCommandHistoryController.reset()}"keyToEx"==i.type?qe.processCommand(e,i.exArgs.input):t.visualMode?Oe(e,{onClose:n,prefix:":",value:"'<,'>",onKeyDown:s,selectValueOnOpen:!1}):Oe(e,{onClose:n,prefix:":",onKeyDown:s})},evalInput:function(e,t){var i,n,o,s=t.inputState,a=s.motion,l=s.motionArgs||{},d=s.operator,c=s.operatorArgs||{},h=s.registerName,u=t.sel,g=te(t.visualMode?Z(e,u.head):e.getCursor("head")),p=te(t.visualMode?Z(e,u.anchor):e.getCursor("anchor")),m=te(g),f=te(p);if(d&&this.recordLastEdit(t,s),(o=void 0!==s.repeatOverride?s.repeatOverride:s.getRepeat())>0&&l.explicitRepeat?l.repeatIsExplicit=!0:(l.noRepeat||!l.explicitRepeat&&0===o)&&(o=1,l.repeatIsExplicit=!1),s.selectedCharacter&&(l.selectedCharacter=c.selectedCharacter=s.selectedCharacter),l.repeat=o,V(e),a){var v=K[a](e,g,l,t,s);if(t.lastMotion=K[a],!v)return;if(l.toJumplist){var _=A.jumpList,b=_.cachedCursor;b?(_e(e,b,v),delete _.cachedCursor):_e(e,g,v)}v instanceof Array?(n=v[0],i=v[1]):i=v,i||(i=te(g)),t.visualMode?(t.visualBlock&&i.ch===1/0||(i=Z(e,i)),n&&(n=Z(e,n)),n=n||f,u.anchor=n,u.head=i,ge(e),xe(e,t,"<",ne(n,i)?n:i),xe(e,t,">",ne(n,i)?i:n)):d||(i=Z(e,i),e.setCursor(i.line,i.ch))}if(d){if(c.lastSel){n=f;var w=c.lastSel,y=Math.abs(w.head.line-w.anchor.line),C=Math.abs(w.head.ch-w.anchor.ch);i=w.visualLine?new r(f.line+y,f.ch):w.visualBlock?new r(f.line+y,f.ch+C):w.head.line==w.anchor.line?new r(f.line,f.ch+C):new r(f.line+y,f.ch),t.visualMode=!0,t.visualLine=w.visualLine,t.visualBlock=w.visualBlock,u=t.sel={anchor:n,head:i},ge(e)}else t.visualMode&&(c.lastSel={anchor:te(u.anchor),head:te(u.head),visualBlock:t.visualBlock,visualLine:t.visualLine});var k,S,L,D,E;if(t.visualMode){if(k=oe(u.head,u.anchor),S=se(u.head,u.anchor),L=t.visualLine||c.linewise,E=pe(e,{anchor:k,head:S},D=t.visualBlock?"block":L?"line":"char"),L){var I=E.ranges;if("block"==D)for(var N=0;N0&&s&&x(s);s=o.pop())i.line--,i.ch=0;s?(i.line--,i.ch=ae(e,i.line)):i.ch=0}}(e,k,S),E=pe(e,{anchor:k,head:S},D="char",!l.inclusive||L)}e.setSelections(E.ranges,E.primary),t.lastMotion=null,c.repeat=o,c.registerName=h,c.linewise=L;var T=G[d](e,c,E.ranges,f,i);t.visualMode&&me(e,null!=T),T&&e.setCursor(T)}},recordLastEdit:function(e,t,i){var n=A.macroModeState;n.isPlaying||(e.lastEditInputState=t,e.lastEditActionCommand=i,n.lastInsertModeChanges.changes=[],n.lastInsertModeChanges.expectCursorActivityForChange=!1,n.lastInsertModeChanges.visualBlock=e.visualBlock?e.sel.head.line-e.sel.anchor.line:0)}},K={moveToTopLine:function(e,t,i){var n=ze(e).top+i.repeat-1;return new r(n,fe(e.getLine(n)))},moveToMiddleLine:function(e){var t=ze(e),i=Math.floor(.5*(t.top+t.bottom));return new r(i,fe(e.getLine(i)))},moveToBottomLine:function(e,t,i){var n=ze(e).bottom-i.repeat+1;return new r(n,fe(e.getLine(n)))},expandToLine:function(e,t,i){return new r(t.line+i.repeat-1,1/0)},findNext:function(e,t,i){var n=Ie(e),o=n.getQuery();if(o){var s=!i.forward;return s=n.isReversed()?!s:s,We(e,o),He(e,s,o,i.repeat)}},findAndSelectNextInclusive:function(e,t,i,n,s){var a=Ie(e),l=a.getQuery();if(l){var d=!i.forward,c=function(e,t,i,n,o){return void 0===n&&(n=1),e.operation((function(){var s=e.getCursor(),a=e.getSearchCursor(i,s),l=a.find(!t);!o.visualMode&&l&&ie(a.from(),s)&&a.find(!t);for(var d=0;dl:h.linec&&o.line==c?ke(e,t,i,n,!0):(i.toFirstChar&&(s=fe(e.getLine(l)),n.lastHPos=s),n.lastHSPos=e.charCoords(new r(l,s),"div").left,new r(l,s))},moveByDisplayLines:function(e,t,i,n){var o=t;switch(n.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:n.lastHSPos=e.charCoords(o,"div").left}var s=i.repeat;if((l=e.findPosV(o,i.forward?s:-s,"line",n.lastHSPos)).hitSide)if(i.forward)var a={top:e.charCoords(l,"div").top+8,left:n.lastHSPos},l=e.coordsChar(a,"div");else{var d=e.charCoords(new r(e.firstLine(),0),"div");d.left=n.lastHSPos,l=e.coordsChar(d,"div")}return n.lastHPos=l.ch,l},moveByPage:function(e,t,i){var n=t,o=i.repeat;return e.findPosV(n,i.forward?o:-o,"page")},moveByParagraph:function(e,t,i){var n=i.forward?1:-1;return De(e,t,i.repeat,n)},moveBySentence:function(e,t,i){var n=i.forward?1:-1;return function(e,t,i,n){function o(e,t){if(t.pos+t.dir<0||t.pos+t.dir>=t.line.length){if(t.ln+=t.dir,!C(e,t.ln))return t.line=null,t.ln=null,void(t.pos=null);t.line=e.getLine(t.ln),t.pos=t.dir>0?0:t.line.length-1}else t.pos+=t.dir}function s(e,t,i,n){var s=""===(d=e.getLine(t)),r={line:d,ln:t,pos:i,dir:n},a={ln:r.ln,pos:r.pos},l=""===r.line;for(o(e,r);null!==r.line;){if(a.ln=r.ln,a.pos=r.pos,""===r.line&&!l)return{ln:r.ln,pos:r.pos};if(s&&""!==r.line&&!x(r.line[r.pos]))return{ln:r.ln,pos:r.pos};!L(r.line[r.pos])||s||r.pos!==r.line.length-1&&!x(r.line[r.pos+1])||(s=!0),o(e,r)}var d=e.getLine(a.ln);a.pos=0;for(var c=d.length-1;c>=0;--c)if(!x(d[c])){a.pos=c;break}return a}function a(e,t,i,n){var s={line:e.getLine(t),ln:t,pos:i,dir:n},r={ln:s.ln,pos:null},a=""===s.line;for(o(e,s);null!==s.line;){if(""===s.line&&!a)return null!==r.pos?r:{ln:s.ln,pos:s.pos};if(L(s.line[s.pos])&&null!==r.pos&&(s.ln!==r.ln||s.pos+1!==r.pos))return r;""===s.line||x(s.line[s.pos])||(a=!1,r={ln:s.ln,pos:s.pos}),o(e,s)}var l=e.getLine(r.ln);r.pos=0;for(var d=0;d0;)l=n<0?a(e,l.ln,l.pos,n):s(e,l.ln,l.pos,n),i--;return new r(l.ln,l.pos)}(e,t,i.repeat,n)},moveByScroll:function(e,t,i,n){var o,s=e.getScrollInfo(),r=i.repeat;r||(r=s.clientHeight/(2*e.defaultTextHeight()));var a=e.charCoords(t,"local");if(i.repeat=r,!(o=K.moveByDisplayLines(e,t,i,n)))return null;var l=e.charCoords(o,"local");return e.scrollTo(null,s.top+l.top-a.top),o},moveByWords:function(e,t,i){return function(e,t,i,n,o,s){var a=te(t),l=[];(n&&!o||!n&&o)&&i++;for(var d=!(n&&o),c=0;c0)h.index=0;else{var m=h.lineText.length;h.index=m>0?m-1:0}h.nextCh=h.lineText.charAt(h.index)}p(h)&&(o.line=d,o.ch=h.index,t--)}return h.nextCh||h.curMoveThrough?new r(d,h.index):o}(e,i.repeat,i.forward,i.selectedCharacter)||t},moveToColumn:function(e,t,i,n){var o=i.repeat;return n.lastHPos=o-1,n.lastHSPos=e.charCoords(t,"div").left,function(e,t){var i=e.getCursor().line;return Z(e,new r(i,t-1))}(e,o)},moveToEol:function(e,t,i,n){return ke(e,t,i,n,!1)},moveToFirstNonWhiteSpaceCharacter:function(e,t){var i=t;return new r(i.line,fe(e.getLine(i.line)))},moveToMatchedSymbol:function(e,t){var i=t,n=i.line,o=i.ch;if(o"===o?/[(){}[\]<>]/:/[(){}[\]]/;return e.findMatchingBracket(new r(n,o),{bracketRegex:s}).to}return i},moveToStartOfLine:function(e,t){return new r(t.line,0)},moveToLineOrEdgeOfDocument:function(e,t,i){var n=i.forward?e.lastLine():e.firstLine();return i.repeatIsExplicit&&(n=i.repeat-e.getOption("firstLineNumber")),new r(n,fe(e.getLine(n)))},moveToStartOfDisplayLine:function(e){return e.execCommand("goLineLeft"),e.getCursor()},moveToEndOfDisplayLine:function(e){e.execCommand("goLineRight");var t=e.getCursor();return"before"==t.sticky&&t.ch--,t},textObjectManipulation:function(e,t,i,n){var s=i.selectedCharacter;"b"==s?s="(":"B"==s&&(s="{");var a,l=!i.textObjectInner;if({"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"}[s])a=function(e,t,i,n){var o,s,a=t,l={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[i],d={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[i],c=e.getLine(a.line).charAt(a.ch)===d?1:0;if(o=e.scanForBracket(new r(a.line,a.ch+c),-1,void 0,{bracketRegex:l}),s=e.scanForBracket(new r(a.line,a.ch+c),1,void 0,{bracketRegex:l}),!o||!s)return{start:a,end:a};if(o=o.pos,s=s.pos,o.line==s.line&&o.ch>s.ch||o.line>s.line){var h=o;o=s,s=h}return n?s.ch+=1:o.ch+=1,{start:o,end:s}}(e,t,s,l);else if({"'":!0,'"':!0,"`":!0}[s])a=function(e,t,i,n){var o,s,a,l,d=te(t),c=e.getLine(d.line).split(""),h=c.indexOf(i);if(d.ch-1&&!o;a--)c[a]==i&&(o=a+1);else o=d.ch+1;if(o&&!s)for(a=o,l=c.length;ae.lastLine()&&t.linewise&&!p?e.replaceRange("",g,d):e.replaceRange("",l,d),t.linewise&&(p||(e.setCursor(g),o.default.commands.newlineAndIndent(e)),l.ch=Number.MAX_VALUE),n=l}A.registerController.pushText(t.registerName,"change",s,t.linewise,i.length>1),Q.enterInsertMode(e,{head:n},e.state.vim)},delete:function(e,t,i){var n,o;e.pushUndoStop();var s=e.state.vim;if(s.visualBlock){o=e.getSelection();var a=q("",i.length);e.replaceSelections(a),n=oe(i[0].head,i[0].anchor)}else{var l=i[0].anchor,d=i[0].head;t.linewise&&d.line!=e.firstLine()&&l.line==e.lastLine()&&l.line==d.line-1&&(l.line==e.firstLine()?l.ch=0:l=new r(l.line-1,ae(e,l.line-1))),o=e.getRange(l,d),e.replaceRange("",l,d),n=l,t.linewise&&(n=K.moveToFirstNonWhiteSpaceCharacter(e,l))}return A.registerController.pushText(t.registerName,"delete",o,t.linewise,s.visualBlock),Z(e,n)},indent:function(e,t,i){var n=e.state.vim,o=i[0].anchor.line,s=n.visualBlock?i[i.length-1].anchor.line:i[0].head.line,r=n.visualMode?t.repeat:1;t.linewise&&s--,e.pushUndoStop();for(var a=o;a<=s;a++)for(var l=0;ld.top?(l.line+=(a-d.top)/o,l.line=Math.ceil(l.line),e.setCursor(l),d=e.charCoords(l,"local"),e.scrollTo(null,d.top)):e.scrollTo(null,a);else{var c=a+e.getScrollInfo().clientHeight;c=s.anchor.line?X(s.head,0,1):new r(s.anchor.line,0)}else if("inplace"==n){if(i.visualMode)return}else"lastEdit"==n&&(a=Ue(e)||a);e.setOption("disableInput",!1),t&&t.replace?(e.toggleOverwrite(!0),e.setOption("keyMap","vim-replace"),o.default.signal(e,"vim-mode-change",{mode:"replace"})):(e.toggleOverwrite(!1),e.setOption("keyMap","vim-insert"),o.default.signal(e,"vim-mode-change",{mode:"insert"})),A.macroModeState.isPlaying||(e.on("change",Ye),o.default.on(e.getInputField(),"keydown",et)),i.visualMode&&me(e),he(e,a,l)}},toggleVisualMode:function(e,t,i){var n,s=t.repeat,a=e.getCursor();i.visualMode?i.visualLine^t.linewise||i.visualBlock^t.blockwise?(i.visualLine=!!t.linewise,i.visualBlock=!!t.blockwise,o.default.signal(e,"vim-mode-change",{mode:"visual",subMode:i.visualLine?"linewise":i.visualBlock?"blockwise":""}),ge(e)):me(e):(i.visualMode=!0,i.visualLine=!!t.linewise,i.visualBlock=!!t.blockwise,n=Z(e,new r(a.line,a.ch+s-1)),i.sel={anchor:a,head:n},o.default.signal(e,"vim-mode-change",{mode:"visual",subMode:i.visualLine?"linewise":i.visualBlock?"blockwise":""}),ge(e),xe(e,i,"<",oe(a,n)),xe(e,i,">",se(a,n)))},reselectLastSelection:function(e,t,i){var n=i.lastSelection;if(i.visualMode&&ue(e,i),n){var s=n.anchorMark.find(),r=n.headMark.find();if(!s||!r)return;i.sel={anchor:s,head:r},i.visualMode=!0,i.visualLine=n.visualLine,i.visualBlock=n.visualBlock,ge(e),xe(e,i,"<",oe(s,r)),xe(e,i,">",se(s,r)),o.default.signal(e,"vim-mode-change",{mode:"visual",subMode:i.visualLine?"linewise":i.visualBlock?"blockwise":""})}},joinLines:function(e,t,i){var n,o;if(i.visualMode){if(n=e.getCursor("anchor"),ne(o=e.getCursor("head"),n)){var s=o;o=n,n=s}o.ch=ae(e,o.line)-1}else{var a=Math.max(t.repeat,2);n=e.getCursor(),o=Z(e,new r(n.line+a-1,1/0))}for(var l=0,d=n.line;d1&&(g=Array(t.repeat+1).join(g));var p,m,f=o.linewise,v=o.blockwise;if(v){g=g.split("\n"),f&&g.pop();for(var _=0;_e.lastLine()&&e.replaceRange("\n",new r(L,0)),ae(e,L)c.length&&(n=c.length),s=new r(l.line,n)}if("\n"==a)i.visualMode||e.replaceRange("",l,s),(o.default.commands.newlineAndIndentContinueComment||o.default.commands.newlineAndIndent)(e);else{var h=e.getRange(l,s);if(h=h.replace(/[^\n]/g,a),i.visualBlock){var u=new Array(e.getOption("tabSize")+1).join(" ");h=(h=e.getSelection()).replace(/\t/g,u).replace(/[^\n]/g,a).split("\n"),e.replaceSelections(h)}else e.replaceRange(h,l,s);i.visualMode?(l=ne(d[0].anchor,d[0].head)?d[0].anchor:d[0].head,e.setCursor(l),me(e,!1)):e.setCursor(X(s,0,-1))}},incrementNumberToken:function(e,t){for(var i,n,o,s,a=e.getCursor(),l=e.getLine(a.line),d=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi;null!==(i=d.exec(l))&&(o=(n=i.index)+i[0].length,!(a.ch"==t.slice(-11)){var i=t.length-11,n=e.slice(0,i),o=t.slice(0,i);return n==o&&e.length>i?"full":0==o.indexOf(n)&&"partial"}return e==t?"full":0==t.indexOf(e)&&"partial"}function ee(e,t,i){return function(){for(var n=0;n2&&(t=oe.apply(void 0,Array.prototype.slice.call(arguments,1))),ne(e,t)?e:t}function se(e,t){return arguments.length>2&&(t=se.apply(void 0,Array.prototype.slice.call(arguments,1))),ne(e,t)?t:e}function re(e,t,i){var n=ne(e,t),o=ne(t,i);return n&&o}function ae(e,t){return e.getLine(t).length}function le(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function de(e,t,i){var n=ae(e,t),o=new Array(i-n+1).join(" ");e.setCursor(new r(t,n)),e.replaceRange(o,e.getCursor())}function ce(e,t){var i=[],n=e.listSelections(),o=te(e.clipPos(t)),s=!ie(t,o),a=function(e,t,i){for(var n=0;na?d:0,h=n[c].anchor,u=Math.min(h.line,o.line),g=Math.max(h.line,o.line),p=h.ch,m=o.ch,f=n[c].head.ch-p,v=m-p;f>0&&v<=0?(p++,s||m--):f<0&&v>=0?(p--,l||m++):f<0&&-1==v&&(p--,m++);for(var _=u;_<=g;_++){var b={anchor:new r(_,p),head:new r(_,m)};i.push(b)}return e.setSelections(i),t.ch=m,h.ch=p,h}function he(e,t,i){for(var n=[],o=0;od&&(o.line=d),o.ch=ae(e,o.line)}return{ranges:[{anchor:s,head:o}],primary:0}}if("block"==i){var c=Math.min(s.line,o.line),h=s.ch,u=Math.max(s.line,o.line),g=o.ch;h=a.length)return null;n?d=p[0]:(d=g[0])(a.charAt(l))||(d=g[1]);for(var c=l,h=l;d(a.charAt(c))&&c=0;)h--;if(h++,t){for(var u=c;/\s/.test(a.charAt(c))&&c0;)h--;h||(h=m)}}return{start:new r(s.line,h),end:new r(s.line,c)}}function _e(e,t,i){ie(t,i)||A.jumpList.add(e,t,i)}function be(e,t){A.lastCharacterSearch.increment=e,A.lastCharacterSearch.forward=t.forward,A.lastCharacterSearch.selectedCharacter=t.selectedCharacter}var we={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},ye={bracket:{isComplete:function(e){if(e.nextCh===e.symb){if(e.depth++,e.depth>=1)return!0}else e.nextCh===e.reverseSymb&&e.depth--;return!1}},section:{init:function(e){e.curMoveThrough=!0,e.symb=(e.forward?"]":"[")===e.symb?"{":"}"},isComplete:function(e){return 0===e.index&&e.nextCh===e.symb}},comment:{isComplete:function(e){var t="*"===e.lastCh&&"/"===e.nextCh;return e.lastCh=e.nextCh,t}},method:{init:function(e){e.symb="m"===e.symb?"{":"}",e.reverseSymb="{"===e.symb?"}":"{"},isComplete:function(e){return e.nextCh===e.symb}},preprocess:{init:function(e){e.index=0},isComplete:function(e){if("#"===e.nextCh){var t=e.lineText.match(/^#(\w+)/)[1];if("endif"===t){if(e.forward&&0===e.depth)return!0;e.depth++}else if("if"===t){if(!e.forward&&0===e.depth)return!0;e.depth--}if("else"===t&&0===e.depth)return!0}return!1}}};function Ce(e,t,i,n,o){var s=t.line,r=t.ch,a=e.getLine(s),l=i?1:-1,d=n?p:g;if(o&&""==a){if(s+=l,a=e.getLine(s),!C(e,s))return null;r=i?0:a.length}for(;;){if(o&&""==a)return{from:0,to:0,line:s};for(var c=l>0?a.length:-1,h=c,u=c;r!=c;){for(var m=!1,f=0;f0?0:a.length}}function ke(e,t,i,n,o){var s=new r(t.line+i.repeat-1,1/0),a=e.clipPos(s);return a.ch--,o||(n.lastHPos=1/0,n.lastHSPos=e.charCoords(a,"div").left),s}function Se(e,t,i,n){for(var o,s=e.getCursor(),a=s.ch,l=0;l0;)u(c,n)&&i--,c+=n;return new r(c,0)}var g=e.state.vim;if(g.visualLine&&u(a,1,!0)){var p=g.sel.anchor;u(p.line,-1,!0)&&(o&&p.line==a||(a+=1))}var m=h(a);for(c=a;c<=d&&i;c++)u(c,1,!0)&&(o&&h(c)==m||i--);for(s=new r(c,0),c>d&&!m?m=!0:o=!1,c=a;c>l&&(o&&h(c)!=m&&c!=a||!u(c,-1,!0));c--);return{start:new r(c,0),end:s}}function Ee(){}function Ie(e){var t=e.state.vim;return t.searchState_||(t.searchState_=new Ee)}function Ne(e,t){var i=Me(e,t)||[];if(!i.length)return[];var n=[];if(0===i[0]){for(var o=0;o@~])/);return i.commandName=n?n[1]:t.match(/.*/)[0],i},parseLineSpec_:function(e,t){var i=t.match(/^(\d+)/);if(i)return parseInt(i[1],10)-1;switch(t.next()){case".":return this.parseLineSpecOffset_(t,e.getCursor().line);case"$":return this.parseLineSpecOffset_(t,e.lastLine());case"'":var n=t.next(),o=je(e,e.state.vim,n);if(!o)throw new Error("Mark not set");return this.parseLineSpecOffset_(t,o.line);case"-":case"+":return t.backUp(1),this.parseLineSpecOffset_(t,e.getCursor().line);default:return void t.backUp(1)}},parseLineSpecOffset_:function(e,t){var i=e.match(/^([+-])?(\d+)/);if(i){var n=parseInt(i[2],10);"-"==i[1]?t-=n:t+=n}return t},parseCommandArgs_:function(e,t,i){if(!e.eol()){t.argString=e.match(/.*/)[0];var n=i.argDelimiter||/\s+/,o=le(t.argString).split(n);o.length&&o[0]&&(t.args=o)}},matchCommand_:function(e){for(var t=e.length;t>0;t--){var i=e.substring(0,t);if(this.commandMap_[i]){var n=this.commandMap_[i];if(0===n.name.indexOf(e))return n}}return null},buildCommandMap_:function(){this.commandMap_={};for(var e=0;e1)return"Invalid arguments";a=(d?"decimal":c&&"hex")||h&&"octal"}r[2]&&(l=new RegExp(r[2].substr(1,r[2].length-2),n?"i":""))}}();if(d)Pe(e,d+": "+t.argString);else{var c=t.line||e.firstLine(),h=t.lineEnd||t.line||e.lastLine();if(c!=h){var u=new r(c,0),g=new r(h,ae(e,h)),p=e.getRange(u,g).split("\n"),m=l||("decimal"==a?/(-?)([\d]+)/:"hex"==a?/(-?)(?:0x)?([0-9a-f]+)/i:"octal"==a?/([0-7]+)/:null),f="decimal"==a?10:"hex"==a?16:"octal"==a?8:null,v=[],_=[];if(a||l)for(var b=0;b=o&&t<=a:t==o);)if(i||r.from().line!=h||u)return e.scrollIntoView(r.from(),30),e.setSelection(r.from(),r.to()),c=r.from(),void(g=!1);var t,o,a,l,d;g=!0}function v(t){if(t&&t(),e.focus(),c){e.setCursor(c);var i=e.state.vim;i.exMode=!1,i.lastHPos=i.lastHSPos=c.ch}d&&d()}if(f(),!g)return t?void Oe(e,{prefix:Re("span","replace with ",Re("strong",l)," (y/n/a/q/l)"),onKeyDown:function(t,i,n){switch(o.default.e_stop(t),o.default.keyName(t)){case"Y":m(),f();break;case"N":f();break;case"A":var s=d;d=void 0,e.operation(p),d=s;break;case"L":m();case"Q":case"Esc":case"Ctrl-C":case"Ctrl-[":v(n)}return g&&v(n),!0}}):(p(),void(d&&d()));Pe(e,"No matches for "+a.source)}(e,h,g,m,f,_,p,c,t.callback)}else Pe(e,"No previous substitute regular expression")},redo:o.default.commands.redo,undo:o.default.commands.undo,write:function(e){o.default.commands.save?o.default.commands.save(e):e.save&&e.save()},nohlsearch:function(e){Ve(e)},yank:function(e){var t=te(e.getCursor()).line,i=e.getLine(t);A.registerController.pushText("0","yank",i,!0,!0)},delmarks:function(e,t){if(t.argString&&le(t.argString))for(var i=e.state.vim,n=new o.default.StringStream(le(t.argString));!n.eol();){n.eatSpace();var s=n.pos;if(!n.match(/[a-zA-Z]/,!1))return void Pe(e,"Invalid argument: "+t.argString.substring(s));var r=n.next();if(n.match("-",!0)){if(!n.match(/[a-zA-Z]/,!1))return void Pe(e,"Invalid argument: "+t.argString.substring(s));var a=r,l=n.next();if(!(k(a)&&k(l)||S(a)&&S(l)))return void Pe(e,"Invalid argument: "+a+"-");var d=a.charCodeAt(0),c=l.charCodeAt(0);if(d>=c)return void Pe(e,"Invalid argument: "+t.argString.substring(s));for(var h=0;h<=c-d;h++){var u=String.fromCharCode(d+h);delete i.marks[u]}}else delete i.marks[r]}else Pe(e,"Argument required")}},qe=new $e;function Ge(e){var t=e.state.vim,i=A.macroModeState,n=A.registerController.getRegister("."),s=i.isPlaying,r=i.lastInsertModeChanges;s||(e.off("change",Ye),o.default.off(e.getInputField(),"keydown",et)),!s&&t.insertModeRepeat>1&&(tt(e,t,t.insertModeRepeat-1,!0),t.lastEditInputState.repeatOverride=t.insertModeRepeat),delete t.insertModeRepeat,t.insertMode=!1,e.setCursor(e.getCursor().line,e.getCursor().ch-1),e.setOption("keyMap","vim"),e.setOption("disableInput",!0),e.toggleOverwrite(!1),n.setText(r.changes.join("")),o.default.signal(e,"vim-mode-change",{mode:"normal"}),i.isRecording&&function(e){if(!e.isPlaying){var t=e.latestRegister,i=A.registerController.getRegister(t);i&&i.pushInsertModeChanges&&i.pushInsertModeChanges(e.lastInsertModeChanges)}}(i),e.enterVimMode()}function Qe(e){l.unshift(e)}function Ze(e,t,i,n){var o=A.registerController.getRegister(n);if(":"==n)return o.keyBuffer[0]&&qe.processCommand(e,o.keyBuffer[0]),void(i.isPlaying=!1);var s=o.keyBuffer,r=0;i.isPlaying=!0,i.replaySearchQueries=o.searchQueries.slice(0);for(var a=0;a|<\w+>|./.exec(c))[0],c=c.substring(l.index+d.length),W.handleKey(e,d,"macro"),t.insertMode){var h=o.insertModeChanges[r++].changes;A.macroModeState.lastInsertModeChanges.changes=h,it(e,h,1),Ge(e)}i.isPlaying=!1}function Ye(e,t){var i=A.macroModeState,n=i.lastInsertModeChanges;if(!i.isPlaying)for(;t;){if(n.expectCursorActivityForChange=!0,n.ignoreCount>1)n.ignoreCount--;else if("+input"==t.origin||"paste"==t.origin||void 0===t.origin){var o=e.listSelections().length;o>1&&(n.ignoreCount=o);var s=t.text.join("\n");n.maybeReset&&(n.changes=[],n.maybeReset=!1),s&&(e.state.overwrite&&!/\n/.test(s)?n.changes.push([s]):n.changes.push(s))}t=t.next}}function Xe(e){var t=e.state.vim;if(t.insertMode){var i=A.macroModeState;if(i.isPlaying)return;var n=i.lastInsertModeChanges;n.expectCursorActivityForChange?n.expectCursorActivityForChange=!1:n.maybeReset=!0}else e.curOp.isVimOp||function(e,t){var i=e.getCursor("anchor"),n=e.getCursor("head");if(t.visualMode&&!e.somethingSelected()?me(e,!1):t.visualMode||t.insertMode||!e.somethingSelected()||(t.visualMode=!0,t.visualLine=!1,o.default.signal(e,"vim-mode-change",{mode:"visual"})),t.visualMode){var s=ne(n,i)?0:-1,r=ne(n,i)?-1:0;n=X(n,0,s),i=X(i,0,r),t.sel={anchor:i,head:n},xe(e,t,"<",oe(n,i)),xe(e,t,">",se(n,i))}else t.insertMode||(t.lastHPos=e.getCursor().ch)}(e,t)}function Je(e){this.keyName=e}function et(e){var t=A.macroModeState.lastInsertModeChanges,i=o.default.keyName(e);i&&(-1==i.indexOf("Delete")&&-1==i.indexOf("Backspace")||o.default.lookupKey(i,"vim-insert",(function(){return t.maybeReset&&(t.changes=[],t.maybeReset=!1),t.changes.push(new Je(i)),!0})))}function tt(e,t,i,n){var o=A.macroModeState;o.isPlaying=!0;var s=!!t.lastEditActionCommand,r=t.inputState;function a(){s?$.processAction(e,t,t.lastEditActionCommand):$.evalInput(e,t)}function l(i){if(o.lastInsertModeChanges.changes.length>0){i=t.lastEditActionCommand?i:1;var n=o.lastInsertModeChanges;it(e,n.changes,i)}}if(t.inputState=t.lastEditInputState,s&&t.lastEditActionCommand.interlaceInsertRepeat)for(var d=0;d{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(514),o=i(41672);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i=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,i){if("string"!=typeof e){var n=this.string.slice(this.pos).match(e);return n&&n.index>0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}var o=function(e){return i?e.toLowerCase():e};if(o(this.string.substr(this.pos,e.length))==o(e))return!1!==t&&(this.pos+=e.length),!0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}}};var f=function(){function e(t,i,n,o){a(this,e),this.cm=t,this.id=i,this.lineNumber=n+1,this.column=o+1,t.marks[this.id]=this}return d(e,[{key:"clear",value:function(){delete this.cm.marks[this.id]}},{key:"find",value:function(){return p(this)}}]),e}();function v(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=!0,o=n.KeyCode[e.keyCode];e.key&&(o=e.key,i=!1);var s=o,r=t;switch(e.keyCode){case n.KeyCode.Shift:case n.KeyCode.Meta:case n.KeyCode.Alt:case n.KeyCode.Ctrl:return s;case n.KeyCode.Escape:r=!0,s="Esc";break;case n.KeyCode.Space:r=!0}return o.startsWith("Key")||o.startsWith("KEY_")?s=o[o.length-1].toLowerCase():o.startsWith("Digit")?s=o.slice(5,6):o.startsWith("Numpad")?s=o.slice(6,7):o.endsWith("Arrow")?(r=!0,s=o.substring(0,o.length-5)):(o.startsWith("US_")||o.startsWith("Bracket")||!s)&&(s=e.browserEvent.key),r||e.altKey||e.ctrlKey||e.metaKey?(e.altKey&&(s="Alt-".concat(s)),e.ctrlKey&&(s="Ctrl-".concat(s)),e.metaKey&&(s="Meta-".concat(s)),e.shiftKey&&(s="Shift-".concat(s))):s=e.key||e.browserEvent.key,1===s.length&&i&&(s="'".concat(s,"'")),s}var _=function(){function e(t){a(this,e),b.call(this),this.editor=t,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 d(e,[{key:"attach",value:function(){e.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(e,t){var i=!1,o=e,s=this.editor.getPosition(),r=new n.Range(s.lineNumber,s.column,s.lineNumber,s.column+1);if(e.startsWith("'"))o=e[1];else if("Enter"===o)o="\n";else{if("Backspace"!==o)return;var a=this.replaceStack.pop();if(!a)return;i=!0,o=a,r=new n.Range(s.lineNumber,s.column,s.lineNumber,s.column-1)}t.preventDefault(),t.stopPropagation(),this.replaceStack||(this.replaceStack=[]),i||this.replaceStack.push(this.editor.getModel().getValueInRange(r)),this.editor.executeEdits("vim",[{text:o,range:r,forceMoveMarkers:!0}]),i&&this.editor.setPosition(r.getStartPosition())}},{key:"setOption",value:function(e,t){this.state[e]=t,"theme"===e&&n.editor.setTheme(t)}},{key:"getConfiguration",value:function(){var e=this.editor,t=c;return"function"==typeof e.getConfiguration?e.getConfiguration():("EditorOption"in n.editor&&(t=n.editor.EditorOption),{readOnly:e.getOption(t.readOnly),viewInfo:{cursorWidth:e.getOption(t.cursorWidth)},fontInfo:e.getOption(t.fontInfo)})}},{key:"getOption",value:function(e){return"readOnly"===e?this.getConfiguration().readOnly:"firstLineNumber"===e?this.firstLine()+1:"indentWithTabs"===e?!this.editor.getModel().getOptions().insertSpaces:"function"==typeof this.editor.getConfiguration?this.editor.getRawConfiguration()[e]:this.editor.getRawOptions()[e]}},{key:"dispatch",value:function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;nt&&(e=t-1),this.editor.getModel().getLineContent(e+1)}},{key:"getAnchorForSelection",value:function(e){return e.isEmpty()?e.getPosition():e.getDirection()===n.SelectionDirection.LTR?e.getStartPosition():e.getEndPosition()}},{key:"getHeadForSelection",value:function(e){return e.isEmpty()?e.getPosition():e.getDirection()===n.SelectionDirection.LTR?e.getEndPosition():e.getStartPosition()}},{key:"getCursor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!e)return p(this.editor.getPosition());var t=this.editor.getSelection();return p(t.isEmpty()?t.getPosition():"anchor"===e?this.getAnchorForSelection(t):this.getHeadForSelection(t))}},{key:"getRange",value:function(e,t){var i=m(e),o=m(t);return this.editor.getModel().getValueInRange(n.Range.fromPositions(i,o))}},{key:"getSelection",value:function(){var e=[],t=this.editor;return t.getSelections().map((function(i){e.push(t.getModel().getValueInRange(i))})),e.join("\n")}},{key:"replaceRange",value:function(e,t,i){var o=m(t),s=i?m(i):o;this.editor.executeEdits("vim",[{text:e,range:n.Range.fromPositions(o,s)}]),this.pushUndoStop()}},{key:"pushUndoStop",value:function(){this.editor.pushUndoStop()}},{key:"setCursor",value:function(e,t){var i=e;"object"!==r(e)&&((i={}).line=e,i.ch=t);var n=this.editor.getModel().validatePosition(m(i));this.editor.setPosition(m(i)),this.editor.revealPosition(n)}},{key:"somethingSelected",value:function(){return!this.editor.getSelection().isEmpty()}},{key:"operation",value:function(e,t){return e()}},{key:"listSelections",value:function(){var e=this,t=this.editor.getSelections();return!t.length||this.inVirtualSelectionMode?[{anchor:this.getCursor("anchor"),head:this.getCursor("head")}]:t.map((function(t){return t.getPosition(),t.getStartPosition(),t.getEndPosition(),{anchor:e.clipPos(p(e.getAnchorForSelection(t))),head:e.clipPos(p(e.getHeadForSelection(t)))}}))}},{key:"focus",value:function(){this.editor.focus()}},{key:"setSelections",value:function(e,t){var i=!!this.editor.getSelections().length,o=e.map((function(e,t){var o=e.anchor,s=e.head;return i?n.Selection.fromPositions(m(o),m(s)):n.Selection.fromPositions(m(s),m(o))}));if(t&&o[t]&&o.push(o.splice(t,1)[0]),o.length){var s,r=o[0];s=r.getDirection()===n.SelectionDirection.LTR?r.getEndPosition():r.getStartPosition(),this.editor.setSelections(o),this.editor.revealPosition(s)}}},{key:"setSelection",value:function(e,t){var i=n.Range.fromPositions(m(e),m(t));this.editor.setSelection(i)}},{key:"getSelections",value:function(){var e=this.editor;return e.getSelections().map((function(t){return e.getModel().getValueInRange(t)}))}},{key:"replaceSelections",value:function(e){var t=this.editor;t.getSelections().forEach((function(i,n){t.executeEdits("vim",[{range:i,text:e[n],forceMoveMarkers:!1}])}))}},{key:"toggleOverwrite",value:function(e){e?(this.enterVimMode(),this.replaceMode=!0):(this.leaveVimMode(),this.replaceMode=!1,this.replaceStack=[])}},{key:"charCoords",value:function(e,t){return{top:e.line,left:e.ch}}},{key:"coordsChar",value:function(e,t){}},{key:"clipPos",value:function(e){return p(this.editor.getModel().validatePosition(m(e)))}},{key:"setBookmark",value:function(e,t){var i=new f(this,this.$uid++,e.line,e.ch);return t&&t.insertLeft||(i.$insertRight=!0),this.marks[i.id]=i,i}},{key:"getScrollInfo",value:function(){var e,t,i=this.editor,n=(e=i.getVisibleRanges(),t=1,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,o,s=[],r=!0,a=!1;try{for(i=i.call(e);!(r=(n=i.next()).done)&&(s.push(n.value),!t||s.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];return{left:0,top:n.startLineNumber-1,height:i.getModel().getLineCount(),clientHeight:n.endLineNumber-n.startLineNumber+1}}},{key:"triggerEditorAction",value:function(e){this.editor.trigger("vim",e)}},{key:"dispose",value:function(){this.dispatch("dispose"),this.removeOverlay(),e.keyMap.vim&&e.keyMap.vim.detach(this),this.disposables.forEach((function(e){return e.dispose()}))}},{key:"getInputField",value:function(){}},{key:"getWrapperElement",value:function(){}},{key:"enterVimMode",value:function(){this.ctxInsert.set(!1);var e=this.getConfiguration();this.initialCursorWidth=e.viewInfo.cursorWidth||0,this.editor.updateOptions({cursorWidth:e.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 e=this.editor.getVisibleRanges();if(!e.length)return{top:0,bottom:0};var t={top:1/0,bottom:0};return e.reduce((function(e,t){return t.startLineNumbere.bottom&&(e.bottom=t.endLineNumber),e}),t),t.top-=1,t.bottom-=1,t}},{key:"findPosV",value:function(e,t,i){var n=this.editor,o=t,s=i,r=m(e);if("page"===i){var a=n.getLayoutInfo().height,l=this.getConfiguration().fontInfo.lineHeight;o*=Math.floor(a/l),s="line"}return"line"===s&&(r.lineNumber+=o),p(r)}},{key:"findMatchingBracket",value:function(e){var t,i,n=m(e),o=this.editor.getModel();return(t=o.bracketPairs?o.bracketPairs.matchBracket(n):null===(i=o.matchBracket)||void 0===i?void 0:i.call(o,n))&&2===t.length?{to:p(t[1].getStartPosition())}:{to:null}}},{key:"findFirstNonWhiteSpaceCharacter",value:function(e){return this.editor.getModel().getLineFirstNonWhitespaceColumn(e+1)-1}},{key:"scrollTo",value:function(e,t){(e||t)&&(e||(t<0&&(t=this.editor.getPosition().lineNumber-t),this.editor.setScrollTop(this.editor.getTopForLineNumber(t+1))))}},{key:"moveCurrentLineTo",value:function(e){var t,i=this.editor,o=i.getPosition(),s=n.Range.fromPositions(o,o);switch(e){case"top":return void i.revealRangeAtTop(s);case"center":return void i.revealRangeInCenter(s);case"bottom":return void(null===(t=i._revealRange)||void 0===t||t.call(i,s,4))}}},{key:"getSearchCursor",value:function(e,t){var i=!1,n=!1;e instanceof RegExp&&!e.global&&(i=!e.ignoreCase,e=e.source,n=!0),null==t.ch&&(t.ch=Number.MAX_VALUE);var o=m(t),s=this,r=this.editor,a=null,l=r.getModel(),d=l.findMatches(e,!1,n,i)||[];return{getMatches:function(){return d},findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},jumpTo:function(e){if(!d||!d.length)return!1;var t=d[e];return a=t.range,s.highlightRanges([a],"currentFindMatch"),s.highlightRanges(d.map((function(e){return e.range})).filter((function(e){return!e.equalsRange(a)}))),a},find:function(t){if(!d||!d.length)return!1;var r;if(t){var c=a?a.getStartPosition():o;if(!(r=l.findPreviousMatch(e,c,n,i))||!r.range.getStartPosition().isBeforeOrEqual(c))return!1}else{var h=a?l.getPositionAt(l.getOffsetAt(a.getEndPosition())+1):o;if(!(r=l.findNextMatch(e,h,n,i))||!h.isBeforeOrEqual(r.range.getStartPosition()))return!1}return a=r.range,s.highlightRanges([a],"currentFindMatch"),s.highlightRanges(d.map((function(e){return e.range})).filter((function(e){return!e.equalsRange(a)}))),a},from:function(){return a&&p(a.getStartPosition())},to:function(){return a&&p(a.getEndPosition())},replace:function(e){a&&(r.executeEdits("vim",[{range:a,text:e,forceMoveMarkers:!0}],(function(e){var t=e[0].range,i=t.endLineNumber,n=t.endColumn;a=a.setEndPosition(i,n)})),r.setPosition(a.getStartPosition()))}}}},{key:"highlightRanges",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"findMatch",i="decoration".concat(t);return this[i]=this.editor.deltaDecorations(this[i]||[],e.map((function(e){return{range:e,options:{stickiness:n.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,zIndex:13,className:t,showIfCollapsed:!0}}}))),this[i]}},{key:"addOverlay",value:function(e,t,i){var n=e.query,o=!1,s=!1;n&&n instanceof RegExp&&!n.global&&(s=!0,o=!n.ignoreCase,n=n.source);var r=this.editor.getModel().findNextMatch(n,this.editor.getPosition(),s,o);r&&r.range&&this.highlightRanges([r.range])}},{key:"removeOverlay",value:function(){var e=this;["currentFindMatch","findMatch"].forEach((function(t){e.editor.deltaDecorations(e["decoration".concat(t)]||[],[])}))}},{key:"scrollIntoView",value:function(e){e&&this.editor.revealPosition(m(e))}},{key:"moveH",value:function(e,t){if("char"===t){var i=this.editor.getPosition();this.editor.setPosition(new n.Position(i.lineNumber,i.column+e))}}},{key:"scanForBracket",value:function(t,i,n,o){for(var s=o.bracketRegex,r=m(t),a=this.editor.getModel(),l=(-1===i?a.findPreviousMatch:a.findNextMatch).bind(a),d=[],c=0;;){if(c>10)return;var h=l(s.source,r,!0,!0,null,!0),u=h.matches[0];if(void 0===h)return;var g=e.matchingBrackets[u];if(g&&">"===g.charAt(1)==i>0)d.push(u);else{if(0===d.length)return{pos:p(h.range.getStartPosition())};d.pop()}r=a.getPositionAt(a.getOffsetAt(h.range.getStartPosition())+i),c+=1}}},{key:"indexFromPos",value:function(e){return this.editor.getModel().getOffsetAt(m(e))}},{key:"posFromIndex",value:function(e){return p(this.editor.getModel().getPositionAt(e))}},{key:"indentLine",value:function(e){var t,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],s=this.editor;t=s._getViewModel?s._getViewModel().cursorConfig:s._getCursors().context.config;var r=new n.Position(e+1,1),a=n.Selection.fromPositions(r,r);s.executeCommand("vim",new o.ShiftCommand(a,{isUnshift:!i,tabSize:t.tabSize,indentSize:t.indentSize,insertSpaces:t.insertSpaces,useTabStops:t.useTabStops,autoIndent:t.autoIndent}))}},{key:"setStatusBar",value:function(e){this.statusBar=e}},{key:"openDialog",value:function(e,t,i){if(this.statusBar)return this.statusBar.setSec(e,t,i)}},{key:"openNotification",value:function(e){this.statusBar&&this.statusBar.showNotification(e)}},{key:"smartIndent",value:function(){this.editor.getAction("editor.action.formatSelection").run()}},{key:"moveCursorTo",value:function(e){var t=this.editor.getPosition();"start"===e?t.column=1:"end"===e&&(t.column=this.editor.getModel().getLineMaxColumn(t.lineNumber)),this.editor.setPosition(t)}},{key:"execCommand",value:function(e){switch(e){case"goLineLeft":this.moveCursorTo("start");break;case"goLineRight":this.moveCursorTo("end");break;case"indentAuto":this.smartIndent()}}}]),e}();_.Pos=u,_.signal=function(e,t,i){e.dispatch(t,i)},_.on=function(){},_.off=function(){},_.addClass=function(){},_.rmClass=function(){},_.defineOption=function(){},_.keyMap={default:function(e){return function(e){return!0}}},_.matchingBrackets={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"},_.isWordChar=function(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||h.test(e))},_.keyName=v,_.StringStream=g,_.e_stop=function(e){return e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,_.e_preventDefault(e),!1},_.e_preventDefault=function(e){return e.preventDefault?(e.preventDefault(),e.browserEvent&&e.browserEvent.preventDefault()):e.returnValue=!1,!1},_.commands={redo:function(e){e.editor.getModel().redo()},undo:function(e){e.editor.getModel().undo()},newlineAndIndent:function(e){e.triggerEditorAction("editor.action.insertLineAfter")}},_.lookupKey=function e(t,i,n){"string"==typeof i&&(i=_.keyMap[i]);var o="function"==typeof i?i(t):i[t];if(!1===o)return"nothing";if("..."===o)return"multi";if(null!=o&&n(o))return"handled";if(i.fallthrough){if(!Array.isArray(i.fallthrough))return e(t,i.fallthrough,n);for(var s=0;s{"use strict";t.K$=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.default,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=new n.default(e);if(!t)return r.attach(),r;var a=new i(t,e,s),l="";return r.on("vim-mode-change",(function(e){a.setMode(e)})),r.on("vim-keypress",(function(e){":"===e?l="":l+=e,a.setKeyBuffer(l)})),r.on("vim-command-done",(function(){l="",a.setKeyBuffer(l)})),r.on("dispose",(function(){a.toggleVisibility(!1),a.closeInput(),a.clear()})),a.toggleVisibility(!0),r.setStatusBar(a),r.attach(),r};var n=s(i(54470)),o=s(i(61272));function s(e){return e&&e.__esModule?e:{default:e}}},61272:(e,t)=>{"use strict";function i(e,t){for(var i=0;i2&&void 0!==arguments[2]?arguments[2]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.closeInput=function(){n.removeInputListeners(),n.input=null,n.setSec(""),n.editor&&n.editor.focus()},this.clear=function(){n.setInnerHtml_(n.node,"")},this.inputKeyUp=function(e){var t=n.input.options;t&&t.onKeyUp&&t.onKeyUp(e,e.target.value,n.closeInput)},this.inputKeyInput=function(e){var t=n.input.options;t&&t.onKeyInput&&t.onKeyUp(e,e.target.value,n.closeInput)},this.inputBlur=function(){n.input.options.closeOnBlur&&n.closeInput()},this.inputKeyDown=function(e){var t=n.input,i=t.options,o=t.callback;i&&i.onKeyDown&&i.onKeyDown(e,e.target.value,n.closeInput)||((27===e.keyCode||i&&!1!==i.closeOnEnter&&13==e.keyCode)&&(n.input.node.blur(),e.stopPropagation(),n.closeInput()),13===e.keyCode&&o&&(e.stopPropagation(),e.preventDefault(),o(e.target.value)))},this.node=t,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=i,this.sanitizer=o}var t,n;return t=e,(n=[{key:"setMode",value:function(e){"visual"!==e.mode?this.setText("--".concat(e.mode.toUpperCase(),"--")):"linewise"===e.subMode?this.setText("--VISUAL LINE--"):"blockwise"===e.subMode?this.setText("--VISUAL BLOCK--"):this.setText("--VISUAL--")}},{key:"setKeyBuffer",value:function(e){this.keyInfoNode.textContent=e}},{key:"setSec",value:function(e,t,i){if(this.notifNode.textContent="",void 0===e)return this.closeInput;this.setInnerHtml_(this.secInfoNode,e);var n=this.secInfoNode.querySelector("input");return n&&(n.focus(),this.input={callback:t,options:i,node:n},i&&(i.selectValueOnOpen&&n.select(),i.value&&(n.value=i.value)),this.addInputListeners()),this.closeInput}},{key:"setText",value:function(e){this.modeInfoNode.textContent=e}},{key:"toggleVisibility",value:function(e){this.node.style.display=e?"block":"none",this.input&&this.removeInputListeners(),clearInterval(this.notifTimeout)}},{key:"addInputListeners",value:function(){var e=this.input.node;e.addEventListener("keyup",this.inputKeyUp),e.addEventListener("keydown",this.inputKeyDown),e.addEventListener("input",this.inputKeyInput),e.addEventListener("blur",this.inputBlur)}},{key:"removeInputListeners",value:function(){if(this.input&&this.input.node){var e=this.input.node;e.removeEventListener("keyup",this.inputKeyUp),e.removeEventListener("keydown",this.inputKeyDown),e.removeEventListener("input",this.inputKeyInput),e.removeEventListener("blur",this.inputBlur)}}},{key:"showNotification",value:function(e){var t=this,i=document.createElement("span");this.setInnerHtml_(i,e),this.notifNode.textContent=i.textContent,this.notifTimeout=setTimeout((function(){t.notifNode.textContent=""}),5e3)}},{key:"setInnerHtml_",value:function(e,t){for(;e.childNodes.length;)e.removeChild(e.childNodes[0]);t&&(this.sanitizer?e.appendChild(this.sanitizer(t)):e.appendChild(t))}}])&&i(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();t.default=n},96861:(e,t,i)=>{"use strict";var n=i(85072),o=i.n(n),s=i(97825),r=i.n(s),a=i(77659),l=i.n(a),d=i(55056),c=i.n(d),h=i(10540),u=i.n(h),g=i(41113),p=i.n(g),m=i(94566),f={};f.styleTagTransform=p(),f.setAttributes=c(),f.insert=l().bind(null,"head"),f.domAPI=r(),f.insertStyleElement=u(),o()(m.A,f),m.A&&m.A.locals&&m.A.locals},37905:(e,t,i)=>{"use strict";var n=i(85072),o=i.n(n),s=i(97825),r=i.n(s),a=i(77659),l=i.n(a),d=i(55056),c=i.n(d),h=i(10540),u=i.n(h),g=i(41113),p=i.n(g),m=i(8474),f={};f.styleTagTransform=p(),f.setAttributes=c(),f.insert=l().bind(null,"head"),f.domAPI=r(),f.insertStyleElement=u(),o()(m.A,f),m.A&&m.A.locals&&m.A.locals},67119:(e,t,i)=>{"use strict";var n=i(85072),o=i.n(n),s=i(97825),r=i.n(s),a=i(77659),l=i.n(a),d=i(55056),c=i.n(d),h=i(10540),u=i.n(h),g=i(41113),p=i.n(g),m=i(67340),f={};f.styleTagTransform=p(),f.setAttributes=c(),f.insert=l().bind(null,"head"),f.domAPI=r(),f.insertStyleElement=u(),o()(m.A,f),m.A&&m.A.locals&&m.A.locals},51580:(e,t,i)=>{"use strict";var n=i(85072),o=i.n(n),s=i(97825),r=i.n(s),a=i(77659),l=i.n(a),d=i(55056),c=i.n(d),h=i(10540),u=i.n(h),g=i(41113),p=i.n(g),m=i(53345),f={};f.styleTagTransform=p(),f.setAttributes=c(),f.insert=l().bind(null,"head"),f.domAPI=r(),f.insertStyleElement=u(),o()(m.A,f),m.A&&m.A.locals&&m.A.locals},61624:(e,t,i)=>{"use strict";var n=i(85072),o=i.n(n),s=i(97825),r=i.n(s),a=i(77659),l=i.n(a),d=i(55056),c=i.n(d),h=i(10540),u=i.n(h),g=i(41113),p=i.n(g),m=i(30245),f={};f.styleTagTransform=p(),f.setAttributes=c(),f.insert=l().bind(null,"head"),f.domAPI=r(),f.insertStyleElement=u(),o()(m.A,f),m.A&&m.A.locals&&m.A.locals},85072:e=>{"use strict";var t=[];function i(e){for(var i=-1,n=0;n{"use strict";var t={};e.exports=function(e,i){var n=function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}t[e]=i}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},10540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},55056:(e,t,i)=>{"use strict";e.exports=function(e){var t=i.nc;t&&e.setAttribute("nonce",t)}},97825:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(i){!function(e,t,i){var n="";i.supports&&(n+="@supports (".concat(i.supports,") {")),i.media&&(n+="@media ".concat(i.media," {"));var o=void 0!==i.layer;o&&(n+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),n+=i.css,o&&(n+="}"),i.media&&(n+="}"),i.supports&&(n+="}");var s=i.sourceMap;s&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,i)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},41113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},66486:function(e){var t,i;e.exports=(t={770:function(e,t,i){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setDefaultDebugCall=t.createOnigScanner=t.createOnigString=t.loadWASM=t.OnigScanner=t.OnigString=void 0;const o=n(i(418));let s=null,r=!1;class a{constructor(e){const t=e.length,i=a._utf8ByteLength(e),n=i!==t,o=n?new Uint32Array(t+1):null;n&&(o[t]=i);const s=n?new Uint32Array(i+1):null;n&&(s[i]=t);const r=new Uint8Array(i);let l=0;for(let i=0;i=55296&&a<=56319&&i+1=56320&&t<=57343&&(d=65536+(a-55296<<10)|t-56320,c=!0)}n&&(o[i]=l,c&&(o[i+1]=l),d<=127?s[l+0]=i:d<=2047?(s[l+0]=i,s[l+1]=i):d<=65535?(s[l+0]=i,s[l+1]=i,s[l+2]=i):(s[l+0]=i,s[l+1]=i,s[l+2]=i,s[l+3]=i)),d<=127?r[l++]=d:d<=2047?(r[l++]=192|(1984&d)>>>6,r[l++]=128|(63&d)>>>0):d<=65535?(r[l++]=224|(61440&d)>>>12,r[l++]=128|(4032&d)>>>6,r[l++]=128|(63&d)>>>0):(r[l++]=240|(1835008&d)>>>18,r[l++]=128|(258048&d)>>>12,r[l++]=128|(4032&d)>>>6,r[l++]=128|(63&d)>>>0),c&&i++}this.utf16Length=t,this.utf8Length=i,this.utf16Value=e,this.utf8Value=r,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=s}static _utf8ByteLength(e){let t=0;for(let i=0,n=e.length;i=55296&&o<=56319&&i+1=56320&&t<=57343&&(s=65536+(o-55296<<10)|t-56320,r=!0)}t+=s<=127?1:s<=2047?2:s<=65535?3:4,r&&i++}return t}createString(e){const t=e._omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}class l{constructor(e){if(this.id=++l.LAST_ID,!s)throw new Error("Must invoke loadWASM first.");this._onigBinding=s,this.content=e;const t=new a(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!l._sharedPtrInUse?(l._sharedPtr||(l._sharedPtr=s._omalloc(1e4)),l._sharedPtrInUse=!0,s.HEAPU8.set(t.utf8Value,l._sharedPtr),this.ptr=l._sharedPtr):this.ptr=t.createString(s)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===l._sharedPtr?l._sharedPtrInUse=!1:this._onigBinding._ofree(this.ptr)}}t.OnigString=l,l.LAST_ID=0,l._sharedPtr=0,l._sharedPtrInUse=!1;class d{constructor(e){if(!s)throw new Error("Must invoke loadWASM first.");const t=[],i=[];for(let n=0,o=e.length;n{n=e,r=t})),a=t instanceof ArrayBuffer?function(e){return t=>WebAssembly.instantiate(e,t)}(t):t instanceof Response&&"function"==typeof WebAssembly.instantiateStreaming?function(e){return t=>WebAssembly.instantiateStreaming(e,t)}(t):function(e){return async t=>{const i=await e.arrayBuffer();return WebAssembly.instantiate(i,t)}}(t),function(e,t,i,n){o.default({print:t,instantiateWasm:(t,i)=>{if("undefined"==typeof performance){const e=()=>Date.now();t.env.emscripten_get_now=e,t.wasi_snapshot_preview1.emscripten_get_now=e}return e(t).then((e=>i(e.instance)),n),{}}}).then((e=>{s=e,i()}))}(a,i,n,r),h},t.createOnigString=function(e){return new l(e)},t.createOnigScanner=function(e){return new d(e)},t.setDefaultDebugCall=function(e){r=e}},418:e=>{var t=("undefined"!=typeof document&&document.currentScript&&document.currentScript.src,function(e){var t,i,n=void 0!==(e=e||{})?e:{};n.ready=new Promise((function(e,n){t=e,i=n}));var o,s={};for(o in n)n.hasOwnProperty(o)&&(s[o]=n[o]);var r,a=[],l=!1,d=!1;r=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(function(e,t){e||T("Assertion failed: "+t)}("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?a=scriptArgs:void 0!==arguments&&(a=arguments),"undefined"!=typeof onig_print&&("undefined"==typeof console&&(console={}),console.log=onig_print,console.warn=console.error="undefined"!=typeof printErr?printErr:onig_print);var c=n.print||console.log.bind(console),h=n.printErr||console.warn.bind(console);for(o in s)s.hasOwnProperty(o)&&(n[o]=s[o]);s=null,n.arguments&&(a=n.arguments),n.thisProgram&&n.thisProgram,n.quit&&n.quit;var u,g;n.wasmBinary&&(u=n.wasmBinary),n.noExitRuntime,"object"!=typeof WebAssembly&&T("no native wasm support detected");var p=!1;var m,f,v,_="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function b(e,t,i){for(var n=t+i,o=t;e[o]&&!(o>=n);)++o;if(o-t>16&&e.subarray&&_)return _.decode(e.subarray(t,o));for(var s="";t>10,56320|1023&d)}}else s+=String.fromCharCode((31&r)<<6|a)}else s+=String.fromCharCode(r)}return s}function w(e,t){return e?b(f,e,t):""}function y(e,t){return e%t>0&&(e+=t-e%t),e}function C(e){m=e,n.HEAP8=new Int8Array(e),n.HEAP16=new Int16Array(e),n.HEAP32=v=new Int32Array(e),n.HEAPU8=f=new Uint8Array(e),n.HEAPU16=new Uint16Array(e),n.HEAPU32=new Uint32Array(e),n.HEAPF32=new Float32Array(e),n.HEAPF64=new Float64Array(e)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le"),n.INITIAL_MEMORY;var k,S=[],x=[],L=[],D=[];function E(e){S.unshift(e)}function I(e){D.unshift(e)}x.push({func:function(){U()}});var N=0,M=null,A=null;function T(e){n.onAbort&&n.onAbort(e),h(e+=""),p=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.";var t=new WebAssembly.RuntimeError(e);throw i(t),t}n.preloadedImages={},n.preloadedAudios={};var R="data:application/octet-stream;base64,";function P(e){return function(e,t){return String.prototype.startsWith?e.startsWith(t):0===e.indexOf(t)}(e,R)}var O,F="onig.wasm";function B(e){try{if(e==F&&u)return new Uint8Array(u);if(r)return r(e);throw"both async and sync fetching of the wasm failed"}catch(e){T(e)}}function W(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var i=t.func;"number"==typeof i?void 0===t.arg?k.get(i)():k.get(i)(t.arg):i(void 0===t.arg?null:t.arg)}else t(n)}}function H(e){try{return g.grow(e-m.byteLength+65535>>>16),C(g.buffer),1}catch(e){}}P(F)||(F=function(e){return n.locateFile?n.locateFile(e,""):""+e}(F)),O="undefined"!=typeof dateNow?dateNow:function(){return performance.now()};var V={mappings:{},buffers:[null,[],[]],printChar:function(e,t){var i=V.buffers[e];0===t||10===t?((1===e?c:h)(b(i,0)),i.length=0):i.push(t)},varargs:void 0,get:function(){return V.varargs+=4,v[V.varargs-4>>2]},getStr:function(e){return w(e)},get64:function(e,t){return e}};var z,j={emscripten_get_now:O,emscripten_memcpy_big:function(e,t,i){f.copyWithin(e,t,t+i)},emscripten_resize_heap:function(e){var t=f.length,i=2147483648;if(e>i)return!1;for(var n=1;n<=4;n*=2){var o=t*(1+.2/n);if(o=Math.min(o,e+100663296),H(Math.min(i,y(Math.max(e,o),65536))))return!0}return!1},fd_write:function(e,t,i,n){for(var o=0,s=0;s>2],a=v[t+(8*s+4)>>2],l=0;l>2]=o,0},setTempRet0:function(e){}},U=(function(){var e={env:j,wasi_snapshot_preview1:j};function t(e,t){var i=e.exports;n.asm=i,C((g=n.asm.memory).buffer),k=n.asm.__indirect_function_table,function(e){if(N--,n.monitorRunDependencies&&n.monitorRunDependencies(N),0==N&&(null!==M&&(clearInterval(M),M=null),A)){var t=A;A=null,t()}}()}function o(e){t(e.instance)}function s(t){return(u||!l&&!d||"function"!=typeof fetch?Promise.resolve().then((function(){return B(F)})):fetch(F,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+F+"'";return e.arrayBuffer()})).catch((function(){return B(F)}))).then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){h("failed to asynchronously prepare wasm: "+e),T(e)}))}if(N++,n.monitorRunDependencies&&n.monitorRunDependencies(N),n.instantiateWasm)try{return n.instantiateWasm(e,t)}catch(e){return h("Module.instantiateWasm callback failed with error: "+e),!1}(u||"function"!=typeof WebAssembly.instantiateStreaming||P(F)||"function"!=typeof fetch?s(o):fetch(F,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(o,(function(e){return h("wasm streaming compile failed: "+e),h("falling back to ArrayBuffer instantiation"),s(o)}))}))).catch(i)}(),n.___wasm_call_ctors=function(){return(U=n.___wasm_call_ctors=n.asm.__wasm_call_ctors).apply(null,arguments)});function $(e){function i(){z||(z=!0,n.calledRun=!0,p||(W(x),W(L),t(n),n.onRuntimeInitialized&&n.onRuntimeInitialized(),function(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)I(n.postRun.shift());W(D)}()))}e=e||a,N>0||(function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)E(n.preRun.shift());W(S)}(),N>0||(n.setStatus?(n.setStatus("Running..."),setTimeout((function(){setTimeout((function(){n.setStatus("")}),1),i()}),1)):i()))}if(n.___errno_location=function(){return(n.___errno_location=n.asm.__errno_location).apply(null,arguments)},n._omalloc=function(){return(n._omalloc=n.asm.omalloc).apply(null,arguments)},n._ofree=function(){return(n._ofree=n.asm.ofree).apply(null,arguments)},n._getLastOnigError=function(){return(n._getLastOnigError=n.asm.getLastOnigError).apply(null,arguments)},n._createOnigScanner=function(){return(n._createOnigScanner=n.asm.createOnigScanner).apply(null,arguments)},n._freeOnigScanner=function(){return(n._freeOnigScanner=n.asm.freeOnigScanner).apply(null,arguments)},n._findNextOnigScannerMatch=function(){return(n._findNextOnigScannerMatch=n.asm.findNextOnigScannerMatch).apply(null,arguments)},n._findNextOnigScannerMatchDbg=function(){return(n._findNextOnigScannerMatchDbg=n.asm.findNextOnigScannerMatchDbg).apply(null,arguments)},n.stackSave=function(){return(n.stackSave=n.asm.stackSave).apply(null,arguments)},n.stackRestore=function(){return(n.stackRestore=n.asm.stackRestore).apply(null,arguments)},n.stackAlloc=function(){return(n.stackAlloc=n.asm.stackAlloc).apply(null,arguments)},n.dynCall_jiji=function(){return(n.dynCall_jiji=n.asm.dynCall_jiji).apply(null,arguments)},n.UTF8ToString=w,A=function e(){z||$(),z||(A=e)},n.run=$,n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();return $(),e.ready});e.exports=t}},i={},function e(n){if(i[n])return i[n].exports;var o=i[n]={exports:{}};return t[n].call(o.exports,o,o.exports,e),o.exports}(770))},94217:function(e){e.exports=(()=>{"use strict";var e={350:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UseOnigurumaFindOptions=t.DebugFlags=void 0,t.DebugFlags={InDebugMode:"undefined"!=typeof process&&!!process.env.VSCODE_TEXTMATE_DEBUG},t.UseOnigurumaFindOptions=!1},527:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BalancedBracketSelectors=t.LocalStackElement=t.StackElement=t.ScopeListElement=t.StackElementMetadata=t.Grammar=t.ScopeMetadata=t.ScopeDependencyProcessor=t.ScopeDependencyCollector=t.PartialScopeDependency=t.FullScopeDependency=t.createGrammar=void 0;var n=i(878),o=i(792),s=i(736),r=i(350),a="undefined"==typeof performance?function(){return Date.now()}:function(){return performance.now()};t.createGrammar=function(e,t,i,n,o,s,r,a){return new y(e,t,i,n,o,s,r,a)};var l=function(e){this.scopeName=e};t.FullScopeDependency=l;var d=function(){function e(e,t){this.scopeName=e,this.include=t}return e.prototype.toKey=function(){return"".concat(this.scopeName,"#").concat(this.include)},e}();t.PartialScopeDependency=d;var c=function(){function e(){this.full=[],this.partial=[],this.visitedRule=new Set,this._seenFull=new Set,this._seenPartial=new Set}return e.prototype.add=function(e){e instanceof l?this._seenFull.has(e.scopeName)||(this._seenFull.add(e.scopeName),this.full.push(e)):this._seenPartial.has(e.toKey())||(this._seenPartial.add(e.toKey()),this.partial.push(e))},e}();function h(e,t,i,o,s){for(var r=0,a=o;r=0){var v=g.substring(0,f),_=g.substring(f+1);v===t.scopeName?p(e,t,t,_,u):v===i.scopeName?p(e,t,i,_,u):e.add(new d(v,g.substring(f+1)))}else e.add(new l(g))}}}}t.ScopeDependencyCollector=c;var u=function(){function e(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests=new Set,this.seenPartialScopeRequests=new Set,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new l(this.initialScopeName)]}return e.prototype.processQueue=function(){var e=this.Q;this.Q=[];for(var t=new c,i=0,n=e;i"))}function p(e,t,i,n,o){void 0===o&&(o=i.repository),o&&o[n]&&h(e,t,i,[o[n]],o)}function m(e,t,i){if(i.patterns&&Array.isArray(i.patterns)&&h(e,t,i,i.patterns,i.repository),i.injections){var n=[];for(var o in i.injections)n.push(i.injections[o]);h(e,t,i,n,i.repository)}}function f(e,t){if(!e)return!1;if(e===t)return!0;var i=t.length;return e.length>i&&e.substr(0,i)===t&&"."===e[i]}function v(e,t){if(t.length>")}var d=Object.keys(this._embeddedLanguages).map((function(t){return e._escapeRegExpCharacters(t)}));0===d.length?this._embeddedLanguagesRegex=null:(d.sort(),d.reverse(),this._embeddedLanguagesRegex=new RegExp("^((".concat(d.join(")|("),"))($|\\.)"),""))}return e.prototype.onDidChangeTheme=function(){this._cache=new Map,this._defaultMetaData=new b("",this._initialLanguage,8,[this._themeProvider.getDefaults()])},e.prototype.getDefaultMetadata=function(){return this._defaultMetaData},e._escapeRegExpCharacters=function(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},e.prototype.getMetadataForScope=function(t){if(null===t)return e._NULL_SCOPE_METADATA;var i=this._cache.get(t);return i||(i=this._doGetMetadataForScope(t),this._cache.set(t,i),i)},e.prototype._doGetMetadataForScope=function(e){var t=this._scopeToLanguage(e),i=this._toStandardTokenType(e),n=this._themeProvider.themeMatch(e);return new b(e,t,i,n)},e.prototype._scopeToLanguage=function(e){if(!e)return 0;if(!this._embeddedLanguagesRegex)return 0;var t=e.match(this._embeddedLanguagesRegex);return t&&(this._embeddedLanguages[t[1]]||0)||0},e.prototype._toStandardTokenType=function(t){var i=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!i)return 8;switch(i[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")},e._NULL_SCOPE_METADATA=new b("",0,0,null),e.STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/,e}(),y=function(){function e(e,t,i,n,o,r,a,l){if(this.balancedBracketSelectors=r,this._scopeName=e,this._scopeMetadataProvider=new w(i,a,n),this._onigLib=l,this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=k(t,null),this._injections=null,this._tokenTypeMatchers=[],o)for(var d=0,c=Object.keys(o);d0)){console.log("Grammar ".concat(this._scopeName," contains the following injections:"));for(var e=0,t=this._injections;ec)break;for(;d.length>0&&d[d.length-1].endPos<=g.start;)o.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?o.produceFromScopes(d[d.length-1].scopes,g.start):o.produce(n,g.start),u.retokenizeCapturedWithRuleId){var p=u.getName(a,r),m=n.contentNameScopesList.push(e,p),f=u.getContentName(a,r),v=m.push(e,f),_=n.push(u.retokenizeCapturedWithRuleId,g.start,-1,!1,null,m,v),b=e.createOnigString(a.substring(0,g.end));N(e,b,i&&0===g.start,g.start,_,o,!1,0),C(b)}else{var w=u.getName(a,r);if(null!==w){var y=(d.length>0?d[d.length-1].scopes:n.contentNameScopesList).push(e,w);d.push(new R(y,g.end))}}}}}for(;d.length>0;)o.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}}function x(e){for(var t=[],i=0,n=e.rules.length;in&&(n=f.captureIndices[0].end,i=!1))}return{stack:s,linePos:n,anchorPosition:l,isFirstLine:i}}(e,t,i,n,s,l);s=p.stack,n=p.linePos,i=p.isFirstLine,g=p.anchorPosition}for(var m=Date.now();!u;){if(0!==c&&Date.now()-m>c)return new I(s,!0);f()}return new I(s,!1);function f(){r.DebugFlags.InDebugMode&&(console.log(""),console.log("@@scanNext ".concat(n,": |").concat(t.content.substr(n).replace(/\n$/,"\\n"),"|")));var d=function(e,t,i,n,o,s){var l=function(e,t,i,n,o,s){var l=o.getRule(e),d=D(l,e,o.endRule,i,n===s),c=d.ruleScanner,h=d.findOptions,u=0;r.DebugFlags.InDebugMode&&(u=a());var g=c.scanner.findNextMatchSync(t,n,h);if(r.DebugFlags.InDebugMode){var p=a()-u;p>5&&console.warn("Rule ".concat(l.debugName," (").concat(l.id,") matching took ").concat(p," against '").concat(t,"'")),console.log(" scanning for (linePos: ".concat(n,", anchorPosition: ").concat(s,")")),console.log(x(c)),g&&console.log("matched rule id: ".concat(c.rules[g.index]," from ").concat(g.captureIndices[0].start," to ").concat(g.captureIndices[0].end))}return g?{captureIndices:g.captureIndices,matchedRuleId:c.rules[g.index]}:null}(e,t,i,n,o,s),d=e.getInjections();if(0===d.length)return l;var c=function(e,t,i,n,o,s,a){for(var l,d=Number.MAX_VALUE,c=null,h=0,u=s.contentNameScopesList.generateScopes(),g=0,p=e.length;g=d)&&(d=w,c=b.captureIndices,l=v.rules[b.index],h=m.priority,d===o))break}}}return c?{priorityMatch:-1===h,captureIndices:c,matchedRuleId:l}:null}(d,e,t,i,n,o,s);if(!c)return l;if(!l)return c;var h=l.captureIndices[0].start,u=c.captureIndices[0].start;return u0)&&c[0].end>n;if(-1===p){var f=s.getRule(e);r.DebugFlags.InDebugMode&&console.log(" popping "+f.debugName+" - "+f.debugEndRegExp),l.produce(s,c[0].start),s=s.setContentNameScopesList(s.nameScopesList),S(e,t,i,s,l,f.endCaptures,c),l.produce(s,c[0].end);var v=s;if(s=s.pop(),g=v.getAnchorPos(),!m&&v.getEnterPos()===n)return r.DebugFlags.InDebugMode&&console.error("[1] - Grammar is in an endless loop - Grammar pushed & popped a rule without advancing"),s=v,l.produce(s,h),void(u=!0)}else{var _=e.getRule(p);l.produce(s,c[0].start);var b=s,w=_.getName(t.content,c),y=s.contentNameScopesList.push(e,w);if(s=s.push(p,n,g,c[0].end===h,null,y,y),_ instanceof o.BeginEndRule){var C=_;r.DebugFlags.InDebugMode&&console.log(" pushing "+C.debugName+" - "+C.debugBeginRegExp),S(e,t,i,s,l,C.beginCaptures,c),l.produce(s,c[0].end),g=c[0].end;var k=C.getContentName(t.content,c),L=y.push(e,k);if(s=s.setContentNameScopesList(L),C.endHasBackReferences&&(s=s.setEndRule(C.getEndWithResolvedBackReferences(t.content,c))),!m&&b.hasSameRuleAs(s))return r.DebugFlags.InDebugMode&&console.error("[2] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),s=s.pop(),l.produce(s,h),void(u=!0)}else if(_ instanceof o.BeginWhileRule){if(C=_,r.DebugFlags.InDebugMode&&console.log(" pushing "+C.debugName),S(e,t,i,s,l,C.beginCaptures,c),l.produce(s,c[0].end),g=c[0].end,k=C.getContentName(t.content,c),L=y.push(e,k),s=s.setContentNameScopesList(L),C.whileHasBackReferences&&(s=s.setEndRule(C.getWhileWithResolvedBackReferences(t.content,c))),!m&&b.hasSameRuleAs(s))return r.DebugFlags.InDebugMode&&console.error("[3] - Grammar is in an endless loop - Grammar pushed the same rule without advancing"),s=s.pop(),l.produce(s,h),void(u=!0)}else{var E=_;if(r.DebugFlags.InDebugMode&&console.log(" matched "+E.debugName+" - "+E.debugMatchRegExp),S(e,t,i,s,l,E.captures,c),l.produce(s,c[0].end),s=s.pop(),!m)return r.DebugFlags.InDebugMode&&console.error("[4] - Grammar is in an endless loop - Grammar is not advancing, nor is it pushing/popping"),s=s.safePop(),l.produce(s,h),void(u=!0)}}c[0].end>n&&(n=c[0].end,i=!1)}}var M=function(){function e(){}return e.toBinaryStr=function(e){for(var t=e.toString(2);t.length<32;)t="0"+t;return t},e.printMetadata=function(t){var i=e.getLanguageId(t),n=e.getTokenType(t),o=e.getFontStyle(t),s=e.getForeground(t),r=e.getBackground(t);console.log({languageId:i,tokenType:n,fontStyle:o,foreground:s,background:r})},e.getLanguageId=function(e){return(255&e)>>>0},e.getTokenType=function(e){return(768&e)>>>8},e.containsBalancedBrackets=function(e){return!!(1024&e)},e.getFontStyle=function(e){return(30720&e)>>>11},e.getForeground=function(e){return(16744448&e)>>>15},e.getBackground=function(e){return(4278190080&e)>>>24},e.set=function(t,i,n,o,s,r,a){var l=e.getLanguageId(t),d=e.getTokenType(t),c=e.containsBalancedBrackets(t)?1:0,h=e.getFontStyle(t),u=e.getForeground(t),g=e.getBackground(t);return 0!==i&&(l=i),8!==n&&(d=n),null!==o&&(c=o?1:0),-1!==s&&(h=s),0!==r&&(u=r),0!==a&&(g=a),(l|d<<8|c<<10|h<<11|u<<15|g<<24)>>>0},e}();t.StackElementMetadata=M;var A=function(){function e(e,t,i){this.parent=e,this.scope=t,this.metadata=i}return e._equals=function(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.scope!==t.scope||e.metadata!==t.metadata)return!1;e=e.parent,t=t.parent}},e.prototype.equals=function(t){return e._equals(this,t)},e._matchesScope=function(e,t,i){return t===e||e.substring(0,i.length)===i},e._matches=function(e,t){if(null===t)return!0;for(var i=t.length,n=0,o=t[n],s=o+".";e;){if(this._matchesScope(e.scope,o,s)){if(++n===i)return!0;s=(o=t[n])+"."}e=e.parent}return!1},e.mergeMetadata=function(e,t,i){if(null===i)return e;var n=-1,o=0,s=0;if(null!==i.themeData)for(var r=0,a=i.themeData.length;r=0?e._push(this,t,i.split(/ /g)):e._push(this,t,[i])},e._generateScopes=function(e){for(var t=[],i=0;e;)t[i++]=e.scope,e=e.parent;return t.reverse(),t},e.prototype.generateScopes=function(){return e._generateScopes(this)},e}();t.ScopeListElement=A;var T=function(){function e(e,t,i,n,o,s,r,a){this._stackElementBrand=void 0,this.parent=e,this.depth=this.parent?this.parent.depth+1:1,this.ruleId=t,this._enterPos=i,this._anchorPos=n,this.beginRuleCapturedEOL=o,this.endRule=s,this.nameScopesList=r,this.contentNameScopesList=a}return e._structuralEquals=function(e,t){for(;;){if(e===t)return!0;if(!e&&!t)return!0;if(!e||!t)return!1;if(e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}},e._equals=function(e,t){return e===t||!!this._structuralEquals(e,t)&&e.contentNameScopesList.equals(t.contentNameScopesList)},e.prototype.clone=function(){return this},e.prototype.equals=function(t){return null!==t&&e._equals(this,t)},e._reset=function(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent},e.prototype.reset=function(){e._reset(this)},e.prototype.pop=function(){return this.parent},e.prototype.safePop=function(){return this.parent?this.parent:this},e.prototype.push=function(t,i,n,o,s,r,a){return new e(this,t,i,n,o,s,r,a)},e.prototype.getEnterPos=function(){return this._enterPos},e.prototype.getAnchorPos=function(){return this._anchorPos},e.prototype.getRule=function(e){return e.getRule(this.ruleId)},e.prototype._writeString=function(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]="(".concat(this.ruleId,", TODO-").concat(this.nameScopesList,", TODO-").concat(this.contentNameScopesList,")"),t},e.prototype.toString=function(){var e=[];return this._writeString(e,0),"["+e.join(",")+"]"},e.prototype.setContentNameScopesList=function(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)},e.prototype.setEndRule=function(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)},e.prototype.hasSameRuleAs=function(e){for(var t=this;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1},e.NULL=new e(null,0,0,0,!1,null,null,null),e}();t.StackElement=T;var R=function(e,t){this.scopes=e,this.endPos=t};t.LocalStackElement=R;var P=function(){function e(e,t){var i=this;this.allowAny=!1,this.balancedBracketScopes=e.flatMap((function(e){return"*"===e?(i.allowAny=!0,[]):(0,s.createMatchers)(e,v).map((function(e){return e.matcher}))})),this.unbalancedBracketScopes=t.flatMap((function(e){return(0,s.createMatchers)(e,v).map((function(e){return e.matcher}))}))}return Object.defineProperty(e.prototype,"matchesAlways",{get:function(){return this.allowAny&&0===this.unbalancedBracketScopes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"matchesNever",{get:function(){return 0===this.balancedBracketScopes.length&&!this.allowAny},enumerable:!1,configurable:!0}),e.prototype.match=function(e){for(var t=0,i=this.unbalancedBracketScopes;t=t)){if(this._emitBinaryTokens){var n=e.metadata,o=!1;if((null===(i=this.balancedBracketSelectors)||void 0===i?void 0:i.matchesAlways)&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){for(var s=e.generateScopes(),a=0,l=this._tokenTypeOverrides;a0&&this._binaryTokens[this._binaryTokens.length-1]===n)return void(this._lastTokenEndIndex=t);if(r.DebugFlags.InDebugMode){var c=e.generateScopes();console.log(" token: |"+this._lineText.substring(this._lastTokenEndIndex,t).replace(/\n$/,"\\n")+"|");for(var h=0;h0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens},e.prototype.getBinaryResult=function(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);for(var i=new Uint32Array(this._binaryTokens.length),n=0,o=this._binaryTokens.length;n{Object.defineProperty(t,"__esModule",{value:!0}),t.parseRawGrammar=void 0;var n=i(69),o=i(350),s=i(974);t.parseRawGrammar=function(e,t){return void 0===t&&(t=null),null!==t&&/\.json$/.test(t)?(i=e,r=t,o.DebugFlags.InDebugMode?(0,s.parse)(i,r,!0):JSON.parse(i)):function(e,t){return o.DebugFlags.InDebugMode?n.parseWithLocation(e,t,"$vscodeTextmateLocation"):n.parse(e)}(e,t);var i,r}},974:(e,t)=>{function i(e,t){throw new Error("Near offset "+e.pos+": "+t+" ~~~"+e.source.substr(e.pos,50)+"~~~")}Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0,t.parse=function(e,t,r){var a=new n(e),l=new o,d=0,c=null,h=[],u=[];function g(){h.push(d),u.push(c)}function p(){d=h.pop(),c=u.pop()}function m(e){i(a,e)}for(;s(a,l);){if(0===d){if(null!==c&&m("too many constructs in root"),3===l.type){c={},r&&(c.$vscodeTextmateLocation=l.toLocation(t)),g(),d=1;continue}if(2===l.type){c=[],g(),d=4;continue}m("unexpected token in root")}if(2===d){if(5===l.type){p();continue}if(7===l.type){d=3;continue}m("expected , or }")}if(1===d||3===d){if(1===d&&5===l.type){p();continue}if(1===l.type){var f=l.value;if(s(a,l)&&6===l.type||m("expected colon"),s(a,l)||m("expected value"),d=2,1===l.type){c[f]=l.value;continue}if(8===l.type){c[f]=null;continue}if(9===l.type){c[f]=!0;continue}if(10===l.type){c[f]=!1;continue}if(11===l.type){c[f]=parseFloat(l.value);continue}if(2===l.type){var v=[];c[f]=v,g(),d=4,c=v;continue}if(3===l.type){var _={};r&&(_.$vscodeTextmateLocation=l.toLocation(t)),c[f]=_,g(),d=1,c=_;continue}}m("unexpected token in dict")}if(5===d){if(4===l.type){p();continue}if(7===l.type){d=6;continue}m("expected , or ]")}if(4===d||6===d){if(4===d&&4===l.type){p();continue}if(d=5,1===l.type){c.push(l.value);continue}if(8===l.type){c.push(null);continue}if(9===l.type){c.push(!0);continue}if(10===l.type){c.push(!1);continue}if(11===l.type){c.push(parseFloat(l.value));continue}if(2===l.type){v=[],c.push(v),g(),d=4,c=v;continue}if(3===l.type){_={},r&&(_.$vscodeTextmateLocation=l.toLocation(t)),c.push(_),g(),d=1,c=_;continue}m("unexpected token in array")}m("unknown state")}return 0!==u.length&&m("unclosed constructs"),c};var n=function(e){this.source=e,this.pos=0,this.len=e.length,this.line=1,this.char=0},o=function(){function e(){this.value=null,this.type=0,this.offset=-1,this.len=-1,this.line=-1,this.char=-1}return e.prototype.toLocation=function(e){return{filename:e,line:this.line,char:this.char}},e}();function s(e,t){t.value=null,t.type=0,t.offset=-1,t.len=-1,t.line=-1,t.char=-1;for(var n,o=e.source,s=e.pos,r=e.len,a=e.line,l=e.char;;){if(s>=r)return!1;if(32!==(n=o.charCodeAt(s))&&9!==n&&13!==n){if(10!==n)break;s++,a++,l=0}else s++,l++}if(t.offset=s,t.line=a,t.char=l,34===n){for(t.type=1,s++,l++;;){if(s>=r)return!1;if(n=o.charCodeAt(s),s++,l++,92!==n){if(34===n)break}else s++,l++}t.value=o.substring(t.offset+1,s-1).replace(/\\u([0-9A-Fa-f]{4})/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/\\(.)/g,(function(t,n){switch(n){case'"':return'"';case"\\":return"\\";case"/":return"/";case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";default:i(e,"invalid escape sequence")}throw new Error("unreachable")}))}else if(91===n)t.type=2,s++,l++;else if(123===n)t.type=3,s++,l++;else if(93===n)t.type=4,s++,l++;else if(125===n)t.type=5,s++,l++;else if(58===n)t.type=6,s++,l++;else if(44===n)t.type=7,s++,l++;else if(110===n){if(t.type=8,s++,l++,117!==(n=o.charCodeAt(s)))return!1;if(s++,l++,108!==(n=o.charCodeAt(s)))return!1;if(s++,l++,108!==(n=o.charCodeAt(s)))return!1;s++,l++}else if(116===n){if(t.type=9,s++,l++,114!==(n=o.charCodeAt(s)))return!1;if(s++,l++,117!==(n=o.charCodeAt(s)))return!1;if(s++,l++,101!==(n=o.charCodeAt(s)))return!1;s++,l++}else if(102===n){if(t.type=10,s++,l++,97!==(n=o.charCodeAt(s)))return!1;if(s++,l++,108!==(n=o.charCodeAt(s)))return!1;if(s++,l++,115!==(n=o.charCodeAt(s)))return!1;if(s++,l++,101!==(n=o.charCodeAt(s)))return!1;s++,l++}else for(t.type=11;;){if(s>=r)return!1;if(!(46===(n=o.charCodeAt(s))||n>=48&&n<=57||101===n||69===n||45===n||43===n))break;s++,l++}return t.len=s-t.offset,null===t.value&&(t.value=o.substr(t.offset,t.len)),e.pos=s,e.line=a,e.char=l,!0}},787:function(e,t,i){var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var o=Object.getOwnPropertyDescriptor(t,i);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,o)}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),o=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)},s=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var i,n,o,s,r={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return r.label++,{value:s[1],done:!1};case 5:r.label++,n=s[1],s=[0];continue;case 7:s=r.ops.pop(),r.trys.pop();continue;default:if(!((o=(o=r.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){r=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]0?[4,Promise.all(s.Q.map((function(e){return a._loadSingleGrammar(e.scopeName)})))]:[3,3];case 2:return r.sent(),s.processQueue(),[3,1];case 3:return[2,this._grammarForScopeName(e,t,i,n,o)]}}))}))},e.prototype.addGrammar=function(e,t,i,n){return void 0===t&&(t=[]),void 0===i&&(i=0),void 0===n&&(n=null),s(this,void 0,void 0,(function(){return r(this,(function(o){switch(o.label){case 0:return this._syncRegistry.addGrammar(e,t),[4,this._grammarForScopeName(e.scopeName,i,n)];case 1:return[2,o.sent()]}}))}))},e.prototype._grammarForScopeName=function(e,t,i,n,o){return void 0===t&&(t=0),void 0===i&&(i=null),void 0===n&&(n=null),void 0===o&&(o=null),this._syncRegistry.grammarForScopeName(e,t,i,n,o)},e}();t.Registry=h,t.INITIAL=c.StackElement.NULL,t.parseRawGrammar=l.parseRawGrammar},736:(e,t)=>{function i(e){return!!e&&!!e.match(/[\w\.:]+/)}Object.defineProperty(t,"__esModule",{value:!0}),t.createMatchers=void 0,t.createMatchers=function(e,t){for(var n,o,s,r=[],a=(s=(o=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(n=e),{next:function(){if(!s)return null;var e=s[0];return s=o.exec(n),e}}),l=a.next();null!==l;){var d=0;if(2===l.length&&":"===l.charAt(1)){switch(l.charAt(0)){case"R":d=1;break;case"L":d=-1;break;default:console.log("Unknown priority ".concat(l," in scope selector"))}l=a.next()}var c=u();if(r.push({matcher:c,priority:d}),","!==l)break;l=a.next()}return r;function h(){if("-"===l){l=a.next();var e=h();return function(t){return!!e&&!e(t)}}if("("===l){l=a.next();var n=function(){for(var e=[],t=u();t&&(e.push(t),"|"===l||","===l);){do{l=a.next()}while("|"===l||","===l);t=u()}return function(t){return e.some((function(e){return e(t)}))}}();return")"===l&&(l=a.next()),n}if(i(l)){var o=[];do{o.push(l),l=a.next()}while(i(l));return function(e){return t(o,e)}}return null}function u(){for(var e=[],t=h();t;)e.push(t),t=h();return function(t){return e.every((function(e){return e(t)}))}}}},69:(e,t)=>{function i(e,t,i){var n=e.length,o=0,s=1,r=0;function a(t){if(null===i)o+=t;else for(;t>0;)10===e.charCodeAt(o)?(o++,s++,r=0):(o++,r++),t--}function l(e){null===i?o=e:a(e-o)}function d(){for(;o0&&65279===e.charCodeAt(0)&&(o=1);var g=0,p=null,m=[],f=[],v=null;function _(e,t){m.push(g),f.push(p),g=e,p=t}function b(){if(0===m.length)return w("illegal state stack");g=m.pop(),p=f.pop()}function w(t){throw new Error("Near offset "+o+": "+t+" ~~~"+e.substr(o,50)+"~~~")}var y,C,k,S,x,L=function(){if(null===v)return w("missing ");var e={};null!==i&&(e[i]={filename:t,line:s,char:r}),p[v]=e,v=null,_(1,e)},D=function(){if(null===v)return w("missing ");var e=[];p[v]=e,v=null,_(2,e)};function E(){if(1!==g)return w("unexpected ");b()}function I(){return 1===g||2!==g?w("unexpected "):void b()}function N(e){if(1===g){if(null===v)return w("missing ");p[v]=e,v=null}else 2===g?p.push(e):p=e}function M(e){if(isNaN(e))return w("cannot parse float");if(1===g){if(null===v)return w("missing ");p[v]=e,v=null}else 2===g?p.push(e):p=e}function A(e){if(isNaN(e))return w("cannot parse integer");if(1===g){if(null===v)return w("missing ");p[v]=e,v=null}else 2===g?p.push(e):p=e}function T(e){if(1===g){if(null===v)return w("missing ");p[v]=e,v=null}else 2===g?p.push(e):p=e}function R(e){if(1===g){if(null===v)return w("missing ");p[v]=e,v=null}else 2===g?p.push(e):p=e}function P(e){if(1===g){if(null===v)return w("missing ");p[v]=e,v=null}else 2===g?p.push(e):p=e}function O(e){if(e.isClosed)return"";var t=u(""),t.replace(/&#([0-9]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,10))})).replace(/&#x([0-9a-f]+);/g,(function(e,t){return String.fromCodePoint(parseInt(t,16))})).replace(/&|<|>|"|'/g,(function(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case""":return'"';case"'":return"'"}return e}))}for(;o=n));){var F=e.charCodeAt(o);if(a(1),60!==F)return w("expected <");if(o>=n)return w("unexpected end of input");var B=e.charCodeAt(o);if(63!==B)if(33!==B){if(47===B){if(a(1),d(),c("plist")){h(">");continue}if(c("dict")){h(">"),E();continue}if(c("array")){h(">"),I();continue}return w("unexpected closed tag")}var W=(C=void 0,k=void 0,k=!1,47===(C=u(">")).charCodeAt(C.length-1)&&(k=!0,C=C.substring(0,C.length-1)),{name:C.trim(),isClosed:k});switch(W.name){case"dict":1===g?L():2===g?(x=void 0,x={},null!==i&&(x[i]={filename:t,line:s,char:r}),p.push(x),_(1,x)):(p={},null!==i&&(p[i]={filename:t,line:s,char:r}),_(1,p)),W.isClosed&&E();continue;case"array":1===g?D():2===g?(void 0,S=[],p.push(S),_(2,S)):_(2,p=[]),W.isClosed&&I();continue;case"key":y=O(W),1!==g?w("unexpected "):null!==v?w("too many "):v=y;continue;case"string":N(O(W));continue;case"real":M(parseFloat(O(W)));continue;case"integer":A(parseInt(O(W),10));continue;case"date":T(new Date(O(W)));continue;case"data":R(O(W));continue;case"true":O(W),P(!0);continue;case"false":O(W),P(!1);continue}if(!/^plist/.test(W.name))return w("unexpected opened tag "+W.name)}else{if(a(1),c("--")){h("--\x3e");continue}h(">")}else a(1),h("?>")}return p}Object.defineProperty(t,"__esModule",{value:!0}),t.parse=t.parseWithLocation=void 0,t.parseWithLocation=function(e,t,n){return i(e,t,n)},t.parse=function(e){return i(e,null,null)}},652:function(e,t,i){var n=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(o,s){function r(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(r,a)}l((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var i,n,o,s,r={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return r.label++,{value:s[1],done:!1};case 5:r.label++,n=s[1],s=[0];continue;case 7:s=r.ops.pop(),r.trys.pop();continue;default:if(!((o=(o=r.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){r=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]s&&(s=l);for(var a=0;a<=s;a++)o[a]=null;for(var r in t)if("$vscodeTextmateLocation"!==r){var l=parseInt(r,10),d=0;t[r].patterns&&(d=e.getCompiledRuleId(t[r],i,n)),o[l]=e.createCaptureRule(i,t[r].$vscodeTextmateLocation,t[r].name,t[r].contentName,d)}}return o},e._compilePatterns=function(t,i,n){var o=[];if(t)for(var s=0,r=t.length;s=0?(c=a.include.substring(0,u),h=a.include.substring(u+1)):c=a.include;var g=i.getExternalGrammar(c,n);if(g)if(h){var v=g.repository[h];v&&(l=e.getCompiledRuleId(v,i,g.repository))}else l=e.getCompiledRuleId(g.repository.$self,i,g.repository)}else l=e.getCompiledRuleId(a,i,n);if(-1!==l){var _=i.getRule(l),b=!1;if((_ instanceof p||_ instanceof m||_ instanceof f)&&_.hasMissingPatterns&&0===_.patterns.length&&(b=!0),b)continue;o.push(l)}}return{patterns:o,hasMissingPatterns:(t?t.length:0)!==o.length}},e}();t.RuleFactory=v},583:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeTrieElement=t.ThemeTrieElementRule=t.strArrCmp=t.strcmp=t.Theme=t.ColorMap=t.parseTheme=t.ParsedThemeRule=void 0;var i=function(e,t,i,n,o,s){this.scope=e,this.parentScopes=t,this.index=i,this.fontStyle=n,this.foreground=o,this.background=s};function n(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function o(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];for(var t=e.settings,o=[],s=0,r=0,a=t.length;r1&&(v=m.slice(0,m.length-1)).reverse(),o[s++]=new i(f,v,r,c,g,p)}}}return o}t.ParsedThemeRule=i,t.parseTheme=o;var s=function(){function e(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(var t=0,i=e.length;t=1&&""===e[0].scope;){var h=e.shift();-1!==h.fontStyle&&(i=h.fontStyle),null!==h.foreground&&(n=h.foreground),null!==h.background&&(o=h.background)}for(var u=new s(t),g=new d(0,null,i,u.getId(n),u.getId(o)),p=new c(new d(0,null,-1,0,0),[]),m=0,f=e.length;mt?1:0}function l(e,t){if(null===e&&null===t)return 0;if(!e)return-1;if(!t)return 1;var i=e.length,n=t.length;if(i===n){for(var o=0;oe?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==i&&(this.foreground=i),0!==n&&(this.background=n)},e}();t.ThemeTrieElementRule=d;var c=function(){function e(e,t,i){void 0===t&&(t=[]),void 0===i&&(i={}),this._mainRule=e,this._rulesWithParentScopes=t,this._children=i}return e._sortBySpecificity=function(e){return 1===e.length||e.sort(this._cmpBySpecificity),e},e._cmpBySpecificity=function(e,t){if(e.scopeDepth===t.scopeDepth){var i=e.parentScopes,n=t.parentScopes,o=null===i?0:i.length,s=null===n?0:n.length;if(o===s)for(var r=0;r{Object.defineProperty(t,"__esModule",{value:!0})},878:(e,t)=>{function i(e){return Array.isArray(e)?function(e){for(var t=[],n=0,o=e.length;n{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,i)=>(o.f[i](e,t),t)),[])),o.u=e=>e+".bundle.js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="monaco-tm:",o.l=(i,n,s,r)=>{if(e[i])e[i].push(n);else{var a,l;if(void 0!==s)for(var d=document.getElementsByTagName("script"),c=0;c{a.onerror=a.onload=null,clearTimeout(g);var o=e[i];if(delete e[i],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((e=>e(n))),t)return t(n)},g=setTimeout(u.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=u.bind(null,a.onerror),a.onload=u.bind(null,a.onload),l&&document.head.appendChild(a)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var i=t.getElementsByTagName("script");if(i.length)for(var n=i.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=i[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={524:0};o.f.j=(t,i)=>{var n=o.o(e,t)?e[t]:void 0;if(0!==n)if(n)i.push(n[2]);else{var s=new Promise(((i,o)=>n=e[t]=[i,o]));i.push(n[2]=s);var r=o.p+o.u(t),a=new Error;o.l(r,(i=>{if(o.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var s=i&&("load"===i.type?"missing":i.type),r=i&&i.target&&i.target.src;a.message="Loading chunk "+t+" failed.\n("+s+": "+r+")",a.name="ChunkLoadError",a.type=s,a.request=r,n[1](a)}}),"chunk-"+t,t)}};var t=(t,i)=>{var n,s,[r,a,l]=i,d=0;if(r.some((t=>0!==e[t]))){for(n in a)o.o(a,n)&&(o.m[n]=a[n]);l&&l(o)}for(t&&t(i);d{"use strict";var e=o(514),t=o(66486),i=o(94217),n=o(18676),s=o(47317),r=o(94901);class a{config;monaco;registry;tokensProviderCache;constructor(e){this.config=e;const{grammars:t,fetchGrammar:n,theme:o,onigLib:s,monaco:r}=e;this.monaco=r,this.registry=new i.Registry({onigLib:s,async loadGrammar(e){if(null==t[e])return null;const{type:o,grammar:s}=await n(e);return(0,i.parseRawGrammar)(s,`example.${o}`)},getInjections(e){const i=t[e];return i?i.injections:void 0},theme:o}),this.tokensProviderCache=new l(this.registry)}injectCSS(){const e=this.registry.getColorMap().map(r.Q1.Format.CSS.parseHex);s.dG.setColorMap(e);const t=(0,n.nh)(e);(function(){null!=document.getElementById("injectStyle")&&document.getElementById("injectStyle").remove();const e=document.createElement("style");e.id="injectStyle";let{head:t}=document;return null==t&&(t=document.getElementsByTagName("head")[0]),t?.appendChild(e),e}()).innerHTML=t}async fetchLanguageInfo(e){const[t,i]=await Promise.all([this.getTokensProviderForLanguage(e),this.config.fetchConfiguration(e)]);return{tokensProvider:t,configuration:i}}getTokensProviderForLanguage(e){const t=this.getScopeNameForLanguage(e);if(null==t)return Promise.resolve(null);const i=this.monaco.languages.getEncodedLanguageId(e);return this.tokensProviderCache.createEncodedTokensProvider(t,i)}getScopeNameForLanguage(e){for(const[t,i]of Object.entries(this.config.grammars))if(i.language===e)return t;return null}}class l{registry;scopeNameToGrammar=new Map;constructor(e){this.registry=e}async createEncodedTokensProvider(e,t){const n=await this.getGrammar(e,t);return{getInitialState:()=>i.INITIAL,tokenizeEncoded(e,t){const i=n.tokenizeLine2(e,t),{tokens:o,ruleStack:s}=i;return{tokens:o,endState:s}},tokenize(e,t){const i=n.tokenizeLine(e,t),{tokens:o,ruleStack:s}=i;return{tokens:o.map((e=>({startIndex:e.startIndex,scopes:e.scopes[0]}))),endState:s}}}}getGrammar(e,t){const i=this.scopeNameToGrammar.get(e);if(null!=i)return i;const n=this.registry.loadGrammarWithConfiguration(e,t,{}).then((t=>{if(t)return t;throw Error(`failed to load grammar for ${e}`)}));return this.scopeNameToGrammar.set(e,n),n}}const d=["indentationRules.decreaseIndentPattern","indentationRules.increaseIndentPattern","indentationRules.indentNextLinePattern","indentationRules.unIndentedLinePattern","folding.markers.start","folding.markers.end","wordPattern","onEnterRules.0.beforeText"];function c(e,t,i){const n=t.split("."),o=n.length-1;n.reduce(((e,t,n)=>null==e?e:n===o?(e[t]=i,null):e[t]),e)}const h={name:"Dark+ (default dark)",settings:[{settings:{foreground:"#D4D4D4",background:"#1E1E1E"}},{name:"Function declarations",scope:["entity.name.function","support.function","support.constant.handlebars","source.powershell variable.other.member","entity.name.operator.custom-literal"],settings:{foreground:"#DCDCAA"}},{name:"Types declaration and references",scope:["meta.return-type","support.class","support.type","entity.name.type","entity.name.namespace","entity.other.attribute","entity.name.scope-resolution","entity.name.class","storage.type.numeric.go","storage.type.byte.go","storage.type.boolean.go","storage.type.string.go","storage.type.uintptr.go","storage.type.error.go","storage.type.rune.go","storage.type.cs","storage.type.generic.cs","storage.type.modifier.cs","storage.type.variable.cs","storage.type.annotation.java","storage.type.generic.java","storage.type.java","storage.type.object.array.java","storage.type.primitive.array.java","storage.type.primitive.java","storage.type.token.java","storage.type.groovy","storage.type.annotation.groovy","storage.type.parameters.groovy","storage.type.generic.groovy","storage.type.object.array.groovy","storage.type.primitive.array.groovy","storage.type.primitive.groovy"],settings:{foreground:"#4EC9B0"}},{name:"Types declaration and references, TS grammar specific",scope:["meta.type.cast.expr","meta.type.new.expr","support.constant.math","support.constant.dom","support.constant.json","entity.other.inherited-class"],settings:{foreground:"#4EC9B0"}},{name:"Control flow / Special keywords",scope:["keyword.control","source.cpp keyword.operator.new","keyword.operator.delete","keyword.other.using","keyword.other.operator","entity.name.operator"],settings:{foreground:"#C586C0"}},{name:"Variable and parameter name",scope:["variable","meta.definition.variable.name","support.variable","entity.name.variable"],settings:{foreground:"#9CDCFE"}},{name:"Constants and enums",scope:["variable.other.constant","variable.other.enummember"],settings:{foreground:"#51B6C4"}},{name:"Object keys, TS grammar specific",scope:"meta.object-literal.key",settings:{foreground:"#9CDCFE"}},{name:"CSS property value",scope:["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],settings:{foreground:"#CE9178"}},{name:"Regular expression groups",scope:["punctuation.definition.group.regexp","punctuation.definition.group.assertion.regexp","punctuation.definition.character-class.regexp","punctuation.character.set.begin.regexp","punctuation.character.set.end.regexp","keyword.operator.negation.regexp","support.other.parenthesis.regexp"],settings:{foreground:"#CE9178"}},{scope:["constant.character.character-class.regexp","constant.other.character-class.set.regexp","constant.other.character-class.regexp","constant.character.set.regexp"],settings:{foreground:"#d16969"}},{scope:["keyword.operator.or.regexp","keyword.control.anchor.regexp"],settings:{foreground:"#DCDCAA"}},{scope:"keyword.operator.quantifier.regexp",settings:{foreground:"#d7ba7d"}},{scope:"constant.character",settings:{foreground:"#569cd6"}},{scope:"constant.character.escape",settings:{foreground:"#d7ba7d"}},{scope:"entity.name.label",settings:{foreground:"#C8C8C8"}},{scope:["meta.embedded","source.groovy.embedded"],settings:{foreground:"#D4D4D4"}},{scope:"emphasis",settings:{fontStyle:"italic"}},{scope:"strong",settings:{fontStyle:"bold"}},{scope:"header",settings:{foreground:"#000080"}},{scope:"comment",settings:{foreground:"#6A9955"}},{scope:"constant.language",settings:{foreground:"#569cd6"}},{scope:["constant.numeric","entity.name.operator.custom-literal.number","keyword.operator.plus.exponent","keyword.operator.minus.exponent"],settings:{foreground:"#b5cea8"}},{scope:"constant.regexp",settings:{foreground:"#646695"}},{scope:"entity.name.tag",settings:{foreground:"#569cd6"}},{scope:"entity.name.tag.css",settings:{foreground:"#d7ba7d"}},{scope:"entity.other.attribute-name",settings:{foreground:"#9cdcfe"}},{scope:["entity.other.attribute-name.class.css","entity.other.attribute-name.class.mixin.css","entity.other.attribute-name.id.css","entity.other.attribute-name.parent-selector.css","entity.other.attribute-name.pseudo-class.css","entity.other.attribute-name.pseudo-element.css","source.css.less entity.other.attribute-name.id","entity.other.attribute-name.attribute.scss","entity.other.attribute-name.scss"],settings:{foreground:"#d7ba7d"}},{scope:"invalid",settings:{foreground:"#f44747"}},{scope:"markup.underline",settings:{fontStyle:"underline"}},{scope:"markup.bold",settings:{fontStyle:"bold",foreground:"#569cd6"}},{scope:"markup.heading",settings:{fontStyle:"bold",foreground:"#569cd6"}},{scope:"markup.italic",settings:{fontStyle:"italic"}},{scope:"markup.inserted",settings:{foreground:"#b5cea8"}},{scope:"markup.deleted",settings:{foreground:"#ce9178"}},{scope:"markup.changed",settings:{foreground:"#569cd6"}},{scope:"punctuation.definition.quote.begin.markdown",settings:{foreground:"#6A9955"}},{scope:"punctuation.definition.list.begin.markdown",settings:{foreground:"#6796e6"}},{scope:"markup.inline.raw",settings:{foreground:"#ce9178"}},{name:"brackets of XML/HTML tags",scope:"punctuation.definition.tag",settings:{foreground:"#808080"}},{scope:["meta.preprocessor","entity.name.function.preprocessor"],settings:{foreground:"#569cd6"}},{scope:"meta.preprocessor.string",settings:{foreground:"#ce9178"}},{scope:"meta.preprocessor.numeric",settings:{foreground:"#b5cea8"}},{scope:"meta.structure.dictionary.key.python",settings:{foreground:"#9cdcfe"}},{scope:"meta.diff.header",settings:{foreground:"#569cd6"}},{scope:"storage",settings:{foreground:"#569cd6"}},{scope:"storage.type",settings:{foreground:"#569cd6"}},{scope:["storage.modifier","keyword.operator.noexcept"],settings:{foreground:"#569cd6"}},{scope:["string","entity.name.operator.custom-literal.string","meta.embedded.assembly"],settings:{foreground:"#ce9178"}},{scope:"string.tag",settings:{foreground:"#ce9178"}},{scope:"string.value",settings:{foreground:"#ce9178"}},{scope:"string.regexp",settings:{foreground:"#d16969"}},{name:"String interpolation",scope:["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],settings:{foreground:"#569cd6"}},{name:"Reset JavaScript string interpolation expression",scope:"meta.template.expression",settings:{foreground:"#d4d4d4"}},{scope:["support.type.vendored.property-name","support.type.property-name","variable.css","variable.scss","variable.other.less","source.coffee.embedded"],settings:{foreground:"#9cdcfe"}},{scope:"keyword",settings:{foreground:"#569cd6"}},{scope:"keyword.operator",settings:{foreground:"#d4d4d4"}},{scope:["keyword.operator.new","keyword.operator.expression","keyword.operator.cast","keyword.operator.sizeof","keyword.operator.alignof","keyword.operator.typeid","keyword.operator.alignas","keyword.operator.instanceof","keyword.operator.logical.python","keyword.operator.wordlike"],settings:{foreground:"#569cd6"}},{scope:"keyword.other.unit",settings:{foreground:"#b5cea8"}},{scope:["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],settings:{foreground:"#569cd6"}},{scope:"support.function.git-rebase",settings:{foreground:"#9cdcfe"}},{scope:"constant.sha.git-rebase",settings:{foreground:"#b5cea8"}},{name:"coloring of the Java import and package identifiers",scope:["storage.modifier.import.java","variable.language.wildcard.java","storage.modifier.package.java"],settings:{foreground:"#d4d4d4"}},{name:"this.self",scope:"variable.language",settings:{foreground:"#569cd6"}}]},u={name:"Light+ (default light)",settings:[{settings:{foreground:"#000000",background:"#FFFFFF"}},{name:"Function declarations",scope:["entity.name.function","support.function","support.constant.handlebars","source.powershell variable.other.member","entity.name.operator.custom-literal"],settings:{foreground:"#795E26"}},{name:"Types declaration and references",scope:["meta.return-type","support.class","support.type","entity.name.type","entity.name.namespace","entity.other.attribute","entity.name.scope-resolution","entity.name.class","storage.type.numeric.go","storage.type.byte.go","storage.type.boolean.go","storage.type.string.go","storage.type.uintptr.go","storage.type.error.go","storage.type.rune.go","storage.type.cs","storage.type.generic.cs","storage.type.modifier.cs","storage.type.variable.cs","storage.type.annotation.java","storage.type.generic.java","storage.type.java","storage.type.object.array.java","storage.type.primitive.array.java","storage.type.primitive.java","storage.type.token.java","storage.type.groovy","storage.type.annotation.groovy","storage.type.parameters.groovy","storage.type.generic.groovy","storage.type.object.array.groovy","storage.type.primitive.array.groovy","storage.type.primitive.groovy"],settings:{foreground:"#267f99"}},{name:"Types declaration and references, TS grammar specific",scope:["meta.type.cast.expr","meta.type.new.expr","support.constant.math","support.constant.dom","support.constant.json","entity.other.inherited-class"],settings:{foreground:"#267f99"}},{name:"Control flow / Special keywords",scope:["keyword.control","source.cpp keyword.operator.new","keyword.operator.delete","keyword.other.using","keyword.other.operator","entity.name.operator"],settings:{foreground:"#AF00DB"}},{name:"Variable and parameter name",scope:["variable","meta.definition.variable.name","support.variable","entity.name.variable"],settings:{foreground:"#001080"}},{name:"Constants and enums",scope:["variable.other.constant","variable.other.enummember"],settings:{foreground:"#0070C1"}},{name:"Object keys, TS grammar specific",scope:"meta.object-literal.key",settings:{foreground:"#001080"}},{name:"CSS property value",scope:["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],settings:{foreground:"#0451a5"}},{name:"Regular expression groups",scope:["punctuation.definition.group.regexp","punctuation.definition.group.assertion.regexp","punctuation.definition.character-class.regexp","punctuation.character.set.begin.regexp","punctuation.character.set.end.regexp","keyword.operator.negation.regexp","support.other.parenthesis.regexp"],settings:{foreground:"#d16969"}},{scope:["constant.character.character-class.regexp","constant.other.character-class.set.regexp","constant.other.character-class.regexp","constant.character.set.regexp"],settings:{foreground:"#811f3f"}},{scope:["keyword.operator.or.regexp","keyword.control.anchor.regexp"],settings:{foreground:"#d16969"}},{scope:"keyword.operator.quantifier.regexp",settings:{foreground:"#000000"}},{scope:"constant.character",settings:{foreground:"#0000ff"}},{scope:"constant.character.escape",settings:{foreground:"#EE0000"}},{scope:"entity.name.label",settings:{foreground:"#000000"}},{scope:["meta.embedded","source.groovy.embedded"],settings:{foreground:"#000000ff"}},{scope:"emphasis",settings:{fontStyle:"italic"}},{scope:"strong",settings:{fontStyle:"bold"}},{scope:"header",settings:{foreground:"#000080"}},{scope:"comment",settings:{foreground:"#008000"}},{scope:"constant.language",settings:{foreground:"#0000ff"}},{scope:["constant.numeric","entity.name.operator.custom-literal.number","keyword.operator.plus.exponent","keyword.operator.minus.exponent"],settings:{foreground:"#098658"}},{scope:"constant.regexp",settings:{foreground:"#811f3f"}},{scope:"entity.name.tag",settings:{foreground:"#800000"}},{scope:"entity.other.attribute-name",settings:{foreground:"#ff0000"}},{scope:["entity.other.attribute-name.class.css","entity.other.attribute-name.class.mixin.css","entity.other.attribute-name.id.css","entity.other.attribute-name.parent-selector.css","entity.other.attribute-name.pseudo-class.css","entity.other.attribute-name.pseudo-element.css","source.css.less entity.other.attribute-name.id","entity.other.attribute-name.scss"],settings:{foreground:"#800000"}},{scope:"invalid",settings:{foreground:"#cd3131"}},{scope:"markup.underline",settings:{fontStyle:"underline"}},{scope:"markup.bold",settings:{fontStyle:"bold",foreground:"#000080"}},{scope:"markup.heading",settings:{fontStyle:"bold",foreground:"#800000"}},{scope:"markup.italic",settings:{fontStyle:"italic"}},{scope:"markup.inserted",settings:{foreground:"#098658"}},{scope:"markup.deleted",settings:{foreground:"#a31515"}},{scope:"markup.changed",settings:{foreground:"#0451a5"}},{scope:["punctuation.definition.quote.begin.markdown","punctuation.definition.list.begin.markdown"],settings:{foreground:"#0451a5"}},{scope:"markup.inline.raw",settings:{foreground:"#800000"}},{name:"brackets of XML/HTML tags",scope:"punctuation.definition.tag",settings:{foreground:"#800000"}},{scope:["meta.preprocessor","entity.name.function.preprocessor"],settings:{foreground:"#0000ff"}},{scope:"meta.preprocessor.string",settings:{foreground:"#a31515"}},{scope:"meta.preprocessor.numeric",settings:{foreground:"#098658"}},{scope:"meta.structure.dictionary.key.python",settings:{foreground:"#0451a5"}},{scope:"meta.diff.header",settings:{foreground:"#000080"}},{scope:"storage",settings:{foreground:"#0000ff"}},{scope:"storage.type",settings:{foreground:"#0000ff"}},{scope:["storage.modifier","keyword.operator.noexcept"],settings:{foreground:"#0000ff"}},{scope:["string","meta.embedded.assembly"],settings:{foreground:"#a31515"}},{scope:["string.comment.buffered.block.pug","string.quoted.pug","string.interpolated.pug","string.unquoted.plain.in.yaml","string.unquoted.plain.out.yaml","string.unquoted.block.yaml","string.quoted.single.yaml","string.quoted.double.xml","string.quoted.single.xml","string.unquoted.cdata.xml","string.quoted.double.html","string.quoted.single.html","string.unquoted.html","string.quoted.single.handlebars","string.quoted.double.handlebars"],settings:{foreground:"#0000ff"}},{scope:"string.regexp",settings:{foreground:"#811f3f"}},{name:"String interpolation",scope:["punctuation.definition.template-expression.begin","punctuation.definition.template-expression.end","punctuation.section.embedded"],settings:{foreground:"#0000ff"}},{name:"Reset JavaScript string interpolation expression",scope:"meta.template.expression",settings:{foreground:"#d4d4d4"}},{scope:["support.constant.property-value","support.constant.font-name","support.constant.media-type","support.constant.media","constant.other.color.rgb-value","constant.other.rgb-value","support.constant.color"],settings:{foreground:"#0451a5"}},{scope:["support.type.vendored.property-name","support.type.property-name","variable.css","variable.scss","variable.other.less","source.coffee.embedded"],settings:{foreground:"#ff0000"}},{scope:["support.type.property-name.json"],settings:{foreground:"#0451a5"}},{scope:"keyword",settings:{foreground:"#AF00DB"}},{scope:"keyword.control",settings:{foreground:"#AF00DB"}},{scope:"keyword.operator",settings:{foreground:"#AF00DB"}},{scope:["keyword.operator.new","keyword.operator.expression","keyword.operator.cast","keyword.operator.sizeof","keyword.operator.alignof","keyword.operator.typeid","keyword.operator.alignas","keyword.operator.instanceof","keyword.operator.logical.python","keyword.operator.wordlike"],settings:{foreground:"#0000ff"}},{scope:"keyword.other.unit",settings:{foreground:"#098658"}},{scope:["punctuation.section.embedded.begin.php","punctuation.section.embedded.end.php"],settings:{foreground:"#800000"}},{scope:"support.function.git-rebase",settings:{foreground:"#0451a5"}},{scope:"constant.sha.git-rebase",settings:{foreground:"#098658"}},{name:"coloring of the Java import and package identifiers",scope:["storage.modifier.import.java","variable.language.wildcard.java","storage.modifier.package.java"],settings:{foreground:"#000000"}},{name:"this.self",scope:"variable.language",settings:{foreground:"#0000ff"}}]};o(19664);var g=Object.defineProperty,p=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,v=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of m(t))f.call(e,o)||o===i||g(e,o,{get:()=>t[o],enumerable:!(n=p(t,o))||n.enumerable});return e},_={};v(_,e,"default");var b=class{constructor(e,t,i){this._onDidChange=new _.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},w={format:{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"},suggest:{},data:{useDefaultDataProvider:!0}};function y(e){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:e===C,documentFormattingEdits:e===C,documentRangeFormattingEdits:e===C}}var C="html",k="handlebars",S="razor",x=M(C,w,y(C)),L=x.defaults,D=M(k,w,y(k)),E=D.defaults,I=M(S,w,y(S)),N=I.defaults;function M(e,t=w,i=y(e)){const n=new b(e,t,i);let s;const r=_.languages.onLanguage(e,(async()=>{s=(await o.e(77).then(o.bind(o,72077))).setupMode(n)}));return{defaults:n,dispose(){r.dispose(),s?.dispose(),s=void 0}}}_.languages.html={htmlDefaults:L,razorDefaults:N,handlebarDefaults:E,htmlLanguageService:x,handlebarLanguageService:D,razorLanguageService:I,registerHTMLLanguageService:M};var A=Object.defineProperty,T=Object.getOwnPropertyDescriptor,R=Object.getOwnPropertyNames,P=Object.prototype.hasOwnProperty,O=(e,t,i,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of R(t))P.call(e,o)||o===i||A(e,o,{get:()=>t[o],enumerable:!(n=T(t,o))||n.enumerable});return e},F={};((e,t,i)=>{O(e,t,"default")})(F,e);var B,W=class{constructor(e,t,i){this._onDidChange=new F.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},H={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}},V={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},z=new W("css",H,V),j=new W("scss",H,V),U=new W("less",H,V);function $(){return o.e(745).then(o.bind(o,52745))}function K(e){return e>47&&e<58}function q(e,t,i){return i=i||90,(e&=-33)>=(t=t||65)&&e<=i}function G(e){return K(e)||Q(e)}function Q(e){return 95===e||q(e)}function Z(e){return function(e){return 32===e||9===e||160===e}(e)||10===e||13===e}function Y(e){return 39===e||34===e}F.languages.css={cssDefaults:z,lessDefaults:U,scssDefaults:j},F.languages.onLanguage("less",(()=>{$().then((e=>e.setupMode(U)))})),F.languages.onLanguage("scss",(()=>{$().then((e=>e.setupMode(j)))})),F.languages.onLanguage("css",(()=>{$().then((e=>e.setupMode(z)))}));class X{constructor(e,t,i){null==i&&"string"==typeof e&&(i=e.length),this.string=e,this.pos=this.start=t||0,this.end=i||0}eof(){return this.pos>=this.end}limit(e,t){return new X(this.string,e,t)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos1&&(s.multiple=!0),i.jsx&&pe(e)?(s.value=me(e),s.expression=!0):s.value=ge(e)?ie(e):void 0,s}var n}function he(e){if(ue(e))return{value:ie(e)};if(ge(e,!0)){const t=ie(e);let i;return oe(e,we)&&(ue(e)||ge(e,!0))&&(i=ie(e)),{name:t,value:i}}}function ue(e){const t=e.pos,i=ee(e);if(_e(i)){for(e.pos++;ne(e);)if(_e(te(e),i.single))return e.start=t,!0;throw se(e,"Unclosed quote",i)}return!1}function ge(e,t){const i=e.pos,n={attribute:0,expression:0,group:0};for(;ne(e);){const i=ee(e);if(n.expression)fe(i,"expression")&&(n[i.context]+=i.open?1:-1);else{if(_e(i)||ve(i)||be(i)||ye(i))break;if(fe(i)){if(!t)break;if(i.open)n[i.context]++;else{if(!n[i.context])break;n[i.context]--}}}e.pos++}return i!==e.pos&&(e.start=i,!0)}function pe(e){const t=e.pos;if(oe(e,De)){let i=0;for(;ne(e);){const t=te(e);if(fe(t,"expression"))if(t.open)i++;else{if(!i)break;i--}}return e.start=t,!0}return!1}function me(e){let t=e.start,i=e.pos;return fe(e.tokens[t],"expression",!0)&&t++,fe(e.tokens[i-1],"expression",!1)&&i--,ie(e,t,i)}function fe(e,t,i){return Boolean(e&&"Bracket"===e.type&&(!t||e.context===t)&&(null==i||e.open===i))}function ve(e,t){return Boolean(e&&"Operator"===e.type&&(!t||e.operator===t))}function _e(e,t){return Boolean(e&&"Quote"===e.type&&(null==t||e.single===t))}function be(e){return Boolean(e&&"WhiteSpace"===e.type)}function we(e){return ve(e,"equal")}function ye(e){return Boolean(e&&"Repeater"===e.type)}function Ce(e){if(function(e){return"Literal"===e.type}(e)){const t=e.value.charCodeAt(0);return t>=65&&t<=90}return!1}function ke(e){return"Literal"===e.type||"RepeaterNumber"===e.type||"RepeaterPlaceholder"===e.type}function Se(e){return ve(e,"class")}function xe(e){return fe(e,"attribute",!0)}function Le(e){return fe(e,"attribute",!1)}function De(e){return fe(e,"expression",!0)}function Ee(e){return fe(e,"group",!0)}function Ie(e){return!e.name&&!e.value&&!e.attributes}function Ne(e){return ve(e,"child")}function Me(e){return ve(e,"sibling")}function Ae(e){return ve(e,"climb")}function Te(e){return ve(e,"close")}function Re(e){return!!e.eat(B.Escape)&&(e.start=e.pos,e.eof()||e.pos++,!0)}function Pe(e,t){return function(e,t){const i=e.pos;if((t.expression||t.attribute)&&e.eat(B.Dollar)&&e.eat(B.CurlyBracketOpen)){let t;e.start=e.pos;let n="";if(e.eatWhile(K)?(t=Number(e.current()),n=e.eat(B.Colon)?Oe(e):""):q(e.peek())&&(n=Oe(e)),e.eat(B.CurlyBracketClose))return{type:"Field",index:t,name:n,start:i,end:e.pos};throw e.error("Expecting }")}e.pos=i}(e,t)||function(e){const t=e.pos;if(e.eat(B.Dollar)&&e.eat(B.Hash))return{type:"RepeaterPlaceholder",value:void 0,start:t,end:e.pos};e.pos=t}(e)||function(e){const t=e.pos;if(e.eatWhile(B.Dollar)){const i=e.pos-t;let n=!1,o=1,s=0;if(e.eat(B.At)){for(;e.eat(B.Climb);)s++;n=e.eat(B.Dash),e.start=e.pos,e.eatWhile(K)&&(o=Number(e.current()))}return e.start=t,{type:"RepeaterNumber",size:i,reverse:n,base:o,parent:s,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(B.Asterisk)){e.start=e.pos;let i=1,n=!1;return e.eatWhile(K)?i=Number(e.current()):n=!0,{type:"Repeater",count:i,value:0,implicit:n,start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eatWhile(Z))return{type:"WhiteSpace",start:t,end:e.pos,value:e.substring(t,e.pos)}}(e)||function(e,t){const i=e.pos,n=t.expression;let o="";for(;!e.eof();){if(Re(e)){o+=e.current();continue}const i=e.peek();if(i===B.Slash&&!t.quote&&!t.expression&&!t.attribute){const t=e.string.charCodeAt(e.pos-1),i=e.string.charCodeAt(e.pos+1);if(K(t)&&K(i)){o+=e.string[e.pos++];continue}}if(i===t.quote||i===B.Dollar||Fe(i,t))break;if(n){if(i===B.CurlyBracketOpen)t.expression++;else if(i===B.CurlyBracketClose){if(!(t.expression>n))break;t.expression--}}else if(!t.quote){if(!t.attribute&&!je(i))break;if(Be(i,t)||We(i,t)||Y(i)||He(i))break}o+=e.string[e.pos++]}if(i!==e.pos)return e.start=i,{type:"Literal",value:o,start:i,end:e.pos}}(e,t)||function(e){const t=Ve(e.peek());if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek();if(Y(t))return{type:"Quote",single:t===B.SingleQuote,start:e.pos++,end:e.pos}}(e)||function(e){const t=e.peek(),i=He(t);if(i)return{type:"Bracket",open:ze(t),context:i,start:e.pos++,end:e.pos}}(e)}function Oe(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(B.CurlyBracketOpen))t.push(e.pos);else if(e.eat(B.CurlyBracketClose)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function Fe(e,t){const i=Ve(e);return!(!i||t.quote||t.expression||t.attribute&&"equal"!==i)}function Be(e,t){return Z(e)&&!t.expression}function We(e,t){return e===B.Asterisk&&!t.attribute&&!t.expression}function He(e){return e===B.RoundBracketOpen||e===B.RoundBracketClose?"group":e===B.SquareBracketOpen||e===B.SquareBracketClose?"attribute":e===B.CurlyBracketOpen||e===B.CurlyBracketClose?"expression":void 0}function Ve(e){return(e===B.Child?"child":e===B.Sibling&&"sibling")||e===B.Climb&&"climb"||e===B.Dot&&"class"||e===B.Hash&&"id"||e===B.Slash&&"close"||e===B.Equals&&"equal"||void 0}function ze(e){return e===B.CurlyBracketOpen||e===B.SquareBracketOpen||e===B.RoundBracketOpen}function je(e){return G(e)||function(e){return 196===e||214==e||220===e||228===e||246===e||252===e}(e)||e===B.Dash||e===B.Colon||e===B.Excl}!function(e){e[e.CurlyBracketOpen=123]="CurlyBracketOpen",e[e.CurlyBracketClose=125]="CurlyBracketClose",e[e.Escape=92]="Escape",e[e.Equals=61]="Equals",e[e.SquareBracketOpen=91]="SquareBracketOpen",e[e.SquareBracketClose=93]="SquareBracketClose",e[e.Asterisk=42]="Asterisk",e[e.Hash=35]="Hash",e[e.Dollar=36]="Dollar",e[e.Dash=45]="Dash",e[e.Dot=46]="Dot",e[e.Slash=47]="Slash",e[e.Colon=58]="Colon",e[e.Excl=33]="Excl",e[e.At=64]="At",e[e.Underscore=95]="Underscore",e[e.RoundBracketOpen=40]="RoundBracketOpen",e[e.RoundBracketClose=41]="RoundBracketClose",e[e.Sibling=43]="Sibling",e[e.Child=62]="Child",e[e.Climb=94]="Climb",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote"}(B||(B={}));const Ue={child:">",class:".",climb:"^",id:"#",equal:"=",close:"/",sibling:"+"},$e={Literal:e=>e.value,Quote:e=>e.single?"'":'"',Bracket:e=>"attribute"===e.context?e.open?"[":"]":"expression"===e.context?e.open?"{":"}":e.open?"(":"}",Operator:e=>Ue[e.operator],Field:(e,t)=>null!=e.index?e.name?`\${${e.index}:${e.name}}`:`\${${e.index}`:e.name?t.getVariable(e.name):"",RepeaterPlaceholder(e,t){let i;for(let e=t.repeaters.length-1;e>=0;e--)if(t.repeaters[e].implicit){i=t.repeaters[e];break}return t.inserted=!0,t.getText(i&&i.value)},RepeaterNumber(e,t){let i=1;const n=t.repeaters.length-1,o=t.repeaters[n];if(o&&(i=e.reverse?e.base+o.count-o.value-1:e.base+o.value,e.parent)){const s=Math.max(0,n-e.parent);if(s!==n){const e=t.repeaters[s];i+=o.count*e.value}}let s=String(i);for(;s.lengthe.value};function Ke(e,t){if(!$e[e.type])throw new Error(`Unknown token ${e.type}`);return $e[e.type](e,t)}const qe=/^((https?:|ftp:|file:)?\/\/|(www|ftp)\.)[^ ]*$/,Ge=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,5}$/;function Qe(e,t){let i=[];if(e.repeat){const n=e.repeat,o=Object.assign({},n);let s;o.count=o.implicit&&Array.isArray(t.text)?t.cleanText.length:o.count||1,t.repeaters.push(o);for(let n=0;ne.trim())):t.text);const o={type:"Abbreviation",children:Ye(e,{inserted:!1,repeaters:[],text:t.text,cleanText:i,repeatGuard:t.maxRepeat||Number.POSITIVE_INFINITY,getText(e){var o;let s;if(n=!0,Array.isArray(t.text)){if(void 0!==e&&e>=0&&e"href"===e.name));o?o.value||(o.value=[n]):(e.attributes||(e.attributes=[]),e.attributes.push({name:"href",value:[n],valueType:"doubleQuote"}))}(e,i)}}return o}(function(e,t={}){const i={tokens:n=e,start:0,pos:0,size:n.length};var n;const o=re(i,t);if(ne(i))throw se(i,"Unexpected character");return o}("string"==typeof e?function(e){const t=new X(e),i=[],n={group:0,attribute:0,expression:0,quote:0};let o,s=0;for(;!t.eof();){if(s=t.peek(),o=Pe(t,n),!o)throw t.error("Unexpected character");i.push(o),"Quote"===o.type?n.quote=s===n.quote?0:s:"Bracket"===o.type&&(n[o.context]+=o.open?1:-1)}return i}(e):e,t),t)}catch(t){throw t instanceof J&&"string"==typeof e&&(t.message+=`\n${e}\n${"-".repeat(t.pos)}^`),t}}var at,lt;function dt(e,t){return function(e){const t=e.pos;if(e.eat(lt.Dollar)&&e.eat(lt.CurlyBracketOpen)){let i;e.start=e.pos;let n="";if(e.eatWhile(K)?(i=Number(e.current()),n=e.eat(lt.Colon)?ct(e):""):q(e.peek())&&(n=ct(e)),e.eat(lt.CurlyBracketClose))return{type:"Field",index:i,name:n,start:t,end:e.pos};throw e.error("Expecting }")}e.pos=t}(e)||function(e){const t=e.pos;if(e.eat(lt.Dash)&&e.eat(lt.Dash))return e.start=t,e.eatWhile(ft),{type:"CustomProperty",value:e.current(),start:t,end:e.pos};e.pos=t}(e)||function(e){const t=e.pos;if(function(e){const t=e.pos;e.eat(lt.Dash);const i=e.pos,n=e.eatWhile(K),o=e.pos;if(e.eat(lt.Dot)){const t=e.eatWhile(K);n||t||(e.pos=o)}return e.pos===i&&(e.pos=t),e.pos!==t}(e)){e.start=t;const i=e.current();return e.start=e.pos,e.eat(lt.Percent)||e.eatWhile(Q),{type:"NumberValue",value:Number(i),rawValue:i,unit:e.current(),start:t,end:e.pos}}}(e)||function(e){const t=e.pos;if(e.eat(lt.Hash)){const i=e.pos;let n="",o="";if(e.eatWhile(mt)?(n=e.substring(i,e.pos),o=ut(e)):e.eat(lt.Transparent)?(n="0",o=ut(e)||"0"):o=ut(e),n||o||e.eof()){const{r:i,g:s,b:r,a}=function(e,t){let i="0",n="0",o="0",s=Number(null!=t&&""!==t?t:1);if("t"===e)s=0;else switch(e.length){case 0:break;case 1:i=n=o=e+e;break;case 2:i=n=o=e;break;case 3:i=e[0]+e[0],n=e[1]+e[1],o=e[2]+e[2];break;default:i=(e+=e).slice(0,2),n=e.slice(2,4),o=e.slice(4,6)}return{r:parseInt(i,16),g:parseInt(n,16),b:parseInt(o,16),a:s}}(n,o);return{type:"ColorValue",r:i,g:s,b:r,a,raw:e.substring(t+1,e.pos),start:t,end:e.pos}}return ht(e,t)}e.pos=t}(e)||function(e){const t=e.peek(),i=e.pos;let n=!1;if(Y(t)){for(e.pos++;!e.eof();){if(e.eat(t)){n=!0;break}e.pos++}return e.start=i,{type:"StringValue",value:e.substring(i+1,e.pos-(n?1:0)),quote:t===lt.SingleQuote?"single":"double",start:i,end:e.pos}}}(e)||function(e){const t=e.peek();if(function(e){return e===lt.RoundBracketOpen||e===lt.RoundBracketClose}(t))return{type:"Bracket",open:t===lt.RoundBracketOpen,start:e.pos++,end:e.pos}}(e)||gt(e)||function(e){const t=e.pos;if(e.eatWhile(Z))return{type:"WhiteSpace",start:t,end:e.pos}}(e)||function(e,t){const i=e.pos;if(e.eat(pt)?e.eatWhile(i?ft:vt):e.eat(Q)?e.eatWhile(t?vt:ft):(e.eat(lt.Dot),e.eatWhile(vt)),i!==e.pos)return e.start=i,ht(e,e.start=i)}(e,t)}function ct(e){const t=[];for(e.start=e.pos;!e.eof();)if(e.eat(lt.CurlyBracketOpen))t.push(e.pos);else if(e.eat(lt.CurlyBracketClose)){if(!t.length){e.pos--;break}t.pop()}else e.pos++;if(t.length)throw e.pos=t.pop(),e.error("Expecting }");return e.current()}function ht(e,t=e.start,i=e.pos){return{type:"Literal",value:e.substring(t,i),start:t,end:i}}function ut(e){const t=e.pos;return e.eat(lt.Dot)?(e.start=t,e.eatWhile(K)?e.current():"1"):""}function gt(e){const t=(i=e.peek())===lt.Sibling&&at.Sibling||i===lt.Excl&&at.Important||i===lt.Comma&&at.ArgumentDelimiter||i===lt.Colon&&at.PropertyDelimiter||i===lt.Dash&&at.ValueDelimiter||void 0;var i;if(t)return{type:"Operator",operator:t,start:e.pos++,end:e.pos}}function pt(e){return e===lt.At||e===lt.Dollar}function mt(e){return K(e)||q(e,65,70)}function ft(e){return G(e)||e===lt.Dash}function vt(e){return Q(e)||e===lt.Percent||e===lt.Slash}function _t(e){return"ColorValue"===e.type||"NumberValue"===e.type&&!e.unit}function bt(e,t){let i=0,n=0;for(;t.length;){const e=(o=t)[o.length-1];if("Literal"!==e.type&&"NumberValue"!==e.type)break;i=e.start,n||(n=e.end),t.pop()}var o;i!==n&&t.push(ht(e,i,n))}function wt(e){return e.tokens[e.pos]}function yt(e){return e.pos=0;t--){const i=e[t];if($t(i))return i}}(t),o=i.context?i.context.name:"",s=((n?n.name:o)||"").toLowerCase();e.name=ri[s]||(ni(s,i)?"span":"div")}const li={ru:{common:["далеко-далеко","за","словесными","горами","в стране","гласных","и согласных","живут","рыбные","тексты"],words:["вдали","от всех","они","буквенных","домах","на берегу","семантика","большого","языкового","океана","маленький","ручеек","даль","журчит","по всей","обеспечивает","ее","всеми","необходимыми","правилами","эта","парадигматическая","страна","которой","жаренные","предложения","залетают","прямо","рот","даже","всемогущая","пунктуация","не","имеет","власти","над","рыбными","текстами","ведущими","безорфографичный","образ","жизни","однажды","одна","маленькая","строчка","рыбного","текста","имени","lorem","ipsum","решила","выйти","большой","мир","грамматики","великий","оксмокс","предупреждал","о","злых","запятых","диких","знаках","вопроса","коварных","точках","запятой","но","текст","дал","сбить","себя","толку","он","собрал","семь","своих","заглавных","букв","подпоясал","инициал","за","пояс","пустился","дорогу","взобравшись","первую","вершину","курсивных","гор","бросил","последний","взгляд","назад","силуэт","своего","родного","города","буквоград","заголовок","деревни","алфавит","подзаголовок","своего","переулка","грустный","реторический","вопрос","скатился","его","щеке","продолжил","свой","путь","дороге","встретил","рукопись","она","предупредила","моей","все","переписывается","несколько","раз","единственное","что","меня","осталось","это","приставка","возвращайся","ты","лучше","свою","безопасную","страну","послушавшись","рукописи","наш","продолжил","свой","путь","вскоре","ему","повстречался","коварный","составитель","рекламных","текстов","напоивший","языком","речью","заманивший","свое","агентство","которое","использовало","снова","снова","своих","проектах","если","переписали","то","живет","там","до","сих","пор"]},sp:{common:["mujer","uno","dolor","más","de","poder","mismo","si"],words:["ejercicio","preferencia","perspicacia","laboral","paño","suntuoso","molde","namibia","planeador","mirar","demás","oficinista","excepción","odio","consecuencia","casi","auto","chicharra","velo","elixir","ataque","no","odio","temporal","cuórum","dignísimo","facilismo","letra","nihilista","expedición","alma","alveolar","aparte","león","animal","como","paria","belleza","modo","natividad","justo","ataque","séquito","pillo","sed","ex","y","voluminoso","temporalidad","verdades","racional","asunción","incidente","marejada","placenta","amanecer","fuga","previsor","presentación","lejos","necesariamente","sospechoso","adiposidad","quindío","pócima","voluble","débito","sintió","accesorio","falda","sapiencia","volutas","queso","permacultura","laudo","soluciones","entero","pan","litro","tonelada","culpa","libertario","mosca","dictado","reincidente","nascimiento","dolor","escolar","impedimento","mínima","mayores","repugnante","dulce","obcecado","montaña","enigma","total","deletéreo","décima","cábala","fotografía","dolores","molesto","olvido","paciencia","resiliencia","voluntad","molestias","magnífico","distinción","ovni","marejada","cerro","torre","y","abogada","manantial","corporal","agua","crepúsculo","ataque","desierto","laboriosamente","angustia","afortunado","alma","encefalograma","materialidad","cosas","o","renuncia","error","menos","conejo","abadía","analfabeto","remo","fugacidad","oficio","en","almácigo","vos","pan","represión","números","triste","refugiado","trote","inventor","corchea","repelente","magma","recusado","patrón","explícito","paloma","síndrome","inmune","autoinmune","comodidad","ley","vietnamita","demonio","tasmania","repeler","apéndice","arquitecto","columna","yugo","computador","mula","a","propósito","fantasía","alias","rayo","tenedor","deleznable","ventana","cara","anemia","corrupto"]},latin:{common:["lorem","ipsum","dolor","sit","amet","consectetur","adipisicing","elit"],words:["exercitationem","perferendis","perspiciatis","laborum","eveniet","sunt","iure","nam","nobis","eum","cum","officiis","excepturi","odio","consectetur","quasi","aut","quisquam","vel","eligendi","itaque","non","odit","tempore","quaerat","dignissimos","facilis","neque","nihil","expedita","vitae","vero","ipsum","nisi","animi","cumque","pariatur","velit","modi","natus","iusto","eaque","sequi","illo","sed","ex","et","voluptatibus","tempora","veritatis","ratione","assumenda","incidunt","nostrum","placeat","aliquid","fuga","provident","praesentium","rem","necessitatibus","suscipit","adipisci","quidem","possimus","voluptas","debitis","sint","accusantium","unde","sapiente","voluptate","qui","aspernatur","laudantium","soluta","amet","quo","aliquam","saepe","culpa","libero","ipsa","dicta","reiciendis","nesciunt","doloribus","autem","impedit","minima","maiores","repudiandae","ipsam","obcaecati","ullam","enim","totam","delectus","ducimus","quis","voluptates","dolores","molestiae","harum","dolorem","quia","voluptatem","molestias","magni","distinctio","omnis","illum","dolorum","voluptatum","ea","quas","quam","corporis","quae","blanditiis","atque","deserunt","laboriosam","earum","consequuntur","hic","cupiditate","quibusdam","accusamus","ut","rerum","error","minus","eius","ab","ad","nemo","fugit","officia","at","in","id","quos","reprehenderit","numquam","iste","fugiat","sit","inventore","beatae","repellendus","magnam","recusandae","quod","explicabo","doloremque","aperiam","consequatur","asperiores","commodi","optio","dolor","labore","temporibus","repellat","veniam","architecto","est","esse","mollitia","nulla","a","similique","eos","alias","dolore","tenetur","deleniti","porro","facere","maxime","corrupti"]}},di=/^lorem([a-z]*)(\d*)(-\d*)?$/i;function ci(e,t){return Math.floor(Math.random()*(t-e)+e)}function hi(e,t){const i=e.length,n=Math.min(i,t),o=[];for(;o.length3&&t<=6?ci(0,1):t>6&&t<=12?ci(0,2):ci(1,4);for(let o,s=0;s/^[a-z]\-/i.test(e),bi=e=>/^[a-z]/i.test(e);function wi(e){if(!e._bem){let t="";if(e.attributes)for(const i of e.attributes)if("class"===i.name&&i.value){t=Li(i.value);break}e._bem=yi(t)}return e._bem}function yi(e){const t=e?e.split(/\s+/):[];return{classNames:t,block:ki(t)}}function Ci(e,t=0,i){let n=Math.max(e.length-t,0);do{const t=e[n];if(t){const e=wi(t);if(e.block)return e.block}}while(0"input"===e.name||"textarea"===e.name));t&&(e.attributes&&(e.attributes=e.attributes.filter((e=>!("for"===e.name&&Ii(e))))),t.attributes&&(t.attributes=t.attributes.filter((e=>!("id"===e.name&&Ii(e))))))}}function Ii(e){if(!e.value)return!0;if(1===e.value.length){const t=e.value[0];if(t&&"string"!=typeof t&&!t.name)return!0}return!1}function Ni(e,t,i){const n=(e,n,s)=>{const{parent:r,current:a}=i;i.parent=a,i.current=e,t(e,n,s,i,o),i.current=a,i.parent=r},o=(e,t,o)=>{i.ancestors.push(i.current),n(e,t,o),i.ancestors.pop()};e.children.forEach(n)}function Mi(e){return{current:null,parent:void 0,ancestors:[],config:e,field:1,out:Qt(e.options)}}const Ai=[{type:"Field",index:0,name:""}];function Ti(e){return!!e&&!e.name&&!e.attributes}function Ri(e,t){return!!e&&ni(e,t)}function Pi(e){return"object"==typeof e&&"Field"===e.type}function Oi(e,t){const{out:i}=t;let n=-1;for(const o of e)"string"==typeof o?Yt(i,o):(Jt(i,t.field+o.index,o.name),o.index>n&&(n=o.index));-1!==n&&(t.field+=n+1)}function Fi(e){return!e.implied||"raw"!==e.valueType||!!e.value&&e.value.length>0}var Bi;function Wi(e){const t=[],i={pos:0,text:e};let n,o=i.pos,s=i.pos;for(;i.pos=65&&e<=90}function ji(e){return zi(e)||e>47&&e<58||e===Bi.Underscore||e===Bi.Dash}function Ui(e,t){const{comment:i}=t;if(!(i.enabled&&i.trigger&&e.name&&e.attributes))return!1;for(const t of e.attributes)if(t.name&&i.trigger.includes(t.name))return!0;return!1}function $i(e,t,i){const n={},{out:o}=i;for(const t of e.attributes)t.name&&t.value&&(n[t.name.toUpperCase()]=t.value);for(const e of t)"string"==typeof e?Yt(o,e):n[e.name]&&(Yt(o,e.before),Oi(n[e.name],i),Yt(o,e.after))}!function(e){e[e.Start=91]="Start",e[e.End=93]="End",e[e.Underscore=95]="Underscore",e[e.Dash=45]="Dash"}(Bi||(Bi={}));const Ki=/^<([\w\-:]+)[\s>]/,qi=new Set(["for","while","of","async","await","const","let","var","continue","break","debugger","do","export","import","in","instanceof","new","return","switch","this","throw","try","catch","typeof","void","with","yield"]);function Gi(e,t){const i=Mi(t);return i.comment=function(e){const{options:t}=e;return{enabled:t["comment.enabled"],trigger:t["comment.trigger"],before:t["comment.before"]?Wi(t["comment.before"]):void 0,after:t["comment.after"]?Wi(t["comment.after"]):void 0}}(t),Ni(e,Qi,i),i.out.value}function Qi(e,t,i,n,o){const{out:s,config:r}=n,a=Xi(e,t,i,n),l=function(e){const{config:t,parent:i}=e;return!i||Ti(i)||i.name&&t.options["output.formatSkip"].includes(i.name)?0:1}(n);if(s.level+=l,a&&Xt(s,!0),e.name){const t=function(e,t){return si(e,t.options["output.tagCase"])}(e.name,r);if(function(e,t){Ui(e,t)&&t.comment.before&&$i(e,t.comment.before,t)}(e,n),Yt(s,`<${t}`),e.attributes)for(const t of e.attributes)Fi(t)&&Zi(t,n);if(!e.selfClosing||e.children.length||e.value){if(Yt(s,">"),!Yi(e,n,o)){if(e.value){const t=e.value.some(Ji)||function(e,t){if(e.length&&"string"==typeof e[0]){const i=Ki.exec(e[0]);if((null==i?void 0:i.length)&&!t.options.inlineElements.includes(i[1].toLowerCase()))return!0}return!1}(e.value,r);t&&Xt(n.out,++s.level),Oi(e.value,n),t&&Xt(n.out,--s.level)}if(e.children.forEach(o),!e.value&&!e.children.length){const t=r.options["output.formatLeafNode"]||r.options["output.formatForce"].includes(e.name);t&&Xt(n.out,++s.level),Oi(Ai,n),t&&Xt(n.out,--s.level)}}Yt(s,``),function(e,t){Ui(e,t)&&t.comment.after&&$i(e,t.comment.after,t)}(e,n)}else Yt(s,`${function(e){switch(e.options["output.selfClosingStyle"]){case"xhtml":return" /";case"xml":return"/";default:return""}}(r)}>`)}else!Yi(e,n,o)&&e.value&&(Oi(e.value,n),e.children.forEach(o));if(a&&t===i.length-1&&n.parent){const e=Ti(n.parent)?0:1;Xt(s,s.level-e)}s.level-=l}function Zi(e,t){const{out:i,config:n}=t;if(e.name){const o=n.options["markup.attributes"],s=n.options["markup.valuePrefix"];let{name:r,value:a}=e,l=ti(e,n,!0),d=ti(e,n);o&&(r=en(r,o,e.multiple)||r),r=ei(r,n),n.options["jsx.enabled"]&&e.multiple&&(l=qt,d=Gt);const c=s?en(e.name,s,e.multiple):null;if(c&&1===(null==a?void 0:a.length)&&"string"==typeof a[0]){const e=a[0];a=[tn(e)?`${c}.${e}`:`${c}['${e}']`],n.options["jsx.enabled"]&&(l=qt,d=Gt)}ii(e,n)&&!a?n.options["output.compactBoolean"]||(a=[r]):a||(a=Ai),Yt(i," "+r),a?(Yt(i,"="+l),Oi(a,t),Yt(i,d)):"html"!==n.options["output.selfClosingStyle"]&&Yt(i,"="+l+d)}}function Yi(e,t,i){if(e.value&&e.children.length){const n=e.value.findIndex(Pi);if(-1!==n){Oi(e.value.slice(0,n),t);const o=t.out.line;let s=n+1;return e.children.forEach(i),t.out.line!==o&&"string"==typeof e.value[s]&&Yt(t.out,e.value[s++].trimLeft()),Oi(e.value.slice(s),t),!0}}return!1}function Xi(e,t,i,n){const{config:o,parent:s}=n;if(!o.options["output.format"])return!1;if(0===t&&!s)return!1;if(s&&Ti(s)&&1===i.length)return!1;if(Ti(e)&&(Ti(i[t-1])||Ti(i[t+1])||e.value.some(Ji)||e.value.some(Pi)&&e.children.length))return!0;if(ni(e,o)){if(0===t){for(let e=0;e=o.options["output.inlineBreak"])return!0}for(let t=0,i=e.children.length;t"string"==typeof e?e.replace(/\s+/g,"."):e)),t)):(Yt(t.out,"#"),Oi(i.value,t)))}(a,n),function(e,t){if(e.length){const{out:i,config:n,options:o}=t;o.beforeAttribute&&Yt(i,o.beforeAttribute);for(let s=0;si&&(i=n)}o.level++;for(let r=0;r=0;t--){const i=e[t];if("AbbreviationNode"===i.type&&i.repeat)return i.repeat}}(t);e.name=e.attributes=void 0,e.value=[pi(o,r,!a||0===a.value)],e.repeat&&t.length>1&&ai(e,t,i)}}(e,t,i),"xsl"===i.syntax&&function(e){var t;"xsl:variable"!==(t=e.name)&&"xsl:with-param"!==t||!e.attributes||!e.children.length&&!e.value||(e.attributes=e.attributes.filter(mi))}(e),"markup"===i.type&&Ei(e),i.options["bem.enabled"]&&function(e,t,i){!function(e){const t=wi(e),i=[];for(const e of t.classNames){const t=e.indexOf("_");t>0&&!e.startsWith("-")?(i.push(e.slice(0,t)),i.push(e.slice(t))):i.push(e)}i.length&&(t.classNames=i.filter(Di),t.block=ki(t.classNames),xi(e,t.classNames.join(" ")))}(e),function(e,t,i){const n=wi(e),o=[],{options:s}=i,r=t.slice(1).concat(e);for(let e of n.classNames){let t,n="";const a=e;(t=e.match(fi))&&(n=Ci(r,t[1].length,i.context)+s["bem.element"]+t[2],o.push(n),e=e.slice(t[0].length)),(t=e.match(vi))&&(n||(n=Ci(r,t[1].length),o.push(n)),o.push(`${n}${s["bem.modifier"]}${t[2]}`),e=e.slice(t[0].length)),e===a&&o.push(a)}const a=o.filter(Di);a.length&&xi(e,a.join(" "))}(e,t,i)}(e,t,i)}var dn;!function(e){e.Raw="Raw",e.Property="Property"}(dn||(dn={}));const cn=/^([a-z-]+)(?:\s*:\s*([^\n\r;]+?);*)?$/,hn={value:!0};function un(e,t){const i=t.match(cn);if(i){const t={},n=i[2]?i[2].split("|").map(pn):[];for(const e of n)for(const i of e)fn(i,t);return{type:dn.Property,key:e,property:i[1],value:n,keywords:t,dependencies:[]}}return{type:dn.Raw,key:e,value:t}}function gn(e,t){return e.key===t.key?0:e.keyo)return 0;const s=Math.min(n,o),r=Math.max(n,o);let a=1,l=1,d=r,c=0,h=0,u=!1,g=!1;for(;a>4).toString(16)}function kn(e){return function(e,t){for(;e.length<2;)e="0"+e;return e}(e.toString(16))}const Sn={Global:"@@global",Section:"@@section",Property:"@@property",Value:"@@value"};function xn(e,t,i){const n=i.options["stylesheet.json"];if(e.name)Yt(t,(n?e.name.replace(/\-(\w)/g,((e,t)=>t.toUpperCase())):e.name)+i.options["stylesheet.between"]),e.value.length?function(e,t,i){const n=i.options["stylesheet.json"],o=n?function(e){if(1===e.value.length){const t=e.value[0];if(1===t.value.length&&"NumberValue"===t.value[0].type)return t.value[0]}}(e):null;if(!o||o.unit&&"px"!==o.unit){const o=function(e){return e.options["stylesheet.jsonDoubleQuotes"]?'"':"'"}(i);n&&Zt(t,o);for(let n=0;n0)}}function Ln(e,t,i){e.important&&(i&&Zt(t," "),Zt(t,"!important"))}function Dn(e,t,i){for(let n=0,o=-1;ne.type===dn.Property&&e.property===o));Mn(e,i,s,n),e.snippet=s}else if(e.name){const o=An(e.name,t,n,!0);e.snippet=o,o&&(o.type===dn.Property?function(e,t,i){const n=function(e,t){for(let i=0,n=0;iWn(e,i)))}}(e,o,i):function(e,t){let i,n=0;const o=/\$\{(\d+)(:[^}]+)?\}/g,s=e.value[0],r=[];for(;i=o.exec(t.value);)n!==i.index&&r.push(On(t.value.slice(n,i.index))),n=i.index+i[0].length,s&&s.value.length?r.push(s.value.shift()):r.push(Fn(Number(i[1]),i[2]?i[2].slice(1):""));const a=t.value.slice(n);a&&r.push(On(a)),e.name=void 0,e.value=[Pn(...r)]}(e,o))}}return(e.name||i.context)&&function(e,t){const i=t.options["stylesheet.unitAliases"],n=t.options["stylesheet.unitless"];for(const o of e.value)for(const s of o.value)"NumberValue"===s.type&&(s.unit?s.unit=i[s.unit]||s.unit:0===s.value||n.includes(e.name)||(s.unit=s.rawValue.includes(".")?t.options["stylesheet.floatUnit"]:t.options["stylesheet.intUnit"]))}(e,i),e}function Mn(e,t,i,n){for(const o of e.value){const e=[];for(const s of o.value)if("Literal"===s.type)e.push(Rn(s.value,t,i,n)||s);else if("FunctionCall"===s.type){const o=Rn(s.name,t,i,n);o&&"FunctionCall"===o.type?e.push(Object.assign(Object.assign({},o),{arguments:s.arguments.concat(o.arguments.slice(s.arguments.length))})):e.push(s)}else e.push(s);o.value=e}}function An(e,t,i=0,n=!1){let o=null,s=0;for(const i of t){const t=vn(e,Tn(i),n);if(1===t)return i;t&&t>=s&&(s=t,o=i)}return s>=i?o:null}function Tn(e){return"string"==typeof e?e:e.key}function Rn(e,t,i,n){let o;if(i){if(o=An(e,Object.keys(i.keywords),n))return i.keywords[o];for(const t of i.dependencies)if(o=An(e,Object.keys(t.keywords),n))return t.keywords[o]}return(o=An(e,t.options["stylesheet.keywords"],n))?On(o):null}function Pn(...e){return{type:"CSSValue",value:e}}function On(e){return{type:"Literal",value:e}}function Fn(e,t){return{type:"Field",index:e,name:t}}function Bn(e){for(const t of e.value)if("Field"===t.type||"FunctionCall"===t.type&&t.arguments.some(Bn))return!0;return!1}function Wn(e,t,i={index:1}){let n=[];for(const o of e.value)switch(o.type){case"ColorValue":n.push(Fn(i.index++,bn(o,t.options["stylesheet.shortHex"])));break;case"Literal":n.push(Fn(i.index++,o.value));break;case"NumberValue":n.push(Fn(i.index++,`${o.value}${o.unit}`));break;case"StringValue":const e="single"===o.quote?"'":'"';n.push(Fn(i.index++,e+o.value+e));break;case"FunctionCall":n.push(Fn(i.index++,o.name),On("("));for(let e=0,s=o.arguments.length;et,"output.text":e=>e,"markup.href":!0,"comment.enabled":!1,"comment.trigger":["id","class"],"comment.before":"","comment.after":"\n\x3c!-- /[#ID][.CLASS] --\x3e","bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":!1,"stylesheet.keywords":["auto","inherit","unset","none"],"stylesheet.unitless":["z-index","line-height","opacity","font-weight","zoom","flex","flex-grow","flex-shrink"],"stylesheet.shortHex":!0,"stylesheet.between":": ","stylesheet.after":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.json":!1,"stylesheet.jsonDoubleQuotes":!1,"stylesheet.fuzzySearchMinScore":0}},jn={markup:{snippets:Un({a:"a[href]","a:blank":"a[href='http://${0}' target='_blank' rel='noopener noreferrer']","a:link":"a[href='http://${0}']","a:mail":"a[href='mailto:${0}']","a:tel":"a[href='tel:+${0}']",abbr:"abbr[title]","acr|acronym":"acronym[title]",base:"base[href]/",basefont:"basefont/",br:"br/",frame:"frame/",hr:"hr/",bdo:"bdo[dir]","bdo:r":"bdo[dir=rtl]","bdo:l":"bdo[dir=ltr]",col:"col/",link:"link[rel=stylesheet href]/","link:css":"link[href='${1:style}.css']","link:print":"link[href='${1:print}.css' media=print]","link:favicon":"link[rel='shortcut icon' type=image/x-icon href='${1:favicon.ico}']","link:mf|link:manifest":"link[rel='manifest' href='${1:manifest.json}']","link:touch":"link[rel=apple-touch-icon href='${1:favicon.png}']","link:rss":"link[rel=alternate type=application/rss+xml title=RSS href='${1:rss.xml}']","link:atom":"link[rel=alternate type=application/atom+xml title=Atom href='${1:atom.xml}']","link:im|link:import":"link[rel=import href='${1:component}.html']",meta:"meta/","meta:utf":"meta[http-equiv=Content-Type content='text/html;charset=UTF-8']","meta:vp":"meta[name=viewport content='width=${1:device-width}, initial-scale=${2:1.0}']","meta:compat":"meta[http-equiv=X-UA-Compatible content='${1:IE=7}']","meta:edge":"meta:compat[content='${1:ie=edge}']","meta:redirect":"meta[http-equiv=refresh content='0; url=${1:http://example.com}']","meta:refresh":"meta[http-equiv=refresh content='${1:5}']","meta:kw":"meta[name=keywords content]","meta:desc":"meta[name=description content]",style:"style",script:"script","script:src":"script[src]","script:module":"script[type=module src]",img:"img[src alt]/","img:s|img:srcset":"img[srcset src alt]","img:z|img:sizes":"img[sizes srcset src alt]",picture:"picture","src|source":"source/","src:sc|source:src":"source[src type]","src:s|source:srcset":"source[srcset]","src:t|source:type":"source[srcset type='${1:image/}']","src:z|source:sizes":"source[sizes srcset]","src:m|source:media":"source[media='(${1:min-width: })' srcset]","src:mt|source:media:type":"source:media[type='${2:image/}']","src:mz|source:media:sizes":"source:media[sizes srcset]","src:zt|source:sizes:type":"source[sizes srcset type='${1:image/}']",iframe:"iframe[src frameborder=0]",embed:"embed[src type]/",object:"object[data type]",param:"param[name value]/",map:"map[name]",area:"area[shape coords href alt]/","area:d":"area[shape=default]","area:c":"area[shape=circle]","area:r":"area[shape=rect]","area:p":"area[shape=poly]",form:"form[action]","form:get":"form[method=get]","form:post":"form[method=post]",label:"label[for]",input:"input[type=${1:text}]/",inp:"input[name=${1} id=${1}]","input:h|input:hidden":"input[type=hidden name]","input:t|input:text":"inp[type=text]","input:search":"inp[type=search]","input:email":"inp[type=email]","input:url":"inp[type=url]","input:p|input:password":"inp[type=password]","input:datetime":"inp[type=datetime]","input:date":"inp[type=date]","input:datetime-local":"inp[type=datetime-local]","input:month":"inp[type=month]","input:week":"inp[type=week]","input:time":"inp[type=time]","input:tel":"inp[type=tel]","input:number":"inp[type=number]","input:color":"inp[type=color]","input:c|input:checkbox":"inp[type=checkbox]","input:r|input:radio":"inp[type=radio]","input:range":"inp[type=range]","input:f|input:file":"inp[type=file]","input:s|input:submit":"input[type=submit value]","input:i|input:image":"input[type=image src alt]","input:b|input:btn|input:button":"input[type=button value]","input:reset":"input:button[type=reset]",isindex:"isindex/",select:"select[name=${1} id=${1}]","select:d|select:disabled":"select[disabled.]","opt|option":"option[value]",textarea:"textarea[name=${1} id=${1}]","tarea:c|textarea:cols":"textarea[name=${1} id=${1} cols=${2:30}]","tarea:r|textarea:rows":"textarea[name=${1} id=${1} rows=${3:10}]","tarea:cr|textarea:cols:rows":"textarea[name=${1} id=${1} cols=${2:30} rows=${3:10}]",marquee:"marquee[behavior direction]","menu:c|menu:context":"menu[type=context]","menu:t|menu:toolbar":"menu[type=toolbar]",video:"video[src]",audio:"audio[src]","html:xml":"html[xmlns=http://www.w3.org/1999/xhtml]",keygen:"keygen/",command:"command/","btn:s|button:s|button:submit":"button[type=submit]","btn:r|button:r|button:reset":"button[type=reset]","btn:b|button:b|button:button":"button[type=button]","btn:d|button:d|button:disabled":"button[disabled.]","fst:d|fset:d|fieldset:d|fieldset:disabled":"fieldset[disabled.]",bq:"blockquote",fig:"figure",figc:"figcaption",pic:"picture",ifr:"iframe",emb:"embed",obj:"object",cap:"caption",colg:"colgroup",fst:"fieldset",btn:"button",optg:"optgroup",tarea:"textarea",leg:"legend",sect:"section",art:"article",hdr:"header",ftr:"footer",adr:"address",dlg:"dialog",str:"strong",prog:"progress",mn:"main",tem:"template",fset:"fieldset",datal:"datalist",kg:"keygen",out:"output",det:"details",sum:"summary",cmd:"command",data:"data[value]",meter:"meter[value]",time:"time[datetime]","ri:d|ri:dpr":"img:s","ri:v|ri:viewport":"img:z","ri:a|ri:art":"pic>src:m+img","ri:t|ri:type":"pic>src:t+img","!!!":"{}",doc:"html[lang=${lang}]>(head>meta[charset=${charset}]+meta:vp+title{${1:Document}})+body","!|html:5":"!!!+doc",c:"{\x3c!-- ${0} --\x3e}","cc:ie":"{\x3c!--[if IE]>${0}\x3c!--\x3e${0}\x3c!--xsl:when+xsl:otherwise",xsl:"!!!+xsl:stylesheet[version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform]>{\n|}","!!!":'{}'}),options:{"output.selfClosingStyle":"xml"}},jsx:{options:{"jsx.enabled":!0,"markup.attributes":{class:"className","class*":"styleName",for:"htmlFor"},"markup.valuePrefix":{"class*":"styles"}}},vue:{options:{"markup.attributes":{"class*":":class"}}},svelte:{options:{"jsx.enabled":!0}},pug:{snippets:Un({"!!!":"{doctype html}"})},stylesheet:{snippets:Un({"@f":"@font-face {\n\tfont-family: ${1};\n\tsrc: url(${2});\n}","@ff":"@font-face {\n\tfont-family: '${1:FontName}';\n\tsrc: url('${2:FileName}.eot');\n\tsrc: url('${2:FileName}.eot?#iefix') format('embedded-opentype'),\n\t\t url('${2:FileName}.woff') format('woff'),\n\t\t url('${2:FileName}.ttf') format('truetype'),\n\t\t url('${2:FileName}.svg#${1:FontName}') format('svg');\n\tfont-style: ${3:normal};\n\tfont-weight: ${4:normal};\n}","@i|@import":"@import url(${0});","@kf":"@keyframes ${1:identifier} {\n\t${2}\n}","@m|@media":"@media ${1:screen} {\n\t${0}\n}",ac:"align-content:start|end|flex-start|flex-end|center|space-between|space-around|stretch|space-evenly",ai:"align-items:start|end|flex-start|flex-end|center|baseline|stretch",anim:"animation:${1:name} ${2:duration} ${3:timing-function} ${4:delay} ${5:iteration-count} ${6:direction} ${7:fill-mode}",animdel:"animation-delay:time",animdir:"animation-direction:normal|reverse|alternate|alternate-reverse",animdur:"animation-duration:${1:0}s",animfm:"animation-fill-mode:both|forwards|backwards",animic:"animation-iteration-count:1|infinite",animn:"animation-name",animps:"animation-play-state:running|paused",animtf:"animation-timing-function:linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier(${1:0.1}, ${2:0.7}, ${3:1.0}, ${3:0.1})",ap:"appearance:none",as:"align-self:start|end|auto|flex-start|flex-end|center|baseline|stretch",b:"bottom",bd:"border:${1:1px} ${2:solid} ${3:#000}",bdb:"border-bottom:${1:1px} ${2:solid} ${3:#000}",bdbc:"border-bottom-color:${1:#000}",bdbi:"border-bottom-image:url(${0})",bdbk:"border-break:close",bdbli:"border-bottom-left-image:url(${0})|continue",bdblrs:"border-bottom-left-radius",bdbri:"border-bottom-right-image:url(${0})|continue",bdbrrs:"border-bottom-right-radius",bdbs:"border-bottom-style",bdbw:"border-bottom-width",bdc:"border-color:${1:#000}",bdci:"border-corner-image:url(${0})|continue",bdcl:"border-collapse:collapse|separate",bdf:"border-fit:repeat|clip|scale|stretch|overwrite|overflow|space",bdi:"border-image:url(${0})",bdl:"border-left:${1:1px} ${2:solid} ${3:#000}",bdlc:"border-left-color:${1:#000}",bdlen:"border-length",bdli:"border-left-image:url(${0})",bdls:"border-left-style",bdlw:"border-left-width",bdr:"border-right:${1:1px} ${2:solid} ${3:#000}",bdrc:"border-right-color:${1:#000}",bdri:"border-right-image:url(${0})",bdrs:"border-radius",bdrst:"border-right-style",bdrw:"border-right-width",bds:"border-style:none|hidden|dotted|dashed|solid|double|dot-dash|dot-dot-dash|wave|groove|ridge|inset|outset",bdsp:"border-spacing",bdt:"border-top:${1:1px} ${2:solid} ${3:#000}",bdtc:"border-top-color:${1:#000}",bdti:"border-top-image:url(${0})",bdtli:"border-top-left-image:url(${0})|continue",bdtlrs:"border-top-left-radius",bdtri:"border-top-right-image:url(${0})|continue",bdtrrs:"border-top-right-radius",bdts:"border-top-style",bdtw:"border-top-width",bdw:"border-width",bbs:"border-block-start",bbe:"border-block-end",bis:"border-inline-start",bie:"border-inline-end",bfv:"backface-visibility:hidden|visible",bg:"background:${1:#000}","bg:n":"background: none",bga:"background-attachment:fixed|scroll",bgbk:"background-break:bounding-box|each-box|continuous",bgc:"background-color:${1:#fff}",bgcp:"background-clip:padding-box|border-box|content-box|no-clip",bgi:"background-image:url(${0})",bgo:"background-origin:padding-box|border-box|content-box",bgp:"background-position:${1:0} ${2:0}",bgpx:"background-position-x",bgpy:"background-position-y",bgr:"background-repeat:no-repeat|repeat-x|repeat-y|space|round",bgsz:"background-size:contain|cover",bs:"block-size",bxsh:"box-shadow:${1:inset }${2:hoff} ${3:voff} ${4:blur} ${5:#000}|none",bxsz:"box-sizing:border-box|content-box|border-box",c:"color:${1:#000}",cr:"color:rgb(${1:0}, ${2:0}, ${3:0})",cra:"color:rgba(${1:0}, ${2:0}, ${3:0}, ${4:.5})",cl:"clear:both|left|right|none",cm:"/* ${0} */",cnt:"content:'${0}'|normal|open-quote|no-open-quote|close-quote|no-close-quote|attr(${0})|counter(${0})|counters(${0})",coi:"counter-increment",colm:"columns",colmc:"column-count",colmf:"column-fill",colmg:"column-gap",colmr:"column-rule",colmrc:"column-rule-color",colmrs:"column-rule-style",colmrw:"column-rule-width",colms:"column-span",colmw:"column-width",cor:"counter-reset",cp:"clip:auto|rect(${1:top} ${2:right} ${3:bottom} ${4:left})",cps:"caption-side:top|bottom",cur:"cursor:pointer|auto|default|crosshair|hand|help|move|pointer|text",d:"display:block|none|flex|inline-flex|inline|inline-block|grid|inline-grid|subgrid|list-item|run-in|contents|table|inline-table|table-caption|table-column|table-column-group|table-header-group|table-footer-group|table-row|table-row-group|table-cell|ruby|ruby-base|ruby-base-group|ruby-text|ruby-text-group",ec:"empty-cells:show|hide",f:"font:${1:1em} ${2:sans-serif}",fd:"font-display:auto|block|swap|fallback|optional",fef:"font-effect:none|engrave|emboss|outline",fem:"font-emphasize",femp:"font-emphasize-position:before|after",fems:"font-emphasize-style:none|accent|dot|circle|disc",ff:"font-family:serif|sans-serif|cursive|fantasy|monospace",fft:'font-family:"Times New Roman", Times, Baskerville, Georgia, serif',ffa:'font-family:Arial, "Helvetica Neue", Helvetica, sans-serif',ffv:"font-family:Verdana, Geneva, sans-serif",fl:"float:left|right|none",fs:"font-style:italic|normal|oblique",fsm:"font-smoothing:antialiased|subpixel-antialiased|none",fst:"font-stretch:normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",fv:"font-variant:normal|small-caps",fvs:"font-variation-settings:normal|inherit|initial|unset",fw:"font-weight:normal|bold|bolder|lighter",fx:"flex",fxb:"flex-basis:fill|max-content|min-content|fit-content|content",fxd:"flex-direction:row|row-reverse|column|column-reverse",fxf:"flex-flow",fxg:"flex-grow",fxsh:"flex-shrink",fxw:"flex-wrap:nowrap|wrap|wrap-reverse",fsz:"font-size",fsza:"font-size-adjust",g:"gap",gtc:"grid-template-columns:repeat(${0})|minmax()",gtr:"grid-template-rows:repeat(${0})|minmax()",gta:"grid-template-areas",gt:"grid-template",gg:"grid-gap",gcg:"grid-column-gap",grg:"grid-row-gap",gac:"grid-auto-columns:auto|minmax()",gar:"grid-auto-rows:auto|minmax()",gaf:"grid-auto-flow:row|column|dense|inherit|initial|unset",gd:"grid",gc:"grid-column",gcs:"grid-column-start",gce:"grid-column-end",gr:"grid-row",grs:"grid-row-start",gre:"grid-row-end",ga:"grid-area",h:"height",is:"inline-size",jc:"justify-content:start|end|stretch|flex-start|flex-end|center|space-between|space-around|space-evenly",ji:"justify-items:start|end|center|stretch",js:"justify-self:start|end|center|stretch",l:"left",lg:"background-image:linear-gradient(${1})",lh:"line-height",lis:"list-style",lisi:"list-style-image",lisp:"list-style-position:inside|outside",list:"list-style-type:disc|circle|square|decimal|decimal-leading-zero|lower-roman|upper-roman",lts:"letter-spacing:normal",m:"margin",mah:"max-height",mar:"max-resolution",maw:"max-width",mb:"margin-bottom",mih:"min-height",mir:"min-resolution",miw:"min-width",ml:"margin-left",mr:"margin-right",mt:"margin-top",mbs:"margin-block-start",mbe:"margin-block-end",mis:"margin-inline-start",mie:"margin-inline-end",ol:"outline",olc:"outline-color:${1:#000}|invert",olo:"outline-offset",ols:"outline-style:none|dotted|dashed|solid|double|groove|ridge|inset|outset",olw:"outline-width:thin|medium|thick","op|opa":"opacity",ord:"order",ori:"orientation:landscape|portrait",orp:"orphans",ov:"overflow:hidden|visible|hidden|scroll|auto",ovs:"overflow-style:scrollbar|auto|scrollbar|panner|move|marquee",ovx:"overflow-x:hidden|visible|hidden|scroll|auto",ovy:"overflow-y:hidden|visible|hidden|scroll|auto",p:"padding",pb:"padding-bottom",pgba:"page-break-after:auto|always|left|right",pgbb:"page-break-before:auto|always|left|right",pgbi:"page-break-inside:auto|avoid",pl:"padding-left",pos:"position:relative|absolute|relative|fixed|static",pr:"padding-right",pt:"padding-top",pbs:"padding-block-start",pbe:"padding-block-end",pis:"padding-inline-start",pie:"padding-inline-end",spbs:"scroll-padding-block-start",spbe:"scroll-padding-block-end",spis:"scroll-padding-inline-start",spie:"scroll-padding-inline-end",q:"quotes",qen:"quotes:'\\201C' '\\201D' '\\2018' '\\2019'",qru:"quotes:'\\00AB' '\\00BB' '\\201E' '\\201C'",r:"right",rsz:"resize:none|both|horizontal|vertical",t:"top",ta:"text-align:left|center|right|justify",tal:"text-align-last:left|center|right",tbl:"table-layout:fixed",td:"text-decoration:none|underline|overline|line-through",te:"text-emphasis:none|accent|dot|circle|disc|before|after",th:"text-height:auto|font-size|text-size|max-size",ti:"text-indent",tj:"text-justify:auto|inter-word|inter-ideograph|inter-cluster|distribute|kashida|tibetan",to:"text-outline:${1:0} ${2:0} ${3:#000}",tov:"text-overflow:ellipsis|clip",tr:"text-replace",trf:"transform:${1}|skewX(${1:angle})|skewY(${1:angle})|scale(${1:x}, ${2:y})|scaleX(${1:x})|scaleY(${1:y})|scaleZ(${1:z})|scale3d(${1:x}, ${2:y}, ${3:z})|rotate(${1:angle})|rotateX(${1:angle})|rotateY(${1:angle})|rotateZ(${1:angle})|translate(${1:x}, ${2:y})|translateX(${1:x})|translateY(${1:y})|translateZ(${1:z})|translate3d(${1:tx}, ${2:ty}, ${3:tz})",trfo:"transform-origin",trfs:"transform-style:preserve-3d",trs:"transition:${1:prop} ${2:time}",trsde:"transition-delay:${1:time}",trsdu:"transition-duration:${1:time}",trsp:"transition-property:${1:prop}",trstf:"transition-timing-function:${1:fn}",tsh:"text-shadow:${1:hoff} ${2:voff} ${3:blur} ${4:#000}",tt:"text-transform:uppercase|lowercase|capitalize|none",tw:"text-wrap:none|normal|unrestricted|suppress",us:"user-select:none",v:"visibility:hidden|visible|collapse",va:"vertical-align:top|super|text-top|middle|baseline|bottom|text-bottom|sub","w|wid":"width",whs:"white-space:nowrap|pre|pre-wrap|pre-line|normal",whsc:"white-space-collapse:normal|keep-all|loose|break-strict|break-all",wido:"widows",wm:"writing-mode:lr-tb|lr-tb|lr-bt|rl-tb|rl-bt|tb-rl|tb-lr|bt-lr|bt-rl",wob:"word-break:normal|keep-all|break-all",wos:"word-spacing",wow:"word-wrap:none|unrestricted|suppress|break-word|normal",z:"z-index",zom:"zoom:1"})},sass:{options:{"stylesheet.after":""}},stylus:{options:{"stylesheet.between":" ","stylesheet.after":""}}};function Un(e){const t={};return Object.keys(e).forEach((i=>{for(const n of i.split("|"))t[n]=e[i]})),t}function $n(e={},t={}){const i=e.type||"markup",n=e.syntax||Vn[i];return Object.assign(Object.assign(Object.assign({},zn),e),{type:i,syntax:n,variables:Kn(i,n,"variables",e,t),snippets:Kn(i,n,"snippets",e,t),options:Kn(i,n,"options",e,t)})}function Kn(e,t,i,n,o={}){const s=jn[e],r=o[e],a=jn[t],l=o[t];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zn[i]),s&&s[i]),a&&a[i]),r&&r[i]),l&&l[i]),n[i])}function qn(e,t=0){return{text:e,start:t,pos:e.length}}function Gn(e){return e.pos===e.start}function Qn(e,t=0){return e.text.charCodeAt(e.pos-1+t)}function Zn(e){if(!Gn(e))return e.text.charCodeAt(--e.pos)}function Yn(e,t){if(Gn(e))return!1;const i="function"==typeof t?t(Qn(e)):t===Qn(e);return i&&e.pos--,!!i}function Xn(e,t){const i=e.pos;for(;Yn(e,t););return e.pos=65&&e<=90}(e)||function(e){return e>47&&e<58}(e)}function co(e){return e===no.Space||e===no.Tab}function ho(e){return!isNaN(e)&&e!==no.Equals&&!co(e)&&!to(e)}function uo(e){return e===eo.CurlyL||e===eo.RoundL||e===eo.SquareL}function go(e){return e===eo.CurlyR||e===eo.RoundR||e===eo.SquareR}!function(e){e[e.Tab=9]="Tab",e[e.Space=32]="Space",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Colon=58]="Colon",e[e.Equals=61]="Equals",e[e.AngleLeft=60]="AngleLeft",e[e.AngleRight=62]="AngleRight"}(no||(no={}));const po=e=>e.charCodeAt(0),mo="#.*:$-_!@%^+>/".split("").map(po),fo={type:"markup",lookAhead:!0,prefix:""};function vo(e,t,i){const n=e.pos;if(Yn(e,t))for(;!Gn(e);){if(Yn(e,i))return!0;e.pos--}return e.pos=n,!1}function _o(e,t){const i=e.pos;let n=!1;for(let i=t.length-1;i>=0&&!Gn(e)&&Yn(e,t[i]);i--)n=0===i;return n||(e.pos=i),n}function bo(e){return e>64&&e<91||e>96&&e<123||e>47&&e<58||mo.includes(e)}function wo(e,t){return e===eo.RoundL||"markup"===t&&(e===eo.SquareL||e===eo.CurlyL)}function yo(e,t){return e===eo.RoundR||"markup"===t&&(e===eo.SquareR||e===eo.CurlyR)}function Co(e,t){const i=$n(t);return"stylesheet"===i.type?function(e,t){return function(e,t){var i;const n=Qt(t.options),o=t.options["output.format"];(null===(i=t.context)||void 0===i?void 0:i.name)===Sn.Section&&(e=e.filter((e=>e.snippet)));for(let i=0;ie.type===dn.Raw));if(t.context.name===Sn.Property)return e.filter((e=>e.type===dn.Property))}return e}(n,t);for(const i of e)Nn(i,o,t);return e}(e,t),t)}(e,i):function(e,t){return function(e,t){return(an[t.syntax]||Gi)(e,t)}(function(e,t){let i;if("string"==typeof e){const n=Object.assign({},t);t.options["jsx.enabled"]&&(n.jsx=!0),t.options["markup.href"]&&(n.href=!0),e=rt(e,n),i=t.text,t.text=void 0}return e=function(e,t){const i=[],n=t.options["output.reverseAttributes"],o=e=>{const s=e.name&&t.snippets[e.name];if(!s||i.includes(s))return null;const r=rt(s,t);i.push(s),Kt(r,o),i.pop();for(const t of r.children){if(e.attributes){const i=t.attributes||[],o=e.attributes||[];t.attributes=n?o.concat(i):i.concat(o)}l=t,(a=e).selfClosing&&(l.selfClosing=!0),null!=a.value&&(l.value=a.value),a.repeat&&(l.repeat=a.repeat)}var a,l;return r};return Kt(e,o),e}(e,t),function(e,t,i){const n=[e],o=e=>{t(e,n,i),n.push(e),e.children.forEach(o),n.pop()};e.children.forEach(o)}(e,ln,t),t.text=null!=i?i:t.text,e}(e,t),t)}(e,i)}const ko={properties:["additive-symbols","align-content","align-items","justify-items","justify-self","justify-items","align-self","all","alt","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","behavior","block-size","border","border-block-end","border-block-start","border-block-end-color","border-block-start-color","border-block-end-style","border-block-start-style","border-block-end-width","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline-end","border-inline-start","border-inline-end-color","border-inline-start-color","border-inline-end-style","border-inline-start-style","border-inline-end-width","border-inline-start-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation-filters","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","columns","column-span","column-width","contain","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","enable-background","fallback","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","glyph-orientation-horizontal","glyph-orientation-vertical","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","height","hyphens","image-orientation","image-rendering","ime-mode","inline-size","isolation","justify-content","kerning","left","letter-spacing","lighting-color","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marker","marker-end","marker-mid","marker-start","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","motion","motion-offset","motion-path","motion-rotation","-moz-animation","-moz-animation-delay","-moz-animation-direction","-moz-animation-duration","-moz-animation-iteration-count","-moz-animation-name","-moz-animation-play-state","-moz-animation-timing-function","-moz-appearance","-moz-backface-visibility","-moz-background-clip","-moz-background-inline-policy","-moz-background-origin","-moz-border-bottom-colors","-moz-border-image","-moz-border-left-colors","-moz-border-right-colors","-moz-border-top-colors","-moz-box-align","-moz-box-direction","-moz-box-flex","-moz-box-flexgroup","-moz-box-ordinal-group","-moz-box-orient","-moz-box-pack","-moz-box-sizing","-moz-column-count","-moz-column-gap","-moz-column-rule","-moz-column-rule-color","-moz-column-rule-style","-moz-column-rule-width","-moz-columns","-moz-column-width","-moz-font-feature-settings","-moz-hyphens","-moz-perspective","-moz-perspective-origin","-moz-text-align-last","-moz-text-decoration-color","-moz-text-decoration-line","-moz-text-decoration-style","-moz-text-size-adjust","-moz-transform","-moz-transform-origin","-moz-transition","-moz-transition-delay","-moz-transition-duration","-moz-transition-property","-moz-transition-timing-function","-moz-user-focus","-moz-user-select","-ms-accelerator","-ms-behavior","-ms-block-progression","-ms-content-zoom-chaining","-ms-content-zooming","-ms-content-zoom-limit","-ms-content-zoom-limit-max","-ms-content-zoom-limit-min","-ms-content-zoom-snap","-ms-content-zoom-snap-points","-ms-content-zoom-snap-type","-ms-filter","-ms-flex","-ms-flex-align","-ms-flex-direction","-ms-flex-flow","-ms-flex-item-align","-ms-flex-line-pack","-ms-flex-order","-ms-flex-pack","-ms-flex-wrap","-ms-flow-from","-ms-flow-into","-ms-grid-column","-ms-grid-column-align","-ms-grid-columns","-ms-grid-column-span","-ms-grid-layer","-ms-grid-row","-ms-grid-row-align","-ms-grid-rows","-ms-grid-row-span","-ms-high-contrast-adjust","-ms-hyphenate-limit-chars","-ms-hyphenate-limit-lines","-ms-hyphenate-limit-zone","-ms-hyphens","-ms-ime-mode","-ms-interpolation-mode","-ms-layout-grid","-ms-layout-grid-char","-ms-layout-grid-line","-ms-layout-grid-mode","-ms-layout-grid-type","-ms-line-break","-ms-overflow-style","-ms-perspective","-ms-perspective-origin","-ms-perspective-origin-x","-ms-perspective-origin-y","-ms-progress-appearance","-ms-scrollbar-3dlight-color","-ms-scrollbar-arrow-color","-ms-scrollbar-base-color","-ms-scrollbar-darkshadow-color","-ms-scrollbar-face-color","-ms-scrollbar-highlight-color","-ms-scrollbar-shadow-color","-ms-scrollbar-track-color","-ms-scroll-chaining","-ms-scroll-limit","-ms-scroll-limit-x-max","-ms-scroll-limit-x-min","-ms-scroll-limit-y-max","-ms-scroll-limit-y-min","-ms-scroll-rails","-ms-scroll-snap-points-x","-ms-scroll-snap-points-y","-ms-scroll-snap-type","-ms-scroll-snap-x","-ms-scroll-snap-y","-ms-scroll-translation","-ms-text-align-last","-ms-text-autospace","-ms-text-combine-horizontal","-ms-text-justify","-ms-text-kashida-space","-ms-text-overflow","-ms-text-size-adjust","-ms-text-underline-position","-ms-touch-action","-ms-touch-select","-ms-transform","-ms-transform-origin","-ms-transform-origin-x","-ms-transform-origin-y","-ms-transform-origin-z","-ms-user-select","-ms-word-break","-ms-word-wrap","-ms-wrap-flow","-ms-wrap-margin","-ms-wrap-through","-ms-writing-mode","-ms-zoom","-ms-zoom-animation","nav-down","nav-index","nav-left","nav-right","nav-up","negative","-o-animation","-o-animation-delay","-o-animation-direction","-o-animation-duration","-o-animation-fill-mode","-o-animation-iteration-count","-o-animation-name","-o-animation-play-state","-o-animation-timing-function","object-fit","object-position","-o-border-image","-o-object-fit","-o-object-position","opacity","order","orphans","-o-table-baseline","-o-tab-size","-o-text-overflow","-o-transform","-o-transform-origin","-o-transition","-o-transition-delay","-o-transition-duration","-o-transition-property","-o-transition-timing-function","offset-block-end","offset-block-start","offset-inline-end","offset-inline-start","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","pad","padding","padding-bottom","padding-block-end","padding-block-start","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","paint-order","perspective","perspective-origin","pointer-events","position","prefix","quotes","range","resize","right","ruby-align","ruby-overhang","ruby-position","ruby-span","scrollbar-3dlight-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-darkshadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","scroll-behavior","scroll-snap-coordinate","scroll-snap-destination","scroll-snap-points-x","scroll-snap-points-y","scroll-snap-type","shape-image-threshold","shape-margin","shape-outside","shape-rendering","size","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","suffix","system","symbols","table-layout","tab-size","text-align","text-align-last","text-anchor","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","unicode-range","user-select","vertical-align","visibility","-webkit-animation","-webkit-animation-delay","-webkit-animation-direction","-webkit-animation-duration","-webkit-animation-fill-mode","-webkit-animation-iteration-count","-webkit-animation-name","-webkit-animation-play-state","-webkit-animation-timing-function","-webkit-appearance","-webkit-backdrop-filter","-webkit-backface-visibility","-webkit-background-clip","-webkit-background-composite","-webkit-background-origin","-webkit-border-image","-webkit-box-align","-webkit-box-direction","-webkit-box-flex","-webkit-box-flex-group","-webkit-box-ordinal-group","-webkit-box-orient","-webkit-box-pack","-webkit-box-reflect","-webkit-box-sizing","-webkit-break-after","-webkit-break-before","-webkit-break-inside","-webkit-column-break-after","-webkit-column-break-before","-webkit-column-break-inside","-webkit-column-count","-webkit-column-gap","-webkit-column-rule","-webkit-column-rule-color","-webkit-column-rule-style","-webkit-column-rule-width","-webkit-columns","-webkit-column-span","-webkit-column-width","-webkit-filter","-webkit-flow-from","-webkit-flow-into","-webkit-font-feature-settings","-webkit-hyphens","-webkit-line-break","-webkit-margin-bottom-collapse","-webkit-margin-collapse","-webkit-margin-start","-webkit-margin-top-collapse","-webkit-mask-clip","-webkit-mask-image","-webkit-mask-origin","-webkit-mask-repeat","-webkit-mask-size","-webkit-nbsp-mode","-webkit-overflow-scrolling","-webkit-padding-start","-webkit-perspective","-webkit-perspective-origin","-webkit-region-fragment","-webkit-tap-highlight-color","-webkit-text-fill-color","-webkit-text-size-adjust","-webkit-text-stroke","-webkit-text-stroke-color","-webkit-text-stroke-width","-webkit-touch-callout","-webkit-transform","-webkit-transform-origin","-webkit-transform-origin-x","-webkit-transform-origin-y","-webkit-transform-origin-z","-webkit-transform-style","-webkit-transition","-webkit-transition-delay","-webkit-transition-duration","-webkit-transition-property","-webkit-transition-timing-function","-webkit-user-drag","-webkit-user-modify","-webkit-user-select","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","zoom"]},So={tags:["body","head","html","address","blockquote","dd","div","section","article","aside","header","footer","nav","menu","dl","dt","fieldset","form","frame","frameset","h1","h2","h3","h4","h5","h6","iframe","noframes","object","ol","p","ul","applet","center","dir","hr","pre","a","abbr","acronym","area","b","base","basefont","bdo","big","br","button","caption","cite","code","col","colgroup","del","dfn","em","font","i","img","input","ins","isindex","kbd","label","legend","li","link","map","meta","noscript","optgroup","option","param","q","s","samp","script","select","small","span","strike","strong","style","sub","sup","table","tbody","td","textarea","tfoot","th","thead","title","tr","tt","u","var","canvas","main","figure","plaintext","figcaption","hgroup","details","summary"]},xo=new Map;let Lo;const Do=new Map,Eo=/^[a-z,A-Z,!,(,[,#,\.\{]/,Io=/^[a-z,A-Z,!,(,[,#,\.]/,No=/^-?[a-z,A-Z,!,@,#]/,Mo=/[a-z,A-Z\.]/,Ao=[...So.tags,"lorem"],To="bem",Ro="|",Po="t",Oo="c",Fo=3;function Bo(e,t,i,n,o){var s;const r=$o(n);if(!r){if(!xo.has(n)){const e=Object.assign(Object.assign({},function(e){const t=$n({type:Ko(e),syntax:e});return"xml"===e?{}:t.snippets}(n)),jo[n]);xo.set(n,Object.keys(e))}Lo=null!==(s=xo.get(n))&&void 0!==s?s:[]}const a={lookAhead:!r,type:Ko(n)},l=function(e,t,i,n){const o=t.getLineContent(i.lineNumber),s=o.substr(0,i.column-1),{pos:r,filter:a}=function(e,t){let i;for(let n=0;n^]+/,"");return{abbreviation:n,location:t-n.length,start:i.prefix?s-i.prefix.length:t-n.length,end:t}}}(o,r,n);if(!d)return;return{abbreviationRange:new e.Range(i.lineNumber,d.location+1,i.lineNumber,d.location+d.abbreviation.length+l+1),abbreviation:d.abbreviation,currentLineTillPosition:s,filter:a}}(e,t,i,a);if(!l)return;const{abbreviationRange:d,abbreviation:c,currentLineTillPosition:h,filter:u}=l,g=function(e){if(e){const t=e.match(/[\w,:,-,\.]*$/);if(t)return t[0]}}(h);if(g===c&&h.endsWith(`<${c}`)&&!r)return;const p=function(e,t){var i;const n=t?t.split(",").map((e=>e.trim())):[],o=n.includes("bem"),s=n.includes("c"),r={"output.formatSkip":["html"],"output.formatForce":["body"],"output.field":Uo,"output.inlineBreak":0,"output.compactBoolean":!1,"output.reverseAttributes":!1,"markup.href":!0,"comment.enabled":s,"comment.trigger":["id","class"],"comment.before":"","comment.after":"\n\x3c!-- /[#ID][.CLASS] --\x3e","bem.enabled":o,"bem.element":"__","bem.modifier":"_","jsx.enabled":"jsx"===e,"stylesheet.shortHex":!0,"stylesheet.between":"stylus"===e?" ":": ","stylesheet.after":"sass"===e||"stylus"===e?"":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.fuzzySearchMinScore":.3,"output.format":!0,"output.selfClosingStyle":"html"},a=Ko(e),l=function(e){return $o(e)?"css":"html"}(e);return{type:a,options:r,variables:{},snippets:"stylesheet"===a?null!==(i=jo[e])&&void 0!==i?i:jo[l]:jo[e],syntax:e,text:void 0,maxRepeat:1e3}}(n,u);let m,f="",v=[];if(((t,i)=>{if(function(e,t){if(!t)return!1;if($o(e)){if(t.includes("#")){if(t.startsWith("#"))return/^#[\d,a-f,A-F]{1,6}$/.test(t);if(Ao.includes(t.substring(0,t.indexOf("#"))))return!1}return No.test(t)}return t.startsWith("!")?!/[^!]/.test(t):!!(!/\(/.test(t)&&!/\)/.test(t)||/\{[^\}\{]*[\(\)]+[^\}\{]*\}(?:[>\+\*\^]|$)/.test(t)||/\(.*\)[>\+\*\^]/.test(t)||/\[[^\[\]\(\)]+=".*"\]/.test(t)||/[>\+\*\^]\(.*\)/.test(t))&&("jsx"===e?Io.test(t)&&Mo.test(t):Eo.test(t)&&Mo.test(t))}(t,c)){try{f=Co(i,p),r&&"!important".startsWith(i)&&(f="!important")}catch(e){}f&&!function(e,t,i,n){var o,s;if($o(e)&&n){const e=null!==(o=n["stylesheet.between"])&&void 0!==o?o:": ",r=null!==(s=n["stylesheet.after"])&&void 0!==s?s:";";let a=t.indexOf(e[0],Math.max(t.length-e.length,0));return a=a>=0?a:t.length,i===`${t.substring(0,a)}${e}\${0}${r}`||i.replace(/\s/g,"")===t.replace(/\s/g,"")+r}if("xml"===e&&Ao.some((e=>e.startsWith(t.toLowerCase()))))return!0;if(Ao.includes(t.toLowerCase())||Lo.includes(t))return!1;if(/[-,:]/.test(t)&&!/--|::/.test(t)&&!t.endsWith(":"))return!1;if("."===t)return!1;const r=t.match(/^([a-z,A-Z,\d]*)\.$/);return r?!r[1]||!So.tags.includes(r[1]):("jsx"!==e||!/^([A-Z][A-Za-z0-9]*)+$/.test(t))&&i.toLowerCase()===`<${t.toLowerCase()}>\${1}`}(t,i,f,p.options)&&(m={kind:e.languages.CompletionItemKind.Property,label:c+(u?"|"+u.replace(",","|"):""),documentation:Ho(f),detail:"Emmet abbreviation",insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:d,insertText:Vo(zo(f))},v=[m])}})(n,c),r){if(c.length>4&&ko.properties.some((e=>e.startsWith(c))))return{suggestions:[],incomplete:!0};if(m&&f.length){m.range=d,m.insertText=Vo(zo(f)),m.documentation=Ho(f),m.label=f.replace(/([^\\])\$\{\d+\}/g,"$1").replace(/\$\{\d+:([^\}]+)\}/g,"$1"),m.filterText=c;const t=Do.has(n)?Do.get(n):Do.get("css");if(v=Wo(e,null!=t?t:[],c,c,d,p,"Emmet Custom Snippet",!1),!v.find((e=>e.insertText===(null==m?void 0:m.insertText)))){const e=new RegExp(".*"+c.split("").map((e=>"$"===e||"+"===e?"\\"+e:e)).join(".*")+".*","i");(/\d/.test(c)||e.test(m.label))&&v.push(m)}}}else{let t=c;const i=c.match(/(>|\+)([\w:-]+)$/);if(i&&3===i.length&&(t=i[2]),"xml"!==n){const i=Wo(e,Ao,t,c,d,p,"Emmet Abbreviation");v=v.concat(i)}if(!0===o.showAbbreviationSuggestions){const i=Wo(e,Lo.filter((e=>!Ao.includes(e))),t,c,d,p,"Emmet Abbreviation");m&&i.length>0&&t!==c&&(m.sortText="0"+m.label,i.forEach((e=>{e.filterText=c,e.sortText="9"+c}))),v=v.concat(i)}"html"===n&&v.length>=2&&c.includes(":")&&(null==m?void 0:m.insertText)===`<${c}>\${0}`&&(v=v.filter((e=>e.label!==c)))}return!0===o.showSuggestionsAsSnippets&&v.forEach((t=>t.kind=e.languages.CompletionItemKind.Snippet)),v.length?{suggestions:v,incomplete:!0}:void 0}function Wo(e,t,i,n,o,s,r,a=!0){if(!i||!t)return[];const l=[];return t.forEach((t=>{if(!t.startsWith(i.toLowerCase())||a&&t===i.toLowerCase())return;const d=n+t.substr(i.length);let c;try{c=Co(d,s)}catch(e){}if(!c)return;const h={kind:e.languages.CompletionItemKind.Property,label:i+t.substr(i.length),documentation:Ho(c),detail:r,insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:o,insertText:Vo(zo(c))};l.push(h)})),l}function Ho(e){return e.replace(/([^\\])\$\{\d+\}/g,"$1|").replace(/\$\{\d+:([^\}]+)\}/g,"$1")}function Vo(e){return e?e.replace(/([^\\])(\$)([^\{])/g,"$1\\$2$3"):e}function zo(e){if(!e||!e.trim())return e;let t=-1,i=[],n=!1,o=!1,s=0;const r=e.length;try{for(;s=r||"}"!=e[s]&&":"!=e[s])continue;const d=e.substring(a,l);if(n="0"===d,n)break;let c=!1;if(":"==e[s++])for(;sNumber(t)?(t=Number(d),i=[{numberStart:a,numberEnd:l}],o=!c):Number(d)===t&&i.push({numberStart:a,numberEnd:l})}}catch(e){}if(o&&!n)for(let t=0;t`\${${e}${t?":"+t:""}}`;function $o(e){return"css"===e}function Ko(e){return $o(e)?"stylesheet":"markup"}function qo(e,t,i,n){const o=e[t],s=o.type;return"html"===i?""===s&&(0===t||"delimiter.html"===e[t-1].type)||"text.html.basic"===e[0].type:"css"===i?""===s||s==="tag."+n:"jsx"===i&&("mdx"===o.language&&""===s||!!t&&["identifier.js","type.identifier.js","identifier.ts","type.identifier.ts"].includes(s))}const Go=new WeakMap;const Qo={html:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],jade:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],slim:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],haml:["!",".","}",":","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],xml:[".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],xsl:["!",".","}","*","$","/","]",">","0","1","2","3","4","5","6","7","8","9"],css:[":","!","-","0","1","2","3","4","5","6","7","8","9"],scss:[":","!","-","0","1","2","3","4","5","6","7","8","9"],sass:[":","!","0","1","2","3","4","5","6","7","8","9"],less:[":","!","-","0","1","2","3","4","5","6","7","8","9"],stylus:[":","!","0","1","2","3","4","5","6","7","8","9"],javascript:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"],typescript:["!",".","}","*","$","]","/",">","0","1","2","3","4","5","6","7","8","9"]},Zo={handlebars:"html",php:"html",twig:"html"},Yo={showExpandedAbbreviation:"always",showAbbreviationSuggestions:!0,showSuggestionsAsSnippets:!1};function Xo(e,t,i){if(!e)return void console.error("emmet-monaco-es: 'monaco' should be either declared on window or passed as first parameter");const n=t.map((t=>e.languages.registerCompletionItemProvider(t,{triggerCharacters:Qo[Zo[t]||t],provideCompletionItems:(n,o)=>function(e,t,i,n){var o;const{column:s,lineNumber:r}=t,{_stateStore:a,_support:l}=function(e){if(Go.has(e))return Go.get(e);let t=e._tokenization||e.tokenization._tokenization,i=null==t?void 0:t._tokenizationStateStore;if(!t||!i){const n=e.tokenization;n.grammarTokens?(t=n.grammarTokens._defaultBackgroundTokenizer,i=t._tokenizerWithStateStore):(Object.values(n).some((e=>t=e.tokenizeViewport&&e)),Object.values(t).some((e=>i=e.tokenizationSupport&&e)))}const n=i.tokenizationSupport||t._tokenizationSupport,o={_stateStore:i,_support:n};return Go.set(e,o),o}(e),d=(null===(o=a.getBeginState)||void 0===o?void 0:o.call(a,r-1).clone())||a.getStartState(r).clone(),c=l.tokenize(e.getLineContent(r),!0,d,0).tokens;let h=!1;for(let e=c.length-1;e>=0;e--)if(s-1>c[e].offset){h=qo(c,e,i,n);break}return h}(n,o,i,t)?Bo(e,n,o,i,Yo):void 0})));return()=>{n.forEach((e=>e.dispose()))}}const Jo={"scope.terraform":{language:"terraform",path:"terraform.tmGrammar.json"},"source.vue":{language:"vue",path:"vue-generated.json"},"source.matlab":{language:"matlab",path:"matlab.tmLanguage.json"},"source.dart":{language:"dart",path:"dart.tmLanguage.json"},"source.fortran":{language:"fortran",path:"fortran.tmLanguage.json"},"source.fortran.modern":{language:"fortran-modern",path:"fortran-modern.tmLanguage.json"},"source.yaml":{language:"yaml",path:"yaml.tmLanguage.json"},"text.xml":{language:"xml",path:"xml.tmLanguage.json"},"text.xml.xsl":{language:"xsl",path:"xsl.tmLanguage.json"},"source.asp.vb.net":{language:"vb",path:"asp-vb-net.tmLanguage.json"},"source.swift":{language:"swift",path:"swift.tmLanguage.json"},"source.shell":{language:"shellscript",path:"shell-unix-bash.tmLanguage.json"},"source.shaderlab":{language:"shaderlab",path:"shaderlab.tmLanguage.json"},"source.sql":{language:"sql",path:"sql.tmLanguage.json"},"source.css.scss":{language:"scss",path:"scss.tmLanguage.json"},"source.rust":{language:"rust",path:"rust.tmLanguage.json"},"source.ruby":{language:"ruby",path:"ruby.tmLanguage.json"},"text.html.cshtml":{language:"razor",path:"cshtml.tmLanguage.json"},"source.r":{language:"r",path:"r.tmLanguage.json"},"text.pug":{language:"jade",path:"pug.tmLanguage.json"},"source.powershell":{language:"powershell",path:"powershell.tmLanguage.json"},"source.perl":{language:"perl",path:"perl.tmLanguage.json"},"source.perl.6":{language:"perl6",path:"perl6.tmLanguage.json"},"text.html.php":{language:"php",path:"htmlphp.tmLanguage.json"},"source.php":{language:"php",path:"php.tmLanguage.json"},"source.objc":{language:"objective-c",path:"objective-c.tmLanguage.json"},"source.objcpp":{language:"objective-cpp",path:"objective-c++.tmLanguage.json"},"text.html.markdown":{language:"markdown",path:"markdown.tmLanguage.json"},"source.makefile":{language:"makefile",path:"make.tmLanguage.json"},"source.lua":{language:"lua",path:"lua.tmLanguage.json"},"text.log":{language:"log",path:"log.tmLanguage.json"},"source.css.less":{language:"less",path:"less.tmLanguage.json"},"source.java":{language:"java",path:"java.tmLanguage.json"},"source.json":{language:"json",path:"JSON.tmLanguage.json"},"source.json.comments":{language:"jsonc",path:"JSONC.tmLanguage.json"},"source.ini":{language:"properties",path:"ini.tmLanguage.json"},"text.html.handlebars":{language:"handlebars",path:"handlebars.tmLanguage.json"},"source.hlsl":{language:"hlsl",path:"hlsl.tmLanguage.json"},"source.groovy":{language:"groovy",path:"groovy.tmLanguage.json"},"source.go":{language:"go",path:"go.tmLanguage.json"},"source.fsharp":{language:"fsharp",path:"fsharp.tmLanguage.json"},"source.dockerfile":{language:"dockerfile",path:"docker.tmLanguage.json"},"source.coffee":{language:"coffeescript",path:"coffeescript.tmLanguage.json"},"source.python":{language:"python",path:"MagicPython.tmLanguage.json"},"source.c":{language:"c",path:"c.tmLanguage.json"},"source.cpp":{language:"cpp",path:"cpp.tmLanguage.json"},"source.cs":{language:"csharp",path:"csharp.tmLanguage.json"},"source.clojure":{language:"clojure",path:"clojure.tmLanguage.json"},"text.html.basic":{language:"html",path:"html.tmLanguage.json"},"source.js.jsx":{language:"javascriptreact",path:"JavaScriptReact.tmLanguage.json"},"source.js":{language:"javascript",path:"JavaScript.tmLanguage.json"},"source.css":{language:"css",path:"css.tmLanguage.json"},"source.ts":{language:"typescript",path:"TypeScript.tmLanguage.json"},"source.tsx":{language:"typescriptreact",path:"TypeScriptReact.tmLanguage.json"},"documentation.injection.js.jsx":{language:"jsonc",path:"jsonc.js.injection.tmLanguage.json"},"documentation.injection.ts.tsx":{language:"jsonc",path:"jsonc.ts.injection.tmLanguage.json"},"source.batchfile":{language:"bat",path:"batchfile.tmLanguage.json"},"source.julia":{language:"julia",path:"julia.tmLanguage.json"},"source.svelte":{language:"svelte",path:"svelte.tmLanguage.json"},"source.kotlin":{language:"kotlin",path:"kotlin.tmLanguage.json"}},es=[{id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi",".pyi",".ipy",".bzl",".cconf",".cinc",".mcconf",".sky",".td",".tw"],aliases:["Python","py"],filenames:["Snakefile","BUILD","BUCK","TARGETS"],firstLine:"^#!\\s*/?.*\\bpython[0-9.-]*\\b"},{id:"c",extensions:[".c",".i"],aliases:["C","c"]},{id:"cpp",extensions:[".cpp",".cc",".cxx",".c++",".hpp",".hh",".hxx",".h++",".h",".ii",".ino",".inl",".ipp",".hpp.in",".h.in"],aliases:["C++","Cpp","cpp"]},{id:"html",extensions:[".html",".htm",".shtml",".xhtml",".xht",".mdoc",".jsp",".asp",".aspx",".jshtm",".volt",".ejs",".rhtml"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template","application/xhtml+xml"]},{id:"javascriptreact",aliases:["JavaScript React","jsx"],extensions:[".jsx"]},{id:"javascript",aliases:["JavaScript","javascript","js"],extensions:[".js",".es6",".mjs",".cjs",".pac"],filenames:["jakefile"],firstLine:"^#!.*\\bnode",mimetypes:["text/javascript"]},{id:"jsx-tags",aliases:[]},{id:"javascriptreact",aliases:["JavaScript React","jsx"],extensions:[".jsx"]},{id:"css",aliases:["CSS","css"],extensions:[".css"],mimetypes:["text/css"]},{id:"typescript",aliases:["TypeScript","ts","typescript"],extensions:[".ts"]},{id:"typescriptreact",aliases:["TypeScript React","tsx"],extensions:[".tsx"]},{id:"jsonc",filenames:["tsconfig.json","jsconfig.json"],filenamePatterns:["tsconfig.*.json","jsconfig.*.json","tsconfig-*.json","jsconfig-*.json"]},{id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"]},{id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"]},{id:"clojure",aliases:["Clojure","clojure"],extensions:[".clj",".cljs",".cljc",".cljx",".clojure",".edn"]},{id:"coffeescript",extensions:[".coffee",".cson",".iced"],aliases:["CoffeeScript","coffeescript","coffee"]},{id:"dockerfile",extensions:[".dockerfile",".containerfile"],filenames:["Dockerfile","Containerfile"],filenamePatterns:["Dockerfile.*","Containerfile.*"],aliases:["Docker","Dockerfile","Containerfile"]},{id:"fsharp",extensions:[".fs",".fsi",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"]},{id:"go",extensions:[".go",".fsi",".fsx",".fsscript"],aliases:["Go"]},{id:"groovy",aliases:["Groovy","groovy"],extensions:[".groovy",".gvy",".gradle",".jenkinsfile",".nf"],filenames:["Jenkinsfile"],filenamePatterns:["Jenkinsfile.*"],firstLine:"^#!.*\\bgroovy\\b"},{id:"hlsl",extensions:[".hlsl",".hlsli",".fx",".fxh",".vsh",".psh",".cginc",".compute"],aliases:["HLSL","hlsl"]},{id:"handlebars",extensions:[".handlebars",".hbs",".hjs"],aliases:["Handlebars","handlebars"],mimetypes:["text/x-handlebars-template"]},{id:"properties",extensions:[".ini, .properties",".cfg",".conf",".directory",".gitattributes",".gitconfig",".gitmodules",".editorconfig"],filenames:["gitconfig"],filenamePatterns:["**/.config/git/config","**/.git/config"],aliases:["Properties","properties","ini","Ini"]},{id:"json",extensions:[".json",".bowerrc",".jscsrc",".js.map",".css.map",".ts.map",".har",".jslintrc",".jsonld"],filenames:["composer.lock",".watchmanconfig",".ember-cli"],mimetypes:["application/json","application/json"],aliases:["JSON","json"]},{id:"jsonc",aliases:["JSON with Comments"],extensions:[".jsonc",".eslintrc",".eslintrc.json",".jsfmtrc",".jshintrc",".swcrc",".hintrc",".babelrc"]},{id:"java",extensions:[".java",".jav"],aliases:["Java","java"]},{id:"less",aliases:["Less","less"],extensions:[".less"],mimetypes:["text/x-less","text/less"]},{id:"log",extensions:[".log","*.log.?"],aliases:["Log"]},{id:"lua",extensions:[".lua"],aliases:["Lua","lua"]},{id:"makefile",aliases:["Makefile","makefile"],extensions:[".mk"],filenames:["Makefile","makefile","GNUmakefile","OCamlMakefile"],firstLine:"^#!\\s*/usr/bin/make"},{id:"markdown",aliases:["Markdown","markdown"],extensions:[".md",".mkd",".mdwn",".mdown",".markdown",".markdn",".mdtxt",".mdtext",".workbook"]},{id:"objective-c",extensions:[".m"],aliases:["Objective-C"]},{id:"objective-cpp",extensions:[".mm"],aliases:["Objective-C++"]},{id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],firstLine:"^#!\\s*/.*\\bphp\\b",mimetypes:["application/x-php"]},{id:"perl",aliases:["Perl","perl"],extensions:[".pl",".pm",".pod",".t",".PL",".psgi"],firstLine:"^#!.*\\bperl\\b"},{id:"perl6",aliases:["Perl 6","perl6"],extensions:[".p6",".pl6",".pm6",".nqp"],firstLine:"(^#!.*\\bperl6\\b)|use\\s+v6"},{id:"powershell",extensions:[".ps1",".psm1",".psd1",".pssc",".psrc"],aliases:["PowerShell","powershell","ps","ps1"],firstLine:"^#!\\s*/.*\\bpwsh\\b"},{id:"jade",extensions:[".pug",".jade"],aliases:["Pug","Jade","jade"]},{id:"r",extensions:[".r",".rhistory",".rprofile",".rt"],aliases:["R","r"]},{id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"]},{id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".rake",".ru",".erb",".podspec",".rbi"],filenames:["rakefile","gemfile","guardfile","podfile","capfile"],aliases:["Ruby","rb"]},{id:"rust",extensions:[".rs"],aliases:["Rust","rust"]},{id:"scss",aliases:["SCSS","scss"],extensions:[".scss"],mimetypes:["text/x-scss","text/scss"]},{id:"sql",extensions:[".sql",".dsql"],aliases:["SQL"]},{id:"shaderlab",extensions:[".shader"],aliases:["ShaderLab","shaderlab"]},{id:"shellscript",aliases:["Shell Script","shellscript","bash","sh","zsh","ksh","csh"],extensions:[".sh",".bash",".bashrc",".bash_aliases",".bash_profile",".bash_login",".ebuild",".install",".profile",".bash_logout",".zsh",".zshrc",".zprofile",".zlogin",".zlogout",".zshenv",".zsh-theme",".ksh",".csh",".cshrc",".tcshrc",".yashrc",".yash_profile"],filenames:["APKBUILD","PKGBUILD",".envrc",".hushlogin","zshrc","zshenv","zlogin","zprofile","zlogout","bashrc_Apple_Terminal","zshrc_Apple_Terminal"],firstLine:"^#!.*\\b(bash|zsh|sh|ksh|dtksh|pdksh|mksh|ash|dash|yash|sh|csh|jcsh|tcsh|itcsh).*|^#\\s*-\\*-[^*]*mode:\\s*shell-script[^*]*-\\*-",mimetypes:["text/x-shellscript"]},{id:"swift",aliases:["Swift","swift"],extensions:[".swift"]},{id:"vb",extensions:[".vb",".brs",".vbs",".bas"],aliases:["Visual Basic","vb"]},{id:"xml",extensions:[".xml",".xsd",".ascx",".atom",".axml",".bpmn",".cpt",".csl",".csproj",".csproj.user",".dita",".ditamap",".dtd",".ent",".mod",".dtml",".fsproj",".fxml",".iml",".isml",".jmx",".launch",".menu",".mxml",".nuspec",".opml",".owl",".proj",".props",".pt",".publishsettings",".pubxml",".pubxml.user",".rbxlx",".rbxmx",".rdf",".rng",".rss",".shproj",".storyboard",".svg",".targets",".tld",".tmx",".vbproj",".vbproj.user",".vcxproj",".vcxproj.filters",".wsdl",".wxi",".wxl",".wxs",".xaml",".xbl",".xib",".xlf",".xliff",".xpdl",".xul",".xoml"],firstLine:"(\\<\\?xml.*)|(\\{if(e in s&&r)return r(e);const{path:t}=m[e],i=`/grammars/${t}`,n=await ts(i),o=await n.text();return{type:t.endsWith(".json")?"json":"plist",grammar:o}},configurations:p.map((e=>e.id)),fetchConfiguration:async e=>{if(e in o&&l)return l(e);const t=`/configurations/${e}.json`,i=await ts(t);return function(e){const t=JSON.parse(e);for(const e of d){const n=(i=t,e.split(".").reduce(((e,t)=>null!=e?e[t]:null),i));"string"==typeof n&&c(t,e,new RegExp(n))}var i;return t}(await i.text())},theme:"vs-dark"==n?h:u,onigLib:f,monaco:e}),function(e,t,i){for(const n of e){const{id:e}=n;i.languages.register(n),i.languages.onLanguage(e,(async()=>{const{tokensProvider:n,configuration:o}=await t(e);null!=n&&i.languages.setTokensProvider(e,n),null!=o&&i.languages.setLanguageConfiguration(e,o)}))}}(p,(e=>ns.fetchLanguageInfo(e)),e);const v="container",_=document.getElementById(v);if(null==_)throw Error(`could not find element #${v}`);const b=e.editor.create(_,{value:"",language:i,theme:n,minimap:{enabled:!0},automaticLayout:!0,glyphMargin:!1,lineNumbersMinChars:3,contextmenu:!0,unicodeHighlight:{ambiguousCharacters:!1}});window.editor=b,window.initVimMode=is.K$,window.applyListeners(window.editor),ns.injectCSS()}window.main=os,window.changeTheme=function(t){"vs-dark"==t?(e.editor.setTheme("vs-dark"),ns.registry.setTheme(h),ns.injectCSS()):"vs"==t&&(e.editor.setTheme("vs"),ns.registry.setTheme(u),ns.injectCSS())},window.monaco=e,window.setTheme=function(t,i){if(!ns)return;e.editor.defineTheme(t,{base:"dark"==i.type?"vs-dark":"vs",inherit:!0,rules:[{foreground:i.colors["editor.foreground"],background:i.colors["editor.background"],token:""}],colors:i.colors});const n={name:i.name,settings:i.tokenColors.concat([{settings:{foreground:i.colors["editor.foreground"],background:i.colors["editor.background"]}}])};ns.registry.setTheme(n),ns.injectCSS(),e.editor.setTheme(t)},MonacoEnvironment={getWorkerUrl:function(e,t){return"css"===t||"scss"===t||"less"===t?"./css.worker.bundle.js":"html"===t||"handlebars"===t||"razor"===t?"./html.worker.bundle.js":"typescript"===t||"javascript"===t?"./ts.worker.bundle.js":"./editor.worker.bundle.js"}},function(e=window.monaco,t=["html"]){Xo(e,t,"html")}(),function(e=window.monaco,t=["css"]){Xo(e,t,"css")}(),function(e=window.monaco,t=["javascript"]){Xo(e,t,"jsx")}(),os("json","vs-dark")})()})(); \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/app.bundle.js.LICENSE.txt b/Dependencies/monaco-textmate.bundle/app.bundle.js.LICENSE.txt deleted file mode 100644 index 00865a656..000000000 --- a/Dependencies/monaco-textmate.bundle/app.bundle.js.LICENSE.txt +++ /dev/null @@ -1,8 +0,0 @@ -/*! @license DOMPurify 3.0.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.5/LICENSE */ - -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.50.0(596bd541599cd083b7d07625521a36aaab18e7c8) - * Released under the MIT license - * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/ diff --git a/Dependencies/monaco-textmate.bundle/configurations/bat.json b/Dependencies/monaco-textmate.bundle/configurations/bat.json deleted file mode 100644 index 8b4b5e409..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/bat.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "comments": { - "lineComment": "@REM" - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "[", "close": "]" }, - { "open": "{", "close": "}" }, - { "open": "(", "close": ")" }, - { "open": "\"", "close": "\"", "notIn": ["string"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["%", "%"], - ["\"", "\""] - ], - "folding": { - "markers": { - "start": "^\\s*(::|REM|@REM)\\s*#region", - "end": "^\\s*(::|REM|@REM)\\s*#endregion" - } - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/c.json b/Dependencies/monaco-textmate.bundle/configurations/c.json deleted file mode 100644 index e50df32dd..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/c.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "comments": { - "lineComment": "//", - "blockComment": ["/*", "*/"] - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "[", "close": "]" }, - { "open": "{", "close": "}" }, - { "open": "(", "close": ")" }, - { "open": "'", "close": "'", "notIn": ["string", "comment"] }, - { "open": "\"", "close": "\"", "notIn": ["string"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""], - ["'", "'"], - ["<", ">"] - ], - "folding": { - "markers": { - "start": "^\\s*#pragma\\s+region\\b", - "end": "^\\s*#pragma\\s+endregion\\b" - } - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/clojure.json b/Dependencies/monaco-textmate.bundle/configurations/clojure.json deleted file mode 100644 index f79cc9c09..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/clojure.json +++ /dev/null @@ -1,26 +0,0 @@ - -{ - "comments": { - "lineComment": ";" - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "[", "close": "]" }, - { "open": "{", "close": "}" }, - { "open": "(", "close": ")" }, - { "open": "\"", "close": "\"", "notIn": ["string"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""] - ], - "folding": { - "offSide": true - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/coffeescript.json b/Dependencies/monaco-textmate.bundle/configurations/coffeescript.json deleted file mode 100644 index 3e9b1a8bf..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/coffeescript.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "comments": { - "lineComment": "#", - "blockComment": [ "###", "###" ] - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "[", "close": "]" }, - { "open": "{", "close": "}" }, - { "open": "(", "close": ")" }, - { "open": "\"", "close": "\"", "notIn": ["string"] }, - { "open": "'", "close": "'", "notIn": ["string"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""], - ["'", "'"], - [" ", " "] - ], - "folding": { - "offSide": true, - "markers": { - "start": "^\\s*#region\\b", - "end": "^\\s*#endregion\\b" - } - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/cpp.json b/Dependencies/monaco-textmate.bundle/configurations/cpp.json deleted file mode 100644 index e50df32dd..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/cpp.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "comments": { - "lineComment": "//", - "blockComment": ["/*", "*/"] - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "[", "close": "]" }, - { "open": "{", "close": "}" }, - { "open": "(", "close": ")" }, - { "open": "'", "close": "'", "notIn": ["string", "comment"] }, - { "open": "\"", "close": "\"", "notIn": ["string"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""], - ["'", "'"], - ["<", ">"] - ], - "folding": { - "markers": { - "start": "^\\s*#pragma\\s+region\\b", - "end": "^\\s*#pragma\\s+endregion\\b" - } - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/csharp.json b/Dependencies/monaco-textmate.bundle/configurations/csharp.json deleted file mode 100644 index cf787b2e5..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/csharp.json +++ /dev/null @@ -1,33 +0,0 @@ - -{ - "comments": { - "lineComment": "//", - "blockComment": ["/*", "*/"] - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "[", "close": "]" }, - { "open": "{", "close": "}" }, - { "open": "(", "close": ")" }, - { "open": "'", "close": "'", "notIn": ["string", "comment"] }, - { "open": "\"", "close": "\"", "notIn": ["string", "comment"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["<", ">"], - ["'", "'"], - ["\"", "\""] - ], - "folding": { - "markers": { - "start": "^\\s*#region\\b", - "end": "^\\s*#endregion\\b" - } - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/css.json b/Dependencies/monaco-textmate.bundle/configurations/css.json deleted file mode 100644 index 7ee1c3330..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/css.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "comments": { - "blockComment": ["/*", "*/"] - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "{", "close": "}", "notIn": ["string", "comment"] }, - { "open": "[", "close": "]", "notIn": ["string", "comment"] }, - { "open": "(", "close": ")", "notIn": ["string", "comment"] }, - { "open": "\"", "close": "\"", "notIn": ["string", "comment"] }, - { "open": "'", "close": "'", "notIn": ["string", "comment"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""], - ["'", "'"] - ], - "folding": { - "markers": { - "start": "^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/", - "end": "^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/" - } - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/dart.json b/Dependencies/monaco-textmate.bundle/configurations/dart.json deleted file mode 100644 index fbead1c38..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/dart.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "comments": { - "lineComment": "//", - "blockComment": [ "/*", "*/" ] - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "{", "close": "}" }, - { "open": "[", "close": "]" }, - { "open": "(", "close": ")" }, - { "open": "'", "close": "'", "notIn": ["string", "comment"] }, - { "open": "\"", "close": "\"", "notIn": ["string"] }, - { "open": "`", "close": "`", "notIn": ["string", "comment"] }, - { "open": "/**", "close": " */", "notIn": ["string"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["<", ">"], - ["'", "'"], - ["\"", "\""], - ["`", "`"] - ] -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/dockerfile.json b/Dependencies/monaco-textmate.bundle/configurations/dockerfile.json deleted file mode 100644 index 547ee605f..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/dockerfile.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "docker", - "displayName": "%displayName%", - "description": "%description%", - "version": "1.0.0", - "publisher": "vscode", - "license": "MIT", - "engines": { "vscode": "*" }, - "scripts": { - "update-grammar": "node ../../build/npm/update-grammar.js moby/moby contrib/syntax/textmate/Docker.tmbundle/Syntaxes/Dockerfile.tmLanguage ./syntaxes/docker.tmLanguage.json" - }, - "contributes": { - "languages": [{ - "id": "dockerfile", - "extensions": [ ".dockerfile", ".containerfile" ], - "filenames": [ "Dockerfile", "Containerfile" ], - "filenamePatterns": [ "Dockerfile.*", "Containerfile.*" ], - "aliases": [ "Docker", "Dockerfile", "Containerfile" ], - "configuration": "./language-configuration.json" - }], - "grammars": [{ - "language": "dockerfile", - "scopeName": "source.dockerfile", - "path": "./syntaxes/docker.tmLanguage.json" - }], - "configurationDefaults": { - "[dockerfile]": { - "editor.quickSuggestions": { - "strings": true - } - } - } - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/fortran-modern.json b/Dependencies/monaco-textmate.bundle/configurations/fortran-modern.json deleted file mode 100644 index ff54a94ec..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/fortran-modern.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "comments": { - "lineComment": "!" - }, - "brackets": [ - [ - "[", - "]" - ], - [ - "(", - ")" - ], - [ - "(/", - "/)" - ] - ], - "autoClosingPairs": [ - { - "open": "[", - "close": "]" - }, - { - "open": "(", - "close": ")" - }, - { - "open": "(/", - "close": "/" - } - ], - "surroundingPairs": [ - [ - "[", - "]" - ], - [ - "(", - ")" - ], - [ - "'", - "'" - ], - [ - "\"", - "\"" - ] - ], - "indentationRules": { - "unIndentedLinePattern": "^\\s*!.*", - "increaseIndentPattern": { - "pattern": "then(\\s*|\\s*!.*)$|^\\s*(program|subroutine|function|module|do|block|associate|case|select\\s*case)\\b.*$|\\s*(else|else\\s*if|elsewhere)\\b.*$", - "flags": "i" - }, - "decreaseIndentPattern": { - "pattern": "^\\s*end\\s*(select|if|do|function|subroutine|module|program)\\b.*$|^\\s*(else|case)\\b.*$", - "flags": "i" - } - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/fortran.json b/Dependencies/monaco-textmate.bundle/configurations/fortran.json deleted file mode 100644 index ff54a94ec..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/fortran.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "comments": { - "lineComment": "!" - }, - "brackets": [ - [ - "[", - "]" - ], - [ - "(", - ")" - ], - [ - "(/", - "/)" - ] - ], - "autoClosingPairs": [ - { - "open": "[", - "close": "]" - }, - { - "open": "(", - "close": ")" - }, - { - "open": "(/", - "close": "/" - } - ], - "surroundingPairs": [ - [ - "[", - "]" - ], - [ - "(", - ")" - ], - [ - "'", - "'" - ], - [ - "\"", - "\"" - ] - ], - "indentationRules": { - "unIndentedLinePattern": "^\\s*!.*", - "increaseIndentPattern": { - "pattern": "then(\\s*|\\s*!.*)$|^\\s*(program|subroutine|function|module|do|block|associate|case|select\\s*case)\\b.*$|\\s*(else|else\\s*if|elsewhere)\\b.*$", - "flags": "i" - }, - "decreaseIndentPattern": { - "pattern": "^\\s*end\\s*(select|if|do|function|subroutine|module|program)\\b.*$|^\\s*(else|case)\\b.*$", - "flags": "i" - } - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/fsharp.json b/Dependencies/monaco-textmate.bundle/configurations/fsharp.json deleted file mode 100644 index a0aff70f8..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/fsharp.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "comments": { - "lineComment": "//", - "blockComment": [ "(*", "*)" ] - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "{", "close": "}" }, - { "open": "[", "close": "]" }, - { "open": "(", "close": ")" }, - { "open": "\"", "close": "\"", "notIn": ["string"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""], - ["'", "'"] - ], - "folding": { - "offSide": true, - "markers": { - "start": "^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)", - "end": "^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)" - } - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/go.json b/Dependencies/monaco-textmate.bundle/configurations/go.json deleted file mode 100644 index 8d8d070d6..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/go.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "comments": { - "lineComment": "//", - "blockComment": [ "/*", "*/" ] - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "[", "close": "]" }, - { "open": "{", "close": "}" }, - { "open": "(", "close": ")" }, - { "open": "`", "close": "`", "notIn": ["string"]}, - { "open": "\"", "close": "\"", "notIn": ["string"]}, - { "open": "'", "close": "'", "notIn": ["string", "comment"]} - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""], - ["'", "'"], - ["`", "`"] - ], - "indentationRules": { - "increaseIndentPattern": "^.*(\\bcase\\b.*:|\\bdefault\\b:|(\\b(func|if|else|switch|select|for|struct)\\b.*)?{[^}\"'`]*|\\([^)\"'`]*)$", - "decreaseIndentPattern": "^\\s*(\\bcase\\b.*:|\\bdefault\\b:|}[)}]*[),]?|\\)[,]?)$" - }, - "folding": { - "markers": { - "start": "^\\s*//\\s*#?region\\b", - "end": "^\\s*//\\s*#?endregion\\b" - } - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/groovy.json b/Dependencies/monaco-textmate.bundle/configurations/groovy.json deleted file mode 100644 index bf8d89221..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/groovy.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "comments": { - "lineComment": "//", - "blockComment": [ "/*", "*/" ] - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "[", "close": "]" }, - { "open": "{", "close": "}" }, - { "open": "(", "close": ")" }, - { "open": "\"", "close": "\"", "notIn": ["string"] }, - { "open": "'", "close": "'", "notIn": ["string"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""], - ["'", "'"] - ] -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/handlebars.json b/Dependencies/monaco-textmate.bundle/configurations/handlebars.json deleted file mode 100644 index d27cd1460..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/handlebars.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "comments": { - "blockComment": [ "{{!--", "--}}" ] - }, - "brackets": [ - [""], - ["<", ">"], - ["{{", "}}"], - ["{{{", "}}}"], - ["{", "}"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "{", "close": "}"}, - { "open": "[", "close": "]"}, - { "open": "(", "close": ")" }, - { "open": "'", "close": "'" }, - { "open": "\"", "close": "\"" } - ], - "surroundingPairs": [ - { "open": "'", "close": "'" }, - { "open": "\"", "close": "\"" }, - { "open": "<", "close": ">" }, - { "open": "{", "close": "}" } - ] -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/hlsl.json b/Dependencies/monaco-textmate.bundle/configurations/hlsl.json deleted file mode 100644 index 97e66635a..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/hlsl.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "comments": { - "lineComment": "//", - "blockComment": [ "/*", "*/" ] - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "[", "close": "]" }, - { "open": "{", "close": "}" }, - { "open": "(", "close": ")" }, - { "open": "\"", "close": "\""} - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""] - ] -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/html.json b/Dependencies/monaco-textmate.bundle/configurations/html.json deleted file mode 100644 index 191f54303..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/html.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "comments": { - "blockComment": [ "" ] - }, - "brackets": [ - [""], - ["<", ">"], - ["{", "}"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "{", "close": "}"}, - { "open": "[", "close": "]"}, - { "open": "(", "close": ")" }, - { "open": "'", "close": "'" }, - { "open": "\"", "close": "\"" }, - { "open": "", "notIn": [ "comment", "string" ]} - ], - "surroundingPairs": [ - { "open": "'", "close": "'" }, - { "open": "\"", "close": "\"" }, - { "open": "{", "close": "}"}, - { "open": "[", "close": "]"}, - { "open": "(", "close": ")" }, - { "open": "<", "close": ">" } - ], - "folding": { - "markers": { - "start": "^\\s*", - "end": "^\\s*" - } - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/jade.json b/Dependencies/monaco-textmate.bundle/configurations/jade.json deleted file mode 100644 index d980d067d..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/jade.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "comments": { - "lineComment": "//-" - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "[", "close": "]" }, - { "open": "{", "close": "}" }, - { "open": "(", "close": ")" }, - { "open": "\"", "close": "\"", "notIn": ["string"] }, - { "open": "'", "close": "'", "notIn": ["string"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["'", "'"], - ["\"", "\""] - ], - "folding": { - "offSide": true - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/java.json b/Dependencies/monaco-textmate.bundle/configurations/java.json deleted file mode 100644 index 5d31d3549..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/java.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "comments": { - "lineComment": "//", - "blockComment": [ "/*", "*/" ] - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "[", "close": "]" }, - { "open": "{", "close": "}" }, - { "open": "(", "close": ")" }, - { "open": "\"", "close": "\"", "notIn": ["string"] }, - { "open": "'", "close": "'", "notIn": ["string"] }, - { "open": "/**", "close": " */", "notIn": ["string"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""], - ["'", "'"], - ["<", ">"] - ], - "folding": { - "markers": { - "start": "^\\s*//\\s*(?:(?:#?region\\b)|(?:))" - } - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/javascript.json b/Dependencies/monaco-textmate.bundle/configurations/javascript.json deleted file mode 100644 index b41053843..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/javascript.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "comments": { - "lineComment": "//", - "blockComment": [ "/*", "*/" ] - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "{", "close": "}" }, - { "open": "[", "close": "]" }, - { "open": "(", "close": ")" }, - { "open": "'", "close": "'", "notIn": ["string", "comment"] }, - { "open": "\"", "close": "\"", "notIn": ["string"] }, - { "open": "`", "close": "`", "notIn": ["string", "comment"] }, - { "open": "/**", "close": " */", "notIn": ["string"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["'", "'"], - ["\"", "\""], - ["`", "`"] - ], - "autoCloseBefore": ";:.,=}])>` \n\t", - "folding": { - "markers": { - "start": "^\\s*//\\s*#?region\\b", - "end": "^\\s*//\\s*#?endregion\\b" - } - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/javascriptreact.json b/Dependencies/monaco-textmate.bundle/configurations/javascriptreact.json deleted file mode 100644 index fa04cf175..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/javascriptreact.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "comments": { - "blockComment": [ "{/*", "*/}" ] - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["<", ">"] - ], - "autoClosingPairs": [ - { "open": "{", "close": "}" }, - { "open": "[", "close": "]" }, - { "open": "(", "close": ")" }, - { "open": "'", "close": "'", "notIn": ["string", "comment"] }, - { "open": "\"", "close": "\"", "notIn": ["string"] }, - { "open": "/**", "close": " */", "notIn": ["string"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["<", ">"], - ["'", "'"], - ["\"", "\""] - ] -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/json.json b/Dependencies/monaco-textmate.bundle/configurations/json.json deleted file mode 100644 index 53ccbd235..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/json.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "comments": { - "lineComment": "//", - "blockComment": [ "/*", "*/" ] - }, - "brackets": [ - ["{", "}"], - ["[", "]"] - ], - "autoClosingPairs": [ - { "open": "{", "close": "}", "notIn": ["string"] }, - { "open": "[", "close": "]", "notIn": ["string"] }, - { "open": "(", "close": ")", "notIn": ["string"] }, - { "open": "'", "close": "'", "notIn": ["string"] }, - { "open": "\"", "close": "\"", "notIn": ["string", "comment"] }, - { "open": "`", "close": "`", "notIn": ["string", "comment"] } - ] -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/jsonc.json b/Dependencies/monaco-textmate.bundle/configurations/jsonc.json deleted file mode 100644 index 53ccbd235..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/jsonc.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "comments": { - "lineComment": "//", - "blockComment": [ "/*", "*/" ] - }, - "brackets": [ - ["{", "}"], - ["[", "]"] - ], - "autoClosingPairs": [ - { "open": "{", "close": "}", "notIn": ["string"] }, - { "open": "[", "close": "]", "notIn": ["string"] }, - { "open": "(", "close": ")", "notIn": ["string"] }, - { "open": "'", "close": "'", "notIn": ["string"] }, - { "open": "\"", "close": "\"", "notIn": ["string", "comment"] }, - { "open": "`", "close": "`", "notIn": ["string", "comment"] } - ] -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/julia.json b/Dependencies/monaco-textmate.bundle/configurations/julia.json deleted file mode 100644 index 5792dd760..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/julia.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "comments": { - "lineComment": "#", - "blockComment": ["#=", "=#"] - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["`", "`"], - {"open": "\"", "close": "\"", "notIn": ["string", "comment"]} - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""], - ["`", "`"] - ], - "folding": { - "markers": { - "start": "^\\s*#region", - "end": "^\\s*#endregion" - } - }, - "indentationRules": { - "increaseIndentPattern": "^(\\s*|.*=\\s*|.*@\\w*\\s*)[\\w\\s]*(?:[\"'`][^\"'`]*[\"'`])*[\\w\\s]*\\b(if|while|for|function|macro|(mutable\\s+)?struct|abstract\\s+type|primitive\\s+type|let|quote|try|begin|.*\\)\\s*do|else|elseif|catch|finally)\\b(?!(?:.*\\bend\\b[^\\]]*)|(?:[^\\[]*\\].*)$).*$", - "decreaseIndentPattern": "^\\s*(end|else|elseif|catch|finally)\\b.*$" - } -} diff --git a/Dependencies/monaco-textmate.bundle/configurations/kotlin.json b/Dependencies/monaco-textmate.bundle/configurations/kotlin.json deleted file mode 100644 index 249e07e11..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/kotlin.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "comments": { - "lineComment": "//", - "blockComment": [ "/*", "*/" ] - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "{", "close": "}" }, - { "open": "[", "close": "]" }, - { "open": "(", "close": ")" }, - { "open": "'", "close": "'", "notIn": ["string", "comment"] }, - { "open": "\"", "close": "\"", "notIn": ["string"] }, - { "open": "/*", "close": " */", "notIn": ["string"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["<", ">"], - ["'", "'"], - ["\"", "\""] - ], - "folding": { - "offSide": true, - "markers": { - "start": "^\\s*//\\s*#?region", - "end": "^\\s*//\\s*#?endregion" - } - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/less.json b/Dependencies/monaco-textmate.bundle/configurations/less.json deleted file mode 100644 index 181954633..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/less.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "comments": { - "blockComment": ["/*", "*/"], - "lineComment": "//" - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "{", "close": "}", "notIn": ["string", "comment"] }, - { "open": "[", "close": "]", "notIn": ["string", "comment"] }, - { "open": "(", "close": ")", "notIn": ["string", "comment"] }, - { "open": "\"", "close": "\"", "notIn": ["string", "comment"] }, - { "open": "'", "close": "'", "notIn": ["string", "comment"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""], - ["'", "'"] - ], - "indentationRules": { - "increaseIndentPattern": "(^.*\\{[^}]*$)", - "decreaseIndentPattern": "^\\s*\\}" - }, - "folding": { - "markers": { - "start": "^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/", - "end": "^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/" - } - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/log.json b/Dependencies/monaco-textmate.bundle/configurations/log.json deleted file mode 100644 index 0e0dcd235..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/log.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/lua.json b/Dependencies/monaco-textmate.bundle/configurations/lua.json deleted file mode 100644 index d350b6513..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/lua.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "comments": { - "lineComment": "--", - "blockComment": [ "--[[", "]]" ] - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "[", "close": "]" }, - { "open": "{", "close": "}" }, - { "open": "(", "close": ")" }, - { "open": "\"", "close": "\"", "notIn": ["string"] }, - { "open": "'", "close": "'", "notIn": ["string"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""], - ["'", "'"] - ], - "indentationRules": { - "increaseIndentPattern": "^((?!(\\-\\-)).)*((\\b(else|function|then|do|repeat)\\b((?!\\b(end|until)\\b).)*)|(\\{\\s*))$", - "decreaseIndentPattern": "^\\s*((\\b(elseif|else|end|until)\\b)|(\\})|(\\)))" - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/makefile.json b/Dependencies/monaco-textmate.bundle/configurations/makefile.json deleted file mode 100644 index 802890392..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/makefile.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "comments": { - "lineComment": "#" - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ] -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/markdown.json b/Dependencies/monaco-textmate.bundle/configurations/markdown.json deleted file mode 100644 index bfd3322eb..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/markdown.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "comments": { - "blockComment": [ - "" - ] - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { - "open": "{", - "close": "}" - }, - { - "open": "[", - "close": "]" - }, - { - "open": "(", - "close": ")" - }, - { - "open": "<", - "close": ">", - "notIn": [ - "string" - ] - } - ], - "surroundingPairs": [ - ["(", ")"], - ["[", "]"], - ["`", "`"], - ["_", "_"], - ["*", "*"] - ], - "folding": { - "offSide": true, - "markers": { - "start": "^\\s*", - "end": "^\\s*" - } - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/matlab.json b/Dependencies/monaco-textmate.bundle/configurations/matlab.json deleted file mode 100644 index 7f3832486..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/matlab.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "comments": { - "lineComment": "%", - "blockComment": [ "\n%{\n", "\n%}\n" ] - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "[", "close": "]" }, - { "open": "{", "close": "}" }, - { "open": "(", "close": ")" }, - { "open": "\"", "close": "\"" }, - { "open": "'", "close": "'" } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""], - ["'", "'"] - ], - "folding": { - "markers": { - "start": "^\\s*%%|^\\s*%\\s*region", - "end": "^\\s*%%|^\\s*%\\s*end\\s?region" - } - }, - "indentationRules": { - "increaseIndentPattern": "^\\s*\\b(function|if|else|elseif|switch|case|otherwise|for|parfor|while|try|catch|unwind_protect|properties|methods|enumeration|events|arguments)\\b", - "decreaseIndentPattern": "^\\s*\\b(end\\w*|catch|else|elseif|case|otherwise)\\b" - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/modern.json b/Dependencies/monaco-textmate.bundle/configurations/modern.json deleted file mode 100644 index c28fca6a9..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/modern.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "comments": { - "lineComment": "!" - }, - "brackets": [ - ["(", ")"] - ] -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/objective-c.json b/Dependencies/monaco-textmate.bundle/configurations/objective-c.json deleted file mode 100644 index bf8d89221..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/objective-c.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "comments": { - "lineComment": "//", - "blockComment": [ "/*", "*/" ] - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "[", "close": "]" }, - { "open": "{", "close": "}" }, - { "open": "(", "close": ")" }, - { "open": "\"", "close": "\"", "notIn": ["string"] }, - { "open": "'", "close": "'", "notIn": ["string"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""], - ["'", "'"] - ] -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/objective-cpp.json b/Dependencies/monaco-textmate.bundle/configurations/objective-cpp.json deleted file mode 100644 index bf8d89221..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/objective-cpp.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "comments": { - "lineComment": "//", - "blockComment": [ "/*", "*/" ] - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "[", "close": "]" }, - { "open": "{", "close": "}" }, - { "open": "(", "close": ")" }, - { "open": "\"", "close": "\"", "notIn": ["string"] }, - { "open": "'", "close": "'", "notIn": ["string"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""], - ["'", "'"] - ] -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/perl.json b/Dependencies/monaco-textmate.bundle/configurations/perl.json deleted file mode 100644 index 9e6f0c27a..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/perl.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "comments": { - "lineComment": "#" - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "[", "close": "]" }, - { "open": "{", "close": "}" }, - { "open": "(", "close": ")" }, - { "open": "\"", "close": "\"", "notIn": ["string"] }, - { "open": "'", "close": "'", "notIn": ["string"] }, - { "open": "`", "close": "`", "notIn": ["string"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""], - ["'", "'"], - ["`", "`"] - ], - "folding": { - "markers": { - "start": "^(?:(?:=pod\\s*$)|(?:\\s*#region\\b))", - "end": "^(?:(?:=cut\\s*$)|(?:\\s*#endregion\\b))" - } - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/perl6.json b/Dependencies/monaco-textmate.bundle/configurations/perl6.json deleted file mode 100644 index 0acdc41c7..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/perl6.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "comments": { - "lineComment": "#" - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "[", "close": "]" }, - { "open": "{", "close": "}" }, - { "open": "(", "close": ")" }, - { "open": "\"", "close": "\"", "notIn": ["string"] }, - { "open": "'", "close": "'", "notIn": ["string"] }, - { "open": "`", "close": "`", "notIn": ["string"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""], - ["'", "'"], - ["`", "`"] - ] -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/php.json b/Dependencies/monaco-textmate.bundle/configurations/php.json deleted file mode 100644 index 1c47925df..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/php.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "comments": { - "lineComment": "//", - "blockComment": [ "/*", "*/" ] - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "{", "close": "}", "notIn": ["string"] }, - { "open": "[", "close": "]", "notIn": ["string"] }, - { "open": "(", "close": ")", "notIn": ["string"] }, - { "open": "'", "close": "'", "notIn": ["string", "comment"] }, - { "open": "\"", "close": "\"", "notIn": ["string", "comment"] }, - { "open": "/**", "close": " */", "notIn": ["string"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["'", "'"], - ["\"", "\""], - ["`", "`"] - ], - "indentationRules": { - "increaseIndentPattern": "({(?!.*}).*|\\(|\\[|((else(\\s)?)?if|else|for(each)?|while|switch|case).*:)\\s*((/[/*].*|)?$|\\?>)", - "decreaseIndentPattern": "^(.*\\*\\/)?\\s*((\\})|(\\)+[;,])|(\\][;,])|\\b(else:)|\\b((end(if|for(each)?|while|switch)|break);))" - }, - "folding": { - "markers": { - "start": "^\\s*(#|\/\/)region\\b", - "end": "^\\s*(#|\/\/)endregion\\b" - } - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/powershell.json b/Dependencies/monaco-textmate.bundle/configurations/powershell.json deleted file mode 100644 index f4436a773..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/powershell.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "comments": { - "lineComment": "#", - "blockComment": [ "<#", "#>" ] - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "[", "close": "]" }, - { "open": "{", "close": "}" }, - { "open": "(", "close": ")" }, - { "open": "@'", "close": "\n'@", "notIn": ["string", "comment"]}, - { "open": "@\"", "close": "\n\"@", "notIn": ["string", "comment"]}, - { "open": "\"", "close": "\"", "notIn": ["string"]}, - { "open": "'", "close": "'", "notIn": ["string", "comment"]}, - { "open": "<#", "close": "#>" } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""], - ["'", "'"] - ], - "folding": { - "markers": { - "start": "^\\s*#[rR]egion\\b", - "end": "^\\s*#[eE]nd[rR]egion\\b" - } - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/properties.json b/Dependencies/monaco-textmate.bundle/configurations/properties.json deleted file mode 100644 index 1621ddd76..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/properties.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "comments": { - "lineComment": ";", - "blockComment": [ ";", " " ] - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "[", "close": "]" }, - { "open": "{", "close": "}" }, - { "open": "(", "close": ")" }, - { "open": "\"", "close": "\"", "notIn": ["string"] }, - { "open": "'", "close": "'", "notIn": ["string"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""], - ["'", "'"] - ] -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/python.json b/Dependencies/monaco-textmate.bundle/configurations/python.json deleted file mode 100644 index 4c4f710c7..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/python.json +++ /dev/null @@ -1,141 +0,0 @@ -{ - "comments": { - "lineComment": "#", - "blockComment": ["\"\"\"", "\"\"\""] - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { - "open": "{", - "close": "}" - }, - { - "open": "[", - "close": "]" - }, - { - "open": "(", - "close": ")" - }, - { - "open": "\"", - "close": "\"", - "notIn": ["string"] - }, - { - "open": "r\"", - "close": "\"", - "notIn": ["string", "comment"] - }, - { - "open": "R\"", - "close": "\"", - "notIn": ["string", "comment"] - }, - { - "open": "u\"", - "close": "\"", - "notIn": ["string", "comment"] - }, - { - "open": "U\"", - "close": "\"", - "notIn": ["string", "comment"] - }, - { - "open": "f\"", - "close": "\"", - "notIn": ["string", "comment"] - }, - { - "open": "F\"", - "close": "\"", - "notIn": ["string", "comment"] - }, - { - "open": "b\"", - "close": "\"", - "notIn": ["string", "comment"] - }, - { - "open": "B\"", - "close": "\"", - "notIn": ["string", "comment"] - }, - { - "open": "'", - "close": "'", - "notIn": ["string", "comment"] - }, - { - "open": "r'", - "close": "'", - "notIn": ["string", "comment"] - }, - { - "open": "R'", - "close": "'", - "notIn": ["string", "comment"] - }, - { - "open": "u'", - "close": "'", - "notIn": ["string", "comment"] - }, - { - "open": "U'", - "close": "'", - "notIn": ["string", "comment"] - }, - { - "open": "f'", - "close": "'", - "notIn": ["string", "comment"] - }, - { - "open": "F'", - "close": "'", - "notIn": ["string", "comment"] - }, - { - "open": "b'", - "close": "'", - "notIn": ["string", "comment"] - }, - { - "open": "B'", - "close": "'", - "notIn": ["string", "comment"] - }, - { - "open": "`", - "close": "`", - "notIn": ["string"] - } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""], - ["'", "'"], - ["`", "`"] - ], - "folding": { - "offSide": true, - "markers": { - "start": "^\\s*#\\s*region\\b", - "end": "^\\s*#\\s*endregion\\b" - } - }, - "onEnterRules": [ - { - "beforeText": "^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async).*?:\\s*$", - "action": { "indentAction": 1 } - } - ] -} diff --git a/Dependencies/monaco-textmate.bundle/configurations/r.json b/Dependencies/monaco-textmate.bundle/configurations/r.json deleted file mode 100644 index 39975a7e7..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/r.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "comments": { - "lineComment": "#" - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "[", "close": "]" }, - { "open": "{", "close": "}" }, - { "open": "(", "close": ")" }, - { "open": "\"", "close": "\"", "notIn": ["string"] }, - { "open": "'", "close": "'", "notIn": ["string"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""], - ["'", "'"] - ] -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/razor.json b/Dependencies/monaco-textmate.bundle/configurations/razor.json deleted file mode 100644 index 3ab9321eb..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/razor.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "comments": { - "blockComment": [ "" ] - }, - "brackets": [ - [""], - ["{", "}"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "{", "close": "}"}, - { "open": "[", "close": "]"}, - { "open": "(", "close": ")" }, - { "open": "'", "close": "'" }, - { "open": "\"", "close": "\"" } - ], - "surroundingPairs": [ - { "open": "'", "close": "'" }, - { "open": "\"", "close": "\"" }, - { "open": "<", "close": ">" } - ] -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/ruby.json b/Dependencies/monaco-textmate.bundle/configurations/ruby.json deleted file mode 100644 index 823966547..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/ruby.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "comments": { - "lineComment": "#", - "blockComment": [ "=begin", "=end" ] - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "[", "close": "]" }, - { "open": "{", "close": "}" }, - { "open": "(", "close": ")" }, - { "open": "\"", "close": "\"", "notIn": ["string"] }, - { "open": "'", "close": "'", "notIn": ["string"] }, - { "open": "`", "close": "`", "notIn": ["string"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""], - ["'", "'"], - ["`", "`"] - ], - "indentationRules": { - "increaseIndentPattern": "^\\s*((begin|class|(private|protected)\\s+def|def|else|elsif|ensure|for|if|module|rescue|unless|until|when|while|case)|([^#]*\\sdo\\b)|([^#]*=\\s*(case|if|unless)))\\b([^#\\{;]|(\"|'|\/).*\\4)*(#.*)?$", - "decreaseIndentPattern": "^\\s*([}\\]]([,)]?\\s*(#|$)|\\.[a-zA-Z_]\\w*\\b)|(end|rescue|ensure|else|elsif|when)\\b)" - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/rust.json b/Dependencies/monaco-textmate.bundle/configurations/rust.json deleted file mode 100644 index 247097670..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/rust.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "comments": { - "lineComment": "//", - "blockComment": [ "/*", "*/" ] - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "[", "close": "]" }, - { "open": "{", "close": "}" }, - { "open": "(", "close": ")" }, - { "open": "\"", "close": "\"", "notIn": ["string"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""] - ], - "indentationRules": { - "increaseIndentPattern": "^.*\\{[^}\"']*$|^.*\\([^\\)\"']*$", - "decreaseIndentPattern": "^\\s*(\\s*\\/[*].*[*]\\/\\s*)*[})]" - }, - "folding": { - "markers": { - "start": "^\\s*//\\s*#?region\\b", - "end": "^\\s*//\\s*#?endregion\\b" - } - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/scss.json b/Dependencies/monaco-textmate.bundle/configurations/scss.json deleted file mode 100644 index bdf0984ec..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/scss.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "comments": { - "blockComment": ["/*", "*/"], - "lineComment": "//" - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "{", "close": "}", "notIn": ["string", "comment"] }, - { "open": "[", "close": "]", "notIn": ["string", "comment"] }, - { "open": "(", "close": ")", "notIn": ["string", "comment"] }, - { "open": "\"", "close": "\"", "notIn": ["string", "comment"] }, - { "open": "'", "close": "'", "notIn": ["string", "comment"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""], - ["'", "'"] - ], - "folding": { - "markers": { - "start": "^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/", - "end": "^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/" - } - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/shaderlab.json b/Dependencies/monaco-textmate.bundle/configurations/shaderlab.json deleted file mode 100644 index 98cb33989..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/shaderlab.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "comments": { - "lineComment": "//", - "blockComment": [ "/*", "*/" ] - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "[", "close": "]" }, - { "open": "{", "close": "}" }, - { "open": "(", "close": ")" }, - { "open": "\"", "close": "\"", "notIn": ["string"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""] - ] -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/shellscript.json b/Dependencies/monaco-textmate.bundle/configurations/shellscript.json deleted file mode 100644 index e2f6482b8..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/shellscript.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "comments": { - "lineComment": "#" - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "[", "close": "]" }, - { "open": "{", "close": "}" }, - { "open": "(", "close": ")" }, - { "open": "\"", "close": "\"", "notIn": ["string"] }, - { "open": "'", "close": "'", "notIn": ["string"] }, - { "open": "`", "close": "`", "notIn": ["string"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""], - ["'", "'"], - ["`", "`"] - ], - "folding": { - "markers": { - "start": "^\\s*#\\s*#?region\\b.*", - "end": "^\\s*#\\s*#?endregion\\b.*" - } - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/sql.json b/Dependencies/monaco-textmate.bundle/configurations/sql.json deleted file mode 100644 index ff4b86e0a..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/sql.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "comments": { - "lineComment": "--", - "blockComment": [ "/*", "*/" ] - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "[", "close": "]" }, - { "open": "{", "close": "}" }, - { "open": "(", "close": ")" }, - { "open": "\"", "close": "\"", "notIn": ["string"] }, - { "open": "N'", "close": "'", "notIn": ["string", "comment"] }, - { "open": "'", "close": "'", "notIn": ["string", "comment"] } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""], - ["'", "'"], - ["`", "`"] - ] -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/svelte.json b/Dependencies/monaco-textmate.bundle/configurations/svelte.json deleted file mode 100644 index c720c3447..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/svelte.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "comments": { - "blockComment": [""] - }, - "brackets": [ - [""], - ["<", ">"], - ["{", "}"], - ["(", ")"], - ["[", "]"] - ], - "autoClosingPairs": [ - {"open": "{", "close": "}"}, - {"open": "[", "close": "]"}, - {"open": "(", "close": ")"}, - {"open": "'", "close": "'"}, - {"open": "\"", "close": "\""}, - {"open": "`", "close": "`", "notIn": ["comment", "string"]}, - {"open": "", "notIn": ["comment", "string"]}, - {"open": "/**", "close": "*/", "notIn": ["string"]} - ], - "surroundingPairs": [ - {"open": "'", "close": "'"}, - {"open": "\"", "close": "\""}, - {"open": "`", "close": "`"}, - {"open": "{", "close": "}"}, - {"open": "[", "close": "]"}, - {"open": "(", "close": ")"}, - {"open": "<", "close": ">"} - ], - "folding": { - "markers": { - "start": "^\\s*//\\s*#?region\\b|^<(template|style|script)[^>]*>|^\\s*" ] - }, - "brackets": [ - [""], - ["<", ">"], - ["{", "}"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "{", "close": "}"}, - { "open": "[", "close": "]"}, - { "open": "(", "close": ")" }, - { "open": "\"", "close": "\"", "notIn": ["string"] }, - { "open": "'", "close": "'", "notIn": ["string"] }, - { "open": "", "notIn": [ "comment", "string" ]}, - { "open": "", "notIn": [ "comment", "string" ]} - ], - "surroundingPairs": [ - { "open": "'", "close": "'" }, - { "open": "\"", "close": "\"" }, - { "open": "{", "close": "}"}, - { "open": "[", "close": "]"}, - { "open": "(", "close": ")" }, - { "open": "<", "close": ">" } - ], - "folding": { - "markers": { - "start": "^\\s*", - "end": "^\\s*" - } - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/xsl.json b/Dependencies/monaco-textmate.bundle/configurations/xsl.json deleted file mode 100644 index 69ced1562..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/xsl.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "comments": { - "lineComment": "", - "blockComment": [""] - }, - "brackets": [ - [""], - ["<", ">"], - ["{", "}"], - ["(", ")"], - ["[", "]"] - ] -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/configurations/yaml.json b/Dependencies/monaco-textmate.bundle/configurations/yaml.json deleted file mode 100644 index 01f3dc9c1..000000000 --- a/Dependencies/monaco-textmate.bundle/configurations/yaml.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "comments": { - "lineComment": "#" - }, - "brackets": [ - ["{", "}"], - ["[", "]"], - ["(", ")"] - ], - "autoClosingPairs": [ - { "open": "[", "close": "]" }, - { "open": "{", "close": "}" }, - { "open": "(", "close": ")" }, - { "open": "\"", "close": "\"" }, - { "open": "'", "close": "'" } - ], - "surroundingPairs": [ - ["{", "}"], - ["[", "]"], - ["(", ")"], - ["\"", "\""], - ["'", "'"] - ], - "folding": { - "offSide": true, - "markers": { - "start": "^\\s*#\\s*region\\b", - "end": "^\\s*#\\s*endregion\\b" - } - }, - "indentationRules": { - "increaseIndentPattern": "^\\s*.*(:|-) ?(&\\w+)?(\\{[^}\"']*|\\([^)\"']*)?$", - "decreaseIndentPattern": "^\\s+\\}$" - } -} \ No newline at end of file diff --git a/Dependencies/monaco-textmate.bundle/css.worker.bundle.js b/Dependencies/monaco-textmate.bundle/css.worker.bundle.js deleted file mode 100644 index ae45525af..000000000 --- a/Dependencies/monaco-textmate.bundle/css.worker.bundle.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see css.worker.bundle.js.LICENSE.txt */ -(()=>{"use strict";var e={25049:(e,t,n)=>{n.d(t,{n:()=>is});const i=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout((()=>{if(e.stack){if(l.isErrorNoTelemetry(e))throw new l(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e}),0)}}emit(e){this.listeners.forEach((t=>{t(e)}))}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function r(e){var t;(t=e)instanceof a||t instanceof Error&&t.name===o&&t.message===o||i.onUnexpectedError(e)}function s(e){if(e instanceof Error){const{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:l.isErrorNoTelemetry(e)}}return e}const o="Canceled";class a extends Error{constructor(){super(o),this.name=this.message}}Error;class l extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof l)return e;const t=new l;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class c extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,c.prototype)}}function h(e,t){const n=this;let i,r=!1;return function(){if(r)return i;if(r=!0,t)try{i=e.apply(n,arguments)}finally{t()}else i=e.apply(n,arguments);return i}}var d;!function(e){function t(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]}e.is=t;const n=Object.freeze([]);function*i(e){yield e}e.empty=function(){return n},e.single=i,e.wrap=function(e){return t(e)?e:i(e)},e.from=function(e){return e||n},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let n=0;for(const i of e)if(t(i,n++))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const i of e)yield t(i,n++)},e.flatMap=function*(e,t){let n=0;for(const i of e)yield*t(i,n++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,n){let i=n;for(const n of e)i=t(i,n);return i},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);tr}]},e.asyncToArray=async function(e){const t=[];for await(const n of e)t.push(n);return Promise.resolve(t)}}(d||(d={}));let p=null;function m(e){return null==p||p.trackDisposable(e),e}function u(e){null==p||p.markAsDisposed(e)}function f(e,t){null==p||p.setParent(e,t)}function g(e){if(d.is(e)){const t=[];for(const n of e)if(n)try{n.dispose()}catch(e){t.push(e)}if(1===t.length)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function b(e){const t=m({dispose:h((()=>{u(t),e()}))});return t}class v{constructor(){this._toDispose=new Set,this._isDisposed=!1,m(this)}dispose(){this._isDisposed||(u(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{g(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return f(e,this),this._isDisposed?v.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),f(e,null))}}v.DISABLE_DISPOSED_WARNING=!1;class y{constructor(){this._store=new v,m(this),f(this._store,this)}dispose(){u(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}y.None=Object.freeze({dispose(){}}),Symbol.iterator;class w{constructor(e){this.element=e,this.next=w.Undefined,this.prev=w.Undefined}}w.Undefined=new w(void 0);class S{constructor(){this._first=w.Undefined,this._last=w.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===w.Undefined}clear(){let e=this._first;for(;e!==w.Undefined;){const t=e.next;e.prev=w.Undefined,e.next=w.Undefined,e=t}this._first=w.Undefined,this._last=w.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new w(e);if(this._first===w.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(n))}}shift(){if(this._first!==w.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==w.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==w.Undefined&&e.next!==w.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===w.Undefined&&e.next===w.Undefined?(this._first=w.Undefined,this._last=w.Undefined):e.next===w.Undefined?(this._last=this._last.prev,this._last.next=w.Undefined):e.prev===w.Undefined&&(this._first=this._first.next,this._first.prev=w.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==w.Undefined;)yield e.element,e=e.next}}const x=globalThis.performance&&"function"==typeof globalThis.performance.now;class C{static create(e){return new C(e)}constructor(e){this._now=x&&!1===e?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}}var _;!function(e){function t(e){return(t,n=null,i)=>{let r,s=!1;return r=e((e=>{if(!s)return r?r.dispose():s=!0,t.call(n,e)}),null,i),s&&r.dispose(),r}}function n(e,t,n){return r(((n,i=null,r)=>e((e=>n.call(i,t(e))),null,r)),n)}function i(e,t,n){return r(((n,i=null,r)=>e((e=>t(e)&&n.call(i,e)),null,r)),n)}function r(e,t){let n;const i=new D({onWillAddFirstListener(){n=e(i.fire,i)},onDidRemoveLastListener(){null==n||n.dispose()}});return null==t||t.add(i),i.event}function s(e,t,n=100,i=!1,r=!1,s,o){let a,l,c,h,d=0;const p=new D({leakWarningThreshold:s,onWillAddFirstListener(){a=e((e=>{d++,l=t(l,e),i&&!c&&(p.fire(l),l=void 0),h=()=>{const e=l;l=void 0,c=void 0,(!i||d>1)&&p.fire(e),d=0},"number"==typeof n?(clearTimeout(c),c=setTimeout(h,n)):void 0===c&&(c=0,queueMicrotask(h))}))},onWillRemoveListener(){r&&d>0&&(null==h||h())},onDidRemoveLastListener(){h=void 0,a.dispose()}});return null==o||o.add(p),p.event}e.None=()=>y.None,e.defer=function(e,t){return s(e,(()=>{}),0,void 0,!0,void 0,t)},e.once=t,e.map=n,e.forEach=function(e,t,n){return r(((n,i=null,r)=>e((e=>{t(e),n.call(i,e)}),null,r)),n)},e.filter=i,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,i)=>{return r=function(...e){const t=b((()=>g(e)));return function(e,t){if(p)for(const n of e)p.setParent(n,t)}(e,t),t}(...e.map((e=>e((e=>t.call(n,e)))))),(s=i)instanceof Array?s.push(r):s&&s.add(r),r;var r,s}},e.reduce=function(e,t,i,r){let s=i;return n(e,(e=>(s=t(s,e),s)),r)},e.debounce=s,e.accumulate=function(t,n=0,i){return e.debounce(t,((e,t)=>e?(e.push(t),e):[t]),n,void 0,!0,void 0,i)},e.latch=function(e,t=((e,t)=>e===t),n){let r,s=!0;return i(e,(e=>{const n=s||!t(e,r);return s=!1,r=e,n}),n)},e.split=function(t,n,i){return[e.filter(t,n,i),e.filter(t,(e=>!n(e)),i)]},e.buffer=function(e,t=!1,n=[],i){let r=n.slice(),s=e((e=>{r?r.push(e):a.fire(e)}));i&&i.add(s);const o=()=>{null==r||r.forEach((e=>a.fire(e))),r=null},a=new D({onWillAddFirstListener(){s||(s=e((e=>a.fire(e))),i&&i.add(s))},onDidAddFirstListener(){r&&(t?setTimeout(o):o())},onDidRemoveLastListener(){s&&s.dispose(),s=null}});return i&&i.add(a),a.event},e.chain=function(e,t){return(n,i,r)=>{const s=t(new a);return e((function(e){const t=s.evaluate(e);t!==o&&n.call(i,t)}),void 0,r)}};const o=Symbol("HaltChainable");class a{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push((t=>(e(t),t))),this}filter(e){return this.steps.push((t=>e(t)?t:o)),this}reduce(e,t){let n=t;return this.steps.push((t=>(n=e(n,t),n))),this}latch(e=((e,t)=>e===t)){let t,n=!0;return this.steps.push((i=>{const r=n||!e(i,t);return n=!1,t=i,r?i:o})),this}evaluate(e){for(const t of this.steps)if((e=t(e))===o)break;return e}}e.fromNodeEventEmitter=function(e,t,n=(e=>e)){const i=(...e)=>r.fire(n(...e)),r=new D({onWillAddFirstListener:()=>e.on(t,i),onDidRemoveLastListener:()=>e.removeListener(t,i)});return r.event},e.fromDOMEventEmitter=function(e,t,n=(e=>e)){const i=(...e)=>r.fire(n(...e)),r=new D({onWillAddFirstListener:()=>e.addEventListener(t,i),onDidRemoveLastListener:()=>e.removeEventListener(t,i)});return r.event},e.toPromise=function(e){return new Promise((n=>t(e)(n)))},e.fromPromise=function(e){const t=new D;return e.then((e=>{t.fire(e)}),(()=>{t.fire(void 0)})).finally((()=>{t.dispose()})),t.event},e.runAndSubscribe=function(e,t,n){return t(n),e((e=>t(e)))};class l{constructor(e,t){this._observable=e,this._counter=0,this._hasChanged=!1;const n={onWillAddFirstListener:()=>{e.addObserver(this)},onDidRemoveLastListener:()=>{e.removeObserver(this)}};this.emitter=new D(n),t&&t.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new l(e,t).emitter.event},e.fromObservableLight=function(e){return(t,n,i)=>{let r=0,s=!1;const o={beginUpdate(){r++},endUpdate(){r--,0===r&&(e.reportChanges(),s&&(s=!1,t.call(n)))},handlePossibleChange(){},handleChange(){s=!0}};e.addObserver(o),e.reportChanges();const a={dispose(){e.removeObserver(o)}};return i instanceof v?i.add(a):Array.isArray(i)&&i.push(a),a}}}(_||(_={}));class k{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${k._idPool++}`,k.all.add(this)}start(e){this._stopWatch=new C,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}k.all=new Set,k._idPool=0;class E{constructor(e,t,n=(E._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=t,this.name=n,this._warnCountdown=0}dispose(){var e;null===(e=this._stacks)||void 0===e||e.clear()}check(e,t){const n=this.threshold;if(n<=0||t{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[n,i]of this._stacks)(!e||t{var i,s,o,a,l,c,h;if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const e=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(e);const t=null!==(i=this._leakageMon.getMostFrequentStack())&&void 0!==i?i:["UNKNOWN stack",-1],n=new N(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return((null===(s=this._options)||void 0===s?void 0:s.onListenerError)||r)(n),y.None}if(this._disposed)return y.None;t&&(e=e.bind(t));const d=new I(e);let p;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(d.stack=F.create(),p=this._leakageMon.check(d.stack,this._size+1)),this._listeners?this._listeners instanceof I?(null!==(h=this._deliveryQueue)&&void 0!==h||(this._deliveryQueue=new T),this._listeners=[this._listeners,d]):this._listeners.push(d):(null===(a=null===(o=this._options)||void 0===o?void 0:o.onWillAddFirstListener)||void 0===a||a.call(o,this),this._listeners=d,null===(c=null===(l=this._options)||void 0===l?void 0:l.onDidAddFirstListener)||void 0===c||c.call(l,this)),this._size++;const m=b((()=>{null==p||p(),this._removeListener(d)}));return n instanceof v?n.add(m):Array.isArray(n)&&n.push(m),m}),this._event}_removeListener(e){var t,n,i,r;if(null===(n=null===(t=this._options)||void 0===t?void 0:t.onWillRemoveListener)||void 0===n||n.call(t,this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,null===(r=null===(i=this._options)||void 0===i?void 0:i.onDidRemoveLastListener)||void 0===r||r.call(i,this),void(this._size=0);const s=this._listeners,o=s.indexOf(e);if(-1===o)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,s[o]=void 0;const a=this._deliveryQueue.current===this;if(2*this._size<=s.length){let e=0;for(let t=0;t0}}class T{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function M(e){const t=[];for(const n of function(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}(e))"function"==typeof e[n]&&t.push(n);return t}var A,z,L;Object.prototype.hasOwnProperty;const O="en";let P,W,V=!1,U=!1,$=!1,q=!1,K=!1,B=!1,j=!1,H=!1,G=!1,J=!1,X=null,Y=null,Q=null;const Z=globalThis;let ee;void 0!==Z.vscode&&void 0!==Z.vscode.process?ee=Z.vscode.process:"undefined"!=typeof process&&"string"==typeof(null===(A=null===process||void 0===process?void 0:process.versions)||void 0===A?void 0:A.node)&&(ee=process);const te="string"==typeof(null===(z=null==ee?void 0:ee.versions)||void 0===z?void 0:z.electron),ne=te&&"renderer"===(null==ee?void 0:ee.type);if("object"==typeof ee){V="win32"===ee.platform,U="darwin"===ee.platform,$="linux"===ee.platform,q=$&&!!ee.env.SNAP&&!!ee.env.SNAP_REVISION,j=te,G=!!ee.env.CI||!!ee.env.BUILD_ARTIFACTSTAGINGDIRECTORY,P=O,X=O;const e=ee.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);P=t.userLocale,Y=t.osLocale,X=t.resolvedLanguage||O,Q=null===(L=t.languagePack)||void 0===L?void 0:L.translationsConfigFile}catch(e){}K=!0}else"object"!=typeof navigator||ne?console.error("Unable to resolve platform."):(W=navigator.userAgent,V=W.indexOf("Windows")>=0,U=W.indexOf("Macintosh")>=0,(W.indexOf("Macintosh")>=0||W.indexOf("iPad")>=0||W.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,$=W.indexOf("Linux")>=0,(null==W?void 0:W.indexOf("Mobi"))>=0,B=!0,X=globalThis._VSCODE_NLS_LANGUAGE||O,P=navigator.language.toLowerCase(),Y=P);let ie=0;U?ie=1:V?ie=3:$&&(ie=2);const re=V,se=U,oe=(B&&"function"==typeof Z.importScripts&&Z.origin,W),ae="function"==typeof Z.postMessage&&!Z.importScripts;(()=>{if(ae){const e=[];Z.addEventListener("message",(t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,i=e.length;n=0);function ce(e){return e}oe&&oe.indexOf("Firefox"),!le&&oe&&oe.indexOf("Safari"),oe&&oe.indexOf("Edg/"),oe&&oe.indexOf("Android");class he{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var de;function pe(e){return e>=65&&e<=90}function me(e){return 55296<=e&&e<=56319}function ue(e){return 56320<=e&&e<=57343}function fe(e,t){return t-56320+(e-55296<<10)+65536}function ge(e,t,n){const i=e.charCodeAt(n);if(me(i)&&n+1t[3*i+1]))return t[3*i+2];i=2*i+1}return 0}}ve._INSTANCE=null;class ye{static getInstance(e){return de.cache.get(Array.from(e))}static getLocales(){return de._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}de=ye,ye.ambiguousCharacterData=new he((()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'))),ye.cache=new class{constructor(e,t){this.lastCache=void 0,this.lastArgKey=void 0,"function"==typeof e?(this._fn=e,this._computeKey=ce):(this._fn=t,this._computeKey=e.getCacheKey)}get(e){const t=this._computeKey(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this._fn(e)),this.lastCache}}({getCacheKey:JSON.stringify},(e=>{function t(e){const t=new Map;for(let n=0;n!e.startsWith("_")&&e in i));0===s.length&&(s=["_default"]);for(const e of s)r=n(r,t(i[e]));const o=function(e,t){const n=new Map(e);for(const[e,i]of t)n.set(e,i);return n}(t(i._common),r);return new de(o)})),ye._locales=new he((()=>Object.keys(de.ambiguousCharacterData.value).filter((e=>!e.startsWith("_")))));class we{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(we.getRawData())),this._data}static isInvisibleCharacter(e){return we.getData().has(e)}static get codePoints(){return we.getData()}}we._data=void 0;let Se;class xe{constructor(e,t,n,i){this.vsWorker=e,this.req=t,this.method=n,this.args=i,this.type=0}}class Ce{constructor(e,t,n,i){this.vsWorker=e,this.seq=t,this.res=n,this.err=i,this.type=1}}class _e{constructor(e,t,n,i){this.vsWorker=e,this.req=t,this.eventName=n,this.arg=i,this.type=2}}class ke{constructor(e,t,n){this.vsWorker=e,this.req=t,this.event=n,this.type=3}}class Ee{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class Fe{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){const n=String(++this._lastSentReq);return new Promise(((i,r)=>{this._pendingReplies[n]={resolve:i,reject:r},this._send(new xe(this._workerId,n,e,t))}))}listen(e,t){let n=null;const i=new D({onWillAddFirstListener:()=>{n=String(++this._lastSentReq),this._pendingEmitters.set(n,i),this._send(new _e(this._workerId,n,e,t))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(n),this._send(new Ee(this._workerId,n)),n=null}});return i.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;return e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),void t.reject(n)}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.method,e.args).then((e=>{this._send(new Ce(this._workerId,t,e,void 0))}),(e=>{e.detail instanceof Error&&(e.detail=s(e.detail)),this._send(new Ce(this._workerId,t,void 0,s(e)))}))}_handleSubscribeEventMessage(e){const t=e.req,n=this._handler.handleEvent(e.eventName,e.arg)((e=>{this._send(new ke(this._workerId,t,e))}));this._pendingEvents.set(t,n)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){const t=[];if(0===e.type)for(let n=0;n{e(t,n)},handleMessage:(e,t)=>this._handleMessage(e,t),handleEvent:(e,t)=>this._handleEvent(e,t)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,t){if("$initialize"===e)return this.initialize(t[0],t[1],t[2],t[3]);if(!this._requestHandler||"function"!=typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,t))}catch(e){return Promise.reject(e)}}_handleEvent(e,t){if(!this._requestHandler)throw new Error("Missing requestHandler");if(Ne(e)){const n=this._requestHandler[e].call(this._requestHandler,t);if("function"!=typeof n)throw new Error(`Missing dynamic event ${e} on request handler.`);return n}if(Re(e)){const t=this._requestHandler[e];if("function"!=typeof t)throw new Error(`Missing event ${e} on request handler.`);return t}throw new Error(`Malformed event name ${e}`)}initialize(e,t,n,i){this._protocol.setWorkerId(e);const r=function(e,t,n){const i=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},r=e=>function(t){return n(e,t)},s={};for(const t of e)Ne(t)?s[t]=r(t):Re(t)?s[t]=n(t,void 0):s[t]=i(t);return s}(i,((e,t)=>this._protocol.sendMessage(e,t)),((e,t)=>this._protocol.listen(e,t)));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(r),Promise.resolve(M(this._requestHandler))):(t&&(void 0!==t.baseUrl&&delete t.baseUrl,void 0!==t.paths&&void 0!==t.paths.vs&&delete t.paths.vs,void 0!==t.trustedTypesPolicy&&delete t.trustedTypesPolicy,t.catchError=!0,globalThis.require.config(t)),new Promise(((e,t)=>{(0,globalThis.require)([n],(n=>{this._requestHandler=n.create(r),this._requestHandler?e(M(this._requestHandler)):t(new Error("No RequestHandler!"))}),t)})))}}class De{constructor(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function Te(e,t){return(t<<5)-t+e|0}function Me(e,t){t=Te(149417,t);for(let n=0,i=e.length;n>>i)>>>0}function ze(e,t=0,n=e.byteLength,i=0){for(let r=0;re.toString(16).padStart(2,"0"))).join(""):function(e,t,n="0"){for(;e.length>>0).toString(16),t/4)}class Oe{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let i,r,s=this._buffLen,o=this._leftoverHighSurrogate;for(0!==o?(i=o,r=-1,o=0):(i=e.charCodeAt(0),r=0);;){let a=i;if(me(i)){if(!(r+1>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Le(this._h0)+Le(this._h1)+Le(this._h2)+Le(this._h3)+Le(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,ze(this._buff,this._buffLen),this._buffLen>56&&(this._step(),ze(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=Oe._bigBlock32,t=this._buffDV;for(let n=0;n<64;n+=4)e.setUint32(n,t.getUint32(n,!1),!1);for(let t=64;t<320;t+=4)e.setUint32(t,Ae(e.getUint32(t-12,!1)^e.getUint32(t-32,!1)^e.getUint32(t-56,!1)^e.getUint32(t-64,!1),1),!1);let n,i,r,s=this._h0,o=this._h1,a=this._h2,l=this._h3,c=this._h4;for(let t=0;t<80;t++)t<20?(n=o&a|~o&l,i=1518500249):t<40?(n=o^a^l,i=1859775393):t<60?(n=o&a|o&l|a&l,i=2400959708):(n=o^a^l,i=3395469782),r=Ae(s,5)+n+c+i+e.getUint32(4*t,!1)&4294967295,c=l,l=a,a=Ae(o,30),o=s,s=r;this._h0=this._h0+s&4294967295,this._h1=this._h1+o&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+l&4294967295,this._h4=this._h4+c&4294967295}}Oe._bigBlock32=new DataView(new ArrayBuffer(320));class Pe{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,i=e.length;n0||this.m_modifiedCount>0)&&this.m_changes.push(new De(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class qe{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[i,r,s]=qe._getElements(e),[o,a,l]=qe._getElements(t);this._hasStrings=s&&l,this._originalStringElements=i,this._originalElementsOrHash=r,this._modifiedStringElements=o,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"==typeof e[0]}static _getElements(e){const t=e.getElements();if(qe._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,i=t.length;n=e&&i>=n&&this.ElementsAreEqual(t,i);)t--,i--;if(e>t||n>i){let r;return n<=i?(Ve.Assert(e===t+1,"originalStart should only be one more than originalEnd"),r=[new De(e,0,n,i-n+1)]):e<=t?(Ve.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),r=[new De(e,t-e+1,n,0)]):(Ve.Assert(e===t+1,"originalStart should only be one more than originalEnd"),Ve.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),r=[]),r}const s=[0],o=[0],a=this.ComputeRecursionPoint(e,t,n,i,s,o,r),l=s[0],c=o[0];if(null!==a)return a;if(!r[0]){const s=this.ComputeDiffRecursive(e,l,n,c,r);let o=[];return o=r[0]?[new De(l+1,t-(l+1)+1,c+1,i-(c+1)+1)]:this.ComputeDiffRecursive(l+1,t,c+1,i,r),this.ConcatenateChanges(s,o)}return[new De(e,t-e+1,n,i-n+1)]}WALKTRACE(e,t,n,i,r,s,o,a,l,c,h,d,p,m,u,f,g,b){let v=null,y=null,w=new $e,S=t,x=n,C=p[0]-f[0]-i,_=-1073741824,k=this.m_forwardHistory.length-1;do{const t=C+e;t===S||t=0&&(e=(l=this.m_forwardHistory[k])[0],S=1,x=l.length-1)}while(--k>=-1);if(v=w.getReverseChanges(),b[0]){let e=p[0]+1,t=f[0]+1;if(null!==v&&v.length>0){const n=v[v.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}y=[new De(e,d-e+1,t,u-t+1)]}else{w=new $e,S=s,x=o,C=p[0]-f[0]-a,_=1073741824,k=g?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=C+r;e===S||e=c[e+1]?(m=(h=c[e+1]-1)-C-a,h>_&&w.MarkNextChange(),_=h+1,w.AddOriginalElement(h+1,m+1),C=e+1-r):(m=(h=c[e-1])-C-a,h>_&&w.MarkNextChange(),_=h,w.AddModifiedElement(h+1,m+1),C=e-1-r),k>=0&&(r=(c=this.m_reverseHistory[k])[0],S=1,x=c.length-1)}while(--k>=-1);y=w.getChanges()}return this.ConcatenateChanges(v,y)}ComputeRecursionPoint(e,t,n,i,r,s,o){let a=0,l=0,c=0,h=0,d=0,p=0;e--,n--,r[0]=0,s[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=t-e+(i-n),u=m+1,f=new Int32Array(u),g=new Int32Array(u),b=i-n,v=t-e,y=e-n,w=t-i,S=(v-b)%2==0;f[b]=e,g[v]=t,o[0]=!1;for(let x=1;x<=m/2+1;x++){let m=0,C=0;c=this.ClipDiagonalBound(b-x,x,b,u),h=this.ClipDiagonalBound(b+x,x,b,u);for(let e=c;e<=h;e+=2){a=e===c||em+C&&(m=a,C=l),!S&&Math.abs(e-v)<=x-1&&a>=g[e])return r[0]=a,s[0]=l,n<=g[e]&&x<=1448?this.WALKTRACE(b,c,h,y,v,d,p,w,f,g,a,t,r,l,i,s,S,o):null}const _=(m-e+(C-n)-x)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(m,_))return o[0]=!0,r[0]=m,s[0]=C,_>0&&x<=1448?this.WALKTRACE(b,c,h,y,v,d,p,w,f,g,a,t,r,l,i,s,S,o):(e++,n++,[new De(e,t-e+1,n,i-n+1)]);d=this.ClipDiagonalBound(v-x,x,v,u),p=this.ClipDiagonalBound(v+x,x,v,u);for(let m=d;m<=p;m+=2){a=m===d||m=g[m+1]?g[m+1]-1:g[m-1],l=a-(m-v)-w;const u=a;for(;a>e&&l>n&&this.ElementsAreEqual(a,l);)a--,l--;if(g[m]=a,S&&Math.abs(m-b)<=x&&a<=f[m])return r[0]=a,s[0]=l,u>=f[m]&&x<=1448?this.WALKTRACE(b,c,h,y,v,d,p,w,f,g,a,t,r,l,i,s,S,o):null}if(x<=1447){let e=new Int32Array(h-c+2);e[0]=b-c+1,Ue.Copy2(f,c,e,1,h-c+1),this.m_forwardHistory.push(e),e=new Int32Array(p-d+2),e[0]=v-d+1,Ue.Copy2(g,d,e,1,p-d+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(b,c,h,y,v,d,p,w,f,g,a,t,r,l,i,s,S,o)}PrettifyChanges(e){for(let t=0;t0,o=n.modifiedLength>0;for(;n.originalStart+n.originalLength=0;t--){const n=e[t];let i=0,r=0;if(t>0){const n=e[t-1];i=n.originalStart+n.originalLength,r=n.modifiedStart+n.modifiedLength}const s=n.originalLength>0,o=n.modifiedLength>0;let a=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,c=n.modifiedStart-e;if(tl&&(l=h,a=e)}n.originalStart-=a,n.modifiedStart-=a;const c=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],c)&&(e[t-1]=c[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t0&&n>a&&(a=n,l=t,c=e)}return a>0?[l,c]:null}_contiguousSequenceScore(e,t,n){let i=0;for(let r=0;r=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,i){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,i)?1:0)}ConcatenateChanges(e,t){const n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const i=new Array(e.length+t.length-1);return Ue.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],Ue.Copy(t,1,i,e.length,t.length-1),i}{const n=new Array(e.length+t.length);return Ue.Copy(e,0,n,0,e.length),Ue.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(Ve.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),Ve.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const i=e.originalStart;let r=e.originalLength;const s=e.modifiedStart;let o=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(o=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new De(i,r,s,o),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,i){if(e>=0&&ee.cwd()}}else Se="undefined"!=typeof process?{get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd:()=>process.env.VSCODE_CWD||process.cwd()}:{get platform(){return re?"win32":se?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const Be=Se.cwd,je=Se.env,He=Se.platform,Ge=46,Je=47,Xe=92,Ye=58;class Qe extends Error{constructor(e,t,n){let i;"string"==typeof t&&0===t.indexOf("not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";const r=-1!==e.indexOf(".")?"property":"argument";let s=`The "${e}" ${r} ${i} of type ${t}`;s+=". Received type "+typeof n,super(s),this.code="ERR_INVALID_ARG_TYPE"}}function Ze(e,t){if("string"!=typeof e)throw new Qe(t,"string",e)}const et="win32"===He;function tt(e){return e===Je||e===Xe}function nt(e){return e===Je}function it(e){return e>=65&&e<=90||e>=97&&e<=122}function rt(e,t,n,i){let r="",s=0,o=-1,a=0,l=0;for(let c=0;c<=e.length;++c){if(c2){const e=r.lastIndexOf(n);-1===e?(r="",s=0):(r=r.slice(0,e),s=r.length-1-r.lastIndexOf(n)),o=c,a=0;continue}if(0!==r.length){r="",s=0,o=c,a=0;continue}}t&&(r+=r.length>0?`${n}..`:"..",s=2)}else r.length>0?r+=`${n}${e.slice(o+1,c)}`:r=e.slice(o+1,c),s=c-o-1;o=c,a=0}else l===Ge&&-1!==a?++a:a=-1}return r}function st(e,t){!function(e,t){if(null===e||"object"!=typeof e)throw new Qe("pathObject","Object",e)}(t);const n=t.dir||t.root,i=t.base||`${t.name||""}${r=t.ext,r?`${"."===r[0]?"":"."}${r}`:""}`;var r;return n?n===t.root?`${n}${i}`:`${n}${e}${i}`:i}const ot={resolve(...e){let t="",n="",i=!1;for(let r=e.length-1;r>=-1;r--){let s;if(r>=0){if(s=e[r],Ze(s,`paths[${r}]`),0===s.length)continue}else 0===t.length?s=Be():(s=je[`=${t}`]||Be(),(void 0===s||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===Xe)&&(s=`${t}\\`));const o=s.length;let a=0,l="",c=!1;const h=s.charCodeAt(0);if(1===o)tt(h)&&(a=1,c=!0);else if(tt(h))if(c=!0,tt(s.charCodeAt(1))){let e=2,t=e;for(;e2&&tt(s.charCodeAt(2))&&(c=!0,a=3));if(l.length>0)if(t.length>0){if(l.toLowerCase()!==t.toLowerCase())continue}else t=l;if(i){if(t.length>0)break}else if(n=`${s.slice(a)}\\${n}`,i=c,c&&t.length>0)break}return n=rt(n,!i,"\\",tt),i?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){Ze(e,"path");const t=e.length;if(0===t)return".";let n,i=0,r=!1;const s=e.charCodeAt(0);if(1===t)return nt(s)?"\\":e;if(tt(s))if(r=!0,tt(e.charCodeAt(1))){let r=2,s=r;for(;r2&&tt(e.charCodeAt(2))&&(r=!0,i=3));let o=i0&&tt(e.charCodeAt(t-1))&&(o+="\\"),void 0===n?r?`\\${o}`:o:r?`${n}\\${o}`:`${n}${o}`},isAbsolute(e){Ze(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return tt(n)||t>2&&it(n)&&e.charCodeAt(1)===Ye&&tt(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let i=0;i0&&(void 0===t?t=n=r:t+=`\\${r}`)}if(void 0===t)return".";let i=!0,r=0;if("string"==typeof n&&tt(n.charCodeAt(0))){++r;const e=n.length;e>1&&tt(n.charCodeAt(1))&&(++r,e>2&&(tt(n.charCodeAt(2))?++r:i=!1))}if(i){for(;r=2&&(t=`\\${t.slice(r)}`)}return ot.normalize(t)},relative(e,t){if(Ze(e,"from"),Ze(t,"to"),e===t)return"";const n=ot.resolve(e),i=ot.resolve(t);if(n===i)return"";if((e=n.toLowerCase())===(t=i.toLowerCase()))return"";let r=0;for(;rr&&e.charCodeAt(s-1)===Xe;)s--;const o=s-r;let a=0;for(;aa&&t.charCodeAt(l-1)===Xe;)l--;const c=l-a,h=oh){if(t.charCodeAt(a+p)===Xe)return i.slice(a+p+1);if(2===p)return i.slice(a+p)}o>h&&(e.charCodeAt(r+p)===Xe?d=p:2===p&&(d=3)),-1===d&&(d=0)}let m="";for(p=r+d+1;p<=s;++p)p!==s&&e.charCodeAt(p)!==Xe||(m+=0===m.length?"..":"\\..");return a+=d,m.length>0?`${m}${i.slice(a,l)}`:(i.charCodeAt(a)===Xe&&++a,i.slice(a,l))},toNamespacedPath(e){if("string"!=typeof e||0===e.length)return e;const t=ot.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===Xe){if(t.charCodeAt(1)===Xe){const e=t.charCodeAt(2);if(63!==e&&e!==Ge)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(it(t.charCodeAt(0))&&t.charCodeAt(1)===Ye&&t.charCodeAt(2)===Xe)return`\\\\?\\${t}`;return e},dirname(e){Ze(e,"path");const t=e.length;if(0===t)return".";let n=-1,i=0;const r=e.charCodeAt(0);if(1===t)return tt(r)?e:".";if(tt(r)){if(n=i=1,tt(e.charCodeAt(1))){let r=2,s=r;for(;r2&&tt(e.charCodeAt(2))?3:2,i=n);let s=-1,o=!0;for(let n=t-1;n>=i;--n)if(tt(e.charCodeAt(n))){if(!o){s=n;break}}else o=!1;if(-1===s){if(-1===n)return".";s=n}return e.slice(0,s)},basename(e,t){void 0!==t&&Ze(t,"suffix"),Ze(e,"path");let n,i=0,r=-1,s=!0;if(e.length>=2&&it(e.charCodeAt(0))&&e.charCodeAt(1)===Ye&&(i=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=i;--n){const l=e.charCodeAt(n);if(tt(l)){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1==--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=i;--n)if(tt(e.charCodeAt(n))){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){Ze(e,"path");let t=0,n=-1,i=0,r=-1,s=!0,o=0;e.length>=2&&e.charCodeAt(1)===Ye&&it(e.charCodeAt(0))&&(t=i=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(tt(t)){if(!s){i=a+1;break}}else-1===r&&(s=!1,r=a+1),t===Ge?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1)}return-1===n||-1===r||0===o||1===o&&n===r-1&&n===i+1?"":e.slice(n,r)},format:st.bind(null,"\\"),parse(e){Ze(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let i=0,r=e.charCodeAt(0);if(1===n)return tt(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(tt(r)){if(i=1,tt(e.charCodeAt(1))){let t=2,r=t;for(;t0&&(t.root=e.slice(0,i));let s=-1,o=i,a=-1,l=!0,c=e.length-1,h=0;for(;c>=i;--c)if(r=e.charCodeAt(c),tt(r)){if(!l){o=c+1;break}}else-1===a&&(l=!1,a=c+1),r===Ge?-1===s?s=c:1!==h&&(h=1):-1!==s&&(h=-1);return-1!==a&&(-1===s||0===h||1===h&&s===a-1&&s===o+1?t.base=t.name=e.slice(o,a):(t.name=e.slice(o,s),t.base=e.slice(o,a),t.ext=e.slice(s,a))),t.dir=o>0&&o!==i?e.slice(0,o-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},at=(()=>{if(et){const e=/\\/g;return()=>{const t=Be().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>Be()})(),lt={resolve(...e){let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const r=i>=0?e[i]:at();Ze(r,`paths[${i}]`),0!==r.length&&(t=`${r}/${t}`,n=r.charCodeAt(0)===Je)}return t=rt(t,!n,"/",nt),n?`/${t}`:t.length>0?t:"."},normalize(e){if(Ze(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===Je,n=e.charCodeAt(e.length-1)===Je;return 0===(e=rt(e,!t,"/",nt)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(Ze(e,"path"),e.length>0&&e.charCodeAt(0)===Je),join(...e){if(0===e.length)return".";let t;for(let n=0;n0&&(void 0===t?t=i:t+=`/${i}`)}return void 0===t?".":lt.normalize(t)},relative(e,t){if(Ze(e,"from"),Ze(t,"to"),e===t)return"";if((e=lt.resolve(e))===(t=lt.resolve(t)))return"";const n=e.length,i=n-1,r=t.length-1,s=is){if(t.charCodeAt(1+a)===Je)return t.slice(1+a+1);if(0===a)return t.slice(1+a)}else i>s&&(e.charCodeAt(1+a)===Je?o=a:0===a&&(o=0));let l="";for(a=1+o+1;a<=n;++a)a!==n&&e.charCodeAt(a)!==Je||(l+=0===l.length?"..":"/..");return`${l}${t.slice(1+o)}`},toNamespacedPath:e=>e,dirname(e){if(Ze(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===Je;let n=-1,i=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===Je){if(!i){n=t;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&Ze(t,"ext"),Ze(e,"path");let n,i=0,r=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let o=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===Je){if(!s){i=n+1;break}}else-1===a&&(s=!1,a=n+1),o>=0&&(l===t.charCodeAt(o)?-1==--o&&(r=n):(o=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===Je){if(!s){i=n+1;break}}else-1===r&&(s=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){Ze(e,"path");let t=-1,n=0,i=-1,r=!0,s=0;for(let o=e.length-1;o>=0;--o){const a=e.charCodeAt(o);if(a!==Je)-1===i&&(r=!1,i=o+1),a===Ge?-1===t?t=o:1!==s&&(s=1):-1!==t&&(s=-1);else if(!r){n=o+1;break}}return-1===t||-1===i||0===s||1===s&&t===i-1&&t===n+1?"":e.slice(t,i)},format:st.bind(null,"/"),parse(e){Ze(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===Je;let i;n?(t.root="/",i=1):i=0;let r=-1,s=0,o=-1,a=!0,l=e.length-1,c=0;for(;l>=i;--l){const t=e.charCodeAt(l);if(t!==Je)-1===o&&(a=!1,o=l+1),t===Ge?-1===r?r=l:1!==c&&(c=1):-1!==r&&(c=-1);else if(!a){s=l+1;break}}if(-1!==o){const i=0===s&&n?1:s;-1===r||0===c||1===c&&r===o-1&&r===s+1?t.base=t.name=e.slice(i,o):(t.name=e.slice(i,r),t.base=e.slice(i,o),t.ext=e.slice(r,o))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};lt.win32=ot.win32=ot,lt.posix=ot.posix=lt,et?ot.normalize:lt.normalize,et?ot.resolve:lt.resolve,et?ot.relative:lt.relative,et?ot.dirname:lt.dirname,et?ot.basename:lt.basename,et?ot.extname:lt.extname,et?ot.sep:lt.sep;const ct=/^\w[\w\d+.-]*$/,ht=/^\//,dt=/^\/\//,pt="",mt="/",ut=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class ft{static isUri(e){return e instanceof ft||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}constructor(e,t,n,i,r,s=!1){"object"==typeof e?(this.scheme=e.scheme||pt,this.authority=e.authority||pt,this.path=e.path||pt,this.query=e.query||pt,this.fragment=e.fragment||pt):(this.scheme=function(e,t){return e||t?e:"file"}(e,s),this.authority=t||pt,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==mt&&(t=mt+t):t=mt}return t}(this.scheme,n||pt),this.query=i||pt,this.fragment=r||pt,function(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!ct.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!ht.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(dt.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,s))}get fsPath(){return St(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=pt),void 0===n?n=this.authority:null===n&&(n=pt),void 0===i?i=this.path:null===i&&(i=pt),void 0===r?r=this.query:null===r&&(r=pt),void 0===s?s=this.fragment:null===s&&(s=pt),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&s===this.fragment?this:new bt(t,n,i,r,s)}static parse(e,t=!1){const n=ut.exec(e);return n?new bt(n[2]||pt,kt(n[4]||pt),kt(n[5]||pt),kt(n[7]||pt),kt(n[9]||pt),t):new bt(pt,pt,pt,pt,pt)}static file(e){let t=pt;if(re&&(e=e.replace(/\\/g,mt)),e[0]===mt&&e[1]===mt){const n=e.indexOf(mt,2);-1===n?(t=e.substring(2),e=mt):(t=e.substring(2,n),e=e.substring(n)||mt)}return new bt("file",t,e,pt,pt)}static from(e,t){return new bt(e.scheme,e.authority,e.path,e.query,e.fragment,t)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=re&&"file"===e.scheme?ft.file(ot.join(St(e,!0),...t)).path:lt.join(e.path,...t),e.with({path:n})}toString(e=!1){return xt(this,e)}toJSON(){return this}static revive(e){var t,n;if(e){if(e instanceof ft)return e;{const i=new bt(e);return i._formatted=null!==(t=e.external)&&void 0!==t?t:null,i._fsPath=e._sep===gt&&null!==(n=e.fsPath)&&void 0!==n?n:null,i}}return e}}const gt=re?1:void 0;class bt extends ft{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=St(this,!1)),this._fsPath}toString(e=!1){return e?xt(this,!0):(this._formatted||(this._formatted=xt(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=gt),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const vt={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function yt(e,t,n){let i,r=-1;for(let s=0;s=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),void 0!==i&&(i+=e.charAt(s));else{void 0===i&&(i=e.substr(0,s));const t=vt[o];void 0!==t?(-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),i+=t):-1===r&&(r=s)}}return-1!==r&&(i+=encodeURIComponent(e.substring(r))),void 0!==i?i:e}function wt(e){let t;for(let n=0;n1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,re&&(n=n.replace(/\//g,"\\")),n}function xt(e,t){const n=t?wt:yt;let i="",{scheme:r,authority:s,path:o,query:a,fragment:l}=e;if(r&&(i+=r,i+=":"),(s||"file"===r)&&(i+=mt,i+=mt),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?i+=n(t,!1,!1):(i+=n(t.substr(0,e),!1,!1),i+=":",i+=n(t.substr(e+1),!1,!0)),i+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?i+=n(s,!1,!0):(i+=n(s.substr(0,e),!1,!0),i+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}i+=n(o,!0,!1)}return a&&(i+="?",i+=n(a,!1,!1)),l&&(i+="#",i+=t?l:yt(l,!1,!1)),i}function Ct(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+Ct(e.substr(3)):e}}const _t=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function kt(e){return e.match(_t)?e.replace(_t,(e=>Ct(e))):e}class Et{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new Et(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return Et.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return Et.isBefore(this,e)}static isBefore(e,t){return e.lineNumbern||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}isEmpty(){return Ft.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return Ft.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.columne.endColumn)}static strictContainsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<=e.startColumn||t.lineNumber===e.endLineNumber&&t.column>=e.endColumn)}containsRange(e){return Ft.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)}strictContainsRange(e){return Ft.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(e){return Ft.plusRange(this,e)}static plusRange(e,t){let n,i,r,s;return t.startLineNumbere.endLineNumber?(r=t.endLineNumber,s=t.endColumn):t.endLineNumber===e.endLineNumber?(r=t.endLineNumber,s=Math.max(t.endColumn,e.endColumn)):(r=e.endLineNumber,s=e.endColumn),new Ft(n,i,r,s)}intersectRanges(e){return Ft.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,s=e.endColumn;const o=t.startLineNumber,a=t.startColumn,l=t.endLineNumber,c=t.endColumn;return nl?(r=l,s=c):r===l&&(s=Math.min(s,c)),n>r||n===r&&i>s?null:new Ft(n,i,r,s)}equalsRange(e){return Ft.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t||!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return Ft.getEndPosition(this)}static getEndPosition(e){return new Et(e.endLineNumber,e.endColumn)}getStartPosition(){return Ft.getStartPosition(this)}static getStartPosition(e){return new Et(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new Ft(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new Ft(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return Ft.collapseToStart(this)}static collapseToStart(e){return new Ft(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return Ft.collapseToEnd(this)}static collapseToEnd(e){return new Ft(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new Ft(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new Ft(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new Ft(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}}var Rt;function Nt(e,t){return(n,i)=>t(e(n),e(i))}!function(e){e.isLessThan=function(e){return e<0},e.isLessThanOrEqual=function(e){return e<=0},e.isGreaterThan=function(e){return e>0},e.isNeitherLessOrGreaterThan=function(e){return 0===e},e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0}(Rt||(Rt={}));const It=(e,t)=>e-t;class Dt{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate((t=>(e.push(t),!0))),e}filter(e){return new Dt((t=>this.iterate((n=>!e(n)||t(n)))))}map(e){return new Dt((t=>this.iterate((n=>t(e(n))))))}findLast(e){let t;return this.iterate((n=>(e(n)&&(t=n),!0))),t}findLastMaxBy(e){let t,n=!0;return this.iterate((i=>((n||Rt.isGreaterThan(e(i,t)))&&(n=!1,t=i),!0))),t}}function Tt(e){return e<0?0:e>255?255:0|e}function Mt(e){return e<0?0:e>4294967295?4294967295:0|e}Dt.empty=new Dt((e=>{}));class At{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=Mt(e);const n=this.values,i=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(n.length+r),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+r),this.values.set(t,e),e-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=Mt(e),t=Mt(t),this.values[e]!==t&&(this.values[e]=t,e-1=n.length)return!1;const r=n.length-e;return t>=r&&(t=r),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=Mt(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,i=0,r=0,s=0;for(;t<=n;)if(i=t+(n-t)/2|0,r=this.prefixSum[i],s=r-this.values[i],e=r))break;t=i+1}return new zt(i,e-s)}}class zt{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class Lt{constructor(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const e of t)this._acceptDeleteRange(e.range),this._acceptInsertText(new Et(e.range.startLineNumber,e.range.startColumn),e.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let i=0;i/?")e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}();function Pt(e){let t=Ot;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const Wt=new S;function Vt(e,t,n,i,r){if(t=Pt(t),r||(r=d.first(Wt)),n.length>r.maxLen){let s=e-r.maxLen/2;return s<0?s=0:i+=s,Vt(e,t,n=n.substring(s,e+r.maxLen/2),i,r)}const s=Date.now(),o=e-1-i;let a=-1,l=null;for(let e=1;!(Date.now()-s>=r.timeBudget);e++){const i=o-r.windowSize*e;t.lastIndex=Math.max(0,i);const s=Ut(t,n,o,a);if(!s&&l)break;if(l=s,i<=0)break;a=i}if(l){const e={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return t.lastIndex=0,e}return null}function Ut(e,t,n,i){let r;for(;r=e.exec(t);){const t=r.index||0;if(t<=n&&e.lastIndex>=n)return r;if(i>0&&t>i)return null}return null}Wt.unshift({maxLen:1e3,windowSize:15,timeBudget:150});class $t{constructor(e){const t=Tt(e);this._defaultValue=t,this._asciiMap=$t._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){const t=new Uint8Array(256);return t.fill(e),t}set(e,t){const n=Tt(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class qt{constructor(e,t,n){const i=new Uint8Array(e*t);for(let r=0,s=e*t;rt&&(t=s),r>n&&(n=r),o>n&&(n=o)}t++,n++;const i=new qt(n,t,0);for(let t=0,n=e.length;t=this._maxCharCode?0:this._states.get(e,t)}}let Bt=null,jt=null;class Ht{static _createLink(e,t,n,i,r){let s=r-1;do{const n=t.charCodeAt(s);if(2!==e.get(n))break;s--}while(s>i);if(i>0){const e=t.charCodeAt(i-1),n=t.charCodeAt(s);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&s--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:s+2},url:t.substring(i,s+1)}}static computeLinks(e,t=function(){return null===Bt&&(Bt=new Kt([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Bt}()){const n=function(){if(null===jt){jt=new $t(0);const e=" \t<>'\"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…";for(let t=0;t=0?(i+=n?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null}}Gt.INSTANCE=new Gt;const Jt=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var Xt;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||t instanceof Yt||!(!t||"object"!=typeof t)&&"boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:_.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Jt})}(Xt||(Xt={}));class Yt{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?Jt:(this._emitter||(this._emitter=new D),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class Qt{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const Zt=new Qt,en=new Qt,tn=new Qt,nn=new Array(230),rn={},sn=[],on=Object.create(null),an=Object.create(null),ln=[],cn=[];for(let e=0;e<=193;e++)ln[e]=-1;for(let e=0;e<=132;e++)cn[e]=-1;var hn;!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],i=[];for(const e of t){const[t,r,s,o,a,l,c,h,d]=e;if(i[r]||(i[r]=!0,sn[r]=s,on[s]=r,an[s.toLowerCase()]=r,t&&(ln[r]=o,0!==o&&3!==o&&5!==o&&4!==o&&6!==o&&57!==o&&(cn[o]=r))),!n[o]){if(n[o]=!0,!a)throw new Error(`String representation missing for key code ${o} around scan code ${s}`);Zt.define(o,a),en.define(o,h||a),tn.define(o,d||h||a)}l&&(nn[l]=o),c&&(rn[c]=o)}cn[3]=46}(),function(e){e.toString=function(e){return Zt.keyCodeToStr(e)},e.fromString=function(e){return Zt.strToKeyCode(e)},e.toUserSettingsUS=function(e){return en.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return tn.keyCodeToStr(e)},e.fromUserSettings=function(e){return en.strToKeyCode(e)||tn.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Zt.keyCodeToStr(e)}}(hn||(hn={}));class dn extends Ft{constructor(e,t,n,i){super(e,t,n,i),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return dn.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new dn(this.startLineNumber,this.startColumn,e,t):new dn(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new Et(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Et(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new dn(e,t,this.endLineNumber,this.endColumn):new dn(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new dn(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new dn(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new dn(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new dn(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,i=e.length;n=0;function bn(e,t,...n){return function(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,((e,n)=>{const i=n[0],r=t[i];let s=e;return"string"==typeof r?s=r:"number"!=typeof r&&"boolean"!=typeof r&&null!=r||(s=String(r)),s})),gn&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}("number"==typeof e?function(e,t){var n;const i=null===(n=globalThis._VSCODE_NLS_MESSAGES)||void 0===n?void 0:n[e];if("string"!=typeof i){if("string"==typeof t)return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return i}(e,t):t,n)}var vn,yn,wn,Sn,xn,Cn,_n,kn,En,Fn,Rn,Nn,In,Dn,Tn,Mn,An,zn,Ln,On,Pn,Wn,Vn,Un,$n,qn,Kn,Bn,jn,Hn,Gn,Jn,Xn,Yn,Qn,Zn,ei,ti,ni,ii,ri,si,oi,ai,li,ci,hi,di,pi,mi,ui,fi,gi,bi,vi,yi,wi,Si,xi,Ci,_i,ki,Ei;!function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(vn||(vn={})),function(e){const t=new Map;t.set(0,un.symbolMethod),t.set(1,un.symbolFunction),t.set(2,un.symbolConstructor),t.set(3,un.symbolField),t.set(4,un.symbolVariable),t.set(5,un.symbolClass),t.set(6,un.symbolStruct),t.set(7,un.symbolInterface),t.set(8,un.symbolModule),t.set(9,un.symbolProperty),t.set(10,un.symbolEvent),t.set(11,un.symbolOperator),t.set(12,un.symbolUnit),t.set(13,un.symbolValue),t.set(15,un.symbolEnum),t.set(14,un.symbolConstant),t.set(15,un.symbolEnum),t.set(16,un.symbolEnumMember),t.set(17,un.symbolKeyword),t.set(27,un.symbolSnippet),t.set(18,un.symbolText),t.set(19,un.symbolColor),t.set(20,un.symbolFile),t.set(21,un.symbolReference),t.set(22,un.symbolCustomColor),t.set(23,un.symbolFolder),t.set(24,un.symbolTypeParameter),t.set(25,un.account),t.set(26,un.issues),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for CompletionItemKind "+e),n=un.symbolProperty),n};const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),e.fromString=function(e,t){let i=n.get(e);return void 0!==i||t||(i=9),i}}(yn||(yn={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(wn||(wn={})),function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(Sn||(Sn={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(xn||(xn={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(Cn||(Cn={})),bn("Array","array"),bn("Boolean","boolean"),bn("Class","class"),bn("Constant","constant"),bn("Constructor","constructor"),bn("Enum","enumeration"),bn("EnumMember","enumeration member"),bn("Event","event"),bn("Field","field"),bn("File","file"),bn("Function","function"),bn("Interface","interface"),bn("Key","key"),bn("Method","method"),bn("Module","module"),bn("Namespace","namespace"),bn("Null","null"),bn("Number","number"),bn("Object","object"),bn("Operator","operator"),bn("Package","package"),bn("Property","property"),bn("String","string"),bn("Struct","struct"),bn("TypeParameter","type parameter"),bn("Variable","variable"),function(e){const t=new Map;t.set(0,un.symbolFile),t.set(1,un.symbolModule),t.set(2,un.symbolNamespace),t.set(3,un.symbolPackage),t.set(4,un.symbolClass),t.set(5,un.symbolMethod),t.set(6,un.symbolProperty),t.set(7,un.symbolField),t.set(8,un.symbolConstructor),t.set(9,un.symbolEnum),t.set(10,un.symbolInterface),t.set(11,un.symbolFunction),t.set(12,un.symbolVariable),t.set(13,un.symbolConstant),t.set(14,un.symbolString),t.set(15,un.symbolNumber),t.set(16,un.symbolBoolean),t.set(17,un.symbolArray),t.set(18,un.symbolObject),t.set(19,un.symbolKey),t.set(20,un.symbolNull),t.set(21,un.symbolEnumMember),t.set(22,un.symbolStruct),t.set(23,un.symbolEvent),t.set(24,un.symbolOperator),t.set(25,un.symbolTypeParameter),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for SymbolKind "+e),n=un.symbolProperty),n}}(_n||(_n={}));class Fi{static fromValue(e){switch(e){case"comment":return Fi.Comment;case"imports":return Fi.Imports;case"region":return Fi.Region}return new Fi(e)}constructor(e){this.value=e}}Fi.Comment=new Fi("comment"),Fi.Imports=new Fi("imports"),Fi.Region=new Fi("region"),function(e){e[e.AIGenerated=1]="AIGenerated"}(kn||(kn={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(En||(En={})),function(e){e.is=function(e){return!(!e||"object"!=typeof e)&&"string"==typeof e.id&&"string"==typeof e.title}}(Fn||(Fn={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(Rn||(Rn={})),new class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new D,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._tokenizationSupports.set(e,t),this.handleChange([e]),b((()=>{this._tokenizationSupports.get(e)===t&&(this._tokenizationSupports.delete(e),this.handleChange([e]))}))}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,t){var n;null===(n=this._factories.get(e))||void 0===n||n.dispose();const i=new fn(this,e,t);return this._factories.set(e,i),b((()=>{const t=this._factories.get(e);t&&t===i&&(this._factories.delete(e),t.dispose())}))}async getOrCreate(e){const t=this.get(e);if(t)return t;const n=this._factories.get(e);return!n||n.isResolved?null:(await n.resolve(),this.get(e))}isResolved(e){if(this.get(e))return!0;const t=this._factories.get(e);return!(t&&!t.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}},function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(Nn||(Nn={})),function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(In||(In={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(Dn||(Dn={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(Tn||(Tn={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(Mn||(Mn={})),function(e){e[e.Deprecated=1]="Deprecated"}(An||(An={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(zn||(zn={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(Ln||(Ln={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(On||(On={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(Pn||(Pn={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(Wn||(Wn={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(Vn||(Vn={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"}(Un||(Un={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}($n||($n={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(qn||(qn={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(Kn||(Kn={})),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(Bn||(Bn={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(jn||(jn={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(Hn||(Hn={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(Gn||(Gn={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(Jn||(Jn={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(Xn||(Xn={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"}(Yn||(Yn={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(Qn||(Qn={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(Zn||(Zn={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(ei||(ei={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(ti||(ti={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(ni||(ni={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(ii||(ii={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(ri||(ri={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(si||(si={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(oi||(oi={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(ai||(ai={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"}(li||(li={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(ci||(ci={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(hi||(hi={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(di||(di={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(pi||(pi={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(mi||(mi={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(ui||(ui={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(fi||(fi={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(gi||(gi={})),function(e){e[e.Deprecated=1]="Deprecated"}(bi||(bi={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(vi||(vi={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(yi||(yi={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(wi||(wi={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(Si||(Si={}));class Ri{static chord(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)}}Ri.CtrlCmd=2048,Ri.Shift=1024,Ri.Alt=512,Ri.WinCtrl=256;class Ni{constructor(e,t){this.uri=e,this.value=t}}class Ii{constructor(e,t){if(this[xi]="ResourceMap",e instanceof Ii)this.map=new Map(e.map),this.toKey=null!=t?t:Ii.defaultToKey;else if(function(e){return Array.isArray(e)}(e)){this.map=new Map,this.toKey=null!=t?t:Ii.defaultToKey;for(const[t,n]of e)this.set(t,n)}else this.map=new Map,this.toKey=null!=e?e:Ii.defaultToKey}set(e,t){return this.map.set(this.toKey(e),new Ni(e,t)),this}get(e){var t;return null===(t=this.map.get(this.toKey(e)))||void 0===t?void 0:t.value}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){void 0!==t&&(e=e.bind(t));for(const[t,n]of this.map)e(n.value,n.uri,this)}*values(){for(const e of this.map.values())yield e.value}*keys(){for(const e of this.map.values())yield e.uri}*entries(){for(const e of this.map.values())yield[e.uri,e.value]}*[(xi=Symbol.toStringTag,Symbol.iterator)](){for(const[,e]of this.map)yield[e.uri,e.value]}}Ii.defaultToKey=e=>e.toString();class Di{constructor(){this[Ci]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return null===(e=this._head)||void 0===e?void 0:e.value}get last(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){const n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}set(e,t,n=0){let i=this._map.get(e);if(i)i.value=t,0!==n&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case 0:case 2:default:this.addItemLast(i);break;case 1:this.addItemFirst(i)}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let i=this._head;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}values(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}entries(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator]:()=>i,next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}[(Ci=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}trimNew(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._tail,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.previous,n--;this._tail=t,this._size=n,t&&(t.next=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}class Ti extends Di{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class Mi{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){const n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))}forEach(e,t){const n=this.map.get(e);n&&n.forEach(t)}get(e){return this.map.get(e)||new Set}}function Ai(e,t,n,i,r){return function(e,t,n,i,r){if(0===i)return!0;const s=t.charCodeAt(i-1);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(r>0){const n=t.charCodeAt(i);if(0!==e.get(n))return!0}return!1}(e,t,0,i,r)&&function(e,t,n,i,r){if(i+r===n)return!0;const s=t.charCodeAt(i+r);if(0!==e.get(s))return!0;if(13===s||10===s)return!0;if(r>0){const n=t.charCodeAt(i+r-1);if(0!==e.get(n))return!0}return!1}(e,t,n,i,r)}new class extends Ti{constructor(e,t=1){super(e,t)}trim(e){this.trimOld(e)}set(e,t){return super.set(e,t),this.checkTrim(),this}}(10),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(_i||(_i={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(ki||(ki={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(Ei||(Ei={}));class zi{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(n=this._searchRegex.exec(e),!n)return null;const i=n.index,r=n[0].length;if(i===this._prevMatchStartIndex&&r===this._prevMatchLength){if(0===r){ge(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=r,!this._wordSeparators||Ai(this._wordSeparators,e,t,i,r))return n}while(n);return null}}function Li(e,t="Unreachable"){throw new Error(t)}function Oi(e){e()||(e(),r(new c("Assertion Failed")))}function Pi(e,t){let n=0;for(;nString.fromCodePoint(e))).join(""),l.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}]`,"g");const c=new zi(null,a),h=[];let d,p=!1,m=0,u=0,f=0;e:for(let t=i,n=r;t<=n;t++){const n=e.getLineContent(t),i=n.length;c.reset(0);do{if(d=c.next(n),d){let e=d.index,r=d.index+d[0].length;e>0&&me(n.charCodeAt(e-1))&&e--,r+1=n){p=!0;break e}h.push(new Ft(t,e+1,t,r+1))}}}while(d)}return{ranges:h,hasMore:p,ambiguousCharacterCount:m,invisibleCharacterCount:u,nonBasicAsciiCharacterCount:f}}static computeUnicodeHighlightReason(e,t){const n=new Vi(t);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const i=e.codePointAt(0),r=n.ambiguousCharacters.getPrimaryConfusable(i),s=ye.getLocales().filter((e=>!ye.getInstance(new Set([...t.allowedLocales,e])).isAmbiguous(i)));return{kind:0,confusableWith:String.fromCodePoint(r),notAmbiguousInLocales:s}}case 1:return{kind:2}}}}class Vi{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=ye.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of we.codePoints)Ui(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,r=!1;if(t)for(const e of t){const t=e.codePointAt(0),n=(s=e,be.test(s));i=i||n,n||this.ambiguousCharacters.isAmbiguous(t)||we.isInvisibleCharacter(t)||(r=!0)}var s;return!i&&r?0:this.options.invisibleCharacters&&!Ui(e)&&we.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function Ui(e){return" "===e||"\n"===e||"\t"===e}class $i{constructor(e,t,n){this.changes=e,this.moves=t,this.hitTimeout=n}}class qi{constructor(e,t){this.lineRangeMapping=e,this.changes=t}}class Ki{static addRange(e,t){let n=0;for(;nt))return new Ki(e,t)}static ofLength(e){return new Ki(0,e)}static ofStartAndLength(e,t){return new Ki(e,e+t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new c(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new Ki(this.start+e,this.endExclusive+e)}deltaStart(e){return new Ki(this.start+e,this.endExclusive)}deltaEnd(e){return new Ki(this.start,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(e){return this.start<=e&&e=e.endExclusive}slice(e){return e.slice(this.start,this.endExclusive)}substring(e){return e.substring(this.start,this.endExclusive)}clip(e){if(this.isEmpty)throw new c(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,e))}clipCyclic(e){if(this.isEmpty)throw new c(`Invalid clipping range: ${this.toString()}`);return e=this.endExclusive?this.start+(e-this.start)%this.length:e}forEach(e){for(let t=this.start;tt)throw new c(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&et.endLineNumberExclusive>=e.startLineNumber)),n=ji(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)this._normalizedRanges.splice(t,0,e);else if(t===n-1){const n=this._normalizedRanges[t];this._normalizedRanges[t]=n.join(e)}else{const i=this._normalizedRanges[t].join(this._normalizedRanges[n-1]).join(e);this._normalizedRanges.splice(t,n-t,i)}}contains(e){const t=Bi(this._normalizedRanges,(t=>t.startLineNumber<=e));return!!t&&t.endLineNumberExclusive>e}intersects(e){const t=Bi(this._normalizedRanges,(t=>t.startLineNumbere.startLineNumber}getUnion(e){if(0===this._normalizedRanges.length)return e;if(0===e._normalizedRanges.length)return this;const t=[];let n=0,i=0,r=null;for(;n=s.startLineNumber?r=new Ji(r.startLineNumber,Math.max(r.endLineNumberExclusive,s.endLineNumberExclusive)):(t.push(r),r=s)}return null!==r&&t.push(r),new Xi(t)}subtractFrom(e){const t=Hi(this._normalizedRanges,(t=>t.endLineNumberExclusive>=e.startLineNumber)),n=ji(this._normalizedRanges,(t=>t.startLineNumber<=e.endLineNumberExclusive))+1;if(t===n)return new Xi([e]);const i=[];let r=e.startLineNumber;for(let e=t;er&&i.push(new Ji(r,t.startLineNumber)),r=t.endLineNumberExclusive}return re.toString())).join(", ")}getIntersection(e){const t=[];let n=0,i=0;for(;nt.delta(e))))}}class Yi{static betweenPositions(e,t){return e.lineNumber===t.lineNumber?new Yi(0,t.column-e.column):new Yi(t.lineNumber-e.lineNumber,t.column-1)}static ofRange(e){return Yi.betweenPositions(e.getStartPosition(),e.getEndPosition())}static ofText(e){let t=0,n=0;for(const i of e)"\n"===i?(t++,n=0):n++;return new Yi(t,n)}constructor(e,t){this.lineCount=e,this.columnCount=t}isGreaterThanOrEqualTo(e){return this.lineCount!==e.lineCount?this.lineCount>e.lineCount:this.columnCount>=e.columnCount}createRange(e){return 0===this.lineCount?new Ft(e.lineNumber,e.column,e.lineNumber,e.column+this.columnCount):new Ft(e.lineNumber,e.column,e.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(e){return 0===this.lineCount?new Et(e.lineNumber,e.column+this.columnCount):new Et(e.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}Yi.zero=new Yi(0,0);class Qi{constructor(e,t){this.range=e,this.text=t}toSingleEditOperation(){return{range:this.range,text:this.text}}}class Zi{static inverse(e,t,n){const i=[];let r=1,s=1;for(const t of e){const e=new Zi(new Ji(r,t.original.startLineNumber),new Ji(s,t.modified.startLineNumber));e.modified.isEmpty||i.push(e),r=t.original.endLineNumberExclusive,s=t.modified.endLineNumberExclusive}const o=new Zi(new Ji(r,t+1),new Ji(s,n+1));return o.modified.isEmpty||i.push(o),i}static clip(e,t,n){const i=[];for(const r of e){const e=r.original.intersect(t),s=r.modified.intersect(n);e&&!e.isEmpty&&s&&!s.isEmpty&&i.push(new Zi(e,s))}return i}constructor(e,t){this.original=e,this.modified=t}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new Zi(this.modified,this.original)}join(e){return new Zi(this.original.join(e.original),this.modified.join(e.modified))}toRangeMapping(){const e=this.original.toInclusiveRange(),t=this.modified.toInclusiveRange();if(e&&t)return new tr(e,t);if(1===this.original.startLineNumber||1===this.modified.startLineNumber){if(1!==this.modified.startLineNumber||1!==this.original.startLineNumber)throw new c("not a valid diff");return new tr(new Ft(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new Ft(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}return new tr(new Ft(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new Ft(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}}class er extends Zi{static fromRangeMappings(e){const t=Ji.join(e.map((e=>Ji.fromRangeInclusive(e.originalRange)))),n=Ji.join(e.map((e=>Ji.fromRangeInclusive(e.modifiedRange))));return new er(t,n,e)}constructor(e,t,n){super(e,t),this.innerChanges=n}flip(){var e;return new er(this.modified,this.original,null===(e=this.innerChanges)||void 0===e?void 0:e.map((e=>e.flip())))}withInnerChangesFromLineRanges(){return new er(this.original,this.modified,[this.toRangeMapping()])}}class tr{constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new tr(this.modifiedRange,this.originalRange)}toTextEdit(e){const t=e.getValueOfRange(this.modifiedRange);return new Qi(this.originalRange,t)}}class nr{computeDiff(e,t,n){var i;const r=new lr(e,t,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),s=[];let o=null;for(const e of r.changes){let t,n;t=0===e.originalEndLineNumber?new Ji(e.originalStartLineNumber+1,e.originalStartLineNumber+1):new Ji(e.originalStartLineNumber,e.originalEndLineNumber+1),n=0===e.modifiedEndLineNumber?new Ji(e.modifiedStartLineNumber+1,e.modifiedStartLineNumber+1):new Ji(e.modifiedStartLineNumber,e.modifiedEndLineNumber+1);let r=new er(t,n,null===(i=e.charChanges)||void 0===i?void 0:i.map((e=>new tr(new Ft(e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),new Ft(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)))));o&&(o.modified.endLineNumberExclusive!==r.modified.startLineNumber&&o.original.endLineNumberExclusive!==r.original.startLineNumber||(r=new er(o.original.join(r.original),o.modified.join(r.modified),o.innerChanges&&r.innerChanges?o.innerChanges.concat(r.innerChanges):void 0),s.pop())),s.push(r),o=r}return Oi((()=>Pi(s,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive==t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`)).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return-1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e]?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return-1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e]?1:this._columns[e]+1)}}class or{constructor(e,t,n,i,r,s,o,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=i,this.modifiedStartLineNumber=r,this.modifiedStartColumn=s,this.modifiedEndLineNumber=o,this.modifiedEndColumn=a}static createFromDiffChange(e,t,n){const i=t.getStartLineNumber(e.originalStart),r=t.getStartColumn(e.originalStart),s=t.getEndLineNumber(e.originalStart+e.originalLength-1),o=t.getEndColumn(e.originalStart+e.originalLength-1),a=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),c=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),h=n.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new or(i,r,s,o,a,l,c,h)}}class ar{constructor(e,t,n,i,r){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=i,this.charChanges=r}static createFromDiffResult(e,t,n,i,r,s,o){let a,l,c,h,d;if(0===t.originalLength?(a=n.getStartLineNumber(t.originalStart)-1,l=0):(a=n.getStartLineNumber(t.originalStart),l=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(c=i.getStartLineNumber(t.modifiedStart)-1,h=0):(c=i.getStartLineNumber(t.modifiedStart),h=i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),s&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&r()){const s=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=i.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(s.getElements().length>0&&a.getElements().length>0){let e=ir(s,a,r,!0).changes;o&&(e=function(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let i=1,r=e.length;i1&&o>1&&e.charCodeAt(n-2)===t.charCodeAt(o-2);)n--,o--;(n>1||o>1)&&this._pushTrimWhitespaceCharChange(i,r+1,1,n,s+1,1,o)}{let n=hr(e,1),o=hr(t,1);const a=e.length+1,l=t.length+1;for(;n=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}(e);return-1===n?t:n+2}function dr(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t{n.push(mr.fromOffsetPairs(e?e.getEndExclusives():ur.zero,i?i.getStarts():new ur(t,(e?e.seq2Range.endExclusive-e.seq1Range.endExclusive:0)+t)))})),n}static fromOffsetPairs(e,t){return new mr(new Ki(e.offset1,t.offset1),new Ki(e.offset2,t.offset2))}constructor(e,t){this.seq1Range=e,this.seq2Range=t}swap(){return new mr(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new mr(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}delta(e){return 0===e?this:new mr(this.seq1Range.delta(e),this.seq2Range.delta(e))}deltaStart(e){return 0===e?this:new mr(this.seq1Range.deltaStart(e),this.seq2Range.deltaStart(e))}deltaEnd(e){return 0===e?this:new mr(this.seq1Range.deltaEnd(e),this.seq2Range.deltaEnd(e))}intersect(e){const t=this.seq1Range.intersect(e.seq1Range),n=this.seq2Range.intersect(e.seq2Range);if(t&&n)return new mr(t,n)}getStarts(){return new ur(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new ur(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class ur{constructor(e,t){this.offset1=e,this.offset2=t}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(e){return 0===e?this:new ur(this.offset1+e,this.offset2+e)}equals(e){return this.offset1===e.offset1&&this.offset2===e.offset2}}ur.zero=new ur(0,0),ur.max=new ur(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class fr{isValid(){return!0}}fr.instance=new fr;class gr{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new c("timeout must be positive")}isValid(){return!(Date.now()-this.startTime0&&l>0&&3===s.get(a-1,l-1)&&(d+=o.get(a-1,l-1)),d+=i?i(a,l):1):d=-1;const p=Math.max(c,h,d);if(p===d){const e=a>0&&l>0?o.get(a-1,l-1):0;o.set(a,l,e+1),s.set(a,l,3)}else p===c?(o.set(a,l,0),s.set(a,l,1)):p===h&&(o.set(a,l,0),s.set(a,l,2));r.set(a,l,p)}const a=[];let l=e.length,c=t.length;function h(e,t){e+1===l&&t+1===c||a.push(new mr(new Ki(e+1,l),new Ki(t+1,c))),l=e,c=t}let d=e.length-1,p=t.length-1;for(;d>=0&&p>=0;)3===s.get(d,p)?(h(d,p),d--,p--):1===s.get(d,p)?d--:p--;return h(-1,-1),a.reverse(),new pr(a,!1)}}class Sr{compute(e,t,n=fr.instance){if(0===e.length||0===t.length)return pr.trivial(e,t);const i=e,r=t;function s(e,t){for(;ei.length||p>r.length)continue;const m=s(d,p);a.set(c,m);const u=d===o?l.get(c+1):l.get(c-1);if(l.set(c,m!==d?new xr(u,d,p,m-d):u),a.get(c)===i.length&&a.get(c)-c===r.length)break e}}let h=l.get(c);const d=[];let p=i.length,m=r.length;for(;;){const e=h?h.x+h.length:0,t=h?h.y+h.length:0;if(e===p&&t===m||d.push(new mr(new Ki(e,p),new Ki(t,m))),!h)break;p=h.x,m=h.y,h=h.prev}return d.reverse(),new pr(d,!1)}}class xr{constructor(e,t,n,i){this.prev=e,this.x=t,this.y=n,this.length=i}}class Cr{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){if(e<0){if((e=-e-1)>=this.negativeArr.length){const e=this.negativeArr;this.negativeArr=new Int32Array(2*e.length),this.negativeArr.set(e)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const e=this.positiveArr;this.positiveArr=new Int32Array(2*e.length),this.positiveArr.set(e)}this.positiveArr[e]=t}}}class _r{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}class kr{constructor(e,t,n){this.lines=e,this.considerWhitespaceChanges=n,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let i=!1;t.start>0&&t.endExclusive>=e.length&&(t=new Ki(t.start-1,t.endExclusive),i=!0),this.lineRange=t,this.firstCharOffsetByLine[0]=0;for(let t=this.lineRange.start;tString.fromCharCode(e))).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const t=Nr(e>0?this.elements[e-1]:-1),n=Nr(et<=e));return new Et(this.lineRange.start+t+1,e-this.firstCharOffsetByLine[t]+this.additionalOffsetByLine[t]+1)}translateRange(e){return Ft.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length)return;if(!Er(this.elements[e]))return;let t=e;for(;t>0&&Er(this.elements[t-1]);)t--;let n=e;for(;nt<=e.start)))&&void 0!==t?t:0,r=null!==(n=function(t,n){const i=Hi(t,(t=>e.endExclusive<=t));return i===t.length?void 0:t[i]}(this.firstCharOffsetByLine))&&void 0!==n?n:this.elements.length;return new Ki(i,r)}}function Er(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const Fr={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function Rr(e){return Fr[e]}function Nr(e){return 10===e?8:13===e?7:vr(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:-1===e?3:44===e||59===e?5:4}function Ir(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const i=(new Sr).compute(new kr([e],new Ki(0,1),!1),new kr([t],new Ki(0,1),!1),n);let r=0;const s=mr.invert(i.diffs,e.length);for(const t of s)t.seq1Range.forEach((t=>{vr(e.charCodeAt(t))||r++}));const o=function(t){let n=0;for(let i=0;it.length?e:t);return r/o>.6&&o>10}function Dr(e,t,n){let i=n;return i=Tr(e,t,i),i=Tr(e,t,i),i=function(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let i=0;i0?n[i-1]:void 0,s=n[i],o=i+10&&(o=o.delta(a))}r.push(o)}return i.length>0&&r.push(i[i.length-1]),r}function Mr(e,t,n,i,r){let s=1;for(;e.seq1Range.start-s>=i.start&&e.seq2Range.start-s>=r.start&&n.isStronglyEqual(e.seq2Range.start-s,e.seq2Range.endExclusive-s)&&s<100;)s++;s--;let o=0;for(;e.seq1Range.start+ol&&(l=c,a=i)}return e.delta(a)}class Ar{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){return 1e3-((0===e?0:zr(this.lines[e-1]))+(e===this.lines.length?0:zr(this.lines[e])))}getText(e){return this.lines.slice(e.start,e.endExclusive).join("\n")}isStronglyEqual(e,t){return this.lines[e]===this.lines[t]}}function zr(e){let t=0;for(;te===t)){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let i=0,r=e.length;ie===t)))return new $i([],[],!1);if(1===e.length&&0===e[0].length||1===t.length&&0===t[0].length)return new $i([new er(new Ji(1,e.length+1),new Ji(1,t.length+1),[new tr(new Ft(1,1,e.length,e[e.length-1].length+1),new Ft(1,1,t.length,t[t.length-1].length+1))])],[],!1);const i=0===n.maxComputationTimeMs?fr.instance:new gr(n.maxComputationTimeMs),r=!n.ignoreTrimWhitespace,s=new Map;function o(e){let t=s.get(e);return void 0===t&&(t=s.size,s.set(e,t)),t}const a=e.map((e=>o(e.trim()))),l=t.map((e=>o(e.trim()))),c=new Ar(a,e),h=new Ar(l,t),d=(()=>c.length+h.length<1700?this.dynamicProgrammingDiffing.compute(c,h,i,((n,i)=>e[n]===t[i]?0===t[i].length?.1:1+Math.log(1+t[i].length):.99)):this.myersDiffingAlgorithm.compute(c,h,i))();let p=d.diffs,m=d.hitTimeout;p=Dr(c,h,p),p=function(e,t,n){let i=n;if(0===i.length)return i;let r,s=0;do{r=!1;const o=[i[0]];for(let a=1;a5||n.seq1Range.length+n.seq2Range.length>5)}h(c,l)?(r=!0,o[o.length-1]=o[o.length-1].join(l)):o.push(l)}i=o}while(s++<10&&r);return i}(c,0,p);const u=[],f=n=>{if(r)for(let s=0;sn.seq1Range.start-g==n.seq2Range.start-b)),f(n.seq1Range.start-g),g=n.seq1Range.endExclusive,b=n.seq2Range.endExclusive;const s=this.refineDiff(e,t,n,i,r);s.hitTimeout&&(m=!0);for(const e of s.mappings)u.push(e)}f(e.length-g);const v=Or(u,e,t);let y=[];return n.computeMoves&&(y=this.computeMoves(v,e,t,a,l,i,r)),Oi((()=>{function n(e,t){if(e.lineNumber<1||e.lineNumber>t.length)return!1;const n=t[e.lineNumber-1];return!(e.column<1||e.column>n.length+1)}function i(e,t){return!(e.startLineNumber<1||e.startLineNumber>t.length+1||e.endLineNumberExclusive<1||e.endLineNumberExclusive>t.length+1)}for(const r of v){if(!r.innerChanges)return!1;for(const i of r.innerChanges)if(!(n(i.modifiedRange.getStartPosition(),t)&&n(i.modifiedRange.getEndPosition(),t)&&n(i.originalRange.getStartPosition(),e)&&n(i.originalRange.getEndPosition(),e)))return!1;if(!i(r.modified,t)||!i(r.original,e))return!1}return!0})),new $i(v,y,m)}computeMoves(e,t,n,i,r,s,o){return function(e,t,n,i,r,s){let{moves:o,excludedChanges:a}=function(e,t,n,i){const r=[],s=e.filter((e=>e.modified.isEmpty&&e.original.length>=3)).map((e=>new yr(e.original,t,e))),o=new Set(e.filter((e=>e.original.isEmpty&&e.modified.length>=3)).map((e=>new yr(e.modified,n,e)))),a=new Set;for(const e of s){let t,n=-1;for(const i of o){const r=e.computeSimilarity(i);r>n&&(n=r,t=i)}if(n>.9&&t&&(o.delete(t),r.push(new Zi(e.range,t.range)),a.add(e.source),a.add(t.source)),!i.isValid())return{moves:r,excludedChanges:a}}return{moves:r,excludedChanges:a}}(e,t,n,s);if(!s.isValid())return[];const l=function(e,t,n,i,r,s){const o=[],a=new Mi;for(const n of e)for(let e=n.original.startLineNumber;ee.modified.startLineNumber),It));for(const t of e){let e=[];for(let i=t.modified.startLineNumber;i{for(const n of e)if(n.originalLineRange.endLineNumberExclusive+1===t.endLineNumberExclusive&&n.modifiedLineRange.endLineNumberExclusive+1===r.endLineNumberExclusive)return n.originalLineRange=new Ji(n.originalLineRange.startLineNumber,t.endLineNumberExclusive),n.modifiedLineRange=new Ji(n.modifiedLineRange.startLineNumber,r.endLineNumberExclusive),void s.push(n);const n={modifiedLineRange:r,originalLineRange:t};l.push(n),s.push(n)})),e=s}if(!s.isValid())return[]}var c;l.sort((c=Nt((e=>e.modifiedLineRange.length),It),(e,t)=>-c(e,t)));const h=new Xi,d=new Xi;for(const e of l){const t=e.modifiedLineRange.startLineNumber-e.originalLineRange.startLineNumber,n=h.subtractFrom(e.modifiedLineRange),i=d.subtractFrom(e.originalLineRange).getWithDelta(t),r=n.getIntersection(i);for(const e of r.ranges){if(e.length<3)continue;const n=e,i=e.delta(-t);o.push(new Zi(i,n)),h.addRange(n),d.addRange(i)}}o.sort(Nt((e=>e.original.startLineNumber),It));const p=new Gi(e);for(let t=0;te.original.startLineNumber<=n.original.startLineNumber)),l=Bi(e,(e=>e.modified.startLineNumber<=n.modified.startLineNumber)),c=Math.max(n.original.startLineNumber-a.original.startLineNumber,n.modified.startLineNumber-l.modified.startLineNumber),m=p.findLastMonotonous((e=>e.original.startLineNumbere.modified.startLineNumberi.length||t>r.length)break;if(h.contains(t)||d.contains(e))break;if(!Ir(i[e-1],r[t-1],s))break}for(g>0&&(d.addRange(new Ji(n.original.startLineNumber-g,n.original.startLineNumber)),h.addRange(new Ji(n.modified.startLineNumber-g,n.modified.startLineNumber))),b=0;bi.length||t>r.length)break;if(h.contains(t)||d.contains(e))break;if(!Ir(i[e-1],r[t-1],s))break}b>0&&(d.addRange(new Ji(n.original.endLineNumberExclusive,n.original.endLineNumberExclusive+b)),h.addRange(new Ji(n.modified.endLineNumberExclusive,n.modified.endLineNumberExclusive+b))),(g>0||b>0)&&(o[t]=new Zi(new Ji(n.original.startLineNumber-g,n.original.endLineNumberExclusive+b),new Ji(n.modified.startLineNumber-g,n.modified.endLineNumberExclusive+b)))}return o}(e.filter((e=>!a.has(e))),i,r,t,n,s);return function(e,t){for(const n of t)e.push(n)}(o,l),o=function(e){if(0===e.length)return e;e.sort(Nt((e=>e.original.startLineNumber),It));const t=[e[0]];for(let n=1;n=0&&o>=0&&s+o<=2?t[t.length-1]=i.join(r):t.push(r)}return t}(o),o=o.filter((e=>{const n=e.original.toOffsetRange().slice(t).map((e=>e.trim()));return n.join("\n").length>=15&&function(e,t){let n=0;for(const t of e)t.length>=2&&n++;return n}(n)>=2})),o=function(e,t){const n=new Gi(e);return t.filter((t=>(n.findLastMonotonous((e=>e.original.startLineNumbere.modified.startLineNumber{const i=Or(this.refineDiff(t,n,new mr(e.original.toOffsetRange(),e.modified.toOffsetRange()),s,o).mappings,t,n,!0);return new qi(e,i)}))}refineDiff(e,t,n,i,r){const s=new kr(e,n.seq1Range,r),o=new kr(t,n.seq2Range,r),a=s.length+o.length<500?this.dynamicProgrammingDiffing.compute(s,o,i):this.myersDiffingAlgorithm.compute(s,o,i);let l=a.diffs;return l=Dr(s,o,l),l=function(e,t,n){const i=mr.invert(n,e.length),r=[];let s=new ur(0,0);function o(n,o){if(n.offset10;){const n=i[0];if(!n.seq1Range.intersects(c.seq1Range)&&!n.seq2Range.intersects(c.seq2Range))break;const r=e.findWordContaining(n.seq1Range.start),s=t.findWordContaining(n.seq2Range.start),o=new mr(r,s),a=o.intersect(n);if(d+=a.seq1Range.length,p+=a.seq2Range.length,c=c.join(o),!(c.seq1Range.endExclusive>=n.seq1Range.endExclusive))break;i.shift()}d+p<2*(c.seq1Range.length+c.seq2Range.length)/3&&r.push(c),s=c.getEndExclusives()}for(;i.length>0;){const e=i.shift();e.seq1Range.isEmpty||(o(e.getStarts(),e),o(e.getEndExclusives().delta(-1),e))}return function(e,t){const n=[];for(;e.length>0||t.length>0;){const i=e[0],r=t[0];let s;s=i&&(!r||i.seq1Range.start0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}(n,r)}(s,o,l),l=function(e,t,n){const i=[];for(const e of n){const t=i[i.length-1];t&&(e.seq1Range.start-t.seq1Range.endExclusive<=2||e.seq2Range.start-t.seq2Range.endExclusive<=2)?i[i.length-1]=new mr(t.seq1Range.join(e.seq1Range),t.seq2Range.join(e.seq2Range)):i.push(e)}return i}(0,0,l),l=function(e,t,n){let i=n;if(0===i.length)return i;let r,s=0;do{r=!1;const a=[i[0]];for(let l=1;l5||r.length>500)return!1;const s=e.getText(r).trim();if(s.length>20||s.split(/\r\n|\r|\n/).length>1)return!1;const o=e.countLinesIn(n.seq1Range),a=n.seq1Range.length,l=t.countLinesIn(n.seq2Range),d=n.seq2Range.length,p=e.countLinesIn(i.seq1Range),m=i.seq1Range.length,u=t.countLinesIn(i.seq2Range),f=i.seq2Range.length;function g(e){return Math.min(e,130)}return Math.pow(Math.pow(g(40*o+a),1.5)+Math.pow(g(40*l+d),1.5),1.5)+Math.pow(Math.pow(g(40*p+m),1.5)+Math.pow(g(40*u+f),1.5),1.5)>74184.96480721243}d(h,c)?(r=!0,a[a.length-1]=a[a.length-1].join(c)):a.push(c)}i=a}while(s++<10&&r);const o=[];return function(e,t){for(let n=0;n{let r=n;function s(e){return e.length>0&&e.trim().length<=3&&n.seq1Range.length+n.seq2Range.length>100}const a=e.extendToFullLines(n.seq1Range),l=e.getText(new Ki(a.start,n.seq1Range.start));s(l)&&(r=r.deltaStart(-l.length));const c=e.getText(new Ki(n.seq1Range.endExclusive,a.endExclusive));s(c)&&(r=r.deltaEnd(c.length));const h=mr.fromOffsetPairs(t?t.getEndExclusives():ur.zero,i?i.getStarts():ur.max),d=r.intersect(h);o.length>0&&d.getStarts().equals(o[o.length-1].getEndExclusives())?o[o.length-1]=o[o.length-1].join(d):o.push(d)})),o}(s,o,l),{mappings:l.map((e=>new tr(s.translateRange(e.seq1Range),o.translateRange(e.seq2Range)))),hitTimeout:a.hitTimeout}}}function Or(e,t,n,i=!1){const r=[];for(const i of function*(e,t){let n,i;for(const t of e)void 0!==i&&(s=t,(r=i).original.overlapOrTouch(s.original)||r.modified.overlapOrTouch(s.modified))?n.push(t):(n&&(yield n),n=[t]),i=t;var r,s;n&&(yield n)}(e.map((e=>function(e,t,n){let i=0,r=0;1===e.modifiedRange.endColumn&&1===e.originalRange.endColumn&&e.originalRange.startLineNumber+i<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+i<=e.modifiedRange.endLineNumber&&(r=-1),e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+r&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+r&&(i=1);const s=new Ji(e.originalRange.startLineNumber+i,e.originalRange.endLineNumber+1+r),o=new Ji(e.modifiedRange.startLineNumber+i,e.modifiedRange.endLineNumber+1+r);return new er(s,o,[e])}(e,t,n))))){const e=i[0],t=i[i.length-1];r.push(new er(e.original.join(t.original),e.modified.join(t.modified),i.map((e=>e.innerChanges[0]))))}return Oi((()=>{if(!i&&r.length>0){if(r[0].modified.startLineNumber!==r[0].original.startLineNumber)return!1;if(n.length-r[r.length-1].modified.endLineNumberExclusive!=t.length-r[r.length-1].original.endLineNumberExclusive)return!1}return Pi(r,((e,t)=>t.original.startLineNumber-e.original.endLineNumberExclusive==t.modified.startLineNumber-e.modified.endLineNumberExclusive&&e.original.endLineNumberExclusive0){switch(l=Math.min(c<=.5?h/(2*c):h/(2-2*c),1),s){case t:a=(n-i)/h+(n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){const t=e.h/360,{s:n,l:i,a:r}=e;let s,o,a;if(0===n)s=o=a=i;else{const e=i<.5?i*(1+n):i+n-i*n,r=2*i-e;s=Vr._hue2rgb(r,e,t+1/3),o=Vr._hue2rgb(r,e,t),a=Vr._hue2rgb(r,e,t-1/3)}return new Wr(Math.round(255*s),Math.round(255*o),Math.round(255*a),r)}}class Ur{constructor(e,t,n,i){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=Pr(Math.max(Math.min(1,t),0),3),this.v=Pr(Math.max(Math.min(1,n),0),3),this.a=Pr(Math.max(Math.min(1,i),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=Math.max(t,n,i),s=r-Math.min(t,n,i),o=0===r?0:s/r;let a;return a=0===s?0:r===t?((n-i)/s%6+6)%6:r===n?(i-t)/s+2:(t-n)/s+4,new Ur(Math.round(60*a),o,r,e.a)}static toRGBA(e){const{h:t,s:n,v:i,a:r}=e,s=i*n,o=s*(1-Math.abs(t/60%2-1)),a=i-s;let[l,c,h]=[0,0,0];return t<60?(l=s,c=o):t<120?(l=o,c=s):t<180?(c=s,h=o):t<240?(c=o,h=s):t<300?(l=o,h=s):t<=360&&(l=s,h=o),l=Math.round(255*(l+a)),c=Math.round(255*(c+a)),h=Math.round(255*(h+a)),new Wr(l,c,h,r)}}class $r{static fromHex(e){return $r.Format.CSS.parseHex(e)||$r.red}static equals(e,t){return!e&&!t||!(!e||!t)&&e.equals(t)}get hsla(){return this._hsla?this._hsla:Vr.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:Ur.fromRGBA(this.rgba)}constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof Wr)this.rgba=e;else if(e instanceof Vr)this._hsla=e,this.rgba=Vr.toRGBA(e);else{if(!(e instanceof Ur))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=Ur.toRGBA(e)}}equals(e){return!!e&&Wr.equals(this.rgba,e.rgba)&&Vr.equals(this.hsla,e.hsla)&&Ur.equals(this.hsva,e.hsva)}getRelativeLuminance(){return Pr(.2126*$r._relativeLuminanceForComponent(this.rgba.r)+.7152*$r._relativeLuminanceForComponent(this.rgba.g)+.0722*$r._relativeLuminanceForComponent(this.rgba.b),4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){return this.getRelativeLuminance()>e.getRelativeLuminance()}isDarkerThan(e){return this.getRelativeLuminance()e.startColumn){const t={range:e,...Zr(i[1]),shouldBeInComments:!0};(t.text||t.hasSeparatorLine)&&n.push(t)}}}function Zr(e){const t=(e=e.trim()).startsWith("-");return{text:e=e.replace(Yr,""),hasSeparatorLine:t}}class es extends Lt{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(e){const t=[];for(let n=0;nthis._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{const e=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>e&&(n=e,i=!0)}return i?{lineNumber:t,column:n}:e}}class ts{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach((t=>e.push(this._models[t]))),e}acceptNewModel(e){this._models[e.url]=new es(ft.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){this._models[e]&&this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}async computeUnicodeHighlights(e,t,n){const i=this._getModel(e);return i?Wi.computeUnicodeHighlights(i,t,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(e,t){const n=this._getModel(e);return n?function(e,t){var n;let i=[];if(t.findRegionSectionHeaders&&(null===(n=t.foldingRules)||void 0===n?void 0:n.markers)){const n=function(e,t){const n=[],i=e.getLineCount();for(let r=1;r<=i;r++){const i=e.getLineContent(r),s=i.match(t.foldingRules.markers.start);if(s){const e={startLineNumber:r,startColumn:s[0].length+1,endLineNumber:r,endColumn:i.length+1};if(e.endColumn>e.startColumn){const t={range:e,...Zr(i.substring(s[0].length)),shouldBeInComments:!1};(t.text||t.hasSeparatorLine)&&n.push(t)}}}return n}(e,t);i=i.concat(n)}if(t.findMarkSectionHeaders){const t=function(e){const t=[],n=e.getLineCount();for(let i=1;i<=n;i++)Qr(e.getLineContent(i),i,t);return t}(e);i=i.concat(t)}return i}(n,t):[]}async computeDiff(e,t,n,i){const r=this._getModel(e),s=this._getModel(t);return r&&s?ts.computeDiff(r,s,n,i):null}static computeDiff(e,t,n,i){const r="advanced"===i?new Lr:new nr,s=e.getLinesContent(),o=t.getLinesContent(),a=r.computeDiff(s,o,n);function l(e){return e.map((e=>{var t;return[e.original.startLineNumber,e.original.endLineNumberExclusive,e.modified.startLineNumber,e.modified.endLineNumberExclusive,null===(t=e.innerChanges)||void 0===t?void 0:t.map((e=>[e.originalRange.startLineNumber,e.originalRange.startColumn,e.originalRange.endLineNumber,e.originalRange.endColumn,e.modifiedRange.startLineNumber,e.modifiedRange.startColumn,e.modifiedRange.endLineNumber,e.modifiedRange.endColumn]))]}))}return{identical:!(a.changes.length>0)&&this._modelsAreIdentical(e,t),quitEarly:a.hitTimeout,changes:l(a.changes),moves:a.moves.map((e=>[e.lineRangeMapping.original.startLineNumber,e.lineRangeMapping.original.endLineNumberExclusive,e.lineRangeMapping.modified.startLineNumber,e.lineRangeMapping.modified.endLineNumberExclusive,l(e.changes)]))}}static _modelsAreIdentical(e,t){const n=e.getLineCount();if(n!==t.getLineCount())return!1;for(let i=1;i<=n;i++)if(e.getLineContent(i)!==t.getLineContent(i))return!1;return!0}async computeMoreMinimalEdits(e,t,n){const i=this._getModel(e);if(!i)return t;const r=[];let s;t=t.slice(0).sort(((e,t)=>e.range&&t.range?Ft.compareRangesUsingStarts(e.range,t.range):(e.range?0:1)-(t.range?0:1)));let o=0;for(let e=1;ets._diffLimit){r.push({range:e,text:o});continue}const l=We(t,o,n),c=i.offsetAt(Ft.lift(e).getStartPosition());for(const e of l){const t=i.positionAt(c+e.originalStart),n=i.positionAt(c+e.originalStart+e.originalLength),s={text:o.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}};i.getValueInRange(s.range)!==s.text&&r.push(s)}}return"number"==typeof s&&r.push({eol:s,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),r}async computeLinks(e){const t=this._getModel(e);return t?function(e){return e&&"function"==typeof e.getLineCount&&"function"==typeof e.getLineContent?Ht.computeLinks(e):[]}(t):null}async computeDefaultDocumentColors(e){const t=this._getModel(e);return t?function(e){return e&&"function"==typeof e.getValue&&"function"==typeof e.positionAt?function(e){const t=[],n=Jr(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(n.length>0)for(const i of n){const n=i.filter((e=>void 0!==e)),r=n[1],s=n[2];if(!s)continue;let o;if("rgb"===r){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;o=Hr(Br(e,i),Jr(s,t),!1)}else if("rgba"===r){const t=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=Hr(Br(e,i),Jr(s,t),!0)}else if("hsl"===r){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;o=Gr(Br(e,i),Jr(s,t),!1)}else if("hsla"===r){const t=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;o=Gr(Br(e,i),Jr(s,t),!0)}else"#"===r&&(o=jr(Br(e,i),r+s));o&&t.push(o)}return t}(e):[]}(t):null}async textualSuggest(e,t,n,i){const r=new C,s=new RegExp(n,i),o=new Set;e:for(const n of e){const e=this._getModel(n);if(e)for(const n of e.words(s))if(n!==t&&isNaN(Number(n))&&(o.add(n),o.size>ts._suggestionsLimit))break e}return{words:Array.from(o),duration:r.elapsed()}}async computeWordRanges(e,t,n,i){const r=this._getModel(e);if(!r)return Object.create(null);const s=new RegExp(n,i),o=Object.create(null);for(let e=t.startLineNumber;efunction(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)},i={};for(const t of e)i[t]=n(t);return i}(n,((e,t)=>this._host.fhr(e,t))),r={host:i,getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(r,t),Promise.resolve(M(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}}}ts._diffLimit=1e5,ts._suggestionsLimit=1e4,"function"==typeof importScripts&&(globalThis.monaco={editor:void 0,languages:void 0,CancellationTokenSource:class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Yt),this._token}cancel(){this._token?this._token instanceof Yt&&this._token.cancel():this._token=Xt.Cancelled}dispose(e=!1){var t;e&&this.cancel(),null===(t=this._parentListener)||void 0===t||t.dispose(),this._token?this._token instanceof Yt&&this._token.dispose():this._token=Xt.None}},Emitter:D,KeyCode:Yn,KeyMod:Ri,Position:Et,Range:Ft,Selection:dn,SelectionDirection:mi,MarkerSeverity:Qn,MarkerTag:Zn,Uri:ft,Token:class{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}});let ns=!1;function is(e){if(ns)return;ns=!0;const t=new Ie((e=>{globalThis.postMessage(e)}),(t=>new ts(t,e)));globalThis.onmessage=e=>{t.onmessage(e.data)}}globalThis.onmessage=e=>{ns||is(null)}}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i,r,s=n(25049);(r=i||(i={}))[r.Ident=0]="Ident",r[r.AtKeyword=1]="AtKeyword",r[r.String=2]="String",r[r.BadString=3]="BadString",r[r.UnquotedString=4]="UnquotedString",r[r.Hash=5]="Hash",r[r.Num=6]="Num",r[r.Percentage=7]="Percentage",r[r.Dimension=8]="Dimension",r[r.UnicodeRange=9]="UnicodeRange",r[r.CDO=10]="CDO",r[r.CDC=11]="CDC",r[r.Colon=12]="Colon",r[r.SemiColon=13]="SemiColon",r[r.CurlyL=14]="CurlyL",r[r.CurlyR=15]="CurlyR",r[r.ParenthesisL=16]="ParenthesisL",r[r.ParenthesisR=17]="ParenthesisR",r[r.BracketL=18]="BracketL",r[r.BracketR=19]="BracketR",r[r.Whitespace=20]="Whitespace",r[r.Includes=21]="Includes",r[r.Dashmatch=22]="Dashmatch",r[r.SubstringOperator=23]="SubstringOperator",r[r.PrefixOperator=24]="PrefixOperator",r[r.SuffixOperator=25]="SuffixOperator",r[r.Delim=26]="Delim",r[r.EMS=27]="EMS",r[r.EXS=28]="EXS",r[r.Length=29]="Length",r[r.Angle=30]="Angle",r[r.Time=31]="Time",r[r.Freq=32]="Freq",r[r.Exclamation=33]="Exclamation",r[r.Resolution=34]="Resolution",r[r.Comma=35]="Comma",r[r.Charset=36]="Charset",r[r.EscapedJavaScript=37]="EscapedJavaScript",r[r.BadEscapedJavaScript=38]="BadEscapedJavaScript",r[r.Comment=39]="Comment",r[r.SingleLineComment=40]="SingleLineComment",r[r.EOF=41]="EOF",r[r.ContainerQueryLength=42]="ContainerQueryLength",r[r.CustomToken=43]="CustomToken";var o=class{constructor(e){this.source=e,this.len=e.length,this.position=0}substring(e,t=this.position){return this.source.substring(e,t)}eos(){return this.len<=this.position}pos(){return this.position}goBackTo(e){this.position=e}goBack(e){this.position-=e}advance(e){this.position+=e}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(e=0){return this.source.charCodeAt(this.position+e)||0}lookbackChar(e=0){return this.source.charCodeAt(this.position-e)||0}advanceIfChar(e){return e===this.source.charCodeAt(this.position)&&(this.position++,!0)}advanceIfChars(e){if(this.position+e.length>this.source.length)return!1;let t=0;for(;t".charCodeAt(0),F="@".charCodeAt(0),R="#".charCodeAt(0),N="$".charCodeAt(0),I="\\".charCodeAt(0),D="/".charCodeAt(0),T="\n".charCodeAt(0),M="\r".charCodeAt(0),A="\f".charCodeAt(0),z='"'.charCodeAt(0),L="'".charCodeAt(0),O=" ".charCodeAt(0),P="\t".charCodeAt(0),W=";".charCodeAt(0),V=":".charCodeAt(0),U="{".charCodeAt(0),$="}".charCodeAt(0),q="[".charCodeAt(0),K="]".charCodeAt(0),B=",".charCodeAt(0),j=".".charCodeAt(0),H="!".charCodeAt(0),G="?".charCodeAt(0),J="+".charCodeAt(0),X={};X[W]=i.SemiColon,X[V]=i.Colon,X[U]=i.CurlyL,X[$]=i.CurlyR,X[K]=i.BracketR,X[q]=i.BracketL,X[C]=i.ParenthesisL,X[_]=i.ParenthesisR,X[B]=i.Comma;var Y={};Y.em=i.EMS,Y.ex=i.EXS,Y.px=i.Length,Y.cm=i.Length,Y.mm=i.Length,Y.in=i.Length,Y.pt=i.Length,Y.pc=i.Length,Y.deg=i.Angle,Y.rad=i.Angle,Y.grad=i.Angle,Y.ms=i.Time,Y.s=i.Time,Y.hz=i.Freq,Y.khz=i.Freq,Y["%"]=i.Percentage,Y.fr=i.Percentage,Y.dpi=i.Resolution,Y.dpcm=i.Resolution,Y.cqw=i.ContainerQueryLength,Y.cqh=i.ContainerQueryLength,Y.cqi=i.ContainerQueryLength,Y.cqb=i.ContainerQueryLength,Y.cqmin=i.ContainerQueryLength,Y.cqmax=i.ContainerQueryLength;var Q,Z,ee,te,ne=class{constructor(){this.stream=new o(""),this.ignoreComment=!0,this.ignoreWhitespace=!0,this.inURL=!1}setSource(e){this.stream=new o(e)}finishToken(e,t,n){return{offset:e,len:this.stream.pos()-e,type:t,text:n||this.stream.substring(e)}}substring(e,t){return this.stream.substring(e,e+t)}pos(){return this.stream.pos()}goBackTo(e){this.stream.goBackTo(e)}scanUnquotedString(){const e=this.stream.pos(),t=[];return this._unquotedString(t)?this.finishToken(e,i.UnquotedString,t.join("")):null}scan(){const e=this.trivia();if(null!==e)return e;const t=this.stream.pos();return this.stream.eos()?this.finishToken(t,i.EOF):this.scanNext(t)}tryScanUnicode(){const e=this.stream.pos();if(!this.stream.eos()&&this._unicodeRange())return this.finishToken(e,i.UnicodeRange);this.stream.goBackTo(e)}scanNext(e){if(this.stream.advanceIfChars([k,H,y,y]))return this.finishToken(e,i.CDO);if(this.stream.advanceIfChars([y,y,E]))return this.finishToken(e,i.CDC);let t=[];if(this.ident(t))return this.finishToken(e,i.Ident,t.join(""));if(this.stream.advanceIfChar(F)){if(t=["@"],this._name(t)){const n=t.join("");return"@charset"===n?this.finishToken(e,i.Charset,n):this.finishToken(e,i.AtKeyword,n)}return this.finishToken(e,i.Delim)}if(this.stream.advanceIfChar(R))return t=["#"],this._name(t)?this.finishToken(e,i.Hash,t.join("")):this.finishToken(e,i.Delim);if(this.stream.advanceIfChar(H))return this.finishToken(e,i.Exclamation);if(this._number()){const n=this.stream.pos();if(t=[this.stream.substring(e,n)],this.stream.advanceIfChar(S))return this.finishToken(e,i.Percentage);if(this.ident(t)){const r=this.stream.substring(n).toLowerCase(),s=Y[r];return void 0!==s?this.finishToken(e,s,t.join("")):this.finishToken(e,i.Dimension,t.join(""))}return this.finishToken(e,i.Num)}t=[];let n=this._string(t);return null!==n?this.finishToken(e,n,t.join("")):(n=X[this.stream.peekChar()],void 0!==n?(this.stream.advance(1),this.finishToken(e,n)):this.stream.peekChar(0)===f&&this.stream.peekChar(1)===b?(this.stream.advance(2),this.finishToken(e,i.Includes)):this.stream.peekChar(0)===v&&this.stream.peekChar(1)===b?(this.stream.advance(2),this.finishToken(e,i.Dashmatch)):this.stream.peekChar(0)===x&&this.stream.peekChar(1)===b?(this.stream.advance(2),this.finishToken(e,i.SubstringOperator)):this.stream.peekChar(0)===g&&this.stream.peekChar(1)===b?(this.stream.advance(2),this.finishToken(e,i.PrefixOperator)):this.stream.peekChar(0)===N&&this.stream.peekChar(1)===b?(this.stream.advance(2),this.finishToken(e,i.SuffixOperator)):(this.stream.nextChar(),this.finishToken(e,i.Delim)))}trivia(){for(;;){const e=this.stream.pos();if(this._whitespace()){if(!this.ignoreWhitespace)return this.finishToken(e,i.Whitespace)}else{if(!this.comment())return null;if(!this.ignoreComment)return this.finishToken(e,i.Comment)}}}comment(){if(this.stream.advanceIfChars([D,x])){let e=!1,t=!1;return this.stream.advanceWhileChar((n=>t&&n===D?(e=!0,!1):(t=n===x,!0))),e&&this.stream.advance(1),!0}return!1}_number(){let e,t=0;return this.stream.peekChar()===j&&(t=1),e=this.stream.peekChar(t),e>=m&&e<=u&&(this.stream.advance(t+1),this.stream.advanceWhileChar((e=>e>=m&&e<=u||0===t&&e===j)),!0)}_newline(e){const t=this.stream.peekChar();switch(t){case M:case A:case T:return this.stream.advance(1),e.push(String.fromCharCode(t)),t===M&&this.stream.advanceIfChar(T)&&e.push("\n"),!0}return!1}_escape(e,t){let n=this.stream.peekChar();if(n===I){this.stream.advance(1),n=this.stream.peekChar();let i=0;for(;i<6&&(n>=m&&n<=u||n>=a&&n<=l||n>=h&&n<=d);)this.stream.advance(1),n=this.stream.peekChar(),i++;if(i>0){try{const t=parseInt(this.stream.substring(this.stream.pos()-i),16);t&&e.push(String.fromCharCode(t))}catch(e){}return n===O||n===P?this.stream.advance(1):this._newline([]),!0}if(n!==M&&n!==A&&n!==T)return this.stream.advance(1),e.push(String.fromCharCode(n)),!0;if(t)return this._newline(e)}return!1}_stringChar(e,t){const n=this.stream.peekChar();return 0!==n&&n!==e&&n!==I&&n!==M&&n!==A&&n!==T&&(this.stream.advance(1),t.push(String.fromCharCode(n)),!0)}_string(e){if(this.stream.peekChar()===L||this.stream.peekChar()===z){const t=this.stream.nextChar();for(e.push(String.fromCharCode(t));this._stringChar(t,e)||this._escape(e,!0););return this.stream.peekChar()===t?(this.stream.nextChar(),e.push(String.fromCharCode(t)),i.String):i.BadString}return null}_unquotedChar(e){const t=this.stream.peekChar();return 0!==t&&t!==I&&t!==L&&t!==z&&t!==C&&t!==_&&t!==O&&t!==P&&t!==T&&t!==A&&t!==M&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)}_unquotedString(e){let t=!1;for(;this._unquotedChar(e)||this._escape(e);)t=!0;return t}_whitespace(){return this.stream.advanceWhileChar((e=>e===O||e===P||e===T||e===A||e===M))>0}_name(e){let t=!1;for(;this._identChar(e)||this._escape(e);)t=!0;return t}ident(e){const t=this.stream.pos();if(this._minus(e)){if(this._minus(e)||this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}}else if(this._identFirstChar(e)||this._escape(e)){for(;this._identChar(e)||this._escape(e););return!0}return this.stream.goBackTo(t),!1}_identFirstChar(e){const t=this.stream.peekChar();return(t===w||t>=a&&t<=c||t>=h&&t<=p||t>=128&&t<=65535)&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)}_minus(e){const t=this.stream.peekChar();return t===y&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)}_identChar(e){const t=this.stream.peekChar();return(t===w||t===y||t>=a&&t<=c||t>=h&&t<=p||t>=m&&t<=u||t>=128&&t<=65535)&&(this.stream.advance(1),e.push(String.fromCharCode(t)),!0)}_unicodeRange(){if(this.stream.advanceIfChar(J)){const e=e=>e>=m&&e<=u||e>=a&&e<=l||e>=h&&e<=d,t=this.stream.advanceWhileChar(e)+this.stream.advanceWhileChar((e=>e===G));if(t>=1&&t<=6){if(!this.stream.advanceIfChar(y))return!0;{const t=this.stream.advanceWhileChar(e);if(t>=1&&t<=6)return!0}}}return!1}};function ie(e,t){if(e.length0?e.lastIndexOf(t)===n:0===n&&e===t}function se(e,t=!0){return e?e.length<140?e:e.slice(0,140)+(t?"…":""):""}function oe(e,t){let n="";for(;t>0;)1&~t||(n+=e),e+=e,t>>>=1;return n}function ae(e,t){let n=null;return!e||te.end?null:(e.accept((e=>-1===e.offset&&-1===e.length||e.offset<=t&&e.end>=t&&(n?e.length<=n.length&&(n=e):n=e,!0))),n)}function le(e,t){let n=ae(e,t);const i=[];for(;n;)i.unshift(n),n=n.parent;return i}(Z=Q||(Q={}))[Z.Undefined=0]="Undefined",Z[Z.Identifier=1]="Identifier",Z[Z.Stylesheet=2]="Stylesheet",Z[Z.Ruleset=3]="Ruleset",Z[Z.Selector=4]="Selector",Z[Z.SimpleSelector=5]="SimpleSelector",Z[Z.SelectorInterpolation=6]="SelectorInterpolation",Z[Z.SelectorCombinator=7]="SelectorCombinator",Z[Z.SelectorCombinatorParent=8]="SelectorCombinatorParent",Z[Z.SelectorCombinatorSibling=9]="SelectorCombinatorSibling",Z[Z.SelectorCombinatorAllSiblings=10]="SelectorCombinatorAllSiblings",Z[Z.SelectorCombinatorShadowPiercingDescendant=11]="SelectorCombinatorShadowPiercingDescendant",Z[Z.Page=12]="Page",Z[Z.PageBoxMarginBox=13]="PageBoxMarginBox",Z[Z.ClassSelector=14]="ClassSelector",Z[Z.IdentifierSelector=15]="IdentifierSelector",Z[Z.ElementNameSelector=16]="ElementNameSelector",Z[Z.PseudoSelector=17]="PseudoSelector",Z[Z.AttributeSelector=18]="AttributeSelector",Z[Z.Declaration=19]="Declaration",Z[Z.Declarations=20]="Declarations",Z[Z.Property=21]="Property",Z[Z.Expression=22]="Expression",Z[Z.BinaryExpression=23]="BinaryExpression",Z[Z.Term=24]="Term",Z[Z.Operator=25]="Operator",Z[Z.Value=26]="Value",Z[Z.StringLiteral=27]="StringLiteral",Z[Z.URILiteral=28]="URILiteral",Z[Z.EscapedValue=29]="EscapedValue",Z[Z.Function=30]="Function",Z[Z.NumericValue=31]="NumericValue",Z[Z.HexColorValue=32]="HexColorValue",Z[Z.RatioValue=33]="RatioValue",Z[Z.MixinDeclaration=34]="MixinDeclaration",Z[Z.MixinReference=35]="MixinReference",Z[Z.VariableName=36]="VariableName",Z[Z.VariableDeclaration=37]="VariableDeclaration",Z[Z.Prio=38]="Prio",Z[Z.Interpolation=39]="Interpolation",Z[Z.NestedProperties=40]="NestedProperties",Z[Z.ExtendsReference=41]="ExtendsReference",Z[Z.SelectorPlaceholder=42]="SelectorPlaceholder",Z[Z.Debug=43]="Debug",Z[Z.If=44]="If",Z[Z.Else=45]="Else",Z[Z.For=46]="For",Z[Z.Each=47]="Each",Z[Z.While=48]="While",Z[Z.MixinContentReference=49]="MixinContentReference",Z[Z.MixinContentDeclaration=50]="MixinContentDeclaration",Z[Z.Media=51]="Media",Z[Z.Keyframe=52]="Keyframe",Z[Z.FontFace=53]="FontFace",Z[Z.Import=54]="Import",Z[Z.Namespace=55]="Namespace",Z[Z.Invocation=56]="Invocation",Z[Z.FunctionDeclaration=57]="FunctionDeclaration",Z[Z.ReturnStatement=58]="ReturnStatement",Z[Z.MediaQuery=59]="MediaQuery",Z[Z.MediaCondition=60]="MediaCondition",Z[Z.MediaFeature=61]="MediaFeature",Z[Z.FunctionParameter=62]="FunctionParameter",Z[Z.FunctionArgument=63]="FunctionArgument",Z[Z.KeyframeSelector=64]="KeyframeSelector",Z[Z.ViewPort=65]="ViewPort",Z[Z.Document=66]="Document",Z[Z.AtApplyRule=67]="AtApplyRule",Z[Z.CustomPropertyDeclaration=68]="CustomPropertyDeclaration",Z[Z.CustomPropertySet=69]="CustomPropertySet",Z[Z.ListEntry=70]="ListEntry",Z[Z.Supports=71]="Supports",Z[Z.SupportsCondition=72]="SupportsCondition",Z[Z.NamespacePrefix=73]="NamespacePrefix",Z[Z.GridLine=74]="GridLine",Z[Z.Plugin=75]="Plugin",Z[Z.UnknownAtRule=76]="UnknownAtRule",Z[Z.Use=77]="Use",Z[Z.ModuleConfiguration=78]="ModuleConfiguration",Z[Z.Forward=79]="Forward",Z[Z.ForwardVisibility=80]="ForwardVisibility",Z[Z.Module=81]="Module",Z[Z.UnicodeRange=82]="UnicodeRange",Z[Z.Layer=83]="Layer",Z[Z.LayerNameList=84]="LayerNameList",Z[Z.LayerName=85]="LayerName",Z[Z.PropertyAtRule=86]="PropertyAtRule",Z[Z.Container=87]="Container",(te=ee||(ee={}))[te.Mixin=0]="Mixin",te[te.Rule=1]="Rule",te[te.Variable=2]="Variable",te[te.Function=3]="Function",te[te.Keyframe=4]="Keyframe",te[te.Unknown=5]="Unknown",te[te.Module=6]="Module",te[te.Forward=7]="Forward",te[te.ForwardVisibility=8]="ForwardVisibility",te[te.Property=9]="Property";var ce,he,de=class{get end(){return this.offset+this.length}constructor(e=-1,t=-1,n){this.parent=null,this.offset=e,this.length=t,n&&(this.nodeType=n)}set type(e){this.nodeType=e}get type(){return this.nodeType||Q.Undefined}getTextProvider(){let e=this;for(;e&&!e.textProvider;)e=e.parent;return e?e.textProvider:()=>"unknown"}getText(){return this.getTextProvider()(this.offset,this.length)}matches(e){return this.length===e.length&&this.getTextProvider()(this.offset,this.length)===e}startsWith(e){return this.length>=e.length&&this.getTextProvider()(this.offset,e.length)===e}endsWith(e){return this.length>=e.length&&this.getTextProvider()(this.end-e.length,e.length)===e}accept(e){if(e(this)&&this.children)for(const t of this.children)t.accept(e)}acceptVisitor(e){this.accept(e.visitNode.bind(e))}adoptChild(e,t=-1){if(e.parent&&e.parent.children){const t=e.parent.children.indexOf(e);t>=0&&e.parent.children.splice(t,1)}e.parent=this;let n=this.children;return n||(n=this.children=[]),-1!==t?n.splice(t,0,e):n.push(e),e}attachTo(e,t=-1){return e&&e.adoptChild(this,t),this}collectIssues(e){this.issues&&e.push.apply(e,this.issues)}addIssue(e){this.issues||(this.issues=[]),this.issues.push(e)}hasIssue(e){return Array.isArray(this.issues)&&this.issues.some((t=>t.getRule()===e))}isErroneous(e=!1){return!!(this.issues&&this.issues.length>0)||e&&Array.isArray(this.children)&&this.children.some((e=>e.isErroneous(!0)))}setNode(e,t,n=-1){return!!t&&(t.attachTo(this,n),this[e]=t,!0)}addChild(e){return!!e&&(this.children||(this.children=[]),e.attachTo(this),this.updateOffsetAndLength(e),!0)}updateOffsetAndLength(e){(e.offsetthis.end||-1===this.length)&&(this.length=t-this.offset)}hasChildren(){return!!this.children&&this.children.length>0}getChildren(){return this.children?this.children.slice(0):[]}getChild(e){return this.children&&e=0;n--)if(t=this.children[n],t.offset<=e)return t}return null}findChildAtOffset(e,t){const n=this.findFirstChildBeforeOffset(e);return n&&n.end>=e?t&&n.findChildAtOffset(e,!0)||n:null}encloses(e){return this.offset<=e.offset&&this.offset+this.length>=e.offset+e.length}getParent(){let e=this.parent;for(;e instanceof pe;)e=e.parent;return e}findParent(e){let t=this;for(;t&&t.type!==e;)t=t.parent;return t}findAParent(...e){let t=this;for(;t&&!e.some((e=>t.type===e));)t=t.parent;return t}setData(e,t){this.options||(this.options={}),this.options[e]=t}getData(e){return this.options&&this.options.hasOwnProperty(e)?this.options[e]:null}},pe=class extends de{constructor(e,t=-1){super(-1,-1),this.attachTo(e,t),this.offset=-1,this.length=-1}},me=class extends de{constructor(e,t){super(e,t)}get type(){return Q.UnicodeRange}setRangeStart(e){return this.setNode("rangeStart",e)}getRangeStart(){return this.rangeStart}setRangeEnd(e){return this.setNode("rangeEnd",e)}getRangeEnd(){return this.rangeEnd}},ue=class extends de{constructor(e,t){super(e,t),this.isCustomProperty=!1}get type(){return Q.Identifier}containsInterpolation(){return this.hasChildren()}},fe=class extends de{constructor(e,t){super(e,t)}get type(){return Q.Stylesheet}},ge=class extends de{constructor(e,t){super(e,t)}get type(){return Q.Declarations}},be=class extends de{constructor(e,t){super(e,t)}getDeclarations(){return this.declarations}setDeclarations(e){return this.setNode("declarations",e)}},ve=class extends be{constructor(e,t){super(e,t)}get type(){return Q.Ruleset}getSelectors(){return this.selectors||(this.selectors=new pe(this)),this.selectors}isNested(){return!!this.parent&&null!==this.parent.findParent(Q.Declarations)}},ye=class extends de{constructor(e,t){super(e,t)}get type(){return Q.Selector}},we=class extends de{constructor(e,t){super(e,t)}get type(){return Q.SimpleSelector}},Se=class extends de{constructor(e,t){super(e,t)}},xe=class extends be{constructor(e,t){super(e,t)}get type(){return Q.CustomPropertySet}},Ce=class e extends Se{constructor(e,t){super(e,t),this.property=null}get type(){return Q.Declaration}setProperty(e){return this.setNode("property",e)}getProperty(){return this.property}getFullPropertyName(){const t=this.property?this.property.getName():"unknown";if(this.parent instanceof ge&&this.parent.getParent()instanceof Pe){const n=this.parent.getParent().getParent();if(n instanceof e)return n.getFullPropertyName()+t}return t}getNonPrefixedPropertyName(){const e=this.getFullPropertyName();if(e&&"-"===e.charAt(0)){const t=e.indexOf("-",1);if(-1!==t)return e.substring(t+1)}return e}setValue(e){return this.setNode("value",e)}getValue(){return this.value}setNestedProperties(e){return this.setNode("nestedProperties",e)}getNestedProperties(){return this.nestedProperties}},_e=class extends Ce{constructor(e,t){super(e,t)}get type(){return Q.CustomPropertyDeclaration}setPropertySet(e){return this.setNode("propertySet",e)}getPropertySet(){return this.propertySet}},ke=class extends de{constructor(e,t){super(e,t)}get type(){return Q.Property}setIdentifier(e){return this.setNode("identifier",e)}getIdentifier(){return this.identifier}getName(){return function(e,t){const n=/[_\+]+$/.exec(e);return n&&n[0].length?e.substr(0,e.length-n[0].length):e}(this.getText())}isCustomProperty(){return!!this.identifier&&this.identifier.isCustomProperty}},Ee=class extends de{constructor(e,t){super(e,t)}get type(){return Q.Invocation}getArguments(){return this.arguments||(this.arguments=new pe(this)),this.arguments}},Fe=class extends Ee{constructor(e,t){super(e,t)}get type(){return Q.Function}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}},Re=class extends de{constructor(e,t){super(e,t)}get type(){return Q.FunctionParameter}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setDefaultValue(e){return this.setNode("defaultValue",e,0)}getDefaultValue(){return this.defaultValue}},Ne=class extends de{constructor(e,t){super(e,t)}get type(){return Q.FunctionArgument}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setValue(e){return this.setNode("value",e,0)}getValue(){return this.value}},Ie=class extends be{constructor(e,t){super(e,t)}get type(){return Q.If}setExpression(e){return this.setNode("expression",e,0)}setElseClause(e){return this.setNode("elseClause",e)}},De=class extends be{constructor(e,t){super(e,t)}get type(){return Q.For}setVariable(e){return this.setNode("variable",e,0)}},Te=class extends be{constructor(e,t){super(e,t)}get type(){return Q.Each}getVariables(){return this.variables||(this.variables=new pe(this)),this.variables}},Me=class extends be{constructor(e,t){super(e,t)}get type(){return Q.While}},Ae=class extends be{constructor(e,t){super(e,t)}get type(){return Q.Else}},ze=class extends be{constructor(e,t){super(e,t)}get type(){return Q.FunctionDeclaration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}getParameters(){return this.parameters||(this.parameters=new pe(this)),this.parameters}},Le=class extends be{constructor(e,t){super(e,t)}get type(){return Q.ViewPort}},Oe=class extends be{constructor(e,t){super(e,t)}get type(){return Q.FontFace}},Pe=class extends be{constructor(e,t){super(e,t)}get type(){return Q.NestedProperties}},We=class extends be{constructor(e,t){super(e,t)}get type(){return Q.Keyframe}setKeyword(e){return this.setNode("keyword",e,0)}getKeyword(){return this.keyword}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}},Ve=class extends be{constructor(e,t){super(e,t)}get type(){return Q.KeyframeSelector}},Ue=class extends de{constructor(e,t){super(e,t)}get type(){return Q.Import}setMedialist(e){return!!e&&(e.attachTo(this),!0)}},$e=class extends de{get type(){return Q.Use}getParameters(){return this.parameters||(this.parameters=new pe(this)),this.parameters}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}},qe=class extends de{get type(){return Q.ModuleConfiguration}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getName(){return this.identifier?this.identifier.getText():""}setValue(e){return this.setNode("value",e,0)}getValue(){return this.value}},Ke=class extends de{get type(){return Q.Forward}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}getMembers(){return this.members||(this.members=new pe(this)),this.members}getParameters(){return this.parameters||(this.parameters=new pe(this)),this.parameters}},Be=class extends de{get type(){return Q.ForwardVisibility}setIdentifier(e){return this.setNode("identifier",e,0)}getIdentifier(){return this.identifier}},je=class extends de{constructor(e,t){super(e,t)}get type(){return Q.Namespace}},He=class extends be{constructor(e,t){super(e,t)}get type(){return Q.Media}},Ge=class extends be{constructor(e,t){super(e,t)}get type(){return Q.Supports}},Je=class extends be{constructor(e,t){super(e,t)}get type(){return Q.Layer}setNames(e){return this.setNode("names",e)}getNames(){return this.names}},Xe=class extends be{constructor(e,t){super(e,t)}get type(){return Q.PropertyAtRule}setName(e){return!!e&&(e.attachTo(this),this.name=e,!0)}getName(){return this.name}},Ye=class extends be{constructor(e,t){super(e,t)}get type(){return Q.Document}},Qe=class extends be{constructor(e,t){super(e,t)}get type(){return Q.Container}},Ze=class extends de{constructor(e,t){super(e,t)}},et=class extends de{constructor(e,t){super(e,t)}get type(){return Q.MediaQuery}},tt=class extends de{constructor(e,t){super(e,t)}get type(){return Q.MediaCondition}},nt=class extends de{constructor(e,t){super(e,t)}get type(){return Q.MediaFeature}},it=class extends de{constructor(e,t){super(e,t)}get type(){return Q.SupportsCondition}},rt=class extends be{constructor(e,t){super(e,t)}get type(){return Q.Page}},st=class extends be{constructor(e,t){super(e,t)}get type(){return Q.PageBoxMarginBox}},ot=class extends de{constructor(e,t){super(e,t)}get type(){return Q.Expression}},at=class extends de{constructor(e,t){super(e,t)}get type(){return Q.BinaryExpression}setLeft(e){return this.setNode("left",e)}getLeft(){return this.left}setRight(e){return this.setNode("right",e)}getRight(){return this.right}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}},lt=class extends de{constructor(e,t){super(e,t)}get type(){return Q.Term}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}setExpression(e){return this.setNode("expression",e)}getExpression(){return this.expression}},ct=class extends de{constructor(e,t){super(e,t)}get type(){return Q.AttributeSelector}setNamespacePrefix(e){return this.setNode("namespacePrefix",e)}getNamespacePrefix(){return this.namespacePrefix}setIdentifier(e){return this.setNode("identifier",e)}getIdentifier(){return this.identifier}setOperator(e){return this.setNode("operator",e)}getOperator(){return this.operator}setValue(e){return this.setNode("value",e)}getValue(){return this.value}},ht=class extends de{constructor(e,t){super(e,t)}get type(){return Q.HexColorValue}},dt=class extends de{constructor(e,t){super(e,t)}get type(){return Q.RatioValue}},pt=".".charCodeAt(0),mt="0".charCodeAt(0),ut="9".charCodeAt(0),ft=class extends de{constructor(e,t){super(e,t)}get type(){return Q.NumericValue}getValue(){const e=this.getText();let t,n=0;for(let i=0,r=e.length;i0&&(n+=`/${Array.isArray(t.comment)?t.comment.join(""):t.comment}`),r=t.args??{}}return s=i,o=r,0===Object.keys(o).length?s:s.replace(Tt,((e,t)=>o[t]??e));var s,o}var Tt=/{([^}]+)}/g;var Mt,At,zt,Lt,Ot,Pt,Wt,Vt,Ut,$t,qt,Kt,Bt,jt,Ht,Gt,Jt,Xt,Yt,Qt,Zt,en,tn,nn,rn,sn,on,an,ln,cn,hn,dn,pn,mn,un,fn,gn,bn,vn,yn,wn,Sn,xn,Cn,_n,kn,En,Fn,Rn,Nn,In,Dn,Tn,Mn,An,zn,Ln,On,Pn,Wn,Vn,Un,$n,qn,Kn,Bn,jn,Hn,Gn,Jn,Xn,Yn,Qn,Zn,ei,ti,ni,ii,ri,si,oi,ai,li,ci,hi,di,pi,mi,ui,fi,gi,bi,vi,yi,wi,Si,xi,Ci,_i,ki,Ei,Fi,Ri,Ni,Ii,Di,Ti,Mi,Ai,zi,Li,Oi,Pi,Wi,Vi,Ui,$i,qi,Ki,Bi,ji,Hi,Gi,Ji,Xi,Yi,Qi,Zi,er,tr,nr,ir,rr,sr=class{constructor(e,t){this.id=e,this.message=t}},or={NumberExpected:new sr("css-numberexpected",Dt("number expected")),ConditionExpected:new sr("css-conditionexpected",Dt("condition expected")),RuleOrSelectorExpected:new sr("css-ruleorselectorexpected",Dt("at-rule or selector expected")),DotExpected:new sr("css-dotexpected",Dt("dot expected")),ColonExpected:new sr("css-colonexpected",Dt("colon expected")),SemiColonExpected:new sr("css-semicolonexpected",Dt("semi-colon expected")),TermExpected:new sr("css-termexpected",Dt("term expected")),ExpressionExpected:new sr("css-expressionexpected",Dt("expression expected")),OperatorExpected:new sr("css-operatorexpected",Dt("operator expected")),IdentifierExpected:new sr("css-identifierexpected",Dt("identifier expected")),PercentageExpected:new sr("css-percentageexpected",Dt("percentage expected")),URIOrStringExpected:new sr("css-uriorstringexpected",Dt("uri or string expected")),URIExpected:new sr("css-uriexpected",Dt("URI expected")),VariableNameExpected:new sr("css-varnameexpected",Dt("variable name expected")),VariableValueExpected:new sr("css-varvalueexpected",Dt("variable value expected")),PropertyValueExpected:new sr("css-propertyvalueexpected",Dt("property value expected")),LeftCurlyExpected:new sr("css-lcurlyexpected",Dt("{ expected")),RightCurlyExpected:new sr("css-rcurlyexpected",Dt("} expected")),LeftSquareBracketExpected:new sr("css-rbracketexpected",Dt("[ expected")),RightSquareBracketExpected:new sr("css-lbracketexpected",Dt("] expected")),LeftParenthesisExpected:new sr("css-lparentexpected",Dt("( expected")),RightParenthesisExpected:new sr("css-rparentexpected",Dt(") expected")),CommaExpected:new sr("css-commaexpected",Dt("comma expected")),PageDirectiveOrDeclarationExpected:new sr("css-pagedirordeclexpected",Dt("page directive or declaraton expected")),UnknownAtRule:new sr("css-unknownatrule",Dt("at-rule unknown")),UnknownKeyword:new sr("css-unknownkeyword",Dt("unknown keyword")),SelectorExpected:new sr("css-selectorexpected",Dt("selector expected")),StringLiteralExpected:new sr("css-stringliteralexpected",Dt("string literal expected")),WhitespaceExpected:new sr("css-whitespaceexpected",Dt("whitespace expected")),MediaQueryExpected:new sr("css-mediaqueryexpected",Dt("media query expected")),IdentifierOrWildcardExpected:new sr("css-idorwildcardexpected",Dt("identifier or wildcard expected")),WildcardExpected:new sr("css-wildcardexpected",Dt("wildcard expected")),IdentifierOrVariableExpected:new sr("css-idorvarexpected",Dt("identifier or variable expected"))};(Mt||(Mt={})).is=function(e){return"string"==typeof e},(At||(At={})).is=function(e){return"string"==typeof e},(Lt=zt||(zt={})).MIN_VALUE=-2147483648,Lt.MAX_VALUE=2147483647,Lt.is=function(e){return"number"==typeof e&&Lt.MIN_VALUE<=e&&e<=Lt.MAX_VALUE},(Pt=Ot||(Ot={})).MIN_VALUE=0,Pt.MAX_VALUE=2147483647,Pt.is=function(e){return"number"==typeof e&&Pt.MIN_VALUE<=e&&e<=Pt.MAX_VALUE},(Vt=Wt||(Wt={})).create=function(e,t){return e===Number.MAX_VALUE&&(e=Ot.MAX_VALUE),t===Number.MAX_VALUE&&(t=Ot.MAX_VALUE),{line:e,character:t}},Vt.is=function(e){let t=e;return ar.objectLiteral(t)&&ar.uinteger(t.line)&&ar.uinteger(t.character)},($t=Ut||(Ut={})).create=function(e,t,n,i){if(ar.uinteger(e)&&ar.uinteger(t)&&ar.uinteger(n)&&ar.uinteger(i))return{start:Wt.create(e,t),end:Wt.create(n,i)};if(Wt.is(e)&&Wt.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${i}]`)},$t.is=function(e){let t=e;return ar.objectLiteral(t)&&Wt.is(t.start)&&Wt.is(t.end)},(Kt=qt||(qt={})).create=function(e,t){return{uri:e,range:t}},Kt.is=function(e){let t=e;return ar.objectLiteral(t)&&Ut.is(t.range)&&(ar.string(t.uri)||ar.undefined(t.uri))},(jt=Bt||(Bt={})).create=function(e,t,n,i){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:i}},jt.is=function(e){let t=e;return ar.objectLiteral(t)&&Ut.is(t.targetRange)&&ar.string(t.targetUri)&&Ut.is(t.targetSelectionRange)&&(Ut.is(t.originSelectionRange)||ar.undefined(t.originSelectionRange))},(Gt=Ht||(Ht={})).create=function(e,t,n,i){return{red:e,green:t,blue:n,alpha:i}},Gt.is=function(e){const t=e;return ar.objectLiteral(t)&&ar.numberRange(t.red,0,1)&&ar.numberRange(t.green,0,1)&&ar.numberRange(t.blue,0,1)&&ar.numberRange(t.alpha,0,1)},(Xt=Jt||(Jt={})).create=function(e,t){return{range:e,color:t}},Xt.is=function(e){const t=e;return ar.objectLiteral(t)&&Ut.is(t.range)&&Ht.is(t.color)},(Qt=Yt||(Yt={})).create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},Qt.is=function(e){const t=e;return ar.objectLiteral(t)&&ar.string(t.label)&&(ar.undefined(t.textEdit)||fn.is(t))&&(ar.undefined(t.additionalTextEdits)||ar.typedArray(t.additionalTextEdits,fn.is))},(en=Zt||(Zt={})).Comment="comment",en.Imports="imports",en.Region="region",(nn=tn||(tn={})).create=function(e,t,n,i,r,s){const o={startLine:e,endLine:t};return ar.defined(n)&&(o.startCharacter=n),ar.defined(i)&&(o.endCharacter=i),ar.defined(r)&&(o.kind=r),ar.defined(s)&&(o.collapsedText=s),o},nn.is=function(e){const t=e;return ar.objectLiteral(t)&&ar.uinteger(t.startLine)&&ar.uinteger(t.startLine)&&(ar.undefined(t.startCharacter)||ar.uinteger(t.startCharacter))&&(ar.undefined(t.endCharacter)||ar.uinteger(t.endCharacter))&&(ar.undefined(t.kind)||ar.string(t.kind))},(sn=rn||(rn={})).create=function(e,t){return{location:e,message:t}},sn.is=function(e){let t=e;return ar.defined(t)&&qt.is(t.location)&&ar.string(t.message)},(an=on||(on={})).Error=1,an.Warning=2,an.Information=3,an.Hint=4,(cn=ln||(ln={})).Unnecessary=1,cn.Deprecated=2,(hn||(hn={})).is=function(e){const t=e;return ar.objectLiteral(t)&&ar.string(t.href)},(pn=dn||(dn={})).create=function(e,t,n,i,r,s){let o={range:e,message:t};return ar.defined(n)&&(o.severity=n),ar.defined(i)&&(o.code=i),ar.defined(r)&&(o.source=r),ar.defined(s)&&(o.relatedInformation=s),o},pn.is=function(e){var t;let n=e;return ar.defined(n)&&Ut.is(n.range)&&ar.string(n.message)&&(ar.number(n.severity)||ar.undefined(n.severity))&&(ar.integer(n.code)||ar.string(n.code)||ar.undefined(n.code))&&(ar.undefined(n.codeDescription)||ar.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(ar.string(n.source)||ar.undefined(n.source))&&(ar.undefined(n.relatedInformation)||ar.typedArray(n.relatedInformation,rn.is))},(un=mn||(mn={})).create=function(e,t,...n){let i={title:e,command:t};return ar.defined(n)&&n.length>0&&(i.arguments=n),i},un.is=function(e){let t=e;return ar.defined(t)&&ar.string(t.title)&&ar.string(t.command)},(gn=fn||(fn={})).replace=function(e,t){return{range:e,newText:t}},gn.insert=function(e,t){return{range:{start:e,end:e},newText:t}},gn.del=function(e){return{range:e,newText:""}},gn.is=function(e){const t=e;return ar.objectLiteral(t)&&ar.string(t.newText)&&Ut.is(t.range)},(vn=bn||(bn={})).create=function(e,t,n){const i={label:e};return void 0!==t&&(i.needsConfirmation=t),void 0!==n&&(i.description=n),i},vn.is=function(e){const t=e;return ar.objectLiteral(t)&&ar.string(t.label)&&(ar.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(ar.string(t.description)||void 0===t.description)},(yn||(yn={})).is=function(e){const t=e;return ar.string(t)},(Sn=wn||(wn={})).replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},Sn.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},Sn.del=function(e,t){return{range:e,newText:"",annotationId:t}},Sn.is=function(e){const t=e;return fn.is(t)&&(bn.is(t.annotationId)||yn.is(t.annotationId))},(Cn=xn||(xn={})).create=function(e,t){return{textDocument:e,edits:t}},Cn.is=function(e){let t=e;return ar.defined(t)&&zn.is(t.textDocument)&&Array.isArray(t.edits)},(kn=_n||(_n={})).create=function(e,t,n){let i={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},kn.is=function(e){let t=e;return t&&"create"===t.kind&&ar.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||ar.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ar.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||yn.is(t.annotationId))},(Fn=En||(En={})).create=function(e,t,n,i){let r={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),void 0!==i&&(r.annotationId=i),r},Fn.is=function(e){let t=e;return t&&"rename"===t.kind&&ar.string(t.oldUri)&&ar.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||ar.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||ar.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||yn.is(t.annotationId))},(Nn=Rn||(Rn={})).create=function(e,t,n){let i={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},Nn.is=function(e){let t=e;return t&&"delete"===t.kind&&ar.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||ar.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||ar.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||yn.is(t.annotationId))},(In||(In={})).is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>ar.string(e.kind)?_n.is(e)||En.is(e)||Rn.is(e):xn.is(e))))},(Tn=Dn||(Dn={})).create=function(e){return{uri:e}},Tn.is=function(e){let t=e;return ar.defined(t)&&ar.string(t.uri)},(An=Mn||(Mn={})).create=function(e,t){return{uri:e,version:t}},An.is=function(e){let t=e;return ar.defined(t)&&ar.string(t.uri)&&ar.integer(t.version)},(Ln=zn||(zn={})).create=function(e,t){return{uri:e,version:t}},Ln.is=function(e){let t=e;return ar.defined(t)&&ar.string(t.uri)&&(null===t.version||ar.integer(t.version))},(Pn=On||(On={})).create=function(e,t,n,i){return{uri:e,languageId:t,version:n,text:i}},Pn.is=function(e){let t=e;return ar.defined(t)&&ar.string(t.uri)&&ar.string(t.languageId)&&ar.integer(t.version)&&ar.string(t.text)},(Vn=Wn||(Wn={})).PlainText="plaintext",Vn.Markdown="markdown",Vn.is=function(e){const t=e;return t===Vn.PlainText||t===Vn.Markdown},(Un||(Un={})).is=function(e){const t=e;return ar.objectLiteral(e)&&Wn.is(t.kind)&&ar.string(t.value)},(qn=$n||($n={})).Text=1,qn.Method=2,qn.Function=3,qn.Constructor=4,qn.Field=5,qn.Variable=6,qn.Class=7,qn.Interface=8,qn.Module=9,qn.Property=10,qn.Unit=11,qn.Value=12,qn.Enum=13,qn.Keyword=14,qn.Snippet=15,qn.Color=16,qn.File=17,qn.Reference=18,qn.Folder=19,qn.EnumMember=20,qn.Constant=21,qn.Struct=22,qn.Event=23,qn.Operator=24,qn.TypeParameter=25,(Bn=Kn||(Kn={})).PlainText=1,Bn.Snippet=2,(jn||(jn={})).Deprecated=1,(Gn=Hn||(Hn={})).create=function(e,t,n){return{newText:e,insert:t,replace:n}},Gn.is=function(e){const t=e;return t&&ar.string(t.newText)&&Ut.is(t.insert)&&Ut.is(t.replace)},(Xn=Jn||(Jn={})).asIs=1,Xn.adjustIndentation=2,(Yn||(Yn={})).is=function(e){const t=e;return t&&(ar.string(t.detail)||void 0===t.detail)&&(ar.string(t.description)||void 0===t.description)},(Qn||(Qn={})).create=function(e){return{label:e}},(Zn||(Zn={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},(ti=ei||(ei={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},ti.is=function(e){const t=e;return ar.string(t)||ar.objectLiteral(t)&&ar.string(t.language)&&ar.string(t.value)},(ni||(ni={})).is=function(e){let t=e;return!!t&&ar.objectLiteral(t)&&(Un.is(t.contents)||ei.is(t.contents)||ar.typedArray(t.contents,ei.is))&&(void 0===e.range||Ut.is(e.range))},(ii||(ii={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(ri||(ri={})).create=function(e,t,...n){let i={label:e};return ar.defined(t)&&(i.documentation=t),ar.defined(n)?i.parameters=n:i.parameters=[],i},(oi=si||(si={})).Text=1,oi.Read=2,oi.Write=3,(ai||(ai={})).create=function(e,t){let n={range:e};return ar.number(t)&&(n.kind=t),n},(ci=li||(li={})).File=1,ci.Module=2,ci.Namespace=3,ci.Package=4,ci.Class=5,ci.Method=6,ci.Property=7,ci.Field=8,ci.Constructor=9,ci.Enum=10,ci.Interface=11,ci.Function=12,ci.Variable=13,ci.Constant=14,ci.String=15,ci.Number=16,ci.Boolean=17,ci.Array=18,ci.Object=19,ci.Key=20,ci.Null=21,ci.EnumMember=22,ci.Struct=23,ci.Event=24,ci.Operator=25,ci.TypeParameter=26,(hi||(hi={})).Deprecated=1,(di||(di={})).create=function(e,t,n,i,r){let s={name:e,kind:t,location:{uri:i,range:n}};return r&&(s.containerName=r),s},(pi||(pi={})).create=function(e,t,n,i){return void 0!==i?{name:e,kind:t,location:{uri:n,range:i}}:{name:e,kind:t,location:{uri:n}}},(ui=mi||(mi={})).create=function(e,t,n,i,r,s){let o={name:e,detail:t,kind:n,range:i,selectionRange:r};return void 0!==s&&(o.children=s),o},ui.is=function(e){let t=e;return t&&ar.string(t.name)&&ar.number(t.kind)&&Ut.is(t.range)&&Ut.is(t.selectionRange)&&(void 0===t.detail||ar.string(t.detail))&&(void 0===t.deprecated||ar.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))},(gi=fi||(fi={})).Empty="",gi.QuickFix="quickfix",gi.Refactor="refactor",gi.RefactorExtract="refactor.extract",gi.RefactorInline="refactor.inline",gi.RefactorRewrite="refactor.rewrite",gi.Source="source",gi.SourceOrganizeImports="source.organizeImports",gi.SourceFixAll="source.fixAll",(vi=bi||(bi={})).Invoked=1,vi.Automatic=2,(wi=yi||(yi={})).create=function(e,t,n){let i={diagnostics:e};return null!=t&&(i.only=t),null!=n&&(i.triggerKind=n),i},wi.is=function(e){let t=e;return ar.defined(t)&&ar.typedArray(t.diagnostics,dn.is)&&(void 0===t.only||ar.typedArray(t.only,ar.string))&&(void 0===t.triggerKind||t.triggerKind===bi.Invoked||t.triggerKind===bi.Automatic)},(xi=Si||(Si={})).create=function(e,t,n){let i={title:e},r=!0;return"string"==typeof t?(r=!1,i.kind=t):mn.is(t)?i.command=t:i.edit=t,r&&void 0!==n&&(i.kind=n),i},xi.is=function(e){let t=e;return t&&ar.string(t.title)&&(void 0===t.diagnostics||ar.typedArray(t.diagnostics,dn.is))&&(void 0===t.kind||ar.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||mn.is(t.command))&&(void 0===t.isPreferred||ar.boolean(t.isPreferred))&&(void 0===t.edit||In.is(t.edit))},(_i=Ci||(Ci={})).create=function(e,t){let n={range:e};return ar.defined(t)&&(n.data=t),n},_i.is=function(e){let t=e;return ar.defined(t)&&Ut.is(t.range)&&(ar.undefined(t.command)||mn.is(t.command))},(Ei=ki||(ki={})).create=function(e,t){return{tabSize:e,insertSpaces:t}},Ei.is=function(e){let t=e;return ar.defined(t)&&ar.uinteger(t.tabSize)&&ar.boolean(t.insertSpaces)},(Ri=Fi||(Fi={})).create=function(e,t,n){return{range:e,target:t,data:n}},Ri.is=function(e){let t=e;return ar.defined(t)&&Ut.is(t.range)&&(ar.undefined(t.target)||ar.string(t.target))},(Ii=Ni||(Ni={})).create=function(e,t){return{range:e,parent:t}},Ii.is=function(e){let t=e;return ar.objectLiteral(t)&&Ut.is(t.range)&&(void 0===t.parent||Ii.is(t.parent))},(Ti=Di||(Di={})).namespace="namespace",Ti.type="type",Ti.class="class",Ti.enum="enum",Ti.interface="interface",Ti.struct="struct",Ti.typeParameter="typeParameter",Ti.parameter="parameter",Ti.variable="variable",Ti.property="property",Ti.enumMember="enumMember",Ti.event="event",Ti.function="function",Ti.method="method",Ti.macro="macro",Ti.keyword="keyword",Ti.modifier="modifier",Ti.comment="comment",Ti.string="string",Ti.number="number",Ti.regexp="regexp",Ti.operator="operator",Ti.decorator="decorator",(Ai=Mi||(Mi={})).declaration="declaration",Ai.definition="definition",Ai.readonly="readonly",Ai.static="static",Ai.deprecated="deprecated",Ai.abstract="abstract",Ai.async="async",Ai.modification="modification",Ai.documentation="documentation",Ai.defaultLibrary="defaultLibrary",(zi||(zi={})).is=function(e){const t=e;return ar.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])},(Oi=Li||(Li={})).create=function(e,t){return{range:e,text:t}},Oi.is=function(e){const t=e;return null!=t&&Ut.is(t.range)&&ar.string(t.text)},(Wi=Pi||(Pi={})).create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},Wi.is=function(e){const t=e;return null!=t&&Ut.is(t.range)&&ar.boolean(t.caseSensitiveLookup)&&(ar.string(t.variableName)||void 0===t.variableName)},(Ui=Vi||(Vi={})).create=function(e,t){return{range:e,expression:t}},Ui.is=function(e){const t=e;return null!=t&&Ut.is(t.range)&&(ar.string(t.expression)||void 0===t.expression)},(qi=$i||($i={})).create=function(e,t){return{frameId:e,stoppedLocation:t}},qi.is=function(e){const t=e;return ar.defined(t)&&Ut.is(e.stoppedLocation)},(Bi=Ki||(Ki={})).Type=1,Bi.Parameter=2,Bi.is=function(e){return 1===e||2===e},(Hi=ji||(ji={})).create=function(e){return{value:e}},Hi.is=function(e){const t=e;return ar.objectLiteral(t)&&(void 0===t.tooltip||ar.string(t.tooltip)||Un.is(t.tooltip))&&(void 0===t.location||qt.is(t.location))&&(void 0===t.command||mn.is(t.command))},(Ji=Gi||(Gi={})).create=function(e,t,n){const i={position:e,label:t};return void 0!==n&&(i.kind=n),i},Ji.is=function(e){const t=e;return ar.objectLiteral(t)&&Wt.is(t.position)&&(ar.string(t.label)||ar.typedArray(t.label,ji.is))&&(void 0===t.kind||Ki.is(t.kind))&&void 0===t.textEdits||ar.typedArray(t.textEdits,fn.is)&&(void 0===t.tooltip||ar.string(t.tooltip)||Un.is(t.tooltip))&&(void 0===t.paddingLeft||ar.boolean(t.paddingLeft))&&(void 0===t.paddingRight||ar.boolean(t.paddingRight))},(Xi||(Xi={})).createSnippet=function(e){return{kind:"snippet",value:e}},(Yi||(Yi={})).create=function(e,t,n,i){return{insertText:e,filterText:t,range:n,command:i}},(Qi||(Qi={})).create=function(e){return{items:e}},(er=Zi||(Zi={})).Invoked=0,er.Automatic=1,(tr||(tr={})).create=function(e,t){return{range:e,text:t}},(nr||(nr={})).create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}},(ir||(ir={})).is=function(e){const t=e;return ar.objectLiteral(t)&&At.is(t.uri)&&ar.string(t.name)},function(e){function t(e,n){if(e.length<=1)return e;const i=e.length/2|0,r=e.slice(0,i),s=e.slice(i);t(r,n),t(s,n);let o=0,a=0,l=0;for(;o{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),s=i.length;for(let t=r.length-1;t>=0;t--){let n=r[t],o=e.offsetAt(n.range.start),a=e.offsetAt(n.range.end);if(!(a<=s))throw new Error("Overlapping edit");i=i.substring(0,o)+n.newText+i.substring(a,i.length),s=o}return i}}(rr||(rr={}));var ar,lr=class{constructor(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let i=0;i0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,i=t.length;if(0===i)return Wt.create(0,e);for(;ne?i=r:n=r+1}let r=n-1;return Wt.create(r,e-t[r])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],i=e.line+1e?i=r:n=r+1}let r=n-1;return{line:r,character:e-t[r]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],i=e.line+1n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function vr(e){const t=br(e.range);return t!==e.range?{newText:e.newText,range:t}:e}(hr=cr||(cr={})).create=function(e,t,n,i){return new ur(e,t,n,i)},hr.update=function(e,t,n){if(e instanceof ur)return e.update(t,n),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},hr.applyEdits=function(e,t){let n=e.getText(),i=fr(t.map(vr),((e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),r=0;const s=[];for(const t of i){let i=e.offsetAt(t.range.start);if(ir&&s.push(n.substring(r,i)),t.newText.length&&s.push(t.newText),r=e.offsetAt(t.range.end)}return s.push(n.substr(r)),s.join("")},(dr||(dr={})).LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Wn.Markdown,Wn.PlainText]}},hover:{contentFormat:[Wn.Markdown,Wn.PlainText]}}},(mr=pr||(pr={}))[mr.Unknown=0]="Unknown",mr[mr.File=1]="File",mr[mr.Directory=2]="Directory",mr[mr.SymbolicLink=64]="SymbolicLink";var yr={E:"Edge",FF:"Firefox",S:"Safari",C:"Chrome",IE:"IE",O:"Opera"};function wr(e){switch(e){case"experimental":return"⚠️ Property is experimental. Be cautious when using it.️\n\n";case"nonstandard":return"🚨️ Property is nonstandard. Avoid using it.\n\n";case"obsolete":return"🚨️️️ Property is obsolete. Avoid using it.\n\n";default:return""}}function Sr(e,t,n){let i;if(i=t?{kind:"markdown",value:_r(e,n)}:{kind:"plaintext",value:Cr(e,n)},""!==i.value)return i}function xr(e){return(e=e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")).replace(//g,">")}function Cr(e,t){if(!e.description||""===e.description)return"";if("string"!=typeof e.description)return e.description.value;let n="";if(!1!==t?.documentation){e.status&&(n+=wr(e.status)),n+=e.description;const t=kr(e.browsers);t&&(n+="\n("+t+")"),"syntax"in e&&(n+=`\n\nSyntax: ${e.syntax}`)}return e.references&&e.references.length>0&&!1!==t?.references&&(n.length>0&&(n+="\n\n"),n+=e.references.map((e=>`${e.name}: ${e.url}`)).join(" | ")),n}function _r(e,t){if(!e.description||""===e.description)return"";let n="";if(!1!==t?.documentation){e.status&&(n+=wr(e.status)),"string"==typeof e.description?n+=xr(e.description):n+=e.description.kind===Wn.Markdown?e.description.value:xr(e.description.value);const t=kr(e.browsers);t&&(n+="\n\n("+xr(t)+")"),"syntax"in e&&e.syntax&&(n+=`\n\nSyntax: ${xr(e.syntax)}`)}return e.references&&e.references.length>0&&!1!==t?.references&&(n.length>0&&(n+="\n\n"),n+=e.references.map((e=>`[${e.name}](${e.url})`)).join(" | ")),n}function kr(e=[]){return 0===e.length?null:e.map((e=>{let t="";const n=e.match(/([A-Z]+)(\d+)?/),i=n[1],r=n[2];return i in yr&&(t+=yr[i]),r&&(t+=" "+r),t})).join(", ")}var Er=/(^#([0-9A-F]{3}){1,2}$)|(^#([0-9A-F]{4}){1,2}$)/i,Fr=[{label:"rgb",func:"rgb($red, $green, $blue)",insertText:"rgb(${1:red}, ${2:green}, ${3:blue})",desc:Dt("Creates a Color from red, green, and blue values.")},{label:"rgba",func:"rgba($red, $green, $blue, $alpha)",insertText:"rgba(${1:red}, ${2:green}, ${3:blue}, ${4:alpha})",desc:Dt("Creates a Color from red, green, blue, and alpha values.")},{label:"rgb relative",func:"rgb(from $color $red $green $blue)",insertText:"rgb(from ${1:color} ${2:r} ${3:g} ${4:b})",desc:Dt("Creates a Color from the red, green, and blue values of another Color.")},{label:"hsl",func:"hsl($hue, $saturation, $lightness)",insertText:"hsl(${1:hue}, ${2:saturation}, ${3:lightness})",desc:Dt("Creates a Color from hue, saturation, and lightness values.")},{label:"hsla",func:"hsla($hue, $saturation, $lightness, $alpha)",insertText:"hsla(${1:hue}, ${2:saturation}, ${3:lightness}, ${4:alpha})",desc:Dt("Creates a Color from hue, saturation, lightness, and alpha values.")},{label:"hsl relative",func:"hsl(from $color $hue $saturation $lightness)",insertText:"hsl(from ${1:color} ${2:h} ${3:s} ${4:l})",desc:Dt("Creates a Color from the hue, saturation, and lightness values of another Color.")},{label:"hwb",func:"hwb($hue $white $black)",insertText:"hwb(${1:hue} ${2:white} ${3:black})",desc:Dt("Creates a Color from hue, white, and black values.")},{label:"hwb relative",func:"hwb(from $color $hue $white $black)",insertText:"hwb(from ${1:color} ${2:h} ${3:w} ${4:b})",desc:Dt("Creates a Color from the hue, white, and black values of another Color.")},{label:"lab",func:"lab($lightness $a $b)",insertText:"lab(${1:lightness} ${2:a} ${3:b})",desc:Dt("Creates a Color from lightness, a, and b values.")},{label:"lab relative",func:"lab(from $color $lightness $a $b)",insertText:"lab(from ${1:color} ${2:l} ${3:a} ${4:b})",desc:Dt("Creates a Color from the lightness, a, and b values of another Color.")},{label:"oklab",func:"oklab($lightness $a $b)",insertText:"oklab(${1:lightness} ${2:a} ${3:b})",desc:Dt("Creates a Color from lightness, a, and b values.")},{label:"oklab relative",func:"oklab(from $color $lightness $a $b)",insertText:"oklab(from ${1:color} ${2:l} ${3:a} ${4:b})",desc:Dt("Creates a Color from the lightness, a, and b values of another Color.")},{label:"lch",func:"lch($lightness $chroma $hue)",insertText:"lch(${1:lightness} ${2:chroma} ${3:hue})",desc:Dt("Creates a Color from lightness, chroma, and hue values.")},{label:"lch relative",func:"lch(from $color $lightness $chroma $hue)",insertText:"lch(from ${1:color} ${2:l} ${3:c} ${4:h})",desc:Dt("Creates a Color from the lightness, chroma, and hue values of another Color.")},{label:"oklch",func:"oklch($lightness $chroma $hue)",insertText:"oklch(${1:lightness} ${2:chroma} ${3:hue})",desc:Dt("Creates a Color from lightness, chroma, and hue values.")},{label:"oklch relative",func:"oklch(from $color $lightness $chroma $hue)",insertText:"oklch(from ${1:color} ${2:l} ${3:c} ${4:h})",desc:Dt("Creates a Color from the lightness, chroma, and hue values of another Color.")},{label:"color",func:"color($color-space $red $green $blue)",insertText:"color(${1|srgb,srgb-linear,display-p3,a98-rgb,prophoto-rgb,rec2020,xyx,xyz-d50,xyz-d65|} ${2:red} ${3:green} ${4:blue})",desc:Dt("Creates a Color in a specific color space from red, green, and blue values.")},{label:"color relative",func:"color(from $color $color-space $red $green $blue)",insertText:"color(from ${1:color} ${2|srgb,srgb-linear,display-p3,a98-rgb,prophoto-rgb,rec2020,xyx,xyz-d50,xyz-d65|} ${3:r} ${4:g} ${5:b})",desc:Dt("Creates a Color in a specific color space from the red, green, and blue values of another Color.")},{label:"color-mix",func:"color-mix(in $color-space, $color $percentage, $color $percentage)",insertText:"color-mix(in ${1|srgb,srgb-linear,lab,oklab,xyz,xyz-d50,xyz-d65|}, ${3:color} ${4:percentage}, ${5:color} ${6:percentage})",desc:Dt("Mix two colors together in a rectangular color space.")},{label:"color-mix hue",func:"color-mix(in $color-space $interpolation-method hue, $color $percentage, $color $percentage)",insertText:"color-mix(in ${1|hsl,hwb,lch,oklch|} ${2|shorter hue,longer hue,increasing hue,decreasing hue|}, ${3:color} ${4:percentage}, ${5:color} ${6:percentage})",desc:Dt("Mix two colors together in a polar color space.")}],Rr=/^(rgb|rgba|hsl|hsla|hwb)$/i,Nr={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rebeccapurple:"#663399",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Ir=new RegExp(`^(${Object.keys(Nr).join("|")})$`,"i"),Dr={currentColor:"The value of the 'color' property. The computed value of the 'currentColor' keyword is the computed value of the 'color' property. If the 'currentColor' keyword is set on the 'color' property itself, it is treated as 'color:inherit' at parse time.",transparent:"Fully transparent. This keyword can be considered a shorthand for rgba(0,0,0,0) which is its computed value."},Tr=new RegExp(`^(${Object.keys(Dr).join("|")})$`,"i");function Mr(e,t){const n=e.getText().match(/^([-+]?[0-9]*\.?[0-9]+)(%?)$/);if(n){n[2]&&(t=100);const e=parseFloat(n[1])/t;if(e>=0&&e<=1)return e}throw new Error}function Ar(e){const t=e.getText(),n=t.match(/^([-+]?[0-9]*\.?[0-9]+)(deg|rad|grad|turn)?$/);if(n)switch(n[2]){case"deg":return parseFloat(t)%360;case"rad":return 180*parseFloat(t)/Math.PI%360;case"grad":return.9*parseFloat(t)%360;case"turn":return 360*parseFloat(t)%360;default:if(void 0===n[2])return parseFloat(t)%360}throw new Error}function zr(e){return Er.test(e)||Ir.test(e)||Tr.test(e)}var Lr=48,Or=57,Pr=65,Wr=97,Vr=102;function Ur(e){return e=Wr&&e<=Vr?e-Wr+10:0)}function $r(e){if("#"!==e[0])return null;switch(e.length){case 4:return{red:17*Ur(e.charCodeAt(1))/255,green:17*Ur(e.charCodeAt(2))/255,blue:17*Ur(e.charCodeAt(3))/255,alpha:1};case 5:return{red:17*Ur(e.charCodeAt(1))/255,green:17*Ur(e.charCodeAt(2))/255,blue:17*Ur(e.charCodeAt(3))/255,alpha:17*Ur(e.charCodeAt(4))/255};case 7:return{red:(16*Ur(e.charCodeAt(1))+Ur(e.charCodeAt(2)))/255,green:(16*Ur(e.charCodeAt(3))+Ur(e.charCodeAt(4)))/255,blue:(16*Ur(e.charCodeAt(5))+Ur(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(16*Ur(e.charCodeAt(1))+Ur(e.charCodeAt(2)))/255,green:(16*Ur(e.charCodeAt(3))+Ur(e.charCodeAt(4)))/255,blue:(16*Ur(e.charCodeAt(5))+Ur(e.charCodeAt(6)))/255,alpha:(16*Ur(e.charCodeAt(7))+Ur(e.charCodeAt(8)))/255}}return null}function qr(e,t,n,i=1){if(0===t)return{red:n,green:n,blue:n,alpha:i};{const r=(e,t,n)=>{for(;n<0;)n+=6;for(;n>=6;)n-=6;return n<1?(t-e)*n+e:n<3?t:n<4?(t-e)*(4-n)+e:e},s=n<=.5?n*(t+1):n+t-n*t,o=2*n-s;return{red:r(o,s,2+(e/=60)),green:r(o,s,e),blue:r(o,s,e-2),alpha:i}}}function Kr(e){const t=e.red,n=e.green,i=e.blue,r=e.alpha,s=Math.max(t,n,i),o=Math.min(t,n,i);let a=0,l=0;const c=(o+s)/2,h=s-o;if(h>0){switch(l=Math.min(c<=.5?h/(2*c):h/(2-2*c),1),s){case t:a=(n-i)/h+(ne[t]))}function as(e){return void 0!==e}var ls=class{constructor(e=new ne){this.keyframeRegex=/^@(\-(webkit|ms|moz|o)\-)?keyframes$/i,this.scanner=e,this.token={type:i.EOF,offset:-1,len:0,text:""},this.prevToken=void 0}peekIdent(e){return i.Ident===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()}peekKeyword(e){return i.AtKeyword===this.token.type&&e.length===this.token.text.length&&e===this.token.text.toLowerCase()}peekDelim(e){return i.Delim===this.token.type&&e===this.token.text}peek(e){return e===this.token.type}peekOne(...e){return-1!==e.indexOf(this.token.type)}peekRegExp(e,t){return e===this.token.type&&t.test(this.token.text)}hasWhitespace(){return!!this.prevToken&&this.prevToken.offset+this.prevToken.len!==this.token.offset}consumeToken(){this.prevToken=this.token,this.token=this.scanner.scan()}acceptUnicodeRange(){const e=this.scanner.tryScanUnicode();return!!e&&(this.prevToken=e,this.token=this.scanner.scan(),!0)}mark(){return{prev:this.prevToken,curr:this.token,pos:this.scanner.pos()}}restoreAtMark(e){this.prevToken=e.prev,this.token=e.curr,this.scanner.goBackTo(e.pos)}try(e){const t=this.mark();return e()||(this.restoreAtMark(t),null)}acceptOneKeyword(e){if(i.AtKeyword===this.token.type)for(const t of e)if(t.length===this.token.text.length&&t===this.token.text.toLowerCase())return this.consumeToken(),!0;return!1}accept(e){return e===this.token.type&&(this.consumeToken(),!0)}acceptIdent(e){return!!this.peekIdent(e)&&(this.consumeToken(),!0)}acceptKeyword(e){return!!this.peekKeyword(e)&&(this.consumeToken(),!0)}acceptDelim(e){return!!this.peekDelim(e)&&(this.consumeToken(),!0)}acceptRegexp(e){return!!e.test(this.token.text)&&(this.consumeToken(),!0)}_parseRegexp(e){let t=this.createNode(Q.Identifier);do{}while(this.acceptRegexp(e));return this.finish(t)}acceptUnquotedString(){const e=this.scanner.pos();this.scanner.goBackTo(this.token.offset);const t=this.scanner.scanUnquotedString();return t?(this.token=t,this.consumeToken(),!0):(this.scanner.goBackTo(e),!1)}resync(e,t){for(;;){if(e&&-1!==e.indexOf(this.token.type))return this.consumeToken(),!0;if(t&&-1!==t.indexOf(this.token.type))return!0;if(this.token.type===i.EOF)return!1;this.token=this.scanner.scan()}}createNode(e){return new de(this.token.offset,this.token.len,e)}create(e){return new e(this.token.offset,this.token.len)}finish(e,t,n,i){if(!(e instanceof pe)&&(t&&this.markError(e,t,n,i),this.prevToken)){const t=this.prevToken.offset+this.prevToken.len;e.length=t>e.offset?t-e.offset:0}return e}markError(e,t,n,i){this.token!==this.lastErrorToken&&(e.addIssue(new Nt(e,t,ce.Error,void 0,this.token.offset,this.token.len)),this.lastErrorToken=this.token),(n||i)&&this.resync(n,i)}parseStylesheet(e){const t=e.version,n=e.getText();return this.internalParse(n,this._parseStylesheet,((i,r)=>{if(e.version!==t)throw new Error("Underlying model has changed, AST is no longer valid");return n.substr(i,r)}))}internalParse(e,t,n){this.scanner.setSource(e),this.token=this.scanner.scan();const i=t.bind(this)();return i&&(i.textProvider=n||((t,n)=>e.substr(t,n))),i}_parseStylesheet(){const e=this.create(fe);for(;e.addChild(this._parseStylesheetStart()););let t=!1;do{let n=!1;do{n=!1;const r=this._parseStylesheetStatement();for(r&&(e.addChild(r),n=!0,t=!1,this.peek(i.EOF)||!this._needsSemicolonAfter(r)||this.accept(i.SemiColon)||this.markError(e,or.SemiColonExpected));this.accept(i.SemiColon)||this.accept(i.CDO)||this.accept(i.CDC);)n=!0,t=!1}while(n);if(this.peek(i.EOF))break;t||(this.peek(i.AtKeyword)?this.markError(e,or.UnknownAtRule):this.markError(e,or.RuleOrSelectorExpected),t=!0),this.consumeToken()}while(!this.peek(i.EOF));return this.finish(e)}_parseStylesheetStart(){return this._parseCharset()}_parseStylesheetStatement(e=!1){return this.peek(i.AtKeyword)?this._parseStylesheetAtStatement(e):this._parseRuleset(e)}_parseStylesheetAtStatement(e=!1){return this._parseImport()||this._parseMedia(e)||this._parsePage()||this._parseFontFace()||this._parseKeyframe()||this._parseSupports(e)||this._parseLayer(e)||this._parsePropertyAtRule()||this._parseViewPort()||this._parseNamespace()||this._parseDocument()||this._parseContainer(e)||this._parseUnknownAtRule()}_tryParseRuleset(e){const t=this.mark();if(this._parseSelector(e)){for(;this.accept(i.Comma)&&this._parseSelector(e););if(this.accept(i.CurlyL))return this.restoreAtMark(t),this._parseRuleset(e)}return this.restoreAtMark(t),null}_parseRuleset(e=!1){const t=this.create(ve),n=t.getSelectors();if(!n.addChild(this._parseSelector(e)))return null;for(;this.accept(i.Comma);)if(!n.addChild(this._parseSelector(e)))return this.finish(t,or.SelectorExpected);return this._parseBody(t,this._parseRuleSetDeclaration.bind(this))}_parseRuleSetDeclarationAtStatement(){return this._parseMedia(!0)||this._parseSupports(!0)||this._parseLayer(!0)||this._parseContainer(!0)||this._parseUnknownAtRule()}_parseRuleSetDeclaration(){return this.peek(i.AtKeyword)?this._parseRuleSetDeclarationAtStatement():this.peek(i.Ident)?this._tryParseRuleset(!0)||this._parseDeclaration():this._parseRuleset(!0)}_needsSemicolonAfter(e){switch(e.type){case Q.Keyframe:case Q.ViewPort:case Q.Media:case Q.Ruleset:case Q.Namespace:case Q.If:case Q.For:case Q.Each:case Q.While:case Q.MixinDeclaration:case Q.FunctionDeclaration:case Q.MixinContentDeclaration:return!1;case Q.ExtendsReference:case Q.MixinContentReference:case Q.ReturnStatement:case Q.MediaQuery:case Q.Debug:case Q.Import:case Q.AtApplyRule:case Q.CustomPropertyDeclaration:return!0;case Q.VariableDeclaration:return e.needsSemicolon;case Q.MixinReference:return!e.getContent();case Q.Declaration:return!e.getNestedProperties()}return!1}_parseDeclarations(e){const t=this.create(ge);if(!this.accept(i.CurlyL))return null;let n=e();for(;t.addChild(n)&&!this.peek(i.CurlyR);){if(this._needsSemicolonAfter(n)&&!this.accept(i.SemiColon))return this.finish(t,or.SemiColonExpected,[i.SemiColon,i.CurlyR]);for(n&&this.prevToken&&this.prevToken.type===i.SemiColon&&(n.semicolonPosition=this.prevToken.offset);this.accept(i.SemiColon););n=e()}return this.accept(i.CurlyR)?this.finish(t):this.finish(t,or.RightCurlyExpected,[i.CurlyR,i.SemiColon])}_parseBody(e,t){return e.setDeclarations(this._parseDeclarations(t))?this.finish(e):this.finish(e,or.LeftCurlyExpected,[i.CurlyR,i.SemiColon])}_parseSelector(e){const t=this.create(ye);let n=!1;for(e&&(n=t.addChild(this._parseCombinator()));t.addChild(this._parseSimpleSelector());)n=!0,t.addChild(this._parseCombinator());return n?this.finish(t):null}_parseDeclaration(e){const t=this._tryParseCustomPropertyDeclaration(e);if(t)return t;const n=this.create(Ce);return n.setProperty(this._parseProperty())?this.accept(i.Colon)?(this.prevToken&&(n.colonPosition=this.prevToken.offset),n.setValue(this._parseExpr())?(n.addChild(this._parsePrio()),this.peek(i.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)):this.finish(n,or.PropertyValueExpected)):this.finish(n,or.ColonExpected,[i.Colon],e||[i.SemiColon]):null}_tryParseCustomPropertyDeclaration(e){if(!this.peekRegExp(i.Ident,/^--/))return null;const t=this.create(_e);if(!t.setProperty(this._parseProperty()))return null;if(!this.accept(i.Colon))return this.finish(t,or.ColonExpected,[i.Colon]);this.prevToken&&(t.colonPosition=this.prevToken.offset);const n=this.mark();if(this.peek(i.CurlyL)){const e=this.create(xe),r=this._parseDeclarations(this._parseRuleSetDeclaration.bind(this));if(e.setDeclarations(r)&&!r.isErroneous(!0)&&(e.addChild(this._parsePrio()),this.peek(i.SemiColon)))return this.finish(e),t.setPropertySet(e),t.semicolonPosition=this.token.offset,this.finish(t);this.restoreAtMark(n)}const r=this._parseExpr();return r&&!r.isErroneous(!0)&&(this._parsePrio(),this.peekOne(...e||[],i.SemiColon,i.EOF))?(t.setValue(r),this.peek(i.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)):(this.restoreAtMark(n),t.addChild(this._parseCustomPropertyValue(e)),t.addChild(this._parsePrio()),as(t.colonPosition)&&this.token.offset===t.colonPosition+1?this.finish(t,or.PropertyValueExpected):this.finish(t))}_parseCustomPropertyValue(e=[i.CurlyR]){const t=this.create(de),n=()=>-1!==e.indexOf(this.token.type);let r=0,s=0,o=0;e:for(;;){switch(this.token.type){case i.SemiColon:case i.Exclamation:if(0===r&&0===s&&0===o)break e;break;case i.CurlyL:r++;break;case i.CurlyR:if(r--,r<0){if(n()&&0===s&&0===o)break e;return this.finish(t,or.LeftCurlyExpected)}break;case i.ParenthesisL:s++;break;case i.ParenthesisR:if(s--,s<0){if(n()&&0===o&&0===r)break e;return this.finish(t,or.LeftParenthesisExpected)}break;case i.BracketL:o++;break;case i.BracketR:if(o--,o<0)return this.finish(t,or.LeftSquareBracketExpected);break;case i.BadString:break e;case i.EOF:let e=or.RightCurlyExpected;return o>0?e=or.RightSquareBracketExpected:s>0&&(e=or.RightParenthesisExpected),this.finish(t,e)}this.consumeToken()}return this.finish(t)}_tryToParseDeclaration(e){const t=this.mark();return this._parseProperty()&&this.accept(i.Colon)?(this.restoreAtMark(t),this._parseDeclaration(e)):(this.restoreAtMark(t),null)}_parseProperty(){const e=this.create(ke),t=this.mark();return(this.acceptDelim("*")||this.acceptDelim("_"))&&this.hasWhitespace()?(this.restoreAtMark(t),null):e.setIdentifier(this._parsePropertyIdentifier())?this.finish(e):null}_parsePropertyIdentifier(){return this._parseIdent()}_parseCharset(){if(!this.peek(i.Charset))return null;const e=this.create(de);return this.consumeToken(),this.accept(i.String)?this.accept(i.SemiColon)?this.finish(e):this.finish(e,or.SemiColonExpected):this.finish(e,or.IdentifierExpected)}_parseImport(){if(!this.peekKeyword("@import"))return null;const e=this.create(Ue);return this.consumeToken(),e.addChild(this._parseURILiteral())||e.addChild(this._parseStringLiteral())?this._completeParseImport(e):this.finish(e,or.URIOrStringExpected)}_completeParseImport(e){if(this.acceptIdent("layer")&&this.accept(i.ParenthesisL)){if(!e.addChild(this._parseLayerName()))return this.finish(e,or.IdentifierExpected,[i.SemiColon]);if(!this.accept(i.ParenthesisR))return this.finish(e,or.RightParenthesisExpected,[i.ParenthesisR],[])}return this.acceptIdent("supports")&&this.accept(i.ParenthesisL)&&(e.addChild(this._tryToParseDeclaration()||this._parseSupportsCondition()),!this.accept(i.ParenthesisR))?this.finish(e,or.RightParenthesisExpected,[i.ParenthesisR],[]):(this.peek(i.SemiColon)||this.peek(i.EOF)||e.setMedialist(this._parseMediaQueryList()),this.finish(e))}_parseNamespace(){if(!this.peekKeyword("@namespace"))return null;const e=this.create(je);return this.consumeToken(),e.addChild(this._parseURILiteral())||(e.addChild(this._parseIdent()),e.addChild(this._parseURILiteral())||e.addChild(this._parseStringLiteral()))?this.accept(i.SemiColon)?this.finish(e):this.finish(e,or.SemiColonExpected):this.finish(e,or.URIExpected,[i.SemiColon])}_parseFontFace(){if(!this.peekKeyword("@font-face"))return null;const e=this.create(Oe);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseViewPort(){if(!this.peekKeyword("@-ms-viewport")&&!this.peekKeyword("@-o-viewport")&&!this.peekKeyword("@viewport"))return null;const e=this.create(Le);return this.consumeToken(),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseKeyframe(){if(!this.peekRegExp(i.AtKeyword,this.keyframeRegex))return null;const e=this.create(We),t=this.create(de);return this.consumeToken(),e.setKeyword(this.finish(t)),t.matches("@-ms-keyframes")&&this.markError(t,or.UnknownKeyword),e.setIdentifier(this._parseKeyframeIdent())?this._parseBody(e,this._parseKeyframeSelector.bind(this)):this.finish(e,or.IdentifierExpected,[i.CurlyR])}_parseKeyframeIdent(){return this._parseIdent([ee.Keyframe])}_parseKeyframeSelector(){const e=this.create(Ve);let t=!1;if(e.addChild(this._parseIdent())&&(t=!0),this.accept(i.Percentage)&&(t=!0),!t)return null;for(;this.accept(i.Comma);)if(t=!1,e.addChild(this._parseIdent())&&(t=!0),this.accept(i.Percentage)&&(t=!0),!t)return this.finish(e,or.PercentageExpected);return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_tryParseKeyframeSelector(){const e=this.create(Ve),t=this.mark();let n=!1;if(e.addChild(this._parseIdent())&&(n=!0),this.accept(i.Percentage)&&(n=!0),!n)return null;for(;this.accept(i.Comma);)if(n=!1,e.addChild(this._parseIdent())&&(n=!0),this.accept(i.Percentage)&&(n=!0),!n)return this.restoreAtMark(t),null;return this.peek(i.CurlyL)?this._parseBody(e,this._parseRuleSetDeclaration.bind(this)):(this.restoreAtMark(t),null)}_parsePropertyAtRule(){if(!this.peekKeyword("@property"))return null;const e=this.create(Xe);return this.consumeToken(),this.peekRegExp(i.Ident,/^--/)&&e.setName(this._parseIdent([ee.Property]))?this._parseBody(e,this._parseDeclaration.bind(this)):this.finish(e,or.IdentifierExpected)}_parseLayer(e=!1){if(!this.peekKeyword("@layer"))return null;const t=this.create(Je);this.consumeToken();const n=this._parseLayerNameList();return n&&t.setNames(n),n&&1!==n.getChildren().length||!this.peek(i.CurlyL)?this.accept(i.SemiColon)?this.finish(t):this.finish(t,or.SemiColonExpected):this._parseBody(t,this._parseLayerDeclaration.bind(this,e))}_parseLayerDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseLayerNameList(){const e=this.createNode(Q.LayerNameList);if(!e.addChild(this._parseLayerName()))return null;for(;this.accept(i.Comma);)if(!e.addChild(this._parseLayerName()))return this.finish(e,or.IdentifierExpected);return this.finish(e)}_parseLayerName(){const e=this.createNode(Q.LayerName);if(!e.addChild(this._parseIdent()))return null;for(;!this.hasWhitespace()&&this.acceptDelim(".");)if(this.hasWhitespace()||!e.addChild(this._parseIdent()))return this.finish(e,or.IdentifierExpected);return this.finish(e)}_parseSupports(e=!1){if(!this.peekKeyword("@supports"))return null;const t=this.create(Ge);return this.consumeToken(),t.addChild(this._parseSupportsCondition()),this._parseBody(t,this._parseSupportsDeclaration.bind(this,e))}_parseSupportsDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseSupportsCondition(){const e=this.create(it);if(this.acceptIdent("not"))e.addChild(this._parseSupportsConditionInParens());else if(e.addChild(this._parseSupportsConditionInParens()),this.peekRegExp(i.Ident,/^(and|or)$/i)){const t=this.token.text.toLowerCase();for(;this.acceptIdent(t);)e.addChild(this._parseSupportsConditionInParens())}return this.finish(e)}_parseSupportsConditionInParens(){const e=this.create(it);if(this.accept(i.ParenthesisL))return this.prevToken&&(e.lParent=this.prevToken.offset),e.addChild(this._tryToParseDeclaration([i.ParenthesisR]))||this._parseSupportsCondition()?this.accept(i.ParenthesisR)?(this.prevToken&&(e.rParent=this.prevToken.offset),this.finish(e)):this.finish(e,or.RightParenthesisExpected,[i.ParenthesisR],[]):this.finish(e,or.ConditionExpected);if(this.peek(i.Ident)){const t=this.mark();if(this.consumeToken(),!this.hasWhitespace()&&this.accept(i.ParenthesisL)){let t=1;for(;this.token.type!==i.EOF&&0!==t;)this.token.type===i.ParenthesisL?t++:this.token.type===i.ParenthesisR&&t--,this.consumeToken();return this.finish(e)}this.restoreAtMark(t)}return this.finish(e,or.LeftParenthesisExpected,[],[i.ParenthesisL])}_parseMediaDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseMedia(e=!1){if(!this.peekKeyword("@media"))return null;const t=this.create(He);return this.consumeToken(),t.addChild(this._parseMediaQueryList())?this._parseBody(t,this._parseMediaDeclaration.bind(this,e)):this.finish(t,or.MediaQueryExpected)}_parseMediaQueryList(){const e=this.create(Ze);if(!e.addChild(this._parseMediaQuery()))return this.finish(e,or.MediaQueryExpected);for(;this.accept(i.Comma);)if(!e.addChild(this._parseMediaQuery()))return this.finish(e,or.MediaQueryExpected);return this.finish(e)}_parseMediaQuery(){const e=this.create(et),t=this.mark();if(this.acceptIdent("not"),this.peek(i.ParenthesisL))this.restoreAtMark(t),e.addChild(this._parseMediaCondition());else{if(this.acceptIdent("only"),!e.addChild(this._parseIdent()))return null;this.acceptIdent("and")&&e.addChild(this._parseMediaCondition())}return this.finish(e)}_parseRatio(){const e=this.mark(),t=this.create(dt);return this._parseNumeric()?this.acceptDelim("/")?this._parseNumeric()?this.finish(t):this.finish(t,or.NumberExpected):(this.restoreAtMark(e),null):null}_parseMediaCondition(){const e=this.create(tt);this.acceptIdent("not");let t=!0;for(;t;){if(!this.accept(i.ParenthesisL))return this.finish(e,or.LeftParenthesisExpected,[],[i.CurlyL]);if(this.peek(i.ParenthesisL)||this.peekIdent("not")?e.addChild(this._parseMediaCondition()):e.addChild(this._parseMediaFeature()),!this.accept(i.ParenthesisR))return this.finish(e,or.RightParenthesisExpected,[],[i.CurlyL]);t=this.acceptIdent("and")||this.acceptIdent("or")}return this.finish(e)}_parseMediaFeature(){const e=[i.ParenthesisR],t=this.create(nt);if(t.addChild(this._parseMediaFeatureName())){if(this.accept(i.Colon)){if(!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,or.TermExpected,[],e)}else if(this._parseMediaFeatureRangeOperator()){if(!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,or.TermExpected,[],e);if(this._parseMediaFeatureRangeOperator()&&!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,or.TermExpected,[],e)}}else{if(!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,or.IdentifierExpected,[],e);if(!this._parseMediaFeatureRangeOperator())return this.finish(t,or.OperatorExpected,[],e);if(!t.addChild(this._parseMediaFeatureName()))return this.finish(t,or.IdentifierExpected,[],e);if(this._parseMediaFeatureRangeOperator()&&!t.addChild(this._parseMediaFeatureValue()))return this.finish(t,or.TermExpected,[],e)}return this.finish(t)}_parseMediaFeatureRangeOperator(){return this.acceptDelim("<")||this.acceptDelim(">")?(this.hasWhitespace()||this.acceptDelim("="),!0):!!this.acceptDelim("=")}_parseMediaFeatureName(){return this._parseIdent()}_parseMediaFeatureValue(){return this._parseRatio()||this._parseTermExpression()}_parseMedium(){const e=this.create(de);return e.addChild(this._parseIdent())?this.finish(e):null}_parsePageDeclaration(){return this._parsePageMarginBox()||this._parseRuleSetDeclaration()}_parsePage(){if(!this.peekKeyword("@page"))return null;const e=this.create(rt);if(this.consumeToken(),e.addChild(this._parsePageSelector()))for(;this.accept(i.Comma);)if(!e.addChild(this._parsePageSelector()))return this.finish(e,or.IdentifierExpected);return this._parseBody(e,this._parsePageDeclaration.bind(this))}_parsePageMarginBox(){if(!this.peek(i.AtKeyword))return null;const e=this.create(st);return this.acceptOneKeyword(ss)||this.markError(e,or.UnknownAtRule,[],[i.CurlyL]),this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parsePageSelector(){if(!this.peek(i.Ident)&&!this.peek(i.Colon))return null;const e=this.create(de);return e.addChild(this._parseIdent()),this.accept(i.Colon)&&!e.addChild(this._parseIdent())?this.finish(e,or.IdentifierExpected):this.finish(e)}_parseDocument(){if(!this.peekKeyword("@-moz-document"))return null;const e=this.create(Ye);return this.consumeToken(),this.resync([],[i.CurlyL]),this._parseBody(e,this._parseStylesheetStatement.bind(this))}_parseContainerDeclaration(e=!1){return e?this._tryParseRuleset(!0)||this._tryToParseDeclaration()||this._parseStylesheetStatement(!0):this._parseStylesheetStatement(!1)}_parseContainer(e=!1){if(!this.peekKeyword("@container"))return null;const t=this.create(Qe);return this.consumeToken(),t.addChild(this._parseIdent()),t.addChild(this._parseContainerQuery()),this._parseBody(t,this._parseContainerDeclaration.bind(this,e))}_parseContainerQuery(){const e=this.create(de);if(this.acceptIdent("not"))e.addChild(this._parseContainerQueryInParens());else if(e.addChild(this._parseContainerQueryInParens()),this.peekIdent("and"))for(;this.acceptIdent("and");)e.addChild(this._parseContainerQueryInParens());else if(this.peekIdent("or"))for(;this.acceptIdent("or");)e.addChild(this._parseContainerQueryInParens());return this.finish(e)}_parseContainerQueryInParens(){const e=this.create(de);if(this.accept(i.ParenthesisL)){if(this.peekIdent("not")||this.peek(i.ParenthesisL)?e.addChild(this._parseContainerQuery()):e.addChild(this._parseMediaFeature()),!this.accept(i.ParenthesisR))return this.finish(e,or.RightParenthesisExpected,[],[i.CurlyL])}else{if(!this.acceptIdent("style"))return this.finish(e,or.LeftParenthesisExpected,[],[i.CurlyL]);if(this.hasWhitespace()||!this.accept(i.ParenthesisL))return this.finish(e,or.LeftParenthesisExpected,[],[i.CurlyL]);if(e.addChild(this._parseStyleQuery()),!this.accept(i.ParenthesisR))return this.finish(e,or.RightParenthesisExpected,[],[i.CurlyL])}return this.finish(e)}_parseStyleQuery(){const e=this.create(de);if(this.acceptIdent("not"))e.addChild(this._parseStyleInParens());else if(this.peek(i.ParenthesisL)){if(e.addChild(this._parseStyleInParens()),this.peekIdent("and"))for(;this.acceptIdent("and");)e.addChild(this._parseStyleInParens());else if(this.peekIdent("or"))for(;this.acceptIdent("or");)e.addChild(this._parseStyleInParens())}else e.addChild(this._parseDeclaration([i.ParenthesisR]));return this.finish(e)}_parseStyleInParens(){const e=this.create(de);return this.accept(i.ParenthesisL)?(e.addChild(this._parseStyleQuery()),this.accept(i.ParenthesisR)?this.finish(e):this.finish(e,or.RightParenthesisExpected,[],[i.CurlyL])):this.finish(e,or.LeftParenthesisExpected,[],[i.CurlyL])}_parseUnknownAtRule(){if(!this.peek(i.AtKeyword))return null;const e=this.create(_t);e.addChild(this._parseUnknownAtRuleName());let t=0,n=0,r=0,s=0;e:for(;;){switch(this.token.type){case i.SemiColon:if(0===n&&0===r&&0===s)break e;break;case i.EOF:return n>0?this.finish(e,or.RightCurlyExpected):s>0?this.finish(e,or.RightSquareBracketExpected):r>0?this.finish(e,or.RightParenthesisExpected):this.finish(e);case i.CurlyL:t++,n++;break;case i.CurlyR:if(n--,t>0&&0===n){if(this.consumeToken(),s>0)return this.finish(e,or.RightSquareBracketExpected);if(r>0)return this.finish(e,or.RightParenthesisExpected);break e}if(n<0){if(0===r&&0===s)break e;return this.finish(e,or.LeftCurlyExpected)}break;case i.ParenthesisL:r++;break;case i.ParenthesisR:if(r--,r<0)return this.finish(e,or.LeftParenthesisExpected);break;case i.BracketL:s++;break;case i.BracketR:if(s--,s<0)return this.finish(e,or.LeftSquareBracketExpected)}this.consumeToken()}return e}_parseUnknownAtRuleName(){const e=this.create(de);return this.accept(i.AtKeyword)?this.finish(e):e}_parseOperator(){if(this.peekDelim("/")||this.peekDelim("*")||this.peekDelim("+")||this.peekDelim("-")||this.peek(i.Dashmatch)||this.peek(i.Includes)||this.peek(i.SubstringOperator)||this.peek(i.PrefixOperator)||this.peek(i.SuffixOperator)||this.peekDelim("=")){const e=this.createNode(Q.Operator);return this.consumeToken(),this.finish(e)}return null}_parseUnaryOperator(){if(!this.peekDelim("+")&&!this.peekDelim("-"))return null;const e=this.create(de);return this.consumeToken(),this.finish(e)}_parseCombinator(){if(this.peekDelim(">")){const e=this.create(de);this.consumeToken();const t=this.mark();if(!this.hasWhitespace()&&this.acceptDelim(">")){if(!this.hasWhitespace()&&this.acceptDelim(">"))return e.type=Q.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return e.type=Q.SelectorCombinatorParent,this.finish(e)}if(this.peekDelim("+")){const e=this.create(de);return this.consumeToken(),e.type=Q.SelectorCombinatorSibling,this.finish(e)}if(this.peekDelim("~")){const e=this.create(de);return this.consumeToken(),e.type=Q.SelectorCombinatorAllSiblings,this.finish(e)}if(this.peekDelim("/")){const e=this.create(de);this.consumeToken();const t=this.mark();if(!this.hasWhitespace()&&this.acceptIdent("deep")&&!this.hasWhitespace()&&this.acceptDelim("/"))return e.type=Q.SelectorCombinatorShadowPiercingDescendant,this.finish(e);this.restoreAtMark(t)}return null}_parseSimpleSelector(){const e=this.create(we);let t=0;for(e.addChild(this._parseElementName()||this._parseNestingSelector())&&t++;(0===t||!this.hasWhitespace())&&e.addChild(this._parseSimpleSelectorBody());)t++;return t>0?this.finish(e):null}_parseNestingSelector(){if(this.peekDelim("&")){const e=this.createNode(Q.SelectorCombinator);return this.consumeToken(),this.finish(e)}return null}_parseSimpleSelectorBody(){return this._parsePseudo()||this._parseHash()||this._parseClass()||this._parseAttrib()}_parseSelectorIdent(){return this._parseIdent()}_parseHash(){if(!this.peek(i.Hash)&&!this.peekDelim("#"))return null;const e=this.createNode(Q.IdentifierSelector);if(this.acceptDelim("#")){if(this.hasWhitespace()||!e.addChild(this._parseSelectorIdent()))return this.finish(e,or.IdentifierExpected)}else this.consumeToken();return this.finish(e)}_parseClass(){if(!this.peekDelim("."))return null;const e=this.createNode(Q.ClassSelector);return this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseSelectorIdent())?this.finish(e,or.IdentifierExpected):this.finish(e)}_parseElementName(){const e=this.mark(),t=this.createNode(Q.ElementNameSelector);return t.addChild(this._parseNamespacePrefix()),t.addChild(this._parseSelectorIdent())||this.acceptDelim("*")?this.finish(t):(this.restoreAtMark(e),null)}_parseNamespacePrefix(){const e=this.mark(),t=this.createNode(Q.NamespacePrefix);return!t.addChild(this._parseIdent())&&this.acceptDelim("*"),this.acceptDelim("|")?this.finish(t):(this.restoreAtMark(e),null)}_parseAttrib(){if(!this.peek(i.BracketL))return null;const e=this.create(ct);return this.consumeToken(),e.setNamespacePrefix(this._parseNamespacePrefix()),e.setIdentifier(this._parseIdent())?(e.setOperator(this._parseOperator())&&(e.setValue(this._parseBinaryExpr()),this.acceptIdent("i"),this.acceptIdent("s")),this.accept(i.BracketR)?this.finish(e):this.finish(e,or.RightSquareBracketExpected)):this.finish(e,or.IdentifierExpected)}_parsePseudo(){const e=this._tryParsePseudoIdentifier();if(e){if(!this.hasWhitespace()&&this.accept(i.ParenthesisL)){const t=()=>{const e=this.create(de);if(!e.addChild(this._parseSelector(!0)))return null;for(;this.accept(i.Comma)&&e.addChild(this._parseSelector(!0)););return this.peek(i.ParenthesisR)?this.finish(e):null};if(!e.addChild(this.try(t))&&e.addChild(this._parseBinaryExpr())&&this.acceptIdent("of")&&!e.addChild(this.try(t)))return this.finish(e,or.SelectorExpected);if(!this.accept(i.ParenthesisR))return this.finish(e,or.RightParenthesisExpected)}return this.finish(e)}return null}_tryParsePseudoIdentifier(){if(!this.peek(i.Colon))return null;const e=this.mark(),t=this.createNode(Q.PseudoSelector);return this.consumeToken(),this.hasWhitespace()?(this.restoreAtMark(e),null):(this.accept(i.Colon),this.hasWhitespace()||!t.addChild(this._parseIdent())?this.finish(t,or.IdentifierExpected):this.finish(t))}_tryParsePrio(){const e=this.mark();return this._parsePrio()||(this.restoreAtMark(e),null)}_parsePrio(){if(!this.peek(i.Exclamation))return null;const e=this.createNode(Q.Prio);return this.accept(i.Exclamation)&&this.acceptIdent("important")?this.finish(e):null}_parseExpr(e=!1){const t=this.create(ot);if(!t.addChild(this._parseBinaryExpr()))return null;for(;;){if(this.peek(i.Comma)){if(e)return this.finish(t);this.consumeToken()}if(!t.addChild(this._parseBinaryExpr()))break}return this.finish(t)}_parseUnicodeRange(){if(!this.peekIdent("u"))return null;const e=this.create(me);return this.acceptUnicodeRange()?this.finish(e):null}_parseNamedLine(){if(!this.peek(i.BracketL))return null;const e=this.createNode(Q.GridLine);for(this.consumeToken();e.addChild(this._parseIdent()););return this.accept(i.BracketR)?this.finish(e):this.finish(e,or.RightSquareBracketExpected)}_parseBinaryExpr(e,t){let n=this.create(at);if(!n.setLeft(e||this._parseTerm()))return null;if(!n.setOperator(t||this._parseOperator()))return this.finish(n);if(!n.setRight(this._parseTerm()))return this.finish(n,or.TermExpected);n=this.finish(n);const i=this._parseOperator();return i&&(n=this._parseBinaryExpr(n,i)),this.finish(n)}_parseTerm(){let e=this.create(lt);return e.setOperator(this._parseUnaryOperator()),e.setExpression(this._parseTermExpression())?this.finish(e):null}_parseTermExpression(){return this._parseURILiteral()||this._parseUnicodeRange()||this._parseFunction()||this._parseIdent()||this._parseStringLiteral()||this._parseNumeric()||this._parseHexColor()||this._parseOperation()||this._parseNamedLine()}_parseOperation(){if(!this.peek(i.ParenthesisL))return null;const e=this.create(de);return this.consumeToken(),e.addChild(this._parseExpr()),this.accept(i.ParenthesisR)?this.finish(e):this.finish(e,or.RightParenthesisExpected)}_parseNumeric(){if(this.peek(i.Num)||this.peek(i.Percentage)||this.peek(i.Resolution)||this.peek(i.Length)||this.peek(i.EMS)||this.peek(i.EXS)||this.peek(i.Angle)||this.peek(i.Time)||this.peek(i.Dimension)||this.peek(i.ContainerQueryLength)||this.peek(i.Freq)){const e=this.create(ft);return this.consumeToken(),this.finish(e)}return null}_parseStringLiteral(){if(!this.peek(i.String)&&!this.peek(i.BadString))return null;const e=this.createNode(Q.StringLiteral);return this.consumeToken(),this.finish(e)}_parseURILiteral(){if(!this.peekRegExp(i.Ident,/^url(-prefix)?$/i))return null;const e=this.mark(),t=this.createNode(Q.URILiteral);return this.accept(i.Ident),this.hasWhitespace()||!this.peek(i.ParenthesisL)?(this.restoreAtMark(e),null):(this.scanner.inURL=!0,this.consumeToken(),t.addChild(this._parseURLArgument()),this.scanner.inURL=!1,this.accept(i.ParenthesisR)?this.finish(t):this.finish(t,or.RightParenthesisExpected))}_parseURLArgument(){const e=this.create(de);return this.accept(i.String)||this.accept(i.BadString)||this.acceptUnquotedString()?this.finish(e):null}_parseIdent(e){if(!this.peek(i.Ident))return null;const t=this.create(ue);return e&&(t.referenceTypes=e),t.isCustomProperty=this.peekRegExp(i.Ident,/^--/),this.consumeToken(),this.finish(t)}_parseFunction(){const e=this.mark(),t=this.create(Fe);if(!t.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(i.ParenthesisL))return this.restoreAtMark(e),null;if(t.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(i.Comma)&&!this.peek(i.ParenthesisR);)t.getArguments().addChild(this._parseFunctionArgument())||this.markError(t,or.ExpressionExpected);return this.accept(i.ParenthesisR)?this.finish(t):this.finish(t,or.RightParenthesisExpected)}_parseFunctionIdentifier(){if(!this.peek(i.Ident))return null;const e=this.create(ue);if(e.referenceTypes=[ee.Function],this.acceptIdent("progid")){if(this.accept(i.Colon))for(;this.accept(i.Ident)&&this.acceptDelim("."););return this.finish(e)}return this.consumeToken(),this.finish(e)}_parseFunctionArgument(){const e=this.create(Ne);return e.setValue(this._parseExpr(!0))?this.finish(e):null}_parseHexColor(){if(this.peekRegExp(i.Hash,/^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{4}|[A-Fa-f0-9]{6}|[A-Fa-f0-9]{8})$/g)){const e=this.create(ht);return this.consumeToken(),this.finish(e)}return null}};function cs(e,t){return-1!==e.indexOf(t)}function hs(...e){const t=[];for(const n of e)for(const e of n)cs(t,e)||t.push(e);return t}var ds,ps=class{constructor(e,t){this.offset=e,this.length=t,this.symbols=[],this.parent=null,this.children=[]}addChild(e){this.children.push(e),e.setParent(this)}setParent(e){this.parent=e}findScope(e,t=0){return this.offset<=e&&this.offset+this.length>e+t||this.offset===e&&this.length===t?this.findInScope(e,t):null}findInScope(e,t=0){const n=e+t,i=function(e,t){let i=0,r=e.length;if(0===r)return 0;for(;in?r=t:i=t+1}return i}(this.children);if(0===i)return this;const r=this.children[i-1];return r.offset<=e&&r.offset+r.length>=e+t?r.findInScope(e,t):this}addSymbol(e){this.symbols.push(e)}getSymbol(e,t){for(let n=0;n{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,i="",r=0,s=-1,o=0,a=0;a<=e.length;++a){if(a2){var l=i.lastIndexOf("/");if(l!==i.length-1){-1===l?(i="",r=0):r=(i=i.slice(0,l)).length-1-i.lastIndexOf("/"),s=a,o=0;continue}}else if(2===i.length||1===i.length){i="",r=0,s=a,o=0;continue}t&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+e.slice(s+1,a):i=e.slice(s+1,a),r=a-s-1;s=a,o=0}else 46===n&&-1!==o?++o:o=-1}return i}var i={resolve:function(){for(var e,i="",r=!1,s=arguments.length-1;s>=-1&&!r;s--){var o;s>=0?o=arguments[s]:(void 0===e&&(e=process.cwd()),o=e),t(o),0!==o.length&&(i=o+"/"+i,r=47===o.charCodeAt(0))}return i=n(i,!r),r?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var i=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!i)).length||i||(e="."),e.length>0&&r&&(e+="/"),i?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":i.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=i.resolve(e))===(n=i.resolve(n)))return"";for(var r=1;rc){if(47===n.charCodeAt(a+d))return n.slice(a+d+1);if(0===d)return n.slice(a+d)}else o>c&&(47===e.charCodeAt(r+d)?h=d:0===d&&(h=0));break}var p=e.charCodeAt(r+d);if(p!==n.charCodeAt(a+d))break;47===p&&(h=d)}var m="";for(d=r+h+1;d<=s;++d)d!==s&&47!==e.charCodeAt(d)||(0===m.length?m+="..":m+="/..");return m.length>0?m+n.slice(a+h):(a+=h,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),i=47===n,r=-1,s=!0,o=e.length-1;o>=1;--o)if(47===(n=e.charCodeAt(o))){if(!s){r=o;break}}else s=!1;return-1===r?i?"/":".":i&&1===r?"//":e.slice(0,r)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var i,r=0,s=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,l=-1;for(i=e.length-1;i>=0;--i){var c=e.charCodeAt(i);if(47===c){if(!o){r=i+1;break}}else-1===l&&(o=!1,l=i+1),a>=0&&(c===n.charCodeAt(a)?-1==--a&&(s=i):(a=-1,s=l))}return r===s?s=l:-1===s&&(s=e.length),e.slice(r,s)}for(i=e.length-1;i>=0;--i)if(47===e.charCodeAt(i)){if(!o){r=i+1;break}}else-1===s&&(o=!1,s=i+1);return-1===s?"":e.slice(r,s)},extname:function(e){t(e);for(var n=-1,i=0,r=-1,s=!0,o=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===r&&(s=!1,r=a+1),46===l?-1===n?n=a:1!==o&&(o=1):-1!==n&&(o=-1);else if(!s){i=a+1;break}}return-1===n||-1===r||0===o||1===o&&n===r-1&&n===i+1?"":e.slice(n,r)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return n=(t=e).dir||t.root,i=t.base||(t.name||"")+(t.ext||""),n?n===t.root?n+i:n+"/"+i:i;var t,n,i},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var i,r=e.charCodeAt(0),s=47===r;s?(n.root="/",i=1):i=0;for(var o=-1,a=0,l=-1,c=!0,h=e.length-1,d=0;h>=i;--h)if(47!==(r=e.charCodeAt(h)))-1===l&&(c=!1,l=h+1),46===r?-1===o?o=h:1!==d&&(d=1):-1!==o&&(d=-1);else if(!c){a=h+1;break}return-1===o||-1===l||0===d||1===d&&o===l-1&&o===a+1?-1!==l&&(n.base=n.name=0===a&&s?e.slice(1,l):e.slice(a,l)):(0===a&&s?(n.name=e.slice(1,o),n.base=e.slice(1,l)):(n.name=e.slice(a,o),n.base=e.slice(a,l)),n.ext=e.slice(o,l)),a>0?n.dir=e.slice(0,a-1):s&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,e.exports=i}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={exports:{}};return e[i](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{let e;if(n.r(i),n.d(i,{URI:()=>h,Utils:()=>_}),"object"==typeof process)e="win32"===process.platform;else if("object"==typeof navigator){let t=navigator.userAgent;e=t.indexOf("Windows")>=0}const t=/^\w[\w\d+.-]*$/,r=/^\//,s=/^\/\//;function o(e,n){if(!e.scheme&&n)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!t.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!r.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(s.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const a="",l="/",c=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class h{static isUri(e){return e instanceof h||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}scheme;authority;path;query;fragment;constructor(e,t,n,i,r,s=!1){"object"==typeof e?(this.scheme=e.scheme||a,this.authority=e.authority||a,this.path=e.path||a,this.query=e.query||a,this.fragment=e.fragment||a):(this.scheme=function(e,t){return e||t?e:"file"}(e,s),this.authority=t||a,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==l&&(t=l+t):t=l}return t}(this.scheme,n||a),this.query=i||a,this.fragment=r||a,o(this,s))}get fsPath(){return g(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=a),void 0===n?n=this.authority:null===n&&(n=a),void 0===i?i=this.path:null===i&&(i=a),void 0===r?r=this.query:null===r&&(r=a),void 0===s?s=this.fragment:null===s&&(s=a),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&s===this.fragment?this:new p(t,n,i,r,s)}static parse(e,t=!1){const n=c.exec(e);return n?new p(n[2]||a,w(n[4]||a),w(n[5]||a),w(n[7]||a),w(n[9]||a),t):new p(a,a,a,a,a)}static file(t){let n=a;if(e&&(t=t.replace(/\\/g,l)),t[0]===l&&t[1]===l){const e=t.indexOf(l,2);-1===e?(n=t.substring(2),t=l):(n=t.substring(2,e),t=t.substring(e)||l)}return new p("file",n,t,a,a)}static from(e){const t=new p(e.scheme,e.authority,e.path,e.query,e.fragment);return o(t,!0),t}toString(e=!1){return b(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof h)return e;{const t=new p(e);return t._formatted=e.external,t._fsPath=e._sep===d?e.fsPath:null,t}}return e}}const d=e?1:void 0;class p extends h{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=g(this,!1)),this._fsPath}toString(e=!1){return e?b(this,!0):(this._formatted||(this._formatted=b(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=d),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const m={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function u(e,t,n){let i,r=-1;for(let s=0;s=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o||n&&91===o||n&&93===o||n&&58===o)-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),void 0!==i&&(i+=e.charAt(s));else{void 0===i&&(i=e.substr(0,s));const t=m[o];void 0!==t?(-1!==r&&(i+=encodeURIComponent(e.substring(r,s)),r=-1),i+=t):-1===r&&(r=s)}}return-1!==r&&(i+=encodeURIComponent(e.substring(r))),void 0!==i?i:e}function f(e){let t;for(let n=0;n1&&"file"===t.scheme?`//${t.authority}${t.path}`:47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&58===t.path.charCodeAt(2)?n?t.path.substr(1):t.path[1].toLowerCase()+t.path.substr(2):t.path,e&&(i=i.replace(/\//g,"\\")),i}function b(e,t){const n=t?f:u;let i="",{scheme:r,authority:s,path:o,query:a,fragment:c}=e;if(r&&(i+=r,i+=":"),(s||"file"===r)&&(i+=l,i+=l),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?i+=n(t,!1,!1):(i+=n(t.substr(0,e),!1,!1),i+=":",i+=n(t.substr(e+1),!1,!0)),i+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?i+=n(s,!1,!0):(i+=n(s.substr(0,e),!1,!0),i+=s.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}i+=n(o,!0,!1)}return a&&(i+="?",i+=n(a,!1,!1)),c&&(i+="#",i+=t?c:u(c,!1,!1)),i}function v(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+v(e.substr(3)):e}}const y=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function w(e){return e.match(y)?e.replace(y,(e=>v(e))):e}var S=n(470);const x=S.posix||S,C="/";var _,k;(k=_||(_={})).joinPath=function(e,...t){return e.with({path:x.join(e.path,...t)})},k.resolvePath=function(e,...t){let n=e.path,i=!1;n[0]!==C&&(n=C+n,i=!0);let r=x.resolve(n,...t);return i&&r[0]===C&&!e.authority&&(r=r.substring(1)),e.with({path:r})},k.dirname=function(e){if(0===e.path.length||e.path===C)return e;let t=x.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)&&(t=""),e.with({path:t})},k.basename=function(e){return x.basename(e.path)},k.extname=function(e){return x.extname(e.path)}})(),ds=i})();var{URI:bs,Utils:vs}=ds;function ys(e){return vs.dirname(bs.parse(e)).toString(!0)}function ws(e,...t){return vs.joinPath(bs.parse(e),...t).toString(!0)}var Ss=class{constructor(e){this.readDirectory=e,this.literalCompletions=[],this.importCompletions=[]}onCssURILiteralValue(e){this.literalCompletions.push(e)}onCssImportPath(e){this.importCompletions.push(e)}async computeCompletions(e,t){const n={items:[],isIncomplete:!1};for(const i of this.literalCompletions){const r=i.uriValue,s=Cs(r);if("."===s||".."===s)n.isIncomplete=!0;else{const s=await this.providePathSuggestions(r,i.position,i.range,e,t);for(let e of s)n.items.push(e)}}for(const i of this.importCompletions){const r=i.pathValue,s=Cs(r);if("."===s||".."===s)n.isIncomplete=!0;else{let s=await this.providePathSuggestions(r,i.position,i.range,e,t);"scss"===e.languageId&&s.forEach((e=>{ie(e.label,"_")&&re(e.label,".scss")&&(e.textEdit?e.textEdit.newText=e.label.slice(1,-5):e.label=e.label.slice(1,-5))}));for(let e of s)n.items.push(e)}}return n}async providePathSuggestions(e,t,n,i,r){const s=Cs(e),o=ie(e,"'")||ie(e,'"'),a=o?s.slice(0,t.character-(n.start.character+1)):s.slice(0,t.character-n.start.character),l=i.uri,c=function(e,t,n){let i;const r=e.lastIndexOf("/");if(-1===r)i=n;else{const e=t.slice(r+1),s=Es(n.end,-e.length),o=e.indexOf(" ");let a;a=-1!==o?Es(s,o):n.end,i=Ut.create(s,a)}return i}(a,s,o?function(e,t,n){const i=Es(e.start,1),r=Es(e.end,-1);return Ut.create(i,r)}(n):n),h=a.substring(0,a.lastIndexOf("/")+1);let d=r.resolveReference(h||".",l);if(d)try{const e=[],t=await this.readDirectory(d);for(const[n,i]of t)n.charCodeAt(0)===xs||i!==pr.Directory&&ws(d,n)===l||e.push(_s(n,i===pr.Directory,c));return e}catch(e){}return[]}},xs=".".charCodeAt(0);function Cs(e){return ie(e,"'")||ie(e,'"')?e.slice(1,-1):e}function _s(e,t,n){return t?{label:ks(e+="/"),kind:$n.Folder,textEdit:fn.replace(n,ks(e)),command:{title:"Suggest",command:"editor.action.triggerSuggest"}}:{label:ks(e),kind:$n.File,textEdit:fn.replace(n,ks(e))}}function ks(e){return e.replace(/(\s|\(|\)|,|"|')/g,"\\$1")}function Es(e,t){return Wt.create(e.line,e.character+t)}var Fs,Rs,Ns=Kn.Snippet,Is={title:"Suggest",command:"editor.action.triggerSuggest"};(Rs=Fs||(Fs={})).Enums=" ",Rs.Normal="d",Rs.VendorPrefixed="x",Rs.Term="y",Rs.Variable="z";var Ds=class{constructor(e=null,t,n){this.variablePrefix=e,this.lsOptions=t,this.cssDataManager=n,this.completionParticipants=[]}configure(e){this.defaultSettings=e}getSymbolContext(){return this.symbolContext||(this.symbolContext=new gs(this.styleSheet)),this.symbolContext}setCompletionParticipants(e){this.completionParticipants=e||[]}async doComplete2(e,t,n,i,r=this.defaultSettings){if(!this.lsOptions.fileSystemProvider||!this.lsOptions.fileSystemProvider.readDirectory)return this.doComplete(e,t,n,r);const s=new Ss(this.lsOptions.fileSystemProvider.readDirectory),o=this.completionParticipants;this.completionParticipants=[s].concat(o);const a=this.doComplete(e,t,n,r);try{const t=await s.computeCompletions(e,i);return{isIncomplete:a.isIncomplete||t.isIncomplete,itemDefaults:a.itemDefaults,items:t.items.concat(a.items)}}finally{this.completionParticipants=o}}doComplete(e,t,n,i){this.offset=e.offsetAt(t),this.position=t,this.currentWord=function(e,t){let n=t-1;const i=e.getText();for(;n>=0&&-1===' \t\n\r":{[()]},*>+'.indexOf(i.charAt(n));)n--;return i.substring(n+1,t)}(e,this.offset),this.defaultReplaceRange=Ut.create(Wt.create(this.position.line,this.position.character-this.currentWord.length),this.position),this.textDocument=e,this.styleSheet=n,this.documentSettings=i;try{const e={isIncomplete:!1,itemDefaults:{editRange:{start:{line:t.line,character:t.character-this.currentWord.length},end:t}},items:[]};this.nodePath=le(this.styleSheet,this.offset);for(let t=this.nodePath.length-1;t>=0;t--){const n=this.nodePath[t];if(n instanceof ke)this.getCompletionsForDeclarationProperty(n.getParent(),e);else if(n instanceof ot)n.parent instanceof bt?this.getVariableProposals(null,e):this.getCompletionsForExpression(n,e);else if(n instanceof we){const t=n.findAParent(Q.ExtendsReference,Q.Ruleset);if(t)if(t.type===Q.ExtendsReference)this.getCompletionsForExtendsReference(t,n,e);else{const n=t;this.getCompletionsForSelector(n,n&&n.isNested(),e)}}else if(n instanceof Ne)this.getCompletionsForFunctionArgument(n,n.getParent(),e);else if(n instanceof ge)this.getCompletionsForDeclarations(n,e);else if(n instanceof gt)this.getCompletionsForVariableDeclaration(n,e);else if(n instanceof ve)this.getCompletionsForRuleSet(n,e);else if(n instanceof bt)this.getCompletionsForInterpolation(n,e);else if(n instanceof ze)this.getCompletionsForFunctionDeclaration(n,e);else if(n instanceof xt)this.getCompletionsForMixinReference(n,e);else if(n instanceof Fe)this.getCompletionsForFunctionArgument(null,n,e);else if(n instanceof Ge)this.getCompletionsForSupports(n,e);else if(n instanceof it)this.getCompletionsForSupportsCondition(n,e);else if(n instanceof yt)this.getCompletionsForExtendsReference(n,null,e);else if(n.type===Q.URILiteral)this.getCompletionForUriLiteralValue(n,e);else if(null===n.parent)this.getCompletionForTopLevel(e);else{if(n.type!==Q.StringLiteral||!this.isImportPathParent(n.parent.type))continue;this.getCompletionForImportPath(n,e)}if(e.items.length>0||this.offset>n.offset)return this.finalize(e)}return this.getCompletionsForStylesheet(e),0===e.items.length&&this.variablePrefix&&0===this.currentWord.indexOf(this.variablePrefix)&&this.getVariableProposals(null,e),this.finalize(e)}finally{this.position=null,this.currentWord=null,this.textDocument=null,this.styleSheet=null,this.symbolContext=null,this.defaultReplaceRange=null,this.nodePath=null}}isImportPathParent(e){return e===Q.Import}finalize(e){return e}findInNodePath(...e){for(let t=this.nodePath.length-1;t>=0;t--){const n=this.nodePath[t];if(-1!==e.indexOf(n.type))return n}return null}getCompletionsForDeclarationProperty(e,t){return this.getPropertyProposals(e,t)}getPropertyProposals(e,t){const n=this.isTriggerPropertyValueCompletionEnabled,i=this.isCompletePropertyWithSemicolonEnabled;return this.cssDataManager.getProperties().forEach((r=>{let s,o,a=!1;e?(s=this.getCompletionRange(e.getProperty()),o=r.name,as(e.colonPosition)||(o+=": ",a=!0)):(s=this.getCompletionRange(null),o=r.name+": ",a=!0),!e&&i&&(o+="$0;"),e&&!e.semicolonPosition&&i&&this.offset>=this.textDocument.offsetAt(s.end)&&(o+="$0;");const l={label:r.name,documentation:Sr(r,this.doesSupportMarkdown()),tags:Ts(r)?[jn.Deprecated]:[],textEdit:fn.replace(s,o),insertTextFormat:Kn.Snippet,kind:$n.Property};r.restrictions||(a=!1),n&&a&&(l.command=Is);const c=(255-("number"==typeof r.relevance?Math.min(Math.max(r.relevance,0),99):50)).toString(16),h=ie(r.name,"-")?Fs.VendorPrefixed:Fs.Normal;l.sortText=h+"_"+c,t.items.push(l)})),this.completionParticipants.forEach((e=>{e.onCssProperty&&e.onCssProperty({propertyName:this.currentWord,range:this.defaultReplaceRange})})),t}get isTriggerPropertyValueCompletionEnabled(){return this.documentSettings?.triggerPropertyValueCompletion??!0}get isCompletePropertyWithSemicolonEnabled(){return this.documentSettings?.completePropertyWithSemicolon??!0}getCompletionsForDeclarationValue(e,t){const n=e.getFullPropertyName(),i=this.cssDataManager.getProperty(n);let r=e.getValue()||null;for(;r&&r.hasChildren();)r=r.findChildAtOffset(this.offset,!1);if(this.completionParticipants.forEach((e=>{e.onCssPropertyValue&&e.onCssPropertyValue({propertyName:n,propertyValue:this.currentWord,range:this.getCompletionRange(r)})})),i){if(i.restrictions)for(const e of i.restrictions)switch(e){case"color":this.getColorProposals(i,r,t);break;case"position":this.getPositionProposals(i,r,t);break;case"repeat":this.getRepeatStyleProposals(i,r,t);break;case"line-style":this.getLineStyleProposals(i,r,t);break;case"line-width":this.getLineWidthProposals(i,r,t);break;case"geometry-box":this.getGeometryBoxProposals(i,r,t);break;case"box":this.getBoxProposals(i,r,t);break;case"image":this.getImageProposals(i,r,t);break;case"timing-function":this.getTimingFunctionProposals(i,r,t);break;case"shape":this.getBasicShapeProposals(i,r,t)}this.getValueEnumProposals(i,r,t),this.getCSSWideKeywordProposals(i,r,t),this.getUnitProposals(i,r,t)}else{const n=function(e,t){const n=t.getFullPropertyName(),i=new Ms;function r(e){return(e instanceof ue||e instanceof ft||e instanceof ht)&&i.add(e.getText()),!0}return e.accept((function(e){if(e instanceof Ce&&e!==t&&function(e){const t=e.getFullPropertyName();return n===t}(e)){const t=e.getValue();t&&t.accept(r)}return!0})),i}(this.styleSheet,e);for(const e of n.getEntries())t.items.push({label:e,textEdit:fn.replace(this.getCompletionRange(r),e),kind:$n.Value})}return this.getVariableProposals(r,t),this.getTermProposals(i,r,t),t}getValueEnumProposals(e,t,n){if(e.values)for(const i of e.values){let r,s=i.name;if(re(s,")")){const e=s.lastIndexOf("(");-1!==e&&(s=s.substring(0,e+1)+"$1"+s.substring(e+1),r=Ns)}let o=Fs.Enums;ie(i.name,"-")&&(o+=Fs.VendorPrefixed);const a={label:i.name,documentation:Sr(i,this.doesSupportMarkdown()),tags:Ts(e)?[jn.Deprecated]:[],textEdit:fn.replace(this.getCompletionRange(t),s),sortText:o,kind:$n.Value,insertTextFormat:r};n.items.push(a)}return n}getCSSWideKeywordProposals(e,t,n){for(const e in Yr)n.items.push({label:e,documentation:Yr[e],textEdit:fn.replace(this.getCompletionRange(t),e),kind:$n.Value});for(const e in Qr){const i=As(e);n.items.push({label:e,documentation:Qr[e],textEdit:fn.replace(this.getCompletionRange(t),i),kind:$n.Function,insertTextFormat:Ns,command:ie(e,"var")?Is:void 0})}return n}getCompletionsForInterpolation(e,t){return this.offset>=e.offset+2&&this.getVariableProposals(null,t),t}getVariableProposals(e,t){const n=this.getSymbolContext().findSymbolsAtOffset(this.offset,ee.Variable);for(const i of n){const n=ie(i.name,"--")?`var(${i.name})`:i.name,r={label:i.name,documentation:i.value?se(i.value):i.value,textEdit:fn.replace(this.getCompletionRange(e),n),kind:$n.Variable,sortText:Fs.Variable};if("string"==typeof r.documentation&&zr(r.documentation)&&(r.kind=$n.Color),i.node.type===Q.FunctionParameter){const e=i.node.getParent();e.type===Q.MixinDeclaration&&(r.detail=Dt("argument from '{0}'",e.getName()))}t.items.push(r)}return t}getVariableProposalsForCSSVarFunction(e){const t=new Ms;this.styleSheet.acceptVisitor(new Os(t,this.offset));let n=this.getSymbolContext().findSymbolsAtOffset(this.offset,ee.Variable);for(const i of n){if(ie(i.name,"--")){const t={label:i.name,documentation:i.value?se(i.value):i.value,textEdit:fn.replace(this.getCompletionRange(null),i.name),kind:$n.Variable};"string"==typeof t.documentation&&zr(t.documentation)&&(t.kind=$n.Color),e.items.push(t)}t.remove(i.name)}for(const n of t.getEntries())if(ie(n,"--")){const t={label:n,textEdit:fn.replace(this.getCompletionRange(null),n),kind:$n.Variable};e.items.push(t)}return e}getUnitProposals(e,t,n){let i="0";if(this.currentWord.length>0){const e=this.currentWord.match(/^-?\d[\.\d+]*/);e&&(i=e[0],n.isIncomplete=i.length===this.currentWord.length)}else 0===this.currentWord.length&&(n.isIncomplete=!0);if(t&&t.parent&&t.parent.type===Q.Term&&(t=t.getParent()),e.restrictions)for(const r of e.restrictions){const e=ns[r];if(e)for(const r of e){const e=i+r;n.items.push({label:e,textEdit:fn.replace(this.getCompletionRange(t),e),kind:$n.Unit})}}return n}getCompletionRange(e){if(e&&e.offset<=this.offset&&this.offset<=e.end){const t=-1!==e.end?this.textDocument.positionAt(e.end):this.position,n=this.textDocument.positionAt(e.offset);if(n.line===t.line)return Ut.create(n,t)}return this.defaultReplaceRange}getColorProposals(e,t,n){for(const e in Nr)n.items.push({label:e,documentation:Nr[e],textEdit:fn.replace(this.getCompletionRange(t),e),kind:$n.Color});for(const e in Dr)n.items.push({label:e,documentation:Dr[e],textEdit:fn.replace(this.getCompletionRange(t),e),kind:$n.Value});const i=new Ms;this.styleSheet.acceptVisitor(new Ls(i,this.offset));for(const e of i.getEntries())n.items.push({label:e,textEdit:fn.replace(this.getCompletionRange(t),e),kind:$n.Color});for(const e of Fr)n.items.push({label:e.label,detail:e.func,documentation:e.desc,textEdit:fn.replace(this.getCompletionRange(t),e.insertText),insertTextFormat:Ns,kind:$n.Function});return n}getPositionProposals(e,t,n){for(const e in Br)n.items.push({label:e,documentation:Br[e],textEdit:fn.replace(this.getCompletionRange(t),e),kind:$n.Value});return n}getRepeatStyleProposals(e,t,n){for(const e in jr)n.items.push({label:e,documentation:jr[e],textEdit:fn.replace(this.getCompletionRange(t),e),kind:$n.Value});return n}getLineStyleProposals(e,t,n){for(const e in Hr)n.items.push({label:e,documentation:Hr[e],textEdit:fn.replace(this.getCompletionRange(t),e),kind:$n.Value});return n}getLineWidthProposals(e,t,n){for(const e of Gr)n.items.push({label:e,textEdit:fn.replace(this.getCompletionRange(t),e),kind:$n.Value});return n}getGeometryBoxProposals(e,t,n){for(const e in Xr)n.items.push({label:e,documentation:Xr[e],textEdit:fn.replace(this.getCompletionRange(t),e),kind:$n.Value});return n}getBoxProposals(e,t,n){for(const e in Jr)n.items.push({label:e,documentation:Jr[e],textEdit:fn.replace(this.getCompletionRange(t),e),kind:$n.Value});return n}getImageProposals(e,t,n){for(const e in Zr){const i=As(e);n.items.push({label:e,documentation:Zr[e],textEdit:fn.replace(this.getCompletionRange(t),i),kind:$n.Function,insertTextFormat:e!==i?Ns:void 0})}return n}getTimingFunctionProposals(e,t,n){for(const e in es){const i=As(e);n.items.push({label:e,documentation:es[e],textEdit:fn.replace(this.getCompletionRange(t),i),kind:$n.Function,insertTextFormat:e!==i?Ns:void 0})}return n}getBasicShapeProposals(e,t,n){for(const e in ts){const i=As(e);n.items.push({label:e,documentation:ts[e],textEdit:fn.replace(this.getCompletionRange(t),i),kind:$n.Function,insertTextFormat:e!==i?Ns:void 0})}return n}getCompletionsForStylesheet(e){const t=this.styleSheet.findFirstChildBeforeOffset(this.offset);return t?t instanceof ve?this.getCompletionsForRuleSet(t,e):t instanceof Ge?this.getCompletionsForSupports(t,e):e:this.getCompletionForTopLevel(e)}getCompletionForTopLevel(e){return this.cssDataManager.getAtDirectives().forEach((t=>{e.items.push({label:t.name,textEdit:fn.replace(this.getCompletionRange(null),t.name),documentation:Sr(t,this.doesSupportMarkdown()),tags:Ts(t)?[jn.Deprecated]:[],kind:$n.Keyword})})),this.getCompletionsForSelector(null,!1,e),e}getCompletionsForRuleSet(e,t){const n=e.getDeclarations();return n&&n.endsWith("}")&&this.offset>=n.end?this.getCompletionForTopLevel(t):!n||this.offset<=n.offset?this.getCompletionsForSelector(e,e.isNested(),t):this.getCompletionsForDeclarations(e.getDeclarations(),t)}getCompletionsForSelector(e,t,n){const i=this.findInNodePath(Q.PseudoSelector,Q.IdentifierSelector,Q.ClassSelector,Q.ElementNameSelector);if(!i&&this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord,this.hasCharacterAtPosition(this.offset-this.currentWord.length-1,":")&&(this.currentWord=":"+this.currentWord),this.defaultReplaceRange=Ut.create(Wt.create(this.position.line,this.position.character-this.currentWord.length),this.position)),this.cssDataManager.getPseudoClasses().forEach((e=>{const t=As(e.name),r={label:e.name,textEdit:fn.replace(this.getCompletionRange(i),t),documentation:Sr(e,this.doesSupportMarkdown()),tags:Ts(e)?[jn.Deprecated]:[],kind:$n.Function,insertTextFormat:e.name!==t?Ns:void 0};ie(e.name,":-")&&(r.sortText=Fs.VendorPrefixed),n.items.push(r)})),this.cssDataManager.getPseudoElements().forEach((e=>{const t=As(e.name),r={label:e.name,textEdit:fn.replace(this.getCompletionRange(i),t),documentation:Sr(e,this.doesSupportMarkdown()),tags:Ts(e)?[jn.Deprecated]:[],kind:$n.Function,insertTextFormat:e.name!==t?Ns:void 0};ie(e.name,"::-")&&(r.sortText=Fs.VendorPrefixed),n.items.push(r)})),!t){for(const e of is)n.items.push({label:e,textEdit:fn.replace(this.getCompletionRange(i),e),kind:$n.Keyword});for(const e of rs)n.items.push({label:e,textEdit:fn.replace(this.getCompletionRange(i),e),kind:$n.Keyword})}const r={};r[this.currentWord]=!0;const s=this.textDocument.getText();if(this.styleSheet.accept((e=>{if(e.type===Q.SimpleSelector&&e.length>0){const t=s.substr(e.offset,e.length);return"."!==t.charAt(0)||r[t]||(r[t]=!0,n.items.push({label:t,textEdit:fn.replace(this.getCompletionRange(i),t),kind:$n.Keyword})),!1}return!0})),e&&e.isNested()){const t=e.getSelectors().findFirstChildBeforeOffset(this.offset);t&&0===e.getSelectors().getChildren().indexOf(t)&&this.getPropertyProposals(null,n)}return n}getCompletionsForDeclarations(e,t){if(!e||this.offset===e.offset)return t;const n=e.findFirstChildBeforeOffset(this.offset);if(!n)return this.getCompletionsForDeclarationProperty(null,t);if(n instanceof Se){const e=n;if(!as(e.colonPosition)||this.offset<=e.colonPosition)return this.getCompletionsForDeclarationProperty(e,t);if(as(e.semicolonPosition)&&e.semicolonPositione.colonPosition&&this.getVariableProposals(e.getValue()||null,t),t}getCompletionsForExpression(e,t){const n=e.getParent();if(n instanceof Ne)return this.getCompletionsForFunctionArgument(n,n.getParent(),t),t;const i=e.findParent(Q.Declaration);if(!i)return this.getTermProposals(void 0,null,t),t;const r=e.findChildAtOffset(this.offset,!0);return r?r instanceof ft||r instanceof ue?this.getCompletionsForDeclarationValue(i,t):t:this.getCompletionsForDeclarationValue(i,t)}getCompletionsForFunctionArgument(e,t,n){const i=t.getIdentifier();return i&&i.matches("var")&&(t.getArguments().hasChildren()&&t.getArguments().getChild(0)!==e||this.getVariableProposalsForCSSVarFunction(n)),n}getCompletionsForFunctionDeclaration(e,t){const n=e.getDeclarations();return n&&this.offset>n.offset&&this.offset{e.onCssMixinReference&&e.onCssMixinReference({mixinName:this.currentWord,range:this.getCompletionRange(i)})})),t}getTermProposals(e,t,n){const i=this.getSymbolContext().findSymbolsAtOffset(this.offset,ee.Function);for(const e of i)e.node instanceof ze&&n.items.push(this.makeTermProposal(e,e.node.getParameters(),t));return n}makeTermProposal(e,t,n){e.node;const i=t.getChildren().map((e=>e instanceof Re?e.getName():e.getText())),r=e.name+"("+i.map(((e,t)=>"${"+(t+1)+":"+e+"}")).join(", ")+")";return{label:e.name,detail:e.name+"("+i.join(", ")+")",textEdit:fn.replace(this.getCompletionRange(n),r),insertTextFormat:Ns,kind:$n.Function,sortText:Fs.Term}}getCompletionsForSupportsCondition(e,t){const n=e.findFirstChildBeforeOffset(this.offset);if(n){if(n instanceof Ce)return!as(n.colonPosition)||this.offset<=n.colonPosition?this.getCompletionsForDeclarationProperty(n,t):this.getCompletionsForDeclarationValue(n,t);if(n instanceof it)return this.getCompletionsForSupportsCondition(n,t)}return as(e.lParent)&&this.offset>e.lParent&&(!as(e.rParent)||this.offset<=e.rParent)?this.getCompletionsForDeclarationProperty(null,t):t}getCompletionsForSupports(e,t){const n=e.getDeclarations();if(!n||this.offset<=n.offset){const n=e.findFirstChildBeforeOffset(this.offset);return n instanceof it?this.getCompletionsForSupportsCondition(n,t):t}return this.getCompletionForTopLevel(t)}getCompletionsForExtendsReference(e,t,n){return n}getCompletionForUriLiteralValue(e,t){let n,i,r;if(e.hasChildren()){const t=e.getChild(0);n=t.getText(),i=this.position,r=this.getCompletionRange(t)}else{n="",i=this.position;const t=this.textDocument.positionAt(e.offset+4);r=Ut.create(t,t)}return this.completionParticipants.forEach((e=>{e.onCssURILiteralValue&&e.onCssURILiteralValue({uriValue:n,position:i,range:r})})),t}getCompletionForImportPath(e,t){return this.completionParticipants.forEach((t=>{t.onCssImportPath&&t.onCssImportPath({pathValue:e.getText(),position:this.position,range:this.getCompletionRange(e)})})),t}hasCharacterAtPosition(e,t){const n=this.textDocument.getText();return e>=0&&e"),this.writeLine(t,i.join(""))}};!function(e){function t(e){const t=e.match(/^['"](.*)["']$/);return t?t[1]:e}e.ensure=function(e,n){return n+t(e)+n},e.remove=t}(zs||(zs={}));var $s=class{constructor(){this.id=0,this.attr=0,this.tag=0}};function qs(e,t){let n=new Ps;for(const i of e.getChildren())switch(i.type){case Q.SelectorCombinator:if(t){const e=i.getText().split("&");if(1===e.length){n.addAttr("name",e[0]);break}n=t.cloneWithParent(),e[0]&&n.findRoot().prepend(e[0]);for(let i=1;i1){const e=t.cloneWithParent();n.addChild(e.findRoot()),n=e}n.append(e[i])}}break;case Q.SelectorPlaceholder:if(i.matches("@at-root"))return n;case Q.ElementNameSelector:const e=i.getText();n.addAttr("name","*"===e?"element":Ks(e));break;case Q.ClassSelector:n.addAttr("class",Ks(i.getText().substring(1)));break;case Q.IdentifierSelector:n.addAttr("id",Ks(i.getText().substring(1)));break;case Q.MixinDeclaration:n.addAttr("class",i.getName());break;case Q.PseudoSelector:n.addAttr(Ks(i.getText()),"");break;case Q.AttributeSelector:const r=i,s=r.getIdentifier();if(s){const e=r.getValue(),t=r.getOperator();let i;if(e&&t)switch(Ks(t.getText())){case"|=":i=`${zs.remove(Ks(e.getText()))}-…`;break;case"^=":i=`${zs.remove(Ks(e.getText()))}…`;break;case"$=":i=`…${zs.remove(Ks(e.getText()))}`;break;case"~=":i=` … ${zs.remove(Ks(e.getText()))} … `;break;case"*=":i=`…${zs.remove(Ks(e.getText()))}…`;break;default:i=zs.remove(Ks(e.getText()))}n.addAttr(Ks(s.getText()),i)}}return n}function Ks(e){const t=new ne;t.setSource(e);const n=t.scanUnquotedString();return n?n.text:e}var Bs=class{constructor(e){this.cssDataManager=e}selectorToMarkedString(e,t){const n=function(e){if(e.matches("@at-root"))return null;const t=new Ws,n=[],i=e.getParent();if(i instanceof ve){let e=i.getParent();for(;e&&!Hs(e);){if(e instanceof ve){if(e.getSelectors().matches("@at-root"))break;n.push(e)}e=e.getParent()}}const r=new js(t);for(let e=n.length-1;e>=0;e--){const t=n[e].getSelectors().getChild(0);t&&r.processSelector(t)}return r.processSelector(e),t}(e);if(n){const i=new Us('"').print(n,t);return i.push(this.selectorToSpecificityMarkedString(e)),i}return[]}simpleSelectorToMarkedString(e){const t=qs(e),n=new Us('"').print(t);return n.push(this.selectorToSpecificityMarkedString(e)),n}isPseudoElementIdentifier(e){const t=e.match(/^::?([\w-]+)/);return!!t&&!!this.cssDataManager.getPseudoElement("::"+t[1])}selectorToSpecificityMarkedString(e){const t=e=>{const t=new $s;let i=new $s;for(const t of e)for(const e of t.getChildren()){const t=n(e);t.id>i.id?i=t:t.idi.attr?i=t:t.attri.tag&&(i=t))}return t.id+=i.id,t.attr+=i.attr,t.tag+=i.tag,t},n=e=>{const i=new $s;e:for(const r of e.getChildren()){switch(r.type){case Q.IdentifierSelector:i.id++;break;case Q.ClassSelector:case Q.AttributeSelector:i.attr++;break;case Q.ElementNameSelector:if(r.matches("*"))break;i.tag++;break;case Q.PseudoSelector:const e=r.getText(),n=r.getChildren();if(this.isPseudoElementIdentifier(e)){if(e.match(/^::slotted/i)&&n.length>0){i.tag++;let e=t(n);i.id+=e.id,i.attr+=e.attr,i.tag+=e.tag;continue e}i.tag++;continue e}if(e.match(/^:where/i))continue e;if(e.match(/^:(?:not|has|is)/i)&&n.length>0){let e=t(n);i.id+=e.id,i.attr+=e.attr,i.tag+=e.tag;continue e}if(e.match(/^:(?:host|host-context)/i)&&n.length>0){i.attr++;let e=t(n);i.id+=e.id,i.attr+=e.attr,i.tag+=e.tag;continue e}if(e.match(/^:(?:nth-child|nth-last-child)/i)&&n.length>0){if(i.attr++,3===n.length&&23===n[1].type){let e=t(n[2].getChildren());i.id+=e.id,i.attr+=e.attr,i.tag+=e.tag;continue e}const e=new ls,r=n[1].getText();e.scanner.setSource(r);const s=e.scanner.scan(),o=e.scanner.scan();if("n"===s.text||"-n"===s.text&&"of"===o.text){const n=[],s=r.slice(o.offset+2).split(",");for(const t of s){const i=e.internalParse(t,e._parseSelector);i&&n.push(i)}let a=t(n);i.id+=a.id,i.attr+=a.attr,i.tag+=a.tag;continue e}continue e}i.attr++;continue e}if(r.getChildren().length>0){const e=n(r);i.id+=e.id,i.attr+=e.attr,i.tag+=e.tag}}return i},i=n(e);return`[${Dt("Selector Specificity")}](https://developer.mozilla.org/docs/Web/CSS/Specificity): (${i.id}, ${i.attr}, ${i.tag})`}},js=class{constructor(e){this.prev=null,this.element=e}processSelector(e){let t=null;if(!(this.element instanceof Ws)&&e.getChildren().some((e=>e.hasChildren()&&e.getChild(0).type===Q.SelectorCombinator))){const e=this.element.findRoot();e.parent instanceof Ws&&(t=this.element,this.element=e.parent,this.element.removeChild(e),this.prev=null)}for(const n of e.getChildren()){if(n instanceof we){if(this.prev instanceof we){const e=new Vs("…");this.element.addChild(e),this.element=e}else this.prev&&(this.prev.matches("+")||this.prev.matches("~"))&&this.element.parent&&(this.element=this.element.parent);this.prev&&this.prev.matches("~")&&this.element.addChild(new Vs("⋮"));const e=qs(n,t),i=e.findRoot();this.element.addChild(i),this.element=e}(n instanceof we||n.type===Q.SelectorCombinatorParent||n.type===Q.SelectorCombinatorShadowPiercingDescendant||n.type===Q.SelectorCombinatorSibling||n.type===Q.SelectorCombinatorAllSiblings)&&(this.prev=n)}}};function Hs(e){switch(e.type){case Q.MixinDeclaration:case Q.Stylesheet:return!0}return!1}var Gs=class{constructor(e,t){this.clientCapabilities=e,this.cssDataManager=t,this.selectorPrinting=new Bs(t)}configure(e){this.defaultSettings=e}doHover(e,t,n,i=this.defaultSettings){function r(t){return Ut.create(e.positionAt(t.offset),e.positionAt(t.end))}const s=le(n,e.offsetAt(t));let o,a=null;for(let e=0;e"string"==typeof e?e:e.value)):e.value}doesSupportMarkdown(){if(!as(this.supportsMarkdown)){if(!as(this.clientCapabilities))return this.supportsMarkdown=!0,this.supportsMarkdown;const e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.hover;this.supportsMarkdown=e&&e.contentFormat&&Array.isArray(e.contentFormat)&&-1!==e.contentFormat.indexOf(Wn.Markdown)}return this.supportsMarkdown}},Js=/^\w+:\/\//,Xs=/^data:/,Ys=class{constructor(e,t){this.fileSystemProvider=e,this.resolveModuleReferences=t}configure(e){this.defaultSettings=e}findDefinition(e,t,n){const i=new gs(n),r=ae(n,e.offsetAt(t));if(!r)return null;const s=i.findSymbolFromNode(r);return s?{uri:e.uri,range:Qs(s.node,e)}:null}findReferences(e,t,n){return this.findDocumentHighlights(e,t,n).map((t=>({uri:e.uri,range:t.range})))}getHighlightNode(e,t,n){let i=ae(n,e.offsetAt(t));if(i&&i.type!==Q.Stylesheet&&i.type!==Q.Declarations)return i.type===Q.Identifier&&i.parent&&i.parent.type===Q.ClassSelector&&(i=i.parent),i}findDocumentHighlights(e,t,n){const i=[],r=this.getHighlightNode(e,t,n);if(!r)return i;const s=new gs(n),o=s.findSymbolFromNode(r),a=r.getText();return n.accept((t=>{if(o){if(s.matchesSymbol(t,o))return i.push({kind:eo(t),range:Qs(t,e)}),!1}else r&&r.type===t.type&&t.matches(a)&&i.push({kind:eo(t),range:Qs(t,e)});return!0})),i}isRawStringDocumentLinkNode(e){return e.type===Q.Import}findDocumentLinks(e,t,n){const i=this.findUnresolvedLinks(e,t),r=[];for(let t of i){const i=t.link,s=i.target;if(!s||Xs.test(s));else if(Js.test(s))r.push(i);else{const t=n.resolveReference(s,e.uri);t&&(i.target=t),r.push(i)}}return r}async findDocumentLinks2(e,t,n){const i=this.findUnresolvedLinks(e,t),r=[];for(let t of i){const i=t.link,s=i.target;if(!s||Xs.test(s));else if(Js.test(s))r.push(i);else{const o=await this.resolveReference(s,e.uri,n,t.isRawLink);void 0!==o&&(i.target=o,r.push(i))}}return r}findUnresolvedLinks(e,t){const n=[],i=t=>{let i=t.getText();const r=Qs(t,e);if(r.start.line===r.end.line&&r.start.character===r.end.character)return;(ie(i,"'")||ie(i,'"'))&&(i=i.slice(1,-1));const s=!!t.parent&&this.isRawStringDocumentLinkNode(t.parent);n.push({link:{target:i,range:r},isRawLink:s})};return t.accept((e=>{if(e.type===Q.URILiteral){const t=e.getChild(0);return t&&i(t),!1}if(e.parent&&this.isRawStringDocumentLinkNode(e.parent)){const t=e.getText();return(ie(t,"'")||ie(t,'"'))&&i(e),!1}return!0})),n}findSymbolInformations(e,t){const n=[];return this.collectDocumentSymbols(e,t,((t,i,r)=>{const s=r instanceof de?Qs(r,e):r,o={name:t||Dt(""),kind:i,location:qt.create(e.uri,s)};n.push(o)})),n}findDocumentSymbols(e,t){const n=[],i=[];return this.collectDocumentSymbols(e,t,((t,r,s,o,a)=>{const l=s instanceof de?Qs(s,e):s;let c=o instanceof de?Qs(o,e):o;c&&Zs(l,c)||(c=Ut.create(l.start,l.start));const h={name:t||Dt(""),kind:r,range:l,selectionRange:c};let d=i.pop();for(;d&&!Zs(d[1],l);)d=i.pop();if(d){const e=d[0];e.children||(e.children=[]),e.children.push(h),i.push(d)}else n.push(h);a&&i.push([h,Qs(a,e)])})),n}collectDocumentSymbols(e,t,n){t.accept((t=>{if(t instanceof ve){for(const i of t.getSelectors().getChildren())if(i instanceof ye){const r=Ut.create(e.positionAt(i.offset),e.positionAt(t.end));n(i.getText(),li.Class,r,i,t.getDeclarations())}}else if(t instanceof gt)n(t.getName(),li.Variable,t,t.getVariable(),void 0);else if(t instanceof Ct)n(t.getName(),li.Method,t,t.getIdentifier(),t.getDeclarations());else if(t instanceof ze)n(t.getName(),li.Function,t,t.getIdentifier(),t.getDeclarations());else if(t instanceof We){const e=Dt("@keyframes {0}",t.getName());n(e,li.Class,t,t.getIdentifier(),t.getDeclarations())}else if(t instanceof Oe){const e=Dt("@font-face");n(e,li.Class,t,void 0,t.getDeclarations())}else if(t instanceof He){const e=t.getChild(0);if(e instanceof Ze){const i="@media "+e.getText();n(i,li.Module,t,e,t.getDeclarations())}}return!0}))}findDocumentColors(e,t){const n=[];return t.accept((t=>{const i=function(e,t){const n=function(e){if(e.type===Q.HexColorValue)return $r(e.getText());if(e.type===Q.Function){const t=e,n=t.getName();let i=t.getArguments().getChildren();if(1===i.length){const e=i[0].getChildren();if(1===e.length&&e[0].type===Q.Expression&&(i=e[0].getChildren(),3===i.length)){const e=i[2];if(e instanceof at){const t=e.getLeft(),n=e.getRight(),r=e.getOperator();t&&n&&r&&r.matches("/")&&(i=[i[0],i[1],t,n])}}}if(!n||i.length<3||i.length>4)return null;try{const e=4===i.length?Mr(i[3],1):1;if("rgb"===n||"rgba"===n)return{red:Mr(i[0],255),green:Mr(i[1],255),blue:Mr(i[2],255),alpha:e};if("hsl"===n||"hsla"===n){return qr(Ar(i[0]),Mr(i[1],100),Mr(i[2],100),e)}if("hwb"===n){return function(e,t,n,i=1){if(t+n>=1){const e=t/(t+n);return{red:e,green:e,blue:e,alpha:i}}const r=qr(e,1,.5,i);let s=r.red;s*=1-t-n,s+=t;let o=r.green;o*=1-t-n,o+=t;let a=r.blue;return a*=1-t-n,a+=t,{red:s,green:o,blue:a,alpha:i}}(Ar(i[0]),Mr(i[1],100),Mr(i[2],100),e)}}catch(e){return null}}else if(e.type===Q.Identifier){if(e.parent&&e.parent.type!==Q.Term)return null;const t=e.parent;if(t&&t.parent&&t.parent.type===Q.BinaryExpression){const e=t.parent;if(e.parent&&e.parent.type===Q.ListEntry&&e.parent.key===e)return null}const n=e.getText().toLowerCase();if("none"===n)return null;const i=Nr[n];if(i)return $r(i)}return null}(e);return n?{color:n,range:Qs(e,t)}:null}(t,e);return i&&n.push(i),!0})),n}getColorPresentations(e,t,n,i){const r=[],s=Math.round(255*n.red),o=Math.round(255*n.green),a=Math.round(255*n.blue);let l;l=1===n.alpha?`rgb(${s}, ${o}, ${a})`:`rgba(${s}, ${o}, ${a}, ${n.alpha})`,r.push({label:l,textEdit:fn.replace(i,l)}),l=1===n.alpha?`#${to(s)}${to(o)}${to(a)}`:`#${to(s)}${to(o)}${to(a)}${to(Math.round(255*n.alpha))}`,r.push({label:l,textEdit:fn.replace(i,l)});const c=Kr(n);l=1===c.a?`hsl(${c.h}, ${Math.round(100*c.s)}%, ${Math.round(100*c.l)}%)`:`hsla(${c.h}, ${Math.round(100*c.s)}%, ${Math.round(100*c.l)}%, ${c.a})`,r.push({label:l,textEdit:fn.replace(i,l)});const h=function(e){const t=Kr(e),n=Math.min(e.red,e.green,e.blue),i=1-Math.max(e.red,e.green,e.blue);return{h:t.h,w:n,b:i,a:t.a}}(n);return l=1===h.a?`hwb(${h.h} ${Math.round(100*h.w)}% ${Math.round(100*h.b)}%)`:`hwb(${h.h} ${Math.round(100*h.w)}% ${Math.round(100*h.b)}% / ${h.a})`,r.push({label:l,textEdit:fn.replace(i,l)}),r}prepareRename(e,t,n){const i=this.getHighlightNode(e,t,n);if(i)return Ut.create(e.positionAt(i.offset),e.positionAt(i.end))}doRename(e,t,n,i){const r=this.findDocumentHighlights(e,t,i).map((e=>fn.replace(e.range,n)));return{changes:{[e.uri]:r}}}async resolveModuleReference(e,t,n){if(ie(t,"file://")){const i=function(e){const t=e.indexOf("/");if(-1===t)return"";if("@"===e[0]){const n=e.indexOf("/",t+1);return-1===n?e:e.substring(0,n)}return e.substring(0,t)}(e);if(i&&"."!==i&&".."!==i){const r=n.resolveReference("/",t),s=ys(t),o=await this.resolvePathToModule(i,s,r);if(o)return ws(o,e.substring(i.length+1))}}}async mapReference(e,t){return e}async resolveReference(e,t,n,i=!1,r=this.defaultSettings){if("~"===e[0]&&"/"!==e[1]&&this.fileSystemProvider)return e=e.substring(1),this.mapReference(await this.resolveModuleReference(e,t,n),i);const s=await this.mapReference(n.resolveReference(e,t),i);if(this.resolveModuleReferences){if(s&&await this.fileExists(s))return s;const r=await this.mapReference(await this.resolveModuleReference(e,t,n),i);if(r)return r}if(s&&!await this.fileExists(s)){const s=n.resolveReference("/",t);if(r&&s){if(e in r)return this.mapReference(ws(s,r[e]),i);const t=e.indexOf("/"),n=`${e.substring(0,t)}/`;if(n in r){let t=ws(s,r[n].slice(0,-1));return this.mapReference(t=ws(t,e.substring(n.length-1)),i)}}}return s}async resolvePathToModule(e,t,n){const i=ws(t,"node_modules",e,"package.json");return await this.fileExists(i)?ys(i):n&&t.startsWith(n)&&t.length!==n.length?this.resolvePathToModule(e,ys(t),n):void 0}async fileExists(e){if(!this.fileSystemProvider)return!1;try{const t=await this.fileSystemProvider.stat(e);return t.type!==pr.Unknown||-1!==t.size}catch(e){return!1}}};function Qs(e,t){return Ut.create(t.positionAt(e.offset),t.positionAt(e.end))}function Zs(e,t){const n=t.start.line,i=t.end.line,r=e.start.line,s=e.end.line;return!(ns||i>s||n===r&&t.start.charactere.end.character)}function eo(e){if(e.type===Q.Selector)return si.Write;if(e instanceof ue&&e.parent&&e.parent instanceof ke&&e.isCustomProperty)return si.Write;if(e.parent)switch(e.parent.type){case Q.FunctionDeclaration:case Q.MixinDeclaration:case Q.Keyframe:case Q.VariableDeclaration:case Q.FunctionParameter:return si.Write}return si.Read}function to(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}var no=ce.Warning,io=ce.Error,ro=ce.Ignore,so=class{constructor(e,t,n){this.id=e,this.message=t,this.defaultValue=n}},oo={AllVendorPrefixes:new so("compatibleVendorPrefixes",Dt("When using a vendor-specific prefix make sure to also include all other vendor-specific properties"),ro),IncludeStandardPropertyWhenUsingVendorPrefix:new so("vendorPrefix",Dt("When using a vendor-specific prefix also include the standard property"),no),DuplicateDeclarations:new so("duplicateProperties",Dt("Do not use duplicate style definitions"),ro),EmptyRuleSet:new so("emptyRules",Dt("Do not use empty rulesets"),no),ImportStatemement:new so("importStatement",Dt("Import statements do not load in parallel"),ro),BewareOfBoxModelSize:new so("boxModel",Dt("Do not use width or height when using padding or border"),ro),UniversalSelector:new so("universalSelector",Dt("The universal selector (*) is known to be slow"),ro),ZeroWithUnit:new so("zeroUnits",Dt("No unit for zero needed"),ro),RequiredPropertiesForFontFace:new so("fontFaceProperties",Dt("@font-face rule must define 'src' and 'font-family' properties"),no),HexColorLength:new so("hexColorLength",Dt("Hex colors must consist of three, four, six or eight hex numbers"),io),ArgsInColorFunction:new so("argumentsInColorFunction",Dt("Invalid number of parameters"),io),UnknownProperty:new so("unknownProperties",Dt("Unknown property."),no),UnknownAtRules:new so("unknownAtRules",Dt("Unknown at-rule."),no),IEStarHack:new so("ieHack",Dt("IE hacks are only necessary when supporting IE7 and older"),ro),UnknownVendorSpecificProperty:new so("unknownVendorSpecificProperties",Dt("Unknown vendor specific property."),ro),PropertyIgnoredDueToDisplay:new so("propertyIgnoredDueToDisplay",Dt("Property is ignored due to the display."),no),AvoidImportant:new so("important",Dt("Avoid using !important. It is an indication that the specificity of the entire CSS has gotten out of control and needs to be refactored."),ro),AvoidFloat:new so("float",Dt("Avoid using 'float'. Floats lead to fragile CSS that is easy to break if one aspect of the layout changes."),ro),AvoidIdSelector:new so("idSelector",Dt("Selectors should not contain IDs because these rules are too tightly coupled with the HTML."),ro)},ao={ValidProperties:new class{constructor(e,t,n){this.id=e,this.message=t,this.defaultValue=n}}("validProperties",Dt("A list of properties that are not validated against the `unknownProperties` rule."),[])},lo=class{constructor(e={}){this.conf=e}getRule(e){if(this.conf.hasOwnProperty(e.id)){const t=function(e){switch(e){case"ignore":return ce.Ignore;case"warning":return ce.Warning;case"error":return ce.Error}return null}(this.conf[e.id]);if(t)return t}return e.defaultValue}getSetting(e){return this.conf[e.id]}},co=class{constructor(e){this.cssDataManager=e}doCodeActions(e,t,n,i){return this.doCodeActions2(e,t,n,i).map((t=>{const n=t.edit&&t.edit.documentChanges&&t.edit.documentChanges[0];return mn.create(t.title,"_css.applyCodeAction",e.uri,e.version,n&&n.edits)}))}doCodeActions2(e,t,n,i){const r=[];if(n.diagnostics)for(const t of n.diagnostics)this.appendFixesForMarker(e,i,t,r);return r}getFixesForUnknownProperty(e,t,n,i){const r=t.getName(),s=[];this.cssDataManager.getProperties().forEach((e=>{const t=function(e,t,n=4){let i=Math.abs(e.length-t.length);if(i>n)return 0;let r,s,o=[],a=[];for(r=0;r=r.length/2&&s.push({property:e.name,score:t})})),s.sort(((e,t)=>t.score-e.score||e.property.localeCompare(t.property)));let o=3;for(const t of s){const r=t.property,s=Dt("Rename to '{0}'",r),a=fn.replace(n.range,r),l=Mn.create(e.uri,e.version),c={documentChanges:[xn.create(l,[a])]},h=Si.create(s,c,fi.QuickFix);if(h.diagnostics=[n],i.push(h),--o<=0)return}}appendFixesForMarker(e,t,n,i){if(n.code!==oo.UnknownProperty.id)return;const r=e.offsetAt(n.range.start),s=e.offsetAt(n.range.end),o=le(t,r);for(let t=o.length-1;t>=0;t--){const a=o[t];if(a instanceof Ce){const t=a.getProperty();if(t&&t.offset===r&&t.end===s)return void this.getFixesForUnknownProperty(e,t,n,i)}}}},ho=class{constructor(e){this.fullPropertyName=e.getFullPropertyName().toLowerCase(),this.node=e}};function po(e,t,n,i){const r=e[t];r.value=n,n&&(cs(r.properties,i)||r.properties.push(i))}function mo(e,t,n,i){"top"===t||"right"===t||"bottom"===t||"left"===t?po(e,t,n,i):function(e,t,n){po(e,"top",t,n),po(e,"right",t,n),po(e,"bottom",t,n),po(e,"left",t,n)}(e,n,i)}function uo(e,t,n){switch(t.length){case 1:mo(e,void 0,t[0],n);break;case 2:mo(e,"top",t[0],n),mo(e,"bottom",t[0],n),mo(e,"right",t[1],n),mo(e,"left",t[1],n);break;case 3:mo(e,"top",t[0],n),mo(e,"right",t[1],n),mo(e,"left",t[1],n),mo(e,"bottom",t[2],n);break;case 4:mo(e,"top",t[0],n),mo(e,"right",t[1],n),mo(e,"bottom",t[2],n),mo(e,"left",t[3],n)}}function fo(e,t){for(let n of t)if(e.matches(n))return!0;return!1}function go(e,t=!0){return!(t&&fo(e,["initial","unset"])||0===parseFloat(e.getText()))}function bo(e,t=!0){return e.map((e=>go(e,t)))}function vo(e,t=!0){return!(fo(e,["none","hidden"])||t&&fo(e,["initial","unset"]))}function yo(e,t=!0){return e.map((e=>vo(e,t)))}function wo(e){const t=e.getChildren();if(1===t.length){const e=t[0];return go(e)&&vo(e)}for(const e of t){const t=e;if(!go(t,!1)||!vo(t,!1))return!1}return!0}var So=class{constructor(){this.data={}}add(e,t,n){let i=this.data[e];i||(i={nodes:[],names:[]},this.data[e]=i),i.names.push(t),n&&i.nodes.push(n)}},xo=class e{static entries(t,n,i,r,s){const o=new e(n,i,r);return t.acceptVisitor(o),o.completeValidations(),o.getEntries(s)}constructor(e,t,n){this.cssDataManager=n,this.warnings=[],this.settings=t,this.documentText=e.getText(),this.keyframes=new So,this.validProperties={};const i=t.getSetting(ao.ValidProperties);Array.isArray(i)&&i.forEach((e=>{if("string"==typeof e){const t=e.trim().toLowerCase();t.length&&(this.validProperties[t]=!0)}}))}isValidPropertyDeclaration(e){const t=e.fullPropertyName;return this.validProperties[t]}fetch(e,t){const n=[];for(const i of e)i.fullPropertyName===t&&n.push(i);return n}fetchWithValue(e,t,n){const i=[];for(const r of e)if(r.fullPropertyName===t){const e=r.node.getValue();e&&this.findValueInExpression(e,n)&&i.push(r)}return i}findValueInExpression(e,t){let n=!1;return e.accept((e=>(e.type===Q.Identifier&&e.matches(t)&&(n=!0),!n))),n}getEntries(e=ce.Warning|ce.Error){return this.warnings.filter((t=>!!(t.getLevel()&e)))}addEntry(e,t,n){const i=new Nt(e,t,this.settings.getRule(t),n);this.warnings.push(i)}getMissingNames(e,t){const n=e.slice(0);for(let e=0;e0){const e=this.fetch(i,"float");for(let t=0;t0){const e=this.fetch(i,"vertical-align");for(let t=0;t1)for(let n=0;ne.startsWith(r)))&&a.delete(t)}}const l=[];for(let t=0,n=e.prefixes.length;t!(e instanceof at&&(i+=1,1)))),i!==n&&this.addEntry(e,oo.ArgsInColorFunction)),!0}};xo.prefixes=["-ms-","-moz-","-o-","-webkit-"];var Co=class{constructor(e){this.cssDataManager=e}configure(e){this.settings=e}doValidation(e,t,n=this.settings){if(n&&!1===n.validate)return[];const i=[];i.push.apply(i,It.entries(t)),i.push.apply(i,xo.entries(t,e,new lo(n&&n.lint),this.cssDataManager));const r=[];for(const e in oo)r.push(oo[e].id);return i.filter((e=>e.getLevel()!==ce.Ignore)).map((function(t){const n=Ut.create(e.positionAt(t.getOffset()),e.positionAt(t.getOffset()+t.getLength())),i=e.languageId;return{code:t.getRule().id,source:i,message:t.getMessage(),severity:t.getLevel()===ce.Warning?on.Warning:on.Error,range:n}}))}},_o="/".charCodeAt(0),ko="\n".charCodeAt(0),Eo="\r".charCodeAt(0),Fo="\f".charCodeAt(0),Ro="$".charCodeAt(0),No="#".charCodeAt(0),Io="{".charCodeAt(0),Do="=".charCodeAt(0),To="!".charCodeAt(0),Mo="<".charCodeAt(0),Ao=">".charCodeAt(0),zo=".".charCodeAt(0),Lo=("@".charCodeAt(0),i.CustomToken),Oo=Lo++,Po=Lo++,Wo=(Lo++,Lo++),Vo=Lo++,Uo=Lo++,$o=Lo++,qo=Lo++,Ko=(Lo++,class extends ne{scanNext(e){if(this.stream.advanceIfChar(Ro)){const t=["$"];if(this.ident(t))return this.finishToken(e,Oo,t.join(""));this.stream.goBackTo(e)}return this.stream.advanceIfChars([No,Io])?this.finishToken(e,Po):this.stream.advanceIfChars([Do,Do])?this.finishToken(e,Wo):this.stream.advanceIfChars([To,Do])?this.finishToken(e,Vo):this.stream.advanceIfChar(Mo)?this.stream.advanceIfChar(Do)?this.finishToken(e,$o):this.finishToken(e,i.Delim):this.stream.advanceIfChar(Ao)?this.stream.advanceIfChar(Do)?this.finishToken(e,Uo):this.finishToken(e,i.Delim):this.stream.advanceIfChars([zo,zo,zo])?this.finishToken(e,qo):super.scanNext(e)}comment(){return!!super.comment()||!(this.inURL||!this.stream.advanceIfChars([_o,_o]))&&(this.stream.advanceWhileChar((e=>{switch(e){case ko:case Eo:case Fo:return!1;default:return!0}})),!0)}}),Bo=class{constructor(e,t){this.id=e,this.message=t}},jo={FromExpected:new Bo("scss-fromexpected",Dt("'from' expected")),ThroughOrToExpected:new Bo("scss-throughexpected",Dt("'through' or 'to' expected")),InExpected:new Bo("scss-fromexpected",Dt("'in' expected"))},Ho=class extends ls{constructor(){super(new Ko)}_parseStylesheetStatement(e=!1){return this.peek(i.AtKeyword)?this._parseWarnAndDebug()||this._parseControlStatement()||this._parseMixinDeclaration()||this._parseMixinContent()||this._parseMixinReference()||this._parseFunctionDeclaration()||this._parseForward()||this._parseUse()||this._parseRuleset(e)||super._parseStylesheetAtStatement(e):this._parseRuleset(!0)||this._parseVariableDeclaration()}_parseImport(){if(!this.peekKeyword("@import"))return null;const e=this.create(Ue);if(this.consumeToken(),!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,or.URIOrStringExpected);for(;this.accept(i.Comma);)if(!e.addChild(this._parseURILiteral())&&!e.addChild(this._parseStringLiteral()))return this.finish(e,or.URIOrStringExpected);return this._completeParseImport(e)}_parseVariableDeclaration(e=[]){if(!this.peek(Oo))return null;const t=this.create(gt);if(!t.setVariable(this._parseVariable()))return null;if(!this.accept(i.Colon))return this.finish(t,or.ColonExpected);if(this.prevToken&&(t.colonPosition=this.prevToken.offset),!t.setValue(this._parseExpr()))return this.finish(t,or.VariableValueExpected,[],e);for(;this.peek(i.Exclamation);)if(t.addChild(this._tryParsePrio()));else{if(this.consumeToken(),!this.peekRegExp(i.Ident,/^(default|global)$/))return this.finish(t,or.UnknownKeyword);this.consumeToken()}return this.peek(i.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)}_parseMediaCondition(){return this._parseInterpolation()||super._parseMediaCondition()}_parseMediaFeatureRangeOperator(){return this.accept($o)||this.accept(Uo)||super._parseMediaFeatureRangeOperator()}_parseMediaFeatureName(){return this._parseModuleMember()||this._parseFunction()||this._parseIdent()||this._parseVariable()}_parseKeyframeSelector(){return this._tryParseKeyframeSelector()||this._parseControlStatement(this._parseKeyframeSelector.bind(this))||this._parseWarnAndDebug()||this._parseMixinReference()||this._parseFunctionDeclaration()||this._parseVariableDeclaration()||this._parseMixinContent()}_parseVariable(){if(!this.peek(Oo))return null;const e=this.create(vt);return this.consumeToken(),e}_parseModuleMember(){const e=this.mark(),t=this.create(Rt);return t.setIdentifier(this._parseIdent([ee.Module]))?this.hasWhitespace()||!this.acceptDelim(".")||this.hasWhitespace()?(this.restoreAtMark(e),null):t.addChild(this._parseVariable()||this._parseFunction())?t:this.finish(t,or.IdentifierOrVariableExpected):null}_parseIdent(e){if(!this.peek(i.Ident)&&!this.peek(Po)&&!this.peekDelim("-"))return null;const t=this.create(ue);t.referenceTypes=e,t.isCustomProperty=this.peekRegExp(i.Ident,/^--/);let n=!1;const r=()=>{const e=this.mark();return this.acceptDelim("-")&&(this.hasWhitespace()||this.acceptDelim("-"),this.hasWhitespace())?(this.restoreAtMark(e),null):this._parseInterpolation()};for(;(this.accept(i.Ident)||t.addChild(r())||n&&this.acceptRegexp(/^[\w-]/))&&(n=!0,!this.hasWhitespace()););return n?this.finish(t):null}_parseTermExpression(){return this._parseModuleMember()||this._parseVariable()||this._parseNestingSelector()||super._parseTermExpression()}_parseInterpolation(){if(this.peek(Po)){const e=this.create(bt);return this.consumeToken(),e.addChild(this._parseExpr())||this._parseNestingSelector()?this.accept(i.CurlyR)?this.finish(e):this.finish(e,or.RightCurlyExpected):this.accept(i.CurlyR)?this.finish(e):this.finish(e,or.ExpressionExpected)}return null}_parseOperator(){if(this.peek(Wo)||this.peek(Vo)||this.peek(Uo)||this.peek($o)||this.peekDelim(">")||this.peekDelim("<")||this.peekIdent("and")||this.peekIdent("or")||this.peekDelim("%")){const e=this.createNode(Q.Operator);return this.consumeToken(),this.finish(e)}return super._parseOperator()}_parseUnaryOperator(){if(this.peekIdent("not")){const e=this.create(de);return this.consumeToken(),this.finish(e)}return super._parseUnaryOperator()}_parseRuleSetDeclaration(){return this.peek(i.AtKeyword)?this._parseKeyframe()||this._parseImport()||this._parseMedia(!0)||this._parseFontFace()||this._parseWarnAndDebug()||this._parseControlStatement()||this._parseFunctionDeclaration()||this._parseExtends()||this._parseMixinReference()||this._parseMixinContent()||this._parseMixinDeclaration()||this._parseRuleset(!0)||this._parseSupports(!0)||this._parseLayer()||this._parsePropertyAtRule()||this._parseContainer(!0)||this._parseRuleSetDeclarationAtStatement():this._parseVariableDeclaration()||this._tryParseRuleset(!0)||this._parseDeclaration()}_parseDeclaration(e){const t=this._tryParseCustomPropertyDeclaration(e);if(t)return t;const n=this.create(Ce);if(!n.setProperty(this._parseProperty()))return null;if(!this.accept(i.Colon))return this.finish(n,or.ColonExpected,[i.Colon],e||[i.SemiColon]);this.prevToken&&(n.colonPosition=this.prevToken.offset);let r=!1;if(n.setValue(this._parseExpr())&&(r=!0,n.addChild(this._parsePrio())),this.peek(i.CurlyL))n.setNestedProperties(this._parseNestedProperties());else if(!r)return this.finish(n,or.PropertyValueExpected);return this.peek(i.SemiColon)&&(n.semicolonPosition=this.token.offset),this.finish(n)}_parseNestedProperties(){const e=this.create(Pe);return this._parseBody(e,this._parseDeclaration.bind(this))}_parseExtends(){if(this.peekKeyword("@extend")){const e=this.create(yt);if(this.consumeToken(),!e.getSelectors().addChild(this._parseSimpleSelector()))return this.finish(e,or.SelectorExpected);for(;this.accept(i.Comma);)e.getSelectors().addChild(this._parseSimpleSelector());return this.accept(i.Exclamation)&&!this.acceptIdent("optional")?this.finish(e,or.UnknownKeyword):this.finish(e)}return null}_parseSimpleSelectorBody(){return this._parseSelectorPlaceholder()||super._parseSimpleSelectorBody()}_parseNestingSelector(){if(this.peekDelim("&")){const e=this.createNode(Q.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(i.Num)||this.accept(i.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(e)}return null}_parseSelectorPlaceholder(){if(this.peekDelim("%")){const e=this.createNode(Q.SelectorPlaceholder);return this.consumeToken(),this._parseIdent(),this.finish(e)}if(this.peekKeyword("@at-root")){const e=this.createNode(Q.SelectorPlaceholder);if(this.consumeToken(),this.accept(i.ParenthesisL)){if(!this.acceptIdent("with")&&!this.acceptIdent("without"))return this.finish(e,or.IdentifierExpected);if(!this.accept(i.Colon))return this.finish(e,or.ColonExpected);if(!e.addChild(this._parseIdent()))return this.finish(e,or.IdentifierExpected);if(!this.accept(i.ParenthesisR))return this.finish(e,or.RightParenthesisExpected,[i.CurlyR])}return this.finish(e)}return null}_parseElementName(){const e=this.mark(),t=super._parseElementName();return t&&!this.hasWhitespace()&&this.peek(i.ParenthesisL)?(this.restoreAtMark(e),null):t}_tryParsePseudoIdentifier(){return this._parseInterpolation()||super._tryParsePseudoIdentifier()}_parseWarnAndDebug(){if(!this.peekKeyword("@debug")&&!this.peekKeyword("@warn")&&!this.peekKeyword("@error"))return null;const e=this.createNode(Q.Debug);return this.consumeToken(),e.addChild(this._parseExpr()),this.finish(e)}_parseControlStatement(e=this._parseRuleSetDeclaration.bind(this)){return this.peek(i.AtKeyword)?this._parseIfStatement(e)||this._parseForStatement(e)||this._parseEachStatement(e)||this._parseWhileStatement(e):null}_parseIfStatement(e){return this.peekKeyword("@if")?this._internalParseIfStatement(e):null}_internalParseIfStatement(e){const t=this.create(Ie);if(this.consumeToken(),!t.setExpression(this._parseExpr(!0)))return this.finish(t,or.ExpressionExpected);if(this._parseBody(t,e),this.acceptKeyword("@else"))if(this.peekIdent("if"))t.setElseClause(this._internalParseIfStatement(e));else if(this.peek(i.CurlyL)){const n=this.create(Ae);this._parseBody(n,e),t.setElseClause(n)}return this.finish(t)}_parseForStatement(e){if(!this.peekKeyword("@for"))return null;const t=this.create(De);return this.consumeToken(),t.setVariable(this._parseVariable())?this.acceptIdent("from")?t.addChild(this._parseBinaryExpr())?this.acceptIdent("to")||this.acceptIdent("through")?t.addChild(this._parseBinaryExpr())?this._parseBody(t,e):this.finish(t,or.ExpressionExpected,[i.CurlyR]):this.finish(t,jo.ThroughOrToExpected,[i.CurlyR]):this.finish(t,or.ExpressionExpected,[i.CurlyR]):this.finish(t,jo.FromExpected,[i.CurlyR]):this.finish(t,or.VariableNameExpected,[i.CurlyR])}_parseEachStatement(e){if(!this.peekKeyword("@each"))return null;const t=this.create(Te);this.consumeToken();const n=t.getVariables();if(!n.addChild(this._parseVariable()))return this.finish(t,or.VariableNameExpected,[i.CurlyR]);for(;this.accept(i.Comma);)if(!n.addChild(this._parseVariable()))return this.finish(t,or.VariableNameExpected,[i.CurlyR]);return this.finish(n),this.acceptIdent("in")?t.addChild(this._parseExpr())?this._parseBody(t,e):this.finish(t,or.ExpressionExpected,[i.CurlyR]):this.finish(t,jo.InExpected,[i.CurlyR])}_parseWhileStatement(e){if(!this.peekKeyword("@while"))return null;const t=this.create(Me);return this.consumeToken(),t.addChild(this._parseBinaryExpr())?this._parseBody(t,e):this.finish(t,or.ExpressionExpected,[i.CurlyR])}_parseFunctionBodyDeclaration(){return this._parseVariableDeclaration()||this._parseReturnStatement()||this._parseWarnAndDebug()||this._parseControlStatement(this._parseFunctionBodyDeclaration.bind(this))}_parseFunctionDeclaration(){if(!this.peekKeyword("@function"))return null;const e=this.create(ze);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([ee.Function])))return this.finish(e,or.IdentifierExpected,[i.CurlyR]);if(!this.accept(i.ParenthesisL))return this.finish(e,or.LeftParenthesisExpected,[i.CurlyR]);if(e.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(i.Comma)&&!this.peek(i.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,or.VariableNameExpected);return this.accept(i.ParenthesisR)?this._parseBody(e,this._parseFunctionBodyDeclaration.bind(this)):this.finish(e,or.RightParenthesisExpected,[i.CurlyR])}_parseReturnStatement(){if(!this.peekKeyword("@return"))return null;const e=this.createNode(Q.ReturnStatement);return this.consumeToken(),e.addChild(this._parseExpr())?this.finish(e):this.finish(e,or.ExpressionExpected)}_parseMixinDeclaration(){if(!this.peekKeyword("@mixin"))return null;const e=this.create(Ct);if(this.consumeToken(),!e.setIdentifier(this._parseIdent([ee.Mixin])))return this.finish(e,or.IdentifierExpected,[i.CurlyR]);if(this.accept(i.ParenthesisL)){if(e.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(i.Comma)&&!this.peek(i.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,or.VariableNameExpected);if(!this.accept(i.ParenthesisR))return this.finish(e,or.RightParenthesisExpected,[i.CurlyR])}return this._parseBody(e,this._parseRuleSetDeclaration.bind(this))}_parseParameterDeclaration(){const e=this.create(Re);return e.setIdentifier(this._parseVariable())?(this.accept(qo),this.accept(i.Colon)&&!e.setDefaultValue(this._parseExpr(!0))?this.finish(e,or.VariableValueExpected,[],[i.Comma,i.ParenthesisR]):this.finish(e)):null}_parseMixinContent(){if(!this.peekKeyword("@content"))return null;const e=this.create(wt);if(this.consumeToken(),this.accept(i.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(i.Comma)&&!this.peek(i.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,or.ExpressionExpected);if(!this.accept(i.ParenthesisR))return this.finish(e,or.RightParenthesisExpected)}return this.finish(e)}_parseMixinReference(){if(!this.peekKeyword("@include"))return null;const e=this.create(xt);this.consumeToken();const t=this._parseIdent([ee.Mixin]);if(!e.setIdentifier(t))return this.finish(e,or.IdentifierExpected,[i.CurlyR]);if(!this.hasWhitespace()&&this.acceptDelim(".")&&!this.hasWhitespace()){const n=this._parseIdent([ee.Mixin]);if(!n)return this.finish(e,or.IdentifierExpected,[i.CurlyR]);const r=this.create(Rt);t.referenceTypes=[ee.Module],r.setIdentifier(t),e.setIdentifier(n),e.addChild(r)}if(this.accept(i.ParenthesisL)){if(e.getArguments().addChild(this._parseFunctionArgument()))for(;this.accept(i.Comma)&&!this.peek(i.ParenthesisR);)if(!e.getArguments().addChild(this._parseFunctionArgument()))return this.finish(e,or.ExpressionExpected);if(!this.accept(i.ParenthesisR))return this.finish(e,or.RightParenthesisExpected)}return(this.peekIdent("using")||this.peek(i.CurlyL))&&e.setContent(this._parseMixinContentDeclaration()),this.finish(e)}_parseMixinContentDeclaration(){const e=this.create(St);if(this.acceptIdent("using")){if(!this.accept(i.ParenthesisL))return this.finish(e,or.LeftParenthesisExpected,[i.CurlyL]);if(e.getParameters().addChild(this._parseParameterDeclaration()))for(;this.accept(i.Comma)&&!this.peek(i.ParenthesisR);)if(!e.getParameters().addChild(this._parseParameterDeclaration()))return this.finish(e,or.VariableNameExpected);if(!this.accept(i.ParenthesisR))return this.finish(e,or.RightParenthesisExpected,[i.CurlyL])}return this.peek(i.CurlyL)&&this._parseBody(e,this._parseMixinReferenceBodyStatement.bind(this)),this.finish(e)}_parseMixinReferenceBodyStatement(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()}_parseFunctionArgument(){const e=this.create(Ne),t=this.mark(),n=this._parseVariable();if(n)if(this.accept(i.Colon))e.setIdentifier(n);else{if(this.accept(qo))return e.setValue(n),this.finish(e);this.restoreAtMark(t)}return e.setValue(this._parseExpr(!0))?(this.accept(qo),e.addChild(this._parsePrio()),this.finish(e)):e.setValue(this._tryParsePrio())?this.finish(e):null}_parseURLArgument(){const e=this.mark(),t=super._parseURLArgument();if(!t||!this.peek(i.ParenthesisR)){this.restoreAtMark(e);const t=this.create(de);return t.addChild(this._parseBinaryExpr()),this.finish(t)}return t}_parseOperation(){if(!this.peek(i.ParenthesisL))return null;const e=this.create(de);for(this.consumeToken();e.addChild(this._parseListElement());)this.accept(i.Comma);return this.accept(i.ParenthesisR)?this.finish(e):this.finish(e,or.RightParenthesisExpected)}_parseListElement(){const e=this.create(kt),t=this._parseBinaryExpr();if(!t)return null;if(this.accept(i.Colon)){if(e.setKey(t),!e.setValue(this._parseBinaryExpr()))return this.finish(e,or.ExpressionExpected)}else e.setValue(t);return this.finish(e)}_parseUse(){if(!this.peekKeyword("@use"))return null;const e=this.create($e);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,or.StringLiteralExpected);if(!this.peek(i.SemiColon)&&!this.peek(i.EOF)){if(!this.peekRegExp(i.Ident,/as|with/))return this.finish(e,or.UnknownKeyword);if(this.acceptIdent("as")&&!e.setIdentifier(this._parseIdent([ee.Module]))&&!this.acceptDelim("*"))return this.finish(e,or.IdentifierOrWildcardExpected);if(this.acceptIdent("with")){if(!this.accept(i.ParenthesisL))return this.finish(e,or.LeftParenthesisExpected,[i.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,or.VariableNameExpected);for(;this.accept(i.Comma)&&!this.peek(i.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,or.VariableNameExpected);if(!this.accept(i.ParenthesisR))return this.finish(e,or.RightParenthesisExpected)}}return this.accept(i.SemiColon)||this.accept(i.EOF)?this.finish(e):this.finish(e,or.SemiColonExpected)}_parseModuleConfigDeclaration(){const e=this.create(qe);return e.setIdentifier(this._parseVariable())?this.accept(i.Colon)&&e.setValue(this._parseExpr(!0))?!this.accept(i.Exclamation)||!this.hasWhitespace()&&this.acceptIdent("default")?this.finish(e):this.finish(e,or.UnknownKeyword):this.finish(e,or.VariableValueExpected,[],[i.Comma,i.ParenthesisR]):null}_parseForward(){if(!this.peekKeyword("@forward"))return null;const e=this.create(Ke);if(this.consumeToken(),!e.addChild(this._parseStringLiteral()))return this.finish(e,or.StringLiteralExpected);if(this.acceptIdent("as")){const t=this._parseIdent([ee.Forward]);if(!e.setIdentifier(t))return this.finish(e,or.IdentifierExpected);if(this.hasWhitespace()||!this.acceptDelim("*"))return this.finish(e,or.WildcardExpected)}if(this.acceptIdent("with")){if(!this.accept(i.ParenthesisL))return this.finish(e,or.LeftParenthesisExpected,[i.ParenthesisR]);if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,or.VariableNameExpected);for(;this.accept(i.Comma)&&!this.peek(i.ParenthesisR);)if(!e.getParameters().addChild(this._parseModuleConfigDeclaration()))return this.finish(e,or.VariableNameExpected);if(!this.accept(i.ParenthesisR))return this.finish(e,or.RightParenthesisExpected)}else if((this.peekIdent("hide")||this.peekIdent("show"))&&!e.addChild(this._parseForwardVisibility()))return this.finish(e,or.IdentifierOrVariableExpected);return this.accept(i.SemiColon)||this.accept(i.EOF)?this.finish(e):this.finish(e,or.SemiColonExpected)}_parseForwardVisibility(){const e=this.create(Be);for(e.setIdentifier(this._parseIdent());e.addChild(this._parseVariable()||this._parseIdent());)this.accept(i.Comma);return e.getChildren().length>1?e:null}_parseSupportsCondition(){return this._parseInterpolation()||super._parseSupportsCondition()}},Go=Dt("Sass documentation"),Jo=class e extends Ds{constructor(t,n){super("$",t,n),Xo(e.scssModuleLoaders),Xo(e.scssModuleBuiltIns)}isImportPathParent(e){return e===Q.Forward||e===Q.Use||super.isImportPathParent(e)}getCompletionForImportPath(t,n){const i=t.getParent().type;if(i===Q.Forward||i===Q.Use)for(let i of e.scssModuleBuiltIns){const e={label:i.label,documentation:i.documentation,textEdit:fn.replace(this.getCompletionRange(t),`'${i.label}'`),kind:$n.Module};n.items.push(e)}return super.getCompletionForImportPath(t,n)}createReplaceFunction(){let t=1;return(n,i)=>"\\"+i+": ${"+t+++":"+(e.variableDefaults[i]||"")+"}"}createFunctionProposals(e,t,n,i){for(const r of e){const e=r.func.replace(/\[?(\$\w+)\]?/g,this.createReplaceFunction()),s={label:r.func.substr(0,r.func.indexOf("(")),detail:r.func,documentation:r.desc,textEdit:fn.replace(this.getCompletionRange(t),e),insertTextFormat:Kn.Snippet,kind:$n.Function};n&&(s.sortText="z"),i.items.push(s)}return i}getCompletionsForSelector(t,n,i){return this.createFunctionProposals(e.selectorFuncs,null,!0,i),super.getCompletionsForSelector(t,n,i)}getTermProposals(t,n,i){let r=e.builtInFuncs;return t&&(r=r.filter((e=>!e.type||!t.restrictions||-1!==t.restrictions.indexOf(e.type)))),this.createFunctionProposals(r,n,!0,i),super.getTermProposals(t,n,i)}getColorProposals(t,n,i){return this.createFunctionProposals(e.colorProposals,n,!1,i),super.getColorProposals(t,n,i)}getCompletionsForDeclarationProperty(e,t){return this.getCompletionForAtDirectives(t),this.getCompletionsForSelector(null,!0,t),super.getCompletionsForDeclarationProperty(e,t)}getCompletionsForExtendsReference(e,t,n){const i=this.getSymbolContext().findSymbolsAtOffset(this.offset,ee.Rule);for(const e of i){const i={label:e.name,textEdit:fn.replace(this.getCompletionRange(t),e.name),kind:$n.Function};n.items.push(i)}return n}getCompletionForAtDirectives(t){return t.items.push(...e.scssAtDirectives),t}getCompletionForTopLevel(e){return this.getCompletionForAtDirectives(e),this.getCompletionForModuleLoaders(e),super.getCompletionForTopLevel(e),e}getCompletionForModuleLoaders(t){return t.items.push(...e.scssModuleLoaders),t}};function Xo(e){e.forEach((e=>{if(e.documentation&&e.references&&e.references.length>0){const t="string"==typeof e.documentation?{kind:"markdown",value:e.documentation}:{kind:"markdown",value:e.documentation.value};t.value+="\n\n",t.value+=e.references.map((e=>`[${e.name}](${e.url})`)).join(" | "),e.documentation=t}}))}Jo.variableDefaults={$red:"1",$green:"2",$blue:"3",$alpha:"1.0",$color:"#000000",$weight:"0.5",$hue:"0",$saturation:"0%",$lightness:"0%",$degrees:"0",$amount:"0",$string:'""',$substring:'"s"',$number:"0",$limit:"1"},Jo.colorProposals=[{func:"red($color)",desc:Dt("Gets the red component of a color.")},{func:"green($color)",desc:Dt("Gets the green component of a color.")},{func:"blue($color)",desc:Dt("Gets the blue component of a color.")},{func:"mix($color, $color, [$weight])",desc:Dt("Mixes two colors together.")},{func:"hue($color)",desc:Dt("Gets the hue component of a color.")},{func:"saturation($color)",desc:Dt("Gets the saturation component of a color.")},{func:"lightness($color)",desc:Dt("Gets the lightness component of a color.")},{func:"adjust-hue($color, $degrees)",desc:Dt("Changes the hue of a color.")},{func:"lighten($color, $amount)",desc:Dt("Makes a color lighter.")},{func:"darken($color, $amount)",desc:Dt("Makes a color darker.")},{func:"saturate($color, $amount)",desc:Dt("Makes a color more saturated.")},{func:"desaturate($color, $amount)",desc:Dt("Makes a color less saturated.")},{func:"grayscale($color)",desc:Dt("Converts a color to grayscale.")},{func:"complement($color)",desc:Dt("Returns the complement of a color.")},{func:"invert($color)",desc:Dt("Returns the inverse of a color.")},{func:"alpha($color)",desc:Dt("Gets the opacity component of a color.")},{func:"opacity($color)",desc:"Gets the alpha component (opacity) of a color."},{func:"rgba($color, $alpha)",desc:Dt("Changes the alpha component for a color.")},{func:"opacify($color, $amount)",desc:Dt("Makes a color more opaque.")},{func:"fade-in($color, $amount)",desc:Dt("Makes a color more opaque.")},{func:"transparentize($color, $amount)",desc:Dt("Makes a color more transparent.")},{func:"fade-out($color, $amount)",desc:Dt("Makes a color more transparent.")},{func:"adjust-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:Dt("Increases or decreases one or more components of a color.")},{func:"scale-color($color, [$red], [$green], [$blue], [$saturation], [$lightness], [$alpha])",desc:Dt("Fluidly scales one or more properties of a color.")},{func:"change-color($color, [$red], [$green], [$blue], [$hue], [$saturation], [$lightness], [$alpha])",desc:Dt("Changes one or more properties of a color.")},{func:"ie-hex-str($color)",desc:Dt("Converts a color into the format understood by IE filters.")}],Jo.selectorFuncs=[{func:"selector-nest($selectors…)",desc:Dt("Nests selector beneath one another like they would be nested in the stylesheet.")},{func:"selector-append($selectors…)",desc:Dt("Appends selectors to one another without spaces in between.")},{func:"selector-extend($selector, $extendee, $extender)",desc:Dt("Extends $extendee with $extender within $selector.")},{func:"selector-replace($selector, $original, $replacement)",desc:Dt("Replaces $original with $replacement within $selector.")},{func:"selector-unify($selector1, $selector2)",desc:Dt("Unifies two selectors to produce a selector that matches elements matched by both.")},{func:"is-superselector($super, $sub)",desc:Dt("Returns whether $super matches all the elements $sub does, and possibly more.")},{func:"simple-selectors($selector)",desc:Dt("Returns the simple selectors that comprise a compound selector.")},{func:"selector-parse($selector)",desc:Dt("Parses a selector into the format returned by &.")}],Jo.builtInFuncs=[{func:"unquote($string)",desc:Dt("Removes quotes from a string.")},{func:"quote($string)",desc:Dt("Adds quotes to a string.")},{func:"str-length($string)",desc:Dt("Returns the number of characters in a string.")},{func:"str-insert($string, $insert, $index)",desc:Dt("Inserts $insert into $string at $index.")},{func:"str-index($string, $substring)",desc:Dt("Returns the index of the first occurance of $substring in $string.")},{func:"str-slice($string, $start-at, [$end-at])",desc:Dt("Extracts a substring from $string.")},{func:"to-upper-case($string)",desc:Dt("Converts a string to upper case.")},{func:"to-lower-case($string)",desc:Dt("Converts a string to lower case.")},{func:"percentage($number)",desc:Dt("Converts a unitless number to a percentage."),type:"percentage"},{func:"round($number)",desc:Dt("Rounds a number to the nearest whole number.")},{func:"ceil($number)",desc:Dt("Rounds a number up to the next whole number.")},{func:"floor($number)",desc:Dt("Rounds a number down to the previous whole number.")},{func:"abs($number)",desc:Dt("Returns the absolute value of a number.")},{func:"min($numbers)",desc:Dt("Finds the minimum of several numbers.")},{func:"max($numbers)",desc:Dt("Finds the maximum of several numbers.")},{func:"random([$limit])",desc:Dt("Returns a random number.")},{func:"length($list)",desc:Dt("Returns the length of a list.")},{func:"nth($list, $n)",desc:Dt("Returns a specific item in a list.")},{func:"set-nth($list, $n, $value)",desc:Dt("Replaces the nth item in a list.")},{func:"join($list1, $list2, [$separator])",desc:Dt("Joins together two lists into one.")},{func:"append($list1, $val, [$separator])",desc:Dt("Appends a single value onto the end of a list.")},{func:"zip($lists)",desc:Dt("Combines several lists into a single multidimensional list.")},{func:"index($list, $value)",desc:Dt("Returns the position of a value within a list.")},{func:"list-separator(#list)",desc:Dt("Returns the separator of a list.")},{func:"map-get($map, $key)",desc:Dt("Returns the value in a map associated with a given key.")},{func:"map-merge($map1, $map2)",desc:Dt("Merges two maps together into a new map.")},{func:"map-remove($map, $keys)",desc:Dt("Returns a new map with keys removed.")},{func:"map-keys($map)",desc:Dt("Returns a list of all keys in a map.")},{func:"map-values($map)",desc:Dt("Returns a list of all values in a map.")},{func:"map-has-key($map, $key)",desc:Dt("Returns whether a map has a value associated with a given key.")},{func:"keywords($args)",desc:Dt("Returns the keywords passed to a function that takes variable arguments.")},{func:"feature-exists($feature)",desc:Dt("Returns whether a feature exists in the current Sass runtime.")},{func:"variable-exists($name)",desc:Dt("Returns whether a variable with the given name exists in the current scope.")},{func:"global-variable-exists($name)",desc:Dt("Returns whether a variable with the given name exists in the global scope.")},{func:"function-exists($name)",desc:Dt("Returns whether a function with the given name exists.")},{func:"mixin-exists($name)",desc:Dt("Returns whether a mixin with the given name exists.")},{func:"inspect($value)",desc:Dt("Returns the string representation of a value as it would be represented in Sass.")},{func:"type-of($value)",desc:Dt("Returns the type of a value.")},{func:"unit($number)",desc:Dt("Returns the unit(s) associated with a number.")},{func:"unitless($number)",desc:Dt("Returns whether a number has units.")},{func:"comparable($number1, $number2)",desc:Dt("Returns whether two numbers can be added, subtracted, or compared.")},{func:"call($name, $args…)",desc:Dt("Dynamically calls a Sass function.")}],Jo.scssAtDirectives=[{label:"@extend",documentation:Dt("Inherits the styles of another selector."),kind:$n.Keyword},{label:"@at-root",documentation:Dt("Causes one or more rules to be emitted at the root of the document."),kind:$n.Keyword},{label:"@debug",documentation:Dt("Prints the value of an expression to the standard error output stream. Useful for debugging complicated Sass files."),kind:$n.Keyword},{label:"@warn",documentation:Dt("Prints the value of an expression to the standard error output stream. Useful for libraries that need to warn users of deprecations or recovering from minor mixin usage mistakes. Warnings can be turned off with the `--quiet` command-line option or the `:quiet` Sass option."),kind:$n.Keyword},{label:"@error",documentation:Dt("Throws the value of an expression as a fatal error with stack trace. Useful for validating arguments to mixins and functions."),kind:$n.Keyword},{label:"@if",documentation:Dt("Includes the body if the expression does not evaluate to `false` or `null`."),insertText:"@if ${1:expr} {\n\t$0\n}",insertTextFormat:Kn.Snippet,kind:$n.Keyword},{label:"@for",documentation:Dt("For loop that repeatedly outputs a set of styles for each `$var` in the `from/through` or `from/to` clause."),insertText:"@for \\$${1:var} from ${2:start} ${3|to,through|} ${4:end} {\n\t$0\n}",insertTextFormat:Kn.Snippet,kind:$n.Keyword},{label:"@each",documentation:Dt("Each loop that sets `$var` to each item in the list or map, then outputs the styles it contains using that value of `$var`."),insertText:"@each \\$${1:var} in ${2:list} {\n\t$0\n}",insertTextFormat:Kn.Snippet,kind:$n.Keyword},{label:"@while",documentation:Dt("While loop that takes an expression and repeatedly outputs the nested styles until the statement evaluates to `false`."),insertText:"@while ${1:condition} {\n\t$0\n}",insertTextFormat:Kn.Snippet,kind:$n.Keyword},{label:"@mixin",documentation:Dt("Defines styles that can be re-used throughout the stylesheet with `@include`."),insertText:"@mixin ${1:name} {\n\t$0\n}",insertTextFormat:Kn.Snippet,kind:$n.Keyword},{label:"@include",documentation:Dt("Includes the styles defined by another mixin into the current rule."),kind:$n.Keyword},{label:"@function",documentation:Dt("Defines complex operations that can be re-used throughout stylesheets."),kind:$n.Keyword}],Jo.scssModuleLoaders=[{label:"@use",documentation:Dt("Loads mixins, functions, and variables from other Sass stylesheets as 'modules', and combines CSS from multiple stylesheets together."),references:[{name:Go,url:"https://sass-lang.com/documentation/at-rules/use"}],insertText:"@use $0;",insertTextFormat:Kn.Snippet,kind:$n.Keyword},{label:"@forward",documentation:Dt("Loads a Sass stylesheet and makes its mixins, functions, and variables available when this stylesheet is loaded with the @use rule."),references:[{name:Go,url:"https://sass-lang.com/documentation/at-rules/forward"}],insertText:"@forward $0;",insertTextFormat:Kn.Snippet,kind:$n.Keyword}],Jo.scssModuleBuiltIns=[{label:"sass:math",documentation:Dt("Provides functions that operate on numbers."),references:[{name:Go,url:"https://sass-lang.com/documentation/modules/math"}]},{label:"sass:string",documentation:Dt("Makes it easy to combine, search, or split apart strings."),references:[{name:Go,url:"https://sass-lang.com/documentation/modules/string"}]},{label:"sass:color",documentation:Dt("Generates new colors based on existing ones, making it easy to build color themes."),references:[{name:Go,url:"https://sass-lang.com/documentation/modules/color"}]},{label:"sass:list",documentation:Dt("Lets you access and modify values in lists."),references:[{name:Go,url:"https://sass-lang.com/documentation/modules/list"}]},{label:"sass:map",documentation:Dt("Makes it possible to look up the value associated with a key in a map, and much more."),references:[{name:Go,url:"https://sass-lang.com/documentation/modules/map"}]},{label:"sass:selector",documentation:Dt("Provides access to Sass’s powerful selector engine."),references:[{name:Go,url:"https://sass-lang.com/documentation/modules/selector"}]},{label:"sass:meta",documentation:Dt("Exposes the details of Sass’s inner workings."),references:[{name:Go,url:"https://sass-lang.com/documentation/modules/meta"}]}];var Yo,Qo="/".charCodeAt(0),Zo="\n".charCodeAt(0),ea="\r".charCodeAt(0),ta="\f".charCodeAt(0),na="`".charCodeAt(0),ia=".".charCodeAt(0),ra=i.CustomToken,sa=ra++,oa=class extends ne{scanNext(e){const t=this.escapedJavaScript();return null!==t?this.finishToken(e,t):this.stream.advanceIfChars([ia,ia,ia])?this.finishToken(e,sa):super.scanNext(e)}comment(){return!!super.comment()||!(this.inURL||!this.stream.advanceIfChars([Qo,Qo]))&&(this.stream.advanceWhileChar((e=>{switch(e){case Zo:case ea:case ta:return!1;default:return!0}})),!0)}escapedJavaScript(){return this.stream.peekChar()===na?(this.stream.advance(1),this.stream.advanceWhileChar((e=>e!==na)),this.stream.advanceIfChar(na)?i.EscapedJavaScript:i.BadEscapedJavaScript):null}},aa=class extends ls{constructor(){super(new oa)}_parseStylesheetStatement(e=!1){return this.peek(i.AtKeyword)?this._parseVariableDeclaration()||this._parsePlugin()||super._parseStylesheetAtStatement(e):this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseFunction()||this._parseRuleset(!0)}_parseImport(){if(!this.peekKeyword("@import")&&!this.peekKeyword("@import-once"))return null;const e=this.create(Ue);if(this.consumeToken(),this.accept(i.ParenthesisL)){if(!this.accept(i.Ident))return this.finish(e,or.IdentifierExpected,[i.SemiColon]);do{if(!this.accept(i.Comma))break}while(this.accept(i.Ident));if(!this.accept(i.ParenthesisR))return this.finish(e,or.RightParenthesisExpected,[i.SemiColon])}return e.addChild(this._parseURILiteral())||e.addChild(this._parseStringLiteral())?(this.peek(i.SemiColon)||this.peek(i.EOF)||e.setMedialist(this._parseMediaQueryList()),this._completeParseImport(e)):this.finish(e,or.URIOrStringExpected,[i.SemiColon])}_parsePlugin(){if(!this.peekKeyword("@plugin"))return null;const e=this.createNode(Q.Plugin);return this.consumeToken(),e.addChild(this._parseStringLiteral())?this.accept(i.SemiColon)?this.finish(e):this.finish(e,or.SemiColonExpected):this.finish(e,or.StringLiteralExpected)}_parseMediaQuery(){const e=super._parseMediaQuery();if(!e){const e=this.create(et);return e.addChild(this._parseVariable())?this.finish(e):null}return e}_parseMediaDeclaration(e=!1){return this._tryParseRuleset(e)||this._tryToParseDeclaration()||this._tryParseMixinDeclaration()||this._tryParseMixinReference()||this._parseDetachedRuleSetMixin()||this._parseStylesheetStatement(e)}_parseMediaFeatureName(){return this._parseIdent()||this._parseVariable()}_parseVariableDeclaration(e=[]){const t=this.create(gt),n=this.mark();if(!t.setVariable(this._parseVariable(!0)))return null;if(!this.accept(i.Colon))return this.restoreAtMark(n),null;if(this.prevToken&&(t.colonPosition=this.prevToken.offset),t.setValue(this._parseDetachedRuleSet()))t.needsSemicolon=!1;else if(!t.setValue(this._parseExpr()))return this.finish(t,or.VariableValueExpected,[],e);return t.addChild(this._parsePrio()),this.peek(i.SemiColon)&&(t.semicolonPosition=this.token.offset),this.finish(t)}_parseDetachedRuleSet(){let e=this.mark();if(this.peekDelim("#")||this.peekDelim(".")){if(this.consumeToken(),this.hasWhitespace()||!this.accept(i.ParenthesisL))return this.restoreAtMark(e),null;{let t=this.create(Ct);if(t.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(i.Comma)||this.accept(i.SemiColon))&&!this.peek(i.ParenthesisR);)t.getParameters().addChild(this._parseMixinParameter())||this.markError(t,or.IdentifierExpected,[],[i.ParenthesisR]);if(!this.accept(i.ParenthesisR))return this.restoreAtMark(e),null}}if(!this.peek(i.CurlyL))return null;const t=this.create(be);return this._parseBody(t,this._parseDetachedRuleSetBody.bind(this)),this.finish(t)}_parseDetachedRuleSetBody(){return this._tryParseKeyframeSelector()||this._parseRuleSetDeclaration()}_addLookupChildren(e){if(!e.addChild(this._parseLookupValue()))return!1;let t=!1;for(;this.peek(i.BracketL)&&(t=!0),e.addChild(this._parseLookupValue());)t=!1;return!t}_parseLookupValue(){const e=this.create(de),t=this.mark();return this.accept(i.BracketL)&&((e.addChild(this._parseVariable(!1,!0))||e.addChild(this._parsePropertyIdentifier()))&&this.accept(i.BracketR)||this.accept(i.BracketR))?e:(this.restoreAtMark(t),null)}_parseVariable(e=!1,t=!1){const n=!e&&this.peekDelim("$");if(!this.peekDelim("@")&&!n&&!this.peek(i.AtKeyword))return null;const r=this.create(vt),s=this.mark();for(;this.acceptDelim("@")||!e&&this.acceptDelim("$");)if(this.hasWhitespace())return this.restoreAtMark(s),null;return!this.accept(i.AtKeyword)&&!this.accept(i.Ident)||!t&&this.peek(i.BracketL)&&!this._addLookupChildren(r)?(this.restoreAtMark(s),null):r}_parseTermExpression(){return this._parseVariable()||this._parseEscaped()||super._parseTermExpression()||this._tryParseMixinReference(!1)}_parseEscaped(){if(this.peek(i.EscapedJavaScript)||this.peek(i.BadEscapedJavaScript)){const e=this.createNode(Q.EscapedValue);return this.consumeToken(),this.finish(e)}if(this.peekDelim("~")){const e=this.createNode(Q.EscapedValue);return this.consumeToken(),this.accept(i.String)||this.accept(i.EscapedJavaScript)?this.finish(e):this.finish(e,or.TermExpected)}return null}_parseOperator(){return this._parseGuardOperator()||super._parseOperator()}_parseGuardOperator(){if(this.peekDelim(">")){const e=this.createNode(Q.Operator);return this.consumeToken(),this.acceptDelim("="),e}if(this.peekDelim("=")){const e=this.createNode(Q.Operator);return this.consumeToken(),this.acceptDelim("<"),e}if(this.peekDelim("<")){const e=this.createNode(Q.Operator);return this.consumeToken(),this.acceptDelim("="),e}return null}_parseRuleSetDeclaration(){return this.peek(i.AtKeyword)?this._parseKeyframe()||this._parseMedia(!0)||this._parseImport()||this._parseSupports(!0)||this._parseLayer()||this._parsePropertyAtRule()||this._parseContainer(!0)||this._parseDetachedRuleSetMixin()||this._parseVariableDeclaration()||this._parseRuleSetDeclarationAtStatement():this._tryParseMixinDeclaration()||this._tryParseRuleset(!0)||this._tryParseMixinReference()||this._parseFunction()||this._parseExtend()||this._parseDeclaration()}_parseKeyframeIdent(){return this._parseIdent([ee.Keyframe])||this._parseVariable()}_parseKeyframeSelector(){return this._parseDetachedRuleSetMixin()||super._parseKeyframeSelector()}_parseSelector(e){const t=this.create(ye);let n=!1;for(e&&(n=t.addChild(this._parseCombinator()));t.addChild(this._parseSimpleSelector());){n=!0;const e=this.mark();if(t.addChild(this._parseGuard())&&this.peek(i.CurlyL))break;this.restoreAtMark(e),t.addChild(this._parseCombinator())}return n?this.finish(t):null}_parseNestingSelector(){if(this.peekDelim("&")){const e=this.createNode(Q.SelectorCombinator);for(this.consumeToken();!this.hasWhitespace()&&(this.acceptDelim("-")||this.accept(i.Num)||this.accept(i.Dimension)||e.addChild(this._parseIdent())||this.acceptDelim("&")););return this.finish(e)}return null}_parseSelectorIdent(){if(!this.peekInterpolatedIdent())return null;const e=this.createNode(Q.SelectorInterpolation);return this._acceptInterpolatedIdent(e)?this.finish(e):null}_parsePropertyIdentifier(e=!1){const t=/^[\w-]+/;if(!this.peekInterpolatedIdent()&&!this.peekRegExp(this.token.type,t))return null;const n=this.mark(),i=this.create(ue);i.isCustomProperty=this.acceptDelim("-")&&this.acceptDelim("-");let r=!1;return r=e?i.isCustomProperty?i.addChild(this._parseIdent()):i.addChild(this._parseRegexp(t)):i.isCustomProperty?this._acceptInterpolatedIdent(i):this._acceptInterpolatedIdent(i,t),r?(e||this.hasWhitespace()||(this.acceptDelim("+"),this.hasWhitespace()||this.acceptIdent("_")),this.finish(i)):(this.restoreAtMark(n),null)}peekInterpolatedIdent(){return this.peek(i.Ident)||this.peekDelim("@")||this.peekDelim("$")||this.peekDelim("-")}_acceptInterpolatedIdent(e,t){let n=!1;const r=()=>{const e=this.mark();return this.acceptDelim("-")&&(this.hasWhitespace()||this.acceptDelim("-"),this.hasWhitespace())?(this.restoreAtMark(e),null):this._parseInterpolation()},s=t?()=>this.acceptRegexp(t):()=>this.accept(i.Ident);for(;(s()||e.addChild(this._parseInterpolation()||this.try(r)))&&(n=!0,!this.hasWhitespace()););return n}_parseInterpolation(){const e=this.mark();if(this.peekDelim("@")||this.peekDelim("$")){const t=this.createNode(Q.Interpolation);return this.consumeToken(),this.hasWhitespace()||!this.accept(i.CurlyL)?(this.restoreAtMark(e),null):t.addChild(this._parseIdent())?this.accept(i.CurlyR)?this.finish(t):this.finish(t,or.RightCurlyExpected):this.finish(t,or.IdentifierExpected)}return null}_tryParseMixinDeclaration(){const e=this.mark(),t=this.create(Ct);if(!t.setIdentifier(this._parseMixinDeclarationIdentifier())||!this.accept(i.ParenthesisL))return this.restoreAtMark(e),null;if(t.getParameters().addChild(this._parseMixinParameter()))for(;(this.accept(i.Comma)||this.accept(i.SemiColon))&&!this.peek(i.ParenthesisR);)t.getParameters().addChild(this._parseMixinParameter())||this.markError(t,or.IdentifierExpected,[],[i.ParenthesisR]);return this.accept(i.ParenthesisR)?(t.setGuard(this._parseGuard()),this.peek(i.CurlyL)?this._parseBody(t,this._parseMixInBodyDeclaration.bind(this)):(this.restoreAtMark(e),null)):(this.restoreAtMark(e),null)}_parseMixInBodyDeclaration(){return this._parseFontFace()||this._parseRuleSetDeclaration()}_parseMixinDeclarationIdentifier(){let e;if(this.peekDelim("#")||this.peekDelim(".")){if(e=this.create(ue),this.consumeToken(),this.hasWhitespace()||!e.addChild(this._parseIdent()))return null}else{if(!this.peek(i.Hash))return null;e=this.create(ue),this.consumeToken()}return e.referenceTypes=[ee.Mixin],this.finish(e)}_parsePseudo(){if(!this.peek(i.Colon))return null;const e=this.mark(),t=this.create(yt);return this.consumeToken(),this.acceptIdent("extend")?this._completeExtends(t):(this.restoreAtMark(e),super._parsePseudo())}_parseExtend(){if(!this.peekDelim("&"))return null;const e=this.mark(),t=this.create(yt);return this.consumeToken(),!this.hasWhitespace()&&this.accept(i.Colon)&&this.acceptIdent("extend")?this._completeExtends(t):(this.restoreAtMark(e),null)}_completeExtends(e){if(!this.accept(i.ParenthesisL))return this.finish(e,or.LeftParenthesisExpected);const t=e.getSelectors();if(!t.addChild(this._parseSelector(!0)))return this.finish(e,or.SelectorExpected);for(;this.accept(i.Comma);)if(!t.addChild(this._parseSelector(!0)))return this.finish(e,or.SelectorExpected);return this.accept(i.ParenthesisR)?this.finish(e):this.finish(e,or.RightParenthesisExpected)}_parseDetachedRuleSetMixin(){if(!this.peek(i.AtKeyword))return null;const e=this.mark(),t=this.create(xt);return!t.addChild(this._parseVariable(!0))||!this.hasWhitespace()&&this.accept(i.ParenthesisL)?this.accept(i.ParenthesisR)?this.finish(t):this.finish(t,or.RightParenthesisExpected):(this.restoreAtMark(e),null)}_tryParseMixinReference(e=!0){const t=this.mark(),n=this.create(xt);let r=this._parseMixinDeclarationIdentifier();for(;r;){this.acceptDelim(">");const e=this._parseMixinDeclarationIdentifier();if(!e)break;n.getNamespaces().addChild(r),r=e}if(!n.setIdentifier(r))return this.restoreAtMark(t),null;let s=!1;if(this.accept(i.ParenthesisL)){if(s=!0,n.getArguments().addChild(this._parseMixinArgument()))for(;(this.accept(i.Comma)||this.accept(i.SemiColon))&&!this.peek(i.ParenthesisR);)if(!n.getArguments().addChild(this._parseMixinArgument()))return this.finish(n,or.ExpressionExpected);if(!this.accept(i.ParenthesisR))return this.finish(n,or.RightParenthesisExpected);r.referenceTypes=[ee.Mixin]}else r.referenceTypes=[ee.Mixin,ee.Rule];return this.peek(i.BracketL)?e||this._addLookupChildren(n):n.addChild(this._parsePrio()),s||this.peek(i.SemiColon)||this.peek(i.CurlyR)||this.peek(i.EOF)?this.finish(n):(this.restoreAtMark(t),null)}_parseMixinArgument(){const e=this.create(Ne),t=this.mark(),n=this._parseVariable();return n&&(this.accept(i.Colon)?e.setIdentifier(n):this.restoreAtMark(t)),e.setValue(this._parseDetachedRuleSet()||this._parseExpr(!0))?this.finish(e):(this.restoreAtMark(t),null)}_parseMixinParameter(){const e=this.create(Re);if(this.peekKeyword("@rest")){const t=this.create(de);return this.consumeToken(),this.accept(sa)?(e.setIdentifier(this.finish(t)),this.finish(e)):this.finish(e,or.DotExpected,[],[i.Comma,i.ParenthesisR])}if(this.peek(sa)){const t=this.create(de);return this.consumeToken(),e.setIdentifier(this.finish(t)),this.finish(e)}let t=!1;return e.setIdentifier(this._parseVariable())&&(this.accept(i.Colon),t=!0),e.setDefaultValue(this._parseDetachedRuleSet()||this._parseExpr(!0))||t?this.finish(e):null}_parseGuard(){if(!this.peekIdent("when"))return null;const e=this.create(Et);if(this.consumeToken(),!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,or.ConditionExpected);for(;this.acceptIdent("and")||this.accept(i.Comma);)if(!e.getConditions().addChild(this._parseGuardCondition()))return this.finish(e,or.ConditionExpected);return this.finish(e)}_parseGuardCondition(){const e=this.create(Ft);return e.isNegated=this.acceptIdent("not"),this.accept(i.ParenthesisL)?(e.addChild(this._parseExpr()),this.accept(i.ParenthesisR)?this.finish(e):this.finish(e,or.RightParenthesisExpected)):e.isNegated?this.finish(e,or.LeftParenthesisExpected):null}_parseFunction(){const e=this.mark(),t=this.create(Fe);if(!t.setIdentifier(this._parseFunctionIdentifier()))return null;if(this.hasWhitespace()||!this.accept(i.ParenthesisL))return this.restoreAtMark(e),null;if(t.getArguments().addChild(this._parseMixinArgument()))for(;(this.accept(i.Comma)||this.accept(i.SemiColon))&&!this.peek(i.ParenthesisR);)if(!t.getArguments().addChild(this._parseMixinArgument()))return this.finish(t,or.ExpressionExpected);return this.accept(i.ParenthesisR)?this.finish(t):this.finish(t,or.RightParenthesisExpected)}_parseFunctionIdentifier(){if(this.peekDelim("%")){const e=this.create(ue);return e.referenceTypes=[ee.Function],this.consumeToken(),this.finish(e)}return super._parseFunctionIdentifier()}_parseURLArgument(){const e=this.mark(),t=super._parseURLArgument();if(!t||!this.peek(i.ParenthesisR)){this.restoreAtMark(e);const t=this.create(de);return t.addChild(this._parseBinaryExpr()),this.finish(t)}return t}},la=class e extends Ds{constructor(e,t){super("@",e,t)}createFunctionProposals(e,t,n,i){for(const r of e){const e={label:r.name,detail:r.example,documentation:r.description,textEdit:fn.replace(this.getCompletionRange(t),r.name+"($0)"),insertTextFormat:Kn.Snippet,kind:$n.Function};n&&(e.sortText="z"),i.items.push(e)}return i}getTermProposals(t,n,i){let r=e.builtInProposals;return t&&(r=r.filter((e=>!e.type||!t.restrictions||-1!==t.restrictions.indexOf(e.type)))),this.createFunctionProposals(r,n,!0,i),super.getTermProposals(t,n,i)}getColorProposals(t,n,i){return this.createFunctionProposals(e.colorProposals,n,!1,i),super.getColorProposals(t,n,i)}getCompletionsForDeclarationProperty(e,t){return this.getCompletionsForSelector(null,!0,t),super.getCompletionsForDeclarationProperty(e,t)}};function ca(e,t){const n=function(e){function t(t){return e.positionAt(t.offset).line}function n(t){return e.positionAt(t.offset+t.len).line}function r(e,i){const r=t(e),s=n(e);return r!==s?{startLine:r,endLine:s,kind:i}:null}const s=[],o=[],a=function(){switch(e.languageId){case"scss":return new Ko;case"less":return new oa;default:return new ne}}();a.ignoreComment=!1,a.setSource(e.getText());let l=a.scan(),c=null;for(;l.type!==i.EOF;){switch(l.type){case i.CurlyL:case Po:o.push({line:t(l),type:"brace",isStart:!0});break;case i.CurlyR:if(0!==o.length){const e=ha(o,"brace");if(!e)break;let t=n(l);"brace"===e.type&&(c&&n(c)!==t&&t--,e.line!==t&&s.push({startLine:e.line,endLine:t,kind:void 0}))}break;case i.Comment:{const i=e=>"#region"===e?{line:t(l),type:"comment",isStart:!0}:{line:n(l),type:"comment",isStart:!1},a=(t=>{const n=t.text.match(/^\s*\/\*\s*(#region|#endregion)\b\s*(.*?)\s*\*\//);if(n)return i(n[1]);if("scss"===e.languageId||"less"===e.languageId){const e=t.text.match(/^\s*\/\/\s*(#region|#endregion)\b\s*(.*?)\s*/);if(e)return i(e[1])}return null})(l);if(a)if(a.isStart)o.push(a);else{const e=ha(o,"comment");if(!e)break;"comment"===e.type&&e.line!==a.line&&s.push({startLine:e.line,endLine:a.line,kind:"region"})}else{const e=r(l,"comment");e&&s.push(e)}break}}c=l,l=a.scan()}return s}(e);return function(e,t){const n=t&&t.rangeLimit||Number.MAX_VALUE,i=e.sort(((e,t)=>{let n=e.startLine-t.startLine;return 0===n&&(n=e.endLine-t.endLine),n})),r=[];let s=-1;return i.forEach((e=>{e.startLine=0;n--)if(e[n].type===t&&e[n].isStart)return e.splice(n,1)[0];return null}la.builtInProposals=[{name:"if",example:"if(condition, trueValue [, falseValue]);",description:Dt("returns one of two values depending on a condition.")},{name:"boolean",example:"boolean(condition);",description:Dt('"store" a boolean test for later evaluation in a guard or if().')},{name:"length",example:"length(@list);",description:Dt("returns the number of elements in a value list")},{name:"extract",example:"extract(@list, index);",description:Dt("returns a value at the specified position in the list")},{name:"range",example:"range([start, ] end [, step]);",description:Dt("generate a list spanning a range of values")},{name:"each",example:"each(@list, ruleset);",description:Dt("bind the evaluation of a ruleset to each member of a list.")},{name:"escape",example:"escape(@string);",description:Dt("URL encodes a string")},{name:"e",example:"e(@string);",description:Dt("escape string content")},{name:"replace",example:"replace(@string, @pattern, @replacement[, @flags]);",description:Dt("string replace")},{name:"unit",example:"unit(@dimension, [@unit: '']);",description:Dt("remove or change the unit of a dimension")},{name:"color",example:"color(@string);",description:Dt("parses a string to a color"),type:"color"},{name:"convert",example:"convert(@value, unit);",description:Dt("converts numbers from one type into another")},{name:"data-uri",example:"data-uri([mimetype,] url);",description:Dt("inlines a resource and falls back to `url()`"),type:"url"},{name:"abs",description:Dt("absolute value of a number"),example:"abs(number);"},{name:"acos",description:Dt("arccosine - inverse of cosine function"),example:"acos(number);"},{name:"asin",description:Dt("arcsine - inverse of sine function"),example:"asin(number);"},{name:"ceil",example:"ceil(@number);",description:Dt("rounds up to an integer")},{name:"cos",description:Dt("cosine function"),example:"cos(number);"},{name:"floor",description:Dt("rounds down to an integer"),example:"floor(@number);"},{name:"percentage",description:Dt("converts to a %, e.g. 0.5 > 50%"),example:"percentage(@number);",type:"percentage"},{name:"round",description:Dt("rounds a number to a number of places"),example:"round(number, [places: 0]);"},{name:"sqrt",description:Dt("calculates square root of a number"),example:"sqrt(number);"},{name:"sin",description:Dt("sine function"),example:"sin(number);"},{name:"tan",description:Dt("tangent function"),example:"tan(number);"},{name:"atan",description:Dt("arctangent - inverse of tangent function"),example:"atan(number);"},{name:"pi",description:Dt("returns pi"),example:"pi();"},{name:"pow",description:Dt("first argument raised to the power of the second argument"),example:"pow(@base, @exponent);"},{name:"mod",description:Dt("first argument modulus second argument"),example:"mod(number, number);"},{name:"min",description:Dt("returns the lowest of one or more values"),example:"min(@x, @y);"},{name:"max",description:Dt("returns the lowest of one or more values"),example:"max(@x, @y);"}],la.colorProposals=[{name:"argb",example:"argb(@color);",description:Dt("creates a #AARRGGBB")},{name:"hsl",example:"hsl(@hue, @saturation, @lightness);",description:Dt("creates a color")},{name:"hsla",example:"hsla(@hue, @saturation, @lightness, @alpha);",description:Dt("creates a color")},{name:"hsv",example:"hsv(@hue, @saturation, @value);",description:Dt("creates a color")},{name:"hsva",example:"hsva(@hue, @saturation, @value, @alpha);",description:Dt("creates a color")},{name:"hue",example:"hue(@color);",description:Dt("returns the `hue` channel of `@color` in the HSL space")},{name:"saturation",example:"saturation(@color);",description:Dt("returns the `saturation` channel of `@color` in the HSL space")},{name:"lightness",example:"lightness(@color);",description:Dt("returns the `lightness` channel of `@color` in the HSL space")},{name:"hsvhue",example:"hsvhue(@color);",description:Dt("returns the `hue` channel of `@color` in the HSV space")},{name:"hsvsaturation",example:"hsvsaturation(@color);",description:Dt("returns the `saturation` channel of `@color` in the HSV space")},{name:"hsvvalue",example:"hsvvalue(@color);",description:Dt("returns the `value` channel of `@color` in the HSV space")},{name:"red",example:"red(@color);",description:Dt("returns the `red` channel of `@color`")},{name:"green",example:"green(@color);",description:Dt("returns the `green` channel of `@color`")},{name:"blue",example:"blue(@color);",description:Dt("returns the `blue` channel of `@color`")},{name:"alpha",example:"alpha(@color);",description:Dt("returns the `alpha` channel of `@color`")},{name:"luma",example:"luma(@color);",description:Dt("returns the `luma` value (perceptual brightness) of `@color`")},{name:"saturate",example:"saturate(@color, 10%);",description:Dt("return `@color` 10% points more saturated")},{name:"desaturate",example:"desaturate(@color, 10%);",description:Dt("return `@color` 10% points less saturated")},{name:"lighten",example:"lighten(@color, 10%);",description:Dt("return `@color` 10% points lighter")},{name:"darken",example:"darken(@color, 10%);",description:Dt("return `@color` 10% points darker")},{name:"fadein",example:"fadein(@color, 10%);",description:Dt("return `@color` 10% points less transparent")},{name:"fadeout",example:"fadeout(@color, 10%);",description:Dt("return `@color` 10% points more transparent")},{name:"fade",example:"fade(@color, 50%);",description:Dt("return `@color` with 50% transparency")},{name:"spin",example:"spin(@color, 10);",description:Dt("return `@color` with a 10 degree larger in hue")},{name:"mix",example:"mix(@color1, @color2, [@weight: 50%]);",description:Dt("return a mix of `@color1` and `@color2`")},{name:"greyscale",example:"greyscale(@color);",description:Dt("returns a grey, 100% desaturated color")},{name:"contrast",example:"contrast(@color1, [@darkcolor: black], [@lightcolor: white], [@threshold: 43%]);",description:Dt("return `@darkcolor` if `@color1 is> 43% luma` otherwise return `@lightcolor`, see notes")},{name:"multiply",example:"multiply(@color1, @color2);"},{name:"screen",example:"screen(@color1, @color2);"},{name:"overlay",example:"overlay(@color1, @color2);"},{name:"softlight",example:"softlight(@color1, @color2);"},{name:"hardlight",example:"hardlight(@color1, @color2);"},{name:"difference",example:"difference(@color1, @color2);"},{name:"exclusion",example:"exclusion(@color1, @color2);"},{name:"average",example:"average(@color1, @color2);"},{name:"negation",example:"negation(@color1, @color2);"}],function(){var e=[,,function(e){function t(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function n(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function i(e,i){this.__indent_cache=new n(e,i),this.raw=!1,this._end_with_newline=e.end_with_newline,this.indent_size=e.indent_size,this.wrap_line_length=e.wrap_line_length,this.indent_empty_lines=e.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}t.prototype.clone_empty=function(){var e=new t(this.__parent);return e.set_indent(this.__indent_count,this.__alignment_count),e},t.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},t.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},t.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return 0===this.__items.length},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},t.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},n.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),(n+=e*this.__indent_size)+t},n.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+this.__cache[t]},n.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},i.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline()||(this.raw||this.__add_outputline(),0))},i.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(e){for(var t=0;t1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(e,n){for(var i=this.__lines.length-2;i>=0;){var r=this.__lines[i];if(r.is_empty())break;if(0!==r.item(0).indexOf(e)&&r.item(-1)!==n){this.__lines.splice(i+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},e.exports.Output=i},,,,function(e){function t(e,t){this.raw_options=n(e,t),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}function n(e,t){var n,r={};for(n in e=i(e))n!==t&&(r[n]=e[n]);if(t&&e[t])for(n in e[t])r[n]=e[t][n];return r}function i(e){var t,n={};for(t in e)n[t.replace(/-/g,"_")]=e[t];return n}t.prototype._get_array=function(e,t){var n=this.raw_options[e],i=t||[];return"object"==typeof n?null!==n&&"function"==typeof n.concat&&(i=n.concat()):"string"==typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},t.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},t.prototype._get_characters=function(e,t){var n=this.raw_options[e],i=t||"";return"string"==typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},t.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var i=parseInt(n,10);return isNaN(i)&&(i=t),i},t.prototype._get_selection=function(e,t,n){var i=this._get_selection_list(e,t,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i[0]},t.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var i=this._get_array(e,n);if(!this._is_valid_selection(i,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return i},t.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some((function(e){return-1===t.indexOf(e)}))},e.exports.Options=t,e.exports.normalizeOpts=i,e.exports.mergeOpts=n},,function(e){var t=RegExp.prototype.hasOwnProperty("sticky");function n(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){this.__position>0&&(this.__position-=1)},n.prototype.hasNext=function(){return this.__position=0&&e=0&&t=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},e.exports.InputScanner=n},,,,,function(e){function t(e,t){e="string"==typeof e?e:e.source,t="string"==typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}t.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(e);n;)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},t.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},e.exports.Directives=t},,function(e,t,n){var i=n(16).Beautifier,r=n(17).Options;e.exports=function(e,t){return new i(e,t).beautify()},e.exports.defaultOptions=function(){return new r}},function(e,t,n){var i=n(17).Options,r=n(2).Output,s=n(8).InputScanner,o=new(0,n(13).Directives)(/\/\*/,/\*\//),a=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,c=/\s/,h=/(?:\s|\n)+/g,d=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,p=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function m(e,t){this._source_text=e||"",this._options=new i(t),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}m.prototype.eatString=function(e){var t="";for(this._ch=this._input.next();this._ch;){if(t+=this._ch,"\\"===this._ch)t+=this._input.next();else if(-1!==e.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return t},m.prototype.eatWhitespace=function(e){for(var t=c.test(this._input.peek()),n=0;c.test(this._input.peek());)this._ch=this._input.next(),e&&"\n"===this._ch&&(0===n||n0&&this._indentLevel--},m.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===t&&(t="\n",e&&a.test(e||"")&&(t=e.match(a)[0]));var n=(e=e.replace(l,"\n")).match(/^[\t ]*/)[0];this._output=new r(this._options,n),this._input=new s(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var i,m,u=0,f=!1,g=!1,b=!1,v=!1,y=!1,w=this._ch,S=!1;i=""!==this._input.read(h),m=w,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),w=this._ch,this._ch;)if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var x=this._input.read(d),C=o.get_directives(x);C&&"start"===C.ignore&&(x+=o.readIgnored(this._input)),this.print_string(x),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(p)),this.eatWhitespace(!0);else if("$"===this._ch){this.preserveSingleSpace(i),this.print_string(this._ch);var _=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);_.match(/[ :]$/)&&(_=this.eatString(": ").replace(/\s+$/,""),this.print_string(_),this._output.space_before_token=!0),0===u&&-1!==_.indexOf(":")&&(g=!0,this.indent())}else if("@"===this._ch)if(this.preserveSingleSpace(i),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var k=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);k.match(/[ :]$/)&&(k=this.eatString(": ").replace(/\s+$/,""),this.print_string(k),this._output.space_before_token=!0),0===u&&-1!==k.indexOf(":")?(g=!0,this.indent()):k in this.NESTED_AT_RULE?(this._nestedLevel+=1,k in this.CONDITIONAL_GROUP_RULE&&(b=!0)):0!==u||g||(v=!0)}else if("#"===this._ch&&"{"===this._input.peek())this.preserveSingleSpace(i),this.print_string(this._ch+this.eatString("}"));else if("{"===this._ch)g&&(g=!1,this.outdent()),v=!1,b?(b=!1,f=this._indentLevel>=this._nestedLevel):f=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&f&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,"expand"===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):("("===m?this._output.space_before_token=!1:","!==m&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if("}"===this._ch)this.outdent(),this._output.add_new_line(),"{"===m&&this._output.trim(!0),g&&(this.outdent(),g=!1),this.print_string(this._ch),f=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0),")"===this._input.peek()&&(this._output.trim(!0),"expand"===this._options.brace_style&&this._output.add_new_line(!0));else if(":"===this._ch){for(var E=0;E"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||g||0!==u)if("]"===this._ch)this.print_string(this._ch);else if("["===this._ch)this.preserveSingleSpace(i),this.print_string(this._ch);else if("="===this._ch)this.eatWhitespace(),this.print_string("="),c.test(this._ch)&&(this._ch="");else if("!"!==this._ch||this._input.lookBack("\\")){var N='"'===m||"'"===m;this.preserveSingleSpace(N||i),this.print_string(this._ch),!this._output.just_added_newline()&&"\n"===this._input.peek()&&S&&this._output.add_new_line()}else this._output.space_before_token=!0,this.print_string(this._ch);else this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&c.test(this._ch)&&(this._ch=""));return this._output.get_code(t)},e.exports.Beautifier=m},function(e,t,n){var i=n(6).Options;function r(e){i.call(this,e,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var t=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||t;var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var r=0;r0&&va(i,l-1);)l--;0===l||ba(i,l-1)?a=l:l=0;){const n=e.charCodeAt(t);if(n===ua)return!0;if(n===fa)return!1;t--}return!1}(i,a),r=c===i.length,i=i.substring(a,c),0!==a){const i=e.offsetAt(Wt.create(t.start.line,0));s=function(e,t,n){let i=t,r=0;const s=n.tabSize||4;for(;i0){const e=n.insertSpaces?oe(" ",a*s):oe("\t",s);c=c.split("\n").join("\n"+e),0===t.start.character&&(c=e+c)}return[{range:t,newText:c}]}function ma(e){return e.replace(/^\s+/,"")}var ua="{".charCodeAt(0),fa="}".charCodeAt(0);function ga(e,t,n){if(e&&e.hasOwnProperty(t)){const n=e[t];if(null!==n)return n}return n}function ba(e,t){return-1!=="\r\n".indexOf(e.charAt(t))}function va(e,t){return-1!==" \t".indexOf(e.charAt(t))}var ya={version:1.1,properties:[{name:"additive-symbols",browsers:["FF33"],atRule:"@counter-style",syntax:"[ && ]#",relevance:50,description:"@counter-style descriptor. Specifies the symbols used by the marker-construction algorithm specified by the system descriptor. Needs to be specified if the counter system is 'additive'.",restrictions:["integer","string","image","identifier"]},{name:"align-content",browsers:["E12","FF28","S9","C29","IE11","O16"],values:[{name:"center",description:"Lines are packed toward the center of the flex container."},{name:"flex-end",description:"Lines are packed toward the end of the flex container."},{name:"flex-start",description:"Lines are packed toward the start of the flex container."},{name:"space-around",description:"Lines are evenly distributed in the flex container, with half-size spaces on either end."},{name:"space-between",description:"Lines are evenly distributed in the flex container."},{name:"stretch",description:"Lines stretch to take up the remaining space."},{name:"start"},{name:"end"},{name:"normal"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"space-around"},{name:"space-between"},{name:"space-evenly"},{name:"stretch"},{name:"safe"},{name:"unsafe"}],syntax:"normal | | | ? ",relevance:66,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/align-content"}],description:"Aligns a flex container's lines within the flex container when there is extra space in the cross-axis, similar to how 'justify-content' aligns individual items within the main-axis.",restrictions:["enum"]},{name:"align-items",browsers:["E12","FF20","S9","C29","IE11","O16"],values:[{name:"baseline",description:"If the flex item's inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item's margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"normal"},{name:"start"},{name:"end"},{name:"self-start"},{name:"self-end"},{name:"first baseline"},{name:"last baseline"},{name:"stretch"},{name:"safe"},{name:"unsafe"}],syntax:"normal | stretch | | [ ? ]",relevance:87,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/align-items"}],description:"Aligns flex items along the cross axis of the current line of the flex container.",restrictions:["enum"]},{name:"justify-items",browsers:["E12","FF20","S9","C52","IE11","O12.1"],values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"safe"},{name:"unsafe"},{name:"legacy"}],syntax:"normal | stretch | | ? [ | left | right ] | legacy | legacy && [ left | right | center ]",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/justify-items"}],description:"Defines the default justify-self for all items of the box, giving them the default way of justifying each box along the appropriate axis",restrictions:["enum"]},{name:"justify-self",browsers:["E16","FF45","S10.1","C57","IE10","O44"],values:[{name:"auto"},{name:"normal"},{name:"end"},{name:"start"},{name:"flex-end",description:'"Flex items are packed toward the end of the line."'},{name:"flex-start",description:'"Flex items are packed toward the start of the line."'},{name:"self-end",description:"The item is packed flush to the edge of the alignment container of the end side of the item, in the appropriate axis."},{name:"self-start",description:"The item is packed flush to the edge of the alignment container of the start side of the item, in the appropriate axis.."},{name:"center",description:"The items are packed flush to each other toward the center of the of the alignment container."},{name:"left"},{name:"right"},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"save"},{name:"unsave"}],syntax:"auto | normal | stretch | | ? [ | left | right ]",relevance:55,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/justify-self"}],description:"Defines the way of justifying a box inside its container along the appropriate axis.",restrictions:["enum"]},{name:"align-self",browsers:["E12","FF20","S9","C29","IE10","O12.1"],values:[{name:"auto",description:"Computes to the value of 'align-items' on the element's parent, or 'stretch' if the element has no parent. On absolutely positioned elements, it computes to itself."},{name:"normal"},{name:"self-end"},{name:"self-start"},{name:"baseline",description:"If the flex item's inline axis is the same as the cross axis, this value is identical to 'flex-start'. Otherwise, it participates in baseline alignment."},{name:"center",description:"The flex item's margin box is centered in the cross axis within the line."},{name:"flex-end",description:"The cross-end margin edge of the flex item is placed flush with the cross-end edge of the line."},{name:"flex-start",description:"The cross-start margin edge of the flex item is placed flush with the cross-start edge of the line."},{name:"stretch",description:"If the cross size property of the flex item computes to auto, and neither of the cross-axis margins are auto, the flex item is stretched."},{name:"baseline"},{name:"first baseline"},{name:"last baseline"},{name:"safe"},{name:"unsafe"}],syntax:"auto | normal | stretch | | ? ",relevance:73,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/align-self"}],description:"Allows the default alignment along the cross axis to be overridden for individual flex items.",restrictions:["enum"]},{name:"all",browsers:["E79","FF27","S9.1","C37","O24"],values:[],syntax:"initial | inherit | unset | revert | revert-layer",relevance:53,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/all"}],description:"Shorthand that resets all properties except 'direction' and 'unicode-bidi'.",restrictions:["enum"]},{name:"alt",browsers:["S9"],values:[],relevance:50,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/alt"}],description:"Provides alternative text for assistive technology to replace the generated content of a ::before or ::after element.",restrictions:["string","enum"]},{name:"animation",browsers:["E12","FF16","S9","C43","IE10","O30"],values:[{name:"alternate",description:"The animation cycle iterations that are odd counts are played in the normal direction, and the animation cycle iterations that are even counts are played in a reverse direction."},{name:"alternate-reverse",description:"The animation cycle iterations that are odd counts are played in the reverse direction, and the animation cycle iterations that are even counts are played in a normal direction."},{name:"backwards",description:"The beginning property value (as defined in the first @keyframes at-rule) is applied before the animation is displayed, during the period defined by 'animation-delay'."},{name:"both",description:"Both forwards and backwards fill modes are applied."},{name:"forwards",description:"The final property value (as defined in the last @keyframes at-rule) is maintained after the animation completes."},{name:"infinite",description:"Causes the animation to repeat forever."},{name:"none",description:"No animation is performed"},{name:"normal",description:"Normal playback."},{name:"reverse",description:"All iterations of the animation are played in the reverse direction from the way they were specified."}],syntax:"#",relevance:82,references:[{name:"MDN Reference",url:"https://developer.mozilla.org/docs/Web/CSS/animation"}],description:"Shorthand property combines six of the animation properties into a single property.",restrictions:["time","timing-function","enum","identifier","number"]},{name:"animation-delay",browsers:["E12","FF16","S9","C43","IE10","O30"],syntax:"