@codingame/monaco-editor-wrapper 4.0.0-next.1 → 4.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/Angular.ng-template-15.2.1.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/C2Hs-configuration.json.raw.js +3 -0
- package/dist/_virtual/Dart-Code.dart-code-3.63.20230419.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/Hsc2Hs-configuration.json.raw.js +3 -0
- package/dist/_virtual/IMCTradingBV.svlangserver-0.4.1.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/JakeBecker.elixir-ls-0.14.5.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/JuanBlanco.solidity-0.0.152.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/META.json.raw2.js +3 -0
- package/dist/_virtual/REditorSupport.r-2.7.2.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/Rlogo.svg.raw.js +3 -0
- package/dist/{_commonjsHelpers.js → _virtual/_commonjsHelpers.js} +1 -1
- package/dist/_virtual/_monaco-editor.js +6 -0
- package/dist/_virtual/_rollup-plugin-web-worker-loader__helper__browser__createBase64WorkerFactory.js +31 -0
- package/dist/_virtual/actions.js +3 -0
- package/dist/_virtual/alefragnani.pascal-9.6.0.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/angular-template-language-configuration.json.raw.js +3 -0
- package/dist/_virtual/basicInput.js +3 -0
- package/dist/_virtual/batisteo.vscode-django-1.10.0.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/bitwisecook.tcl-0.4.3.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/book-dark.svg.raw.js +3 -0
- package/dist/_virtual/book-light.svg.raw.js +3 -0
- package/dist/_virtual/broadcomMFD.cobol-language-support-1.2.1.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/cabal-configuration.json.raw.js +3 -0
- package/dist/_virtual/castwide.solargraph-0.24.0.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/ckolkman.vscode-postgres-1.4.2.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/cm_adapter.js +3 -0
- package/dist/_virtual/commands.js +3 -0
- package/dist/_virtual/conda-environment.json.raw.js +3 -0
- package/dist/_virtual/conda-meta.json.raw.js +3 -0
- package/dist/_virtual/condarc.json.raw.js +3 -0
- package/dist/{css.worker.js → _virtual/css.worker.js} +1 -1
- package/dist/_virtual/d.json.raw2.js +3 -0
- package/dist/_virtual/dart-language-configuration.json.raw.js +3 -0
- package/dist/_virtual/dcf-configuration.json.raw.js +3 -0
- package/dist/_virtual/diet.json.raw3.js +3 -0
- package/dist/_virtual/dub.schema.json.raw.js +3 -0
- package/dist/_virtual/dune.json.raw3.js +3 -0
- package/dist/_virtual/editor.api.js +6 -0
- package/dist/_virtual/editor.worker.js +6 -0
- package/dist/_virtual/eex-language-configuration.json.raw.js +3 -0
- package/dist/_virtual/elixir-language-configuration.json.raw.js +3 -0
- package/dist/_virtual/erlang.configuration.json.raw.js +3 -0
- package/dist/_virtual/file_type_java.svg.raw.js +3 -0
- package/dist/_virtual/file_type_scala.svg.raw.js +3 -0
- package/dist/_virtual/flutter_activity_bar.svg.raw.js +3 -0
- package/dist/_virtual/general.json.raw.js +3 -0
- package/dist/_virtual/go.mod.language-configuration.json.raw.js +3 -0
- package/dist/_virtual/golang.Go-0.38.0.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/haskell-configuration.json.raw.js +3 -0
- package/dist/{html.worker.js → _virtual/html.worker.js} +1 -1
- package/dist/_virtual/index.js +3 -0
- package/dist/_virtual/index2.js +3 -0
- package/dist/_virtual/index3.js +3 -0
- package/dist/_virtual/java-properties-configuration.json.raw.js +3 -0
- package/dist/_virtual/johnsoncodehk.vscode-angular-1.0.22.vsix_package.json.vsjson.js +3 -0
- package/dist/{json.worker.js → _virtual/json.worker.js} +1 -1
- package/dist/_virtual/justusadam.language-haskell-3.6.0.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/keymap_vim.js +3 -0
- package/dist/_virtual/kotlin.configuration.json.raw.js +3 -0
- package/dist/_virtual/lang-config.json.raw.js +3 -0
- package/dist/_virtual/language-configuration.json.raw.js +3 -0
- package/dist/_virtual/language-configuration.json.raw2.js +3 -0
- package/dist/_virtual/language-configuration.json.raw3.js +3 -0
- package/dist/_virtual/language-configuration.json.raw4.js +3 -0
- package/dist/_virtual/language-configuration.json.raw5.js +3 -0
- package/dist/_virtual/language-configuration.json.raw6.js +3 -0
- package/dist/_virtual/language-configuration.json.raw7.js +3 -0
- package/dist/_virtual/language-configuration.json.raw8.js +3 -0
- package/dist/_virtual/literate-haskell-configuration.json.raw.js +3 -0
- package/dist/_virtual/logo.svg.raw.js +3 -0
- package/dist/_virtual/mathiasfrohlich.Kotlin-1.7.1.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/menhir.json.raw2.js +3 -0
- package/dist/_virtual/ms-dotnettools.csharp-1.25.4.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/ms-python.python-2023.7.11111009.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/ms-vscode.cpptools-1.15.2.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/oasis.json.raw2.js +3 -0
- package/dist/_virtual/ocaml.json.raw3.js +3 -0
- package/dist/_virtual/ocamlbuild.json.raw2.js +3 -0
- package/dist/_virtual/ocamlformat.json.raw2.js +3 -0
- package/dist/_virtual/ocamllabs.ocaml-platform-1.12.2.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/ocamllex.json.raw3.js +3 -0
- package/dist/_virtual/opam-install.json.raw2.js +3 -0
- package/dist/_virtual/opam.json.raw2.js +3 -0
- package/dist/_virtual/package-json-schema.json.raw.js +3 -0
- package/dist/_virtual/package.schema.json.raw.js +3 -0
- package/dist/_virtual/pascal.configuration.json.raw.js +3 -0
- package/dist/_virtual/pgourlain.erlang-0.8.8.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/pip-requirements.json.raw.js +3 -0
- package/dist/_virtual/postgres-explorer.svg.raw.js +3 -0
- package/dist/_virtual/prettier-options-schema.json.raw.js +3 -0
- package/dist/_virtual/r-configuration.json.raw.js +3 -0
- package/dist/_virtual/rbuildignore-configuration.json.raw.js +3 -0
- package/dist/_virtual/rd-configuration.json.raw.js +3 -0
- package/dist/{reason.json2.js → _virtual/reason.json.raw2.js} +2 -2
- package/dist/_virtual/redhat.java-1.18.2023042204.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/rmd-configuration.json.raw.js +3 -0
- package/dist/_virtual/rnamespace-configuration.json.raw.js +3 -0
- package/dist/_virtual/scala-lang.scala-0.5.6.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/scalameta-logo.png.raw.js +3 -0
- package/dist/_virtual/scalameta.metals-1.23.0.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/scalameta.svg.raw.js +3 -0
- package/dist/_virtual/schema.json.raw.js +3 -0
- package/dist/_virtual/shiftCommand.js +6 -0
- package/dist/_virtual/solidity.configuration.json.raw.js +3 -0
- package/dist/_virtual/state.js +3 -0
- package/dist/_virtual/statusbar.js +3 -0
- package/dist/_virtual/sumneko.lua-3.6.18.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/svelte.svelte-vscode-107.3.0.vsix_package.json.vsjson.js +3 -0
- package/dist/_virtual/tasks.schema.json.raw.js +3 -0
- package/dist/{ts.worker.js → _virtual/ts.worker.js} +1 -1
- package/dist/_virtual/util.js +3 -0
- package/dist/_virtual/webfreak.code-d-0.23.2.vsix_package.json.vsjson.js +3 -0
- package/dist/configuration/index.js +45 -0
- package/dist/editor/autofold.js +24 -0
- package/dist/editor/cobol.js +67 -0
- package/dist/editor/index.js +9 -0
- package/dist/extensions/Angular.ng-template-15.2.1.vsix.js +15 -0
- package/dist/extensions/Dart-Code.dart-code-3.63.20230419.vsix.js +14 -0
- package/dist/extensions/IMCTradingBV.svlangserver-0.4.1.vsix.js +18 -0
- package/dist/extensions/JakeBecker.elixir-ls-0.14.5.vsix.js +18 -0
- package/dist/extensions/JuanBlanco.solidity-0.0.152.vsix.js +13 -0
- package/dist/extensions/REditorSupport.r-2.7.2.vsix.js +47 -0
- package/dist/extensions/alefragnani.pascal-9.6.0.vsix.js +13 -0
- package/dist/extensions/batisteo.vscode-django-1.10.0.vsix.js +17 -0
- package/dist/extensions/bitwisecook.tcl-0.4.3.vsix.js +13 -0
- package/dist/extensions/broadcomMFD.cobol-language-support-1.2.1.vsix.js +11 -0
- package/dist/extensions/castwide.solargraph-0.24.0.vsix.js +8 -0
- package/dist/extensions/ckolkman.vscode-postgres-1.4.2.vsix.js +14 -0
- package/dist/extensions/golang.Go-0.38.0.vsix.js +17 -0
- package/dist/extensions/johnsoncodehk.vscode-angular-1.0.22.vsix.js +13 -0
- package/dist/extensions/justusadam.language-haskell-3.6.0.vsix.js +41 -0
- package/dist/extensions/mathiasfrohlich.Kotlin-1.7.1.vsix.js +15 -0
- package/dist/extensions/ms-dotnettools.csharp-1.25.4.vsix.js +17 -0
- package/dist/extensions/ms-python.python-2023.7.11111009.vsix.js +20 -0
- package/dist/extensions/ms-vscode.cpptools-1.15.2.vsix.js +8 -0
- package/dist/extensions/ocamllabs.ocaml-platform-1.12.2.vsix.js +92 -0
- package/dist/extensions/pgourlain.erlang-0.8.8.vsix.js +13 -0
- package/dist/extensions/redhat.java-1.18.2023042204.vsix.js +19 -0
- package/dist/extensions/scala-lang.scala-0.5.6.vsix.js +11 -0
- package/dist/extensions/scalameta.metals-1.23.0.vsix.js +34 -0
- package/dist/extensions/sumneko.lua-3.6.18.vsix.js +10 -0
- package/dist/extensions/svelte.svelte-vscode-107.3.0.vsix.js +37 -0
- package/dist/extensions/webfreak.code-d-0.23.2.vsix.js +28 -0
- package/dist/extensions.d.ts +3 -2
- package/dist/features/cssContribution.js +4 -5
- package/dist/features/debug.d.ts +1 -0
- package/dist/features/debug.js +7 -0
- package/dist/features/htmlContribution.js +79 -88
- package/dist/features/jsonContribution.js +10 -12
- package/dist/features/search.d.ts +1 -0
- package/dist/features/search.js +7 -0
- package/dist/features/typescriptContribution.js +27 -15
- package/dist/features/viewPanels.d.ts +1 -0
- package/dist/features/viewPanels.js +9 -0
- package/dist/features/views.d.ts +4 -0
- package/dist/features/views.js +17 -0
- package/dist/keybindings/index.js +36 -0
- package/dist/keybindings/vim.js +82 -0
- package/dist/languages/index.js +40 -0
- package/dist/main.js +6 -1286
- package/dist/monaco.d.ts +0 -1
- package/dist/monaco.js +90 -0
- package/dist/node_modules/@types/node/console.d.js +3 -0
- package/dist/node_modules/@types/node/globals.d.js +3 -0
- package/dist/node_modules/@types/node/process.d.js +3 -0
- package/dist/node_modules/lodash.kebabcase/index.js +439 -0
- package/dist/node_modules/lodash.throttle/index.js +443 -0
- package/dist/node_modules/monaco-emacs/lib/emacs/actions.js +596 -0
- package/dist/node_modules/monaco-emacs/lib/emacs/basicInput.js +113 -0
- package/dist/node_modules/monaco-emacs/lib/emacs/commands.js +184 -0
- package/dist/node_modules/monaco-emacs/lib/emacs/index.js +186 -0
- package/dist/node_modules/monaco-emacs/lib/emacs/state.js +116 -0
- package/dist/node_modules/monaco-emacs/lib/emacs/util.js +112 -0
- package/dist/node_modules/monaco-emacs/lib/index.js +31 -0
- package/dist/{vim.js → node_modules/monaco-vim/lib/cm/keymap_vim.js} +3 -1790
- package/dist/node_modules/monaco-vim/lib/cm_adapter.js +1393 -0
- package/dist/node_modules/monaco-vim/lib/index.js +71 -0
- package/dist/node_modules/monaco-vim/lib/statusbar.js +239 -0
- package/dist/node_modules/tslib/tslib.es6.js +77 -0
- package/dist/services.d.ts +2 -0
- package/dist/services.js +50 -0
- package/dist/style.js +12 -0
- package/dist/theme/index.js +21 -0
- package/dist/tools/EditorOpenHandlerRegistry.js +108 -0
- package/dist/tools.js +235 -0
- package/dist/worker.d.ts +1 -10
- package/dist/worker.js +9 -58
- package/package.json +28 -37
- package/stats.html +1 -1
- package/dist/C2Hs-configuration.json.js +0 -3
- package/dist/Hsc2Hs-configuration.json.js +0 -3
- package/dist/META.json2.js +0 -3
- package/dist/_monaco-editor_commonjs-external.js +0 -39
- package/dist/_rollupPluginBabelHelpers.js +0 -51
- package/dist/add.svg.js +0 -3
- package/dist/add.svg2.js +0 -3
- package/dist/adddep-dark.svg.js +0 -3
- package/dist/adddep-light.svg.js +0 -3
- package/dist/angular-template-language-configuration.json.js +0 -3
- package/dist/arrow-circle-up-dark.svg.js +0 -3
- package/dist/arrow-circle-up-light.svg.js +0 -3
- package/dist/book-dark.svg.js +0 -3
- package/dist/book-light.svg.js +0 -3
- package/dist/book-open-dark.svg.js +0 -3
- package/dist/book-open-light.svg.js +0 -3
- package/dist/cabal-configuration.json.js +0 -3
- package/dist/d.json2.js +0 -3
- package/dist/dart-language-configuration.json.js +0 -3
- package/dist/dcf-configuration.json.js +0 -3
- package/dist/diet.json3.js +0 -3
- package/dist/document-search-dark.svg.js +0 -3
- package/dist/document-search-light.svg.js +0 -3
- package/dist/documentation-inverse.svg.js +0 -3
- package/dist/documentation.svg.js +0 -3
- package/dist/dub-convert-inverse.svg.js +0 -3
- package/dist/dub-convert.svg.js +0 -3
- package/dist/dune.json3.js +0 -3
- package/dist/edit-dub-inverse.svg.js +0 -3
- package/dist/edit-dub.svg.js +0 -3
- package/dist/edit-source-inverse.svg.js +0 -3
- package/dist/edit-source.svg.js +0 -3
- package/dist/eex-language-configuration.json.js +0 -3
- package/dist/elixir-language-configuration.json.js +0 -3
- package/dist/erlang.configuration.json.js +0 -3
- package/dist/extension-web.js.js +0 -3
- package/dist/extension-web.js2.js +0 -3
- package/dist/extension.browser.js.js +0 -3
- package/dist/file_type_java.svg.js +0 -3
- package/dist/file_type_scala.svg.js +0 -3
- package/dist/focus-dark.svg.js +0 -3
- package/dist/focus-light.svg.js +0 -3
- package/dist/general.json.js +0 -3
- package/dist/get-inverse.svg.js +0 -3
- package/dist/get.svg.js +0 -3
- package/dist/go.mod.language-configuration.json.js +0 -3
- package/dist/haskell-configuration.json.js +0 -3
- package/dist/hot-reload-tb.png.js +0 -3
- package/dist/hot-reload.svg.js +0 -3
- package/dist/index.js +0 -2210
- package/dist/index2.js +0 -49
- package/dist/inspector.svg.js +0 -3
- package/dist/java-properties-configuration.json.js +0 -3
- package/dist/kotlin.configuration.json.js +0 -3
- package/dist/lang-config.json.js +0 -3
- package/dist/language-configuration.json.js +0 -3
- package/dist/language-configuration.json2.js +0 -3
- package/dist/language-configuration.json3.js +0 -3
- package/dist/language-configuration.json4.js +0 -3
- package/dist/language-configuration.json5.js +0 -3
- package/dist/language-configuration.json6.js +0 -3
- package/dist/language-configuration.json7.js +0 -3
- package/dist/language-configuration.json8.js +0 -3
- package/dist/literate-haskell-configuration.json.js +0 -3
- package/dist/menhir.json2.js +0 -3
- package/dist/oasis.json2.js +0 -3
- package/dist/ocaml.json3.js +0 -3
- package/dist/ocamlbuild.json2.js +0 -3
- package/dist/ocamlformat.json2.js +0 -3
- package/dist/ocamllex.json3.js +0 -3
- package/dist/opam-install.json2.js +0 -3
- package/dist/opam.json2.js +0 -3
- package/dist/outdated-inverse.svg.js +0 -3
- package/dist/outdated.svg.js +0 -3
- package/dist/pascal.configuration.json.js +0 -3
- package/dist/performance.svg.js +0 -3
- package/dist/pip-requirements.json.js +0 -3
- package/dist/plus-dark.svg.js +0 -3
- package/dist/plus-light.svg.js +0 -3
- package/dist/preview-right-dark.svg.js +0 -3
- package/dist/preview-right-light.svg.js +0 -3
- package/dist/r-configuration.json.js +0 -3
- package/dist/rbuildignore-configuration.json.js +0 -3
- package/dist/rd-configuration.json.js +0 -3
- package/dist/ref-group-by-type-dark.svg.js +0 -3
- package/dist/ref-group-by-type-light.svg.js +0 -3
- package/dist/ref-ungroup-by-type-dark.svg.js +0 -3
- package/dist/ref-ungroup-by-type-light.svg.js +0 -3
- package/dist/refresh-dark.svg.js +0 -3
- package/dist/refresh-dark.svg2.js +0 -3
- package/dist/refresh-light.svg.js +0 -3
- package/dist/refresh-light.svg2.js +0 -3
- package/dist/repl.svg.js +0 -3
- package/dist/repl.svg2.js +0 -3
- package/dist/rmd-configuration.json.js +0 -3
- package/dist/rnamespace-configuration.json.js +0 -3
- package/dist/save.svg.js +0 -3
- package/dist/save.svg2.js +0 -3
- package/dist/scalameta-logo.png.js +0 -3
- package/dist/solidity.configuration.json.js +0 -3
- package/dist/switch-impl-intf.dark.svg.js +0 -3
- package/dist/switch-impl-intf.light.svg.js +0 -3
- package/dist/upgrade-inverse.svg.js +0 -3
- package/dist/upgrade.svg.js +0 -3
- package/dist/x-dark.svg.js +0 -3
- package/dist/x-light.svg.js +0 -3
- /package/dist/{C2Hs.json.js → _virtual/C2Hs.json.raw.js} +0 -0
- /package/dist/{COBOL.tmLanguage.json.js → _virtual/COBOL.tmLanguage.json.raw.js} +0 -0
- /package/dist/{Erlang.plist.js → _virtual/Erlang.plist.raw.js} +0 -0
- /package/dist/{Hsc2Hs.json.js → _virtual/Hsc2Hs.json.raw.js} +0 -0
- /package/dist/{JavaProperties.tmLanguage.json.js → _virtual/JavaProperties.tmLanguage.json.raw.js} +0 -0
- /package/dist/{Kotlin.tmLanguage.js → _virtual/Kotlin.tmLanguage.raw.js} +0 -0
- /package/dist/{META.json.js → _virtual/META.json.raw.js} +0 -0
- /package/dist/{Markdown Redcarpet.json.js → _virtual/Markdown Redcarpet.json.raw.js} +0 -0
- /package/dist/{RMarkdown.json.js → _virtual/RMarkdown.json.raw.js} +0 -0
- /package/dist/{Rcpp.json.js → _virtual/Rcpp.json.raw.js} +0 -0
- /package/dist/{Rd (R Documentation).json.js → _virtual/Rd (R Documentation).json.raw.js} +0 -0
- /package/dist/{Scala.tmLanguage.json.js → _virtual/Scala.tmLanguage.json.raw.js} +0 -0
- /package/dist/{alex.json.js → _virtual/alex.json.raw.js} +0 -0
- /package/dist/{angular-directives.json.js → _virtual/angular-directives.json.raw.js} +0 -0
- /package/dist/{angular-interpolations.json.js → _virtual/angular-interpolations.json.raw.js} +0 -0
- /package/dist/{aspnetcorerazor.tmLanguage.json.js → _virtual/aspnetcorerazor.tmLanguage.json.raw.js} +0 -0
- /package/dist/{atd.json.js → _virtual/atd.json.raw.js} +0 -0
- /package/dist/{buildtarget.json.js → _virtual/buildtarget.json.raw.js} +0 -0
- /package/dist/{cabal.json.js → _virtual/cabal.json.raw.js} +0 -0
- /package/dist/{codeblock-cabal.json.js → _virtual/codeblock-cabal.json.raw.js} +0 -0
- /package/dist/{codeblock-haskell.json.js → _virtual/codeblock-haskell.json.raw.js} +0 -0
- /package/dist/{codeblock-literate-haskell.json.js → _virtual/codeblock-literate-haskell.json.raw.js} +0 -0
- /package/dist/{codeblock.json.js → _virtual/codeblock.json.raw.js} +0 -0
- /package/dist/{codeblock.json2.js → _virtual/codeblock.json.raw2.js} +0 -0
- /package/dist/{cram.json.js → _virtual/cram.json.raw.js} +0 -0
- /package/dist/{csharp.json.js → _virtual/csharp.json.raw.js} +0 -0
- /package/dist/{d.json.js → _virtual/d.json.raw.js} +0 -0
- /package/dist/{dart.json.js → _virtual/dart.json.raw.js} +0 -0
- /package/dist/{dcf.json.js → _virtual/dcf.json.raw.js} +0 -0
- /package/dist/{diet.json.js → _virtual/diet.json.raw.js} +0 -0
- /package/dist/{diet.json2.js → _virtual/diet.json.raw2.js} +0 -0
- /package/dist/{django-html.tmLanguage.json.js → _virtual/django-html.tmLanguage.json.raw.js} +0 -0
- /package/dist/{django-txt.tmLanguage.json.js → _virtual/django-txt.tmLanguage.json.raw.js} +0 -0
- /package/dist/{dml.json.js → _virtual/dml.json.raw.js} +0 -0
- /package/dist/{dune-project.json.js → _virtual/dune-project.json.raw.js} +0 -0
- /package/dist/{dune-project.json2.js → _virtual/dune-project.json.raw2.js} +0 -0
- /package/dist/{dune-workspace.json.js → _virtual/dune-workspace.json.raw.js} +0 -0
- /package/dist/{dune.json.js → _virtual/dune.json.raw.js} +0 -0
- /package/dist/{dune.json2.js → _virtual/dune.json.raw2.js} +0 -0
- /package/dist/{eex.json.js → _virtual/eex.json.raw.js} +0 -0
- /package/dist/{elixir.json.js → _virtual/elixir.json.raw.js} +0 -0
- /package/dist/{erlang.json.js → _virtual/erlang.json.raw.js} +0 -0
- /package/dist/{expression.json.js → _virtual/expression.json.raw.js} +0 -0
- /package/dist/{filters.json.js → _virtual/filters.json.raw.js} +0 -0
- /package/dist/{go.json.js → _virtual/go.json.raw.js} +0 -0
- /package/dist/{go.mod.tmGrammar.json.js → _virtual/go.mod.tmGrammar.json.raw.js} +0 -0
- /package/dist/{go.sum.tmGrammar.json.js → _virtual/go.sum.tmGrammar.json.raw.js} +0 -0
- /package/dist/{govulncheck.tmGrammar.json.js → _virtual/govulncheck.tmGrammar.json.raw.js} +0 -0
- /package/dist/{happy.json.js → _virtual/happy.json.raw.js} +0 -0
- /package/dist/{haskell.json.js → _virtual/haskell.json.raw.js} +0 -0
- /package/dist/{html-eex.json.js → _virtual/html-eex.json.raw.js} +0 -0
- /package/dist/{inline-styles.json.js → _virtual/inline-styles.json.raw.js} +0 -0
- /package/dist/{inline-template.json.js → _virtual/inline-template.json.raw.js} +0 -0
- /package/dist/{java.json.js → _virtual/java.json.raw.js} +0 -0
- /package/dist/{javascript.json.js → _virtual/javascript.json.raw.js} +0 -0
- /package/dist/{jvm-bytecode-verbose.json.js → _virtual/jvm-bytecode-verbose.json.raw.js} +0 -0
- /package/dist/{jvm-bytecode.json.js → _virtual/jvm-bytecode.json.raw.js} +0 -0
- /package/dist/{kotlin.json.js → _virtual/kotlin.json.raw.js} +0 -0
- /package/dist/{literateHaskell.json.js → _virtual/literateHaskell.json.raw.js} +0 -0
- /package/dist/{markdown-svelte-css.json.js → _virtual/markdown-svelte-css.json.raw.js} +0 -0
- /package/dist/{markdown-svelte-js.json.js → _virtual/markdown-svelte-js.json.raw.js} +0 -0
- /package/dist/{markdown-svelte.json.js → _virtual/markdown-svelte.json.raw.js} +0 -0
- /package/dist/{menhir-action.json.js → _virtual/menhir-action.json.raw.js} +0 -0
- /package/dist/{menhir.json.js → _virtual/menhir.json.raw.js} +0 -0
- /package/dist/{merlin.json.js → _virtual/merlin.json.raw.js} +0 -0
- /package/dist/{oasis.json.js → _virtual/oasis.json.raw.js} +0 -0
- /package/dist/{ocaml-markdown-codeblock.json.js → _virtual/ocaml-markdown-codeblock.json.raw.js} +0 -0
- /package/dist/{ocaml.interface.json.js → _virtual/ocaml.interface.json.raw.js} +0 -0
- /package/dist/{ocaml.json.js → _virtual/ocaml.json.raw.js} +0 -0
- /package/dist/{ocaml.json2.js → _virtual/ocaml.json.raw2.js} +0 -0
- /package/dist/{ocamlbuild.json.js → _virtual/ocamlbuild.json.raw.js} +0 -0
- /package/dist/{ocamldoc.json.js → _virtual/ocamldoc.json.raw.js} +0 -0
- /package/dist/{ocamlformat.json.js → _virtual/ocamlformat.json.raw.js} +0 -0
- /package/dist/{ocamllex.json.js → _virtual/ocamllex.json.raw.js} +0 -0
- /package/dist/{ocamllex.json2.js → _virtual/ocamllex.json.raw2.js} +0 -0
- /package/dist/{opam-install.json.js → _virtual/opam-install.json.raw.js} +0 -0
- /package/dist/{opam.json.js → _virtual/opam.json.raw.js} +0 -0
- /package/dist/{pascal.json.js → _virtual/pascal.json.raw.js} +0 -0
- /package/dist/{pascal.tmLanguage.js → _virtual/pascal.tmLanguage.raw.js} +0 -0
- /package/dist/{pgsql.tmLanguage.js → _virtual/pgsql.tmLanguage.raw.js} +0 -0
- /package/dist/{pip-requirements.tmLanguage.json.js → _virtual/pip-requirements.tmLanguage.json.raw.js} +0 -0
- /package/dist/{postcss.json.js → _virtual/postcss.json.raw.js} +0 -0
- /package/dist/{pug-svelte-dotblock.json.js → _virtual/pug-svelte-dotblock.json.raw.js} +0 -0
- /package/dist/{pug-svelte-tags.json.js → _virtual/pug-svelte-tags.json.raw.js} +0 -0
- /package/dist/{pug-svelte.json.js → _virtual/pug-svelte.json.raw.js} +0 -0
- /package/dist/{r-snippets.json.js → _virtual/r-snippets.json.raw.js} +0 -0
- /package/dist/{r.json.js → _virtual/r.json.raw.js} +0 -0
- /package/dist/{rbuildignore.json.js → _virtual/rbuildignore.json.raw.js} +0 -0
- /package/dist/{reason-markdown-codeblock.json.js → _virtual/reason-markdown-codeblock.json.raw.js} +0 -0
- /package/dist/{reason.json.js → _virtual/reason.json.raw.js} +0 -0
- /package/dist/{rmarkdown.json2.js → _virtual/rmarkdown.json.raw2.js} +0 -0
- /package/dist/{rnamespace.json.js → _virtual/rnamespace.json.raw.js} +0 -0
- /package/dist/{sdl.json.js → _virtual/sdl.json.raw.js} +0 -0
- /package/dist/{semanticdb.json.js → _virtual/semanticdb.json.raw.js} +0 -0
- /package/dist/{solidity.json.js → _virtual/solidity.json.raw.js} +0 -0
- /package/dist/{solidity.json2.js → _virtual/solidity.json.raw2.js} +0 -0
- /package/dist/{svelte.json.js → _virtual/svelte.json.raw.js} +0 -0
- /package/dist/{svelte.tmLanguage.json.js → _virtual/svelte.tmLanguage.json.raw.js} +0 -0
- /package/dist/{systemverilog.json.js → _virtual/systemverilog.json.raw.js} +0 -0
- /package/dist/{systemverilog.tmLanguage.json.js → _virtual/systemverilog.tmLanguage.json.raw.js} +0 -0
- /package/dist/{tags.json.js → _virtual/tags.json.raw.js} +0 -0
- /package/dist/{tasty.json.js → _virtual/tasty.json.raw.js} +0 -0
- /package/dist/{tcl.json.js → _virtual/tcl.json.raw.js} +0 -0
- /package/dist/{tcl.json2.js → _virtual/tcl.json.raw2.js} +0 -0
- /package/dist/{template.json.js → _virtual/template.json.raw.js} +0 -0
- /package/dist/{typescript.json.js → _virtual/typescript.json.raw.js} +0 -0
- /package/dist/{vs2019_dark.json.js → _virtual/vs2019_dark.json.raw.js} +0 -0
- /package/dist/{vs2019_light.json.js → _virtual/vs2019_light.json.raw.js} +0 -0
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
var extension_browser_js = "'use strict';\n\n/*! For license information please see extension.browser.js.LICENSE.txt */\n(()=>{var e={7164:(e,t,n)=>{n.r(t),n.d(t,{AppInsightsCore:()=>z,BaseCore:()=>B,BaseTelemetryPlugin:()=>k.i,CoreUtils:()=>K.Tr,DiagnosticLogger:()=>m.AQ,ESPromise:()=>J,ESPromiseScheduler:()=>ne,EventHelper:()=>se.zB,EventLatency:()=>l,EventPersistence:()=>f,EventPropertyType:()=>d,EventsDiscardedReason:()=>oe.h,FullVersionString:()=>K.vs,InternalAppInsightsCore:()=>U,InternalBaseCore:()=>q,LoggingSeverity:()=>a,MinChannelPriorty:()=>ie,NotificationManager:()=>j,PerfEvent:()=>v.zn,PerfManager:()=>v.Jk,ProcessTelemetryContext:()=>b.Vi,TraceLevel:()=>p,Undefined:()=>ue.jA,Utils:()=>K.cQ,ValueKind:()=>u,ValueSanitizer:()=>re,Version:()=>K.Gf,_ExtendedInternalMessageId:()=>g,_InternalLogMessage:()=>m.lQ,_InternalMessageId:()=>c,__getRegisteredEvents:()=>ae.um,_logInternalMessage:()=>m.L4,_throwInternal:()=>m.kP,_warnToConsole:()=>m.jV,addEventHandler:()=>ae.Ib,addEventListeners:()=>ae.yw,addPageHideEventListener:()=>ae.TJ,addPageShowEventListener:()=>ae.nD,addPageUnloadEventListener:()=>ae.c9,areCookiesSupported:()=>w.p7,arrForEach:()=>s.tO,arrIndexOf:()=>s.UA,arrMap:()=>s.Mr,arrReduce:()=>s.Xz,attachEvent:()=>ae.pZ,cookieAvailable:()=>w.p7,createCookieMgr:()=>w.Nz,createEnumStyle:()=>o.By,createGuid:()=>K.cm,createProcessTelemetryContext:()=>b.CD,createTraceParent:()=>le.SU,createUniqueNamespace:()=>E.J,createUnloadHandlerContainer:()=>N.Y,dateNow:()=>s.m6,deleteCookie:()=>K.kT,detachEvent:()=>ae.pD,disableCookies:()=>K.oF,disallowsSameSiteNone:()=>w.UY,doPerf:()=>v.Lm,dumpObj:()=>y.eU,eventOff:()=>ae.QY,eventOn:()=>ae.XO,extend:()=>K.l7,findW3cTraceParent:()=>le.lq,formatTraceParent:()=>le.aR,generateW3CId:()=>se.DO,getCommonSchemaMetaData:()=>K.Vv,getConsole:()=>y.dr,getCookie:()=>K.ej,getCookieValue:()=>K.Do,getCrypto:()=>y.MX,getDocument:()=>y.Me,getExceptionName:()=>s.jj,getFieldValueType:()=>K.Sy,getGlobal:()=>S.Rd,getGlobalInst:()=>y.a8,getHistory:()=>y.s1,getIEVersion:()=>y.sA,getISOString:()=>s.Y6,getJSON:()=>y.xA,getLocation:()=>y.k$,getMsCrypto:()=>y.gz,getNavigator:()=>y.jW,getPerformance:()=>y.r,getSetValue:()=>s.qK,getTenantId:()=>K.jM,getTime:()=>K.hK,getWindow:()=>y.Jj,hasDocument:()=>y.Nv,hasHistory:()=>y.fE,hasJSON:()=>y.nS,hasNavigator:()=>y.d6,hasOwnProperty:()=>s.nr,hasWindow:()=>y.Ym,isArray:()=>s.kJ,isArrayValid:()=>K.JT,isBeaconsSupported:()=>y.MF,isBoolean:()=>s.jn,isChromium:()=>K.mJ,isDate:()=>s.J_,isDocumentObjectAvailable:()=>K.x9,isError:()=>s.VZ,isFetchSupported:()=>y.JO,isFunction:()=>s.mf,isIE:()=>y.w1,isLatency:()=>K.r7,isNotTruthy:()=>s.F,isNullOrUndefined:()=>s.le,isNumber:()=>s.hj,isObject:()=>s.Kn,isReactNative:()=>y.b$,isSampledFlag:()=>le.Pn,isString:()=>s.HD,isTruthy:()=>s.fQ,isTypeof:()=>s.Ym,isUint8ArrayAvailable:()=>K.IZ,isUndefined:()=>s.o8,isValidSpanId:()=>le.Lc,isValidTraceId:()=>le.jN,isValidTraceParent:()=>le.J6,isValueAssigned:()=>K.Sn,isValueKind:()=>K.oS,isWindowObjectAvailable:()=>K.dH,isXhrSupported:()=>y.Z3,mergeEvtNamespace:()=>ae.jU,newGuid:()=>se.GW,newId:()=>ce.pZ,normalizeJsName:()=>s.Gf,objCreate:()=>S.pu,objDefineAccessors:()=>s.l_,objForEachKey:()=>s.rW,objFreeze:()=>s.FL,objKeys:()=>s.FY,objSeal:()=>s.Xi,openXhr:()=>K.ot,optimizeObject:()=>s.Ax,parseTraceParent:()=>le.j_,perfNow:()=>se.Jj,proxyAssign:()=>s.cf,proxyFunctionAs:()=>s.Oi,proxyFunctions:()=>s.Vb,random32:()=>ce._l,randomValue:()=>ce.az,removeEventHandler:()=>ae.C1,removeEventListeners:()=>ae.nJ,removePageHideEventListener:()=>ae.C9,removePageShowEventListener:()=>ae.Yl,removePageUnloadEventListener:()=>ae.JA,safeGetCookieMgr:()=>w.JP,safeGetLogger:()=>m.vH,sanitizeProperty:()=>K.yj,setCookie:()=>K.d8,setEnableEnvMocks:()=>y.dI,setProcessTelemetryTimings:()=>K.if,setValue:()=>s.sO,strContains:()=>s._Q,strEndsWith:()=>s.Id,strFunction:()=>ue.cb,strObject:()=>ue.fK,strPrototype:()=>ue.hB,strStartsWith:()=>s.xe,strTrim:()=>s.nd,strUndefined:()=>ue.jA,throwError:()=>s._y,toISOString:()=>s.Y6,useXDomainRequest:()=>y.cp});var r,i=n(7421),o=n(951),s=n(4869),a=(0, o.By)({CRITICAL:1,WARNING:2}),c=(0, o.By)(((r={}).BrowserDoesNotSupportLocalStorage=0,r.BrowserCannotReadLocalStorage=1,r.BrowserCannotReadSessionStorage=2,r.BrowserCannotWriteLocalStorage=3,r.BrowserCannotWriteSessionStorage=4,r.BrowserFailedRemovalFromLocalStorage=5,r.BrowserFailedRemovalFromSessionStorage=6,r.CannotSendEmptyTelemetry=7,r.ClientPerformanceMathError=8,r.ErrorParsingAISessionCookie=9,r.ErrorPVCalc=10,r.ExceptionWhileLoggingError=11,r.FailedAddingTelemetryToBuffer=12,r.FailedMonitorAjaxAbort=13,r.FailedMonitorAjaxDur=14,r.FailedMonitorAjaxOpen=15,r.FailedMonitorAjaxRSC=16,r.FailedMonitorAjaxSend=17,r.FailedMonitorAjaxGetCorrelationHeader=18,r.FailedToAddHandlerForOnBeforeUnload=19,r.FailedToSendQueuedTelemetry=20,r.FailedToReportDataLoss=21,r.FlushFailed=22,r.MessageLimitPerPVExceeded=23,r.MissingRequiredFieldSpecification=24,r.NavigationTimingNotSupported=25,r.OnError=26,r.SessionRenewalDateIsZero=27,r.SenderNotInitialized=28,r.StartTrackEventFailed=29,r.StopTrackEventFailed=30,r.StartTrackFailed=31,r.StopTrackFailed=32,r.TelemetrySampledAndNotSent=33,r.TrackEventFailed=34,r.TrackExceptionFailed=35,r.TrackMetricFailed=36,r.TrackPVFailed=37,r.TrackPVFailedCalc=38,r.TrackTraceFailed=39,r.TransmissionFailed=40,r.FailedToSetStorageBuffer=41,r.FailedToRestoreStorageBuffer=42,r.InvalidBackendResponse=43,r.FailedToFixDepricatedValues=44,r.InvalidDurationValue=45,r.TelemetryEnvelopeInvalid=46,r.CreateEnvelopeError=47,r.CannotSerializeObject=48,r.CannotSerializeObjectNonSerializable=49,r.CircularReferenceDetected=50,r.ClearAuthContextFailed=51,r.ExceptionTruncated=52,r.IllegalCharsInName=53,r.ItemNotInArray=54,r.MaxAjaxPerPVExceeded=55,r.MessageTruncated=56,r.NameTooLong=57,r.SampleRateOutOfRange=58,r.SetAuthContextFailed=59,r.SetAuthContextFailedAccountName=60,r.StringValueTooLong=61,r.StartCalledMoreThanOnce=62,r.StopCalledWithoutStart=63,r.TelemetryInitializerFailed=64,r.TrackArgumentsNotSpecified=65,r.UrlTooLong=66,r.SessionStorageBufferFull=67,r.CannotAccessCookie=68,r.IdTooLong=69,r.InvalidEvent=70,r.FailedMonitorAjaxSetRequestHeader=71,r.SendBrowserInfoOnUserInit=72,r.PluginException=73,r.NotificationException=74,r.SnippetScriptLoadFailure=99,r.InvalidInstrumentationKey=100,r.CannotParseAiBlobValue=101,r.InvalidContentBlob=102,r.TrackPageActionEventFailed=103,r.FailedAddingCustomDefinedRequestContext=104,r.InMemoryStorageBufferFull=105,r.InstrumentationKeyDeprecation=106,r)),u=(0, o.By)({NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32}),l=(0, o.By)({Normal:1,CostDeferred:2,RealTime:3,Immediate:4}),d=(0, o.By)({Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9}),f=(0, o.By)({Normal:1,Critical:2}),p=(0, o.By)({NONE:0,ERROR:1,WARNING:2,INFORMATION:3}),g=(0, s.FL)((0, i.uc)((0, i.uc)({},c),(0, o.By)({AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}))),h=n(9141),m=n(9339),v=n(1782),y=n(9251),C=n(8145),S=n(175),T=n(6335),b=n(1030),_=n(9031),R=500;function D(e,t,n){t&&(0, s.kJ)(t)&&t[C.R5]>0&&(t=t.sort((function(e,t){return e[T.yi]-t[T.yi]})),(0, s.tO)(t,(function(e){e[T.yi]<R&&(0, s._y)(\"Channel has invalid priority - \"+e[C.pZ]);})),e[C.MW]({queue:(0, s.FL)(t),chain:(0, b.jV)(t,n[C.TC],n)}));}var w=n(8140),E=n(7624),P=n(8341),k=n(7951),x=function(e){function t(){var n,r,i=e.call(this)||this;function o(){n=0,r=[];}return i.identifier=\"TelemetryInitializerPlugin\",i.priority=199,o(),(0, h.Z)(t,i,(function(e,t){e.addTelemetryInitializer=function(e){var t={id:n++,fn:e};return r[C.MW](t),{remove:function(){(0, s.tO)(r,(function(e,n){if(e.id===t.id)return r[C.cb](n,1),-1}));}}},e[T.hL]=function(t,n){for(var i=!1,o=r[C.R5],a=0;a<o;++a){var c=r[a];if(c)try{if(!1===c.fn[C.ZV](null,[t])){i=!0;break}}catch(e){(0, m.kP)(n[C.mc](),1,64,\"One of telemetry initializers failed, telemetry item will not be sent: \"+(0, s.jj)(e),{exception:(0, y.eU)(e)},!0);}}i||e[C.uL](t,n);},e[C.F3]=function(){o();};})),i}return (0, i.ne)(t,e),t.__ieDyn=1,t}(k.i),N=n(8593),O=\"Plugins must provide initialize method\",I=\"SDK is still unloading...\",A={loggingLevelConsole:1};function F(e,t){return new v.Jk(t)}function L(e,t){var n=!1;return (0, s.tO)(t,(function(t){if(t===e)return n=!0,-1})),n}var q=function(){function e(){var t,n,r,o,a,c,u,l,d,f,p,g,y,k,q,M,j,U,H,K,W=0;(0, h.Z)(e,this,(function(e){function h(){n=!1,t=(0, s.mm)(!0,{},A),e[C.TC]=t,e[C.eZ]=new m.AQ(t),e[C.iC]=[],q=new x,r=[],o=null,a=null,c=null,u=null,l=null,f=null,d=[],p=null,g=null,y=null,k=!1,M=null,j=(0, E.J)(\"AIBaseCore\",!0),U=(0, N.Y)(),K=null;}function z(){return (0, b.CD)($(),t,e)}function V(n){var r=function(e,t,n){var r,i=[],o={};return (0, s.tO)(n,(function(t){((0, s.le)(t)||(0, s.le)(t[C.VL]))&&(0, s._y)(O);var n=t[T.yi],r=t[C.pZ];t&&n&&((0, s.le)(o[n])?o[n]=r:(0, m.jV)(e,\"Two extensions have same priority #\"+n+\" - \"+o[n]+\", \"+r)),(!n||n<500)&&i[C.MW](t);})),(r={all:n})[T.oV]=i,r}(e[C.eZ],0,d);f=r[T.oV],l=null;var i=r.all;if(y=(0, s.FL)(function(e,t,n){var r=[];if(e&&(0, s.tO)(e,(function(e){return D(r,e,n)})),t){var i=[];(0, s.tO)(t,(function(e){e[T.yi]>R&&i[C.MW](e);})),D(r,i,n);}return r}(g,i,e)),p){var o=(0, s.UA)(i,p);-1!==o&&i[C.cb](o,1),-1!==(o=(0, s.UA)(f,p))&&f[C.cb](o,1),p._setQueue(y);}else p=function(e,t){function n(){return (0, b.CD)(null,t[C.TC],t,null)}function r(e,t,n,r){var i=e?e[C.R5]+1:1;function o(){0==--i&&(r&&r(),r=null);}i>0&&(0, s.tO)(e,(function(e){if(e&&e.queue[C.R5]>0){var r=e.chain,s=t[C.zV](r);s[C.Fc](o),n(s);}else i--;})),o();}var i=!1,o={identifier:\"ChannelControllerPlugin\",priority:R,initialize:function(t,n,r,o){i=!0,(0, s.tO)(e,(function(e){e&&e.queue[C.R5]>0&&(0, _.bP)((0, b.CD)(e.chain,t,n),r);}));},isInitialized:function(){return i},processTelemetry:function(t,i){r(e,i||n(),(function(e){e[C.uL](t);}),(function(){i[C.uL](t);}));},update:function(t,n){var i=n||{reason:0};return r(e,t,(function(e){e[C.uL](i);}),(function(){t[C.uL](i);})),!0},pause:function(){r(e,n(),(function(e){e.iterate((function(e){e.pause&&e.pause();}));}),null);},resume:function(){r(e,n(),(function(e){e.iterate((function(e){e.resume&&e.resume();}));}),null);},teardown:function(t,n){var o=n||{reason:0,isAsync:!1};return r(e,t,(function(e){e[C.uL](o);}),(function(){t[C.uL](o),i=!1;})),!0},getChannel:function(t){var n=null;return e&&e[C.R5]>0&&(0, s.tO)(e,(function(e){if(e&&e.queue[C.R5]>0&&((0, s.tO)(e.queue,(function(e){if(e[C.pZ]===t)return n=e,-1})),n))return -1})),n},flush:function(t,i,o,s){var a=1,c=!1,u=null;function l(){a--,c&&0===a&&(u&&(clearTimeout(u),u=null),i&&i(c),i=null);}return s=s||5e3,r(e,n(),(function(e){e.iterate((function(e){if(e[C.kL]){a++;var n=!1;e[C.kL](t,(function(){n=!0,l();}),o)||n||(t&&null==u?u=setTimeout((function(){u=null,l();}),s):l());}}));}),(function(){c=!0,l();})),!0},_setQueue:function(t){e=t;}};return o}(y,e);i[C.MW](p),f[C.MW](p),e[C.iC]=(0, _.AA)(i),p[C.VL](t,e,i),(0, _.bP)(z(),i),e[C.iC]=(0, s.FL)((0, _.AA)(f||[])).slice(),n&&function(t){var n=(0, b.xy)($(),e);e._updateHook&&!0===e._updateHook(n,t)||n[C.uL](t);}(n);}function B(t){var n,r=null,i=null;return (0, s.tO)(e[C.iC],(function(e){if(e[C.pZ]===t&&e!==p&&e!==q)return i=e,-1})),!i&&p&&(i=p.getChannel(t)),i&&((n={plugin:i})[C.$h]=function(e){(0, _.OY)(i)[T.mE]=!e;},n.isEnabled=function(){var e=(0, _.OY)(i);return !e[C.fi]&&!e[T.mE]},n.remove=function(e,t){var n;void 0===e&&(e=!0);var r=[i],o=((n={reason:1})[C.d]=e,n);G(r,o,(function(e){e&&V({reason:32,removed:r}),t&&t(e);}));},r=n),r}function $(){if(!l){var n=(f||[]).slice();-1===(0, s.UA)(n,q)&&n[C.MW](q),l=(0, b.jV)((0, _.AA)(n),t,e);}return l}function G(n,r,i){if(n&&n[C.R5]>0){var o=(0, b.jV)(n,t,e),a=(0, b.Bt)(o,e);a[C.Fc]((function(){var e=!1,t=[];(0, s.tO)(d,(function(r,i){L(r,n)?e=!0:t[C.MW](r);})),d=t;var r=[];g&&((0, s.tO)(g,(function(t,i){var o=[];(0, s.tO)(t,(function(t){L(t,n)?e=!0:o[C.MW](t);})),r[C.MW](o);})),g=r),i&&i(e);})),a[C.uL](r);}else i(!1);}function J(){var n=e[C.eZ]?e[C.eZ].queue:[];n&&((0, s.tO)(n,(function(n){var r,i=((r={})[C.I]=M||\"InternalMessageId: \"+n[C.Gc],r.iKey=(0, s.v4)(t[C.p$]),r.time=(0, s.Y6)(new Date),r.baseType=m.lQ.dataType,r.baseData={message:n[C.gU]},r);e.track(i);})),n[C.R5]=0);}function Y(e,t,n,r){return p?p[C.kL](e,t,n||6,r):(t&&t(!1),!0)}function Z(t){var n=e[C.eZ];n?(0, m.kP)(n,2,73,t):(0, s._y)(t);}h(),e[C.yl]=function(){return n},e[C.VL]=function(r,a,u,l){var f,p;k&&(0, s._y)(I),e[C.yl]()&&(0, s._y)(\"Core should not be initialized more than once\"),t=r||{},e[C.TC]=t,(0, s.le)(r[C.p$])&&(0, s._y)(\"Please provide instrumentation key\"),o=l,e._notificationManager=l,!0===(p=(0, s.v4)(t.disableDbgExt))&&H&&(o[C.n7](H),H=null),o&&!H&&!0!==p&&(H=(0, P.p)(t),o[C.g](H)),!(f=(0, s.v4)(t.enablePerfMgr))&&c&&(c=null),f&&(0, s.qK)(t,T.DN,F),(0, s.qK)(t,T.Zh,{}).NotificationManager=o,u&&(e[C.eZ]=u);var h=(0, s.qK)(t,T.js,[]);(d=[])[C.MW].apply(d,(0, i.$h)((0, i.$h)([],a,!1),h,!1)),g=(0, s.qK)(t,T.Z,[]),V(null),y&&0!==y[C.R5]||(0, s._y)(\"No \"+T.Z+\" available\"),n=!0,e.releaseQueue();},e.getTransmissionControls=function(){var e=[];return y&&(0, s.tO)(y,(function(t){e[C.MW](t.queue);})),(0, s.FL)(e)},e.track=function(n){n.iKey=n.iKey||t[C.p$],n[C.Z_]=n[C.Z_]||(0, s.Y6)(new Date),n.ver=n.ver||\"4.0\",!k&&e[C.yl]()?z()[C.uL](n):r[C.MW](n);},e[C.SD]=z,e[C.tb]=function(){return o||(o=function(){var e;return (0, S.pu)(((e={})[C.g]=function(e){},e[C.n7]=function(e){},e[T.uC]=function(e){},e[T.$F]=function(e,t){},e[T.f_]=function(e,t){},e))}(),e._notificationManager=o),o},e[C.g]=function(e){o&&o[C.g](e);},e[C.n7]=function(e){o&&o[C.n7](e);},e.getCookieMgr=function(){return u||(u=(0, w.Nz)(t,e[C.eZ])),u},e.setCookieMgr=function(e){u=e;},e[T.kl]=function(){if(!a&&!c&&(0, s.v4)(t.enablePerfMgr)){var n=(0, s.v4)(t[T.DN]);(0, s.mf)(n)&&(c=n(e,e[C.tb]()));}return a||c||(0, v.j5)()},e.setPerfMgr=function(e){a=e;},e.eventCnt=function(){return r[C.R5]},e.releaseQueue=function(){if(n&&r[C.R5]>0){var e=r;r=[],(0, s.tO)(e,(function(e){z()[C.uL](e);}));}},e.pollInternalLogs=function(e){M=e||null;var n=(0, s.v4)(t.diagnosticLogInterval);return n&&n>0||(n=1e4),W&&clearInterval(W),W=setInterval((function(){J();}),n)},e[C.LS]=function(){W&&(clearInterval(W),W=0,J());},(0, s.Vb)(e,(function(){return q}),[\"addTelemetryInitializer\"]),e.unload=function(t,r,i){var o;void 0===t&&(t=!0),n||(0, s._y)(\"SDK is not initialized\"),k&&(0, s._y)(I);var a=((o={reason:50})[C.d]=t,o.flushComplete=!1,o),c=(0, b.Bt)($(),e);function u(t){a.flushComplete=t,k=!0,U.run(c,a),e[C.LS](),c[C.uL](a);}c[C.Fc]((function(){h(),r&&r(a);}),e),Y(t,u,6,i)||u(!1);},e[C.TO]=B,e.addPlugin=function(e,t,n,r){if(!e)return r&&r(!1),void Z(O);var i=B(e[C.pZ]);if(i&&!t)return r&&r(!1),void Z(\"Plugin [\"+e[C.pZ]+\"] is already loaded!\");var o={reason:16};function s(t){d[C.MW](e),o.added=[e],V(o),r&&r(!0);}if(i){var a=[i.plugin];G(a,{reason:2,isAsync:!!n},(function(e){e?(o.removed=a,o.reason|=32,s()):r&&r(!1);}));}else s();},e.evtNamespace=function(){return j},e[C.kL]=Y,e.getTraceCtx=function(e){return K||(K=(0, _.Yn)()),K},e.setTraceCtx=function(e){K=e||null;},(0, s.Oi)(e,\"addUnloadCb\",(function(){return U}),\"add\");}));}return e.__ieDyn=1,e}();function M(e,t,n,r){(0, s.tO)(e,(function(e){if(e&&e[t])if(n)setTimeout((function(){return r(e)}),0);else try{r(e);}catch(e){}}));}var j=function(){function e(t){this.listeners=[];var n=!!(t||{}).perfEvtsSendAll;(0, h.Z)(e,this,(function(e){e[C.g]=function(t){e.listeners[C.MW](t);},e[C.n7]=function(t){for(var n=(0, s.UA)(e[C.dE],t);n>-1;)e.listeners[C.cb](n,1),n=(0, s.UA)(e[C.dE],t);},e[T.uC]=function(t){M(e[C.dE],T.uC,!0,(function(e){e[T.uC](t);}));},e[T.$F]=function(t,n){M(e[C.dE],T.$F,!0,(function(e){e[T.$F](t,n);}));},e[T.f_]=function(t,n){M(e[C.dE],T.f_,n,(function(e){e[T.f_](t,n);}));},e[T.C$]=function(t){t&&(!n&&t[C.PL]()||M(e[C.dE],T.C$,!1,(function(e){t[C.d]?setTimeout((function(){return e[T.C$](t)}),0):e[T.C$](t);})));};}));}return e.__ieDyn=1,e}(),U=function(e){function t(){var n=e.call(this)||this;return (0, h.Z)(t,n,(function(e,t){function n(t){var n=e[C.tb]();n&&n[T.$F]([t],2);}e[C.VL]=function(e,n,r,i){t[C.VL](e,n,r||new m.AQ(e),i||new j(e));},e.track=function(r){(0, v.Lm)(e[T.kl](),(function(){return \"AppInsightsCore:track\"}),(function(){null===r&&(n(r),(0, s._y)(\"Invalid telemetry item\")),function(e){(0, s.le)(e[C.I])&&(n(e),(0, s._y)(\"telemetry name required\"));}(r),t.track(r);}),(function(){return {item:r}}),!r.sync);};})),n}return (0, i.ne)(t,e),t.__ieDyn=1,t}(q),H=n(1539),K=n(5705),W=function(e){function t(){var n=e.call(this)||this;return n.pluginVersionStringArr=[],(0, h.Z)(t,n,(function(e,t){e.logger&&e.logger.queue||(e.logger=new m.AQ({loggingLevelConsole:1})),e.initialize=function(n,r,i,o){(0, v.Lm)(e,(function(){return \"AppInsightsCore.initialize\"}),(function(){var a=e.pluginVersionStringArr;if(n){n.endpointUrl||(n.endpointUrl=H.YT);var c=n.propertyStorageOverride;!c||c.getProperty&&c.setProperty||(0, s._y)(\"Invalid property storage override passed.\"),n.channels&&(0, s.tO)(n.channels,(function(e){e&&(0, s.tO)(e,(function(e){if(e.identifier&&e.version){var t=e.identifier+\"=\"+e.version;a.push(t);}}));}));}e.getWParam=function(){return \"undefined\"!=typeof document||n.enableWParam?0:-1},r&&(0, s.tO)(r,(function(e){if(e&&e.identifier&&e.version){var t=e.identifier+\"=\"+e.version;a.push(t);}})),e.pluginVersionString=a.join(\";\"),e.pluginVersionStringArr=a;try{t.initialize(n,r,i,o),e.pollInternalLogs(\"InternalLog\");}catch(t){var u=e.logger,l=(0, y.eU)(t);-1!==l.indexOf(\"channels\")&&(l+=\"\\n - Channels must be provided through config.channels only!\"),(0, m.kP)(u,1,514,\"SDK Initialization Failed - no telemetry will be sent: \"+l);}}),(function(){return {config:n,extensions:r,logger:i,notificationManager:o}}));},e.track=function(n){(0, v.Lm)(e,(function(){return \"AppInsightsCore.track\"}),(function(){var r=n;if(r){r.timings=r.timings||{},r.timings.trackStart=(0, K.hK)(),(0, K.r7)(r.latency)||(r.latency=1);var i=r.ext=r.ext||{};i.sdk=i.sdk||{},i.sdk.ver=K.vs;var o=r.baseData=r.baseData||{};o[H.o6]=o[H.o6]||{};var s=o[H.o6];s[H.p8]=s[H.p8]||e.pluginVersionString||H.qS;}t.track(r);}),(function(){return {item:n}}),!n.sync);};})),n}return (0, i.ne)(t,e),t.__ieDyn=1,t}(U);const z=W;var V=function(e){function t(){var n=e.call(this)||this;return (0, h.Z)(t,n,(function(e,t){e.initialize=function(n,r,i,o){n&&!n.endpointUrl&&(n.endpointUrl=H.YT),e.getWParam=function(){return K.x9||n.enableWParam?0:-1};try{t.initialize(n,r,i,o);}catch(t){(0, m.kP)(e.logger,1,514,\"Initialization Failed: \"+(0, y.eU)(t)+\"\\n - Note: Channels must be provided through config.channels only\");}},e.track=function(e){var n=e;if(n){var r=n.ext=n.ext||{};r.sdk=r.sdk||{},r.sdk.ver=K.vs;}t.track(n);};})),n}return (0, i.ne)(t,e),t.__ieDyn=1,t}(q);const B=V;var $=s.mf;function G(e,t,n){return function(r){e[t]=r,n();}}const J=function(){function e(t){var n=0,r=null,i=[];function o(){if(i.length>0){var e=i.slice();i=[],setTimeout((function(){for(var t=0,n=e.length;t<n;++t)try{e[t]();}catch(e){}}),0);}}function s(e){0===n&&(r=e,n=1,o());}function a(e){0===n&&(r=e,n=2,o());}(0, h.Z)(e,this,(function(t){t.then=function(t,s){return new e((function(a,c){!function(t,s,a,c){i.push((function(){var i;try{(i=1===n?$(t)?t(r):r:$(s)?s(r):r)instanceof e?i.then(a,c):2!==n||$(s)?a(i):c(i);}catch(e){return void c(e)}})),0!==n&&o();}(t,s,a,c);}))},t.catch=function(e){return t.then(null,e)};})),function(){if(!$(t))throw new TypeError(\"ESPromise: resolvedFunc argument is not a Function\");try{t(s,a);}catch(e){a(e);}}();}return e.resolve=function(t){return t instanceof e?t:t&&$(t.then)?new e((function(e,n){try{t.then(e,n);}catch(e){n(e);}})):new e((function(e){e(t);}))},e.reject=function(t){return new e((function(e,n){n(t);}))},e.all=function(t){if(t&&t.length)return new e((function(e,n){try{for(var r=[],i=0,o=0;o<t.length;o++){var s=t[o];s&&$(s.then)?(i++,s.then(G(r,o,(function(){0==--i&&e(r);})),n)):r[o]=s;}0===i&&setTimeout((function(){e(r);}),0);}catch(e){n(e);}}))},e.race=function(t){return new e((function(e,n){if(t&&t.length)try{for(var r=function(r){var i=t[r];i&&$(i.then)?i.then(e,n):setTimeout((function(){e(i);}),0);},i=0;i<t.length;i++)r(i);}catch(e){n(e);}}))},e}();var Y=n(5108),Z=0,X=[],Q=[],ee=[];function te(){return (new Date).getTime()}const ne=function(){function e(t,n){var r=0,i=(t||\"<unnamed>\")+\".\"+Z;function o(e){var t=(0, S.Rd)();t&&t.QUnit&&Y&&Y.log(\"ESPromiseScheduler[\"+i+\"] \"+e);}function s(e){(0, m.jV)(n,\"ESPromiseScheduler[\"+i+\"] \"+e);}Z++,(0, h.Z)(e,this,(function(e){var t=null,n=0;function a(e,t){for(var n=0;n<e.length;n++)if(e[n].id===t)return e.splice(n,1)[0];return null}e.scheduleEvent=function(e,c,u){var l=i+\".\"+n;n++,c&&(l+=\"-(\"+c+\")\");var d=l+\"{\"+r+\"}\";r++;var f,p,g,h={evt:null,tm:te(),id:d,isRunning:!1,isAborted:!1};return h.evt=t?(f=h,p=t,g=new J((function(e,t){var n=te()-p.tm,r=p.id;o(\"[\"+l+\"] is waiting for [\"+r+\":\"+n+\" ms] to complete before starting -- [\"+Q.length+\"] waiting and [\"+X.length+\"] running\"),f.abort=function(e){f.abort=null,a(Q,l),f.isAborted=!0,t(new Error(e));},p.evt.then((function(n){a(Q,l),T(f).then(e,t);}),(function(n){a(Q,l),T(f).then(e,t);}));})),Q.push(f),g):T(h),(t=h).evt._schId=d,h.evt;function m(e){for(var t=te(),n=t-6e5,r=e.length,i=0;i<r;){var o=e[i];if(o&&o.tm<n){var a=null;o.abort?(a=\"Aborting [\"+o.id+\"] due to Excessive runtime (\"+(t-o.tm)+\" ms)\",o.abort(a)):a=\"Removing [\"+o.id+\"] due to Excessive runtime (\"+(t-o.tm)+\" ms)\",s(a),e.splice(i,1),r--;}else i++;}}function v(e,n){var r=!1,i=a(X,e);if(i||(i=a(ee,e),r=!0),i){i.to&&(clearTimeout(i.to),i.to=null);var c=te()-i.tm;n?r?s(\"Timed out event [\"+e+\"] finally complete -- \"+c+\" ms\"):o(\"Promise [\"+e+\"] Complete -- \"+c+\" ms\"):(ee.push(i),s(\"Event [\"+e+\"] Timed out and removed -- \"+c+\" ms\"));}else o(\"Failed to remove [\"+e+\"] from running queue\");t&&t.id===e&&(t=null),m(X),m(Q),m(ee);}function y(e,t){return function(n){return v(e,!0),t&&t(n),n}}function C(e,t,n,r){t.then((function(t){return t instanceof J?(o(\"Event [\"+e+\"] returned a promise -- waiting\"),C(e,t,n,r),t):y(e,n)(t)}),y(e,r));}function S(e,t){var n=e.id;return new J((function(r,i){o(\"Event [\"+n+\"] Starting -- waited for \"+(e.wTm||\"--\")+\" ms\"),e.isRunning=!0,e.abort=function(t){e.abort=null,e.isAborted=!0,v(n,!1),i(new Error(t));};var s=t(n);s instanceof J?(u&&(e.to=setTimeout((function(){v(n,!1),i(new Error(\"Timed out after [\"+u+\"] ms\"));}),u)),C(n,s,(function(t){o(\"Event [\"+n+\"] Resolving after \"+(te()-e.tm)+\" ms\"),r(t);}),i)):(o(\"Promise [\"+n+\"] Auto completed as the start action did not return a promise\"),r());}))}function T(t){var n=te();return t.wTm=n-t.tm,t.tm=n,t.isAborted?J.reject(new Error(\"[\"+l+\"] was aborted\")):(X.push(t),S(t,e))}};}));}return e.incomplete=function(){return X},e.waitingToStart=function(){return Q},e}();var re=function(){function e(e){var t=this,n={},r=[],i=[];function o(e,t){var o,a=n[e];if(a&&(o=a[t]),!o&&null!==o){if((0, s.HD)(e)&&(0, s.HD)(t))if(i.length>0){for(var c=0;c<i.length;c++)if(i[c].handleField(e,t)){o={canHandle:!0,fieldHandler:i[c]};break}}else 0===r.length&&(o={canHandle:!0});if(!o&&null!==o)for(o=null,c=0;c<r.length;c++)if(r[c].handleField(e,t)){o={canHandle:!0,handler:r[c],fieldHandler:null};break}a||(a=n[e]={}),a[t]=o;}return o}function a(e,t,n,r,i,o){if(e.handler)return e.handler.property(t,n,i,o);if(!(0, s.le)(i.kind)){if(4096==(4096&r)||!(0, K.oS)(i.kind))return null;i.value=i.value.toString();}return u(e.fieldHandler,t,n,r,i)}function c(e,t,n){return (0, K.Sn)(n)?{value:n}:null}function u(e,n,r,i,o){if(o&&e){var a=e.getSanitizer(n,r,i,o.kind,o.propertyType);if(a)if(4===i){var l={},d=o.value;(0, s.rW)(d,(function(t,i){var o=n+\".\"+r;if((0, K.Sn)(i)){var s=c(0,0,i);(s=u(e,o,t,(0, K.Sy)(i),s))&&(l[t]=s.value);}})),o.value=l;}else {var f={path:n,name:r,type:i,prop:o,sanitizer:t};o=a.call(t,f);}}return o}e&&i.push(e),t.addSanitizer=function(e){e&&(r.push(e),n={});},t.addFieldSanitizer=function(e){e&&(i.push(e),n={});},t.handleField=function(e,t){var n=o(e,t);return !!n&&n.canHandle},t.value=function(e,t,n,r){var i=o(e,t);if(i&&i.canHandle){if(!i||!i.canHandle)return null;if(i.handler)return i.handler.value(e,t,n,r);if(!(0, s.HD)(t)||(0, s.le)(n)||n===H.qS)return null;var u=null,l=(0, K.Sy)(n);if(8192==(8192&l)){var d=-8193&l;if(u=n,!(0, K.Sn)(u.value)||1!==d&&2!==d&&3!==d&&4096!=(4096&d))return null}else 1===l||2===l||3===l||4096==(4096&l)?u=c(0,0,n):4===l&&(u=c(0,0,r?JSON.stringify(n):n));if(u)return a(i,e,t,l,u,r)}return null},t.property=function(e,t,n,r){var i=o(e,t);if(!i||!i.canHandle)return null;if(!(0, s.HD)(t)||(0, s.le)(n)||!(0, K.Sn)(n.value))return null;var c=(0, K.Sy)(n.value);return 0===c?null:a(i,e,t,c,n,r)};}return e.getFieldType=K.Sy,e}(),ie=100,oe=n(8452),se=n(8956),ae=n(7954),ce=n(9406),ue=n(1550),le=n(6207);},1539:(e,t,n)=>{n.d(t,{YT:()=>i,o6:()=>s,p8:()=>o,qS:()=>r});var r=\"\",i=\"https://browser.events.data.microsoft.com/OneCollector/1.0/\",o=\"version\",s=\"properties\";},5705:(e,t,n)=>{n.d(t,{Do:()=>x,Gf:()=>p,IZ:()=>b,JT:()=>F,Sn:()=>S,Sy:()=>q,Tr:()=>j,Vv:()=>D,cQ:()=>M,cm:()=>N,d8:()=>E,dH:()=>C,ej:()=>k,hK:()=>I,if:()=>L,jM:()=>T,kT:()=>P,l7:()=>O,mJ:()=>U,oF:()=>w,oS:()=>A,ot:()=>H,r7:()=>_,vs:()=>g,x9:()=>y,yj:()=>R});var r,i=n(9251),o=n(4869),s=n(8140),a=n(8956),c=n(1550),u=n(7954),l=n(9406),d=n(175),f=n(1539),p=\"3.2.9\",g=\"1DS-Web-JS-\"+p,h=\"withCredentials\",m=((r={})[0]=0,r[2]=6,r[1]=1,r[3]=7,r[4098]=6,r[4097]=1,r[4099]=7,r),v=null,y=Boolean((0, i.Me)()),C=Boolean((0, i.Jj)());function S(e){return !(e===f.qS||(0, o.le)(e))}function T(e){if(e){var t=e.indexOf(\"-\");if(t>-1)return e.substring(0,t)}return f.qS}function b(){return null===v&&(v=!(0, o.o8)(Uint8Array)&&!function(){var e=(0, i.jW)();if(!(0, o.o8)(e)&&e.userAgent){var t=e.userAgent.toLowerCase();if((t.indexOf(\"safari\")>=0||t.indexOf(\"firefox\")>=0)&&t.indexOf(\"chrome\")<0)return !0}return !1}()&&!(0, i.b$)()),v}function _(e){return !!(e&&(0, o.hj)(e)&&e>=1&&e<=4)}function R(e,t,n){if(!t&&!S(t)||\"string\"!=typeof e)return null;var r=typeof t;if(\"string\"===r||\"number\"===r||\"boolean\"===r||(0, o.kJ)(t))t={value:t};else if(\"object\"!==r||c.CY.call(t,\"value\")){if((0, o.le)(t.value)||t.value===f.qS||!(0, o.HD)(t.value)&&!(0, o.hj)(t.value)&&!(0, o.jn)(t.value)&&!(0, o.kJ)(t.value))return null}else t={value:n?JSON.stringify(t):t};if((0, o.kJ)(t.value)&&!F(t.value))return null;if(!(0, o.le)(t.kind)){if((0, o.kJ)(t.value)||!A(t.kind))return null;t.value=t.value.toString();}return t}function D(e,t,n){var r=-1;if(!(0, o.o8)(e))if(t>0&&(32===t?r=8192:t<=13&&(r=t<<5)),function(e){return e>=0&&e<=9}(n))-1===r&&(r=0),r|=n;else {var i=m[q(e)]||-1;-1!==r&&-1!==i?r|=i:6===i&&(r=i);}return r}function w(){(0, s.JP)(null).setEnabled(!1);}function E(e,t,n){(0, s.p7)(null)&&(0, s.JP)(null).set(e,t,86400*n,null,\"/\");}function P(e){(0, s.p7)(null)&&(0, s.JP)(null).del(e);}function k(e){return (0, s.p7)(null)?x((0, s.JP)(null),e):f.qS}function x(e,t,n){var r;return void 0===n&&(n=!0),e&&(r=e.get(t),n&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||f.qS}function N(e){void 0===e&&(e=\"D\");var t=(0, a.GW)();return \"B\"===e?t=\"{\"+t+\"}\":\"P\"===e?t=\"(\"+t+\")\":\"N\"===e&&(t=t.replace(/-/g,f.qS)),t}function O(e,t,n,r,i){var s={},a=!1,u=0,l=arguments.length,d=Object[c.hB],f=arguments;for(\"[object Boolean]\"===d.toString.call(f[0])&&(a=f[0],u++);u<l;u++)e=f[u],(0, o.rW)(e,(function(e,t){a&&t&&(0, o.Kn)(t)?(0, o.kJ)(t)?(s[e]=s[e]||[],(0, o.tO)(t,(function(t,n){t&&(0, o.Kn)(t)?s[e][n]=O(!0,s[e][n],t):s[e][n]=t;}))):s[e]=O(!0,s[e],t):s[e]=t;}));return s}var I=a.Jj;function A(e){return 0===e||e>0&&e<=13||32===e}function F(e){return e.length>0}function L(e,t){var n=e;n.timings=n.timings||{},n.timings.processTelemetryStart=n.timings.processTelemetryStart||{},n.timings.processTelemetryStart[t]=I();}function q(e){var t=0;if(null!=e){var n=typeof e;\"string\"===n?t=1:\"number\"===n?t=2:\"boolean\"===n?t=3:n===c.fK&&(t=4,(0, o.kJ)(e)?(t=4096,e.length>0&&(t|=q(e[0]))):c.CY.call(e,\"value\")&&(t=8192|q(e.value)));}return t}var M={Version:p,FullVersionString:g,strUndefined:c.jA,strObject:c.fK,Undefined:c.jA,arrForEach:o.tO,arrIndexOf:o.UA,arrMap:o.Mr,arrReduce:o.Xz,objKeys:o.FY,toISOString:o.Y6,isReactNative:i.b$,isString:o.HD,isNumber:o.hj,isBoolean:o.jn,isFunction:o.mf,isArray:o.kJ,isObject:o.Kn,strTrim:o.nd,isDocumentObjectAvailable:y,isWindowObjectAvailable:C,isValueAssigned:S,getTenantId:T,isBeaconsSupported:i.MF,isUint8ArrayAvailable:b,isLatency:_,sanitizeProperty:R,getISOString:o.Y6,useXDomainRequest:i.cp,getCommonSchemaMetaData:D,cookieAvailable:s.p7,disallowsSameSiteNone:s.UY,setCookie:E,deleteCookie:P,getCookie:k,createGuid:N,extend:O,getTime:I,isValueKind:A,isArrayValid:F,objDefineAccessors:o.l_,addPageUnloadEventListener:u.c9,setProcessTelemetryTimings:L,addEventHandler:u.Ib,getFieldValueType:q,strEndsWith:o.Id,objForEachKey:o.rW},j={_canUseCookies:void 0,isTypeof:o.Ym,isUndefined:o.o8,isNullOrUndefined:o.le,hasOwnProperty:o.nr,isFunction:o.mf,isObject:o.Kn,isDate:o.J_,isArray:o.kJ,isError:o.VZ,isString:o.HD,isNumber:o.hj,isBoolean:o.jn,toISOString:o.Y6,arrForEach:o.tO,arrIndexOf:o.UA,arrMap:o.Mr,arrReduce:o.Xz,strTrim:o.nd,objCreate:d.pu,objKeys:o.FY,objDefineAccessors:o.l_,addEventHandler:u.Ib,dateNow:o.m6,isIE:i.w1,disableCookies:w,newGuid:a.GW,perfNow:a.Jj,newId:l.pZ,randomValue:l.az,random32:l._l,mwcRandomSeed:l.CN,mwcRandom32:l.F6,generateW3CId:a.DO};function U(){return !!(0, i.a8)(\"chrome\")}function H(e,t,n,r,i,o){function s(e,t,n){try{e[t]=n;}catch(e){}}void 0===r&&(r=!1),void 0===i&&(i=!1);var a=new XMLHttpRequest;return r&&s(a,\"Microsoft_ApplicationInsights_BypassAjaxInstrumentation\",r),n&&s(a,h,n),a.open(e,t,!i),n&&s(a,h,n),!i&&o&&s(a,\"timeout\",o),a}},1488:(e,t,n)=>{n.r(t),n.d(t,{BE_PROFILE:()=>m,NRT_PROFILE:()=>h,PostChannel:()=>re,RT_PROFILE:()=>g});var r=n(7421),i=n(9141),o=n(1782),s=n(7954),a=n(7624),c=n(5705),u=n(4869),l=n(9251),d=n(8452),f=n(9339),p=n(7951),g=\"REAL_TIME\",h=\"NEAR_REAL_TIME\",m=\"BEST_EFFORT\",v=\"\",y=\"POST\",C=\"drop\",S=\"requeue\",T=\"application/x-json-stream\",b=\"content-type\",_=\"client-version\",R=\"client-id\",D=\"time-delta-to-apply-millis\",w=\"upload-time\",E=\"apikey\",P=\"AuthMsaDeviceTicket\",k=\"AuthXToken\";function x(e){var t=(e.ext||{}).intweb;return t&&(0, c.Sn)(t.msfpc)?t.msfpc:null}function N(e){for(var t=null,n=0;null===t&&n<e.length;n++)t=x(e[n]);return t}var O=function(){function e(t,n){var r=n?[].concat(n):[],i=this,o=N(r);i.iKey=function(){return t},i.Msfpc=function(){return o||v},i.count=function(){return r.length},i.events=function(){return r},i.addEvent=function(e){return !!e&&(r.push(e),o||(o=x(e)),!0)},i.split=function(n,i){var s;if(n<r.length){var a=r.length-n;(0, u.le)(i)||(a=i<a?i:a),s=r.splice(n,a),o=N(r);}return new e(t,s)};}return e.create=function(t,n){return new e(t,n)},e}();const I=function(){function e(){var t=!0,n=!0,r=!0,o=\"use-collector-delta\",s=!1;(0, i.Z)(e,this,(function(e){e.allowRequestSending=function(){return t},e.firstRequestSent=function(){r&&(r=!1,s||(t=!1));},e.shouldAddClockSkewHeaders=function(){return n},e.getClockSkewHeaderValue=function(){return o},e.setClockSkew=function(e){s||(e?(o=e,n=!0,s=!0):n=!1,t=!0);};}));}return e.__ieDyn=1,e}(),A=function(){function e(){var t={};(0, i.Z)(e,this,(function(e){e.setKillSwitchTenants=function(e,n){if(e&&n)try{var r=(s=e.split(\",\"),a=[],s&&(0,u.tO)(s,(function(e){a.push((0,u.nd)(e));})),a);if(\"this-request-only\"===n)return r;for(var i=1e3*parseInt(n,10),o=0;o<r.length;++o)t[r[o]]=(0,u.m6)()+i;}catch(e){return []}var s,a;return []},e.isTenantKilled=function(e){var n=t,r=(0, u.nd)(e);return void 0!==n[r]&&n[r]>(0, u.m6)()||(delete n[r],!1)};}));}return e.__ieDyn=1,e}();var F=n(1550);function L(e){var t,n=Math.floor(1200*Math.random())+2400;return t=Math.pow(2,e)*n,Math.min(t,6e5)}var q,M=2e6,j=Math.min(M,65e3),U=/\\./,H=function(){function e(t,n,r,s){var a=\"baseData\",l=!!s,d=n,f={};(0, i.Z)(e,this,(function(e){function n(e,t,i,o,s,a,p){(0, u.rW)(e,(function(e,g){var h=null;if(g||(0, c.Sn)(g)){var m=i,v=e,y=s,C=t;if(l&&!o&&U.test(e)){var S=e.split(\".\"),T=S.length;if(T>1){y&&(y=y.slice());for(var b=0;b<T-1;b++){var _=S[b];C=C[_]=C[_]||{},m+=\".\"+_,y&&y.push(_);}v=S[T-1];}}var R=o&&function(e,t){var n=f[e];return void 0===n&&(e.length>=7&&(n=(0, u.xe)(e,\"ext.metadata\")||(0, u.xe)(e,\"ext.web\")),f[e]=n),n}(m);if(h=!R&&d&&d.handleField(m,v)?d.value(m,v,g,r):(0, c.yj)(v,g,r)){var D=h.value;if(C[v]=D,a&&a(y,v,h),p&&\"object\"==typeof D&&!(0, u.kJ)(D)){var w=y;w&&(w=w.slice()).push(v),n(g,D,m+\".\"+v,o,w,a,p);}}}}));}e.createPayload=function(e,t,n,r,i,o){return {apiKeys:[],payloadBlob:v,overflow:null,sizeExceed:[],failedEvts:[],batches:[],numEvents:0,retryCnt:e,isTeardown:t,isSync:n,isBeacon:r,sendType:o,sendReason:i}},e.appendPayload=function(n,r,i){var s=n&&r&&!n.overflow;return s&&(0, o.Lm)(t,(function(){return \"Serializer:appendPayload\"}),(function(){for(var t=r.events(),o=n.payloadBlob,s=n.numEvents,a=!1,c=[],l=[],d=n.isBeacon,f=d?65e3:3984588,p=d?j:M,g=0,h=0;g<t.length;){var m=t[g];if(m){if(s>=i){n.overflow=r.split(g);break}var v=e.getEventBlob(m);if(v&&v.length<=p){var y=v.length;if(o.length+y>f){n.overflow=r.split(g);break}o&&(o+=\"\\n\"),o+=v,++h>20&&(o.substr(0,1),h=0),a=!0,s++;}else v?c.push(m):l.push(m),t.splice(g,1),g--;}g++;}if(c&&c.length>0&&n.sizeExceed.push(O.create(r.iKey(),c)),l&&l.length>0&&n.failedEvts.push(O.create(r.iKey(),l)),a){n.batches.push(r),n.payloadBlob=o,n.numEvents=s;var C=r.iKey();-1===(0, u.UA)(n.apiKeys,C)&&n.apiKeys.push(C);}}),(function(){return {payload:n,theBatch:{iKey:r.iKey(),evts:r.events()},max:i}})),s},e.getEventBlob=function(e){try{return (0,o.Lm)(t,(function(){return \"Serializer.getEventBlob\"}),(function(){var t={};t.name=e.name,t.time=e.time,t.ver=e.ver,t.iKey=\"o:\"+(0,c.jM)(e.iKey);var r={},i=e.ext;i&&(t.ext=r,(0,u.rW)(i,(function(e,t){n(t,r[e]={},\"ext.\"+e,!0,null,null,!0);})));var o=t.data={};o.baseType=e.baseType;var s=o.baseData={};return n(e.baseData,s,a,!1,[a],(function(e,t,n){K(r,e,t,n);}),!0),n(e.data,o,\"data\",!1,[],(function(e,t,n){K(r,e,t,n);}),!0),JSON.stringify(t)}),(function(){return {item:e}}))}catch(e){return null}};}));}return e.__ieDyn=1,e}();function K(e,t,n,r){if(r&&e){var i=(0, c.Vv)(r.value,r.kind,r.propertyType);if(i>-1){var o=e.metadata;o||(o=e.metadata={f:{}});var s=o.f;if(s||(s=o.f={}),t)for(var a=0;a<t.length;a++){var l=t[a];s[l]||(s[l]={f:{}});var d=s[l].f;d||(d=s[l].f={}),s=d;}s=s[n]={},(0, u.kJ)(r.value)?s.a={t:i}:s.t=i;}}}var W=\"&NoResponseBody=true\",z=((q={})[1]=S,q[100]=S,q[200]=\"sent\",q[8004]=C,q[8003]=C,q),V={},B={};function $(e,t,n){V[e]=t,!1!==n&&(B[t]=e);}function G(e){try{return e.responseText}catch(e){}return v}function J(e,t){var n=!1;if(e&&t){var r=(0, u.FY)(e);if(r&&r.length>0)for(var i=t.toLowerCase(),o=0;o<r.length;o++){var s=r[o];if(s&&(0, u.nr)(t,s)&&s.toLowerCase()===i){n=!0;break}}}return n}function Y(e,t,n,r){t&&n&&n.length>0&&(r&&V[t]?(e.hdrs[V[t]]=n,e.useHdrs=!0):e.url+=\"&\"+t+\"=\"+n);}function Z(e,t){return t&&((0, u.hj)(t)?e=[t].concat(e):(0, u.kJ)(t)&&(e=t.concat(e))),e}$(P,P,!1),$(_,_),$(R,\"Client-Id\"),$(E,E),$(D,D),$(w,w),$(k,k);var X=function(){function e(t,n,r,s,a){this._responseHandlers=[];var d,p,g,h,m,S,P,k,x,N,O=\"?cors=true&\"+b.toLowerCase()+\"=\"+T,q=new A,M=!1,j=new I,U=!1,K=0,V=!0,$=[],X={},Q=[],ee=null,te=!1,ne=!1,re=!1;(0, i.Z)(e,this,(function(e){var i=!0;function I(e,t){for(var n=0,r=null,i=0;null==r&&i<e.length;)1===(n=e[i])?(0, l.cp)()?r=A:(0, l.Z3)()&&(r=oe):2===n&&(0, l.JO)(t)&&(!t||t&&!k)?r=ie:U&&3===n&&(0, l.MF)()&&(r=ae),i++;return r?{_transport:n,_isSync:t,sendPOST:r}:null}function A(e,t,n){var r=new XDomainRequest;r.open(y,e.urlString),e.timeout&&(r.timeout=e.timeout),r.onload=function(){var e=G(r);se(t,200,{},e),ye(e);},r.onerror=function(){se(t,400,{});},r.ontimeout=function(){se(t,500,{});},r.onprogress=function(){},n?r.send(e.data):a.set((function(){r.send(e.data);}),0);}function ie(e,t,n){var r,o=e.urlString,s=!1,c=!1,l=((r={body:e.data,method:y}).Microsoft_ApplicationInsights_BypassAjaxInstrumentation=!0,r);n&&(l.keepalive=!0,2===e._sendReason&&(s=!0,N&&(o+=W))),i&&(l.credentials=\"include\"),e.headers&&(0, u.FY)(e.headers).length>0&&(l.headers=e.headers),fetch(o,l).then((function(e){var n={},r=v,i=e.headers;i&&i.forEach((function(e,t){n[t]=e;})),e.body&&e.text().then((function(e){r=e;})),c||(c=!0,se(t,e.status,n,r),ye(r));})).catch((function(e){c||(c=!0,se(t,0,{}));})),s&&!c&&(c=!0,se(t,200,{})),!c&&e.timeout>0&&a.set((function(){c||(c=!0,se(t,500,{}));}),e.timeout);}function oe(e,t,n){var r=e.urlString;function o(e,t,n){if(!e[n]&&t&&t.getResponseHeader){var r=t.getResponseHeader(n);r&&(e[n]=(0, u.nd)(r));}return e}function s(e,n){se(t,e.status,function(e){var t={};return e.getAllResponseHeaders?t=function(e){var t={};if((0, u.HD)(e)){var n=(0, u.nd)(e).split(/[\\r\\n]+/);(0, u.tO)(n,(function(e){if(e){var n=e.indexOf(\": \");if(-1!==n){var r=(0, u.nd)(e.substring(0,n)).toLowerCase(),i=(0, u.nd)(e.substring(n+1));t[r]=i;}else t[(0, u.nd)(e)]=1;}}));}return t}(e.getAllResponseHeaders()):(t=o(t,e,\"time-delta-millis\"),t=o(t,e,\"kill-duration\"),t=o(t,e,\"kill-duration-seconds\")),t}(e),n);}n&&e.disableXhrSync&&(n=!1);var a=(0, c.ot)(y,r,i,!0,n,e.timeout);(0, u.rW)(e.headers,(function(e,t){a.setRequestHeader(e,t);})),a.onload=function(){var e=G(a);s(a,e),ye(e);},a.onerror=function(){s(a);},a.ontimeout=function(){s(a);},a.send(e.data);}function se(e,t,n,r){try{e(t,n,r);}catch(e){(0, f.kP)(p,2,518,(0, l.eU)(e));}}function ae(e,t,n){var r=200,i=e._thePayload,o=e.urlString+(N?W:v);try{var s=(0,l.jW)();if(!s.sendBeacon(o,e.data))if(i){var a=[];(0,u.tO)(i.batches,(function(e){if(a&&e&&e.count()>0){for(var t=e.events(),n=0;n<t.length;n++)if(!s.sendBeacon(o,ee.getEventBlob(t[n]))){a.push(e.split(n));break}}else a.push(e.split(0));})),Ce(a,8003,i.sendType,!0);}else r=0;}catch(e){(0, f.jV)(p,\"Failed to send telemetry using sendBeacon API. Ex:\"+(0, l.eU)(e)),r=0;}finally{se(t,r,{},v);}}function ce(e){return 2===e||3===e}function ue(e){return ne&&ce(e)&&(e=2),e}function le(){return !M&&K<n}function de(){var e=Q;return Q=[],e}function fe(e,t,n){var r=!1;return e&&e.length>0&&!M&&g[t]&&ee&&(r=0!==t||le()&&(n>0||j.allowRequestSending())),r}function pe(e){var t={};return e&&(0, u.tO)(e,(function(e,n){t[n]={iKey:e.iKey(),evts:e.events()};})),t}function ge(e,n,r,i,s){if(e&&0!==e.length)if(M)Ce(e,1,i);else {i=ue(i);try{var a=e,u=0!==i;(0,o.Lm)(h,(function(){return \"HttpManager:_sendBatches\"}),(function(o){o&&(e=e.slice(0));for(var a=[],l=null,d=(0,c.hK)(),f=g[i]||(u?g[1]:g[0]),p=f&&f._transport,h=x&&(ne||ce(i)||3===p||f._isSync&&2===p);fe(e,i,n);){var m=e.shift();m&&m.count()>0&&(q.isTenantKilled(m.iKey())?a.push(m):(l=l||ee.createPayload(n,r,u,h,s,i),ee.appendPayload(l,m,t)?null!==l.overflow&&(e=[l.overflow].concat(e),l.overflow=null,me(l,d,(0,c.hK)(),s),d=(0,c.hK)(),l=null):(me(l,d,(0,c.hK)(),s),d=(0,c.hK)(),e=[m].concat(e),l=null)));}l&&me(l,d,(0,c.hK)(),s),e.length>0&&(Q=e.concat(Q)),Ce(a,8004,i);}),(function(){return {batches:pe(a),retryCount:n,isTeardown:r,isSynchronous:u,sendReason:s,useSendBeacon:ce(i),sendType:i}}),!u);}catch(e){(0, f.kP)(p,2,48,\"Unexpected Exception sending batch: \"+(0, l.eU)(e));}}}function he(e,t,n){e[t]=e[t]||{},e[t][d.identifier]=n;}function me(t,n,i,s){if(t&&t.payloadBlob&&t.payloadBlob.length>0){var a=!!e.sendHook,m=g[t.sendType];!ce(t.sendType)&&t.isBeacon&&2===t.sendReason&&(m=g[2]||g[3]||m);var y=re;(t.isBeacon||3===m._transport)&&(y=!1);var C=function(e,t){var n={url:O,hdrs:{},useHdrs:!1};t?(n.hdrs=(0, c.l7)(n.hdrs,X),n.useHdrs=(0, u.FY)(n.hdrs).length>0):(0, u.rW)(X,(function(e,t){B[e]?Y(n,B[e],t,!1):(n.hdrs[e]=t,n.useHdrs=!0);})),Y(n,R,\"NO_AUTH\",t),Y(n,_,c.vs,t);var r=v;(0, u.tO)(e.apiKeys,(function(e){r.length>0&&(r+=\",\"),r+=e;})),Y(n,E,r,t),Y(n,w,(0, u.m6)().toString(),t);var i=function(e){for(var t=0;t<e.batches.length;t++){var n=e.batches[t].Msfpc();if(n)return encodeURIComponent(n)}return v}(e);if((0, c.Sn)(i)&&(n.url+=\"&ext.intweb.msfpc=\"+i),j.shouldAddClockSkewHeaders()&&Y(n,D,j.getClockSkewHeaderValue(),t),h.getWParam){var o=h.getWParam();o>=0&&(n.url+=\"&w=\"+o);}for(var s=0;s<$.length;s++)n.url+=\"&\"+$[s].name+\"=\"+$[s].value;return n}(t,y);y=y||C.useHdrs;var x=(0, c.hK)();(0, o.Lm)(h,(function(){return \"HttpManager:_doPayloadSend\"}),(function(){for(var g=0;g<t.batches.length;g++)for(var v=t.batches[g].events(),_=0;_<v.length;_++){var R=v[_];if(te){var D=R.timings=R.timings||{};he(D,\"sendEventStart\",x),he(D,\"serializationStart\",n),he(D,\"serializationCompleted\",i);}R.sendAttempt>0?R.sendAttempt++:R.sendAttempt=1;}Ce(t.batches,1e3+(s||0),t.sendType,!0);var w={data:t.payloadBlob,urlString:C.url,headers:C.hdrs,_thePayload:t,_sendReason:s,timeout:S,disableXhrSync:P,disableFetchKeepAlive:k};y&&(J(w.headers,\"cache-control\")||(w.headers[\"cache-control\"]=\"no-cache, no-store\"),J(w.headers,b)||(w.headers[\"content-type\"]=T));var E=null;m&&(E=function(n){j.firstRequestSent();var i=function(n,i){!function(t,n,i,o){var s,a=9e3,l=null,f=!1,p=!1;try{var g=!0;if(typeof t!==F.jA){if(n){j.setClockSkew(n[\"time-delta-millis\"]);var h=n[\"kill-duration\"]||n[\"kill-duration-seconds\"];(0,u.tO)(q.setKillSwitchTenants(n[\"kill-tokens\"],h),(function(e){(0,u.tO)(i.batches,(function(t){if(t.iKey()===e){l=l||[];var n=t.split(0);i.numEvents-=n.count(),l.push(n);}}));}));}if(200==t||204==t)return void(a=200);((s=t)>=300&&s<500&&408!=s&&429!=s||501==s||505==s||i.numEvents<=0)&&(g=!1),a=9e3+t%1e3;}if(g){a=100;var m=i.retryCnt;0===i.sendType&&(m<r?(f=!0,ve((function(){0===i.sendType&&K--,ge(i.batches,m+1,i.isTeardown,ne?2:i.sendType,5);}),ne,L(m))):(p=!0,ne&&(a=8001)));}}finally{f||(j.setClockSkew(),function(t,n,r,i){try{i&&d._backOffTransmission(),200===n&&(i||t.isSync||d._clearBackOff(),function(e){if(te){var t=(0,c.hK)();(0,u.tO)(e,(function(e){e&&e.count()>0&&function(e,t){te&&(0,u.tO)(e,(function(e){he(e.timings=e.timings||{},\"sendEventCompleted\",t);}));}(e.events(),t);}));}}(t.batches)),Ce(t.batches,n,t.sendType,!0);}finally{0===t.sendType&&(K--,5!==r&&e.sendQueuedRequests(t.sendType,r));}}(i,a,o,p)),Ce(l,8004,i.sendType);}}(n,i,t,s);},o=t.isTeardown||t.isSync;try{m.sendPOST(n,i,o),e.sendListener&&e.sendListener(w,n,o,t.isBeacon);}catch(e){(0, f.jV)(p,\"Unexpected exception sending payload. Ex:\"+(0, l.eU)(e)),se(i,0,{});}}),(0, o.Lm)(h,(function(){return \"HttpManager:_doPayloadSend.sender\"}),(function(){if(E)if(0===t.sendType&&K++,a&&!t.isBeacon&&3!==m._transport){var n={data:w.data,urlString:w.urlString,headers:(0, c.l7)({},w.headers),timeout:w.timeout,disableXhrSync:w.disableXhrSync,disableFetchKeepAlive:w.disableFetchKeepAlive},r=!1;(0, o.Lm)(h,(function(){return \"HttpManager:_doPayloadSend.sendHook\"}),(function(){try{e.sendHook(n,(function(e){r=!0,V||e._thePayload||(e._thePayload=e._thePayload||w._thePayload,e._sendReason=e._sendReason||w._sendReason),E(e);}),t.isSync||t.isTeardown);}catch(e){r||E(w);}}));}else E(w);}));}),(function(){return {thePayload:t,serializationStart:n,serializationCompleted:i,sendReason:s}}),t.isSync);}t.sizeExceed&&t.sizeExceed.length>0&&Ce(t.sizeExceed,8003,t.sendType),t.failedEvts&&t.failedEvts.length>0&&Ce(t.failedEvts,8002,t.sendType);}function ve(e,t,n){t?e():a.set(e,n);}function ye(t){var n=e._responseHandlers;try{for(var r=0;r<n.length;r++)try{n[r](t);}catch(e){(0,f.kP)(p,1,519,\"Response handler failed: \"+e);}if(t){var i=JSON.parse(t);(0,c.Sn)(i.webResult)&&(0,c.Sn)(i.webResult.msfpc)&&m.set(\"MSFPC\",i.webResult.msfpc,31536e3);}}catch(e){}}function Ce(e,t,n,r){if(e&&e.length>0&&s){var i=s[(u=t,l=z[u],(0, c.Sn)(l)||(l=\"oth\",u>=9e3&&u<=9999?l=\"rspFail\":u>=8e3&&u<=8999?l=C:u>=1e3&&u<=1999&&(l=\"send\")),l)];if(i){var a=0!==n;(0, o.Lm)(h,(function(){return \"HttpManager:_sendBatchesNotification\"}),(function(){ve((function(){try{i.call(s,e,t,a,n);}catch(e){(0, f.kP)(p,1,74,\"send request notification failed: \"+e);}}),r||a,0);}),(function(){return {batches:pe(e),reason:t,isSync:a,sendSync:r,sendType:n}}),!a);}}var u,l;}e.initialize=function(e,t,n,r,o){var s;o||(o={}),O=e+O,re=!!(0, u.o8)(o.avoidOptions)||!o.avoidOptions,h=t,m=t.getCookieMgr(),te=!h.config.disableEventTimings;var a=!!h.config.enableCompoundKey;p=(d=n).diagLog();var c=o.valueSanitizer,v=o.stringifyObjects;(0, u.o8)(o.enableCompoundKey)||(a=!!o.enableCompoundKey),S=o.xhrTimeout,P=!!o.disableXhrSync,k=!!o.disableFetchKeepAlive,N=!1!==o.addNoResponse,U=!(0, l.b$)(),ee=new H(h,c,v,a),(0, u.le)(o.useSendBeacon)||(U=!!o.useSendBeacon);var y=r,C=o.alwaysUseXhrOverride?r:null,T=o.alwaysUseXhrOverride?r:null,b=[3,2];if(!r){V=!1;var _=(0, l.k$)();_&&_.protocol&&\"file:\"===_.protocol.toLowerCase()&&(i=!1);var R=[];(0, l.b$)()?(R=[2,1],b=[2,1,3]):R=[1,2,3],(r=I(R=Z(R,o.transports),!1))||(0, f.jV)(p,\"No available transport to send events\"),y=I(R,!0);}C||(C=I(b=Z(b,o.unloadTransports),!0)),x=!V&&(U&&(0, l.MF)()||!k&&(0, l.JO)(!0)),(s={})[0]=r,s[1]=y||I([1,2,3],!0),s[2]=C||y||I([1],!0),s[3]=T||I([2,3],!0)||y||I([1],!0),g=s;},e._getDbgPlgTargets=function(){return [g[0],q,ee,g]},e.addQueryStringParameter=function(e,t){for(var n=0;n<$.length;n++)if($[n].name===e)return void($[n].value=t);$.push({name:e,value:t});},e.addHeader=function(e,t){X[e]=t;},e.canSendRequest=function(){return le()&&j.allowRequestSending()},e.sendQueuedRequests=function(e,t){(0, u.o8)(e)&&(e=0),ne&&(e=ue(e),t=2),fe(Q,e,0)&&ge(de(),0,!1,e,t||0);},e.isCompletelyIdle=function(){return !M&&0===K&&0===Q.length},e.setUnloading=function(e){ne=e;},e.addBatch=function(e){if(e&&e.count()>0){if(q.isTenantKilled(e.iKey()))return !1;Q.push(e);}return !0},e.teardown=function(){Q.length>0&&ge(de(),0,!0,2,2);},e.pause=function(){M=!0;},e.resume=function(){M=!1,e.sendQueuedRequests(0,4);},e.sendSynchronousBatch=function(e,t,n){e&&e.count()>0&&((0, u.le)(t)&&(t=1),ne&&(t=ue(t),n=2),ge([e],0,!1,t,n||0));};}));}return e.__ieDyn=1,e}();function Q(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout(e,t,n)}function ee(e){clearTimeout(e);}function te(e,t){return {set:e||Q,clear:t||ee}}var ne=\"eventsDiscarded\";const re=function(e){function t(){var n,r=e.call(this)||this;r.identifier=\"PostChannel\",r.priority=1011,r.version=\"3.2.9\";var p,v,y,C,S,T,b,_=!1,R=[],D=null,w=!1,E=0,k=500,x=0,N=1e4,I={},A=g,F=null,q=null,M=0,j=0,U={},H=-1,K=!0,W=!1,z=6,V=2;return (0, i.Z)(t,r,(function(e,t){function r(e){\"beforeunload\"!==(e||(0, l.Jj)().event).type&&(W=!0,v.setUnloading(W)),ee(2,2);}function i(e){W=!1,v.setUnloading(W);}function B(e,t){if(e.sendAttempt||(e.sendAttempt=0),e.latency||(e.latency=1),e.ext&&e.ext.trace&&delete e.ext.trace,e.ext&&e.ext.user&&e.ext.user.id&&delete e.ext.user.id,K&&(c.if,e.ext=(0, u.Ax)(e.ext),e.baseData&&(e.baseData=(0, u.Ax)(e.baseData)),e.data&&(e.data=(0, u.Ax)(e.data))),e.sync)if(M||w)e.latency=3,e.sync=!1;else if(v)return K&&(e=(0, u.Ax)(e)),void v.sendSynchronousBatch(O.create(e.iKey,[e]),!0===e.sync?1:e.sync,3);var n=e.latency,r=x,i=N;4===n&&(r=E,i=k);var o=!1;if(r<i)o=!oe(e,t);else {var s=1,a=20;4===n&&(s=4,a=1),o=!0,function(e,t,n,r){for(;n<=t;){var i=re(e,t,!0);if(i&&i.count()>0){var o=i.split(0,r),s=o.count();if(s>0)return 4===n?E-=s:x-=s,ge(ne,[o],d.h.QueueFull),!0}n++;}return se(),!1}(e.iKey,e.latency,s,a)&&(o=!oe(e,t));}o&&pe(ne,[e],d.h.QueueFull);}function $(e,t,n){var r=ae(e,t,n);return v.sendQueuedRequests(t,n),r}function G(){return x>0}function J(){if(H>=0&&ae(H,0,S)&&v.sendQueuedRequests(0,S),E>0&&!q&&!w){var e=I[A][2];e>=0&&(q=Z((function(){q=null,$(4,0,1),J();}),e));}var t=I[A][1];!F&&!D&&t>=0&&!w&&(G()?F=Z((function(){F=null,$(0===j?3:1,0,1),j++,j%=2,J();}),t):j=0);}function Y(){n=null,_=!1,R=[],D=null,w=!1,E=0,k=500,x=0,N=1e4,I={},A=g,F=null,q=null,M=0,j=0,p=null,U={},y=void 0,C=0,H=-1,S=null,K=!0,W=!1,z=6,V=2,T=null,b=te(),v=new X(500,2,1,{requeue:de,send:he,sent:me,drop:ve,rspFail:ye,oth:Ce},b),le(),U[4]={batches:[],iKeyMap:{}},U[3]={batches:[],iKeyMap:{}},U[2]={batches:[],iKeyMap:{}},U[1]={batches:[],iKeyMap:{}},Se();}function Z(e,t){0===t&&M&&(t=1);var n=1e3;return M&&(n=L(M-1)),b.set(e,t*n)}function Q(){return null!==F&&(b.clear(F),F=null,j=0,!0)}function ee(e,t){Q(),D&&(b.clear(D),D=null),w||$(1,e,t);}function re(e,t,n){var r=U[t];r||(r=U[t=1]);var i=r.iKeyMap[e];return !i&&n&&(i=O.create(e),r.batches.push(i),r.iKeyMap[e]=i),i}function ie(t,n){v.canSendRequest()&&!M&&(y>0&&x>y&&(n=!0),n&&null==D&&e.flush(t,null,20));}function oe(e,t){K&&(e=(0, u.Ax)(e));var n=e.latency,r=re(e.iKey,n,!0);return !!r.addEvent(e)&&(4!==n?(x++,t&&0===e.sendAttempt&&ie(!e.sync,C>0&&r.count()>=C)):E++,!0)}function se(){for(var e=0,t=0,n=function(n){var r=U[n];r&&r.batches&&(0, u.tO)(r.batches,(function(r){4===n?e+=r.count():t+=r.count();}));},r=1;r<=4;r++)n(r);x=t,E=e;}function ae(t,n,r){var i=!1,s=0===n;return !s||v.canSendRequest()?(0, o.Lm)(e.core,(function(){return \"PostChannel._queueBatches\"}),(function(){for(var e=[],n=4;n>=t;){var r=U[n];r&&r.batches&&r.batches.length>0&&((0, u.tO)(r.batches,(function(t){v.addBatch(t)?i=i||t&&t.count()>0:e=e.concat(t.events()),4===n?E-=t.count():x-=t.count();})),r.batches=[],r.iKeyMap={}),n--;}e.length>0&&pe(ne,e,d.h.KillSwitch),i&&H>=t&&(H=-1,S=0);}),(function(){return {latency:t,sendType:n,sendReason:r}}),!s):(H=H>=0?Math.min(H,t):t,S=Math.max(S,r)),i}function ce(e,t){$(1,0,t),se(),ue((function(){e&&e(),R.length>0?D=Z((function(){D=null,ce(R.shift(),t);}),0):(D=null,J());}));}function ue(e){v.isCompletelyIdle()?e():D=Z((function(){D=null,ue(e);}),.25);}function le(){(I={})[g]=[2,1,0],I[h]=[6,3,0],I[m]=[18,9,0];}function de(t,n){var r=[],i=z;W&&(i=V),(0, u.tO)(t,(function(t){t&&t.count()>0&&(0, u.tO)(t.events(),(function(t){t&&(t.sync&&(t.latency=4,t.sync=!1),t.sendAttempt<i?((0, c.if)(t,e.identifier),B(t,!1)):r.push(t));}));})),r.length>0&&pe(ne,r,d.h.NonRetryableStatus),W&&ee(2,2);}function fe(t,n){var r=e._notificationManager||{},i=r[t];if(i)try{i.apply(r,n);}catch(n){(0, f.kP)(e.diagLog(),1,74,t+\" notification failed: \"+n);}}function pe(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t&&t.length>0&&fe(e,[t].concat(n));}function ge(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t&&t.length>0&&(0, u.tO)(t,(function(t){t&&t.count()>0&&fe(e,[t.events()].concat(n));}));}function he(e,t,n){e&&e.length>0&&fe(\"eventsSendRequest\",[t>=1e3&&t<=1999?t-1e3:0,!0!==n]);}function me(e,t){ge(\"eventsSent\",e,t),J();}function ve(e,t){ge(ne,e,t>=8e3&&t<=8999?t-8e3:d.h.Unknown);}function ye(e){ge(ne,e,d.h.NonRetryableStatus),J();}function Ce(e,t){ge(ne,e,d.h.Unknown),J();}function Se(){C=n&&n.disableAutoBatchFlushLimit?0:Math.max(1500,N/6);}Y(),e._getDbgPlgTargets=function(){return [v]},e.initialize=function(l,d,f){(0, o.Lm)(d,(function(){return \"PostChannel:initialize\"}),(function(){var o=d;t.initialize(l,d,f);try{d.addUnloadCb,T=(0,s.jU)((0,a.J)(e.identifier),d.evtNamespace&&d.evtNamespace());var g=e._getTelCtx();l.extensionConfig[e.identifier]=l.extensionConfig[e.identifier]||{},n=g.getExtCfg(e.identifier),b=te(n.setTimeoutOverride,n.clearTimeoutOverride),K=!n.disableOptimizeObj&&(0,c.mJ)(),function(e){var t=e.getWParam;e.getWParam=function(){var e=0;return n.ignoreMc1Ms0CookieProcessing&&(e|=2),e|t()};}(o),n.eventsLimitInMem>0&&(N=n.eventsLimitInMem),n.immediateEventLimit>0&&(k=n.immediateEventLimit),n.autoFlushEventsLimit>0&&(y=n.autoFlushEventsLimit),(0,u.hj)(n.maxEventRetryAttempts)&&(z=n.maxEventRetryAttempts),(0,u.hj)(n.maxUnloadEventRetryAttempts)&&(V=n.maxUnloadEventRetryAttempts),Se(),n.httpXHROverride&&n.httpXHROverride.sendPOST&&(p=n.httpXHROverride),(0,c.Sn)(l.anonCookieName)&&v.addQueryStringParameter(\"anoncknm\",l.anonCookieName),v.sendHook=n.payloadPreprocessor,v.sendListener=n.payloadListener;var h=n.overrideEndpointUrl?n.overrideEndpointUrl:l.endpointUrl;e._notificationManager=d.getNotifyMgr(),v.initialize(h,e.core,e,p,n);var m=l.disablePageUnloadEvents||[];(0,s.c9)(r,m,T),(0,s.TJ)(r,m,T),(0,s.nD)(i,l.disablePageShowEvents,T);}catch(t){throw e.setInitialized(!1),t}}),(function(){return {coreConfig:l,core:d,extensions:f}}));},e.processTelemetry=function(t,r){(0, c.if)(t,e.identifier);var i=(r=e._getTelCtx(r)).getExtCfg(e.identifier),o=!!n.disableTelemetry;i&&(o=o||!!i.disableTelemetry);var s=t;o||_||(n.overrideInstrumentationKey&&(s.iKey=n.overrideInstrumentationKey),i&&i.overrideInstrumentationKey&&(s.iKey=i.overrideInstrumentationKey),B(s,!0),W?ee(2,2):J()),e.processNext(s,r);},e._doTeardown=function(e,t){ee(2,2),_=!0,v.teardown(),(0, s.JA)(null,T),(0, s.C9)(null,T),(0, s.Yl)(null,T),Y();},e.setEventQueueLimits=function(e,t){N=e>0?e:1e4,y=t>0?t:0,Se();var n=x>e;if(!n&&C>0)for(var r=1;!n&&r<=3;r++){var i=U[r];i&&i.batches&&(0, u.tO)(i.batches,(function(e){e&&e.count()>=C&&(n=!0);}));}ie(!0,n);},e.pause=function(){Q(),w=!0,v.pause();},e.resume=function(){w=!1,v.resume(),J();},e.addResponseHandler=function(e){v._responseHandlers.push(e);},e._loadTransmitProfiles=function(e){Q(),le(),A=g,J(),(0, u.rW)(e,(function(e,t){var n=t.length;if(n>=2){var r=n>2?t[2]:0;if(t.splice(0,n-2),t[1]<0&&(t[0]=-1),t[1]>0&&t[0]>0){var i=t[0]/t[1];t[0]=Math.ceil(i)*t[1];}r>=0&&t[1]>=0&&r>t[1]&&(r=t[1]),t.push(r),I[e]=t;}}));},e.flush=function(e,t,n){if(void 0===e&&(e=!0),!w)if(n=n||1,e)null==D?(Q(),ae(1,0,n),D=Z((function(){D=null,ce(t,n);}),0)):R.push(t);else {var r=Q();$(1,1,n),null!=t&&t(),r&&J();}},e.setMsaAuthTicket=function(e){v.addHeader(P,e);},e.hasEvents=G,e._setTransmitProfile=function(e){A!==e&&void 0!==I[e]&&(Q(),A=e,J());},e._backOffTransmission=function(){M<4&&(M++,Q(),J());},e._clearBackOff=function(){M&&(M=0,Q(),J());},(0, u.l_)(e,\"_setTimeoutOverride\",(function(){return b.set}),(function(e){b=te(e,b.clear);})),(0, u.l_)(e,\"_clearTimeoutOverride\",(function(){return b.clear}),(function(e){b=te(b.set,e);}));})),r}return (0, r.ne)(t,e),t.__ieDyn=1,t}(p.i);},951:(e,t,n)=>{n.d(t,{By:()=>i});var r=n(4869);function i(e){var t={};return (0, r.rW)(e,(function(e,n){t[e]=n,t[n]=e;})),(0, r._A)(t)}},8452:(e,t,n)=>{n.d(t,{h:()=>r});var r=(0, n(951).By)({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5});},7951:(e,t,n)=>{n.d(t,{i:()=>u});var r=n(9141),i=n(8145),o=n(4869),s=n(6335),a=n(1030),c=n(8593),u=function(){function e(){var t,n,u,l,d,f=this;function p(e){void 0===e&&(e=null);var t=e;if(!t){var r=n||(0, a.CD)(null,{},f[s.oV]);t=u&&u.getPlugin?r[i.zV](null,u.getPlugin):r[i.zV](null,u);}return t}function g(e,t,r){e&&(0, o.sO)(e,s.Zh,[],null,o.le),!r&&t&&(r=t[i.SD]()[i.W2]());var c=u;u&&u.getPlugin&&(c=u.getPlugin()),f[s.oV]=t,n=(0, a.CD)(r,e,t,c);}function h(){t=!1,f[s.oV]=null,n=null,u=null,d=[],l=(0, c.Y)();}h(),(0, r.Z)(e,f,(function(e){e[i.VL]=function(e,n,r,i){g(e,n,i),t=!0;},e[i.fi]=function(t,n){var r,c=e[s.oV];if(c&&(!t||c===t[s.oV]())){var f,p=!1,g=t||(0, a.Bt)(null,c,u&&u.getPlugin?u.getPlugin():u),m=n||((r={reason:0})[i.d]=!1,r);return e[i.F3]&&!0===e[i.F3](g,m,v)?f=!0:v(),f}function v(){if(!p){p=!0,l.run(g,n);var e=d;d=[],(0, o.tO)(e,(function(e){e.rm();})),!0===f&&g[i.uL](m),h();}}},e[i.Tu]=function(t,n){var r=e[s.oV];if(r&&(!t||r===t[s.oV]())){var o,c=!1,l=t||(0, a.xy)(null,r,u&&u.getPlugin?u.getPlugin():u),d=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(l,d,f)?o=!0:f(),o}function f(){c||(c=!0,g(l.getCfg(),l.core(),l[i.W2]()));}},e._addHook=function(e){e&&((0, o.kJ)(e)?d=d.concat(e):d[i.MW](e));},(0, o.Oi)(e,\"_addUnloadCb\",(function(){return l}),\"add\");})),f[i.mc]=function(e){return p(e)[i.mc]()},f[i.yl]=function(){return t},f.setInitialized=function(e){t=e;},f[i.Jd]=function(e){u=e;},f[i.uL]=function(e,t){t?t[i.uL](e):u&&(0, o.mf)(u[s.hL])&&u[s.hL](e,null);},f._getTelCtx=p;}return e.__ieDyn=1,e}();},8140:(e,t,n)=>{n.d(t,{JP:()=>C,Nz:()=>S,UY:()=>E,kj:()=>m,p7:()=>T});var r=n(8145),i=n(9339),o=n(9251),s=n(4869),a=n(6335),c=\"toGMTString\",u=\"toUTCString\",l=null,d=null,f=null,p=(0, o.Me)(),g={},h={};function m(e,t){var n=S._ckMgr||h._ckMgr;return n||(n=S._ckMgr=S(e,t),h._ckMgr=n),n}function v(e){return !e||e.isEnabled()}function y(e,t){return !!(t&&e&&(0, s.kJ)(e.ignoreCookies))&&-1!==e.ignoreCookies[r.ou](t)}function C(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var i=t[r.Lk];n=i._ckMgr?i._ckMgr:S(t);}return n||(n=m(t,(e||{})[r.eZ])),n}function S(e,t){var n,i=function(e){var t=e[r.Lk]=e[r.Lk]||{};if((0, s.sO)(t,\"domain\",e.cookieDomain,s.BX,s.le),(0, s.sO)(t,\"path\",e.cookiePath||\"/\",null,s.le),(0, s.le)(t.enabled)){var n=void 0;(0, s.o8)(e.isCookieUseDisabled)||(n=!e.isCookieUseDisabled),(0, s.o8)(e.disableCookiesUsage)||(n=!e.disableCookiesUsage),t.enabled=n;}return t}(e||h),l=i.path||\"/\",f=i.domain,p=!1!==i.enabled,g=((n={isEnabled:function(){var e=p&&T(t),n=h._ckMgr;return e&&n&&g!==n&&(e=v(n)),e}})[r.$h]=function(e){p=!1!==e;},n.set=function(e,t,n,p,h){var m=!1;if(v(g)&&!function(e,t){return !!(t&&e&&(0, s.kJ)(e.blockedCookies)&&-1!==e.blockedCookies[r.ou](t))||y(e,t)}(i,e)){var C={},S=(0, s.nd)(t||a.qS),T=S[r.ou](\";\");if(-1!==T&&(S=(0, s.nd)(t[r.zc](0,T)),C=b(t[r.zc](T+1))),(0, s.sO)(C,\"domain\",p||f,s.fQ,s.o8),!(0, s.le)(n)){var D=(0, o.w1)();if((0, s.o8)(C.expires)){var P=(0, s.m6)()+1e3*n;if(P>0){var k=new Date;k.setTime(P),(0, s.sO)(C,\"expires\",_(k,D?c:u)||_(k,D?c:u)||a.qS,s.fQ);}}D||(0, s.sO)(C,\"max-age\",a.qS+n,null,s.o8);}var x=(0, o.k$)();x&&\"https:\"===x.protocol&&((0, s.sO)(C,\"secure\",null,null,s.o8),null===d&&(d=!E(((0, o.jW)()||{})[r.qV])),d&&(0, s.sO)(C,\"SameSite\",\"None\",null,s.o8)),(0, s.sO)(C,\"path\",h||l,null,s.o8),(i.setCookie||w)(e,R(S,C)),m=!0;}return m},n.get=function(e){var t=a.qS;return v(g)&&!y(i,e)&&(t=(i.getCookie||D)(e)),t},n.del=function(e,t){var n=!1;return v(g)&&(n=g.purge(e,t)),n},n.purge=function(e,n){var r,s=!1;if(T(t)){var c=((r={}).path=n||\"/\",r.expires=\"Thu, 01 Jan 1970 00:00:01 GMT\",r);(0, o.w1)()||(c[\"max-age\"]=\"0\"),(i.delCookie||w)(e,R(a.qS,c)),s=!0;}return s},n);return g._ckMgr=g,g}function T(e){if(null===l){l=!1;try{l=void 0!==(p||{}).cookie;}catch(t){(0, i.kP)(e,2,68,\"Cannot access document.cookie - \"+(0, s.jj)(t),{exception:(0, o.eU)(t)});}}return l}function b(e){var t={};if(e&&e[r.R5]){var n=(0, s.nd)(e)[r.w6](\";\");(0, s.tO)(n,(function(e){if(e=(0, s.nd)(e||a.qS)){var n=e[r.ou](\"=\");-1===n?t[e]=null:t[(0, s.nd)(e[r.zc](0,n))]=(0, s.nd)(e[r.zc](n+1));}}));}return t}function _(e,t){return (0, s.mf)(e[t])?e[t]():null}function R(e,t){var n=e||a.qS;return (0, s.rW)(t,(function(e,t){n+=\"; \"+e+((0, s.le)(t)?a.qS:\"=\"+t);})),n}function D(e){var t=a.qS;if(p){var n=p.cookie||a.qS;f!==n&&(g=b(n),f=n),t=(0, s.nd)(g[e]||a.qS);}return t}function w(e,t){p&&(p.cookie=e+\"=\"+t);}function E(e){return !(!(0, s.HD)(e)||!(0, s._Q)(e,\"CPU iPhone OS 12\")&&!(0, s._Q)(e,\"iPad; CPU OS 12\")&&!((0, s._Q)(e,\"Macintosh; Intel Mac OS X 10_14\")&&(0, s._Q)(e,\"Version/\")&&(0, s._Q)(e,\"Safari\"))&&(!(0, s._Q)(e,\"Macintosh; Intel Mac OS X 10_14\")||!(0, s.Id)(e,\"AppleWebKit/605.1.15 (KHTML, like Gecko)\"))&&!(0, s._Q)(e,\"Chrome/5\")&&!(0, s._Q)(e,\"Chrome/6\")&&(!(0, s._Q)(e,\"UnrealEngine\")||(0, s._Q)(e,\"Chrome\"))&&!(0, s._Q)(e,\"UCBrowser/12\")&&!(0, s._Q)(e,\"UCBrowser/11\"))}},8956:(e,t,n)=>{n.d(t,{DO:()=>h,GW:()=>p,Jj:()=>g,zB:()=>v});var r,i=n(175),o=n(8145),s=n(8140),a=n(9251),c=n(7954),u=n(4869),l=n(6335),d=n(9406),f=null;function p(){var e=h();return e[o.zc](0,8)+\"-\"+e[o.zc](8,12)+\"-\"+e[o.zc](12,16)+\"-\"+e[o.zc](16,20)+\"-\"+e[o.zc](20)}function g(){var e=(0, a.r)();return e&&e.now?e.now():(0, u.m6)()}function h(){for(var e,t=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\"],n=l.qS,r=0;r<4;r++)n+=t[15&(e=(0, d._l)())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var i=t[8+(3&(0, d._l)())|0];return n[o.Jn](0,8)+n[o.Jn](9,4)+\"4\"+n[o.Jn](13,3)+i+n[o.Jn](16,3)+n[o.Jn](19,12)}var m={_canUseCookies:void 0,isTypeof:u.Ym,isUndefined:u.o8,isNullOrUndefined:u.le,hasOwnProperty:u.nr,isFunction:u.mf,isObject:u.Kn,isDate:u.J_,isArray:u.kJ,isError:u.VZ,isString:u.HD,isNumber:u.hj,isBoolean:u.jn,toISOString:u.Y6,arrForEach:u.tO,arrIndexOf:u.UA,arrMap:u.Mr,arrReduce:u.Xz,strTrim:u.nd,objCreate:i.pu,objKeys:u.FY,objDefineAccessors:u.l_,addEventHandler:c.Ib,dateNow:u.m6,isIE:a.w1,disableCookies:function(){var e,t,n,i;(n=(0, s.kj)(e,t),i=m._canUseCookies,null===f&&(f=[],r=i,(0, u.l_)(m,\"_canUseCookies\",(function(){return r}),(function(e){r=e,(0, u.tO)(f,(function(t){t[o.$h](e);}));}))),-1===(0, u.UA)(f,n)&&f[o.MW](n),(0, u.jn)(i)&&n[o.$h](i),(0, u.jn)(r)&&n[o.$h](r),n)[o.$h](!1);},newGuid:p,perfNow:g,newId:d.pZ,randomValue:d.az,random32:d._l,mwcRandomSeed:d.CN,mwcRandom32:d.F6,generateW3CId:h},v={Attach:c.pZ,AttachEvent:c.pZ,Detach:c.pD,DetachEvent:c.pD};},7624:(e,t,n)=>{n.d(t,{J:()=>f,K:()=>p});var r=n(1550),i=n(8145),o=n(4869),s=n(6335),a=n(9406),c=r.RJ,u=\".\"+(0, a.pZ)(6),l=0;function d(e){return 1===e[i.xv]||9===e[i.xv]||!+e[i.xv]}function f(e,t){return void 0===t&&(t=!1),(0, o.Gf)(e+l+++(t?\".2.8.10\":s.qS)+u)}function p(e){var t={id:f(\"_aiData-\"+(e||s.qS)+\".2.8.10\"),accept:function(e){return d(e)},get:function(e,n,r,i){var s=e[t.id];return s?s[(0, o.Gf)(n)]:(i&&((s=function(e,t){var n=t[e.id];if(!n){n={};try{d(t)&&(function(e,t,n){if(c)try{return c(e,t,{value:n,enumerable:!1,configurable:!0}),!0}catch(e){}return !1}(t,e.id,n)||(t[e.id]=n));}catch(e){}}return n}(t,e))[(0, o.Gf)(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t];}catch(e){}}};return t}},8341:(e,t,n)=>{n.d(t,{j:()=>u,p:()=>l});var r,i=n(8145),o=n(9251),s=[\"eventsSent\",\"eventsDiscarded\",\"eventsSendRequest\",\"perfEvent\"],a=null;function c(e,t){return function(){var n=arguments,r=u(t);if(r){var o=r.listener;o&&o[e]&&o[e][i.ZV](o,n);}}}function u(e){var t,n=a;return n||!0===e.disableDbgExt||(n=a||((t=(0, o.a8)(\"Microsoft\"))&&(a=t.ApplicationInsights),a)),n?n.ChromeDbgExt:null}function l(e){if(!r){r={};for(var t=0;t<s[i.R5];t++)r[s[t]]=c(s[t],e);}return r}},9339:(e,t,n)=>{n.d(t,{AQ:()=>p,L4:()=>v,jV:()=>m,kP:()=>h,lQ:()=>d,vH:()=>f});var r=n(9141),i=n(8145),o=n(8341),s=n(9251),a=n(4869),c=n(6335);function u(e){return e?'\"'+e[i.i7](/\\\"/g,c.qS)+'\"':c.qS}function l(e,t){var n=(0, s.dr)();if(n){var r=\"log\";n[e]&&(r=e),(0, a.mf)(n[r])&&n[r](t);}}var d=function(){function e(e,t,n,r){void 0===n&&(n=!1);var o=this;o[i.Gc]=e,o[i.gU]=(n?\"AI: \":\"AI (Internal): \")+e;var a=c.qS;(0, s.nS)()&&(a=(0, s.xA)().stringify(r));var l=(t?\" message:\"+u(t):c.qS)+(r?\" props:\"+u(a):c.qS);o[i.gU]+=l;}return e.dataType=\"MessageData\",e}();function f(e,t){return (e||{})[i.eZ]||new p(t)}var p=function(){function e(t){this.identifier=\"DiagnosticLogger\",this.queue=[];var n,u,f,p,g=0,h={};(0, r.Z)(e,this,(function(e){function r(t,n){if(!(g>=f)){var r=!0,o=\"AITR_\"+n[i.Gc];if(h[o]?r=!1:h[o]=!0,r&&(t<=u&&(e.queue[i.MW](n),g++,m(1===t?\"error\":\"warn\",n)),g===f)){var s=\"Internal events throttle limit per PageView reached for this app.\",a=new d(23,s,!1);e.queue[i.MW](a),1===t?e[c.ys](s):e[c.cL](s);}}}function m(e,n){var r=(0, o.j)(t||{});r&&r[i.mc]&&r[i.mc](e,n);}!function(e){n=(0, a.v4)(e.loggingLevelConsole,0),u=(0, a.v4)(e.loggingLevelTelemetry,1),f=(0, a.v4)(e.maxMessageLimit,25),p=(0, a.v4)(e[i.Fr],!1);}(t||{}),e.consoleLoggingLevel=function(){return n},e.telemetryLoggingLevel=function(){return u},e.maxInternalMessageLimit=function(){return f},e[i.Fr]=function(){return p},e.throwInternal=function(t,o,u,l,f){void 0===f&&(f=!1);var g=new d(o,u,f,l);if(p)throw (0, s.eU)(g);var v=1===t?c.ys:c.cL;if((0, a.o8)(g[i.gU]))m(\"throw\"+(1===t?\"Critical\":\"Warning\"),g);else {if(f){var y=+g[i.Gc];!h[y]&&n>=t&&(e[v](g[i.gU]),h[y]=!0);}else n>=t&&e[v](g[i.gU]);r(t,g);}},e[c.cL]=function(e){l(\"warn\",e),m(\"warning\",e);},e[c.ys]=function(e){l(\"error\",e),m(\"error\",e);},e.resetInternalMessageCount=function(){g=0,h={};},e[i.jk]=r;}));}return e.__ieDyn=1,e}();function g(e){return e||new p}function h(e,t,n,r,i,o){void 0===o&&(o=!1),g(e).throwInternal(t,n,r,i,o);}function m(e,t){g(e)[c.cL](t);}function v(e,t,n){g(e)[i.jk](t,n);}},9251:(e,t,n)=>{n.d(t,{JO:()=>K,Jj:()=>_,MF:()=>H,MX:()=>F,Me:()=>D,Nv:()=>R,Ym:()=>b,Z3:()=>z,a8:()=>T,b$:()=>q,cp:()=>W,d6:()=>w,dI:()=>S,dr:()=>N,eU:()=>U,ed:()=>B,fE:()=>P,gz:()=>L,jW:()=>E,k$:()=>x,nS:()=>I,pI:()=>$,r:()=>O,s1:()=>k,sA:()=>j,w1:()=>M,xA:()=>A});var r=n(1550),i=n(175),o=n(8145),s=n(4869),a=n(6335),c=n(5108),u=\"window\",l=\"JSON\",d=\"msie\",f=\"trident/\",p=\"XMLHttpRequest\",g=null,h=null,m=!1,v=null,y=null;function C(e,t){var n=!1;if(e){try{if(!(n=t in e)){var i=e[r.hB];i&&(n=t in i);}}catch(e){}if(!n)try{var o=new e;n=!(0,s.o8)(o[t]);}catch(e){}}return n}function S(e){m=e;}function T(e){var t=(0, i.Rd)();return t&&t[e]?t[e]:e===u&&b()?window:null}function b(){return Boolean(typeof window===r.fK&&window)}function _(){return b()?window:T(u)}function R(){return Boolean(typeof document===r.fK&&document)}function D(){return R()?document:T(\"document\")}function w(){return Boolean(typeof navigator===r.fK&&navigator)}function E(){return w()?navigator:T(\"navigator\")}function P(){return Boolean(typeof history===r.fK&&history)}function k(){return P()?history:T(\"history\")}function x(e){if(e&&m){var t=T(\"__mockLocation\");if(t)return t}return typeof location===r.fK&&location?location:T(\"location\")}function N(){return typeof c!==r.jA?c:T(\"console\")}function O(){return T(\"performance\")}function I(){return Boolean(typeof JSON===r.fK&&JSON||null!==T(l))}function A(){return I()?JSON||T(l):null}function F(){return T(\"crypto\")}function L(){return T(\"msCrypto\")}function q(){var e=E();return !(!e||!e.product)&&\"ReactNative\"===e.product}function M(){var e=E();if(e&&(e[o.qV]!==h||null===g)){var t=((h=e[o.qV])||a.qS)[o.T1]();g=(0, s._Q)(t,d)||(0, s._Q)(t,f);}return g}function j(e){if(void 0===e&&(e=null),!e){var t=E()||{};e=t?(t[o.qV]||a.qS)[o.T1]():a.qS;}var n=(e||a.qS)[o.T1]();if((0, s._Q)(n,d)){var r=D()||{};return Math.max(parseInt(n[o.w6](d)[1]),r.documentMode||0)}if((0, s._Q)(n,f)){var i=parseInt(n[o.w6](f)[1]);if(i)return i+4}return null}function U(e){var t=Object[r.hB].toString[o._S](e),n=a.qS;return \"[object Error]\"===t?n=\"{ stack: '\"+e.stack+\"', message: '\"+e.message+\"', name: '\"+e[o.I]+\"'\":I()&&(n=A().stringify(e)),t+n}function H(){return null===y&&(y=w()&&Boolean(E().sendBeacon)),y}function K(e){var t=!1;try{t=!!T(\"fetch\");var n=T(\"Request\");t&&e&&n&&(t=C(n,\"keepalive\"));}catch(e){}return t}function W(){return null===v&&(v=typeof XDomainRequest!==r.jA)&&z()&&(v=v&&!C(T(p),\"withCredentials\")),v}function z(){var e=!1;try{e=!!T(p);}catch(e){}return e}function V(e,t){if(e)for(var n=0;n<e[o.R5];n++){var r=e[n];if(r[o.I]&&r[o.I]===t)return r}return {}}function B(e){var t=D();return t&&e?V(t.querySelectorAll(\"meta\"),e).content:null}function $(e){var t,n=O();if(n){var r=n.getEntriesByType(\"navigation\")||[];t=V((r[o.R5]>0?r[0]:{}).serverTiming,e).description;}return t}},7954:(e,t,n)=>{n.d(t,{C1:()=>I,C9:()=>U,Ib:()=>O,JA:()=>M,QY:()=>k,TJ:()=>j,XO:()=>P,Yl:()=>K,c9:()=>q,jU:()=>E,nD:()=>H,nJ:()=>L,pD:()=>N,pZ:()=>x,um:()=>_,yw:()=>F});var r=n(8145),i=n(7624),o=n(9251),s=n(4869),a=n(6335),c=\"events\",u=\"visibilitychange\",l=\"pagehide\",d=\"pageshow\",f=\"unload\",p=\"beforeunload\",g=(0, i.J)(\"aiEvtPageHide\"),h=(0, i.J)(\"aiEvtPageShow\"),m=/\\.[\\.]+/g,v=/[\\.]+$/,y=1,C=(0, i.K)(\"events\"),S=/^([^.]*)(?:\\.(.+)|)/;function T(e){return e&&e[r.i7]?e[r.i7](/^[\\s\\.]+|(?=[\\s\\.])[\\.\\s]+$/g,a.qS):e}function b(e,t){var n;if(t){var i=a.qS;(0, s.kJ)(t)?(i=a.qS,(0, s.tO)(t,(function(e){(e=T(e))&&(\".\"!==e[0]&&(e=\".\"+e),i+=e);}))):i=T(t),i&&(\".\"!==i[0]&&(i=\".\"+i),e=(e||a.qS)+i);}var o=S.exec(e||a.qS)||[];return (n={})[r.P6]=o[1],n.ns=(o[2]||a.qS).replace(m,\".\").replace(v,a.qS)[r.w6](\".\").sort().join(\".\"),n}function _(e,t,n){var i=[],o=C.get(e,c,{},!1),u=b(t,n);return (0, s.rW)(o,(function(e,t){(0, s.tO)(t,(function(e){var t;u[r.P6]&&u[r.P6]!==e.evtName[r.P6]||u.ns&&u.ns!=u.ns||i[r.MW](((t={})[r.I]=e.evtName[r.P6]+(e.evtName.ns?\".\"+e.evtName.ns:a.qS),t.handler=e[r.Kn],t));}));})),i}function R(e,t,n){void 0===n&&(n=!0);var r=C.get(e,c,{},n),i=r[t];return i||(i=r[t]=[]),i}function D(e,t,n,i){e&&t&&t[r.P6]&&(e.removeEventListener?e.removeEventListener(t[r.P6],n,i):e.detachEvent&&e.detachEvent(\"on\"+t[r.P6],n));}function w(e,t,n,i){for(var o=t[r.R5];o--;){var s=t[o];s&&(n.ns&&n.ns!==s.evtName.ns||i&&!i(s)||(D(e,s.evtName,s[r.Kn],s.capture),t[r.cb](o,1)));}}function E(e,t){return t?b(\"xx\",(0, s.kJ)(t)?[e].concat(t):[e,t]).ns[r.w6](\".\"):e}function P(e,t,n,i,o){var s;void 0===o&&(o=!1);var a=!1;if(e)try{var c=b(t,i);if(a=function(e,t,n,i){var o=!1;return e&&t&&t[r.P6]&&n&&(e.addEventListener?(e.addEventListener(t[r.P6],n,i),o=!0):e.attachEvent&&(e.attachEvent(\"on\"+t[r.P6],n),o=!0)),o}(e,c,n,o),a&&C.accept(e)){var u=((s={guid:y++,evtName:c})[r.Kn]=n,s.capture=o,s);R(e,c.type)[r.MW](u);}}catch(e){}return a}function k(e,t,n,i,o){if(void 0===o&&(o=!1),e)try{var a=b(t,i),u=!1;!function(e,t,n){if(t[r.P6])w(e,R(e,t[r.P6]),t,n);else {var i=C.get(e,c,{});(0,s.rW)(i,(function(r,i){w(e,i,t,n);})),0===(0,s.FY)(i)[r.R5]&&C.kill(e,c);}}(e,a,(function(e){return !((!a.ns||n)&&e[r.Kn]!==n||(u=!0,0))})),u||D(e,a,n,o);}catch(e){}}function x(e,t,n,r){return void 0===r&&(r=!1),P(e,t,n,null,r)}function N(e,t,n,r){void 0===r&&(r=!1),k(e,t,n,null,r);}function O(e,t,n){var r=!1,i=(0, o.Jj)();i&&(r=P(i,e,t,n),r=P(i.body,e,t,n)||r);var s=(0, o.Me)();return s&&(r=P(s,e,t,n)||r),r}function I(e,t,n){var r=(0, o.Jj)();r&&(k(r,e,t,n),k(r.body,e,t,n));var i=(0, o.Me)();i&&k(i,e,t,n);}function A(e,t,n,i){var o=!1;return t&&e&&e[r.R5]>0&&(0, s.tO)(e,(function(e){e&&(n&&-1!==(0, s.UA)(n,e)||(o=O(e,t,i)||o));})),o}function F(e,t,n,i){var o=!1;return t&&e&&(0, s.kJ)(e)&&!(o=A(e,t,n,i))&&n&&n[r.R5]>0&&(o=A(e,t,null,i)),o}function L(e,t,n){e&&(0, s.kJ)(e)&&(0, s.tO)(e,(function(e){e&&I(e,t,n);}));}function q(e,t,n){return F([p,f,l],e,t,n)}function M(e,t){L([p,f,l],e,t);}function j(e,t,n){var r=E(g,n),i=A([l],e,t,r);return t&&-1!==(0, s.UA)(t,u)||(i=A([u],(function(t){var n=(0, o.Me)();e&&n&&\"hidden\"===n.visibilityState&&e(t);}),t,r)||i),!i&&t&&(i=j(e,null,n)),i}function U(e,t){var n=E(g,t);L([l],e,n),L([u],null,n);}function H(e,t,n){var r=E(h,n),i=A([d],e,t,r);return !(i=A([u],(function(t){var n=(0, o.Me)();e&&n&&\"visible\"===n.visibilityState&&e(t);}),t,r)||i)&&t&&(i=H(e,null,n)),i}function K(e,t){var n=E(h,t);L([d],e,n),L([u],null,n);}},4869:(e,t,n)=>{n.d(t,{Ax:()=>he,BX:()=>E,F:()=>ce,FL:()=>te,FY:()=>Z,Gf:()=>N,HD:()=>j,Id:()=>I,J_:()=>L,Kn:()=>k,Mr:()=>B,Oi:()=>pe,UA:()=>V,VZ:()=>M,Vb:()=>ge,Xi:()=>ne,Xz:()=>$,Y6:()=>W,Ym:()=>R,_A:()=>ee,_Q:()=>F,_y:()=>le,cf:()=>fe,fQ:()=>ue,hj:()=>U,jj:()=>ie,jn:()=>H,kJ:()=>q,l_:()=>X,le:()=>w,m6:()=>re,mf:()=>x,mm:()=>me,nd:()=>G,nr:()=>P,o8:()=>D,qK:()=>se,rW:()=>O,sO:()=>oe,tO:()=>z,v4:()=>ae,xe:()=>A});var r=n(1550),i=n(175),o=n(8145),s=n(6335),a=r.RJ,c=r.Pw.freeze,u=r.Pw.seal,l=r.Pw.keys,d=String[r.hB],f=d.trim,p=d.endsWith,g=d.startsWith,h=Date[r.hB].toISOString,m=Array.isArray,v=r.V4.toString,y=r.CY.toString,C=y[o._S](r.Pw),S=/-([a-z])/g,T=/([^\\w\\d_$])/g,b=/^(\\d+[\\w\\d_$])/,_=Object.getPrototypeOf;function R(e,t){return typeof e===t}function D(e){return void 0===e||typeof e===r.jA}function w(e){return null===e||D(e)}function E(e){return !w(e)}function P(e,t){return !(!e||!r.CY[o._S](e,t))}function k(e){return !(!e||typeof e!==r.fK)}function x(e){return !(!e||typeof e!==r.cb)}function N(e){var t=e;return t&&j(t)&&(t=(t=(t=t[o.i7](S,(function(e,t){return t.toUpperCase()})))[o.i7](T,\"_\"))[o.i7](b,(function(e,t){return \"_\"+t}))),t}function O(e,t){if(e)for(var n in e)r.CY[o._S](e,n)&&t[o._S](e,n,e[n]);}function I(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=p?e.endsWith(t):function(e,t){var n=!1,r=t?t[o.R5]:0,i=e?e[o.R5]:0;if(r&&i&&i>=r&&!(n=e===t)){for(var s=i-1,a=r-1;a>=0;a--){if(e[s]!=t[a])return !1;s--;}n=!0;}return n}(e,t)),n}function A(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=g?e.startsWith(t):function(e,t){var n=!1,r=t?t[o.R5]:0;if(e&&r&&e[o.R5]>=r&&!(n=e===t)){for(var i=0;i<r;i++)if(e[i]!==t[i])return !1;n=!0;}return n}(e,t)),n}function F(e,t){return !(!e||!t)&&-1!==e[o.ou](t)}function L(e){return !(!e||\"[object Date]\"!==v[o._S](e))}var q=m||function(e){return !(!e||\"[object Array]\"!==v[o._S](e))};function M(e){return !(!e||\"[object Error]\"!==v[o._S](e))}function j(e){return \"string\"==typeof e}function U(e){return \"number\"==typeof e}function H(e){return \"boolean\"==typeof e}function K(e){var t=!1;if(e&&\"object\"==typeof e){var n=_?_(e):function(e){if(e){if(_)return _(e);var t=e.__proto__||e[r.hB]||e.constructor;if(t)return t}return null}(e);n?(n.constructor&&r.CY[o._S](n,\"constructor\")&&(n=n.constructor),t=typeof n===r.cb&&y[o._S](n)===C):t=!0;}return t}function W(e){if(e)return h?e.toISOString():function(e){if(e&&e.getUTCFullYear){var t=function(e){var t=String(e);return 1===t[o.R5]&&(t=\"0\"+t),t};return e.getUTCFullYear()+\"-\"+t(e.getUTCMonth()+1)+\"-\"+t(e.getUTCDate())+\"T\"+t(e.getUTCHours())+\":\"+t(e.getUTCMinutes())+\":\"+t(e.getUTCSeconds())+\".\"+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+\"Z\"}}(e)}function z(e,t,n){var r=e[o.R5];try{for(var i=0;i<r&&(!(i in e)||-1!==t[o._S](n||e,e[i],i,e));i++);}catch(e){}}function V(e,t,n){if(e){if(e.indexOf)return e.indexOf(t,n);var r=e[o.R5],i=n||0;try{for(var s=Math.max(i>=0?i:r-Math.abs(i),0);s<r;s++)if(s in e&&e[s]===t)return s}catch(e){}}return -1}function B(e,t,n){var r;if(e){if(e.map)return e.map(t,n);var i=e[o.R5],s=n||e;r=new Array(i);try{for(var a=0;a<i;a++)a in e&&(r[a]=t[o._S](s,e[a],e));}catch(e){}}return r}function $(e,t,n){var r;if(e){if(e.reduce)return e.reduce(t,n);var i=e[o.R5],s=0;if(arguments[o.R5]>=3)r=arguments[2];else {for(;s<i&&!(s in e);)s++;r=e[s++];}for(;s<i;)s in e&&(r=t(r,e[s],s,e)),s++;}return r}function G(e){return e&&(e=f&&e.trim?e.trim():e[o.i7]?e[o.i7](/^\\s+|(?=\\s)\\s+$/g,s.qS):e),e}var J=!{toString:null}.propertyIsEnumerable(\"toString\"),Y=[\"toString\",\"toLocaleString\",\"valueOf\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"constructor\"];function Z(e){var t=typeof e;if(t===r.cb||t===r.fK&&null!==e||(0, i.ZU)(\"objKeys called on non-object\"),!J&&l)return l(e);var n=[];for(var s in e)e&&r.CY[o._S](e,s)&&n[o.MW](s);if(J)for(var a=Y[o.R5],c=0;c<a;c++)e&&r.CY[o._S](e,Y[c])&&n[o.MW](Y[c]);return n}function X(e,t,n,r){if(a)try{var i={enumerable:!0,configurable:!0};return n&&(i.get=n),r&&(i.set=r),a(e,t,i),!0}catch(e){}return !1}function Q(e){return e}function ee(e){return c&&O(e,(function(e,t){(q(t)||k(t))&&c(t);})),te(e)}var te=c||Q,ne=u||Q;function re(){var e=Date;return e.now?e.now():(new e).getTime()}function ie(e){return M(e)?e[o.I]:s.qS}function oe(e,t,n,r,i){var o=n;return e&&((o=e[t])===n||i&&!i(o)||r&&!r(n)||(o=n,e[t]=o)),o}function se(e,t,n){var r;return e?!(r=e[t])&&w(r)&&(r=D(n)?{}:n,e[t]=r):r=D(n)?{}:n,r}function ae(e,t){return w(e)?t:e}function ce(e){return !e}function ue(e){return !!e}function le(e){throw new Error(e)}function de(e,t){var n=null,r=null;return x(e)?n=e:r=e,function(){var e=arguments;if(n&&(r=n()),r)return r[t][o.ZV](r,e)}}function fe(e,t,n){if(e&&t&&k(e)&&k(t)){var r=function(r){if(j(r)){var i=t[r];x(i)?n&&!n(r,!0,t,e)||(e[r]=de(t,r)):n&&!n(r,!1,t,e)||(P(e,r)&&delete e[r],X(e,r,(function(){return t[r]}),(function(e){t[r]=e;}))||(e[r]=i));}};for(var i in t)r(i);}return e}function pe(e,t,n,r,i){e&&t&&n&&(!1!==i||D(e[t]))&&(e[t]=de(n,r));}function ge(e,t,n,r){return e&&t&&k(e)&&q(n)&&z(n,(function(n){j(n)&&pe(e,n,t,n,r);})),e}function he(e){return e&&r.rl&&(e=(0, r.Pw)((0, r.rl)({},e))),e}function me(e,t,n,i,s,a){var c=arguments,u=c[0]||{},l=c[o.R5],d=!1,f=1;for(l>0&&H(u)&&(d=u,u=c[f]||{},f++),k(u)||(u={});f<l;f++){var p=c[f],g=q(p),h=k(p);for(var m in p){var v=g&&m in p||h&&r.CY[o._S](p,m);if(v){var y=p[m],C=void 0;if(d&&y&&((C=q(y))||K(y))){var S=u[m];C?q(S)||(S=[]):K(S)||(S={}),y=me(d,S,y);}void 0!==y&&(u[m]=y);}}}return u}},6335:(e,t,n)=>{n.d(t,{$F:()=>p,C$:()=>h,DN:()=>s,Z:()=>i,Zh:()=>c,cL:()=>v,f_:()=>g,hL:()=>l,js:()=>u,kl:()=>y,mE:()=>a,oV:()=>o,qS:()=>r,uC:()=>f,yi:()=>d,ys:()=>m});var r=\"\",i=\"channels\",o=\"core\",s=\"createPerfMgr\",a=\"disabled\",c=\"extensionConfig\",u=\"extensions\",l=\"processTelemetry\",d=\"priority\",f=\"eventsSent\",p=\"eventsDiscarded\",g=\"eventsSendRequest\",h=\"perfEvent\",m=\"errorToConsole\",v=\"warnToConsole\",y=\"getPerfMgr\";},1782:(e,t,n)=>{n.d(t,{Jk:()=>c,Lm:()=>l,j5:()=>d,zn:()=>a});var r=n(9141),i=n(8145),o=n(4869),s=n(6335),a=function(){function e(t,n,r){var s,a=this,c=!1;a.start=(0, o.m6)(),a[i.I]=t,a[i.d]=r,a[i.PL]=function(){return !1},(0, o.mf)(n)&&(c=(0, o.l_)(a,\"payload\",(function(){return !s&&(0, o.mf)(n)&&(s=n(),n=null),s}))),a[i.T]=function(t){return t?t===e.ParentContextKey||t===e.ChildrenContextKey?a[t]:(a.ctx||{})[t]:null},a[i.wu]=function(t,n){t&&(t===e.ParentContextKey?(a[t]||(a[i.PL]=function(){return !0}),a[t]=n):t===e.ChildrenContextKey?a[t]=n:(a.ctx=a.ctx||{})[t]=n);},a[i.Km]=function(){var t=0,r=a[i.T](e.ChildrenContextKey);if((0, o.kJ)(r))for(var s=0;s<r[i.R5];s++){var u=r[s];u&&(t+=u[i.Z_]);}a[i.Z_]=(0, o.m6)()-a.start,a.exTime=a[i.Z_]-t,a[i.Km]=function(){},!c&&(0, o.mf)(n)&&(a.payload=n());};}return e.ParentContextKey=\"parent\",e.ChildrenContextKey=\"childEvts\",e}(),c=function(){function e(t){this.ctx={},(0, r.Z)(e,this,(function(e){e.create=function(e,t,n){return new a(e,t,n)},e.fire=function(e){e&&(e[i.Km](),t&&(0, o.mf)(t[s.C$])&&t[s.C$](e));},e[i.wu]=function(t,n){t&&((e.ctx=e.ctx||{})[t]=n);},e[i.T]=function(t){return (e.ctx||{})[t]};}));}return e.__ieDyn=1,e}(),u=\"CoreUtils.doPerf\";function l(e,t,n,r,o){if(e){var c=e;if(c[s.kl]&&(c=c[s.kl]()),c){var l=void 0,d=c[i.T](u);try{if(l=c.create(t(),r,o)){if(d&&l[i.wu]&&(l[i.wu](a.ParentContextKey,d),d[i.T]&&d[i.wu])){var f=d[i.T](a.ChildrenContextKey);f||(f=[],d[i.wu](a.ChildrenContextKey,f)),f[i.MW](l);}return c[i.wu](u,l),n(l)}}catch(e){l&&l[i.wu]&&l[i.wu](\"exception\",e);}finally{l&&c.fire(l),c[i.wu](u,d);}}}return n()}function d(){return null}},1030:(e,t,n)=>{n.d(t,{Bt:()=>p,CD:()=>f,Vi:()=>m,jV:()=>h,xy:()=>g});var r=n(8145),i=n(9339),o=n(9251),s=n(4869),a=n(6335),c=n(1782),u=n(9031),l=0;function d(e,t,n,c){var u=null,l=[];null!==c&&(u=c?function(e,t,n){for(;e;){if(e[r.TO]()===n)return e;e=e[r.W2]();}return h([n],t[r.TC]||{},t)}(e,n,c):e);var d={_next:function(){var e=u;if(u=e?e[r.W2]():null,!e){var t=l;t&&t[r.R5]>0&&((0, s.tO)(t,(function(e){try{e.func[r._S](e.self,e.args);}catch(e){(0, i.kP)(n[r.eZ],2,73,\"Unexpected Exception during onComplete - \"+(0, o.eU)(e));}})),l=[]);}return e},ctx:{core:function(){return n},diagLog:function(){return (0, i.vH)(n,t)},getCfg:function(){return t},getExtCfg:f,getConfig:function(e,n,r){void 0===r&&(r=!1);var i,o=f(e,null);return o&&!(0, s.le)(o[n])?i=o[n]:t&&!(0, s.le)(t[n])&&(i=t[n]),(0, s.le)(i)?r:i},hasNext:function(){return !!u},getNext:function(){return u},setNext:function(e){u=e;},iterate:function(e){for(var t;t=d._next();){var n=t[r.TO]();n&&e(n);}},onComplete:function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];e&&l[r.MW]({func:e,self:(0, s.o8)(t)?d.ctx:t,args:n});}}};function f(e,n,r){var i;if(void 0===n&&(n={}),void 0===r&&(r=0),t){var o=t[a.Zh];o&&e&&(i=o[e]);}if(i){if((0, s.Kn)(n)&&0!==r){var c=(0, s.mm)(!0,n,i);t&&2===r&&(0, s.rW)(n,(function(e){if((0, s.le)(c[e])){var n=t[e];(0, s.le)(n)||(c[e]=n);}})),i=c;}}else i=n;return i}return d}function f(e,t,n,i){var o=d(e,t,n,i),c=o.ctx;return c[r.uL]=function(e){var t=o._next();return t&&t[a.hL](e,c),!t},c[r.zV]=function(e,i){return void 0===e&&(e=null),(0, s.kJ)(e)&&(e=h(e,t,n,i)),f(e||c[r.W2](),t,n,i)},c}function p(e,t,n){var i=t[r.TC]||{},o=d(e,i,t,n),a=o.ctx;return a[r.uL]=function(e){var t=o._next();return t&&t.unload(a,e),!t},a[r.zV]=function(e,n){return void 0===e&&(e=null),(0, s.kJ)(e)&&(e=h(e,i,t,n)),p(e||a[r.W2](),t,n)},a}function g(e,t,n){var i=t[r.TC]||{},o=d(e,i,t,n).ctx;return o[r.uL]=function(e){return o.iterate((function(t){(0, s.mf)(t[r.Tu])&&t[r.Tu](o,e);}))},o[r.zV]=function(e,n){return void 0===e&&(e=null),(0, s.kJ)(e)&&(e=h(e,i,t,n)),g(e||o[r.W2](),t,n)},o}function h(e,t,n,d){var p=null,g=!d;if((0, s.kJ)(e)&&e[r.R5]>0){var m=null;(0, s.tO)(e,(function(e){if(g||d!==e||(g=!0),g&&e&&(0, s.mf)(e[a.hL])){var h=function(e,t,n){var d,p=null,g=(0, s.mf)(e[a.hL]),h=(0, s.mf)(e[r.Jd]),m={getPlugin:function(){return e},getNext:function(){return p},processTelemetry:function(i,o){v(o=o||function(){var r;return e&&(0, s.mf)(e._getTelCtx)&&(r=e._getTelCtx()),r||(r=f(m,t,n)),r}(),(function(t){if(!e||!g)return !1;var n=(0,u.OY)(e);return !n[r.fi]&&!n[a.mE]&&(h&&e[r.Jd](p),e[a.hL](i,t),!0)}),\"processTelemetry\",(function(){return {item:i}}),!i.sync)||o[r.uL](i);},unload:function(t,n){v(t,(function(){var i=!1;if(e){var o=(0,u.OY)(e),s=e[a.oV]||o[a.oV];!e||s&&s!==t.core()||o[r.fi]||(o[a.oV]=null,o[r.fi]=!0,o[r.yl]=!1,e[r.fi]&&!0===e[r.fi](t,n)&&(i=!0));}return i}),\"unload\",(function(){}),n[r.d])||t[r.uL](n);},update:function(t,n){v(t,(function(){var i=!1;if(e){var o=(0,u.OY)(e),s=e[a.oV]||o[a.oV];!e||s&&s!==t.core()||o[r.fi]||e[r.Tu]&&!0===e[r.Tu](t,n)&&(i=!0);}return i}),\"update\",(function(){}),!1)||t[r.uL](n);},_id:d=e?e[r.pZ]+\"-\"+e[a.yi]+\"-\"+l++:\"Unknown-0-\"+l++,_setNext:function(e){p=e;}};function v(t,n,s,u,l){var f=!1,g=e?e[r.pZ]:\"TelemetryPluginChain\",h=t._hasRun;return h||(h=t._hasRun={}),t.setNext(p),e&&(0, c.Lm)(t[a.oV](),(function(){return g+\":\"+s}),(function(){h[d]=!0;try{var e=p?p._id:a.qS;e&&(h[e]=!1),f=n(t);}catch(e){var c=!p||h[p._id];c&&(f=!0),p&&c||(0, i.kP)(t[r.mc](),1,73,\"Plugin [\"+g+\"] failed during \"+s+\" - \"+(0, o.eU)(e)+\", run flags: \"+(0, o.eU)(h));}}),u,l),f}return (0, s.FL)(m)}(e,t,n);p||(p=h),m&&m._setNext(h),m=h;}}));}return d&&!p?h([d],t,n):p}var m=function(e,t,n,r){var i=f(e,t,n,r);(0, s.Vb)(this,i,(0, s.FY)(i));};},9406:(e,t,n)=>{n.d(t,{CN:()=>m,F6:()=>v,_l:()=>h,az:()=>g,pZ:()=>y});var r=n(8145),i=n(9251),o=n(4869),s=n(6335),a=4294967296,c=4294967295,u=!1,l=123456789,d=987654321;function f(e){e<0&&(e>>>=0),l=123456789+e&c,d=987654321-e&c,u=!0;}function p(){try{var e=2147483647&(0,o.m6)();f((Math.random()*a^e)+e);}catch(e){}}function g(e){return e>0?Math.floor(h()/c*(e+1))>>>0:0}function h(e){var t=0,n=(0, i.MX)()||(0, i.gz)();return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&c),0===t&&(0, i.w1)()&&(u||p(),t=v()&c),0===t&&(t=Math.floor(a*Math.random()|0)),e||(t>>>=0),t}function m(e){e?f(e):p();}function v(e){var t=((d=36969*(65535&d)+(d>>16)&c)<<16)+(65535&(l=18e3*(65535&l)+(l>>16)&c))>>>0&c|0;return e||(t>>>=0),t}function y(e){void 0===e&&(e=22);for(var t=h()>>>0,n=0,i=s.qS;i[r.R5]<e;)n++,i+=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\".charAt(63&t),t>>>=6,5===n&&(t=(h()<<2&4294967295|3&t)>>>0,n=0);return i}},9031:(e,t,n)=>{n.d(t,{AA:()=>d,OY:()=>u,Yn:()=>f,bP:()=>l});var r=n(8145),i=n(7624),o=n(4869),s=n(6335),a=n(6207),c=(0, i.K)(\"plugin\");function u(e){return c.get(e,\"state\",{},!0)}function l(e,t){for(var n,i=[],a=null,c=e[r.W2]();c;){var l=c[r.TO]();l&&(a&&(0, o.mf)(a[r.Jd])&&(0, o.mf)(l[s.hL])&&a[r.Jd](l),((0, o.mf)(l[r.yl])?l[r.yl]():(n=u(l))[r.yl])||i[r.MW](l),a=l,c=c[r.W2]());}(0, o.tO)(i,(function(i){var o=e[s.oV]();i[r.VL](e.getCfg(),o,t,e[r.W2]()),n=u(i),i[s.oV]||n[s.oV]||(n[s.oV]=o),n[r.yl]=!0,delete n[r.fi];}));}function d(e){return e.sort((function(e,t){var n=0;if(t){var r=(0, o.mf)(t[s.hL]);(0, o.mf)(e[s.hL])?n=r?e[s.yi]-t[s.yi]:1:r&&(n=-1);}else n=e?1:-1;return n}))}function f(e){var t={};return {getName:function(){return t[r.I]},setName:function(n){e&&e.setName(n),t[r.I]=n;},getTraceId:function(){return t[r.nY]},setTraceId:function(n){e&&e.setTraceId(n),(0, a.jN)(n)&&(t[r.nY]=n);},getSpanId:function(){return t[r._d]},setSpanId:function(n){e&&e.setSpanId(n),(0, a.Lc)(n)&&(t[r._d]=n);},getTraceFlags:function(){return t[r.T0]},setTraceFlags:function(n){e&&e.setTraceFlags(n),t[r.T0]=n;}}}},8593:(e,t,n)=>{n.d(t,{Y:()=>a});var r=n(8145),i=n(9339),o=n(9251),s=n(4869);function a(){var e=[];return {add:function(t){t&&e[r.MW](t);},run:function(t,n){(0, s.tO)(e,(function(e){try{e(t,n);}catch(e){(0, i.kP)(t[r.mc](),2,73,\"Unexpected error calling unload handler - \"+(0, o.eU)(e));}})),e=[];}}}},6207:(e,t,n)=>{n.d(t,{J6:()=>C,Lc:()=>y,Pn:()=>S,SU:()=>h,aR:()=>T,jN:()=>v,j_:()=>m,lq:()=>b});var r=n(8145),i=n(8956),o=n(9251),s=n(4869),a=/^([\\da-f]{2})-([\\da-f]{32})-([\\da-f]{16})-([\\da-f]{2})(-[^\\s]*)?$/,c=\"00\",u=\"ff\",l=\"00000000000000000000000000000000\",d=\"0000000000000000\";function f(e,t,n){return !(!e||e[r.R5]!==t||e===n||!e.match(/^[\\da-f]*$/))}function p(e,t,n){return f(e,t)?e:n}function g(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[r.R5]<2;)t=\"0\"+t;return t}function h(e,t,n,o){var s;return (s={})[r.PA]=f(o,2,u)?o:c,s[r.nY]=v(e)?e:(0, i.DO)(),s.spanId=y(t)?t:(0, i.DO)()[r.Jn](0,16),s.traceFlags=n>=0&&n<=255?n:1,s}function m(e){var t;if(!e)return null;if((0, s.kJ)(e)&&(e=e[0]||\"\"),!e||!(0, s.HD)(e)||e[r.R5]>8192)return null;var n=a.exec((0, s.nd)(e));return n&&n[1]!==u&&n[2]!==l&&n[3]!==d?((t={})[r.PA]=n[1],t[r.nY]=n[2],t[r._d]=n[3],t[r.T0]=parseInt(n[4],16),t):null}function v(e){return f(e,32,l)}function y(e){return f(e,16,d)}function C(e){return !!(e&&f(e[r.PA],2,u)&&f(e[r.nY],32,l)&&f(e[r._d],16,d)&&f(g(e[r.T0]),2))}function S(e){return !!C(e)&&1==(1&e[r.T0])}function T(e){if(e){var t=g(e[r.T0]);f(t,2)||(t=\"01\");var n=e[r.PA]||c;return \"00\"!==n&&\"ff\"!==n&&(n=c),\"\".concat(n,\"-\").concat(p(e.traceId,32,l),\"-\").concat(p(e.spanId,16,d),\"-\").concat(t)}return \"\"}function b(){var e=\"traceparent\",t=m((0, o.ed)(e));return t||(t=m((0, o.pI)(e))),t}},8145:(e,t,n)=>{n.d(t,{$h:()=>j,F3:()=>P,Fc:()=>C,Fr:()=>z,Gc:()=>D,I:()=>i,Jd:()=>O,Jn:()=>U,Km:()=>ee,Kn:()=>J,LS:()=>y,Lk:()=>A,MW:()=>a,P6:()=>G,PA:()=>ie,PL:()=>Z,R5:()=>f,SD:()=>h,T:()=>X,T0:()=>re,T1:()=>B,TC:()=>u,TO:()=>S,Tu:()=>k,VL:()=>r,W2:()=>x,ZV:()=>K,Z_:()=>p,_S:()=>$,_d:()=>ne,cb:()=>_,d:()=>E,dE:()=>Y,eZ:()=>d,fi:()=>R,g:()=>m,gU:()=>w,i7:()=>W,iC:()=>b,jk:()=>V,kL:()=>T,mc:()=>N,n7:()=>v,nY:()=>te,ou:()=>F,p$:()=>l,pZ:()=>s,qV:()=>q,tb:()=>o,uL:()=>g,w6:()=>M,wu:()=>Q,xv:()=>H,yl:()=>c,zV:()=>I,zc:()=>L});var r=\"initialize\",i=\"name\",o=\"getNotifyMgr\",s=\"identifier\",a=\"push\",c=\"isInitialized\",u=\"config\",l=\"instrumentationKey\",d=\"logger\",f=\"length\",p=\"time\",g=\"processNext\",h=\"getProcessTelContext\",m=\"addNotificationListener\",v=\"removeNotificationListener\",y=\"stopPollingInternalLogs\",C=\"onComplete\",S=\"getPlugin\",T=\"flush\",b=\"_extensions\",_=\"splice\",R=\"teardown\",D=\"messageId\",w=\"message\",E=\"isAsync\",P=\"_doTeardown\",k=\"update\",x=\"getNext\",N=\"diagLog\",O=\"setNextPlugin\",I=\"createNew\",A=\"cookieCfg\",F=\"indexOf\",L=\"substring\",q=\"userAgent\",M=\"split\",j=\"setEnabled\",U=\"substr\",H=\"nodeType\",K=\"apply\",W=\"replace\",z=\"enableDebugExceptions\",V=\"logInternalMessage\",B=\"toLowerCase\",$=\"call\",G=\"type\",J=\"handler\",Y=\"listeners\",Z=\"isChildEvt\",X=\"getCtx\",Q=\"setCtx\",ee=\"complete\",te=\"traceId\",ne=\"spanId\",re=\"traceFlags\",ie=\"version\";},1550:(e,t,n)=>{n.d(t,{CY:()=>p,Pw:()=>c,RJ:()=>f,V4:()=>u,bO:()=>a,cb:()=>r,fK:()=>i,hB:()=>s,jA:()=>o,rl:()=>l,yu:()=>d});var r=\"function\",i=\"object\",o=\"undefined\",s=\"prototype\",a=\"hasOwnProperty\",c=Object,u=c[s],l=c.assign,d=c.create,f=c.defineProperty,p=u[a];},175:(e,t,n)=>{n.d(t,{Rd:()=>o,ZU:()=>s,pu:()=>a});var r=n(1550),i=null;function o(e){void 0===e&&(e=!0);var t=!1===e?null:i;return t||(typeof globalThis!==r.jA&&(t=globalThis),t||typeof self===r.jA||(t=self),t||typeof window===r.jA||(t=window),t||typeof n.g===r.jA||(t=n.g),i=t),t}function s(e){throw new TypeError(e)}function a(e){var t=r.yu;if(t)return t(e);if(null==e)return {};var n=typeof e;function i(){}return n!==r.fK&&n!==r.cb&&s(\"Object prototype may only be an Object:\"+e),i[r.hB]=e,new i}},7421:(e,t,n)=>{n.d(t,{$h:()=>c,ne:()=>a,uc:()=>o});var r=n(1550),i=n(175),o=(((0, i.Rd)()||{}).Symbol,((0, i.Rd)()||{}).Reflect,r.rl||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])r.V4[r.bO].call(t,o)&&(e[o]=t[o]);return e}),s=function(e,t){return s=r.Pw.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var n in t)t[r.bO](n)&&(e[n]=t[n]);},s(e,t)};function a(e,t){function n(){this.constructor=e;}typeof t!==r.cb&&null!==t&&(0, i.ZU)(\"Class extends value \"+String(t)+\" is not a constructor or null\"),s(e,t),e[r.hB]=null===t?(0, i.pu)(t):(n[r.hB]=t[r.hB],new n);}function c(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}},1626:(e,t,n)=>{n.r(t),n.d(t,{AppInsightsCore:()=>ua,ApplicationInsights:()=>Da,CoreUtils:()=>Ta,Sender:()=>Li,SeverityLevel:()=>Ra,_InternalMessageId:()=>_a,arrForEach:()=>ho,isNullOrUndefined:()=>to,proxyFunctions:()=>xo,throwError:()=>Po});var r=n(9141),i=n(7421),o=\"Microsoft_ApplicationInsights_BypassAjaxInstrumentation\",s=\"http.method\",a=\"https://dc.services.visualstudio.com\",c=\"/v2/track\",u=\"not_specified\",l=n(1550),d=n(175),f=\"\",p=l.RJ,g=l.Pw.freeze,h=(l.Pw.seal,l.Pw.keys),m=String[l.hB],v=m.trim,y=m.endsWith,C=(m.startsWith,Date[l.hB].toISOString),S=Array.isArray,T=l.V4.toString,b=(l.CY.toString.call(l.Pw),/-([a-z])/g),_=/([^\\w\\d_$])/g,R=/^(\\d+[\\w\\d_$])/;function D(e){return void 0===e||typeof e===l.jA}function w(e){return null===e||D(e)}function E(e){return !w(e)}function P(e){return !(!e||typeof e!==l.fK)}function k(e){return !(!e||typeof e!==l.cb)}function x(e){var t=e;return t&&F(t)&&(t=(t=(t=t.replace(b,(function(e,t){return t.toUpperCase()}))).replace(_,\"_\")).replace(R,(function(e,t){return \"_\"+t}))),t}function N(e,t){if(e)for(var n in e)l.CY.call(e,n)&&t.call(e,n,e[n]);}function O(e,t){return !(!e||!t)&&-1!==e.indexOf(t)}var I=S||function(e){return !(!e||\"[object Array]\"!==T.call(e))};function A(e){return !(!e||\"[object Error]\"!==T.call(e))}function F(e){return \"string\"==typeof e}function L(e){return \"boolean\"==typeof e}function q(e){if(e)return C?e.toISOString():function(e){if(e&&e.getUTCFullYear){var t=function(e){var t=String(e);return 1===t.length&&(t=\"0\"+t),t};return e.getUTCFullYear()+\"-\"+t(e.getUTCMonth()+1)+\"-\"+t(e.getUTCDate())+\"T\"+t(e.getUTCHours())+\":\"+t(e.getUTCMinutes())+\":\"+t(e.getUTCSeconds())+\".\"+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+\"Z\"}}(e)}function M(e,t,n){var r=e.length;try{for(var i=0;i<r&&(!(i in e)||-1!==t.call(n||e,e[i],i,e));i++);}catch(e){}}function j(e,t,n){if(e){if(e.indexOf)return e.indexOf(t,n);var r=e.length,i=n||0;try{for(var o=Math.max(i>=0?i:r-Math.abs(i),0);o<r;o++)if(o in e&&e[o]===t)return o}catch(e){}}return -1}function U(e,t,n){var r;if(e){if(e.map)return e.map(t,n);var i=e.length,o=n||e;r=new Array(i);try{for(var s=0;s<i;s++)s in e&&(r[s]=t.call(o,e[s],e));}catch(e){}}return r}function H(e,t,n){var r;if(e){if(e.reduce)return e.reduce(t,n);var i=e.length,o=0;if(arguments.length>=3)r=arguments[2];else {for(;o<i&&!(o in e);)o++;r=e[o++];}for(;o<i;)o in e&&(r=t(r,e[o],o,e)),o++;}return r}function K(e){return e&&(e=v&&e.trim?e.trim():e.replace?e.replace(/^\\s+|(?=\\s)\\s+$/g,f):e),e}var W=!{toString:null}.propertyIsEnumerable(\"toString\"),z=[\"toString\",\"toLocaleString\",\"valueOf\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"constructor\"];function V(e){var t=typeof e;if(t===l.cb||t===l.fK&&null!==e||(0, d.ZU)(\"objKeys called on non-object\"),!W&&h)return h(e);var n=[];for(var r in e)e&&l.CY.call(e,r)&&n.push(r);if(W)for(var i=z.length,o=0;o<i;o++)e&&l.CY.call(e,z[o])&&n.push(z[o]);return n}function B(e,t,n,r){if(p)try{var i={enumerable:!0,configurable:!0};return n&&(i.get=n),r&&(i.set=r),p(e,t,i),!0}catch(e){}return !1}function $(e){return g&&N(e,(function(e,t){(I(t)||P(t))&&g(t);})),G(e)}var G=g||function(e){return e};function J(){var e=Date;return e.now?e.now():(new e).getTime()}function Y(e){return A(e)?e.name:f}function Z(e,t,n,r,i){var o=n;return e&&((o=e[t])===n||i&&!i(o)||r&&!r(n)||(o=n,e[t]=o)),o}function X(e,t){return w(e)?t:e}function Q(e){return !!e}var ee=n(5108),te=\"window\",ne=\"JSON\",re=null,ie=null;function oe(e){var t=(0, d.Rd)();return t&&t[e]?t[e]:e===te&&se()?window:null}function se(){return Boolean(typeof window===l.fK&&window)}function ae(){return Boolean(typeof document===l.fK&&document)?document:oe(\"document\")}function ce(){return Boolean(typeof navigator===l.fK&&navigator)?navigator:oe(\"navigator\")}function ue(){return Boolean(typeof JSON===l.fK&&JSON||null!==oe(ne))}function le(){return ue()?JSON||oe(ne):null}function de(){var e=ce();if(e&&(e.userAgent!==ie||null===re)){var t=((ie=e.userAgent)||f).toLowerCase();re=O(t,\"msie\")||O(t,\"trident/\");}return re}function fe(e){var t=Object[l.hB].toString.call(e),n=f;return \"[object Error]\"===t?n=\"{ stack: '\"+e.stack+\"', message: '\"+e.message+\"', name: '\"+e.name+\"'\":ue()&&(n=le().stringify(e)),t+n}var pe=null;function ge(e){return e?'\"'+e.replace(/\\\"/g,f)+'\"':f}function he(e,t){var n=typeof ee!==l.jA?ee:oe(\"console\");if(n){var r=\"log\";n[e]&&(r=e),k(n[r])&&n[r](t);}}var me,ve=function(){function e(e,t,n,r){void 0===n&&(n=!1);var i=this;i.messageId=e,i.message=(n?\"AI: \":\"AI (Internal): \")+e;var o=f;ue()&&(o=le().stringify(r));var s=(t?\" message:\"+ge(t):f)+(r?\" props:\"+ge(o):f);i.message+=s;}return e.dataType=\"MessageData\",e}(),ye=function(){function e(t){this.identifier=\"DiagnosticLogger\",this.queue=[];var n,i,o,s,a=0,c={};(0, r.Z)(e,this,(function(e){function r(t,n){if(!(a>=o)){var r=!0,s=\"AITR_\"+n.messageId;if(c[s]?r=!1:c[s]=!0,r&&(t<=i&&(e.queue.push(n),a++,u(1===t?\"error\":\"warn\",n)),a===o)){var l=\"Internal events throttle limit per PageView reached for this app.\",d=new ve(23,l,!1);e.queue.push(d),1===t?e.errorToConsole(l):e.warnToConsole(l);}}}function u(e,n){var r=function(e){var t,n=pe;return n||!0===e.disableDbgExt||(n=pe||((t=oe(\"Microsoft\"))&&(pe=t.ApplicationInsights),pe)),n?n.ChromeDbgExt:null}(t||{});r&&r.diagLog&&r.diagLog(e,n);}!function(e){n=X(e.loggingLevelConsole,0),i=X(e.loggingLevelTelemetry,1),o=X(e.maxMessageLimit,25),s=X(e.enableDebugExceptions,!1);}(t||{}),e.consoleLoggingLevel=function(){return n},e.telemetryLoggingLevel=function(){return i},e.maxInternalMessageLimit=function(){return o},e.enableDebugExceptions=function(){return s},e.throwInternal=function(t,i,o,a,l){void 0===l&&(l=!1);var d=new ve(i,o,l,a);if(s)throw fe(d);var f=1===t?\"errorToConsole\":\"warnToConsole\";if(D(d.message))u(\"throw\"+(1===t?\"Critical\":\"Warning\"),d);else {if(l){var p=+d.messageId;!c[p]&&n>=t&&(e[f](d.message),c[p]=!0);}else n>=t&&e[f](d.message);r(t,d);}},e.warnToConsole=function(e){he(\"warn\",e),u(\"warning\",e);},e.errorToConsole=function(e){he(\"error\",e),u(\"error\",e);},e.resetInternalMessageCount=function(){a=0,c={};},e.logInternalMessage=r;}));}return e.__ieDyn=1,e}();function Ce(e,t,n,r,i,o){void 0===o&&(o=!1),function(e){return e||new ye}(e).throwInternal(t,n,r,i,o);}function Se(e,t,n){var r=t.length,i=Te(e,t);if(i.length!==r){for(var o=0,s=i;void 0!==n[s];)o++,s=i.substring(0,147)+xe(o);i=s;}return i}function Te(e,t){var n;return t&&(t=K(t.toString())).length>150&&(n=t.substring(0,150),Ce(e,2,57,\"name is too long. It has been truncated to 150 characters.\",{name:t},!0)),n||t}function be(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=K(t)).toString().length>n&&(r=t.toString().substring(0,n),Ce(e,2,61,\"string value is too long. It has been truncated to \"+n+\" characters.\",{value:t},!0))),r||t}function _e(e,t){return ke(e,t,2048,66)}function Re(e,t){var n;return t&&t.length>32768&&(n=t.substring(0,32768),Ce(e,2,56,\"message is too long, it has been truncated to 32768 characters.\",{message:t},!0)),n||t}function De(e,t){var n;if(t){var r=\"\"+t;r.length>32768&&(n=r.substring(0,32768),Ce(e,2,52,\"exception is too long, it has been truncated to 32768 characters.\",{exception:t},!0));}return n||t}function we(e,t){if(t){var n={};N(t,(function(t,r){if(P(r)&&ue())try{r=le().stringify(r);}catch(t){Ce(e,2,49,\"custom property is not valid\",{exception:t},!0);}r=be(e,r,8192),t=Se(e,t,n),n[t]=r;})),t=n;}return t}function Ee(e,t){if(t){var n={};N(t,(function(t,r){t=Se(e,t,n),n[t]=r;})),t=n;}return t}function Pe(e,t){return t?ke(e,t,128,69).toString():t}function ke(e,t,n,r){var i;return t&&(t=K(t)).length>n&&(i=t.substring(0,n),Ce(e,2,r,\"input is too long, it has been truncated to \"+n+\" characters.\",{data:t},!0)),i||t}function xe(e){var t=\"00\"+e;return t.substr(t.length-3)}(me={MAX_NAME_LENGTH:150,MAX_ID_LENGTH:128,MAX_PROPERTY_LENGTH:8192,MAX_STRING_LENGTH:1024,MAX_URL_LENGTH:2048,MAX_MESSAGE_LENGTH:32768,MAX_EXCEPTION_LENGTH:32768}).sanitizeKeyAndAddUniqueness=Se,me.sanitizeKey=Te,me.sanitizeString=be,me.sanitizeUrl=_e,me.sanitizeMessage=Re,me.sanitizeException=De,me.sanitizeProperties=we,me.sanitizeMeasurements=Ee,me.sanitizeId=Pe,me.sanitizeInput=ke,me.padNumber=xe,me.trim=K;var Ne=function(){function e(e,t,n,r){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var i=this;i.ver=2,i.name=be(e,t)||u,i.properties=we(e,n),i.measurements=Ee(e,r);}return e.envelopeType=\"Microsoft.ApplicationInsights.{0}.Event\",e.dataType=\"EventData\",e}(),Oe=function(){function e(e,t,n,r,i){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var o=this;o.ver=2,t=t||u,o.message=Re(e,t),o.properties=we(e,r),o.measurements=Ee(e,i),n&&(o.severityLevel=n);}return e.envelopeType=\"Microsoft.ApplicationInsights.{0}.Message\",e.dataType=\"MessageData\",e}();function Ie(e){(isNaN(e)||e<0)&&(e=0);var t=\"\"+(e=Math.round(e))%1e3,n=\"\"+Math.floor(e/1e3)%60,r=\"\"+Math.floor(e/6e4)%60,i=\"\"+Math.floor(e/36e5)%24,o=Math.floor(e/864e5);return t=1===t.length?\"00\"+t:2===t.length?\"0\"+t:t,n=n.length<2?\"0\"+n:n,r=r.length<2?\"0\"+r:r,(o>0?o+\".\":\"\")+(i=i.length<2?\"0\"+i:i)+\":\"+r+\":\"+n+\".\"+t}var Ae=function(){function e(e,t,n,r,i,o,s){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var a=this;a.ver=2,a.id=Pe(e,s),a.url=_e(e,n),a.name=be(e,t)||u,isNaN(r)||(a.duration=Ie(r)),a.properties=we(e,i),a.measurements=Ee(e,o);}return e.envelopeType=\"Microsoft.ApplicationInsights.{0}.Pageview\",e.dataType=\"PageviewData\",e}(),Fe=function(){function e(e,t,n,r,i,o,s){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var a=this;a.ver=2,a.url=_e(e,n),a.name=be(e,t)||u,a.properties=we(e,i),a.measurements=Ee(e,o),s&&(a.domProcessing=s.domProcessing,a.duration=s.duration,a.networkConnect=s.networkConnect,a.perfTotal=s.perfTotal,a.receivedResponse=s.receivedResponse,a.sentRequest=s.sentRequest);}return e.envelopeType=\"Microsoft.ApplicationInsights.{0}.PageviewPerformance\",e.dataType=\"PageviewPerformanceData\",e}();function Le(e,t){var n=e;return n&&!F(n)&&(JSON&&JSON.stringify?(n=JSON.stringify(e),!t||n&&\"{}\"!==n||(n=k(e.toString)?e.toString():\"\"+e)):n=e+\" - (Missing JSON.stringify)\"),n||\"\"}function qe(e,t){var n=e;return e&&(n&&!F(n)&&(n=e.message||e.description||n),n&&!F(n)&&(n=Le(n,!0)),e.filename&&(n=n+\" @\"+(e.filename||\"\")+\":\"+(e.lineno||\"?\")+\":\"+(e.colno||\"?\"))),t&&\"String\"!==t&&\"Object\"!==t&&\"Error\"!==t&&-1===(n||\"\").indexOf(t)&&(n=t+\": \"+n),n||\"\"}function Me(e){return e&&e.src&&F(e.src)&&e.obj&&I(e.obj)}function je(e){var t=e||\"\";F(t)||(t=F(t.stack)?t.stack:\"\"+t);var n=t.split(\"\\n\");return {src:t,obj:n}}function Ue(e){var t=null;if(e)try{if(e.stack)t=je(e.stack);else if(e.error&&e.error.stack)t=je(e.error.stack);else if(e.exception&&e.exception.stack)t=je(e.exception.stack);else if(Me(e))t=e;else if(Me(e.stackDetails))t=e.stackDetails;else if(window&&window.opera&&e.message)t=function(e){for(var t=[],n=e.split(\"\\n\"),r=0;r<n.length;r++){var i=n[r];n[r+1]&&(i+=\"@\"+n[r+1],r++),t.push(i);}return {src:e,obj:t}}(e.message);else if(e.reason&&e.reason.stack)t=je(e.reason.stack);else if(F(e))t=je(e);else {var n=e.message||e.description||\"\";F(e.errorSrc)&&(n&&(n+=\"\\n\"),n+=\" from \"+e.errorSrc),n&&(t=je(n));}}catch(e){t=je(e);}return t||{src:\"\",obj:null}}function He(e){var t=\"\";if(e&&!(t=e.typeName||e.name||\"\"))try{var n=/function (.{1,200})\\(/.exec(e.constructor.toString());t=n&&n.length>1?n[1]:\"\";}catch(e){}return t}function Ke(e){if(e)try{if(!F(e)){var t=He(e),n=Le(e,!1);return n&&\"{}\"!==n||(e.error&&(t=He(e=e.error)),n=Le(e,!0)),0!==n.indexOf(t)&&\"String\"!==t?t+\":\"+n:n}}catch(e){}return \"\"+(e||\"\")}var We=function(){function e(e,t,n,r,i,o){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var s=this;s.ver=2,function(e){try{if(P(e))return \"ver\"in e&&\"exceptions\"in e&&\"properties\"in e}catch(e){}return !1}(t)?(s.exceptions=t.exceptions||[],s.properties=t.properties,s.measurements=t.measurements,t.severityLevel&&(s.severityLevel=t.severityLevel),t.id&&(s.id=t.id),t.problemGroup&&(s.problemGroup=t.problemGroup),w(t.isManual)||(s.isManual=t.isManual)):(n||(n={}),s.exceptions=[new ze(e,t,n)],s.properties=we(e,n),s.measurements=Ee(e,r),i&&(s.severityLevel=i),o&&(s.id=o));}return e.CreateAutoException=function(e,t,n,r,i,o,s,a){var c,u=He(i||o||e);return (c={}).message=qe(e,u),c.url=t,c.lineNumber=n,c.columnNumber=r,c.error=Ke(i||o||e),c.evt=Ke(o||e),c.typeName=u,c.stackDetails=Ue(s||i||o),c.errorSrc=a,c},e.CreateFromInterface=function(t,n,r,o){var s=n.exceptions&&U(n.exceptions,(function(e){return ze.CreateFromInterface(t,e)}));return new e(t,(0, i.uc)((0, i.uc)({},n),{exceptions:s}),r,o)},e.prototype.toInterface=function(){var e,t=this,n=t.exceptions,r=t.properties,i=t.measurements,o=t.severityLevel,s=t.problemGroup,a=t.id,c=t.isManual,u=n instanceof Array&&U(n,(function(e){return e.toInterface()}))||void 0;return (e={ver:\"4.0\"}).exceptions=u,e.severityLevel=o,e.properties=r,e.measurements=i,e.problemGroup=s,e.id=a,e.isManual=c,e},e.CreateSimpleException=function(e,t,n,r,i,o){var s;return {exceptions:[(s={},s.hasFullStack=!0,s.message=e,s.stack=i,s.typeName=t,s)]}},e.envelopeType=\"Microsoft.ApplicationInsights.{0}.Exception\",e.dataType=\"ExceptionData\",e.formatError=Ke,e}(),ze=function(){function e(e,t,n){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var r=this;if(function(e){try{if(P(e))return \"hasFullStack\"in e&&\"typeName\"in e}catch(e){}return !1}(t))r.typeName=t.typeName,r.message=t.message,r.stack=t.stack,r.parsedStack=t.parsedStack||[],r.hasFullStack=t.hasFullStack;else {var i=t,o=i&&i.evt;A(i)||(i=i.error||o||i),r.typeName=be(e,He(i))||u,r.message=Re(e,qe(t||i,r.typeName))||u;var s=t.stackDetails||Ue(t);r.parsedStack=function(e){var t,n=e.obj;if(n&&n.length>0){t=[];var r=0,i=0;if(M(n,(function(e){var n=e.toString();if(Ve.regex.test(n)){var o=new Ve(n,r++);i+=o.sizeInBytes,t.push(o);}})),i>32768)for(var o=0,s=t.length-1,a=0,c=o,u=s;o<s;){if((a+=t[o].sizeInBytes+t[s].sizeInBytes)>32768){var l=u-c+1;t.splice(c,l);break}c=o,u=s,o++,s--;}}return t}(s),I(r.parsedStack)&&U(r.parsedStack,(function(t){return t.assembly=be(e,t.assembly)})),r.stack=De(e,function(e){var t=\"\";return e&&(e.obj?M(e.obj,(function(e){t+=e+\"\\n\";})):t=e.src||\"\"),t}(s)),r.hasFullStack=I(r.parsedStack)&&r.parsedStack.length>0,n&&(n.typeName=n.typeName||r.typeName);}}return e.prototype.toInterface=function(){var e,t=this,n=t.parsedStack instanceof Array&&U(t.parsedStack,(function(e){return e.toInterface()}));return (e={id:t.id,outerId:t.outerId,typeName:t.typeName,message:t.message,hasFullStack:t.hasFullStack,stack:t.stack}).parsedStack=n||void 0,e},e.CreateFromInterface=function(t,n){var r=n.parsedStack instanceof Array&&U(n.parsedStack,(function(e){return Ve.CreateFromInterface(e)}))||n.parsedStack;return new e(t,(0, i.uc)((0, i.uc)({},n),{parsedStack:r}))},e}(),Ve=function(){function e(t,n){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var r=this;if(r.sizeInBytes=0,\"string\"==typeof t){var i=t;r.level=n,r.method=\"<no_method>\",r.assembly=K(i),r.fileName=\"\",r.line=0;var o=i.match(e.regex);o&&o.length>=5&&(r.method=K(o[2])||r.method,r.fileName=K(o[4]),r.line=parseInt(o[5])||0);}else r.level=t.level,r.method=t.method,r.assembly=t.assembly,r.fileName=t.fileName,r.line=t.line,r.sizeInBytes=0;r.sizeInBytes+=r.method.length,r.sizeInBytes+=r.fileName.length,r.sizeInBytes+=r.assembly.length,r.sizeInBytes+=e.baseSize,r.sizeInBytes+=r.level.toString().length,r.sizeInBytes+=r.line.toString().length;}return e.CreateFromInterface=function(t){return new e(t,null)},e.prototype.toInterface=function(){var e=this;return {level:e.level,method:e.method,assembly:e.assembly,fileName:e.fileName,line:e.line}},e.regex=/^([\\s]+at)?[\\s]{0,50}([^\\@\\()]+?)[\\s]{0,50}(\\@|\\()([^\\(\\n]+):([0-9]+):([0-9]+)(\\)?)$/,e.baseSize=58,e}(),Be=function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0;},$e=function(){function e(e,t,n,r,i,o,s,a,c){this.aiDataContract={ver:1,metrics:1,properties:0};var l=this;l.ver=2;var d=new Be;d.count=r>0?r:void 0,d.max=isNaN(o)||null===o?void 0:o,d.min=isNaN(i)||null===i?void 0:i,d.name=be(e,t)||u,d.value=n,d.stdDev=isNaN(s)||null===s?void 0:s,l.metrics=[d],l.properties=we(e,a),l.measurements=Ee(e,c);}return e.envelopeType=\"Microsoft.ApplicationInsights.{0}.Metric\",e.dataType=\"MetricData\",e}(),Ge=\"toGMTString\",Je=\"toUTCString\",Ye=null,Ze=null,Xe=null,Qe=ae(),et={},tt={};function nt(e){return !e||e.isEnabled()}function rt(e,t){return !!(t&&e&&I(e.ignoreCookies))&&-1!==e.ignoreCookies.indexOf(t)}function it(e,t){var n,r=function(e){var t=e.cookieCfg=e.cookieCfg||{};if(Z(t,\"domain\",e.cookieDomain,E,w),Z(t,\"path\",e.cookiePath||\"/\",null,w),w(t.enabled)){var n=void 0;D(e.isCookieUseDisabled)||(n=!e.isCookieUseDisabled),D(e.disableCookiesUsage)||(n=!e.disableCookiesUsage),t.enabled=n;}return t}(e||tt),i=r.path||\"/\",o=r.domain,s=!1!==r.enabled,a=((n={isEnabled:function(){var e=s&&ot(t),n=tt._ckMgr;return e&&n&&a!==n&&(e=nt(n)),e}}).setEnabled=function(e){s=!1!==e;},n.set=function(e,t,n,s,c){var u,d=!1;if(nt(a)&&!function(e,t){return !!(t&&e&&I(e.blockedCookies)&&-1!==e.blockedCookies.indexOf(t))||rt(e,t)}(r,e)){var p={},g=K(t||f),h=g.indexOf(\";\");if(-1!==h&&(g=K(t.substring(0,h)),p=st(t.substring(h+1))),Z(p,\"domain\",s||o,Q,D),!w(n)){var m=de();if(D(p.expires)){var v=J()+1e3*n;if(v>0){var C=new Date;C.setTime(v),Z(p,\"expires\",at(C,m?Ge:Je)||at(C,m?Ge:Je)||f,Q);}}m||Z(p,\"max-age\",f+n,null,D);}var S=typeof location===l.fK&&location?location:oe(\"location\");S&&\"https:\"===S.protocol&&(Z(p,\"secure\",null,null,D),null===Ze&&(u=(ce()||{}).userAgent,Ze=!(F(u)&&(O(u,\"CPU iPhone OS 12\")||O(u,\"iPad; CPU OS 12\")||O(u,\"Macintosh; Intel Mac OS X 10_14\")&&O(u,\"Version/\")&&O(u,\"Safari\")||O(u,\"Macintosh; Intel Mac OS X 10_14\")&&function(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=y?e.endsWith(t):function(e,t){var n=!1,r=t?t.length:0,i=e?e.length:0;if(r&&i&&i>=r&&!(n=e===t)){for(var o=i-1,s=r-1;s>=0;s--){if(e[o]!=t[s])return !1;o--;}n=!0;}return n}(e,t)),n}(u,\"AppleWebKit/605.1.15 (KHTML, like Gecko)\")||O(u,\"Chrome/5\")||O(u,\"Chrome/6\")||O(u,\"UnrealEngine\")&&!O(u,\"Chrome\")||O(u,\"UCBrowser/12\")||O(u,\"UCBrowser/11\")))),Ze&&Z(p,\"SameSite\",\"None\",null,D)),Z(p,\"path\",c||i,null,D),(r.setCookie||lt)(e,ct(g,p)),d=!0;}return d},n.get=function(e){var t=f;return nt(a)&&!rt(r,e)&&(t=(r.getCookie||ut)(e)),t},n.del=function(e,t){var n=!1;return nt(a)&&(n=a.purge(e,t)),n},n.purge=function(e,n){var i,o=!1;if(ot(t)){var s=((i={}).path=n||\"/\",i.expires=\"Thu, 01 Jan 1970 00:00:01 GMT\",i);de()||(s[\"max-age\"]=\"0\"),(r.delCookie||lt)(e,ct(f,s)),o=!0;}return o},n);return a._ckMgr=a,a}function ot(e){if(null===Ye){Ye=!1;try{Ye=void 0!==(Qe||{}).cookie;}catch(t){Ce(e,2,68,\"Cannot access document.cookie - \"+Y(t),{exception:fe(t)});}}return Ye}function st(e){var t={};return e&&e.length&&M(K(e).split(\";\"),(function(e){if(e=K(e||f)){var n=e.indexOf(\"=\");-1===n?t[e]=null:t[K(e.substring(0,n))]=K(e.substring(n+1));}})),t}function at(e,t){return k(e[t])?e[t]():null}function ct(e,t){var n=e||f;return N(t,(function(e,t){n+=\"; \"+e+(w(t)?f:\"=\"+t);})),n}function ut(e){var t=f;if(Qe){var n=Qe.cookie||f;Xe!==n&&(et=st(n),Xe=n),t=K(et[e]||f);}return t}function lt(e,t){Qe&&(Qe.cookie=e+\"=\"+t);}var dt=4294967296,ft=4294967295,pt=!1,gt=123456789,ht=987654321;function mt(e){e<0&&(e>>>=0),gt=123456789+e&ft,ht=987654321-e&ft,pt=!0;}function vt(){try{var e=2147483647&J();mt((Math.random()*dt^e)+e);}catch(e){}}function yt(e){var t=0,n=oe(\"crypto\")||oe(\"msCrypto\");return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&ft),0===t&&de()&&(pt||vt(),t=Ct()&ft),0===t&&(t=Math.floor(dt*Math.random()|0)),e||(t>>>=0),t}function Ct(e){var t=((ht=36969*(65535&ht)+(ht>>16)&ft)<<16)+(65535&(gt=18e3*(65535>)+(gt>>16)&ft))>>>0&ft|0;return e||(t>>>=0),t}function St(e){void 0===e&&(e=22);for(var t=yt()>>>0,n=0,r=f;r.length<e;)n++,r+=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\".charAt(63&t),t>>>=6,5===n&&(t=(yt()<<2&4294967295|3&t)>>>0,n=0);return r}var Tt=l.RJ,bt=\".\"+St(6),_t=0;function Rt(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function Dt(e,t){return void 0===t&&(t=!1),x(e+_t+++(t?\".2.8.11\":f)+bt)}var wt,Et=(Dt(\"aiEvtPageHide\"),Dt(\"aiEvtPageShow\"),/\\.[\\.]+/g),Pt=/[\\.]+$/,kt=1,xt=wt={id:Dt(\"_aiData-events.2.8.11\"),accept:function(e){return Rt(e)},get:function(e,t,n,r){var i=e[wt.id];return i?i[x(t)]:(r&&((i=function(e,t){var n=t[e.id];if(!n){n={};try{Rt(t)&&(function(e,t,n){if(Tt)try{return Tt(e,t,{value:n,enumerable:!1,configurable:!0}),!0}catch(e){}return !1}(t,e.id,n)||(t[e.id]=n));}catch(e){}}return n}(wt,e))[x(t)]=n),n)},kill:function(e,t){if(e&&e[t])try{delete e[t];}catch(e){}}},Nt=/^([^.]*)(?:\\.(.+)|)/;function Ot(e){return e&&e.replace?e.replace(/^[\\s\\.]+|(?=[\\s\\.])[\\.\\s]+$/g,f):e}function It(e,t,n,r,i){var o;void 0===i&&(i=!1);var s=!1;if(e)try{var a=function(e,t){var n;if(t){var r=f;I(t)?(r=f,M(t,(function(e){(e=Ot(e))&&(\".\"!==e[0]&&(e=\".\"+e),r+=e);}))):r=Ot(t),r&&(\".\"!==r[0]&&(r=\".\"+r),e=(e||f)+r);}var i=Nt.exec(e||f)||[];return (n={}).type=i[1],n.ns=(i[2]||f).replace(Et,\".\").replace(Pt,f).split(\".\").sort().join(\".\"),n}(t,r);if(s=function(e,t,n,r){var i=!1;return e&&t&&t.type&&n&&(e.addEventListener?(e.addEventListener(t.type,n,r),i=!0):e.attachEvent&&(e.attachEvent(\"on\"+t.type,n),i=!0)),i}(e,a,n,i),s&&xt.accept(e)){var c=((o={guid:kt++,evtName:a}).handler=n,o.capture=i,o);(function(e,t,n){void 0===n&&(n=!0);var r=xt.get(e,\"events\",{},n),i=r[t];return i||(i=r[t]=[]),i})(e,a.type).push(c);}}catch(e){}return s}var At,Ft=null;function Lt(){for(var e,t=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\"],n=f,r=0;r<4;r++)n+=t[15&(e=yt())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var i=t[8+(3&yt())|0];return n.substr(0,8)+n.substr(9,4)+\"4\"+n.substr(13,3)+i+n.substr(16,3)+n.substr(19,12)}var qt={_canUseCookies:void 0,isTypeof:function(e,t){return typeof e===t},isUndefined:D,isNullOrUndefined:w,hasOwnProperty:function(e,t){return !(!e||!l.CY.call(e,t))},isFunction:k,isObject:P,isDate:function(e){return !(!e||\"[object Date]\"!==T.call(e))},isArray:I,isError:A,isString:F,isNumber:function(e){return \"number\"==typeof e},isBoolean:L,toISOString:q,arrForEach:M,arrIndexOf:j,arrMap:U,arrReduce:H,strTrim:K,objCreate:d.pu,objKeys:V,objDefineAccessors:B,addEventHandler:function(e,t,n){var r=!1,i=se()?window:oe(te);i&&(r=It(i,e,t,n),r=It(i.body,e,t,n)||r);var o=ae();return o&&(r=It(o,e,t,n)||r),r},dateNow:J,isIE:de,disableCookies:function(){(n=function(e,t){var n=it._ckMgr||tt._ckMgr;return n||(n=it._ckMgr=it(e,t),tt._ckMgr=n),n}(e,t),r=qt._canUseCookies,null===Ft&&(Ft=[],At=r,B(qt,\"_canUseCookies\",(function(){return At}),(function(e){At=e,M(Ft,(function(t){t.setEnabled(e);}));}))),-1===j(Ft,n)&&Ft.push(n),L(r)&&n.setEnabled(r),L(At)&&n.setEnabled(At),n).setEnabled(!1);var e,t,n,r;},newGuid:function(){var e=Lt();return e.substring(0,8)+\"-\"+e.substring(8,12)+\"-\"+e.substring(12,16)+\"-\"+e.substring(16,20)+\"-\"+e.substring(20)},perfNow:function(){var e=oe(\"performance\");return e&&e.now?e.now():J()},newId:St,randomValue:function(e){return e>0?Math.floor(yt()/ft*(e+1))>>>0:0},random32:yt,mwcRandomSeed:function(e){e?mt(e):vt();},mwcRandom32:Ct,generateW3CId:Lt};function Mt(e){var t={};return N(e,(function(e,n){t[e]=n,t[n]=e;})),$(t)}var jt,Ut=(jt={},N({requestContextHeader:[0,\"Request-Context\"],requestContextTargetKey:[1,\"appId\"],requestContextAppIdFormat:[2,\"appId=cid-v1:\"],requestIdHeader:[3,\"Request-Id\"],traceParentHeader:[4,\"traceparent\"],traceStateHeader:[5,\"tracestate\"],sdkContextHeader:[6,\"Sdk-Context\"],sdkContextHeaderAppIdRequest:[7,\"appId\"],requestContextHeaderLowerCase:[8,\"request-context\"]},(function(e,t){jt[e]=t[1],jt[t[0]]=t[1];})),$(jt)),Ht=Mt({LocalStorage:0,SessionStorage:1}),Kt=void Mt({AI:0,AI_AND_W3C:1,W3C:2});function Wt(e){try{if(w((0,d.Rd)()))return null;var t=(new Date).toString(),n=oe(e===Ht.LocalStorage?\"localStorage\":\"sessionStorage\");n.setItem(t,t);var r=n.getItem(t)!==t;if(n.removeItem(t),!r)return n}catch(e){}return null}function zt(){return Vt()?Wt(Ht.SessionStorage):null}function Vt(e){return (e||void 0===Kt)&&(Kt=!!Wt(Ht.SessionStorage)),Kt}function Bt(e,t,n){var r=zt();if(null!==r)try{return r.setItem(t,n),!0}catch(t){Kt=!1,Ce(e,2,4,\"Browser failed write to session storage. \"+Y(t),{exception:fe(t)});}return !1}var $t=ae()||{},Gt=0,Jt=[null,null,null,null,null];function Yt(e,t){var n=function(e,t){var n=null;if(e){var r=e.match(/(\\w{1,150}):\\/\\/([^\\/:]{1,256})(:\\d{1,20})?/i);if(null!=r&&r.length>2&&F(r[2])&&r[2].length>0&&(n=r[2]||\"\",t&&r.length>2)){var i=(r[1]||\"\").toLowerCase(),o=r[3]||\"\";(\"http\"===i&&\":80\"===o||\"https\"===i&&\":443\"===o)&&(o=\"\"),n+=o;}}return n}(e,t)||\"\";if(n){var r=n.match(/(www\\d{0,5}\\.)?([^\\/:]{1,256})(:\\d{1,20})?/i);if(null!=r&&r.length>3&&F(r[2])&&r[2].length>0)return r[2]+(r[3]||\"\")}return n}var Zt=[a+c,\"https://breeze.aimon.applicationinsights.io/v2/track\",\"https://dc-int.services.visualstudio.com/v2/track\"];function Xt(e){return -1!==j(Zt,e.toLowerCase())}var Qt=function(){function e(e,t,n,r,i,o,s,a,c,u,l,d){void 0===c&&(c=\"Ajax\"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var f=this;f.ver=2,f.id=t,f.duration=Ie(i),f.success=o,f.resultCode=s+\"\",f.type=be(e,c);var p=function(e,t,n,r){var i,o,s,a,c,u=r,l=r;if(t&&t.length>0){var d=(o=t,c=(a=Jt)[s=Gt],$t.createElement?a[s]||(c=a[s]=$t.createElement(\"a\")):c={host:Yt(o,!0)},c.href=o,++s>=a.length&&(s=0),Gt=s,c);if(i=d.host,!u)if(null!=d.pathname){var f=0===d.pathname.length?\"/\":d.pathname;\"/\"!==f.charAt(0)&&(f=\"/\"+f),l=d.pathname,u=be(e,n?n+\" \"+f:f);}else u=be(e,t);}else i=r,u=r;return {target:i,name:u,data:l}}(e,n,a,r);f.data=_e(e,r)||p.data,f.target=be(e,p.target),u&&(f.target=\"\".concat(f.target,\" | \").concat(u)),f.name=be(e,p.name),f.properties=we(e,l),f.measurements=Ee(e,d);}return e.envelopeType=\"Microsoft.ApplicationInsights.{0}.RemoteDependency\",e.dataType=\"RemoteDependencyData\",e}(),en=\"\",tn=l.RJ,nn=l.Pw.freeze,rn=(l.Pw.seal,l.Pw.keys),on=String[l.hB],sn=(on.trim,on.endsWith,on.startsWith,Date[l.hB].toISOString),an=Array.isArray,cn=l.V4.toString,un=l.CY.toString,ln=un.call(l.Pw),dn=/-([a-z])/g,fn=/([^\\w\\d_$])/g,pn=/^(\\d+[\\w\\d_$])/,gn=Object.getPrototypeOf;function hn(e){return void 0===e||typeof e===l.jA}function mn(e){return null===e||hn(e)}function vn(e){return !(!e||typeof e!==l.fK)}function yn(e){return !(!e||typeof e!==l.cb)}function Cn(e){var t=e;return t&&_n(t)&&(t=(t=(t=t.replace(dn,(function(e,t){return t.toUpperCase()}))).replace(fn,\"_\")).replace(pn,(function(e,t){return \"_\"+t}))),t}function Sn(e,t){if(e)for(var n in e)l.CY.call(e,n)&&t.call(e,n,e[n]);}function Tn(e,t){return !(!e||!t)&&-1!==e.indexOf(t)}var bn=an||function(e){return !(!e||\"[object Array]\"!==cn.call(e))};function _n(e){return \"string\"==typeof e}function Rn(e){return \"boolean\"==typeof e}function Dn(e){var t=!1;if(e&&\"object\"==typeof e){var n=gn?gn(e):function(e){if(e){if(gn)return gn(e);var t=e.__proto__||e[l.hB]||e.constructor;if(t)return t}return null}(e);n?(n.constructor&&l.CY.call(n,\"constructor\")&&(n=n.constructor),t=typeof n===l.cb&&un.call(n)===ln):t=!0;}return t}function wn(e,t,n){var r=e.length;try{for(var i=0;i<r&&(!(i in e)||-1!==t.call(n||e,e[i],i,e));i++);}catch(e){}}var En=!{toString:null}.propertyIsEnumerable(\"toString\"),Pn=[\"toString\",\"toLocaleString\",\"valueOf\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"constructor\"];function kn(e){var t=typeof e;if(t===l.cb||t===l.fK&&null!==e||(0, d.ZU)(\"objKeys called on non-object\"),!En&&rn)return rn(e);var n=[];for(var r in e)e&&l.CY.call(e,r)&&n.push(r);if(En)for(var i=Pn.length,o=0;o<i;o++)e&&l.CY.call(e,Pn[o])&&n.push(Pn[o]);return n}var xn=nn||function(e){return e};function Nn(){var e=Date;return e.now?e.now():(new e).getTime()}function On(e){return (t=e)&&\"[object Error]\"===cn.call(t)?e.name:en;var t;}function In(e,t,n,r,i){var o=n;return e&&((o=e[t])===n||i&&!i(o)||r&&!r(n)||(o=n,e[t]=o)),o}function An(e,t){return mn(e)?t:e}function Fn(e){return !!e}function Ln(e,t,n,r,i){e&&t&&n&&(!1!==i||hn(e[t]))&&(e[t]=function(e,t){var n=null,r=null;return yn(e)?n=e:r=e,function(){var e=arguments;if(n&&(r=n()),r)return r[t].apply(r,e)}}(n,r));}function qn(e){return e&&l.rl&&(e=(0, l.Pw)((0, l.rl)({},e))),e}function Mn(e,t,n,r,i,o){var s=arguments,a=s[0]||{},c=s.length,u=!1,d=1;for(c>0&&Rn(a)&&(u=a,a=s[d]||{},d++),vn(a)||(a={});d<c;d++){var f=s[d],p=bn(f),g=vn(f);for(var h in f){var m=p&&h in f||g&&l.CY.call(f,h);if(m){var v=f[h],y=void 0;if(u&&v&&((y=bn(v))||Dn(v))){var C=a[h];y?bn(C)||(C=[]):Dn(C)||(C={}),v=Mn(u,C,v);}void 0!==v&&(a[h]=v);}}}return a}var jn=n(5108),Un=\"window\",Hn=\"JSON\",Kn=\"msie\",Wn=\"trident/\",zn=\"XMLHttpRequest\",Vn=null,Bn=null,$n=null,Gn=null;function Jn(e,t){var n=!1;if(e){try{if(!(n=t in e)){var r=e[l.hB];r&&(n=t in r);}}catch(e){}if(!n)try{n=!hn((new e)[t]);}catch(e){}}return n}function Yn(e){var t=(0, d.Rd)();return t&&t[e]?t[e]:e===Un&&Zn()?window:null}function Zn(){return Boolean(typeof window===l.fK&&window)}function Xn(){return Zn()?window:Yn(Un)}function Qn(){return Boolean(typeof document===l.fK&&document)?document:Yn(\"document\")}function er(){return Boolean(typeof navigator===l.fK&&navigator)}function tr(){return er()?navigator:Yn(\"navigator\")}function nr(){return Boolean(typeof JSON===l.fK&&JSON||null!==Yn(Hn))}function rr(){return nr()?JSON||Yn(Hn):null}function ir(e){var t=Object[l.hB].toString.call(e),n=en;return \"[object Error]\"===t?n=\"{ stack: '\"+e.stack+\"', message: '\"+e.message+\"', name: '\"+e.name+\"'\":nr()&&(n=rr().stringify(e)),t+n}function or(){return null===Gn&&(Gn=er()&&Boolean(tr().sendBeacon)),Gn}function sr(e){var t=!1;try{t=!!Yn(\"fetch\");var n=Yn(\"Request\");t&&e&&n&&(t=Jn(n,\"keepalive\"));}catch(e){}return t}function ar(){return null===$n&&($n=typeof XDomainRequest!==l.jA)&&cr()&&($n=$n&&!Jn(Yn(zn),\"withCredentials\")),$n}function cr(){var e=!1;try{e=!!Yn(zn);}catch(e){}return e}var ur=null;function lr(e){return e?'\"'+e.replace(/\\\"/g,en)+'\"':en}function dr(e,t){var n=typeof jn!==l.jA?jn:Yn(\"console\");if(n){var r=\"log\";n[e]&&(r=e),yn(n[r])&&n[r](t);}}var fr=function(){function e(e,t,n,r){void 0===n&&(n=!1);var i=this;i.messageId=e,i.message=(n?\"AI: \":\"AI (Internal): \")+e;var o=en;nr()&&(o=rr().stringify(r));var s=(t?\" message:\"+lr(t):en)+(r?\" props:\"+lr(o):en);i.message+=s;}return e.dataType=\"MessageData\",e}();function pr(e,t){return (e||{}).logger||new gr(t)}var gr=function(){function e(t){this.identifier=\"DiagnosticLogger\",this.queue=[];var n,i,o,s,a=0,c={};(0, r.Z)(e,this,(function(e){function r(t,n){if(!(a>=o)){var r=!0,s=\"AITR_\"+n.messageId;if(c[s]?r=!1:c[s]=!0,r&&(t<=i&&(e.queue.push(n),a++,u(1===t?\"error\":\"warn\",n)),a===o)){var l=\"Internal events throttle limit per PageView reached for this app.\",d=new fr(23,l,!1);e.queue.push(d),1===t?e.errorToConsole(l):e.warnToConsole(l);}}}function u(e,n){var r=function(e){var t,n=ur;return n||!0===e.disableDbgExt||(n=ur||((t=Yn(\"Microsoft\"))&&(ur=t.ApplicationInsights),ur)),n?n.ChromeDbgExt:null}(t||{});r&&r.diagLog&&r.diagLog(e,n);}!function(e){n=An(e.loggingLevelConsole,0),i=An(e.loggingLevelTelemetry,1),o=An(e.maxMessageLimit,25),s=An(e.enableDebugExceptions,!1);}(t||{}),e.consoleLoggingLevel=function(){return n},e.telemetryLoggingLevel=function(){return i},e.maxInternalMessageLimit=function(){return o},e.enableDebugExceptions=function(){return s},e.throwInternal=function(t,i,o,a,l){void 0===l&&(l=!1);var d=new fr(i,o,l,a);if(s)throw ir(d);var f=1===t?\"errorToConsole\":\"warnToConsole\";if(hn(d.message))u(\"throw\"+(1===t?\"Critical\":\"Warning\"),d);else {if(l){var p=+d.messageId;!c[p]&&n>=t&&(e[f](d.message),c[p]=!0);}else n>=t&&e[f](d.message);r(t,d);}},e.warnToConsole=function(e){dr(\"warn\",e),u(\"warning\",e);},e.errorToConsole=function(e){dr(\"error\",e),u(\"error\",e);},e.resetInternalMessageCount=function(){a=0,c={};},e.logInternalMessage=r;}));}return e.__ieDyn=1,e}();function hr(e){return e||new gr}function mr(e,t,n,r,i,o){void 0===o&&(o=!1),hr(e).throwInternal(t,n,r,i,o);}function vr(e,t){hr(e).warnToConsole(t);}var yr=4294967296,Cr=4294967295,Sr=!1,Tr=123456789,br=987654321;function _r(){try{var e=2147483647&Nn();(t=(Math.random()*yr^e)+e)<0&&(t>>>=0),Tr=123456789+t&Cr,br=987654321-t&Cr,Sr=!0;}catch(e){}var t;}function Rr(e){var t=0,n=Yn(\"crypto\")||Yn(\"msCrypto\");return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&Cr),0===t&&function(){var e=tr();if(e&&(e.userAgent!==Bn||null===Vn)){var t=((Bn=e.userAgent)||en).toLowerCase();Vn=Tn(t,Kn)||Tn(t,Wn);}return Vn}()&&(Sr||_r(),t=function(e){var t=((br=36969*(65535&br)+(br>>16)&Cr)<<16)+(65535&(Tr=18e3*(65535&Tr)+(Tr>>16)&Cr))>>>0&Cr|0;return t>>>=0}()&Cr),0===t&&(t=Math.floor(yr*Math.random()|0)),e||(t>>>=0),t}var Dr=l.RJ,wr=\".\"+function(e){void 0===e&&(e=22);for(var t=Rr()>>>0,n=0,r=en;r.length<e;)n++,r+=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\".charAt(63&t),t>>>=6,5===n&&(t=(Rr()<<2&4294967295|3&t)>>>0,n=0);return r}(6),Er=0;function Pr(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function kr(e,t){return void 0===t&&(t=!1),Cn(e+Er+++(t?\".2.8.11\":en)+wr)}function xr(e){var t={id:kr(\"_aiData-\"+(e||en)+\".2.8.11\"),accept:function(e){return Pr(e)},get:function(e,n,r,i){var o=e[t.id];return o?o[Cn(n)]:(i&&((o=function(e,t){var n=t[e.id];if(!n){n={};try{Pr(t)&&(function(e,t,n){if(Dr)try{return Dr(e,t,{value:n,enumerable:!1,configurable:!0}),!0}catch(e){}return !1}(t,e.id,n)||(t[e.id]=n));}catch(e){}}return n}(t,e))[Cn(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t];}catch(e){}}};return t}var Nr=\"events\",Or=(kr(\"aiEvtPageHide\"),kr(\"aiEvtPageShow\"),/\\.[\\.]+/g),Ir=/[\\.]+$/,Ar=1,Fr=xr(\"events\"),Lr=/^([^.]*)(?:\\.(.+)|)/;function qr(e){return e&&e.replace?e.replace(/^[\\s\\.]+|(?=[\\s\\.])[\\.\\s]+$/g,en):e}function Mr(e,t){var n;if(t){var r=en;bn(t)?(r=en,wn(t,(function(e){(e=qr(e))&&(\".\"!==e[0]&&(e=\".\"+e),r+=e);}))):r=qr(t),r&&(\".\"!==r[0]&&(r=\".\"+r),e=(e||en)+r);}var i=Lr.exec(e||en)||[];return (n={}).type=i[1],n.ns=(i[2]||en).replace(Or,\".\").replace(Ir,en).split(\".\").sort().join(\".\"),n}function jr(e,t,n){void 0===n&&(n=!0);var r=Fr.get(e,Nr,{},n),i=r[t];return i||(i=r[t]=[]),i}function Ur(e,t,n,r){e&&t&&t.type&&(e.removeEventListener?e.removeEventListener(t.type,n,r):e.detachEvent&&e.detachEvent(\"on\"+t.type,n));}function Hr(e,t,n,r){for(var i=t.length;i--;){var o=t[i];o&&(n.ns&&n.ns!==o.evtName.ns||r&&!r(o)||(Ur(e,o.evtName,o.handler,o.capture),t.splice(i,1)));}}function Kr(e,t){return t?Mr(\"xx\",bn(t)?[e].concat(t):[e,t]).ns.split(\".\"):e}function Wr(e,t,n,r,i){var o;void 0===i&&(i=!1);var s=!1;if(e)try{var a=Mr(t,r);if(s=function(e,t,n,r){var i=!1;return e&&t&&t.type&&n&&(e.addEventListener?(e.addEventListener(t.type,n,r),i=!0):e.attachEvent&&(e.attachEvent(\"on\"+t.type,n),i=!0)),i}(e,a,n,i),s&&Fr.accept(e)){var c=((o={guid:Ar++,evtName:a}).handler=n,o.capture=i,o);jr(e,a.type).push(c);}}catch(e){}return s}var zr=function(){function e(t,n,r){var i,o=this,s=!1;o.start=Nn(),o.name=t,o.isAsync=r,o.isChildEvt=function(){return !1},yn(n)&&(s=function(e,t,n,r){if(tn)try{var i={enumerable:!0,configurable:!0};return n&&(i.get=n),r&&(i.set=r),tn(e,t,i),!0}catch(e){}return !1}(o,\"payload\",(function(){return !i&&yn(n)&&(i=n(),n=null),i}))),o.getCtx=function(t){return t?t===e.ParentContextKey||t===e.ChildrenContextKey?o[t]:(o.ctx||{})[t]:null},o.setCtx=function(t,n){t&&(t===e.ParentContextKey?(o[t]||(o.isChildEvt=function(){return !0}),o[t]=n):t===e.ChildrenContextKey?o[t]=n:(o.ctx=o.ctx||{})[t]=n);},o.complete=function(){var t=0,r=o.getCtx(e.ChildrenContextKey);if(bn(r))for(var i=0;i<r.length;i++){var a=r[i];a&&(t+=a.time);}o.time=Nn()-o.start,o.exTime=o.time-t,o.complete=function(){},!s&&yn(n)&&(o.payload=n());};}return e.ParentContextKey=\"parent\",e.ChildrenContextKey=\"childEvts\",e}(),Vr=\"CoreUtils.doPerf\",Br=xr(\"plugin\");function $r(e){return Br.get(e,\"state\",{},!0)}var Gr=0;function Jr(e,t,n,r){var i=null,o=[];null!==r&&(i=r?function(e,t,n){for(;e;){if(e.getPlugin()===n)return e;e=e.getNext();}return Qr([n],t.config||{},t)}(e,n,r):e);var s={_next:function(){var e=i;if(i=e?e.getNext():null,!e){var t=o;t&&t.length>0&&(wn(t,(function(e){try{e.func.call(e.self,e.args);}catch(e){mr(n.logger,2,73,\"Unexpected Exception during onComplete - \"+ir(e));}})),o=[]);}return e},ctx:{core:function(){return n},diagLog:function(){return pr(n,t)},getCfg:function(){return t},getExtCfg:a,getConfig:function(e,n,r){void 0===r&&(r=!1);var i,o=a(e,null);return o&&!mn(o[n])?i=o[n]:t&&!mn(t[n])&&(i=t[n]),mn(i)?r:i},hasNext:function(){return !!i},getNext:function(){return i},setNext:function(e){i=e;},iterate:function(e){for(var t;t=s._next();){var n=t.getPlugin();n&&e(n);}},onComplete:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e&&o.push({func:e,self:hn(t)?s.ctx:t,args:n});}}};function a(e,n,r){var i;if(void 0===n&&(n={}),void 0===r&&(r=0),t){var o=t.extensionConfig;o&&e&&(i=o[e]);}if(i){if(vn(n)&&0!==r){var s=Mn(!0,n,i);t&&2===r&&Sn(n,(function(e){if(mn(s[e])){var n=t[e];mn(n)||(s[e]=n);}})),i=s;}}else i=n;return i}return s}function Yr(e,t,n,r){var i=Jr(e,t,n,r),o=i.ctx;return o.processNext=function(e){var t=i._next();return t&&t.processTelemetry(e,o),!t},o.createNew=function(e,r){return void 0===e&&(e=null),bn(e)&&(e=Qr(e,t,n,r)),Yr(e||o.getNext(),t,n,r)},o}function Zr(e,t,n){var r=t.config||{},i=Jr(e,r,t,n),o=i.ctx;return o.processNext=function(e){var t=i._next();return t&&t.unload(o,e),!t},o.createNew=function(e,n){return void 0===e&&(e=null),bn(e)&&(e=Qr(e,r,t,n)),Zr(e||o.getNext(),t,n)},o}function Xr(e,t,n){var r=t.config||{},i=Jr(e,r,t,n).ctx;return i.processNext=function(e){return i.iterate((function(t){yn(t.update)&&t.update(i,e);}))},i.createNew=function(e,n){return void 0===e&&(e=null),bn(e)&&(e=Qr(e,r,t,n)),Xr(e||i.getNext(),t,n)},i}function Qr(e,t,n,r){var i=null,o=!r;if(bn(e)&&e.length>0){var s=null;wn(e,(function(e){if(o||r!==e||(o=!0),o&&e&&yn(e.processTelemetry)){var a=function(e,t,n){var r,i=null,o=yn(e.processTelemetry),s=yn(e.setNextPlugin),a={getPlugin:function(){return e},getNext:function(){return i},processTelemetry:function(r,u){c(u=u||function(){var r;return e&&yn(e._getTelCtx)&&(r=e._getTelCtx()),r||(r=Yr(a,t,n)),r}(),(function(t){if(!e||!o)return !1;var n=$r(e);return !n.teardown&&!n.disabled&&(s&&e.setNextPlugin(i),e.processTelemetry(r,t),!0)}),\"processTelemetry\",(function(){return {item:r}}),!r.sync)||u.processNext(r);},unload:function(t,n){c(t,(function(){var r=!1;if(e){var i=$r(e),o=e.core||i.core;!e||o&&o!==t.core()||i.teardown||(i.core=null,i.teardown=!0,i.isInitialized=!1,e.teardown&&!0===e.teardown(t,n)&&(r=!0));}return r}),\"unload\",(function(){}),n.isAsync)||t.processNext(n);},update:function(t,n){c(t,(function(){var r=!1;if(e){var i=$r(e),o=e.core||i.core;!e||o&&o!==t.core()||i.teardown||e.update&&!0===e.update(t,n)&&(r=!0);}return r}),\"update\",(function(){}),!1)||t.processNext(n);},_id:r=e?e.identifier+\"-\"+e.priority+\"-\"+Gr++:\"Unknown-0-\"+Gr++,_setNext:function(e){i=e;}};function c(t,n,o,s,a){var c=!1,u=e?e.identifier:\"TelemetryPluginChain\",l=t._hasRun;return l||(l=t._hasRun={}),t.setNext(i),e&&function(e,t,n,r,i){if(e){var s=e;if(s.getPerfMgr&&(s=s.getPerfMgr()),s){var a=void 0,c=s.getCtx(Vr);try{if(a=s.create(u+\":\"+o,r,i)){if(c&&a.setCtx&&(a.setCtx(zr.ParentContextKey,c),c.getCtx&&c.setCtx)){var l=c.getCtx(zr.ChildrenContextKey);l||(l=[],c.setCtx(zr.ChildrenContextKey,l)),l.push(a);}return s.setCtx(Vr,a),n()}}catch(e){a&&a.setCtx&&a.setCtx(\"exception\",e);}finally{a&&s.fire(a),s.setCtx(Vr,c);}}}n();}(t.core(),0,(function(){l[r]=!0;try{var e=i?i._id:en;e&&(l[e]=!1),c=n(t);}catch(e){var s=!i||l[i._id];s&&(c=!0),i&&s||mr(t.diagLog(),1,73,\"Plugin [\"+u+\"] failed during \"+o+\" - \"+ir(e)+\", run flags: \"+ir(l));}}),s,a),c}return xn(a)}(e,t,n);i||(i=a),s&&s._setNext(a),s=a;}}));}return r&&!i?Qr([r],t,n):i}var ei=function(){function e(){var t,n,i,o,s,a=this;function c(e){void 0===e&&(e=null);var t=e;if(!t){var r=n||Yr(null,{},a.core);t=i&&i.getPlugin?r.createNew(null,i.getPlugin):r.createNew(null,i);}return t}function u(e,t,r){e&&In(e,\"extensionConfig\",[],null,mn),!r&&t&&(r=t.getProcessTelContext().getNext());var o=i;i&&i.getPlugin&&(o=i.getPlugin()),a.core=t,n=Yr(r,e,t,o);}function l(){var e;t=!1,a.core=null,n=null,i=null,s=[],e=[],o={add:function(t){t&&e.push(t);},run:function(t,n){wn(e,(function(e){try{e(t,n);}catch(e){mr(t.diagLog(),2,73,\"Unexpected error calling unload handler - \"+ir(e));}})),e=[];}};}l(),(0, r.Z)(e,a,(function(e){e.initialize=function(e,n,r,i){u(e,n,i),t=!0;},e.teardown=function(t,n){var r,a=e.core;if(a&&(!t||a===t.core())){var c,u=!1,d=t||Zr(null,a,i&&i.getPlugin?i.getPlugin():i),f=n||((r={reason:0}).isAsync=!1,r);return e._doTeardown&&!0===e._doTeardown(d,f,p)?c=!0:p(),c}function p(){if(!u){u=!0,o.run(d,n);var e=s;s=[],wn(e,(function(e){e.rm();})),!0===c&&d.processNext(f),l();}}},e.update=function(t,n){var r=e.core;if(r&&(!t||r===t.core())){var o,s=!1,a=t||Xr(null,r,i&&i.getPlugin?i.getPlugin():i),c=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(a,c,l)?o=!0:l(),o}function l(){s||(s=!0,u(a.getCfg(),a.core(),a.getNext()));}},e._addHook=function(e){e&&(bn(e)?s=s.concat(e):s.push(e));},Ln(e,\"_addUnloadCb\",(function(){return o}),\"add\");})),a.diagLog=function(e){return c(e).diagLog()},a.isInitialized=function(){return t},a.setInitialized=function(e){t=e;},a.setNextPlugin=function(e){i=e;},a.processNext=function(e,t){t?t.processNext(e):i&&yn(i.processTelemetry)&&i.processTelemetry(e,null);},a._getTelCtx=c;}return e.__ieDyn=1,e}();function ti(e){var t=\"ai.\"+e+\".\";return function(e){return t+e}}var ni,ri=ti(\"application\"),ii=ti(\"device\"),oi=ti(\"location\"),si=ti(\"operation\"),ai=ti(\"session\"),ci=ti(\"user\"),ui=ti(\"cloud\"),li=ti(\"internal\"),di=function(e){function t(){return e.call(this)||this}return (0, i.ne)(t,e),t}((ni={applicationVersion:ri(\"ver\"),applicationBuild:ri(\"build\"),applicationTypeId:ri(\"typeId\"),applicationId:ri(\"applicationId\"),applicationLayer:ri(\"layer\"),deviceId:ii(\"id\"),deviceIp:ii(\"ip\"),deviceLanguage:ii(\"language\"),deviceLocale:ii(\"locale\"),deviceModel:ii(\"model\"),deviceFriendlyName:ii(\"friendlyName\"),deviceNetwork:ii(\"network\"),deviceNetworkName:ii(\"networkName\"),deviceOEMName:ii(\"oemName\"),deviceOS:ii(\"os\"),deviceOSVersion:ii(\"osVersion\"),deviceRoleInstance:ii(\"roleInstance\"),deviceRoleName:ii(\"roleName\"),deviceScreenResolution:ii(\"screenResolution\"),deviceType:ii(\"type\"),deviceMachineName:ii(\"machineName\"),deviceVMName:ii(\"vmName\"),deviceBrowser:ii(\"browser\"),deviceBrowserVersion:ii(\"browserVersion\"),locationIp:oi(\"ip\"),locationCountry:oi(\"country\"),locationProvince:oi(\"province\"),locationCity:oi(\"city\"),operationId:si(\"id\"),operationName:si(\"name\"),operationParentId:si(\"parentId\"),operationRootId:si(\"rootId\"),operationSyntheticSource:si(\"syntheticSource\"),operationCorrelationVector:si(\"correlationVector\"),sessionId:ai(\"id\"),sessionIsFirst:ai(\"isFirst\"),sessionIsNew:ai(\"isNew\"),userAccountAcquisitionDate:ci(\"accountAcquisitionDate\"),userAccountId:ci(\"accountId\"),userAgent:ci(\"userAgent\"),userId:ci(\"id\"),userStoreRegion:ci(\"storeRegion\"),userAuthUserId:ci(\"authUserId\"),userAnonymousUserAcquisitionDate:ci(\"anonUserAcquisitionDate\"),userAuthenticatedUserAcquisitionDate:ci(\"authUserAcquisitionDate\"),cloudName:ui(\"name\"),cloudRole:ui(\"role\"),cloudRoleVer:ui(\"roleVer\"),cloudRoleInstance:ui(\"roleInstance\"),cloudEnvironment:ui(\"environment\"),cloudLocation:ui(\"location\"),cloudDeploymentUnit:ui(\"deploymentUnit\"),internalNodeName:li(\"nodeName\"),internalSdkVersion:li(\"sdkVersion\"),internalAgentVersion:li(\"agentVersion\"),internalSnippet:li(\"snippet\"),internalSdkSrc:li(\"sdkSrc\")},function(){var e=this;ni&&N(ni,(function(t,n){e[t]=n;}));})),fi=new di,pi=function(e,t,n){var r=this,i=this;i.ver=1,i.sampleRate=100,i.tags={},i.name=be(e,n)||u,i.data=t,i.time=q(new Date),i.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===r.sampleRate?4:1},tags:1,data:1};},gi=function(e,t){this.aiDataContract={baseType:1,baseData:1},this.baseType=e,this.baseData=t;},hi=\"disableInstrumentationKeyValidation\",mi=\"true\";function vi(e,t,n){return In(e,t,n,Fn)}function yi(e,t,n){mn(e)||Sn(e,(function(e,r){!function(e){return \"number\"==typeof e}(r)?_n(r)?t[e]=r:nr()&&(t[e]=rr().stringify(r)):n[e]=r;}));}function Ci(e,t){mn(e)||Sn(e,(function(n,r){e[n]=r||t;}));}function Si(e,t,n,r){var o=new pi(e,r,t);vi(o,\"sampleRate\",n.sampleRate),(n.baseData||{}).startTime&&(o.time=function(e){if(e)return sn?e.toISOString():function(e){if(e&&e.getUTCFullYear){var t=function(e){var t=String(e);return 1===t.length&&(t=\"0\"+t),t};return e.getUTCFullYear()+\"-\"+t(e.getUTCMonth()+1)+\"-\"+t(e.getUTCDate())+\"T\"+t(e.getUTCHours())+\":\"+t(e.getUTCMinutes())+\":\"+t(e.getUTCSeconds())+\".\"+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+\"Z\"}}(e)}(n.baseData.startTime)),o.iKey=n.iKey;var s=n.iKey.replace(/-/g,\"\");return o.name=o.name.replace(\"{0}\",s),function(e,t,n){var r=n.tags=n.tags||{},o=t.ext=t.ext||{},s=t.tags=t.tags||[],a=o.user;a&&(vi(r,fi.userAuthUserId,a.authId),vi(r,fi.userId,a.id||a.localId));var c=o.app;c&&vi(r,fi.sessionId,c.sesId);var u=o.device;u&&(vi(r,fi.deviceId,u.id||u.localId),vi(r,fi.deviceType,u.deviceClass),vi(r,fi.deviceIp,u.ip),vi(r,fi.deviceModel,u.model),vi(r,fi.deviceType,u.deviceType));var l=t.ext.web;if(l){vi(r,fi.deviceLanguage,l.browserLang),vi(r,fi.deviceBrowserVersion,l.browserVer),vi(r,fi.deviceBrowser,l.browser);var d=n.data=n.data||{},f=d.baseData=d.baseData||{},p=f.properties=f.properties||{};vi(p,\"domain\",l.domain),vi(p,\"isManual\",l.isManual?mi:null),vi(p,\"screenRes\",l.screenRes),vi(p,\"userConsent\",l.userConsent?mi:null);}var g=o.os;g&&vi(r,fi.deviceOS,g.name);var h=o.trace;h&&(vi(r,fi.operationParentId,h.parentID),vi(r,fi.operationName,be(e,h.name)),vi(r,fi.operationId,h.traceID));for(var m={},v=s.length-1;v>=0;v--)Sn(s[v],(function(e,t){m[e]=t;})),s.splice(v,1);Sn(s,(function(e,t){m[e]=t;}));var y=(0, i.uc)((0, i.uc)({},r),m);y[fi.internalSdkVersion]||(y[fi.internalSdkVersion]=\"javascript:\".concat(bi.Version)),n.tags=qn(y);}(e,n,o),n.tags=n.tags||[],qn(o)}function Ti(e,t){mn(t.baseData)&&mr(e,1,46,\"telemetryItem.baseData cannot be null.\");}var bi={Version:\"2.8.11\"};function _i(e,t,n){Ti(e,t);var r={},i={};t.baseType!==Ne.dataType&&(r.baseTypeSource=t.baseType),t.baseType===Ne.dataType?(r=t.baseData.properties||{},i=t.baseData.measurements||{}):t.baseData&&yi(t.baseData,r,i),yi(t.data,r,i),mn(n)||Ci(r,n);var o=t.baseData.name,s=new Ne(e,o,r,i),a=new gi(Ne.dataType,s);return Si(e,Ne.envelopeType,t,a)}function Ri(e,t){!function(e,t,n,r,i){if(void 0===i&&(i=!1),e)try{var o=Mr(t,r),s=!1;!function(e,t,n){if(t.type)Hr(e,jr(e,t.type),t,n);else {var r=Fr.get(e,Nr,{});Sn(r,(function(r,i){Hr(e,i,t,n);})),0===kn(r).length&&Fr.kill(e,Nr);}}(e,o,(function(e){return !((!o.ns||n)&&e.handler!==n||(s=!0,0))})),s||Ur(e,o,n,i);}catch(e){}}(e,null,null,t);}var Di,wi=function(){function e(t,n){var i=[],o=!1;this._get=function(){return i},this._set=function(e){return i=e},(0, r.Z)(e,this,(function(e){e.enqueue=function(r){e.count()>=n.eventsLimitInMem()?o||(mr(t,2,105,\"Maximum in-memory buffer size reached: \"+e.count(),!0),o=!0):i.push(r);},e.count=function(){return i.length},e.size=function(){for(var e=i.length,t=0;t<i.length;t++)e+=i[t].length;return n.emitLineDelimitedJson()||(e+=2),e},e.clear=function(){i=[],o=!1;},e.getItems=function(){return i.slice(0)},e.batchPayloads=function(e){return e&&e.length>0?n.emitLineDelimitedJson()?e.join(\"\\n\"):\"[\"+e.join(\",\")+\"]\":null};}));}return e.__ieDyn=1,e}(),Ei=function(e){function t(n,i){var o=e.call(this,n,i)||this;return (0, r.Z)(t,o,(function(e,t){e.markAsSent=function(e){t.clear();},e.clearSent=function(e){};})),o}return (0, i.ne)(t,e),t.__ieDyn=1,t}(wi),Pi=function(e){function t(n,i){var o=e.call(this,n,i)||this,s=!1;return (0, r.Z)(t,o,(function(e,r){var o=l(t.BUFFER_KEY),a=l(t.SENT_BUFFER_KEY),c=e._set(o.concat(a));function u(e,t){var n=[];return wn(t,(function(t){yn(t)||-1!==function(e,t,n){if(e){if(e.indexOf)return e.indexOf(t,n);var r=e.length;try{for(var i=Math.max(0,0);i<r;i++)if(i in e&&e[i]===t)return i}catch(e){}}return -1}(e,t)||n.push(t);})),n}function l(e){var t=e;try{t=i.namePrefix&&i.namePrefix()?i.namePrefix()+\"_\"+t:t;var r=function(e,t){var n=zt();if(null!==n)try{return n.getItem(t)}catch(t){Kt=!1,Ce(e,2,2,\"Browser failed read of session storage. \"+Y(t),{exception:fe(t)});}return null}(n,t);if(r){var o=rr().parse(r);if(_n(o)&&(o=rr().parse(o)),o&&bn(o))return o}}catch(e){mr(n,1,42,\" storage key: \"+t+\", \"+On(e),{exception:ir(e)});}return []}function d(e,t){var r=e;try{r=i.namePrefix&&i.namePrefix()?i.namePrefix()+\"_\"+r:r;var o=JSON.stringify(t);Bt(n,r,o);}catch(e){Bt(n,r,JSON.stringify([])),mr(n,2,41,\" storage key: \"+r+\", \"+On(e)+\". Buffer cleared\",{exception:ir(e)});}}c.length>t.MAX_BUFFER_SIZE&&(c.length=t.MAX_BUFFER_SIZE),d(t.SENT_BUFFER_KEY,[]),d(t.BUFFER_KEY,c),e.enqueue=function(i){e.count()>=t.MAX_BUFFER_SIZE?s||(mr(n,2,67,\"Maximum buffer size reached: \"+e.count(),!0),s=!0):(r.enqueue(i),d(t.BUFFER_KEY,e._get()));},e.clear=function(){r.clear(),d(t.BUFFER_KEY,e._get()),d(t.SENT_BUFFER_KEY,[]),s=!1;},e.markAsSent=function(r){d(t.BUFFER_KEY,e._set(u(r,e._get())));var i=l(t.SENT_BUFFER_KEY);i instanceof Array&&r instanceof Array&&((i=i.concat(r)).length>t.MAX_BUFFER_SIZE&&(mr(n,1,67,\"Sent buffer reached its maximum size: \"+i.length,!0),i.length=t.MAX_BUFFER_SIZE),d(t.SENT_BUFFER_KEY,i));},e.clearSent=function(e){var n=l(t.SENT_BUFFER_KEY);n=u(e,n),d(t.SENT_BUFFER_KEY,n);};})),o}return (0, i.ne)(t,e),t.BUFFER_KEY=\"AI_buffer\",t.SENT_BUFFER_KEY=\"AI_sentBuffer\",t.MAX_BUFFER_SIZE=2e3,t}(wi),ki=function(){function e(t){(0, r.Z)(e,this,(function(e){function n(e,o){var s={};if(!e)return mr(t,1,48,\"cannot serialize object because it is null or undefined\",{name:o},!0),s;if(e.__aiCircularRefCheck)return mr(t,2,50,\"Circular reference detected while serializing object\",{name:o},!0),s;if(!e.aiDataContract){if(\"measurements\"===o)s=i(e,\"number\",o);else if(\"properties\"===o)s=i(e,\"string\",o);else if(\"tags\"===o)s=i(e,\"string\",o);else if(bn(e))s=r(e,o);else {mr(t,2,49,\"Attempting to serialize an object which does not implement ISerializable\",{name:o},!0);try{rr().stringify(e),s=e;}catch(e){mr(t,1,48,e&&yn(e.toString)?e.toString():\"Error serializing object\",null,!0);}}return s}return e.__aiCircularRefCheck=!0,Sn(e.aiDataContract,(function(i,a){var c=yn(a)?1&a():1&a,u=yn(a)?4&a():4&a,l=2&a,d=void 0!==e[i],f=vn(e[i])&&null!==e[i];if(!c||d||l){if(!u){var p;void 0!==(p=f?l?r(e[i],i):n(e[i],i):e[i])&&(s[i]=p);}}else mr(t,1,24,\"Missing required field specification. The field is required but not present on source\",{field:i,name:o});})),delete e.__aiCircularRefCheck,s}function r(e,r){var i;if(e)if(bn(e)){i=[];for(var o=0;o<e.length;o++){var s=n(e[o],r+\"[\"+o+\"]\");i.push(s);}}else mr(t,1,54,\"This field was specified as an array in the contract but the item is not an array.\\r\\n\",{name:r},!0);return i}function i(e,n,r){var i;return e&&(i={},Sn(e,(function(e,o){if(\"string\"===n)void 0===o?i[e]=\"undefined\":null===o?i[e]=\"null\":o.toString?i[e]=o.toString():i[e]=\"invalid field: toString() is not defined.\";else if(\"number\"===n)if(void 0===o)i[e]=\"undefined\";else if(null===o)i[e]=\"null\";else {var s=parseFloat(o);isNaN(s)?i[e]=\"NaN\":i[e]=s;}else i[e]=\"invalid field: \"+r+\" is of unknown type.\",mr(t,1,i[e],null,!0);}))),i}e.serialize=function(e){var r=n(e,\"root\");try{return rr().stringify(r)}catch(e){mr(t,1,48,e&&yn(e.toString)?e.toString():\"Error serializing object\",null,!0);}};}));}return e.__ieDyn=1,e}(),xi=function(){function e(){}return e.prototype.getHashCodeScore=function(t){return this.getHashCode(t)/e.INT_MAX_VALUE*100},e.prototype.getHashCode=function(e){if(\"\"===e)return 0;for(;e.length<8;)e=e.concat(e);for(var t=5381,n=0;n<e.length;++n)t=(t<<5)+t+e.charCodeAt(n),t&=t;return Math.abs(t)},e.INT_MAX_VALUE=2147483647,e}(),Ni=function(){var e=new xi,t=new di;this.getSamplingScore=function(n){return n.tags&&n.tags[t.userId]?e.getHashCodeScore(n.tags[t.userId]):n.ext&&n.ext.user&&n.ext.user.id?e.getHashCodeScore(n.ext.user.id):n.tags&&n.tags[t.operationId]?e.getHashCodeScore(n.tags[t.operationId]):n.ext&&n.ext.telemetryTrace&&n.ext.telemetryTrace.traceID?e.getHashCodeScore(n.ext.telemetryTrace.traceID):100*Math.random()};},Oi=function(){function e(e,t){this.INT_MAX_VALUE=2147483647;var n=t||pr(null);(e>100||e<0)&&(n.throwInternal(2,58,\"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.\",{samplingRate:e},!0),e=100),this.sampleRate=e,this.samplingScoreGenerator=new Ni;}return e.prototype.isSampledIn=function(e){var t=this.sampleRate;return null==t||t>=100||e.baseType===$e.dataType||this.samplingScoreGenerator.getSamplingScore(e)<t},e}();function Ii(e){try{return e.responseText}catch(e){}return null}function Ai(){var e,t;return (e={endpointUrl:function(){return a+c}}).emitLineDelimitedJson=function(){return !1},e.maxBatchInterval=function(){return 15e3},e.maxBatchSizeInBytes=function(){return 102400},e.disableTelemetry=function(){return !1},e.enableSessionStorageBuffer=function(){return !0},e.isRetryDisabled=function(){return !1},e.isBeaconApiDisabled=function(){return !0},e.disableXhr=function(){return !1},e.onunloadDisableFetch=function(){return !1},e.onunloadDisableBeacon=function(){return !1},e.instrumentationKey=function(){return t},e.namePrefix=function(){return t},e.samplingPercentage=function(){return 100},e.customHeaders=function(){},e.convertUndefined=function(){return t},e.eventsLimitInMem=function(){return 1e4},e}var Fi=((Di={})[Ne.dataType]=_i,Di[Oe.dataType]=function(e,t,n){Ti(e,t);var r=t.baseData.message,i=t.baseData.severityLevel,o=t.baseData.properties||{},s=t.baseData.measurements||{};yi(t.data,o,s),mn(n)||Ci(o,n);var a=new Oe(e,r,i,o,s),c=new gi(Oe.dataType,a);return Si(e,Oe.envelopeType,t,c)},Di[Ae.dataType]=function(e,t,n){var r;Ti(e,t);var i=t.baseData;mn(i)||mn(i.properties)||mn(i.properties.duration)?mn(t.data)||mn(t.data.duration)||(r=t.data.duration,delete t.data.duration):(r=i.properties.duration,delete i.properties.duration);var o,s=t.baseData;((t.ext||{}).trace||{}).traceID&&(o=t.ext.trace.traceID);var a=s.id||o,c=s.name,u=s.uri,l=s.properties||{},d=s.measurements||{};mn(s.refUri)||(l.refUri=s.refUri),mn(s.pageType)||(l.pageType=s.pageType),mn(s.isLoggedIn)||(l.isLoggedIn=s.isLoggedIn.toString()),mn(s.properties)||Sn(s.properties,(function(e,t){l[e]=t;})),yi(t.data,l,d),mn(n)||Ci(l,n);var f=new Ae(e,c,u,r,l,d,a),p=new gi(Ae.dataType,f);return Si(e,Ae.envelopeType,t,p)},Di[Fe.dataType]=function(e,t,n){Ti(e,t);var r=t.baseData,i=r.name,o=r.uri||r.url,s=r.properties||{},a=r.measurements||{};yi(t.data,s,a),mn(n)||Ci(s,n);var c=new Fe(e,i,o,void 0,s,a,r),u=new gi(Fe.dataType,c);return Si(e,Fe.envelopeType,t,u)},Di[We.dataType]=function(e,t,n){Ti(e,t);var r=t.baseData.measurements||{},i=t.baseData.properties||{};yi(t.data,i,r),mn(n)||Ci(i,n);var o=t.baseData,s=We.CreateFromInterface(e,o,i,r),a=new gi(We.dataType,s);return Si(e,We.envelopeType,t,a)},Di[$e.dataType]=function(e,t,n){Ti(e,t);var r=t.baseData,i=r.properties||{},o=r.measurements||{};yi(t.data,i,o),mn(n)||Ci(i,n);var s=new $e(e,r.name,r.average,r.sampleCount,r.min,r.max,r.stdDev,i,o),a=new gi($e.dataType,s);return Si(e,$e.envelopeType,t,a)},Di[Qt.dataType]=function(e,t,n){Ti(e,t);var r=t.baseData.measurements||{},i=t.baseData.properties||{};yi(t.data,i,r),mn(n)||Ci(i,n);var o=t.baseData;if(mn(o))return vr(e,\"Invalid input for dependency data\"),null;var a=o.properties&&o.properties[s]?o.properties[s]:\"GET\",c=new Qt(e,o.id,o.target,o.name,o.duration,o.success,o.responseCode,a,o.type,o.correlationContext,i,r),u=new gi(Qt.dataType,c);return Si(e,Qt.envelopeType,t,u)},Di),Li=function(e){function t(){var n,i,s,a,c,u,l,d=e.call(this)||this;d.priority=1001,d.identifier=\"AppInsightsChannelPlugin\",d._senderConfig=Ai();var f,p,g,h,m=0;return (0, r.Z)(t,d,(function(e,r){function v(t,r,i,o,s,a){var c=null;if(e._appId||(c=w(a))&&c.appId&&(e._appId=c.appId),(t<200||t>=300)&&0!==t){if((301===t||307===t||308===t)&&!y(i))return void e._onError(r,s);!e._senderConfig.isRetryDisabled()&&x(t)?(E(r),mr(e.diagLog(),2,40,\". Response code \"+t+\". Will retry to send \"+r.length+\" items.\")):e._onError(r,s);}else g&&!g.isOnline()?e._senderConfig.isRetryDisabled()||(E(r,10),mr(e.diagLog(),2,40,\". Offline - Response Code: \".concat(t,\". Offline status: \").concat(!g.isOnline(),\". Will retry to send \").concat(r.length,\" items.\"))):(y(i),206===t?(c||(c=w(a)),c&&!e._senderConfig.isRetryDisabled()?e._onPartialSuccess(r,c):e._onError(r,s)):(n=0,e._onSuccess(r,o)));}function y(t){return !(u>=10||mn(t)||\"\"===t||t===e._senderConfig.endpointUrl()||(e._senderConfig.endpointUrl=function(){return t},++u,0))}function C(e,t){p?p(e,!1):T(e);}function S(t){var n=tr(),r=e._buffer,i=e._senderConfig.endpointUrl(),o=e._buffer.batchPayloads(t),s=new Blob([o],{type:\"text/plain;charset=UTF-8\"}),a=n.sendBeacon(i,s);return a&&(r.markAsSent(t),e._onSuccess(t,t.length)),a}function T(t,n){if(bn(t)&&t.length>0&&!S(t)){for(var r=[],i=0;i<t.length;i++){var o=t[i];S([o])||r.push(o);}r.length>0&&(f&&f(r,!0),mr(e.diagLog(),2,40,\". Failed to send telemetry with Beacon API, retried with normal sender.\"));}}function b(t,n){var r=new XMLHttpRequest,i=e._senderConfig.endpointUrl();try{r[o]=!0;}catch(e){}r.open(\"POST\",i,n),r.setRequestHeader(\"Content-type\",\"application/json\"),Xt(i)&&r.setRequestHeader(Ut[6],Ut[7]),wn(kn(l),(function(e){r.setRequestHeader(e,l[e]);})),r.onreadystatechange=function(){return e._xhrReadyStateChange(r,t,t.length)},r.onerror=function(n){return e._onError(t,N(r),n)};var s=e._buffer.batchPayloads(t);r.send(s),e._buffer.markAsSent(t);}function _(t,n){if(bn(t)){for(var r=t.length,i=0;i<t.length;i++)r+=t[i].length;m+r<=65e3?D(t,!1):or()?T(t):(f&&f(t,!0),mr(e.diagLog(),2,40,\". Failed to send telemetry with Beacon API, retried with xhrSender.\"));}}function R(e,t){D(e,!0);}function D(t,n){var r,i=e._senderConfig.endpointUrl(),s=e._buffer.batchPayloads(t),a=new Blob([s],{type:\"application/json\"}),c=new Headers,u=s.length,d=!1,f=!1;Xt(i)&&c.append(Ut[6],Ut[7]),wn(kn(l),(function(e){c.append(e,l[e]);}));var p=((r={method:\"POST\",headers:c,body:a})[o]=!0,r);n||(p.keepalive=!0,d=!0,m+=u);var g=new Request(i,p);try{g[o]=!0;}catch(e){}e._buffer.markAsSent(t);try{fetch(g).then((function(r){n||(m-=u,u=0),f||(f=!0,r.ok?r.text().then((function(e){v(r.status,t,r.url,t.length,r.statusText,e);})):e._onError(t,r.statusText));})).catch((function(r){n||(m-=u,u=0),f||(f=!0,e._onError(t,r.message));}));}catch(n){f||e._onError(t,ir(n));}d&&!f&&(f=!0,e._onSuccess(t,t.length));}function w(t){try{if(t&&\"\"!==t){var n=rr().parse(t);if(n&&n.itemsReceived&&n.itemsReceived>=n.itemsAccepted&&n.itemsReceived-n.itemsAccepted===n.errors.length)return n}}catch(n){mr(e.diagLog(),1,43,\"Cannot parse the response. \"+On(n),{response:t});}return null}function E(t,r){if(void 0===r&&(r=1),t&&0!==t.length){var o=e._buffer;o.clearSent(t),n++;for(var s=0,a=t;s<a.length;s++){var c=a[s];o.enqueue(c);}!function(e){var t;if(n<=1)t=10;else {var r=(Math.pow(2,n)-1)/2,o=Math.floor(Math.random()*r*10)+1;o*=e,t=Math.max(Math.min(o,3600),10);}var s=Nn()+1e3*t;i=s;}(r),P();}}function P(){if(!a&&!s){var t=i?Math.max(0,i-Nn()):0,n=Math.max(e._senderConfig.maxBatchInterval(),t);a=setTimeout((function(){a=null,e.triggerSend(!0,null,1);}),n);}}function k(){clearTimeout(a),a=null,i=null;}function x(e){return 401===e||403===e||408===e||429===e||500===e||502===e||503===e||504===e}function N(e,t){return e?\"XMLHttpRequest,Status:\"+e.status+\",Response:\"+Ii(e)||0:t}function O(t,n){var r=e._buffer,i=Xn(),o=new XDomainRequest;o.onload=function(){return e._xdrOnLoad(o,t)},o.onerror=function(n){return e._onError(t,I(o),n)};var s=i&&i.location&&i.location.protocol||\"\";if(0!==e._senderConfig.endpointUrl().lastIndexOf(s,0))return mr(e.diagLog(),2,40,\". Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.\"),void r.clear();var a=e._senderConfig.endpointUrl().replace(/^(https?:)/,\"\");o.open(\"POST\",a);var c=r.batchPayloads(t);o.send(c),r.markAsSent(t);}function I(e,t){return e?\"XDomainRequest,Response:\"+Ii(e)||0:t}function A(){e._sender=null,e._buffer=null,e._appId=null,e._sample=null,l={},g=null,n=0,i=null,s=!1,a=null,c=null,u=0,m=0,f=null,p=null,h=null;}A(),e.pause=function(){k(),s=!0;},e.resume=function(){s&&(s=!1,i=null,e._buffer.size()>e._senderConfig.maxBatchSizeInBytes()&&e.triggerSend(!0,null,10),P());},e.flush=function(t,n,r){if(void 0===t&&(t=!0),!s){k();try{e.triggerSend(t,null,r||1);}catch(t){mr(e.diagLog(),1,22,\"flush failed, telemetry will not be collected: \"+On(t),{exception:ir(t)});}}},e.onunloadFlush=function(){if(!s)if(!1!==e._senderConfig.onunloadDisableBeacon()&&!1!==e._senderConfig.isBeaconApiDisabled()||!or())e.flush();else try{e.triggerSend(!0,C,2);}catch(t){mr(e.diagLog(),1,20,\"failed to flush with beacon sender on page unload, telemetry will not be collected: \"+On(t),{exception:ir(t)});}},e.addHeader=function(e,t){l[e]=t;},e.initialize=function(t,o,s,a){e.isInitialized()&&mr(e.diagLog(),1,28,\"Sender is already initialized\"),r.initialize(t,o,s,a);var l=e._getTelCtx(),m=e.identifier;c=new ki(o.logger),n=0,i=null,e._sender=null,u=0;var v=e.diagLog();h=Kr(kr(\"Sender\"),o.evtNamespace&&o.evtNamespace()),g=function(e){var t=Qn(),n=tr(),r=!1,i=!0,o=Kr(kr(\"OfflineListener\"),e);try{if(a(Xn())&&(r=!0),t){var s=t.body||t;s.ononline&&a(s)&&(r=!0);}r&&n&&!mn(n.onLine)&&(i=n.onLine);}catch(e){r=!1;}function a(e){var t=!1;return e&&(t=Wr(e,\"online\",c,o))&&Wr(e,\"offline\",u,o),t}function c(){i=!0;}function u(){i=!1;}return {isOnline:function(){var e=!0;return r?e=i:n&&!mn(n.onLine)&&(e=n.onLine),e},isListening:function(){return r},unload:function(){var e=Xn();if(e&&r){if(Ri(e,o),t){var n=t.body||t;hn(n.ononline)||Ri(n,o);}r=!1;}}}}(h),Sn(Ai(),(function(t,n){e._senderConfig[t]=function(){var e=l.getConfig(m,t,n());return e||\"endpointUrl\"!==t||(e=n()),e};})),e._buffer=e._senderConfig.enableSessionStorageBuffer()&&Vt()?new Pi(v,e._senderConfig):new Ei(v,e._senderConfig),e._sample=new Oi(e._senderConfig.samplingPercentage(),v),function(e){return !(mn(e[hi])||!e[hi])||new RegExp(\"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$\").test(e.instrumentationKey)}(t)||mr(v,1,100,\"Invalid Instrumentation key \"+t.instrumentationKey),!Xt(e._senderConfig.endpointUrl())&&e._senderConfig.customHeaders()&&e._senderConfig.customHeaders().length>0&&wn(e._senderConfig.customHeaders(),(function(e){d.addHeader(e.header,e.value);}));var y=e._senderConfig,C=null;!y.disableXhr()&&ar()?C=O:!y.disableXhr()&&cr()&&(C=b),!C&&sr()&&(C=R),f=C||b,!y.isBeaconApiDisabled()&&or()&&(C=T),e._sender=C||b,p=!y.onunloadDisableFetch()&&sr(!0)?_:or()?T:!y.disableXhr()&&ar()?O:!y.disableXhr()&&cr()?b:f;},e.processTelemetry=function(n,r){var i,o=(r=e._getTelCtx(r)).diagLog();try{if(e._senderConfig.disableTelemetry())return;if(!n)return void mr(o,1,7,\"Cannot send empty telemetry\");if(n.baseData&&!n.baseType)return void mr(o,1,70,\"Cannot send telemetry without baseData and baseType\");if(n.baseType||(n.baseType=\"EventData\"),!e._sender)return void mr(o,1,28,\"Sender was not initialized\");if(i=n,!e._sample.isSampledIn(i))return void mr(o,2,33,\"Telemetry item was sampled out and not sent\",{SampleRate:e._sample.sampleRate});n.sampleRate=e._sample.sampleRate;var s=e._senderConfig.convertUndefined()||void 0,a=n.iKey||e._senderConfig.instrumentationKey(),u=t.constructEnvelope(n,a,o,s);if(!u)return void mr(o,1,47,\"Unable to create an AppInsights envelope\");var l=!1;if(n.tags&&n.tags.ProcessLegacy&&(wn(n.tags.ProcessLegacy,(function(e){try{e&&!1===e(u)&&(l=!0,vr(o,\"Telemetry processor check returns false\"));}catch(e){mr(o,1,64,\"One of telemetry initializers failed, telemetry item will not be sent: \"+On(e),{exception:ir(e)},!0);}})),delete n.tags.ProcessLegacy),l)return;var d=c.serialize(u),f=e._buffer;f.size()+d.length>e._senderConfig.maxBatchSizeInBytes()&&e.triggerSend(!0,null,10),f.enqueue(d),P();}catch(e){mr(o,2,12,\"Failed adding telemetry to the sender's buffer, some telemetry will be lost: \"+On(e),{exception:ir(e)});}e.processNext(n,r);},e._xhrReadyStateChange=function(e,t,n){4===e.readyState&&v(e.status,t,e.responseURL,n,N(e),Ii(e)||e.response);},e.triggerSend=function(t,n,r){if(void 0===t&&(t=!0),!s)try{var i=e._buffer;if(e._senderConfig.disableTelemetry())i.clear();else {if(i.count()>0){var o=i.getItems();!function(t,n){var r,i=(r=\"getNotifyMgr\",e.core[r]?e.core[r]():e.core._notificationManager);if(i&&i.eventsSendRequest)try{i.eventsSendRequest(t,n);}catch(t){mr(e.diagLog(),1,74,\"send request notification failed: \"+On(t),{exception:ir(t)});}}(r||0,t),n?n.call(d,o,t):e._sender(o,t);}new Date;}k();}catch(t){var a=function(e){if(void 0===e&&(e=null),!e){var t=tr()||{};e=t?(t.userAgent||en).toLowerCase():en;}var n=(e||en).toLowerCase();if(Tn(n,Kn)){var r=Qn()||{};return Math.max(parseInt(n.split(Kn)[1]),r.documentMode||0)}if(Tn(n,Wn)){var i=parseInt(n.split(Wn)[1]);if(i)return i+4}return null}();(!a||a>9)&&mr(e.diagLog(),1,40,\"Telemetry transmission failed, some telemetry will be lost: \"+On(t),{exception:ir(t)});}},e._doTeardown=function(t,n){e.onunloadFlush(),g.unload(),A();},e._onError=function(t,n,r){mr(e.diagLog(),2,26,\"Failed to send telemetry.\",{message:n}),e._buffer.clearSent(t);},e._onPartialSuccess=function(t,n){for(var r=[],i=[],o=0,s=n.errors.reverse();o<s.length;o++){var a=s[o],c=t.splice(a.index,1)[0];x(a.statusCode)?i.push(c):r.push(c);}t.length>0&&e._onSuccess(t,n.itemsAccepted),r.length>0&&e._onError(r,N(null,[\"partial success\",n.itemsAccepted,\"of\",n.itemsReceived].join(\" \"))),i.length>0&&(E(i),mr(e.diagLog(),2,40,\"Partial success. Delivered: \"+t.length+\", Failed: \"+r.length+\". Will retry to send \"+i.length+\" our of \"+n.itemsReceived+\" items\"));},e._onSuccess=function(t,n){e._buffer.clearSent(t);},e._xdrOnLoad=function(t,r){var i=Ii(t);if(!t||i+\"\"!=\"200\"&&\"\"!==i){var o=w(i);o&&o.itemsReceived&&o.itemsReceived>o.itemsAccepted&&!e._senderConfig.isRetryDisabled()?e._onPartialSuccess(r,o):e._onError(r,I(t));}else n=0,e._onSuccess(r,0);};})),d}return (0, i.ne)(t,e),t.constructEnvelope=function(e,t,n,r){var o;return o=t===e.iKey||mn(t)?e:(0, i.uc)((0, i.uc)({},e),{iKey:t}),(Fi[o.baseType]||_i)(n,o,r)},t}(ei);var qi=\"\",Mi=\"extensionConfig\",ji=l.RJ,Ui=l.Pw.freeze,Hi=(l.Pw.seal,l.Pw.keys),Ki=String[l.hB],Wi=Ki.trim,zi=Ki.endsWith,Vi=(Ki.startsWith,Date[l.hB].toISOString),Bi=Array.isArray,$i=l.V4.toString,Gi=l.CY.toString,Ji=Gi.call(l.Pw),Yi=/-([a-z])/g,Zi=/([^\\w\\d_$])/g,Xi=/^(\\d+[\\w\\d_$])/,Qi=Object.getPrototypeOf;function eo(e){return void 0===e||typeof e===l.jA}function to(e){return null===e||eo(e)}function no(e){return !to(e)}function ro(e){return !(!e||typeof e!==l.fK)}function io(e){return !(!e||typeof e!==l.cb)}function oo(e){var t=e;return t&&lo(t)&&(t=(t=(t=t.replace(Yi,(function(e,t){return t.toUpperCase()}))).replace(Zi,\"_\")).replace(Xi,(function(e,t){return \"_\"+t}))),t}function so(e,t){if(e)for(var n in e)l.CY.call(e,n)&&t.call(e,n,e[n]);}function ao(e,t){return !(!e||!t)&&-1!==e.indexOf(t)}var co=Bi||function(e){return !(!e||\"[object Array]\"!==$i.call(e))};function uo(e){return !(!e||\"[object Error]\"!==$i.call(e))}function lo(e){return \"string\"==typeof e}function fo(e){return \"boolean\"==typeof e}function po(e){var t=!1;if(e&&\"object\"==typeof e){var n=Qi?Qi(e):function(e){if(e){if(Qi)return Qi(e);var t=e.__proto__||e[l.hB]||e.constructor;if(t)return t}return null}(e);n?(n.constructor&&l.CY.call(n,\"constructor\")&&(n=n.constructor),t=typeof n===l.cb&&Gi.call(n)===Ji):t=!0;}return t}function go(e){if(e)return Vi?e.toISOString():function(e){if(e&&e.getUTCFullYear){var t=function(e){var t=String(e);return 1===t.length&&(t=\"0\"+t),t};return e.getUTCFullYear()+\"-\"+t(e.getUTCMonth()+1)+\"-\"+t(e.getUTCDate())+\"T\"+t(e.getUTCHours())+\":\"+t(e.getUTCMinutes())+\":\"+t(e.getUTCSeconds())+\".\"+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+\"Z\"}}(e)}function ho(e,t,n){var r=e.length;try{for(var i=0;i<r&&(!(i in e)||-1!==t.call(n||e,e[i],i,e));i++);}catch(e){}}function mo(e,t,n){if(e){if(e.indexOf)return e.indexOf(t,n);var r=e.length,i=n||0;try{for(var o=Math.max(i>=0?i:r-Math.abs(i),0);o<r;o++)if(o in e&&e[o]===t)return o}catch(e){}}return -1}function vo(e){return e&&(e=Wi&&e.trim?e.trim():e.replace?e.replace(/^\\s+|(?=\\s)\\s+$/g,qi):e),e}var yo=!{toString:null}.propertyIsEnumerable(\"toString\"),Co=[\"toString\",\"toLocaleString\",\"valueOf\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"constructor\"];function So(e,t,n,r){if(ji)try{var i={enumerable:!0,configurable:!0};return n&&(i.get=n),r&&(i.set=r),ji(e,t,i),!0}catch(e){}return !1}var To=Ui||function(e){return e};function bo(){var e=Date;return e.now?e.now():(new e).getTime()}function _o(e){return uo(e)?e.name:qi}function Ro(e,t,n,r,i){var o=n;return e&&((o=e[t])===n||i&&!i(o)||r&&!r(n)||(o=n,e[t]=o)),o}function Do(e,t,n){var r;return e?!(r=e[t])&&to(r)&&(r=eo(n)?{}:n,e[t]=r):r=eo(n)?{}:n,r}function wo(e,t){return to(e)?t:e}function Eo(e){return !!e}function Po(e){throw new Error(e)}function ko(e,t,n,r,i){e&&t&&n&&(!1!==i||eo(e[t]))&&(e[t]=function(e,t){var n=null,r=null;return io(e)?n=e:r=e,function(){var e=arguments;if(n&&(r=n()),r)return r[t].apply(r,e)}}(n,r));}function xo(e,t,n,r){return e&&t&&ro(e)&&co(n)&&ho(n,(function(n){lo(n)&&ko(e,n,t,n,r);})),e}function No(e,t,n,r,i,o){var s=arguments,a=s[0]||{},c=s.length,u=!1,d=1;for(c>0&&fo(a)&&(u=a,a=s[d]||{},d++),ro(a)||(a={});d<c;d++){var f=s[d],p=co(f),g=ro(f);for(var h in f){var m=p&&h in f||g&&l.CY.call(f,h);if(m){var v=f[h],y=void 0;if(u&&v&&((y=co(v))||po(v))){var C=a[h];y?co(C)||(C=[]):po(C)||(C={}),v=No(u,C,v);}void 0!==v&&(a[h]=v);}}}return a}var Oo=n(5108),Io=\"window\",Ao=\"JSON\",Fo=null,Lo=null;function qo(e){var t=(0, d.Rd)();return t&&t[e]?t[e]:e===Io&&Mo()?window:null}function Mo(){return Boolean(typeof window===l.fK&&window)}function jo(){return Boolean(typeof document===l.fK&&document)?document:qo(\"document\")}function Uo(){return Boolean(typeof navigator===l.fK&&navigator)?navigator:qo(\"navigator\")}function Ho(){return Boolean(typeof JSON===l.fK&&JSON||null!==qo(Ao))}function Ko(){return Ho()?JSON||qo(Ao):null}function Wo(){var e=Uo();if(e&&(e.userAgent!==Lo||null===Fo)){var t=((Lo=e.userAgent)||qi).toLowerCase();Fo=ao(t,\"msie\")||ao(t,\"trident/\");}return Fo}function zo(e){var t=Object[l.hB].toString.call(e),n=qi;return \"[object Error]\"===t?n=\"{ stack: '\"+e.stack+\"', message: '\"+e.message+\"', name: '\"+e.name+\"'\":Ho()&&(n=Ko().stringify(e)),t+n}var Vo,Bo=[\"eventsSent\",\"eventsDiscarded\",\"eventsSendRequest\",\"perfEvent\"],$o=null;function Go(e,t){return function(){var n=arguments,r=Jo(t);if(r){var i=r.listener;i&&i[e]&&i[e].apply(i,n);}}}function Jo(e){var t,n=$o;return n||!0===e.disableDbgExt||(n=$o||((t=qo(\"Microsoft\"))&&($o=t.ApplicationInsights),$o)),n?n.ChromeDbgExt:null}function Yo(e){return e?'\"'+e.replace(/\\\"/g,qi)+'\"':qi}function Zo(e,t){var n=typeof Oo!==l.jA?Oo:qo(\"console\");if(n){var r=\"log\";n[e]&&(r=e),io(n[r])&&n[r](t);}}var Xo=function(){function e(e,t,n,r){void 0===n&&(n=!1);var i=this;i.messageId=e,i.message=(n?\"AI: \":\"AI (Internal): \")+e;var o=qi;Ho()&&(o=Ko().stringify(r));var s=(t?\" message:\"+Yo(t):qi)+(r?\" props:\"+Yo(o):qi);i.message+=s;}return e.dataType=\"MessageData\",e}(),Qo=function(){function e(t){this.identifier=\"DiagnosticLogger\",this.queue=[];var n,i,o,s,a=0,c={};(0, r.Z)(e,this,(function(e){function r(t,n){if(!(a>=o)){var r=!0,s=\"AITR_\"+n.messageId;if(c[s]?r=!1:c[s]=!0,r&&(t<=i&&(e.queue.push(n),a++,u(1===t?\"error\":\"warn\",n)),a===o)){var l=\"Internal events throttle limit per PageView reached for this app.\",d=new Xo(23,l,!1);e.queue.push(d),1===t?e.errorToConsole(l):e.warnToConsole(l);}}}function u(e,n){var r=Jo(t||{});r&&r.diagLog&&r.diagLog(e,n);}!function(e){n=wo(e.loggingLevelConsole,0),i=wo(e.loggingLevelTelemetry,1),o=wo(e.maxMessageLimit,25),s=wo(e.enableDebugExceptions,!1);}(t||{}),e.consoleLoggingLevel=function(){return n},e.telemetryLoggingLevel=function(){return i},e.maxInternalMessageLimit=function(){return o},e.enableDebugExceptions=function(){return s},e.throwInternal=function(t,i,o,a,l){void 0===l&&(l=!1);var d=new Xo(i,o,l,a);if(s)throw zo(d);var f=1===t?\"errorToConsole\":\"warnToConsole\";if(eo(d.message))u(\"throw\"+(1===t?\"Critical\":\"Warning\"),d);else {if(l){var p=+d.messageId;!c[p]&&n>=t&&(e[f](d.message),c[p]=!0);}else n>=t&&e[f](d.message);r(t,d);}},e.warnToConsole=function(e){Zo(\"warn\",e),u(\"warning\",e);},e.errorToConsole=function(e){Zo(\"error\",e),u(\"error\",e);},e.resetInternalMessageCount=function(){a=0,c={};},e.logInternalMessage=r;}));}return e.__ieDyn=1,e}();function es(e){return e||new Qo}function ts(e,t,n,r,i,o){void 0===o&&(o=!1),es(e).throwInternal(t,n,r,i,o);}var ns=function(){function e(t,n,r){var i,o=this,s=!1;o.start=bo(),o.name=t,o.isAsync=r,o.isChildEvt=function(){return !1},io(n)&&(s=So(o,\"payload\",(function(){return !i&&io(n)&&(i=n(),n=null),i}))),o.getCtx=function(t){return t?t===e.ParentContextKey||t===e.ChildrenContextKey?o[t]:(o.ctx||{})[t]:null},o.setCtx=function(t,n){t&&(t===e.ParentContextKey?(o[t]||(o.isChildEvt=function(){return !0}),o[t]=n):t===e.ChildrenContextKey?o[t]=n:(o.ctx=o.ctx||{})[t]=n);},o.complete=function(){var t=0,r=o.getCtx(e.ChildrenContextKey);if(co(r))for(var i=0;i<r.length;i++){var a=r[i];a&&(t+=a.time);}o.time=bo()-o.start,o.exTime=o.time-t,o.complete=function(){},!s&&io(n)&&(o.payload=n());};}return e.ParentContextKey=\"parent\",e.ChildrenContextKey=\"childEvts\",e}(),rs=function(){function e(t){this.ctx={},(0, r.Z)(e,this,(function(e){e.create=function(e,t,n){return new ns(e,t,n)},e.fire=function(e){e&&(e.complete(),t&&io(t.perfEvent)&&t.perfEvent(e));},e.setCtx=function(t,n){t&&((e.ctx=e.ctx||{})[t]=n);},e.getCtx=function(t){return (e.ctx||{})[t]};}));}return e.__ieDyn=1,e}(),is=\"CoreUtils.doPerf\";function os(e,t,n,r,i){if(e){var o=e;if(o.getPerfMgr&&(o=o.getPerfMgr()),o){var s=void 0,a=o.getCtx(is);try{if(s=o.create(t(),r,i)){if(a&&s.setCtx&&(s.setCtx(ns.ParentContextKey,a),a.getCtx&&a.setCtx)){var c=a.getCtx(ns.ChildrenContextKey);c||(c=[],a.setCtx(ns.ChildrenContextKey,c)),c.push(s);}return o.setCtx(is,s),n(s)}}catch(e){s&&s.setCtx&&s.setCtx(\"exception\",e);}finally{s&&o.fire(s),o.setCtx(is,a);}}}return n()}var ss=4294967296,as=4294967295,cs=!1,us=123456789,ls=987654321;function ds(e){e<0&&(e>>>=0),us=123456789+e&as,ls=987654321-e&as,cs=!0;}function fs(){try{var e=2147483647&bo();ds((Math.random()*ss^e)+e);}catch(e){}}function ps(e){var t=0,n=qo(\"crypto\")||qo(\"msCrypto\");return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&as),0===t&&Wo()&&(cs||fs(),t=gs()&as),0===t&&(t=Math.floor(ss*Math.random()|0)),e||(t>>>=0),t}function gs(e){var t=((ls=36969*(65535&ls)+(ls>>16)&as)<<16)+(65535&(us=18e3*(65535&us)+(us>>16)&as))>>>0&as|0;return e||(t>>>=0),t}function hs(e){void 0===e&&(e=22);for(var t=ps()>>>0,n=0,r=qi;r.length<e;)n++,r+=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\".charAt(63&t),t>>>=6,5===n&&(t=(ps()<<2&4294967295|3&t)>>>0,n=0);return r}var ms=l.RJ,vs=\".\"+hs(6),ys=0;function Cs(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function Ss(e,t){return void 0===t&&(t=!1),oo(e+ys+++(t?\".2.8.11\":qi)+vs)}function Ts(e){var t={id:Ss(\"_aiData-\"+(e||qi)+\".2.8.11\"),accept:function(e){return Cs(e)},get:function(e,n,r,i){var o=e[t.id];return o?o[oo(n)]:(i&&((o=function(e,t){var n=t[e.id];if(!n){n={};try{Cs(t)&&(function(e,t,n){if(ms)try{return ms(e,t,{value:n,enumerable:!1,configurable:!0}),!0}catch(e){}return !1}(t,e.id,n)||(t[e.id]=n));}catch(e){}}return n}(t,e))[oo(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t];}catch(e){}}};return t}function bs(e,t,n){return !(!e||e.length!==t||e===n||!e.match(/^[\\da-f]*$/))}var _s=Ts(\"plugin\");function Rs(e){return _s.get(e,\"state\",{},!0)}function Ds(e,t){for(var n,r=[],i=null,o=e.getNext();o;){var s=o.getPlugin();s&&(i&&io(i.setNextPlugin)&&io(s.processTelemetry)&&i.setNextPlugin(s),(io(s.isInitialized)?s.isInitialized():(n=Rs(s)).isInitialized)||r.push(s),i=s,o=o.getNext());}ho(r,(function(r){var i=e.core();r.initialize(e.getCfg(),i,t,e.getNext()),n=Rs(r),r.core||n.core||(n.core=i),n.isInitialized=!0,delete n.teardown;}));}function ws(e){return e.sort((function(e,t){var n=0;if(t){var r=io(t.processTelemetry);io(e.processTelemetry)?n=r?e.priority-t.priority:1:r&&(n=-1);}else n=e?1:-1;return n}))}var Es=0;function Ps(e,t,n,r){var i=null,o=[];null!==r&&(i=r?function(e,t,n){for(;e;){if(e.getPlugin()===n)return e;e=e.getNext();}return Os([n],t.config||{},t)}(e,n,r):e);var s={_next:function(){var e=i;if(i=e?e.getNext():null,!e){var t=o;t&&t.length>0&&(ho(t,(function(e){try{e.func.call(e.self,e.args);}catch(e){ts(n.logger,2,73,\"Unexpected Exception during onComplete - \"+zo(e));}})),o=[]);}return e},ctx:{core:function(){return n},diagLog:function(){return function(e,t){return (e||{}).logger||new Qo(t)}(n,t)},getCfg:function(){return t},getExtCfg:a,getConfig:function(e,n,r){void 0===r&&(r=!1);var i,o=a(e,null);return o&&!to(o[n])?i=o[n]:t&&!to(t[n])&&(i=t[n]),to(i)?r:i},hasNext:function(){return !!i},getNext:function(){return i},setNext:function(e){i=e;},iterate:function(e){for(var t;t=s._next();){var n=t.getPlugin();n&&e(n);}},onComplete:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e&&o.push({func:e,self:eo(t)?s.ctx:t,args:n});}}};function a(e,n,r){var i;if(void 0===n&&(n={}),void 0===r&&(r=0),t){var o=t.extensionConfig;o&&e&&(i=o[e]);}if(i){if(ro(n)&&0!==r){var s=No(!0,n,i);t&&2===r&&so(n,(function(e){if(to(s[e])){var n=t[e];to(n)||(s[e]=n);}})),i=s;}}else i=n;return i}return s}function ks(e,t,n,r){var i=Ps(e,t,n,r),o=i.ctx;return o.processNext=function(e){var t=i._next();return t&&t.processTelemetry(e,o),!t},o.createNew=function(e,r){return void 0===e&&(e=null),co(e)&&(e=Os(e,t,n,r)),ks(e||o.getNext(),t,n,r)},o}function xs(e,t,n){var r=t.config||{},i=Ps(e,r,t,n),o=i.ctx;return o.processNext=function(e){var t=i._next();return t&&t.unload(o,e),!t},o.createNew=function(e,n){return void 0===e&&(e=null),co(e)&&(e=Os(e,r,t,n)),xs(e||o.getNext(),t,n)},o}function Ns(e,t,n){var r=t.config||{},i=Ps(e,r,t,n).ctx;return i.processNext=function(e){return i.iterate((function(t){io(t.update)&&t.update(i,e);}))},i.createNew=function(e,n){return void 0===e&&(e=null),co(e)&&(e=Os(e,r,t,n)),Ns(e||i.getNext(),t,n)},i}function Os(e,t,n,r){var i=null,o=!r;if(co(e)&&e.length>0){var s=null;ho(e,(function(e){if(o||r!==e||(o=!0),o&&e&&io(e.processTelemetry)){var a=function(e,t,n){var r,i=null,o=io(e.processTelemetry),s=io(e.setNextPlugin),a={getPlugin:function(){return e},getNext:function(){return i},processTelemetry:function(r,u){c(u=u||function(){var r;return e&&io(e._getTelCtx)&&(r=e._getTelCtx()),r||(r=ks(a,t,n)),r}(),(function(t){if(!e||!o)return !1;var n=Rs(e);return !n.teardown&&!n.disabled&&(s&&e.setNextPlugin(i),e.processTelemetry(r,t),!0)}),\"processTelemetry\",(function(){return {item:r}}),!r.sync)||u.processNext(r);},unload:function(t,n){c(t,(function(){var r=!1;if(e){var i=Rs(e),o=e.core||i.core;!e||o&&o!==t.core()||i.teardown||(i.core=null,i.teardown=!0,i.isInitialized=!1,e.teardown&&!0===e.teardown(t,n)&&(r=!0));}return r}),\"unload\",(function(){}),n.isAsync)||t.processNext(n);},update:function(t,n){c(t,(function(){var r=!1;if(e){var i=Rs(e),o=e.core||i.core;!e||o&&o!==t.core()||i.teardown||e.update&&!0===e.update(t,n)&&(r=!0);}return r}),\"update\",(function(){}),!1)||t.processNext(n);},_id:r=e?e.identifier+\"-\"+e.priority+\"-\"+Es++:\"Unknown-0-\"+Es++,_setNext:function(e){i=e;}};function c(t,n,o,s,a){var c=!1,u=e?e.identifier:\"TelemetryPluginChain\",l=t._hasRun;return l||(l=t._hasRun={}),t.setNext(i),e&&os(t.core(),(function(){return u+\":\"+o}),(function(){l[r]=!0;try{var e=i?i._id:qi;e&&(l[e]=!1),c=n(t);}catch(e){var s=!i||l[i._id];s&&(c=!0),i&&s||ts(t.diagLog(),1,73,\"Plugin [\"+u+\"] failed during \"+o+\" - \"+zo(e)+\", run flags: \"+zo(l));}}),s,a),c}return To(a)}(e,t,n);i||(i=a),s&&s._setNext(a),s=a;}}));}return r&&!i?Os([r],t,n):i}var Is=500;function As(e,t,n){t&&co(t)&&t.length>0&&(ho(t=t.sort((function(e,t){return e.priority-t.priority})),(function(e){e.priority<Is&&Po(\"Channel has invalid priority - \"+e.identifier);})),e.push({queue:To(t),chain:Os(t,n.config,n)}));}var Fs=\"toGMTString\",Ls=\"toUTCString\",qs=null,Ms=null,js=null,Us=jo(),Hs={},Ks={};function Ws(e){return !e||e.isEnabled()}function zs(e,t){return !!(t&&e&&co(e.ignoreCookies))&&-1!==e.ignoreCookies.indexOf(t)}function Vs(e,t){var n,r=function(e){var t=e.cookieCfg=e.cookieCfg||{};if(Ro(t,\"domain\",e.cookieDomain,no,to),Ro(t,\"path\",e.cookiePath||\"/\",null,to),to(t.enabled)){var n=void 0;eo(e.isCookieUseDisabled)||(n=!e.isCookieUseDisabled),eo(e.disableCookiesUsage)||(n=!e.disableCookiesUsage),t.enabled=n;}return t}(e||Ks),i=r.path||\"/\",o=r.domain,s=!1!==r.enabled,a=((n={isEnabled:function(){var e=s&&Bs(t),n=Ks._ckMgr;return e&&n&&a!==n&&(e=Ws(n)),e}}).setEnabled=function(e){s=!1!==e;},n.set=function(e,t,n,s,c){var u,d=!1;if(Ws(a)&&!function(e,t){return !!(t&&e&&co(e.blockedCookies)&&-1!==e.blockedCookies.indexOf(t))||zs(e,t)}(r,e)){var f={},p=vo(t||qi),g=p.indexOf(\";\");if(-1!==g&&(p=vo(t.substring(0,g)),f=$s(t.substring(g+1))),Ro(f,\"domain\",s||o,Eo,eo),!to(n)){var h=Wo();if(eo(f.expires)){var m=bo()+1e3*n;if(m>0){var v=new Date;v.setTime(m),Ro(f,\"expires\",Gs(v,h?Fs:Ls)||Gs(v,h?Fs:Ls)||qi,Eo);}}h||Ro(f,\"max-age\",qi+n,null,eo);}var y=typeof location===l.fK&&location?location:qo(\"location\");y&&\"https:\"===y.protocol&&(Ro(f,\"secure\",null,null,eo),null===Ms&&(u=(Uo()||{}).userAgent,Ms=!(lo(u)&&(ao(u,\"CPU iPhone OS 12\")||ao(u,\"iPad; CPU OS 12\")||ao(u,\"Macintosh; Intel Mac OS X 10_14\")&&ao(u,\"Version/\")&&ao(u,\"Safari\")||ao(u,\"Macintosh; Intel Mac OS X 10_14\")&&function(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=zi?e.endsWith(t):function(e,t){var n=!1,r=t?t.length:0,i=e?e.length:0;if(r&&i&&i>=r&&!(n=e===t)){for(var o=i-1,s=r-1;s>=0;s--){if(e[o]!=t[s])return !1;o--;}n=!0;}return n}(e,t)),n}(u,\"AppleWebKit/605.1.15 (KHTML, like Gecko)\")||ao(u,\"Chrome/5\")||ao(u,\"Chrome/6\")||ao(u,\"UnrealEngine\")&&!ao(u,\"Chrome\")||ao(u,\"UCBrowser/12\")||ao(u,\"UCBrowser/11\")))),Ms&&Ro(f,\"SameSite\",\"None\",null,eo)),Ro(f,\"path\",c||i,null,eo),(r.setCookie||Zs)(e,Js(p,f)),d=!0;}return d},n.get=function(e){var t=qi;return Ws(a)&&!zs(r,e)&&(t=(r.getCookie||Ys)(e)),t},n.del=function(e,t){var n=!1;return Ws(a)&&(n=a.purge(e,t)),n},n.purge=function(e,n){var i,o=!1;if(Bs(t)){var s=((i={}).path=n||\"/\",i.expires=\"Thu, 01 Jan 1970 00:00:01 GMT\",i);Wo()||(s[\"max-age\"]=\"0\"),(r.delCookie||Zs)(e,Js(qi,s)),o=!0;}return o},n);return a._ckMgr=a,a}function Bs(e){if(null===qs){qs=!1;try{qs=void 0!==(Us||{}).cookie;}catch(t){ts(e,2,68,\"Cannot access document.cookie - \"+_o(t),{exception:zo(t)});}}return qs}function $s(e){var t={};return e&&e.length&&ho(vo(e).split(\";\"),(function(e){if(e=vo(e||qi)){var n=e.indexOf(\"=\");-1===n?t[e]=null:t[vo(e.substring(0,n))]=vo(e.substring(n+1));}})),t}function Gs(e,t){return io(e[t])?e[t]():null}function Js(e,t){var n=e||qi;return so(t,(function(e,t){n+=\"; \"+e+(to(t)?qi:\"=\"+t);})),n}function Ys(e){var t=qi;if(Us){var n=Us.cookie||qi;js!==n&&(Hs=$s(n),js=n),t=vo(Hs[e]||qi);}return t}function Zs(e,t){Us&&(Us.cookie=e+\"=\"+t);}function Xs(){var e=[];return {add:function(t){t&&e.push(t);},run:function(t,n){ho(e,(function(e){try{e(t,n);}catch(e){ts(t.diagLog(),2,73,\"Unexpected error calling unload handler - \"+zo(e));}})),e=[];}}}var Qs=function(){function e(){var t,n,i,o,s,a=this;function c(e){void 0===e&&(e=null);var t=e;if(!t){var r=n||ks(null,{},a.core);t=i&&i.getPlugin?r.createNew(null,i.getPlugin):r.createNew(null,i);}return t}function u(e,t,r){e&&Ro(e,Mi,[],null,to),!r&&t&&(r=t.getProcessTelContext().getNext());var o=i;i&&i.getPlugin&&(o=i.getPlugin()),a.core=t,n=ks(r,e,t,o);}function l(){t=!1,a.core=null,n=null,i=null,s=[],o=Xs();}l(),(0, r.Z)(e,a,(function(e){e.initialize=function(e,n,r,i){u(e,n,i),t=!0;},e.teardown=function(t,n){var r,a=e.core;if(a&&(!t||a===t.core())){var c,u=!1,d=t||xs(null,a,i&&i.getPlugin?i.getPlugin():i),f=n||((r={reason:0}).isAsync=!1,r);return e._doTeardown&&!0===e._doTeardown(d,f,p)?c=!0:p(),c}function p(){if(!u){u=!0,o.run(d,n);var e=s;s=[],ho(e,(function(e){e.rm();})),!0===c&&d.processNext(f),l();}}},e.update=function(t,n){var r=e.core;if(r&&(!t||r===t.core())){var o,s=!1,a=t||Ns(null,r,i&&i.getPlugin?i.getPlugin():i),c=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(a,c,l)?o=!0:l(),o}function l(){s||(s=!0,u(a.getCfg(),a.core(),a.getNext()));}},e._addHook=function(e){e&&(co(e)?s=s.concat(e):s.push(e));},ko(e,\"_addUnloadCb\",(function(){return o}),\"add\");})),a.diagLog=function(e){return c(e).diagLog()},a.isInitialized=function(){return t},a.setInitialized=function(e){t=e;},a.setNextPlugin=function(e){i=e;},a.processNext=function(e,t){t?t.processNext(e):i&&io(i.processTelemetry)&&i.processTelemetry(e,null);},a._getTelCtx=c;}return e.__ieDyn=1,e}(),ea=function(e){function t(){var n,i,o=e.call(this)||this;function s(){n=0,i=[];}return o.identifier=\"TelemetryInitializerPlugin\",o.priority=199,s(),(0, r.Z)(t,o,(function(e,t){e.addTelemetryInitializer=function(e){var t={id:n++,fn:e};return i.push(t),{remove:function(){ho(i,(function(e,n){if(e.id===t.id)return i.splice(n,1),-1}));}}},e.processTelemetry=function(t,n){for(var r=!1,o=i.length,s=0;s<o;++s){var a=i[s];if(a)try{if(!1===a.fn.apply(null,[t])){r=!0;break}}catch(e){ts(n.diagLog(),1,64,\"One of telemetry initializers failed, telemetry item will not be sent: \"+_o(e),{exception:zo(e)},!0);}}r||e.processNext(t,n);},e._doTeardown=function(){s();};})),o}return (0, i.ne)(t,e),t.__ieDyn=1,t}(Qs),ta=\"Plugins must provide initialize method\",na=\"SDK is still unloading...\",ra={loggingLevelConsole:1};function ia(e,t){return new rs(t)}function oa(e,t){var n=!1;return ho(t,(function(t){if(t===e)return n=!0,-1})),n}var sa=function(){function e(){var t,n,o,s,a,c,u,l,f,p,g,h,m,v,y,C,S,T,b,_,R=0;(0, r.Z)(e,this,(function(e){function r(){n=!1,t=No(!0,{},ra),e.config=t,e.logger=new Qo(t),e._extensions=[],y=new ea,o=[],s=null,a=null,c=null,u=null,l=null,p=null,f=[],g=null,h=null,m=null,v=!1,C=null,S=Ss(\"AIBaseCore\",!0),T=Xs(),_=null;}function D(){return ks(P(),t,e)}function w(n){var r=function(e,t,n){var r,i=[],o={};return ho(n,(function(n){(to(n)||to(n.initialize))&&Po(ta);var r=n.priority,s=n.identifier;n&&r&&(to(o[r])?o[r]=s:function(e,t){es(e).warnToConsole(t);}(e,\"Two extensions have same priority #\"+r+\" - \"+o[r]+\", \"+s)),(!r||r<t)&&i.push(n);})),(r={all:n}).core=i,r}(e.logger,Is,f);p=r.core,l=null;var i=r.all;if(m=To(function(e,t,n){var r=[];if(e&&ho(e,(function(e){return As(r,e,n)})),t){var i=[];ho(t,(function(e){e.priority>Is&&i.push(e);})),As(r,i,n);}return r}(h,i,e)),g){var o=mo(i,g);-1!==o&&i.splice(o,1),-1!==(o=mo(p,g))&&p.splice(o,1),g._setQueue(m);}else g=function(e,t){function n(){return ks(null,t.config,t,null)}function r(e,t,n,r){var i=e?e.length+1:1;function o(){0==--i&&(r&&r(),r=null);}i>0&&ho(e,(function(e){if(e&&e.queue.length>0){var r=e.chain,s=t.createNew(r);s.onComplete(o),n(s);}else i--;})),o();}var i=!1,o={identifier:\"ChannelControllerPlugin\",priority:Is,initialize:function(t,n,r,o){i=!0,ho(e,(function(e){e&&e.queue.length>0&&Ds(ks(e.chain,t,n),r);}));},isInitialized:function(){return i},processTelemetry:function(t,i){r(e,i||n(),(function(e){e.processNext(t);}),(function(){i.processNext(t);}));},update:function(t,n){var i=n||{reason:0};return r(e,t,(function(e){e.processNext(i);}),(function(){t.processNext(i);})),!0},pause:function(){r(e,n(),(function(e){e.iterate((function(e){e.pause&&e.pause();}));}),null);},resume:function(){r(e,n(),(function(e){e.iterate((function(e){e.resume&&e.resume();}));}),null);},teardown:function(t,n){var o=n||{reason:0,isAsync:!1};return r(e,t,(function(e){e.processNext(o);}),(function(){t.processNext(o),i=!1;})),!0},getChannel:function(t){var n=null;return e&&e.length>0&&ho(e,(function(e){if(e&&e.queue.length>0&&(ho(e.queue,(function(e){if(e.identifier===t)return n=e,-1})),n))return -1})),n},flush:function(t,i,o,s){var a=1,c=!1,u=null;function l(){a--,c&&0===a&&(u&&(clearTimeout(u),u=null),i&&i(c),i=null);}return s=s||5e3,r(e,n(),(function(e){e.iterate((function(e){if(e.flush){a++;var n=!1;e.flush(t,(function(){n=!0,l();}),o)||n||(t&&null==u?u=setTimeout((function(){u=null,l();}),s):l());}}));}),(function(){c=!0,l();})),!0},_setQueue:function(t){e=t;}};return o}(m,e);i.push(g),p.push(g),e._extensions=ws(i),g.initialize(t,e,i),Ds(D(),i),e._extensions=To(ws(p||[])).slice(),n&&function(t){var n=Ns(P(),e);e._updateHook&&!0===e._updateHook(n,t)||n.processNext(t);}(n);}function E(t){var n,r=null,i=null;return ho(e._extensions,(function(e){if(e.identifier===t&&e!==g&&e!==y)return i=e,-1})),!i&&g&&(i=g.getChannel(t)),i&&((n={plugin:i}).setEnabled=function(e){Rs(i).disabled=!e;},n.isEnabled=function(){var e=Rs(i);return !e.teardown&&!e.disabled},n.remove=function(e,t){var n;void 0===e&&(e=!0);var r=[i],o=((n={reason:1}).isAsync=e,n);k(r,o,(function(e){e&&w({reason:32,removed:r}),t&&t(e);}));},r=n),r}function P(){if(!l){var n=(p||[]).slice();-1===mo(n,y)&&n.push(y),l=Os(ws(n),t,e);}return l}function k(n,r,i){if(n&&n.length>0){var o=xs(Os(n,t,e),e);o.onComplete((function(){var e=!1,t=[];ho(f,(function(r,i){oa(r,n)?e=!0:t.push(r);})),f=t;var r=[];h&&(ho(h,(function(t,i){var o=[];ho(t,(function(t){oa(t,n)?e=!0:o.push(t);})),r.push(o);})),h=r),i&&i(e);})),o.processNext(r);}else i(!1);}function x(){var n=e.logger?e.logger.queue:[];n&&(ho(n,(function(n){var r,i=((r={}).name=C||\"InternalMessageId: \"+n.messageId,r.iKey=wo(t.instrumentationKey),r.time=go(new Date),r.baseType=Xo.dataType,r.baseData={message:n.message},r);e.track(i);})),n.length=0);}function N(e,t,n,r){return g?g.flush(e,t,n||6,r):(t&&t(!1),!0)}function O(t){var n=e.logger;n?ts(n,2,73,t):Po(t);}r(),e.isInitialized=function(){return n},e.initialize=function(r,o,a,u){var l,d;v&&Po(na),e.isInitialized()&&Po(\"Core should not be initialized more than once\"),t=r||{},e.config=t,to(r.instrumentationKey)&&Po(\"Please provide instrumentation key\"),s=u,e._notificationManager=u,!0===(d=wo(t.disableDbgExt))&&b&&(s.removeNotificationListener(b),b=null),s&&!b&&!0!==d&&(b=function(e){if(!Vo){Vo={};for(var t=0;t<Bo.length;t++)Vo[Bo[t]]=Go(Bo[t],e);}return Vo}(t),s.addNotificationListener(b)),!(l=wo(t.enablePerfMgr))&&c&&(c=null),l&&Do(t,\"createPerfMgr\",ia),Do(t,Mi,{}).NotificationManager=s,a&&(e.logger=a);var p=Do(t,\"extensions\",[]);(f=[]).push.apply(f,(0, i.$h)((0, i.$h)([],o,!1),p,!1)),h=Do(t,\"channels\",[]),w(null),m&&0!==m.length||Po(\"No channels available\"),n=!0,e.releaseQueue();},e.getTransmissionControls=function(){var e=[];return m&&ho(m,(function(t){e.push(t.queue);})),To(e)},e.track=function(n){n.iKey=n.iKey||t.instrumentationKey,n.time=n.time||go(new Date),n.ver=n.ver||\"4.0\",!v&&e.isInitialized()?D().processNext(n):o.push(n);},e.getProcessTelContext=D,e.getNotifyMgr=function(){return s||(s=function(){var e;return (0, d.pu)(((e={}).addNotificationListener=function(e){},e.removeNotificationListener=function(e){},e.eventsSent=function(e){},e.eventsDiscarded=function(e,t){},e.eventsSendRequest=function(e,t){},e))}(),e._notificationManager=s),s},e.addNotificationListener=function(e){s&&s.addNotificationListener(e);},e.removeNotificationListener=function(e){s&&s.removeNotificationListener(e);},e.getCookieMgr=function(){return u||(u=Vs(t,e.logger)),u},e.setCookieMgr=function(e){u=e;},e.getPerfMgr=function(){if(!a&&!c&&wo(t.enablePerfMgr)){var n=wo(t.createPerfMgr);io(n)&&(c=n(e,e.getNotifyMgr()));}return a||c||null},e.setPerfMgr=function(e){a=e;},e.eventCnt=function(){return o.length},e.releaseQueue=function(){if(n&&o.length>0){var e=o;o=[],ho(e,(function(e){D().processNext(e);}));}},e.pollInternalLogs=function(e){C=e||null;var n=wo(t.diagnosticLogInterval);return n&&n>0||(n=1e4),R&&clearInterval(R),R=setInterval((function(){x();}),n)},e.stopPollingInternalLogs=function(){R&&(clearInterval(R),R=0,x());},xo(e,(function(){return y}),[\"addTelemetryInitializer\"]),e.unload=function(t,i,o){var s;void 0===t&&(t=!0),n||Po(\"SDK is not initialized\"),v&&Po(na);var a=((s={reason:50}).isAsync=t,s.flushComplete=!1,s),c=xs(P(),e);function u(t){a.flushComplete=t,v=!0,T.run(c,a),e.stopPollingInternalLogs(),c.processNext(a);}c.onComplete((function(){r(),i&&i(a);}),e),N(t,u,6,o)||u(!1);},e.getPlugin=E,e.addPlugin=function(e,t,n,r){if(!e)return r&&r(!1),void O(ta);var i=E(e.identifier);if(i&&!t)return r&&r(!1),void O(\"Plugin [\"+e.identifier+\"] is already loaded!\");var o={reason:16};function s(t){f.push(e),o.added=[e],w(o),r&&r(!0);}if(i){var a=[i.plugin];k(a,{reason:2,isAsync:!!n},(function(e){e?(o.removed=a,o.reason|=32,s()):r&&r(!1);}));}else s();},e.evtNamespace=function(){return S},e.flush=N,e.getTraceCtx=function(e){var t;return _||(t={},_={getName:function(){return t.name},setName:function(e){t.name=e;},getTraceId:function(){return t.traceId},setTraceId:function(e){bs(e,32,\"00000000000000000000000000000000\")&&(t.traceId=e);},getSpanId:function(){return t.spanId},setSpanId:function(e){bs(e,16,\"0000000000000000\")&&(t.spanId=e);},getTraceFlags:function(){return t.traceFlags},setTraceFlags:function(e){t.traceFlags=e;}}),_},e.setTraceCtx=function(e){_=e||null;},ko(e,\"addUnloadCb\",(function(){return T}),\"add\");}));}return e.__ieDyn=1,e}();function aa(e,t,n,r){ho(e,(function(e){if(e&&e[t])if(n)setTimeout((function(){return r(e)}),0);else try{r(e);}catch(e){}}));}var ca=function(){function e(t){this.listeners=[];var n=!!(t||{}).perfEvtsSendAll;(0, r.Z)(e,this,(function(e){e.addNotificationListener=function(t){e.listeners.push(t);},e.removeNotificationListener=function(t){for(var n=mo(e.listeners,t);n>-1;)e.listeners.splice(n,1),n=mo(e.listeners,t);},e.eventsSent=function(t){aa(e.listeners,\"eventsSent\",!0,(function(e){e.eventsSent(t);}));},e.eventsDiscarded=function(t,n){aa(e.listeners,\"eventsDiscarded\",!0,(function(e){e.eventsDiscarded(t,n);}));},e.eventsSendRequest=function(t,n){aa(e.listeners,\"eventsSendRequest\",n,(function(e){e.eventsSendRequest(t,n);}));},e.perfEvent=function(t){t&&(!n&&t.isChildEvt()||aa(e.listeners,\"perfEvent\",!1,(function(e){t.isAsync?setTimeout((function(){return e.perfEvent(t)}),0):e.perfEvent(t);})));};}));}return e.__ieDyn=1,e}(),ua=function(e){function t(){var n=e.call(this)||this;return (0, r.Z)(t,n,(function(e,t){function n(t){var n=e.getNotifyMgr();n&&n.eventsDiscarded([t],2);}e.initialize=function(e,n,r,i){t.initialize(e,n,r||new Qo(e),i||new ca(e));},e.track=function(r){os(e.getPerfMgr(),(function(){return \"AppInsightsCore:track\"}),(function(){null===r&&(n(r),Po(\"Invalid telemetry item\")),function(e){to(e.name)&&(n(e),Po(\"telemetry name required\"));}(r),t.track(r);}),(function(){return {item:r}}),!r.sync);};})),n}return (0, i.ne)(t,e),t.__ieDyn=1,t}(sa),la=(Ss(\"aiEvtPageHide\"),Ss(\"aiEvtPageShow\"),/\\.[\\.]+/g),da=/[\\.]+$/,fa=1,pa=Ts(\"events\"),ga=/^([^.]*)(?:\\.(.+)|)/;function ha(e){return e&&e.replace?e.replace(/^[\\s\\.]+|(?=[\\s\\.])[\\.\\s]+$/g,qi):e}function ma(e,t,n,r,i){var o;void 0===i&&(i=!1);var s=!1;if(e)try{var a=function(e,t){var n;if(t){var r=qi;co(t)?(r=qi,ho(t,(function(e){(e=ha(e))&&(\".\"!==e[0]&&(e=\".\"+e),r+=e);}))):r=ha(t),r&&(\".\"!==r[0]&&(r=\".\"+r),e=(e||qi)+r);}var i=ga.exec(e||qi)||[];return (n={}).type=i[1],n.ns=(i[2]||qi).replace(la,\".\").replace(da,qi).split(\".\").sort().join(\".\"),n}(t,r);if(s=function(e,t,n,r){var i=!1;return e&&t&&t.type&&n&&(e.addEventListener?(e.addEventListener(t.type,n,r),i=!0):e.attachEvent&&(e.attachEvent(\"on\"+t.type,n),i=!0)),i}(e,a,n,i),s&&pa.accept(e)){var c=((o={guid:fa++,evtName:a}).handler=n,o.capture=i,o);(function(e,t,n){void 0===n&&(n=!0);var r=pa.get(e,\"events\",{},n),i=r[t];return i||(i=r[t]=[]),i})(e,a.type).push(c);}}catch(e){}return s}var va,ya=null;function Ca(){for(var e,t=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\"],n=qi,r=0;r<4;r++)n+=t[15&(e=ps())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var i=t[8+(3&ps())|0];return n.substr(0,8)+n.substr(9,4)+\"4\"+n.substr(13,3)+i+n.substr(16,3)+n.substr(19,12)}var Sa,Ta={_canUseCookies:void 0,isTypeof:function(e,t){return typeof e===t},isUndefined:eo,isNullOrUndefined:to,hasOwnProperty:function(e,t){return !(!e||!l.CY.call(e,t))},isFunction:io,isObject:ro,isDate:function(e){return !(!e||\"[object Date]\"!==$i.call(e))},isArray:co,isError:uo,isString:lo,isNumber:function(e){return \"number\"==typeof e},isBoolean:fo,toISOString:go,arrForEach:ho,arrIndexOf:mo,arrMap:function(e,t,n){var r;if(e){if(e.map)return e.map(t,n);var i=e.length,o=n||e;r=new Array(i);try{for(var s=0;s<i;s++)s in e&&(r[s]=t.call(o,e[s],e));}catch(e){}}return r},arrReduce:function(e,t,n){var r;if(e){if(e.reduce)return e.reduce(t,n);var i=e.length,o=0;if(arguments.length>=3)r=arguments[2];else {for(;o<i&&!(o in e);)o++;r=e[o++];}for(;o<i;)o in e&&(r=t(r,e[o],o,e)),o++;}return r},strTrim:vo,objCreate:d.pu,objKeys:function(e){var t=typeof e;if(t===l.cb||t===l.fK&&null!==e||(0, d.ZU)(\"objKeys called on non-object\"),!yo&&Hi)return Hi(e);var n=[];for(var r in e)e&&l.CY.call(e,r)&&n.push(r);if(yo)for(var i=Co.length,o=0;o<i;o++)e&&l.CY.call(e,Co[o])&&n.push(Co[o]);return n},objDefineAccessors:So,addEventHandler:function(e,t,n){var r=!1,i=Mo()?window:qo(Io);i&&(r=ma(i,e,t,n),r=ma(i.body,e,t,n)||r);var o=jo();return o&&(r=ma(o,e,t,n)||r),r},dateNow:bo,isIE:Wo,disableCookies:function(){var e,t,n,r;(n=function(e,t){var n=Vs._ckMgr||Ks._ckMgr;return n||(n=Vs._ckMgr=Vs(e,t),Ks._ckMgr=n),n}(e,t),r=Ta._canUseCookies,null===ya&&(ya=[],va=r,So(Ta,\"_canUseCookies\",(function(){return va}),(function(e){va=e,ho(ya,(function(t){t.setEnabled(e);}));}))),-1===mo(ya,n)&&ya.push(n),fo(r)&&n.setEnabled(r),fo(va)&&n.setEnabled(va),n).setEnabled(!1);},newGuid:function(){var e=Ca();return e.substring(0,8)+\"-\"+e.substring(8,12)+\"-\"+e.substring(12,16)+\"-\"+e.substring(16,20)+\"-\"+e.substring(20)},perfNow:function(){var e=qo(\"performance\");return e&&e.now?e.now():bo()},newId:hs,randomValue:function(e){return e>0?Math.floor(ps()/as*(e+1))>>>0:0},random32:ps,mwcRandomSeed:function(e){e?ds(e):fs();},mwcRandom32:gs,generateW3CId:Ca};function ba(e){var t,n={};return so(e,(function(e,t){n[e]=t,n[t]=e;})),t=n,Ui&&so(t,(function(e,t){(co(t)||ro(t))&&Ui(t);})),To(t)}ba({CRITICAL:1,WARNING:2});var _a=ba(((Sa={}).BrowserDoesNotSupportLocalStorage=0,Sa.BrowserCannotReadLocalStorage=1,Sa.BrowserCannotReadSessionStorage=2,Sa.BrowserCannotWriteLocalStorage=3,Sa.BrowserCannotWriteSessionStorage=4,Sa.BrowserFailedRemovalFromLocalStorage=5,Sa.BrowserFailedRemovalFromSessionStorage=6,Sa.CannotSendEmptyTelemetry=7,Sa.ClientPerformanceMathError=8,Sa.ErrorParsingAISessionCookie=9,Sa.ErrorPVCalc=10,Sa.ExceptionWhileLoggingError=11,Sa.FailedAddingTelemetryToBuffer=12,Sa.FailedMonitorAjaxAbort=13,Sa.FailedMonitorAjaxDur=14,Sa.FailedMonitorAjaxOpen=15,Sa.FailedMonitorAjaxRSC=16,Sa.FailedMonitorAjaxSend=17,Sa.FailedMonitorAjaxGetCorrelationHeader=18,Sa.FailedToAddHandlerForOnBeforeUnload=19,Sa.FailedToSendQueuedTelemetry=20,Sa.FailedToReportDataLoss=21,Sa.FlushFailed=22,Sa.MessageLimitPerPVExceeded=23,Sa.MissingRequiredFieldSpecification=24,Sa.NavigationTimingNotSupported=25,Sa.OnError=26,Sa.SessionRenewalDateIsZero=27,Sa.SenderNotInitialized=28,Sa.StartTrackEventFailed=29,Sa.StopTrackEventFailed=30,Sa.StartTrackFailed=31,Sa.StopTrackFailed=32,Sa.TelemetrySampledAndNotSent=33,Sa.TrackEventFailed=34,Sa.TrackExceptionFailed=35,Sa.TrackMetricFailed=36,Sa.TrackPVFailed=37,Sa.TrackPVFailedCalc=38,Sa.TrackTraceFailed=39,Sa.TransmissionFailed=40,Sa.FailedToSetStorageBuffer=41,Sa.FailedToRestoreStorageBuffer=42,Sa.InvalidBackendResponse=43,Sa.FailedToFixDepricatedValues=44,Sa.InvalidDurationValue=45,Sa.TelemetryEnvelopeInvalid=46,Sa.CreateEnvelopeError=47,Sa.CannotSerializeObject=48,Sa.CannotSerializeObjectNonSerializable=49,Sa.CircularReferenceDetected=50,Sa.ClearAuthContextFailed=51,Sa.ExceptionTruncated=52,Sa.IllegalCharsInName=53,Sa.ItemNotInArray=54,Sa.MaxAjaxPerPVExceeded=55,Sa.MessageTruncated=56,Sa.NameTooLong=57,Sa.SampleRateOutOfRange=58,Sa.SetAuthContextFailed=59,Sa.SetAuthContextFailedAccountName=60,Sa.StringValueTooLong=61,Sa.StartCalledMoreThanOnce=62,Sa.StopCalledWithoutStart=63,Sa.TelemetryInitializerFailed=64,Sa.TrackArgumentsNotSpecified=65,Sa.UrlTooLong=66,Sa.SessionStorageBufferFull=67,Sa.CannotAccessCookie=68,Sa.IdTooLong=69,Sa.InvalidEvent=70,Sa.FailedMonitorAjaxSetRequestHeader=71,Sa.SendBrowserInfoOnUserInit=72,Sa.PluginException=73,Sa.NotificationException=74,Sa.SnippetScriptLoadFailure=99,Sa.InvalidInstrumentationKey=100,Sa.CannotParseAiBlobValue=101,Sa.InvalidContentBlob=102,Sa.TrackPageActionEventFailed=103,Sa.FailedAddingCustomDefinedRequestContext=104,Sa.InMemoryStorageBufferFull=105,Sa.InstrumentationKeyDeprecation=106,Sa)),Ra=Mt({Verbose:0,Information:1,Warning:2,Error:3,Critical:4}),Da=function(){function e(t){var n=new ua;(to(t)||to(t.instrumentationKey)&&to(t.connectionString))&&Po(\"Invalid input configuration\"),(0, r.Z)(e,this,(function(e){if(t.connectionString){var r=function(e){if(!e)return {};var t=H(e.split(\";\"),(function(e,t){var n=t.split(\"=\");if(2===n.length){var r=n[0].toLowerCase(),i=n[1];e[r]=i;}return e}),{});if(V(t).length>0){if(t.endpointsuffix){var n=t.location?t.location+\".\":\"\";t.ingestionendpoint=t.ingestionendpoint||\"https://\"+n+\"dc.\"+t.endpointsuffix;}t.ingestionendpoint=t.ingestionendpoint||a;}return t}(t.connectionString),i=r.ingestionendpoint;t.endpointUrl=i?i+c:t.endpointUrl,t.instrumentationKey=r.instrumentationkey||t.instrumentationKey;}function o(){n.initialize(e.config,[new Li]),n.pollInternalLogs();}e.config=t,o(),e.initialize=o,e.getSKUDefaults=function(){e.config.diagnosticLogInterval=e.config.diagnosticLogInterval&&e.config.diagnosticLogInterval>0?e.config.diagnosticLogInterval:1e4;},e.getSKUDefaults(),xo(e,n,[\"track\",\"flush\",\"pollInternalLogs\",\"stopPollingInternalLogs\",\"unload\",\"getPlugin\",\"addPlugin\",\"evtNamespace\",\"addUnloadCb\"]);}));}return e.__ieDyn=1,e}();},9141:(e,t,n)=>{var r;n.d(t,{Z:()=>w});var i,o=\"undefined\",s=\"prototype\",a=\"function\",c=\"_dynClass\",u=\"_unknown_\",l=Object,d=l.getPrototypeOf,f=l.getOwnPropertyNames,p=(typeof globalThis!==o&&(i=globalThis),i||typeof self===o||(i=self),i||typeof window===o||(i=window),i||typeof n.g===o||(i=n.g),i||{}),g=p.__dynProto$Gbl||(p.__dynProto$Gbl={o:(r={},r.setInstFuncs=!0,r.useBaseInst=!0,r),n:1e3});function h(e,t){return e&&l.prototype.hasOwnProperty.call(e,t)}function m(e){return e&&(e===l.prototype||e===Array.prototype)}function v(e){return m(e)||e===Function.prototype}function y(e){var t;if(e){if(d)return d(e);var n=e.__proto__||e.prototype||(e.constructor?e.constructor.prototype:null);t=e._dyn__proto__||n,h(e,\"_dyn__proto__\")||(delete e._dynInstProto,t=e._dyn__proto__=e._dynInstProto||e._dyn__proto__,e._dynInstProto=n);}return t}function C(e,t){var n=[];if(f)n=f(e);else for(var r in e)\"string\"==typeof r&&h(e,r)&&n.push(r);if(n&&n.length>0)for(var i=0;i<n.length;i++)t(n[i]);}function S(e,t,n){return \"constructor\"!==t&&typeof e[t]===a&&(n||h(e,t))}function T(e){throw new TypeError(\"DynamicProto: \"+e)}function b(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return !0;return !1}function _(e,t,n,r){var i=null;if(e&&h(n,c)){var o=e._dynInstFuncs||{};if((i=(o[n._dynClass]||{})[t])||T(\"Missing [\"+t+\"] \"+a),!i._dynInstChk&&!1!==o._dynInstChk){for(var s=!h(e,t),u=y(e),l=[];s&&u&&!v(u)&&!b(l,u);){var d=u[t];if(d){s=d===r;break}l.push(u),u=y(u);}try{s&&(e[t]=i),i._dynInstChk=1;}catch(e){o._dynInstChk=!1;}}}return i}function R(e,t,n){var r=t[e];return r===n&&(r=y(t)[e]),typeof r!==a&&T(\"[\"+e+\"] is not a \"+a),r}function D(e,t){return h(e,s)?e.name||t||u:((e||{}).constructor||{}).name||t||u}function w(e,t,n,r){h(e,s)||T(\"theClass is an invalid class definition.\");var i=e.prototype;(function(e,t){if(d){for(var n=[],r=y(t);r&&!v(r)&&!b(n,r);){if(r===e)return !0;n.push(r),r=y(r);}return !1}return !0})(i,t)||T(\"[\"+D(e)+\"] not in hierarchy of [\"+D(t)+\"]\");var o=null;h(i,c)?o=i._dynClass:(o=\"_dynCls$\"+D(e,\"_\")+\"$\"+g.n,g.n++,i._dynClass=o);var a=w._dfOpts,u=!!a.useBaseInst;u&&r&&void 0!==r.useBaseInst&&(u=!!r.useBaseInst);var l=function(e){var t={};return C(e,(function(n){!t[n]&&S(e,n,!1)&&(t[n]=e[n]);})),t}(t),f=function(e,t,n,r){function i(e,t,n){var i=t[n];if(i._isDynProxy&&r){var o=e._dynInstFuncs||{};!1!==o._dynInstChk&&(i=(o[t._dynClass]||{})[n]||i);}return function(){return i.apply(e,arguments)}}var o={};C(n,(function(e){o[e]=i(t,n,e);}));for(var s=y(e),a=[];s&&!v(s)&&!b(a,s);)C(s,(function(e){!o[e]&&S(s,e,!d)&&(o[e]=i(t,s,e));})),a.push(s),s=y(s);return o}(i,t,l,u);n(t,f);var p=!!d&&!!a.setInstFuncs;p&&r&&(p=!!r.setInstFuncs),function(e,t,n,r,i){if(!m(e)){var o=n._dynInstFuncs=n._dynInstFuncs||{},s=o[t]=o[t]||{};!1!==o._dynInstChk&&(o._dynInstChk=!!i),C(n,(function(t){S(n,t,!1)&&n[t]!==r[t]&&(s[t]=n[t],delete n[t],(!h(e,t)||e[t]&&!e[t]._isDynProxy)&&(e[t]=function(e,t){var n=function(){return (_(this,t,e,n)||R(t,e,n)).apply(this,arguments)};return n._isDynProxy=1,n}(e,t)));}));}}(i,o,t,l,!1!==p);}w._dfOpts=g.o;},217:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(9496);var i,o=n(5108);!function(e){e[e.NOT_INSTANTIATED=0]=\"NOT_INSTANTIATED\",e[e.INSTANTIATING=1]=\"INSTANTIATING\",e[e.INSTANTIATED=2]=\"INSTANTIATED\";}(i||(i={}));class s{constructor(e,t){this._instantiationStatus=i.NOT_INSTANTIATED,this._eventQueue=[],this._exceptionQueue=[],this._clientFactory=t,this._key=e;}sendEventData(e,t){this._telemetryClient?this._telemetryClient.logEvent(e,t):this._instantiationStatus!==i.INSTANTIATED&&this._eventQueue.push({eventName:e,data:t});}sendErrorData(e,t){this._telemetryClient||this._instantiationStatus!==i.INSTANTIATED&&this._exceptionQueue.push({exception:e,data:t});}async flush(){this._telemetryClient&&(await this._telemetryClient.flush(),this._telemetryClient=void 0);}_flushQueues(){this._eventQueue.forEach((({eventName:e,data:t})=>this.sendEventData(e,t))),this._eventQueue=[],this._exceptionQueue.forEach((({exception:e,data:t})=>this.sendErrorData(e,t))),this._exceptionQueue=[];}instantiateSender(){this._instantiationStatus===i.NOT_INSTANTIATED&&(this._instantiationStatus=i.INSTANTIATING,this._clientFactory(this._key).then((e=>{this._telemetryClient=e,this._instantiationStatus=i.INSTANTIATED,this._flushQueues();})).catch((e=>{o.error(e),this._instantiationStatus=i.INSTANTIATED;})));}}class a{static applyReplacements(e,t){for(const n of Object.keys(e))for(const r of t)r.lookup.test(n)&&(void 0!==r.replacementString?e[n]=r.replacementString:delete e[n]);}static shouldUseOneDataSystemSDK(e){return 74===e.length&&\"-\"===e[32]&&\"-\"===e[41]&&\"-\"===e[46]&&\"-\"===e[51]&&\"-\"===e[56]&&\"-\"===e[69]}static getAdditionalCommonProperties(e){return {\"common.os\":e.platform,\"common.nodeArch\":e.architecture,\"common.platformversion\":(e.release||\"\").replace(/^(\\d+)(\\.\\d+)?(\\.\\d+)?(.*)/,\"$1$2$3\"),\"common.telemetryclientversion\":\"0.7.7\"}}static getInstance(){return a._instance||(a._instance=new a),a._instance}}function c(e){if(e.userAgentData){const t=e.userAgentData.brands[e.userAgentData.brands.length-1];return `${e.userAgentData.platform} - ${t?.brand} v${t?.version}}`}return e.appVersion}class u extends class{constructor(e,t,n){this.telemetrySender=e,this.vscodeAPI=t,this.userOptIn=!1,this.errorOptIn=!1,this.disposables=[],this._onDidChangeTelemetryLevel=new this.vscodeAPI.EventEmitter,this.onDidChangeTelemetryLevel=this._onDidChangeTelemetryLevel.event,this.telemetryLogger=this.vscodeAPI.env.createTelemetryLogger(this.telemetrySender,n),this.updateUserOptIn(),this.telemetryLogger.onDidChangeEnableStates((()=>{this.updateUserOptIn();}));}updateUserOptIn(){this.errorOptIn=this.telemetryLogger.isErrorsEnabled,this.userOptIn=this.telemetryLogger.isUsageEnabled,(this.telemetryLogger.isErrorsEnabled||this.telemetryLogger.isUsageEnabled)&&this.telemetrySender.instantiateSender(),this._onDidChangeTelemetryLevel.fire(this.telemetryLevel);}get telemetryLevel(){return this.errorOptIn&&this.userOptIn?\"all\":this.errorOptIn?\"error\":\"off\"}internalSendTelemetryEvent(e,t,n,r){r?this.telemetrySender.sendEventData(e,{properties:t,measurements:n}):this.telemetryLogger.logUsage(e,{properties:t,measurements:n});}sendTelemetryEvent(e,t,n){this.internalSendTelemetryEvent(e,t,n,!1);}sendDangerousTelemetryEvent(e,t,n){this.telemetrySender.instantiateSender(),this.internalSendTelemetryEvent(e,t,n,!0);}internalSendTelemetryErrorEvent(e,t,n,r){r?this.telemetrySender.sendEventData(e,{properties:t,measurements:n}):this.telemetryLogger.logError(e,{properties:t,measurements:n});}sendTelemetryErrorEvent(e,t,n){this.internalSendTelemetryErrorEvent(e,t,n,!1);}sendDangerousTelemetryErrorEvent(e,t,n){this.telemetrySender.instantiateSender(),this.internalSendTelemetryErrorEvent(e,t,n,!0);}internalSendTelemetryException(e,t,n,r){r?this.telemetrySender.sendErrorData(e,{properties:t,measurements:n}):this.telemetryLogger.logError(e,{properties:t,measurements:n});}sendTelemetryException(e,t,n){this.internalSendTelemetryException(e,t,n,!1);}sendDangerousTelemetryException(e,t,n){this.telemetrySender.instantiateSender(),this.internalSendTelemetryException(e,t,n,!0);}dispose(){return this.telemetryLogger.dispose(),Promise.all(this.disposables.map((e=>e.dispose())))}}{constructor(e,t){let i=e=>(async(e,t)=>{let r;try{const t=await Promise.resolve().then(n.bind(n,1626));r=new t.ApplicationInsights({instrumentationKey:e,disableAjaxTracking:!0,disableExceptionTracking:!0,disableFetchTracking:!0,disableCorrelationHeaders:!0,disableCookiesUsage:!0,autoTrackPageVisitTime:!1,emitLineDelimitedJson:!1,disableInstrumentationKeyValidation:!0});}catch(e){return Promise.reject(e)}return {logEvent:(e,n)=>{const i={...n?.properties,...n?.measurements};t?.length&&a.applyReplacements(i,t),r?.track({name:e,data:i});},flush:async()=>{r?.flush();}}})(e,t);a.shouldUseOneDataSystemSDK(e)&&(i=e=>(async(e,t,r)=>{const i=await(async(e,t,r)=>{const i=await Promise.resolve().then(n.bind(n,7164)),o=await Promise.resolve().then(n.bind(n,1488)),s=new i.AppInsightsCore,a=new o.PostChannel,c={instrumentationKey:e,endpointUrl:\"https://mobile.events.data.microsoft.com/OneCollector/1.0\",loggingLevelTelemetry:0,loggingLevelConsole:0,disableCookiesUsage:!0,disableDbgExt:!0,disableInstrumentationKeyValidation:!0,channels:[[a]]};if(r){c.extensionConfig={};const e={alwaysUseXhrOverride:!0,httpXHROverride:r};c.extensionConfig[a.identifier]=e;}const u=t.workspace.getConfiguration(\"telemetry\").get(\"internalTesting\");return s.initialize(c,[]),s.addTelemetryInitializer((e=>{u&&(e.ext=e.ext??{},e.ext.utc=e.ext.utc??{},e.ext.utc.flags=8462029);})),s})(e,t,r);return {logEvent:(e,t)=>{try{i?.track({name:e,baseData:{name:e,properties:t?.properties,measurements:t?.measurements}});}catch(e){throw new Error(\"Failed to log event to app insights!\\n\"+e.message)}},flush:async()=>{try{i?.unload();}catch(e){throw new Error(\"Failed to flush app insights!\\n\"+e.message)}}}})(e,r));const o={release:c(navigator),platform:\"web\",architecture:\"web\"},u=new s(e,i);if(e&&0===e.indexOf(\"AIF\"))throw new Error(\"AIF keys are no longer supported. Please switch to 1DS keys for 1st party extensions\");super(u,r,{additionalCommonProperties:a.getAdditionalCommonProperties(o)});}}},8583:(e,t,n)=>{var r=n(7418);function i(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}function o(e){return n.g.Buffer&&\"function\"==typeof n.g.Buffer.isBuffer?n.g.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var s=n(69),a=Object.prototype.hasOwnProperty,c=Array.prototype.slice,u=\"foo\"===function(){}.name;function l(e){return Object.prototype.toString.call(e)}function d(e){return !o(e)&&\"function\"==typeof n.g.ArrayBuffer&&(\"function\"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer)))}var f=e.exports=y,p=/\\s*function\\s+([^\\(\\s]*)\\s*/;function g(e){if(s.isFunction(e)){if(u)return e.name;var t=e.toString().match(p);return t&&t[1]}}function h(e,t){return \"string\"==typeof e?e.length<t?e:e.slice(0,t):e}function m(e){if(u||!s.isFunction(e))return s.inspect(e);var t=g(e);return \"[Function\"+(t?\": \"+t:\"\")+\"]\"}function v(e,t,n,r,i){throw new f.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function y(e,t){e||v(e,!0,t,\"==\",f.ok);}function C(e,t,n,r){if(e===t)return !0;if(o(e)&&o(t))return 0===i(e,t);if(s.isDate(e)&&s.isDate(t))return e.getTime()===t.getTime();if(s.isRegExp(e)&&s.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&\"object\"==typeof e||null!==t&&\"object\"==typeof t){if(d(e)&&d(t)&&l(e)===l(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===i(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(o(e)!==o(t))return !1;var a=(r=r||{actual:[],expected:[]}).actual.indexOf(e);return -1!==a&&a===r.expected.indexOf(t)||(r.actual.push(e),r.expected.push(t),function(e,t,n,r){if(null==e||null==t)return !1;if(s.isPrimitive(e)||s.isPrimitive(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return !1;var i=S(e),o=S(t);if(i&&!o||!i&&o)return !1;if(i)return C(e=c.call(e),t=c.call(t),n);var a,u,l=_(e),d=_(t);if(l.length!==d.length)return !1;for(l.sort(),d.sort(),u=l.length-1;u>=0;u--)if(l[u]!==d[u])return !1;for(u=l.length-1;u>=0;u--)if(!C(e[a=l[u]],t[a],n,r))return !1;return !0}(e,t,n,r))}return n?e===t:e==t}function S(e){return \"[object Arguments]\"==Object.prototype.toString.call(e)}function T(e,t){if(!e||!t)return !1;if(\"[object RegExp]\"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return !0}catch(e){}return !Error.isPrototypeOf(t)&&!0===t.call({},e)}function b(e,t,n,r){var i;if(\"function\"!=typeof t)throw new TypeError('\"block\" argument must be a function');\"string\"==typeof n&&(r=n,n=null),i=function(e){var t;try{e();}catch(e){t=e;}return t}(t),r=(n&&n.name?\" (\"+n.name+\").\":\".\")+(r?\" \"+r:\".\"),e&&!i&&v(i,n,\"Missing expected exception\"+r);var o=\"string\"==typeof r,a=!e&&i&&!n;if((!e&&s.isError(i)&&o&&T(i,n)||a)&&v(i,n,\"Got unwanted exception\"+r),e&&i&&n&&!T(i,n)||!e&&i)throw i}f.AssertionError=function(e){this.name=\"AssertionError\",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return h(m(e.actual),128)+\" \"+e.operator+\" \"+h(m(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else {var n=new Error;if(n.stack){var r=n.stack,i=g(t),o=r.indexOf(\"\\n\"+i);if(o>=0){var s=r.indexOf(\"\\n\",o+1);r=r.substring(s+1);}this.stack=r;}}},s.inherits(f.AssertionError,Error),f.fail=v,f.ok=y,f.equal=function(e,t,n){e!=t&&v(e,t,n,\"==\",f.equal);},f.notEqual=function(e,t,n){e==t&&v(e,t,n,\"!=\",f.notEqual);},f.deepEqual=function(e,t,n){C(e,t,!1)||v(e,t,n,\"deepEqual\",f.deepEqual);},f.deepStrictEqual=function(e,t,n){C(e,t,!0)||v(e,t,n,\"deepStrictEqual\",f.deepStrictEqual);},f.notDeepEqual=function(e,t,n){C(e,t,!1)&&v(e,t,n,\"notDeepEqual\",f.notDeepEqual);},f.notDeepStrictEqual=function e(t,n,r){C(t,n,!0)&&v(t,n,r,\"notDeepStrictEqual\",e);},f.strictEqual=function(e,t,n){e!==t&&v(e,t,n,\"===\",f.strictEqual);},f.notStrictEqual=function(e,t,n){e===t&&v(e,t,n,\"!==\",f.notStrictEqual);},f.throws=function(e,t,n){b(!0,e,t,n);},f.doesNotThrow=function(e,t,n){b(!1,e,t,n);},f.ifError=function(e){if(e)throw e},f.strict=r((function e(t,n){t||v(t,!0,n,\"==\",e);}),f,{equal:f.strictEqual,deepEqual:f.deepStrictEqual,notEqual:f.notStrictEqual,notDeepEqual:f.notDeepStrictEqual}),f.strict.strict=f.strict;var _=Object.keys||function(e){var t=[];for(var n in e)a.call(e,n)&&t.push(n);return t};},6076:e=>{\"function\"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e;};},2014:e=>{e.exports=function(e){return e&&\"object\"==typeof e&&\"function\"==typeof e.copy&&\"function\"==typeof e.fill&&\"function\"==typeof e.readUInt8};},69:(e,t,n)=>{var r=n(4155),i=n(5108),o=/%[sdj%]/g;t.format=function(e){if(!y(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(c(arguments[n]));return t.join(\" \")}n=1;for(var r=arguments,i=r.length,s=String(e).replace(o,(function(e){if(\"%%\"===e)return \"%\";if(n>=i)return e;switch(e){case\"%s\":return String(r[n++]);case\"%d\":return Number(r[n++]);case\"%j\":try{return JSON.stringify(r[n++])}catch(e){return \"[Circular]\"}default:return e}})),a=r[n];n<i;a=r[++n])m(a)||!T(a)?s+=\" \"+a:s+=\" \"+c(a);return s},t.deprecate=function(e,o){if(C(n.g.process))return function(){return t.deprecate(e,o).apply(this,arguments)};if(!0===r.noDeprecation)return e;var s=!1;return function(){if(!s){if(r.throwDeprecation)throw new Error(o);r.traceDeprecation?i.trace(o):i.error(o),s=!0;}return e.apply(this,arguments)}};var s,a={};function c(e,n){var r={seen:[],stylize:l};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),C(r.showHidden)&&(r.showHidden=!1),C(r.depth)&&(r.depth=2),C(r.colors)&&(r.colors=!1),C(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),d(r,e,r.depth)}function u(e,t){var n=c.styles[t];return n?\"\u001b[\"+c.colors[n][0]+\"m\"+e+\"\u001b[\"+c.colors[n][1]+\"m\":e}function l(e,t){return e}function d(e,n,r){if(e.customInspect&&n&&R(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return y(i)||(i=d(e,i,r)),i}var o=function(e,t){if(C(t))return e.stylize(\"undefined\",\"undefined\");if(y(t)){var n=\"'\"+JSON.stringify(t).replace(/^\"|\"$/g,\"\").replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"')+\"'\";return e.stylize(n,\"string\")}return v(t)?e.stylize(\"\"+t,\"number\"):h(t)?e.stylize(\"\"+t,\"boolean\"):m(t)?e.stylize(\"null\",\"null\"):void 0}(e,n);if(o)return o;var s=Object.keys(n),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0;})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),_(n)&&(s.indexOf(\"message\")>=0||s.indexOf(\"description\")>=0))return f(n);if(0===s.length){if(R(n)){var c=n.name?\": \"+n.name:\"\";return e.stylize(\"[Function\"+c+\"]\",\"special\")}if(S(n))return e.stylize(RegExp.prototype.toString.call(n),\"regexp\");if(b(n))return e.stylize(Date.prototype.toString.call(n),\"date\");if(_(n))return f(n)}var u,l=\"\",T=!1,D=[\"{\",\"}\"];return g(n)&&(T=!0,D=[\"[\",\"]\"]),R(n)&&(l=\" [Function\"+(n.name?\": \"+n.name:\"\")+\"]\"),S(n)&&(l=\" \"+RegExp.prototype.toString.call(n)),b(n)&&(l=\" \"+Date.prototype.toUTCString.call(n)),_(n)&&(l=\" \"+f(n)),0!==s.length||T&&0!=n.length?r<0?S(n)?e.stylize(RegExp.prototype.toString.call(n),\"regexp\"):e.stylize(\"[Object]\",\"special\"):(e.seen.push(n),u=T?function(e,t,n,r,i){for(var o=[],s=0,a=t.length;s<a;++s)k(t,String(s))?o.push(p(e,t,n,r,String(s),!0)):o.push(\"\");return i.forEach((function(i){i.match(/^\\d+$/)||o.push(p(e,t,n,r,i,!0));})),o}(e,n,r,a,s):s.map((function(t){return p(e,n,r,a,t,T)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf(\"\\n\"),e+t.replace(/\\u001b\\[\\d\\d?m/g,\"\").length+1}),0)>60?n[0]+(\"\"===t?\"\":t+\"\\n \")+\" \"+e.join(\",\\n \")+\" \"+n[1]:n[0]+t+\" \"+e.join(\", \")+\" \"+n[1]}(u,l,D)):D[0]+l+D[1]}function f(e){return \"[\"+Error.prototype.toString.call(e)+\"]\"}function p(e,t,n,r,i,o){var s,a,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=c.set?e.stylize(\"[Getter/Setter]\",\"special\"):e.stylize(\"[Getter]\",\"special\"):c.set&&(a=e.stylize(\"[Setter]\",\"special\")),k(r,i)||(s=\"[\"+i+\"]\"),a||(e.seen.indexOf(c.value)<0?(a=m(n)?d(e,c.value,null):d(e,c.value,n-1)).indexOf(\"\\n\")>-1&&(a=o?a.split(\"\\n\").map((function(e){return \" \"+e})).join(\"\\n\").substr(2):\"\\n\"+a.split(\"\\n\").map((function(e){return \" \"+e})).join(\"\\n\")):a=e.stylize(\"[Circular]\",\"special\")),C(s)){if(o&&i.match(/^\\d+$/))return a;(s=JSON.stringify(\"\"+i)).match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,\"name\")):(s=s.replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"').replace(/(^\"|\"$)/g,\"'\"),s=e.stylize(s,\"string\"));}return s+\": \"+a}function g(e){return Array.isArray(e)}function h(e){return \"boolean\"==typeof e}function m(e){return null===e}function v(e){return \"number\"==typeof e}function y(e){return \"string\"==typeof e}function C(e){return void 0===e}function S(e){return T(e)&&\"[object RegExp]\"===D(e)}function T(e){return \"object\"==typeof e&&null!==e}function b(e){return T(e)&&\"[object Date]\"===D(e)}function _(e){return T(e)&&(\"[object Error]\"===D(e)||e instanceof Error)}function R(e){return \"function\"==typeof e}function D(e){return Object.prototype.toString.call(e)}function w(e){return e<10?\"0\"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(C(s)&&(s=r.env.NODE_DEBUG||\"\"),e=e.toUpperCase(),!a[e])if(new RegExp(\"\\\\b\"+e+\"\\\\b\",\"i\").test(s)){var n=r.pid;a[e]=function(){var r=t.format.apply(t,arguments);i.error(\"%s %d: %s\",e,n,r);};}else a[e]=function(){};return a[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:\"cyan\",number:\"yellow\",boolean:\"yellow\",undefined:\"grey\",null:\"bold\",string:\"green\",date:\"magenta\",regexp:\"red\"},t.isArray=g,t.isBoolean=h,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=y,t.isSymbol=function(e){return \"symbol\"==typeof e},t.isUndefined=C,t.isRegExp=S,t.isObject=T,t.isDate=b,t.isError=_,t.isFunction=R,t.isPrimitive=function(e){return null===e||\"boolean\"==typeof e||\"number\"==typeof e||\"string\"==typeof e||\"symbol\"==typeof e||void 0===e},t.isBuffer=n(2014);var E=[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"];function P(){var e=new Date,t=[w(e.getHours()),w(e.getMinutes()),w(e.getSeconds())].join(\":\");return [e.getDate(),E[e.getMonth()],t].join(\" \")}function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){i.log(\"%s - %s\",P(),t.format.apply(t,arguments));},t.inherits=n(6076),t._extend=function(e,t){if(!t||!T(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};},5623:e=>{function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,s,a,c=n.indexOf(e),u=n.indexOf(t,c+1),l=c;if(c>=0&&u>0){for(r=[],o=n.length;l>=0&&!a;)l==c?(r.push(l),c=n.indexOf(e,l+1)):1==r.length?a=[r.pop(),u]:((i=r.pop())<o&&(o=i,s=u),u=n.indexOf(t,l+1)),l=c<u&&c>=0?c:u;r.length&&(a=[o,s]);}return a}e.exports=t,t.range=r;},3644:(e,t,n)=>{var r=n(1048),i=n(5623);e.exports=function(e){return e?(\"{}\"===e.substr(0,2)&&(e=\"\\\\{\\\\}\"+e.substr(2)),v(function(e){return e.split(\"\\\\\\\\\").join(o).split(\"\\\\{\").join(s).split(\"\\\\}\").join(a).split(\"\\\\,\").join(c).split(\"\\\\.\").join(u)}(e),!0).map(d)):[]};var o=\"\\0SLASH\"+Math.random()+\"\\0\",s=\"\\0OPEN\"+Math.random()+\"\\0\",a=\"\\0CLOSE\"+Math.random()+\"\\0\",c=\"\\0COMMA\"+Math.random()+\"\\0\",u=\"\\0PERIOD\"+Math.random()+\"\\0\";function l(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function d(e){return e.split(o).join(\"\\\\\").split(s).join(\"{\").split(a).join(\"}\").split(c).join(\",\").split(u).join(\".\")}function f(e){if(!e)return [\"\"];var t=[],n=i(\"{\",\"}\",e);if(!n)return e.split(\",\");var r=n.pre,o=n.body,s=n.post,a=r.split(\",\");a[a.length-1]+=\"{\"+o+\"}\";var c=f(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),t.push.apply(t,a),t}function p(e){return \"{\"+e+\"}\"}function g(e){return /^-?0\\d/.test(e)}function h(e,t){return e<=t}function m(e,t){return e>=t}function v(e,t){var n=[],o=i(\"{\",\"}\",e);if(!o||/\\$$/.test(o.pre))return [e];var s,c=/^-?\\d+\\.\\.-?\\d+(?:\\.\\.-?\\d+)?$/.test(o.body),u=/^[a-zA-Z]\\.\\.[a-zA-Z](?:\\.\\.-?\\d+)?$/.test(o.body),d=c||u,y=o.body.indexOf(\",\")>=0;if(!d&&!y)return o.post.match(/,.*\\}/)?v(e=o.pre+\"{\"+o.body+a+o.post):[e];if(d)s=o.body.split(/\\.\\./);else if(1===(s=f(o.body)).length&&1===(s=v(s[0],!1).map(p)).length)return (T=o.post.length?v(o.post,!1):[\"\"]).map((function(e){return o.pre+s[0]+e}));var C,S=o.pre,T=o.post.length?v(o.post,!1):[\"\"];if(d){var b=l(s[0]),_=l(s[1]),R=Math.max(s[0].length,s[1].length),D=3==s.length?Math.abs(l(s[2])):1,w=h;_<b&&(D*=-1,w=m);var E=s.some(g);C=[];for(var P=b;w(P,_);P+=D){var k;if(u)\"\\\\\"===(k=String.fromCharCode(P))&&(k=\"\");else if(k=String(P),E){var x=R-k.length;if(x>0){var N=new Array(x+1).join(\"0\");k=P<0?\"-\"+N+k.slice(1):N+k;}}C.push(k);}}else C=r(s,(function(e){return v(e,!1)}));for(var O=0;O<C.length;O++)for(var I=0;I<T.length;I++){var A=S+C[O]+T[I];(!t||d||A)&&n.push(A);}return n}},1048:e=>{e.exports=function(e,n){for(var r=[],i=0;i<e.length;i++){var o=n(e[i],i);t(o)?r.push.apply(r,o):r.push(o);}return r};var t=Array.isArray||function(e){return \"[object Array]\"===Object.prototype.toString.call(e)};},5108:(e,t,n)=>{var r=n(9539),i=n(8583);function o(){return (new Date).getTime()}var s,a=Array.prototype.slice,c={};s=void 0!==n.g&&n.g.console?n.g.console:\"undefined\"!=typeof window&&window.console?window.console:{};for(var u=[[function(){},\"log\"],[function(){s.log.apply(s,arguments);},\"info\"],[function(){s.log.apply(s,arguments);},\"warn\"],[function(){s.warn.apply(s,arguments);},\"error\"],[function(e){c[e]=o();},\"time\"],[function(e){var t=c[e];if(!t)throw new Error(\"No such label: \"+e);delete c[e];var n=o()-t;s.log(e+\": \"+n+\"ms\");},\"timeEnd\"],[function(){var e=new Error;e.name=\"Trace\",e.message=r.format.apply(null,arguments),s.error(e.stack);},\"trace\"],[function(e){s.log(r.inspect(e)+\"\\n\");},\"dir\"],[function(e){if(!e){var t=a.call(arguments,1);i.ok(!1,r.format.apply(null,t));}},\"assert\"]],l=0;l<u.length;l++){var d=u[l],f=d[0],p=d[1];s[p]||(s[p]=f);}e.exports=s;},7418:e=>{var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(e)}e.exports=function(){try{if(!Object.assign)return !1;var e=new String(\"abc\");if(e[5]=\"de\",\"5\"===Object.getOwnPropertyNames(e)[0])return !1;for(var t={},n=0;n<10;n++)t[\"_\"+String.fromCharCode(n)]=n;if(\"0123456789\"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(\"\"))return !1;var r={};return \"abcdefghijklmnopqrst\".split(\"\").forEach((function(e){r[e]=e;})),\"abcdefghijklmnopqrst\"===Object.keys(Object.assign({},r)).join(\"\")}catch(e){return !1}}()?Object.assign:function(e,o){for(var s,a,c=i(e),u=1;u<arguments.length;u++){for(var l in s=Object(arguments[u]))n.call(s,l)&&(c[l]=s[l]);if(t){a=t(s);for(var d=0;d<a.length;d++)r.call(s,a[d])&&(c[a[d]]=s[a[d]]);}}return c};},6470:(e,t,n)=>{var r=n(4155);function i(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];\".\"===i?e.splice(r,1):\"..\"===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--);}if(t)for(;n--;n)e.unshift(\"..\");return e}function o(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var e=\"\",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var s=n>=0?arguments[n]:r.cwd();if(\"string\"!=typeof s)throw new TypeError(\"Arguments to path.resolve must be strings\");s&&(e=s+\"/\"+e,t=\"/\"===s.charAt(0));}return (t?\"/\":\"\")+(e=i(o(e.split(\"/\"),(function(e){return !!e})),!t).join(\"/\"))||\".\"},t.normalize=function(e){var n=t.isAbsolute(e),r=\"/\"===s(e,-1);return (e=i(o(e.split(\"/\"),(function(e){return !!e})),!n).join(\"/\"))||n||(e=\".\"),e&&r&&(e+=\"/\"),(n?\"/\":\"\")+e},t.isAbsolute=function(e){return \"/\"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,(function(e,t){if(\"string\"!=typeof e)throw new TypeError(\"Arguments to path.join must be strings\");return e})).join(\"/\"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&\"\"===e[t];t++);for(var n=e.length-1;n>=0&&\"\"===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split(\"/\")),o=r(n.split(\"/\")),s=Math.min(i.length,o.length),a=s,c=0;c<s;c++)if(i[c]!==o[c]){a=c;break}var u=[];for(c=a;c<i.length;c++)u.push(\"..\");return (u=u.concat(o.slice(a))).join(\"/\")},t.sep=\"/\",t.delimiter=\":\",t.dirname=function(e){if(\"string\"!=typeof e&&(e+=\"\"),0===e.length)return \".\";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!i){r=o;break}}else i=!1;return -1===r?n?\"/\":\".\":n&&1===r?\"/\":e.slice(0,r)},t.basename=function(e,t){var n=function(e){\"string\"!=typeof e&&(e+=\"\");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else -1===r&&(i=!1,r=t+1);return -1===r?\"\":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){\"string\"!=typeof e&&(e+=\"\");for(var t=-1,n=0,r=-1,i=!0,o=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===r&&(i=!1,r=s+1),46===a?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=s+1;break}}return -1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?\"\":e.slice(t,r)};var s=function(e,t,n){return e.substr(t,n)};},4155:e=>{var t,n,r=e.exports={};function i(){throw new Error(\"setTimeout has not been defined\")}function o(){throw new Error(\"clearTimeout has not been defined\")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t=\"function\"==typeof setTimeout?setTimeout:i;}catch(e){t=i;}try{n=\"function\"==typeof clearTimeout?clearTimeout:o;}catch(e){n=o;}}();var a,c=[],u=!1,l=-1;function d(){u&&a&&(u=!1,a.length?c=a.concat(c):l=-1,c.length&&f());}function f(){if(!u){var e=s(d);u=!0;for(var t=c.length;t;){for(a=c,c=[];++l<t;)a&&a[l].run();l=-1,t=c.length;}a=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e);}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e);}}function p(e,t){this.fun=e,this.array=t;}function g(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||u||s(f);},p.prototype.run=function(){this.fun.apply(null,this.array);},r.title=\"browser\",r.browser=!0,r.env={},r.argv=[],r.version=\"\",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(e){return []},r.binding=function(e){throw new Error(\"process.binding is not supported\")},r.cwd=function(){return \"/\"},r.chdir=function(e){throw new Error(\"process.chdir is not supported\")},r.umask=function(){return 0};},8460:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.LanguageClientMiddlewareBase=void 0;const r=n(6470),i=n(9496),o=n(5770),s=n(6298),a=n(6255),c=n(9467),u=n(5175),l=n(7962),d=n(24),f=n(3699),p=3e5,g=6e4;t.LanguageClientMiddlewareBase=class{constructor(e,t,n,r){this.serviceContainer=e,this.sendTelemetryEventFunc=n,this.serverVersion=r,this.lastCaptured=new Map,this.nextWindow=0,this.eventCount=0,this.workspace={configuration:async(e,t,n)=>{var r,s,c;if(!this.serviceContainer)return n(e,t);const d=this.serviceContainer.get(l.IInterpreterService),f=this.serviceContainer.get(u.IEnvironmentVariablesProvider);let p=n(e,t);if((0, a.isThenable)(p)&&(p=await p),p instanceof o.ResponseError)return p;for(const[t,n]of e.items.entries()){if(\"python\"===n.section){const e=n.scopeUri?i.Uri.parse(n.scopeUri):void 0,o=p[t];o.pythonPath=null!==(c=null!==(r=await this.getPythonPathOverride(e))&&void 0!==r?r:null===(s=await d.getActiveInterpreter(e))||void 0===s?void 0:s.path)&&void 0!==c?c:\"python\";const a=(await f.getEnvironmentVariables(e)).PYTHONPATH;a&&(o._envPYTHONPATH=a);}this.configurationHook(n,p[t]);}return p}},this.connectedPromise=(0, a.createDeferred)(),this.notebooks={didOpen:this.didOpenNotebook.bind(this),didSave:this.didSaveNotebook.bind(this),didChange:this.didChangeNotebook.bind(this),didClose:this.didCloseNotebook.bind(this)},this.handleDiagnostics=this.handleDiagnostics.bind(this),this.didOpen=this.didOpen.bind(this),this.didSave=this.didSave.bind(this),this.didChange=this.didChange.bind(this),this.didClose=this.didClose.bind(this),this.willSave=this.willSave.bind(this),this.willSaveWaitUntil=this.willSaveWaitUntil.bind(this),t===f.LanguageServerType.Node?this.eventName=d.EventName.LANGUAGE_SERVER_REQUEST:t===f.LanguageServerType.Jedi&&(this.eventName=d.EventName.JEDI_LANGUAGE_SERVER_REQUEST);}async getPythonPathOverride(e){}configurationHook(e,t){}get connected(){return this.connectedPromise.promise}connect(){this.connectedPromise.resolve(!0);}disconnect(){this.connectedPromise=(0, a.createDeferred)(),this.connectedPromise.resolve(!1);}didChange(){return this.callNext(\"didChange\",arguments)}didOpen(){return this.callNext(\"didOpen\",arguments)}didClose(){return this.callNext(\"didClose\",arguments)}didSave(){return this.callNext(\"didSave\",arguments)}willSave(){return this.callNext(\"willSave\",arguments)}willSaveWaitUntil(){return this.callNext(\"willSaveWaitUntil\",arguments)}async didOpenNotebook(){return this.callNotebooksNext(\"didOpen\",arguments)}async didSaveNotebook(){return this.callNotebooksNext(\"didSave\",arguments)}async didChangeNotebook(){return this.callNotebooksNext(\"didChange\",arguments)}async didCloseNotebook(){return this.callNotebooksNext(\"didClose\",arguments)}async provideCompletionItem(){if(await this.connected)return this.callNextAndSendTelemetry(\"textDocument/completion\",p,\"provideCompletionItem\",arguments,((e,t)=>t?{resultLength:Array.isArray(t)?t.length:t.items.length}:{resultLength:0}))}async provideHover(){if(await this.connected)return this.callNextAndSendTelemetry(\"textDocument/hover\",p,\"provideHover\",arguments)}async handleDiagnostics(e,t,n){if(await this.connected){const t=e.fsPath,n=t?r.basename(t):void 0;if(!n||!n.startsWith(s.HiddenFilePrefix))return this.callNext(\"handleDiagnostics\",arguments)}}async resolveCompletionItem(){if(await this.connected)return this.callNextAndSendTelemetry(\"completionItem/resolve\",p,\"resolveCompletionItem\",arguments)}async provideSignatureHelp(){if(await this.connected)return this.callNextAndSendTelemetry(\"textDocument/signatureHelp\",p,\"provideSignatureHelp\",arguments)}async provideDefinition(){if(await this.connected)return this.callNextAndSendTelemetry(\"textDocument/definition\",g,\"provideDefinition\",arguments)}async provideReferences(){if(await this.connected)return this.callNextAndSendTelemetry(\"textDocument/references\",g,\"provideReferences\",arguments)}async provideDocumentHighlights(){if(await this.connected)return this.callNext(\"provideDocumentHighlights\",arguments)}async provideDocumentSymbols(){if(await this.connected)return this.callNextAndSendTelemetry(\"textDocument/documentSymbol\",p,\"provideDocumentSymbols\",arguments)}async provideWorkspaceSymbols(){if(await this.connected)return this.callNextAndSendTelemetry(\"workspace/symbol\",g,\"provideWorkspaceSymbols\",arguments)}async provideCodeActions(){if(await this.connected)return this.callNextAndSendTelemetry(\"textDocument/codeAction\",p,\"provideCodeActions\",arguments)}async provideCodeLenses(){if(await this.connected)return this.callNextAndSendTelemetry(\"textDocument/codeLens\",p,\"provideCodeLenses\",arguments)}async resolveCodeLens(){if(await this.connected)return this.callNextAndSendTelemetry(\"codeLens/resolve\",p,\"resolveCodeLens\",arguments)}async provideDocumentFormattingEdits(){if(await this.connected)return this.callNext(\"provideDocumentFormattingEdits\",arguments)}async provideDocumentRangeFormattingEdits(){if(await this.connected)return this.callNext(\"provideDocumentRangeFormattingEdits\",arguments)}async provideOnTypeFormattingEdits(){if(await this.connected)return this.callNextAndSendTelemetry(\"textDocument/onTypeFormatting\",p,\"provideOnTypeFormattingEdits\",arguments)}async provideRenameEdits(){if(await this.connected)return this.callNextAndSendTelemetry(\"textDocument/rename\",g,\"provideRenameEdits\",arguments)}async prepareRename(){if(await this.connected)return this.callNextAndSendTelemetry(\"textDocument/prepareRename\",g,\"prepareRename\",arguments)}async provideDocumentLinks(){if(await this.connected)return this.callNext(\"provideDocumentLinks\",arguments)}async resolveDocumentLink(){if(await this.connected)return this.callNext(\"resolveDocumentLink\",arguments)}async provideDeclaration(){if(await this.connected)return this.callNextAndSendTelemetry(\"textDocument/declaration\",g,\"provideDeclaration\",arguments)}async provideTypeDefinition(){if(await this.connected)return this.callNextAndSendTelemetry(\"textDocument/typeDefinition\",g,\"provideTypeDefinition\",arguments)}async provideImplementation(){if(await this.connected)return this.callNext(\"provideImplementation\",arguments)}async provideDocumentColors(){if(await this.connected)return this.callNext(\"provideDocumentColors\",arguments)}async provideColorPresentations(){if(await this.connected)return this.callNext(\"provideColorPresentations\",arguments)}async provideFoldingRanges(){if(await this.connected)return this.callNextAndSendTelemetry(\"textDocument/foldingRange\",p,\"provideFoldingRanges\",arguments)}async provideSelectionRanges(){if(await this.connected)return this.callNextAndSendTelemetry(\"textDocument/selectionRange\",g,\"provideSelectionRanges\",arguments)}async prepareCallHierarchy(){if(await this.connected)return this.callNext(\"prepareCallHierarchy\",arguments)}async provideCallHierarchyIncomingCalls(){if(await this.connected)return this.callNext(\"provideCallHierarchyIncomingCalls\",arguments)}async provideCallHierarchyOutgoingCalls(){if(await this.connected)return this.callNext(\"provideCallHierarchyOutgoingCalls\",arguments)}async provideDocumentSemanticTokens(){if(await this.connected)return this.callNext(\"provideDocumentSemanticTokens\",arguments)}async provideDocumentSemanticTokensEdits(){if(await this.connected)return this.callNext(\"provideDocumentSemanticTokensEdits\",arguments)}async provideDocumentRangeSemanticTokens(){if(await this.connected)return this.callNext(\"provideDocumentRangeSemanticTokens\",arguments)}async provideLinkedEditingRange(){if(await this.connected)return this.callNext(\"provideLinkedEditingRange\",arguments)}callNext(e,t){return this.notebookAddon&&this.notebookAddon[e]?this.notebookAddon[e](...t):t[t.length-1](...t)}callNotebooksNext(e,t){var n;return (null===(n=this.notebookAddon)||void 0===n?void 0:n.notebooks)&&this.notebookAddon.notebooks[e]?this.notebookAddon.notebooks[e](...t):t[t.length-1](...t)}callNextAndSendTelemetry(e,t,n,r,i){const o=Date.now(),s=new c.StopWatch;let u=!1;const l=[...r];l[l.length-1]=(...e)=>(u=!0,r[r.length-1](...e)),o>this.nextWindow&&(this.nextWindow=o+36e5,this.eventCount=0);const d=this.lastCaptured.get(e),f=n=>{if(this.eventName&&u&&this.eventCount<100&&(!d||o-d>t)){this.lastCaptured.set(e,o),this.eventCount+=1;const t=e.replace(/\\//g,\".\"),r={lsVersion:this.serverVersion||\"unknown\",method:t};let a=s.elapsedTime;i&&(a={duration:a,...i(this,n)}),this.sendTelemetryEventFunc(this.eventName,a,r);}return n},p=this.callNext(n,l);return (0, a.isThenable)(p)?p.then(f):f(p)}};},3699:(e,t)=>{var n;Object.defineProperty(t,\"__esModule\",{value:!0}),t.IExtensionSingleActivationService=t.ILanguageServerOutputChannel=t.ILanguageServerProxy=t.ILanguageServerManager=t.ILanguageServerAnalysisOptions=t.ILanguageClientFactory=t.ILanguageServerActivator=t.LanguageServerType=t.IExtensionActivationService=t.IExtensionActivationManager=void 0,t.IExtensionActivationManager=Symbol(\"IExtensionActivationManager\"),t.IExtensionActivationService=Symbol(\"IExtensionActivationService\"),(n=t.LanguageServerType||(t.LanguageServerType={})).Jedi=\"Jedi\",n.JediLSP=\"JediLSP\",n.Microsoft=\"Microsoft\",n.Node=\"Pylance\",n.None=\"None\",t.ILanguageServerActivator=Symbol(\"ILanguageServerActivator\"),t.ILanguageClientFactory=Symbol(\"ILanguageClientFactory\"),t.ILanguageServerAnalysisOptions=Symbol(\"ILanguageServerAnalysisOptions\"),t.ILanguageServerManager=Symbol(\"ILanguageServerManager\"),t.ILanguageServerProxy=Symbol(\"ILanguageServerProxy\"),t.ILanguageServerOutputChannel=Symbol(\"ILanguageServerOutputChannel\"),t.IExtensionSingleActivationService=Symbol(\"IExtensionSingleActivationService\");},9497:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.buildApi=void 0;const r=n(8595),i=n(6298);t.buildApi=function(e){return {pylance:{createClient:(...e)=>new r.LanguageClient(i.PYTHON_LANGUAGE,\"Python Language Server\",e[0],e[1]),start:e=>e.start(),stop:e=>e.stop(),getTelemetryReporter:()=>e}}};},774:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createStatusItem=void 0;const r=n(9496),i=n(8654);t.createStatusItem=function(){if(\"createLanguageStatusItem\"in r.languages){const e=r.languages.createLanguageStatusItem(\"python.projectStatus\",{language:\"python\"});return e.name=i.LanguageService.statusItem.name,e.severity=r.LanguageStatusSeverity.Warning,e.text=i.LanguageService.statusItem.text,e.detail=i.LanguageService.statusItem.detail,e.command={title:i.Common.learnMore,command:\"vscode.open\",arguments:[r.Uri.parse(\"https://aka.ms/AAdzyh4\")]},e}return {dispose:()=>{}}};},8654:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.Common=t.LanguageService=void 0;const r=n(9496);(t.LanguageService||(t.LanguageService={})).statusItem={name:r.l10n.t(\"Python IntelliSense Status\"),text:r.l10n.t(\"Partial Mode\"),detail:r.l10n.t(\"Limited IntelliSense provided by Pylance\")},(t.Common||(t.Common={})).learnMore=r.l10n.t(\"Learn more\");},6298:function(e,t,n){var r,i,o,s,a=n(4155),c=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}});}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n];}),u=this&&this.__exportStar||function(e,t){for(var n in e)\"default\"===n||Object.prototype.hasOwnProperty.call(t,n)||c(t,e,n);};function l(){return \"1\"===a.env.VSC_PYTHON_UNIT_TEST}Object.defineProperty(t,\"__esModule\",{value:!0}),t.UseProposedApi=t.isUnitTestExecution=t.isTestExecution=t.isCI=t.DEFAULT_INTERPRETER_SETTING=t.ThemeIcons=t.Octicons=t.Commands=t.CommandSource=t.AppinsightsKey=t.JUPYTER_EXTENSION_ID=t.PYLANCE_EXTENSION_ID=t.PVSC_EXTENSION_ID=t.PYTHON_NOTEBOOKS=t.PYTHON=t.InteractiveScheme=t.InteractiveInputScheme=t.NotebookCellScheme=t.PYTHON_WARNINGS=t.PYTHON_LANGUAGE=void 0,t.PYTHON_LANGUAGE=\"python\",t.PYTHON_WARNINGS=\"PYTHONWARNINGS\",t.NotebookCellScheme=\"vscode-notebook-cell\",t.InteractiveInputScheme=\"vscode-interactive-input\",t.InteractiveScheme=\"vscode-interactive\",t.PYTHON=[{scheme:\"file\",language:t.PYTHON_LANGUAGE},{scheme:\"untitled\",language:t.PYTHON_LANGUAGE},{scheme:\"vscode-notebook\",language:t.PYTHON_LANGUAGE},{scheme:t.NotebookCellScheme,language:t.PYTHON_LANGUAGE},{scheme:t.InteractiveInputScheme,language:t.PYTHON_LANGUAGE}],t.PYTHON_NOTEBOOKS=[{scheme:\"vscode-notebook\",language:t.PYTHON_LANGUAGE},{scheme:t.NotebookCellScheme,language:t.PYTHON_LANGUAGE},{scheme:t.InteractiveInputScheme,language:t.PYTHON_LANGUAGE}],t.PVSC_EXTENSION_ID=\"ms-python.python\",t.PYLANCE_EXTENSION_ID=\"ms-python.vscode-pylance\",t.JUPYTER_EXTENSION_ID=\"ms-toolsai.jupyter\",t.AppinsightsKey=\"0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255\",(s=t.CommandSource||(t.CommandSource={})).ui=\"ui\",s.commandPalette=\"commandpalette\",(o=t.Commands||(t.Commands={})).ClearStorage=\"python.clearCacheAndReload\",o.CreateNewFile=\"python.createNewFile\",o.ClearWorkspaceInterpreter=\"python.clearWorkspaceInterpreter\",o.Create_Environment=\"python.createEnvironment\",o.Create_Terminal=\"python.createTerminal\",o.Debug_In_Terminal=\"python.debugInTerminal\",o.Enable_Linter=\"python.enableLinting\",o.Enable_SourceMap_Support=\"python.enableSourceMapSupport\",o.Exec_In_Terminal=\"python.execInTerminal\",o.Exec_In_Terminal_Icon=\"python.execInTerminal-icon\",o.Exec_Selection_In_Django_Shell=\"python.execSelectionInDjangoShell\",o.Exec_Selection_In_Terminal=\"python.execSelectionInTerminal\",o.GetSelectedInterpreterPath=\"python.interpreterPath\",o.InstallJupyter=\"python.installJupyter\",o.InstallPython=\"python.installPython\",o.InstallPythonOnLinux=\"python.installPythonOnLinux\",o.InstallPythonOnMac=\"python.installPythonOnMac\",o.LaunchTensorBoard=\"python.launchTensorBoard\",o.PickLocalProcess=\"python.pickLocalProcess\",o.RefreshTensorBoard=\"python.refreshTensorBoard\",o.ReportIssue=\"python.reportIssue\",o.Run_Linter=\"python.runLinting\",o.Set_Interpreter=\"python.setInterpreter\",o.Set_Linter=\"python.setLinter\",o.Set_ShebangInterpreter=\"python.setShebangInterpreter\",o.Sort_Imports=\"python.sortImports\",o.Start_REPL=\"python.startREPL\",o.Tests_Configure=\"python.configureTests\",o.TriggerEnvironmentSelection=\"python.triggerEnvSelection\",o.ViewOutput=\"python.viewOutput\",(i=t.Octicons||(t.Octicons={})).Add=\"$(add)\",i.Test_Pass=\"$(check)\",i.Test_Fail=\"$(alert)\",i.Test_Error=\"$(x)\",i.Test_Skip=\"$(circle-slash)\",i.Downloading=\"$(cloud-download)\",i.Installing=\"$(desktop-download)\",i.Search_Stop=\"$(search-stop)\",i.Star=\"$(star-full)\",i.Gear=\"$(gear)\",i.Warning=\"$(warning)\",i.Error=\"$(error)\",i.Lightbulb=\"$(lightbulb)\",(r=t.ThemeIcons||(t.ThemeIcons={})).Refresh=\"refresh\",r.SpinningLoader=\"loading~spin\",t.DEFAULT_INTERPRETER_SETTING=\"python\",t.isCI=\"true\"===a.env.TRAVIS||void 0!==a.env.TF_BUILD,t.isTestExecution=function(){return \"1\"===a.env.VSC_PYTHON_CI_TEST||l()},t.isUnitTestExecution=l,t.UseProposedApi=Symbol(\"USE_VSC_PROPOSED_API\"),u(n(9732),t);},6255:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.flattenIterator=t.iterable=t.mapToIterator=t.chain=t.iterEmpty=t.createDeferredFromPromise=t.createDeferredFrom=t.createDeferred=t.isPromise=t.isThenable=t.sleep=void 0,t.sleep=async function(e){return new Promise((t=>{setTimeout((()=>t(e)),e);}))},t.isThenable=function(e){return \"function\"==typeof(null==e?void 0:e.then)},t.isPromise=function(e){return \"function\"==typeof(null==e?void 0:e.then)&&\"function\"==typeof(null==e?void 0:e.catch)};class n{constructor(e=null){this.scope=e,this._resolved=!1,this._rejected=!1,this._promise=new Promise(((e,t)=>{this._resolve=e,this._reject=t;}));}resolve(e){this._resolve.apply(this.scope?this.scope:this,[e]),this._resolved=!0;}reject(e){this._reject.apply(this.scope?this.scope:this,[e]),this._rejected=!0;}get promise(){return this._promise}get resolved(){return this._resolved}get rejected(){return this._rejected}get completed(){return this._rejected||this._resolved}}function r(e=null){return new n(e)}async function i(e,t){const n=void 0===t?-1:t;try{return {index:n,result:await e.next(),err:null}}catch(e){return {index:n,err:e,result:null}}}t.createDeferred=r,t.createDeferredFrom=function(...e){const t=r();return Promise.all(e).then(t.resolve.bind(t)).catch(t.reject.bind(t)),t},t.createDeferredFromPromise=function(e){const t=r();return e.then(t.resolve.bind(t)).catch(t.reject.bind(t)),t},t.iterEmpty=function(){return async function*(){}()};const o=new Promise((()=>{}));async function*s(e,t){const n=e.map(i);let r=e.length;for(;r>0;){const{index:s,result:a,err:c}=await Promise.race(n);null!==c?(n[s]=o,r-=1,void 0!==t&&await t(c,s)):a.done?(n[s]=o,r-=1,void 0!==a.value&&(yield a.value)):(n[s]=i(e[s],s),yield a.value);}}function a(e){const t=e;return void 0===t[Symbol.asyncIterator]&&(t[Symbol.asyncIterator]=()=>t),t}t.chain=s,t.mapToIterator=async function*(e,t,n=!0){if(n){const n=e.map((e=>async function*(){yield t(e);}()));yield*a(s(n));}else yield*e.map(t);},t.iterable=a,t.flattenIterator=async function(e){const t=[];for await(const n of a(e))t.push(n);return t};},9467:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.StopWatch=void 0,t.StopWatch=class{constructor(){this.started=(new Date).getTime();}get elapsedTime(){return (new Date).getTime()-this.started}reset(){this.started=(new Date).getTime();}};},5175:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.IEnvironmentVariablesProvider=t.IEnvironmentVariablesService=void 0,t.IEnvironmentVariablesService=Symbol(\"IEnvironmentVariablesService\"),t.IEnvironmentVariablesProvider=Symbol(\"IEnvironmentVariablesProvider\");},9732:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.HiddenFilePrefix=t.EXTENSION_ROOT_DIR=void 0;const r=n(6470),i=r.basename(\"/\");t.EXTENSION_ROOT_DIR=\"client\"===i?r.join(\"/\",\"..\",\"..\"):r.join(\"/\",\"..\",\"..\",\"..\",\"..\"),t.HiddenFilePrefix=\"_HiddenFile_\";},7962:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.IActivatedEnvironmentLaunch=t.IInterpreterStatusbarVisibilityFilter=t.IInterpreterHelper=t.IInterpreterDisplay=t.IInterpreterService=t.ICondaService=t.IComponentAdapter=void 0,t.IComponentAdapter=Symbol(\"IComponentAdapter\"),t.ICondaService=Symbol(\"ICondaService\"),t.IInterpreterService=Symbol(\"IInterpreterService\"),t.IInterpreterDisplay=Symbol(\"IInterpreterDisplay\"),t.IInterpreterHelper=Symbol(\"IInterpreterHelper\"),t.IInterpreterStatusbarVisibilityFilter=Symbol(\"IInterpreterStatusbarVisibilityFilter\"),t.IActivatedEnvironmentLaunch=Symbol(\"IActivatedEnvironmentLaunch\");},24:(e,t)=>{var n,r;Object.defineProperty(t,\"__esModule\",{value:!0}),t.PlatformErrors=t.EventName=void 0,(r=t.EventName||(t.EventName={})).FORMAT_SORT_IMPORTS=\"FORMAT.SORT_IMPORTS\",r.FORMAT=\"FORMAT.FORMAT\",r.FORMAT_ON_TYPE=\"FORMAT.FORMAT_ON_TYPE\",r.EDITOR_LOAD=\"EDITOR.LOAD\",r.LINTING=\"LINTING\",r.REPL=\"REPL\",r.CREATE_NEW_FILE_COMMAND=\"CREATE_NEW_FILE_COMMAND\",r.SELECT_INTERPRETER=\"SELECT_INTERPRETER\",r.SELECT_INTERPRETER_ENTER_BUTTON=\"SELECT_INTERPRETER_ENTER_BUTTON\",r.SELECT_INTERPRETER_ENTER_CHOICE=\"SELECT_INTERPRETER_ENTER_CHOICE\",r.SELECT_INTERPRETER_SELECTED=\"SELECT_INTERPRETER_SELECTED\",r.SELECT_INTERPRETER_ENTER_OR_FIND=\"SELECT_INTERPRETER_ENTER_OR_FIND\",r.SELECT_INTERPRETER_ENTERED_EXISTS=\"SELECT_INTERPRETER_ENTERED_EXISTS\",r.PYTHON_INTERPRETER=\"PYTHON_INTERPRETER\",r.PYTHON_INSTALL_PACKAGE=\"PYTHON_INSTALL_PACKAGE\",r.ENVIRONMENT_WITHOUT_PYTHON_SELECTED=\"ENVIRONMENT_WITHOUT_PYTHON_SELECTED\",r.PYTHON_ENVIRONMENTS_API=\"PYTHON_ENVIRONMENTS_API\",r.PYTHON_INTERPRETER_DISCOVERY=\"PYTHON_INTERPRETER_DISCOVERY\",r.PYTHON_INTERPRETER_AUTO_SELECTION=\"PYTHON_INTERPRETER_AUTO_SELECTION\",r.PYTHON_INTERPRETER_ACTIVATION_ENVIRONMENT_VARIABLES=\"PYTHON_INTERPRETER.ACTIVATION_ENVIRONMENT_VARIABLES\",r.PYTHON_INTERPRETER_ACTIVATION_FOR_RUNNING_CODE=\"PYTHON_INTERPRETER_ACTIVATION_FOR_RUNNING_CODE\",r.PYTHON_INTERPRETER_ACTIVATION_FOR_TERMINAL=\"PYTHON_INTERPRETER_ACTIVATION_FOR_TERMINAL\",r.TERMINAL_SHELL_IDENTIFICATION=\"TERMINAL_SHELL_IDENTIFICATION\",r.PYTHON_INTERPRETER_ACTIVATE_ENVIRONMENT_PROMPT=\"PYTHON_INTERPRETER_ACTIVATE_ENVIRONMENT_PROMPT\",r.PYTHON_NOT_INSTALLED_PROMPT=\"PYTHON_NOT_INSTALLED_PROMPT\",r.CONDA_INHERIT_ENV_PROMPT=\"CONDA_INHERIT_ENV_PROMPT\",r.REQUIRE_JUPYTER_PROMPT=\"REQUIRE_JUPYTER_PROMPT\",r.ACTIVATED_CONDA_ENV_LAUNCH=\"ACTIVATED_CONDA_ENV_LAUNCH\",r.ENVFILE_VARIABLE_SUBSTITUTION=\"ENVFILE_VARIABLE_SUBSTITUTION\",r.ENVFILE_WORKSPACE=\"ENVFILE_WORKSPACE\",r.EXECUTION_CODE=\"EXECUTION_CODE\",r.EXECUTION_DJANGO=\"EXECUTION_DJANGO\",r.DEBUG_IN_TERMINAL_BUTTON=\"DEBUG.IN_TERMINAL\",r.DEBUG_ADAPTER_USING_WHEELS_PATH=\"DEBUG_ADAPTER.USING_WHEELS_PATH\",r.DEBUG_SESSION_ERROR=\"DEBUG_SESSION.ERROR\",r.DEBUG_SESSION_START=\"DEBUG_SESSION.START\",r.DEBUG_SESSION_STOP=\"DEBUG_SESSION.STOP\",r.DEBUG_SESSION_USER_CODE_RUNNING=\"DEBUG_SESSION.USER_CODE_RUNNING\",r.DEBUGGER=\"DEBUGGER\",r.DEBUGGER_ATTACH_TO_CHILD_PROCESS=\"DEBUGGER.ATTACH_TO_CHILD_PROCESS\",r.DEBUGGER_ATTACH_TO_LOCAL_PROCESS=\"DEBUGGER.ATTACH_TO_LOCAL_PROCESS\",r.DEBUGGER_CONFIGURATION_PROMPTS=\"DEBUGGER.CONFIGURATION.PROMPTS\",r.DEBUGGER_CONFIGURATION_PROMPTS_IN_LAUNCH_JSON=\"DEBUGGER.CONFIGURATION.PROMPTS.IN.LAUNCH.JSON\",r.UNITTEST_CONFIGURING=\"UNITTEST.CONFIGURING\",r.UNITTEST_CONFIGURE=\"UNITTEST.CONFIGURE\",r.UNITTEST_DISCOVERY_TRIGGER=\"UNITTEST.DISCOVERY.TRIGGER\",r.UNITTEST_DISCOVERING=\"UNITTEST.DISCOVERING\",r.UNITTEST_DISCOVERING_STOP=\"UNITTEST.DISCOVERY.STOP\",r.UNITTEST_DISCOVERY_DONE=\"UNITTEST.DISCOVERY.DONE\",r.UNITTEST_RUN_STOP=\"UNITTEST.RUN.STOP\",r.UNITTEST_RUN=\"UNITTEST.RUN\",r.UNITTEST_RUN_ALL_FAILED=\"UNITTEST.RUN_ALL_FAILED\",r.UNITTEST_DISABLED=\"UNITTEST.DISABLED\",r.PYTHON_EXPERIMENTS_INIT_PERFORMANCE=\"PYTHON_EXPERIMENTS_INIT_PERFORMANCE\",r.PYTHON_EXPERIMENTS_LSP_NOTEBOOKS=\"PYTHON_EXPERIMENTS_LSP_NOTEBOOKS\",r.PYTHON_EXPERIMENTS_OPT_IN_OPT_OUT_SETTINGS=\"PYTHON_EXPERIMENTS_OPT_IN_OPT_OUT_SETTINGS\",r.EXTENSION_SURVEY_PROMPT=\"EXTENSION_SURVEY_PROMPT\",r.LANGUAGE_SERVER_ENABLED=\"LANGUAGE_SERVER.ENABLED\",r.LANGUAGE_SERVER_STARTUP=\"LANGUAGE_SERVER.STARTUP\",r.LANGUAGE_SERVER_READY=\"LANGUAGE_SERVER.READY\",r.LANGUAGE_SERVER_TELEMETRY=\"LANGUAGE_SERVER.EVENT\",r.LANGUAGE_SERVER_REQUEST=\"LANGUAGE_SERVER.REQUEST\",r.LANGUAGE_SERVER_RESTART=\"LANGUAGE_SERVER.RESTART\",r.TERMINAL_CREATE=\"TERMINAL.CREATE\",r.ACTIVATE_ENV_IN_CURRENT_TERMINAL=\"ACTIVATE_ENV_IN_CURRENT_TERMINAL\",r.ACTIVATE_ENV_TO_GET_ENV_VARS_FAILED=\"ACTIVATE_ENV_TO_GET_ENV_VARS_FAILED\",r.DIAGNOSTICS_ACTION=\"DIAGNOSTICS.ACTION\",r.DIAGNOSTICS_MESSAGE=\"DIAGNOSTICS.MESSAGE\",r.SELECT_LINTER=\"LINTING.SELECT\",r.USE_REPORT_ISSUE_COMMAND=\"USE_REPORT_ISSUE_COMMAND\",r.LINTER_NOT_INSTALLED_PROMPT=\"LINTER_NOT_INSTALLED_PROMPT\",r.HASHED_PACKAGE_NAME=\"HASHED_PACKAGE_NAME\",r.JEDI_LANGUAGE_SERVER_ENABLED=\"JEDI_LANGUAGE_SERVER.ENABLED\",r.JEDI_LANGUAGE_SERVER_STARTUP=\"JEDI_LANGUAGE_SERVER.STARTUP\",r.JEDI_LANGUAGE_SERVER_READY=\"JEDI_LANGUAGE_SERVER.READY\",r.JEDI_LANGUAGE_SERVER_REQUEST=\"JEDI_LANGUAGE_SERVER.REQUEST\",r.TENSORBOARD_SESSION_LAUNCH=\"TENSORBOARD.SESSION_LAUNCH\",r.TENSORBOARD_SESSION_DURATION=\"TENSORBOARD.SESSION_DURATION\",r.TENSORBOARD_SESSION_DAEMON_STARTUP_DURATION=\"TENSORBOARD.SESSION_DAEMON_STARTUP_DURATION\",r.TENSORBOARD_LAUNCH_PROMPT_SELECTION=\"TENSORBOARD.LAUNCH_PROMPT_SELECTION\",r.TENSORBOARD_SESSION_E2E_STARTUP_DURATION=\"TENSORBOARD.SESSION_E2E_STARTUP_DURATION\",r.TENSORBOARD_ENTRYPOINT_SHOWN=\"TENSORBOARD.ENTRYPOINT_SHOWN\",r.TENSORBOARD_INSTALL_PROMPT_SHOWN=\"TENSORBOARD.INSTALL_PROMPT_SHOWN\",r.TENSORBOARD_INSTALL_PROMPT_SELECTION=\"TENSORBOARD.INSTALL_PROMPT_SELECTION\",r.TENSORBOARD_DETECTED_IN_INTEGRATED_TERMINAL=\"TENSORBOARD_DETECTED_IN_INTEGRATED_TERMINAL\",r.TENSORBOARD_PACKAGE_INSTALL_RESULT=\"TENSORBOARD.PACKAGE_INSTALL_RESULT\",r.TENSORBOARD_TORCH_PROFILER_IMPORT=\"TENSORBOARD.TORCH_PROFILER_IMPORT\",r.TENSORBOARD_JUMP_TO_SOURCE_REQUEST=\"TENSORBOARD_JUMP_TO_SOURCE_REQUEST\",r.TENSORBOARD_JUMP_TO_SOURCE_FILE_NOT_FOUND=\"TENSORBOARD_JUMP_TO_SOURCE_FILE_NOT_FOUND\",r.ENVIRONMENT_CREATING=\"ENVIRONMENT.CREATING\",r.ENVIRONMENT_CREATED=\"ENVIRONMENT.CREATED\",r.ENVIRONMENT_FAILED=\"ENVIRONMENT.FAILED\",r.ENVIRONMENT_INSTALLING_PACKAGES=\"ENVIRONMENT.INSTALLING_PACKAGES\",r.ENVIRONMENT_INSTALLED_PACKAGES=\"ENVIRONMENT.INSTALLED_PACKAGES\",r.ENVIRONMENT_INSTALLING_PACKAGES_FAILED=\"ENVIRONMENT.INSTALLING_PACKAGES_FAILED\",r.TOOLS_EXTENSIONS_ALREADY_INSTALLED=\"TOOLS_EXTENSIONS.ALREADY_INSTALLED\",r.TOOLS_EXTENSIONS_PROMPT_SHOWN=\"TOOLS_EXTENSIONS.PROMPT_SHOWN\",r.TOOLS_EXTENSIONS_INSTALL_SELECTED=\"TOOLS_EXTENSIONS.INSTALL_SELECTED\",r.TOOLS_EXTENSIONS_PROMPT_DISMISSED=\"TOOLS_EXTENSIONS.PROMPT_DISMISSED\",(n=t.PlatformErrors||(t.PlatformErrors={})).FailedToParseVersion=\"FailedToParseVersion\",n.FailedToDetermineOS=\"FailedToDetermineOS\";},1496:e=>{\"function\"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e;};},384:e=>{e.exports=function(e){return e&&\"object\"==typeof e&&\"function\"==typeof e.copy&&\"function\"==typeof e.fill&&\"function\"==typeof e.readUInt8};},9539:(e,t,n)=>{var r=n(4155),i=n(5108),o=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},s=/%[sdj%]/g;t.format=function(e){if(!C(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(u(arguments[n]));return t.join(\" \")}n=1;for(var r=arguments,i=r.length,o=String(e).replace(s,(function(e){if(\"%%\"===e)return \"%\";if(n>=i)return e;switch(e){case\"%s\":return String(r[n++]);case\"%d\":return Number(r[n++]);case\"%j\":try{return JSON.stringify(r[n++])}catch(e){return \"[Circular]\"}default:return e}})),a=r[n];n<i;a=r[++n])v(a)||!b(a)?o+=\" \"+a:o+=\" \"+u(a);return o},t.deprecate=function(e,n){if(void 0!==r&&!0===r.noDeprecation)return e;if(void 0===r)return function(){return t.deprecate(e,n).apply(this,arguments)};var o=!1;return function(){if(!o){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?i.trace(n):i.error(n),o=!0;}return e.apply(this,arguments)}};var a,c={};function u(e,n){var r={seen:[],stylize:d};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&t._extend(r,n),S(r.showHidden)&&(r.showHidden=!1),S(r.depth)&&(r.depth=2),S(r.colors)&&(r.colors=!1),S(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),f(r,e,r.depth)}function l(e,t){var n=u.styles[t];return n?\"\u001b[\"+u.colors[n][0]+\"m\"+e+\"\u001b[\"+u.colors[n][1]+\"m\":e}function d(e,t){return e}function f(e,n,r){if(e.customInspect&&n&&D(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return C(i)||(i=f(e,i,r)),i}var o=function(e,t){if(S(t))return e.stylize(\"undefined\",\"undefined\");if(C(t)){var n=\"'\"+JSON.stringify(t).replace(/^\"|\"$/g,\"\").replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"')+\"'\";return e.stylize(n,\"string\")}return y(t)?e.stylize(\"\"+t,\"number\"):m(t)?e.stylize(\"\"+t,\"boolean\"):v(t)?e.stylize(\"null\",\"null\"):void 0}(e,n);if(o)return o;var s=Object.keys(n),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0;})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),R(n)&&(s.indexOf(\"message\")>=0||s.indexOf(\"description\")>=0))return p(n);if(0===s.length){if(D(n)){var c=n.name?\": \"+n.name:\"\";return e.stylize(\"[Function\"+c+\"]\",\"special\")}if(T(n))return e.stylize(RegExp.prototype.toString.call(n),\"regexp\");if(_(n))return e.stylize(Date.prototype.toString.call(n),\"date\");if(R(n))return p(n)}var u,l=\"\",d=!1,b=[\"{\",\"}\"];return h(n)&&(d=!0,b=[\"[\",\"]\"]),D(n)&&(l=\" [Function\"+(n.name?\": \"+n.name:\"\")+\"]\"),T(n)&&(l=\" \"+RegExp.prototype.toString.call(n)),_(n)&&(l=\" \"+Date.prototype.toUTCString.call(n)),R(n)&&(l=\" \"+p(n)),0!==s.length||d&&0!=n.length?r<0?T(n)?e.stylize(RegExp.prototype.toString.call(n),\"regexp\"):e.stylize(\"[Object]\",\"special\"):(e.seen.push(n),u=d?function(e,t,n,r,i){for(var o=[],s=0,a=t.length;s<a;++s)x(t,String(s))?o.push(g(e,t,n,r,String(s),!0)):o.push(\"\");return i.forEach((function(i){i.match(/^\\d+$/)||o.push(g(e,t,n,r,i,!0));})),o}(e,n,r,a,s):s.map((function(t){return g(e,n,r,a,t,d)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf(\"\\n\"),e+t.replace(/\\u001b\\[\\d\\d?m/g,\"\").length+1}),0)>60?n[0]+(\"\"===t?\"\":t+\"\\n \")+\" \"+e.join(\",\\n \")+\" \"+n[1]:n[0]+t+\" \"+e.join(\", \")+\" \"+n[1]}(u,l,b)):b[0]+l+b[1]}function p(e){return \"[\"+Error.prototype.toString.call(e)+\"]\"}function g(e,t,n,r,i,o){var s,a,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=c.set?e.stylize(\"[Getter/Setter]\",\"special\"):e.stylize(\"[Getter]\",\"special\"):c.set&&(a=e.stylize(\"[Setter]\",\"special\")),x(r,i)||(s=\"[\"+i+\"]\"),a||(e.seen.indexOf(c.value)<0?(a=v(n)?f(e,c.value,null):f(e,c.value,n-1)).indexOf(\"\\n\")>-1&&(a=o?a.split(\"\\n\").map((function(e){return \" \"+e})).join(\"\\n\").substr(2):\"\\n\"+a.split(\"\\n\").map((function(e){return \" \"+e})).join(\"\\n\")):a=e.stylize(\"[Circular]\",\"special\")),S(s)){if(o&&i.match(/^\\d+$/))return a;(s=JSON.stringify(\"\"+i)).match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,\"name\")):(s=s.replace(/'/g,\"\\\\'\").replace(/\\\\\"/g,'\"').replace(/(^\"|\"$)/g,\"'\"),s=e.stylize(s,\"string\"));}return s+\": \"+a}function h(e){return Array.isArray(e)}function m(e){return \"boolean\"==typeof e}function v(e){return null===e}function y(e){return \"number\"==typeof e}function C(e){return \"string\"==typeof e}function S(e){return void 0===e}function T(e){return b(e)&&\"[object RegExp]\"===w(e)}function b(e){return \"object\"==typeof e&&null!==e}function _(e){return b(e)&&\"[object Date]\"===w(e)}function R(e){return b(e)&&(\"[object Error]\"===w(e)||e instanceof Error)}function D(e){return \"function\"==typeof e}function w(e){return Object.prototype.toString.call(e)}function E(e){return e<10?\"0\"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(S(a)&&(a=r.env.NODE_DEBUG||\"\"),e=e.toUpperCase(),!c[e])if(new RegExp(\"\\\\b\"+e+\"\\\\b\",\"i\").test(a)){var n=r.pid;c[e]=function(){var r=t.format.apply(t,arguments);i.error(\"%s %d: %s\",e,n,r);};}else c[e]=function(){};return c[e]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:\"cyan\",number:\"yellow\",boolean:\"yellow\",undefined:\"grey\",null:\"bold\",string:\"green\",date:\"magenta\",regexp:\"red\"},t.isArray=h,t.isBoolean=m,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=C,t.isSymbol=function(e){return \"symbol\"==typeof e},t.isUndefined=S,t.isRegExp=T,t.isObject=b,t.isDate=_,t.isError=R,t.isFunction=D,t.isPrimitive=function(e){return null===e||\"boolean\"==typeof e||\"number\"==typeof e||\"string\"==typeof e||\"symbol\"==typeof e||void 0===e},t.isBuffer=n(384);var P=[\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"];function k(){var e=new Date,t=[E(e.getHours()),E(e.getMinutes()),E(e.getSeconds())].join(\":\");return [e.getDate(),P[e.getMonth()],t].join(\" \")}function x(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){i.log(\"%s - %s\",k(),t.format.apply(t,arguments));},t.inherits=n(1496),t._extend=function(e,t){if(!t||!b(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var N=\"undefined\"!=typeof Symbol?Symbol(\"util.promisify.custom\"):void 0;function O(e,t){if(!e){var n=new Error(\"Promise was rejected with a falsy value\");n.reason=e,e=n;}return t(e)}t.promisify=function(e){if(\"function\"!=typeof e)throw new TypeError('The \"original\" argument must be of type Function');if(N&&e[N]){var t;if(\"function\"!=typeof(t=e[N]))throw new TypeError('The \"util.promisify.custom\" argument must be of type Function');return Object.defineProperty(t,N,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r;})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,r){e?n(e):t(r);}));try{e.apply(this,i);}catch(e){n(e);}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),N&&Object.defineProperty(t,N,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,o(e))},t.promisify.custom=N,t.callbackify=function(e){if(\"function\"!=typeof e)throw new TypeError('The \"original\" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var i=t.pop();if(\"function\"!=typeof i)throw new TypeError(\"The last argument must be of type Function\");var o=this,s=function(){return i.apply(o,arguments)};e.apply(this,t).then((function(e){r.nextTick(s,null,e);}),(function(e){r.nextTick(O,e,s);}));}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,o(e)),t};},1169:(e,t,n)=>{e.exports=n(9054);},9054:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!(\"get\"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i);}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n];}),i=this&&this.__exportStar||function(e,t){for(var n in e)\"default\"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n);};Object.defineProperty(t,\"__esModule\",{value:!0}),t.createMessageConnection=t.BrowserMessageWriter=t.BrowserMessageReader=void 0,n(5669).default.install();const o=n(3870);i(n(3870),t);class s extends o.AbstractMessageReader{constructor(e){super(),this._onData=new o.Emitter,this._messageListener=e=>{this._onData.fire(e.data);},e.addEventListener(\"error\",(e=>this.fireError(e))),e.onmessage=this._messageListener;}listen(e){return this._onData.event(e)}}t.BrowserMessageReader=s;class a extends o.AbstractMessageWriter{constructor(e){super(),this.context=e,this.errorCount=0,e.addEventListener(\"error\",(e=>this.fireError(e)));}write(e){try{return this.context.postMessage(e),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount);}end(){}}t.BrowserMessageWriter=a,t.createMessageConnection=function(e,t,n,r){return void 0===n&&(n=o.NullLogger),o.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0, o.createMessageConnection)(e,t,n,r)};},5669:(e,t,n)=>{var r=n(5108);Object.defineProperty(t,\"__esModule\",{value:!0});const i=n(147),o=n(3911),s=n(7135),a=n(5530);class c extends a.AbstractMessageBuffer{constructor(e=\"utf-8\"){super(e),this.asciiDecoder=new TextDecoder(\"ascii\");}emptyBuffer(){return c.emptyBuffer}fromString(e,t){return (new TextEncoder).encode(e)}toString(e,t){return \"ascii\"===t?this.asciiDecoder.decode(e):new TextDecoder(t).decode(e)}asNative(e,t){return void 0===t?e:e.slice(0,t)}allocNative(e){return new Uint8Array(e)}}c.emptyBuffer=new Uint8Array(0);class u{constructor(e){this.socket=e,this._onData=new s.Emitter,this._messageListener=e=>{e.data.arrayBuffer().then((e=>{this._onData.fire(new Uint8Array(e));}),(()=>{(0, i.default)().console.error(\"Converting blob to array buffer failed.\");}));},this.socket.addEventListener(\"message\",this._messageListener);}onClose(e){return this.socket.addEventListener(\"close\",e),o.Disposable.create((()=>this.socket.removeEventListener(\"close\",e)))}onError(e){return this.socket.addEventListener(\"error\",e),o.Disposable.create((()=>this.socket.removeEventListener(\"error\",e)))}onEnd(e){return this.socket.addEventListener(\"end\",e),o.Disposable.create((()=>this.socket.removeEventListener(\"end\",e)))}onData(e){return this._onData.event(e)}}class l{constructor(e){this.socket=e;}onClose(e){return this.socket.addEventListener(\"close\",e),o.Disposable.create((()=>this.socket.removeEventListener(\"close\",e)))}onError(e){return this.socket.addEventListener(\"error\",e),o.Disposable.create((()=>this.socket.removeEventListener(\"error\",e)))}onEnd(e){return this.socket.addEventListener(\"end\",e),o.Disposable.create((()=>this.socket.removeEventListener(\"end\",e)))}write(e,t){if(\"string\"==typeof e){if(void 0!==t&&\"utf-8\"!==t)throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t}`);this.socket.send(e);}else this.socket.send(e);return Promise.resolve()}end(){this.socket.close();}}const d=new TextEncoder,f=Object.freeze({messageBuffer:Object.freeze({create:e=>new c(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:\"application/json\",encode:(e,t)=>{if(\"utf-8\"!==t.charset)throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t.charset}`);return Promise.resolve(d.encode(JSON.stringify(e,void 0,0)))}}),decoder:Object.freeze({name:\"application/json\",decode:(e,t)=>{if(!(e instanceof Uint8Array))throw new Error(\"In a Browser environments only Uint8Arrays are supported.\");return Promise.resolve(JSON.parse(new TextDecoder(t.charset).decode(e)))}})}),stream:Object.freeze({asReadableStream:e=>new u(e),asWritableStream:e=>new l(e)}),console:r,timer:Object.freeze({setTimeout(e,t,...n){const r=setTimeout(e,t,...n);return {dispose:()=>clearTimeout(r)}},setImmediate(e,...t){const n=setTimeout(e,0,...t);return {dispose:()=>clearTimeout(n)}},setInterval(e,t,...n){const r=setInterval(e,t,...n);return {dispose:()=>clearInterval(r)}}})});function p(){return f}!function(e){e.install=function(){i.default.install(f);};}(p||(p={})),t.default=p;},3870:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.TraceFormat=t.TraceValues=t.Trace=t.ProgressType=t.ProgressToken=t.createMessageConnection=t.NullLogger=t.ConnectionOptions=t.ConnectionStrategy=t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=t.CancellationToken=t.CancellationTokenSource=t.Emitter=t.Event=t.Disposable=t.LRUCache=t.Touch=t.LinkedMap=t.ParameterStructures=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.ErrorCodes=t.ResponseError=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType0=t.RequestType=t.Message=t.RAL=void 0,t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=void 0;const r=n(839);Object.defineProperty(t,\"Message\",{enumerable:!0,get:function(){return r.Message}}),Object.defineProperty(t,\"RequestType\",{enumerable:!0,get:function(){return r.RequestType}}),Object.defineProperty(t,\"RequestType0\",{enumerable:!0,get:function(){return r.RequestType0}}),Object.defineProperty(t,\"RequestType1\",{enumerable:!0,get:function(){return r.RequestType1}}),Object.defineProperty(t,\"RequestType2\",{enumerable:!0,get:function(){return r.RequestType2}}),Object.defineProperty(t,\"RequestType3\",{enumerable:!0,get:function(){return r.RequestType3}}),Object.defineProperty(t,\"RequestType4\",{enumerable:!0,get:function(){return r.RequestType4}}),Object.defineProperty(t,\"RequestType5\",{enumerable:!0,get:function(){return r.RequestType5}}),Object.defineProperty(t,\"RequestType6\",{enumerable:!0,get:function(){return r.RequestType6}}),Object.defineProperty(t,\"RequestType7\",{enumerable:!0,get:function(){return r.RequestType7}}),Object.defineProperty(t,\"RequestType8\",{enumerable:!0,get:function(){return r.RequestType8}}),Object.defineProperty(t,\"RequestType9\",{enumerable:!0,get:function(){return r.RequestType9}}),Object.defineProperty(t,\"ResponseError\",{enumerable:!0,get:function(){return r.ResponseError}}),Object.defineProperty(t,\"ErrorCodes\",{enumerable:!0,get:function(){return r.ErrorCodes}}),Object.defineProperty(t,\"NotificationType\",{enumerable:!0,get:function(){return r.NotificationType}}),Object.defineProperty(t,\"NotificationType0\",{enumerable:!0,get:function(){return r.NotificationType0}}),Object.defineProperty(t,\"NotificationType1\",{enumerable:!0,get:function(){return r.NotificationType1}}),Object.defineProperty(t,\"NotificationType2\",{enumerable:!0,get:function(){return r.NotificationType2}}),Object.defineProperty(t,\"NotificationType3\",{enumerable:!0,get:function(){return r.NotificationType3}}),Object.defineProperty(t,\"NotificationType4\",{enumerable:!0,get:function(){return r.NotificationType4}}),Object.defineProperty(t,\"NotificationType5\",{enumerable:!0,get:function(){return r.NotificationType5}}),Object.defineProperty(t,\"NotificationType6\",{enumerable:!0,get:function(){return r.NotificationType6}}),Object.defineProperty(t,\"NotificationType7\",{enumerable:!0,get:function(){return r.NotificationType7}}),Object.defineProperty(t,\"NotificationType8\",{enumerable:!0,get:function(){return r.NotificationType8}}),Object.defineProperty(t,\"NotificationType9\",{enumerable:!0,get:function(){return r.NotificationType9}}),Object.defineProperty(t,\"ParameterStructures\",{enumerable:!0,get:function(){return r.ParameterStructures}});const i=n(6184);Object.defineProperty(t,\"LinkedMap\",{enumerable:!0,get:function(){return i.LinkedMap}}),Object.defineProperty(t,\"LRUCache\",{enumerable:!0,get:function(){return i.LRUCache}}),Object.defineProperty(t,\"Touch\",{enumerable:!0,get:function(){return i.Touch}});const o=n(3911);Object.defineProperty(t,\"Disposable\",{enumerable:!0,get:function(){return o.Disposable}});const s=n(7135);Object.defineProperty(t,\"Event\",{enumerable:!0,get:function(){return s.Event}}),Object.defineProperty(t,\"Emitter\",{enumerable:!0,get:function(){return s.Emitter}});const a=n(3881);Object.defineProperty(t,\"CancellationTokenSource\",{enumerable:!0,get:function(){return a.CancellationTokenSource}}),Object.defineProperty(t,\"CancellationToken\",{enumerable:!0,get:function(){return a.CancellationToken}});const c=n(6525);Object.defineProperty(t,\"MessageReader\",{enumerable:!0,get:function(){return c.MessageReader}}),Object.defineProperty(t,\"AbstractMessageReader\",{enumerable:!0,get:function(){return c.AbstractMessageReader}}),Object.defineProperty(t,\"ReadableStreamMessageReader\",{enumerable:!0,get:function(){return c.ReadableStreamMessageReader}});const u=n(6654);Object.defineProperty(t,\"MessageWriter\",{enumerable:!0,get:function(){return u.MessageWriter}}),Object.defineProperty(t,\"AbstractMessageWriter\",{enumerable:!0,get:function(){return u.AbstractMessageWriter}}),Object.defineProperty(t,\"WriteableStreamMessageWriter\",{enumerable:!0,get:function(){return u.WriteableStreamMessageWriter}});const l=n(1343);Object.defineProperty(t,\"ConnectionStrategy\",{enumerable:!0,get:function(){return l.ConnectionStrategy}}),Object.defineProperty(t,\"ConnectionOptions\",{enumerable:!0,get:function(){return l.ConnectionOptions}}),Object.defineProperty(t,\"NullLogger\",{enumerable:!0,get:function(){return l.NullLogger}}),Object.defineProperty(t,\"createMessageConnection\",{enumerable:!0,get:function(){return l.createMessageConnection}}),Object.defineProperty(t,\"ProgressToken\",{enumerable:!0,get:function(){return l.ProgressToken}}),Object.defineProperty(t,\"ProgressType\",{enumerable:!0,get:function(){return l.ProgressType}}),Object.defineProperty(t,\"Trace\",{enumerable:!0,get:function(){return l.Trace}}),Object.defineProperty(t,\"TraceValues\",{enumerable:!0,get:function(){return l.TraceValues}}),Object.defineProperty(t,\"TraceFormat\",{enumerable:!0,get:function(){return l.TraceFormat}}),Object.defineProperty(t,\"SetTraceNotification\",{enumerable:!0,get:function(){return l.SetTraceNotification}}),Object.defineProperty(t,\"LogTraceNotification\",{enumerable:!0,get:function(){return l.LogTraceNotification}}),Object.defineProperty(t,\"ConnectionErrors\",{enumerable:!0,get:function(){return l.ConnectionErrors}}),Object.defineProperty(t,\"ConnectionError\",{enumerable:!0,get:function(){return l.ConnectionError}}),Object.defineProperty(t,\"CancellationReceiverStrategy\",{enumerable:!0,get:function(){return l.CancellationReceiverStrategy}}),Object.defineProperty(t,\"CancellationSenderStrategy\",{enumerable:!0,get:function(){return l.CancellationSenderStrategy}}),Object.defineProperty(t,\"CancellationStrategy\",{enumerable:!0,get:function(){return l.CancellationStrategy}});const d=n(147);t.RAL=d.default;},3881:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.CancellationTokenSource=t.CancellationToken=void 0;const r=n(147),i=n(7574),o=n(7135);var s;!function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:o.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:o.Event.None}),e.is=function(t){const n=t;return n&&(n===e.None||n===e.Cancelled||i.boolean(n.isCancellationRequested)&&!!n.onCancellationRequested)};}(s=t.CancellationToken||(t.CancellationToken={}));const a=Object.freeze((function(e,t){const n=(0, r.default)().timer.setTimeout(e.bind(t),0);return {dispose(){n.dispose();}}}));class c{constructor(){this._isCancelled=!1;}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?a:(this._emitter||(this._emitter=new o.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0);}}t.CancellationTokenSource=class{get token(){return this._token||(this._token=new c),this._token}cancel(){this._token?this._token.cancel():this._token=s.Cancelled;}dispose(){this._token?this._token instanceof c&&this._token.dispose():this._token=s.None;}};},1343:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createMessageConnection=t.ConnectionOptions=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.ConnectionStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.Trace=t.NullLogger=t.ProgressType=t.ProgressToken=void 0;const r=n(147),i=n(7574),o=n(839),s=n(6184),a=n(7135),c=n(3881);var u,l,d,f,p,g,h,m,v,y,C,S,T,b,_;!function(e){e.type=new o.NotificationType(\"$/cancelRequest\");}(u||(u={})),function(e){e.is=function(e){return \"string\"==typeof e||\"number\"==typeof e};}(l=t.ProgressToken||(t.ProgressToken={})),function(e){e.type=new o.NotificationType(\"$/progress\");}(d||(d={})),t.ProgressType=class{constructor(){}},function(e){e.is=function(e){return i.func(e)};}(f||(f={})),t.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}}),function(e){e[e.Off=0]=\"Off\",e[e.Messages=1]=\"Messages\",e[e.Compact=2]=\"Compact\",e[e.Verbose=3]=\"Verbose\";}(p=t.Trace||(t.Trace={})),(_=t.TraceValues||(t.TraceValues={})).Off=\"off\",_.Messages=\"messages\",_.Compact=\"compact\",_.Verbose=\"verbose\",function(e){e.fromString=function(t){if(!i.string(t))return e.Off;switch(t=t.toLowerCase()){case\"off\":default:return e.Off;case\"messages\":return e.Messages;case\"compact\":return e.Compact;case\"verbose\":return e.Verbose}},e.toString=function(t){switch(t){case e.Off:return \"off\";case e.Messages:return \"messages\";case e.Compact:return \"compact\";case e.Verbose:return \"verbose\";default:return \"off\"}};}(p=t.Trace||(t.Trace={})),function(e){e.Text=\"text\",e.JSON=\"json\";}(t.TraceFormat||(t.TraceFormat={})),function(e){e.fromString=function(t){return i.string(t)&&\"json\"===(t=t.toLowerCase())?e.JSON:e.Text};}(g=t.TraceFormat||(t.TraceFormat={})),function(e){e.type=new o.NotificationType(\"$/setTrace\");}(h=t.SetTraceNotification||(t.SetTraceNotification={})),function(e){e.type=new o.NotificationType(\"$/logTrace\");}(m=t.LogTraceNotification||(t.LogTraceNotification={})),function(e){e[e.Closed=1]=\"Closed\",e[e.Disposed=2]=\"Disposed\",e[e.AlreadyListening=3]=\"AlreadyListening\";}(v=t.ConnectionErrors||(t.ConnectionErrors={}));class R extends Error{constructor(e,t){super(t),this.code=e,Object.setPrototypeOf(this,R.prototype);}}t.ConnectionError=R,function(e){e.is=function(e){const t=e;return t&&i.func(t.cancelUndispatched)};}(y=t.ConnectionStrategy||(t.ConnectionStrategy={})),function(e){e.Message=Object.freeze({createCancellationTokenSource:e=>new c.CancellationTokenSource}),e.is=function(e){const t=e;return t&&i.func(t.createCancellationTokenSource)};}(C=t.CancellationReceiverStrategy||(t.CancellationReceiverStrategy={})),function(e){e.Message=Object.freeze({sendCancellation:(e,t)=>e.sendNotification(u.type,{id:t}),cleanup(e){}}),e.is=function(e){const t=e;return t&&i.func(t.sendCancellation)&&i.func(t.cleanup)};}(S=t.CancellationSenderStrategy||(t.CancellationSenderStrategy={})),function(e){e.Message=Object.freeze({receiver:C.Message,sender:S.Message}),e.is=function(e){const t=e;return t&&C.is(t.receiver)&&S.is(t.sender)};}(T=t.CancellationStrategy||(t.CancellationStrategy={})),(t.ConnectionOptions||(t.ConnectionOptions={})).is=function(e){const t=e;return t&&(T.is(t.cancellationStrategy)||y.is(t.connectionStrategy))},function(e){e[e.New=1]=\"New\",e[e.Listening=2]=\"Listening\",e[e.Closed=3]=\"Closed\",e[e.Disposed=4]=\"Disposed\";}(b||(b={})),t.createMessageConnection=function(e,n,y,C){const S=void 0!==y?y:t.NullLogger;let _=0,D=0,w=0;const E=\"2.0\";let P;const k=new Map;let x;const N=new Map,O=new Map;let I,A,F=new s.LinkedMap,L=new Map,q=new Set,M=new Map,j=p.Off,U=g.Text,H=b.New;const K=new a.Emitter,W=new a.Emitter,z=new a.Emitter,V=new a.Emitter,B=new a.Emitter,$=C&&C.cancellationStrategy?C.cancellationStrategy:T.Message;function G(e){if(null===e)throw new Error(\"Can't send requests with id null since the response can't be correlated.\");return \"req-\"+e.toString()}function J(e){}function Y(){return H===b.Listening}function Z(){return H===b.Closed}function X(){return H===b.Disposed}function Q(){H!==b.New&&H!==b.Listening||(H=b.Closed,W.fire(void 0));}function ee(){I||0===F.size||(I=(0, r.default)().timer.setImmediate((()=>{I=void 0,function(){if(0===F.size)return;const e=F.shift();try{o.Message.isRequest(e)?function(e){if(X())return;function t(t,r,i){const s={jsonrpc:E,id:e.id};t instanceof o.ResponseError?s.error=t.toJson():s.result=void 0===t?null:t,re(s,r,i),n.write(s).catch((()=>S.error(\"Sending response failed.\")));}function r(t,r,i){const o={jsonrpc:E,id:e.id,error:t.toJson()};re(o,r,i),n.write(o).catch((()=>S.error(\"Sending response failed.\")));}!function(e){if(j!==p.Off&&A)if(U===g.Text){let t;j!==p.Verbose&&j!==p.Compact||!e.params||(t=`Params: ${ne(e.params)}\\n\\n`),A.log(`Received request '${e.method} - (${e.id})'.`,t);}else oe(\"receive-request\",e);}(e);const s=k.get(e.method);let a,c;s&&(a=s.type,c=s.handler);const u=Date.now();if(c||P){const s=e.id??String(Date.now()),l=$.receiver.createCancellationTokenSource(s);null!==e.id&&q.has(e.id)&&l.cancel(),null!==e.id&&M.set(s,l);try{let d;if(c)if(void 0===e.params){if(void 0!==a&&0!==a.numberOfParams)return void r(new o.ResponseError(o.ErrorCodes.InvalidParams,`Request ${e.method} defines ${a.numberOfParams} params but received none.`),e.method,u);d=c(l.token);}else if(Array.isArray(e.params)){if(void 0!==a&&a.parameterStructures===o.ParameterStructures.byName)return void r(new o.ResponseError(o.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,u);d=c(...e.params,l.token);}else {if(void 0!==a&&a.parameterStructures===o.ParameterStructures.byPosition)return void r(new o.ResponseError(o.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,u);d=c(e.params,l.token);}else P&&(d=P(e.method,e.params,l.token));const f=d;d?f.then?f.then((n=>{M.delete(s),t(n,e.method,u);}),(t=>{M.delete(s),t instanceof o.ResponseError?r(t,e.method,u):t&&i.string(t.message)?r(new o.ResponseError(o.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${t.message}`),e.method,u):r(new o.ResponseError(o.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,u);})):(M.delete(s),t(d,e.method,u)):(M.delete(s),function(t,r,i){void 0===t&&(t=null);const o={jsonrpc:E,id:e.id,result:t};re(o,r,i),n.write(o).catch((()=>S.error(\"Sending response failed.\")));}(d,e.method,u));}catch(n){M.delete(s),n instanceof o.ResponseError?t(n,e.method,u):n&&i.string(n.message)?r(new o.ResponseError(o.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${n.message}`),e.method,u):r(new o.ResponseError(o.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,u);}}else r(new o.ResponseError(o.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,u);}(e):o.Message.isNotification(e)?function(e){if(X())return;let t,n;if(e.method===u.type.method){const t=e.params.id;return q.delete(t),void ie(e)}{const r=N.get(e.method);r&&(n=r.handler,t=r.type);}if(n||x)try{if(ie(e),n)if(void 0===e.params)void 0!==t&&0!==t.numberOfParams&&t.parameterStructures!==o.ParameterStructures.byName&&S.error(`Notification ${e.method} defines ${t.numberOfParams} params but received none.`),n();else if(Array.isArray(e.params)){const r=e.params;e.method===d.type.method&&2===r.length&&l.is(r[0])?n({token:r[0],value:r[1]}):(void 0!==t&&(t.parameterStructures===o.ParameterStructures.byName&&S.error(`Notification ${e.method} defines parameters by name but received parameters by position`),t.numberOfParams!==e.params.length&&S.error(`Notification ${e.method} defines ${t.numberOfParams} params but received ${r.length} arguments`)),n(...r));}else void 0!==t&&t.parameterStructures===o.ParameterStructures.byPosition&&S.error(`Notification ${e.method} defines parameters by position but received parameters by name`),n(e.params);else x&&x(e.method,e.params);}catch(t){t.message?S.error(`Notification handler '${e.method}' failed with message: ${t.message}`):S.error(`Notification handler '${e.method}' failed unexpectedly.`);}else z.fire(e);}(e):o.Message.isResponse(e)?function(e){if(!X())if(null===e.id)e.error?S.error(`Received response message without id: Error is: \\n${JSON.stringify(e.error,void 0,4)}`):S.error(\"Received response message without id. No further error information provided.\");else {const t=e.id,n=L.get(t);if(function(e,t){if(j!==p.Off&&A)if(U===g.Text){let n;if(j!==p.Verbose&&j!==p.Compact||(e.error&&e.error.data?n=`Error data: ${ne(e.error.data)}\\n\\n`:e.result?n=`Result: ${ne(e.result)}\\n\\n`:void 0===e.error&&(n=\"No result returned.\\n\\n\")),t){const r=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:\"\";A.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${r}`,n);}else A.log(`Received response ${e.id} without active response promise.`,n);}else oe(\"receive-response\",e);}(e,n),void 0!==n){L.delete(t);try{if(e.error){const t=e.error;n.reject(new o.ResponseError(t.code,t.message,t.data));}else {if(void 0===e.result)throw new Error(\"Should never happen.\");n.resolve(e.result);}}catch(e){e.message?S.error(`Response handler '${n.method}' failed with message: ${e.message}`):S.error(`Response handler '${n.method}' failed unexpectedly.`);}}}}(e):function(e){if(!e)return void S.error(\"Received empty message.\");S.error(`Received message which is neither a response nor a notification message:\\n${JSON.stringify(e,null,4)}`);const t=e;if(i.string(t.id)||i.number(t.id)){const e=t.id,n=L.get(e);n&&n.reject(new Error(\"The received response has neither a result nor an error property.\"));}}(e);}finally{ee();}}();})));}e.onClose(Q),e.onError((function(e){K.fire([e,void 0,void 0]);})),n.onClose(Q),n.onError((function(e){K.fire(e);}));const te=e=>{try{if(o.Message.isNotification(e)&&e.method===u.type.method){const t=e.params.id,r=G(t),i=F.get(r);if(o.Message.isRequest(i)){const o=C?.connectionStrategy,s=o&&o.cancelUndispatched?o.cancelUndispatched(i,J):void 0;if(s&&(void 0!==s.error||void 0!==s.result))return F.delete(r),M.delete(t),s.id=i.id,re(s,e.method,Date.now()),void n.write(s).catch((()=>S.error(\"Sending response for canceled message failed.\")))}const s=M.get(t);if(void 0!==s)return s.cancel(),void ie(e);q.add(t);}!function(e,t){var n;o.Message.isRequest(t)?e.set(G(t.id),t):o.Message.isResponse(t)?e.set(null===(n=t.id)?\"res-unknown-\"+(++w).toString():\"res-\"+n.toString(),t):e.set(\"not-\"+(++D).toString(),t);}(F,e);}finally{ee();}};function ne(e){if(null!=e)switch(j){case p.Verbose:return JSON.stringify(e,null,4);case p.Compact:return JSON.stringify(e);default:return}}function re(e,t,n){if(j!==p.Off&&A)if(U===g.Text){let r;j!==p.Verbose&&j!==p.Compact||(e.error&&e.error.data?r=`Error data: ${ne(e.error.data)}\\n\\n`:e.result?r=`Result: ${ne(e.result)}\\n\\n`:void 0===e.error&&(r=\"No result returned.\\n\\n\")),A.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-n}ms`,r);}else oe(\"send-response\",e);}function ie(e){if(j!==p.Off&&A&&e.method!==m.type.method)if(U===g.Text){let t;j!==p.Verbose&&j!==p.Compact||(t=e.params?`Params: ${ne(e.params)}\\n\\n`:\"No parameters provided.\\n\\n\"),A.log(`Received notification '${e.method}'.`,t);}else oe(\"receive-notification\",e);}function oe(e,t){if(!A||j===p.Off)return;const n={isLSPMessage:!0,type:e,message:t,timestamp:Date.now()};A.log(n);}function se(){if(Z())throw new R(v.Closed,\"Connection is closed.\");if(X())throw new R(v.Disposed,\"Connection is disposed.\")}function ae(e){return void 0===e?null:e}function ce(e){return null===e?void 0:e}function ue(e){return null!=e&&!Array.isArray(e)&&\"object\"==typeof e}function le(e,t){switch(e){case o.ParameterStructures.auto:return ue(t)?ce(t):[ae(t)];case o.ParameterStructures.byName:if(!ue(t))throw new Error(\"Received parameters by name but param is not an object literal.\");return ce(t);case o.ParameterStructures.byPosition:return [ae(t)];default:throw new Error(`Unknown parameter structure ${e.toString()}`)}}function de(e,t){let n;const r=e.numberOfParams;switch(r){case 0:n=void 0;break;case 1:n=le(e.parameterStructures,t[0]);break;default:n=[];for(let e=0;e<t.length&&e<r;e++)n.push(ae(t[e]));if(t.length<r)for(let e=t.length;e<r;e++)n.push(null);}return n}const fe={sendNotification:(e,...t)=>{let r,s;if(se(),i.string(e)){r=e;const n=t[0];let i=0,a=o.ParameterStructures.auto;o.ParameterStructures.is(n)&&(i=1,a=n);let c=t.length;const u=c-i;switch(u){case 0:s=void 0;break;case 1:s=le(a,t[i]);break;default:if(a===o.ParameterStructures.byName)throw new Error(`Received ${u} parameters for 'by Name' notification parameter structure.`);s=t.slice(i,c).map((e=>ae(e)));}}else {const n=t;r=e.method,s=de(e,n);}const a={jsonrpc:E,method:r,params:s};return function(e){if(j!==p.Off&&A)if(U===g.Text){let t;j!==p.Verbose&&j!==p.Compact||(t=e.params?`Params: ${ne(e.params)}\\n\\n`:\"No parameters provided.\\n\\n\"),A.log(`Sending notification '${e.method}'.`,t);}else oe(\"send-notification\",e);}(a),n.write(a).catch((()=>S.error(\"Sending notification failed.\")))},onNotification:(e,t)=>{let n;return se(),i.func(e)?x=e:t&&(i.string(e)?(n=e,N.set(e,{type:void 0,handler:t})):(n=e.method,N.set(e.method,{type:e,handler:t}))),{dispose:()=>{void 0!==n?N.delete(n):x=void 0;}}},onProgress:(e,t,n)=>{if(O.has(t))throw new Error(`Progress handler for token ${t} already registered`);return O.set(t,n),{dispose:()=>{O.delete(t);}}},sendProgress:(e,t,n)=>fe.sendNotification(d.type,{token:t,value:n}),onUnhandledProgress:V.event,sendRequest:(e,...t)=>{let r,s,a;if(se(),function(){if(!Y())throw new Error(\"Call listen() first.\")}(),i.string(e)){r=e;const n=t[0],i=t[t.length-1];let u=0,l=o.ParameterStructures.auto;o.ParameterStructures.is(n)&&(u=1,l=n);let d=t.length;c.CancellationToken.is(i)&&(d-=1,a=i);const f=d-u;switch(f){case 0:s=void 0;break;case 1:s=le(l,t[u]);break;default:if(l===o.ParameterStructures.byName)throw new Error(`Received ${f} parameters for 'by Name' request parameter structure.`);s=t.slice(u,d).map((e=>ae(e)));}}else {const n=t;r=e.method,s=de(e,n);const i=e.numberOfParams;a=c.CancellationToken.is(n[i])?n[i]:void 0;}const u=_++;let l;return a&&(l=a.onCancellationRequested((()=>{const e=$.sender.sendCancellation(fe,u);return void 0===e?(S.log(`Received no promise from cancellation strategy when cancelling id ${u}`),Promise.resolve()):e.catch((()=>{S.log(`Sending cancellation messages for id ${u} failed`);}))}))),new Promise(((e,t)=>{const i={jsonrpc:E,id:u,method:r,params:s};let a={method:r,timerStart:Date.now(),resolve:t=>{e(t),$.sender.cleanup(u),l?.dispose();},reject:e=>{t(e),$.sender.cleanup(u),l?.dispose();}};!function(e){if(j!==p.Off&&A)if(U===g.Text){let t;j!==p.Verbose&&j!==p.Compact||!e.params||(t=`Params: ${ne(e.params)}\\n\\n`),A.log(`Sending request '${e.method} - (${e.id})'.`,t);}else oe(\"send-request\",e);}(i);try{n.write(i).catch((()=>S.error(\"Sending request failed.\")));}catch(e){a.reject(new o.ResponseError(o.ErrorCodes.MessageWriteError,e.message?e.message:\"Unknown reason\")),a=null;}a&&L.set(u,a);}))},onRequest:(e,t)=>{se();let n=null;return f.is(e)?(n=void 0,P=e):i.string(e)?(n=null,void 0!==t&&(n=e,k.set(e,{handler:t,type:void 0}))):void 0!==t&&(n=e.method,k.set(e.method,{type:e,handler:t})),{dispose:()=>{null!==n&&(void 0!==n?k.delete(n):P=void 0);}}},hasPendingResponse:()=>L.size>0,trace:async(e,t,n)=>{let r=!1,o=g.Text;void 0!==n&&(i.boolean(n)?r=n:(r=n.sendNotification||!1,o=n.traceFormat||g.Text)),j=e,U=o,A=j===p.Off?void 0:t,!r||Z()||X()||await fe.sendNotification(h.type,{value:p.toString(e)});},onError:K.event,onClose:W.event,onUnhandledNotification:z.event,onDispose:B.event,end:()=>{n.end();},dispose:()=>{if(X())return;H=b.Disposed,B.fire(void 0);const t=new o.ResponseError(o.ErrorCodes.PendingResponseRejected,\"Pending response rejected since connection got disposed\");for(const e of L.values())e.reject(t);L=new Map,M=new Map,q=new Set,F=new s.LinkedMap,i.func(n.dispose)&&n.dispose(),i.func(e.dispose)&&e.dispose();},listen:()=>{se(),function(){if(Y())throw new R(v.AlreadyListening,\"Connection is already listening\")}(),H=b.Listening,e.listen(te);},inspect:()=>{(0, r.default)().console.log(\"inspect\");}};return fe.onNotification(m.type,(e=>{if(j===p.Off||!A)return;const t=j===p.Verbose||j===p.Compact;A.log(e.message,t?e.verbose:void 0);})),fe.onNotification(d.type,(e=>{const t=O.get(e.token);t?t(e.value):V.fire(e);})),fe};},3911:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.Disposable=void 0,(t.Disposable||(t.Disposable={})).create=function(e){return {dispose:e}};},7135:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.Emitter=t.Event=void 0;const r=n(147);!function(e){const t={dispose(){}};e.None=function(){return t};}(t.Event||(t.Event={}));class i{add(e,t=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(n)&&n.push({dispose:()=>this.remove(e,t)});}remove(e,t=null){if(!this._callbacks)return;let n=!1;for(let r=0,i=this._callbacks.length;r<i;r++)if(this._callbacks[r]===e){if(this._contexts[r]===t)return this._callbacks.splice(r,1),void this._contexts.splice(r,1);n=!0;}if(n)throw new Error(\"When adding a listener with a context, you should remove it with the same context\")}invoke(...e){if(!this._callbacks)return [];const t=[],n=this._callbacks.slice(0),i=this._contexts.slice(0);for(let o=0,s=n.length;o<s;o++)try{t.push(n[o].apply(i[o],e));}catch(e){(0, r.default)().console.error(e);}return t}isEmpty(){return !this._callbacks||0===this._callbacks.length}dispose(){this._callbacks=void 0,this._contexts=void 0;}}class o{constructor(e){this._options=e;}get event(){return this._event||(this._event=(e,t,n)=>{this._callbacks||(this._callbacks=new i),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);const r={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,t),r.dispose=o._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this));}};return Array.isArray(n)&&n.push(r),r}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e);}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0);}}t.Emitter=o,o._noop=function(){};},7574:(e,t)=>{function n(e){return \"string\"==typeof e||e instanceof String}function r(e){return Array.isArray(e)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return !0===e||!1===e},t.string=n,t.number=function(e){return \"number\"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return \"function\"==typeof e},t.array=r,t.stringArray=function(e){return r(e)&&e.every((e=>n(e)))};},6184:(e,t)=>{var n,r;Object.defineProperty(t,\"__esModule\",{value:!0}),t.LRUCache=t.LinkedMap=t.Touch=void 0,function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last;}(r=t.Touch||(t.Touch={}));class i{constructor(){this[n]=\"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(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=r.None){const n=this._map.get(e);if(n)return t!==r.None&&this.touch(n,t),n.value}set(e,t,n=r.None){let i=this._map.get(e);if(i)i.value=t,n!==r.None&&this.touch(i,n);else {switch(i={key:e,value:t,next:void 0,previous:void 0},n){case r.None:this.addItemLast(i);break;case r.First:this.addItemFirst(i);break;case r.Last:default:this.addItemLast(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 r=this._head;for(;r;){if(t?e.bind(t)(r.value,r.key,this):e(r.value,r.key,this),this._state!==n)throw new Error(\"LinkedMap got modified during iteration.\");r=r.next;}}keys(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error(\"LinkedMap got modified during iteration.\");if(t){const e={value:t.key,done:!1};return t=t.next,e}return {value:void 0,done:!0}}};return n}values(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error(\"LinkedMap got modified during iteration.\");if(t){const e={value:t.value,done:!1};return t=t.next,e}return {value:void 0,done:!0}}};return n}entries(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error(\"LinkedMap got modified during iteration.\");if(t){const e={value:[t.key,t.value],done:!1};return t=t.next,e}return {value:void 0,done:!0}}};return n}[(n=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++;}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(t===r.First||t===r.Last)if(t===r.First){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(t===r.Last){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);}}t.LinkedMap=i,t.LRUCache=class extends i{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 ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim();}get(e,t=r.AsNew){return super.get(e,t)}peek(e){return super.get(e,r.None)}set(e,t){return super.set(e,t,r.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio));}};},5530:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.AbstractMessageBuffer=void 0,t.AbstractMessageBuffer=class{constructor(e=\"utf-8\"){this._encoding=e,this._chunks=[],this._totalLength=0;}get encoding(){return this._encoding}append(e){const t=\"string\"==typeof e?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength;}tryReadHeaders(){if(0===this._chunks.length)return;let e=0,t=0,n=0,r=0;e:for(;t<this._chunks.length;){const i=this._chunks[t];for(n=0;n<i.length;){switch(i[n]){case 13:switch(e){case 0:e=1;break;case 2:e=3;break;default:e=0;}break;case 10:switch(e){case 1:e=2;break;case 3:e=4,n++;break e;default:e=0;}break;default:e=0;}n++;}r+=i.byteLength,t++;}if(4!==e)return;const i=this._read(r+n),o=new Map,s=this.toString(i,\"ascii\").split(\"\\r\\n\");if(s.length<2)return o;for(let e=0;e<s.length-2;e++){const t=s[e],n=t.indexOf(\":\");if(-1===n)throw new Error(\"Message header must separate key and value using :\");const r=t.substr(0,n),i=t.substr(n+1).trim();o.set(r,i);}return o}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(0===e)return this.emptyBuffer();if(e>this._totalLength)throw new Error(\"Cannot read so many bytes!\");if(this._chunks[0].byteLength===e){const t=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(t)}if(this._chunks[0].byteLength>e){const t=this._chunks[0],n=this.asNative(t,e);return this._chunks[0]=t.slice(e),this._totalLength-=e,n}const t=this.allocNative(e);let n=0;for(;e>0;){const r=this._chunks[0];if(r.byteLength>e){const i=r.slice(0,e);t.set(i,n),n+=e,this._chunks[0]=r.slice(e),this._totalLength-=e,e-=e;}else t.set(r,n),n+=r.byteLength,this._chunks.shift(),this._totalLength-=r.byteLength,e-=r.byteLength;}return t}};},6525:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=void 0;const r=n(147),i=n(7574),o=n(7135);var s;(t.MessageReader||(t.MessageReader={})).is=function(e){let t=e;return t&&i.func(t.listen)&&i.func(t.dispose)&&i.func(t.onError)&&i.func(t.onClose)&&i.func(t.onPartialMessage)};class a{constructor(){this.errorEmitter=new o.Emitter,this.closeEmitter=new o.Emitter,this.partialMessageEmitter=new o.Emitter;}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose();}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e));}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0);}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e);}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${i.string(e.message)?e.message:\"unknown\"}`)}}t.AbstractMessageReader=a,function(e){e.fromOptions=function(e){let t,n;const i=new Map;let o;const s=new Map;if(void 0===e||\"string\"==typeof e)t=e??\"utf-8\";else {if(t=e.charset??\"utf-8\",void 0!==e.contentDecoder&&(n=e.contentDecoder,i.set(n.name,n)),void 0!==e.contentDecoders)for(const t of e.contentDecoders)i.set(t.name,t);if(void 0!==e.contentTypeDecoder&&(o=e.contentTypeDecoder,s.set(o.name,o)),void 0!==e.contentTypeDecoders)for(const t of e.contentTypeDecoders)s.set(t.name,t);}return void 0===o&&(o=(0, r.default)().applicationJson.decoder,s.set(o.name,o)),{charset:t,contentDecoder:n,contentDecoders:i,contentTypeDecoder:o,contentTypeDecoders:s}};}(s||(s={})),t.ReadableStreamMessageReader=class extends a{constructor(e,t){super(),this.readable=e,this.options=s.fromOptions(t),this.buffer=(0, r.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0;}set partialMessageTimeout(e){this._partialMessageTimeout=e;}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;const t=this.readable.onData((e=>{this.onData(e);}));return this.readable.onError((e=>this.fireError(e))),this.readable.onClose((()=>this.fireClose())),t}onData(e){for(this.buffer.append(e);;){if(-1===this.nextMessageLength){const e=this.buffer.tryReadHeaders();if(!e)return;const t=e.get(\"Content-Length\");if(!t)throw new Error(\"Header must provide a Content-Length property.\");const n=parseInt(t);if(isNaN(n))throw new Error(\"Content-Length value must be a number.\");this.nextMessageLength=n;}const e=this.buffer.tryReadBody(this.nextMessageLength);if(void 0===e)return void this.setPartialMessageTimer();let t;this.clearPartialMessageTimer(),this.nextMessageLength=-1,t=void 0!==this.options.contentDecoder?this.options.contentDecoder.decode(e):Promise.resolve(e),t.then((e=>{this.options.contentTypeDecoder.decode(e,this.options).then((e=>{this.callback(e);}),(e=>{this.fireError(e);}));}),(e=>{this.fireError(e);}));}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0);}setPartialMessageTimer(){this.clearPartialMessageTimer(),this._partialMessageTimeout<=0||(this.partialMessageTimer=(0, r.default)().timer.setTimeout(((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer());}),this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout));}};},6654:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=void 0;const r=n(147),i=n(7574),o=n(142),s=n(7135);var a;(t.MessageWriter||(t.MessageWriter={})).is=function(e){let t=e;return t&&i.func(t.dispose)&&i.func(t.onClose)&&i.func(t.onError)&&i.func(t.write)};class c{constructor(){this.errorEmitter=new s.Emitter,this.closeEmitter=new s.Emitter;}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose();}get onError(){return this.errorEmitter.event}fireError(e,t,n){this.errorEmitter.fire([this.asError(e),t,n]);}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0);}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${i.string(e.message)?e.message:\"unknown\"}`)}}t.AbstractMessageWriter=c,function(e){e.fromOptions=function(e){return void 0===e||\"string\"==typeof e?{charset:e??\"utf-8\",contentTypeEncoder:(0, r.default)().applicationJson.encoder}:{charset:e.charset??\"utf-8\",contentEncoder:e.contentEncoder,contentTypeEncoder:e.contentTypeEncoder??(0, r.default)().applicationJson.encoder}};}(a||(a={})),t.WriteableStreamMessageWriter=class extends c{constructor(e,t){super(),this.writable=e,this.options=a.fromOptions(t),this.errorCount=0,this.writeSemaphore=new o.Semaphore(1),this.writable.onError((e=>this.fireError(e))),this.writable.onClose((()=>this.fireClose()));}async write(e){return this.writeSemaphore.lock((async()=>this.options.contentTypeEncoder.encode(e,this.options).then((e=>void 0!==this.options.contentEncoder?this.options.contentEncoder.encode(e):e)).then((t=>{const n=[];return n.push(\"Content-Length: \",t.byteLength.toString(),\"\\r\\n\"),n.push(\"\\r\\n\"),this.doWrite(e,n,t)}),(e=>{throw this.fireError(e),e}))))}async doWrite(e,t,n){try{return await this.writable.write(t.join(\"\"),\"ascii\"),this.writable.write(n)}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount);}end(){this.writable.end();}};},839:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.Message=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType=t.RequestType0=t.AbstractMessageSignature=t.ParameterStructures=t.ResponseError=t.ErrorCodes=void 0;const r=n(7574);var i,o;!function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=-32099,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.PendingResponseRejected=-32097,e.ConnectionInactive=-32096,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=-32e3;}(i=t.ErrorCodes||(t.ErrorCodes={}));class s extends Error{constructor(e,t,n){super(t),this.code=r.number(e)?e:i.UnknownErrorCode,this.data=n,Object.setPrototypeOf(this,s.prototype);}toJson(){const e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),e}}t.ResponseError=s;class a{constructor(e){this.kind=e;}static is(e){return e===a.auto||e===a.byName||e===a.byPosition}toString(){return this.kind}}t.ParameterStructures=a,a.auto=new a(\"auto\"),a.byPosition=new a(\"byPosition\"),a.byName=new a(\"byName\");class c{constructor(e,t){this.method=e,this.numberOfParams=t;}get parameterStructures(){return a.auto}}t.AbstractMessageSignature=c,t.RequestType0=class extends c{constructor(e){super(e,0);}},t.RequestType=class extends c{constructor(e,t=a.auto){super(e,1),this._parameterStructures=t;}get parameterStructures(){return this._parameterStructures}},t.RequestType1=class extends c{constructor(e,t=a.auto){super(e,1),this._parameterStructures=t;}get parameterStructures(){return this._parameterStructures}},t.RequestType2=class extends c{constructor(e){super(e,2);}},t.RequestType3=class extends c{constructor(e){super(e,3);}},t.RequestType4=class extends c{constructor(e){super(e,4);}},t.RequestType5=class extends c{constructor(e){super(e,5);}},t.RequestType6=class extends c{constructor(e){super(e,6);}},t.RequestType7=class extends c{constructor(e){super(e,7);}},t.RequestType8=class extends c{constructor(e){super(e,8);}},t.RequestType9=class extends c{constructor(e){super(e,9);}},t.NotificationType=class extends c{constructor(e,t=a.auto){super(e,1),this._parameterStructures=t;}get parameterStructures(){return this._parameterStructures}},t.NotificationType0=class extends c{constructor(e){super(e,0);}},t.NotificationType1=class extends c{constructor(e,t=a.auto){super(e,1),this._parameterStructures=t;}get parameterStructures(){return this._parameterStructures}},t.NotificationType2=class extends c{constructor(e){super(e,2);}},t.NotificationType3=class extends c{constructor(e){super(e,3);}},t.NotificationType4=class extends c{constructor(e){super(e,4);}},t.NotificationType5=class extends c{constructor(e){super(e,5);}},t.NotificationType6=class extends c{constructor(e){super(e,6);}},t.NotificationType7=class extends c{constructor(e){super(e,7);}},t.NotificationType8=class extends c{constructor(e){super(e,8);}},t.NotificationType9=class extends c{constructor(e){super(e,9);}},(o=t.Message||(t.Message={})).isRequest=function(e){const t=e;return t&&r.string(t.method)&&(r.string(t.id)||r.number(t.id))},o.isNotification=function(e){const t=e;return t&&r.string(t.method)&&void 0===e.id},o.isResponse=function(e){const t=e;return t&&(void 0!==t.result||!!t.error)&&(r.string(t.id)||r.number(t.id)||null===t.id)};},147:(e,t)=>{let n;function r(){if(void 0===n)throw new Error(\"No runtime abstraction layer installed\");return n}Object.defineProperty(t,\"__esModule\",{value:!0}),function(e){e.install=function(e){if(void 0===e)throw new Error(\"No runtime abstraction layer provided\");n=e;};}(r||(r={})),t.default=r;},142:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.Semaphore=void 0;const r=n(147);t.Semaphore=class{constructor(e=1){if(e<=0)throw new Error(\"Capacity must be greater than 0\");this._capacity=e,this._active=0,this._waiting=[];}lock(e){return new Promise(((t,n)=>{this._waiting.push({thunk:e,resolve:t,reject:n}),this.runNext();}))}get active(){return this._active}runNext(){0!==this._waiting.length&&this._active!==this._capacity&&(0, r.default)().timer.setImmediate((()=>this.doRunNext()));}doRunNext(){if(0===this._waiting.length||this._active===this._capacity)return;const e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error(\"To many thunks active\");try{const t=e.thunk();t instanceof Promise?t.then((t=>{this._active--,e.resolve(t),this.runNext();}),(t=>{this._active--,e.reject(t),this.runNext();})):(this._active--,e.resolve(t),this.runNext());}catch(t){this._active--,e.reject(t),this.runNext();}}};},8595:(e,t,n)=>{e.exports=n(5770);},5770:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!(\"get\"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i);}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n];}),i=this&&this.__exportStar||function(e,t){for(var n in e)\"default\"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n);};Object.defineProperty(t,\"__esModule\",{value:!0}),t.LanguageClient=void 0;const o=n(5734),s=n(5224);i(n(5224),t),i(n(5734),t);class a extends o.BaseLanguageClient{constructor(e,t,n,r){super(e,t,n),this.worker=r;}createMessageTransports(e){const t=new s.BrowserMessageReader(this.worker),n=new s.BrowserMessageWriter(this.worker);return Promise.resolve({reader:t,writer:n})}getLocale(){return \"en\"}}t.LanguageClient=a;},5734:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!(\"get\"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i);}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n];}),i=this&&this.__exportStar||function(e,t){for(var n in e)\"default\"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n);};Object.defineProperty(t,\"__esModule\",{value:!0}),t.DiagnosticPullMode=t.vsdiag=void 0,i(n(152),t),i(n(8909),t);var o=n(2570);Object.defineProperty(t,\"vsdiag\",{enumerable:!0,get:function(){return o.vsdiag}}),Object.defineProperty(t,\"DiagnosticPullMode\",{enumerable:!0,get:function(){return o.DiagnosticPullMode}}),i(n(4384),t);},5578:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.CallHierarchyFeature=void 0;const r=n(9496),i=n(152),o=n(8909);class s{constructor(e){this.client=e,this.middleware=e.middleware;}prepareCallHierarchy(e,t,n){const r=this.client,o=this.middleware,s=(e,t,n)=>{const o=r.code2ProtocolConverter.asTextDocumentPositionParams(e,t);return r.sendRequest(i.CallHierarchyPrepareRequest.type,o,n).then((e=>n.isCancellationRequested?null:r.protocol2CodeConverter.asCallHierarchyItems(e,n)),(e=>r.handleFailedRequest(i.CallHierarchyPrepareRequest.type,n,e,null)))};return o.prepareCallHierarchy?o.prepareCallHierarchy(e,t,n,s):s(e,t,n)}provideCallHierarchyIncomingCalls(e,t){const n=this.client,r=this.middleware,o=(e,t)=>{const r={item:n.code2ProtocolConverter.asCallHierarchyItem(e)};return n.sendRequest(i.CallHierarchyIncomingCallsRequest.type,r,t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asCallHierarchyIncomingCalls(e,t)),(e=>n.handleFailedRequest(i.CallHierarchyIncomingCallsRequest.type,t,e,null)))};return r.provideCallHierarchyIncomingCalls?r.provideCallHierarchyIncomingCalls(e,t,o):o(e,t)}provideCallHierarchyOutgoingCalls(e,t){const n=this.client,r=this.middleware,o=(e,t)=>{const r={item:n.code2ProtocolConverter.asCallHierarchyItem(e)};return n.sendRequest(i.CallHierarchyOutgoingCallsRequest.type,r,t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asCallHierarchyOutgoingCalls(e,t)),(e=>n.handleFailedRequest(i.CallHierarchyOutgoingCallsRequest.type,t,e,null)))};return r.provideCallHierarchyOutgoingCalls?r.provideCallHierarchyOutgoingCalls(e,t,o):o(e,t)}}class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,i.CallHierarchyPrepareRequest.type);}fillClientCapabilities(e){const t=e;(0, o.ensure)((0, o.ensure)(t,\"textDocument\"),\"callHierarchy\").dynamicRegistration=!0;}initialize(e,t){const[n,r]=this.getRegistration(t,e.callHierarchyProvider);n&&r&&this.register({id:n,registerOptions:r});}registerLanguageProvider(e){const t=this._client,n=new s(t);return [r.languages.registerCallHierarchyProvider(this._client.protocol2CodeConverter.asDocumentSelector(e.documentSelector),n),n]}}t.CallHierarchyFeature=a;},4384:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.ProposedFeatures=t.BaseLanguageClient=t.MessageTransports=t.SuspendMode=t.State=t.CloseAction=t.ErrorAction=t.RevealOutputChannelOn=void 0;const r=n(9496),i=n(152),o=n(71),s=n(8785),a=n(9763),c=n(4904),u=n(1980),l=n(8071),d=n(8909),f=n(2570),p=n(203),g=n(6495),h=n(743),m=n(1435),v=n(6782),y=n(122),C=n(2908),S=n(9959),T=n(2483),b=n(3051),_=n(8480),R=n(9474),D=n(7711),w=n(6426),E=n(6458),P=n(3471),k=n(4849),x=n(5338),N=n(8880),O=n(9889),I=n(328),A=n(5941),F=n(6454),L=n(707),q=n(750),M=n(3603),j=n(5578),U=n(9957),H=n(7606),K=n(3483),W=n(4175),z=n(5098),V=n(6190);var B,$,G,J,Y,Z,X;!function(e){e[e.Info=1]=\"Info\",e[e.Warn=2]=\"Warn\",e[e.Error=3]=\"Error\",e[e.Never=4]=\"Never\";}(B=t.RevealOutputChannelOn||(t.RevealOutputChannelOn={})),function(e){e[e.Continue=1]=\"Continue\",e[e.Shutdown=2]=\"Shutdown\";}($=t.ErrorAction||(t.ErrorAction={})),function(e){e[e.DoNotRestart=1]=\"DoNotRestart\",e[e.Restart=2]=\"Restart\";}(G=t.CloseAction||(t.CloseAction={})),function(e){e[e.Stopped=1]=\"Stopped\",e[e.Starting=3]=\"Starting\",e[e.Running=2]=\"Running\";}(J=t.State||(t.State={})),(X=t.SuspendMode||(t.SuspendMode={})).off=\"off\",X.on=\"on\";class Q{constructor(e,t){this.client=e,this.maxRestartCount=t,this.restarts=[];}error(e,t,n){return n&&n<=3?{action:$.Continue}:{action:$.Shutdown}}closed(){return this.restarts.push(Date.now()),this.restarts.length<=this.maxRestartCount?{action:G.Restart}:this.restarts[this.restarts.length-1]-this.restarts[0]<=18e4?{action:G.DoNotRestart,message:`The ${this.client.name} server crashed ${this.maxRestartCount+1} times in the last 3 minutes. The server will not be restarted. See the output for more information.`}:(this.restarts.shift(),{action:G.Restart})}}!function(e){e.Initial=\"initial\",e.Starting=\"starting\",e.StartFailed=\"startFailed\",e.Running=\"running\",e.Stopping=\"stopping\",e.Stopped=\"stopped\";}(Y||(Y={})),(t.MessageTransports||(t.MessageTransports={})).is=function(e){return e&&i.MessageReader.is(e.reader)&&i.MessageWriter.is(e.writer)};class ee{constructor(e,t,n){this._traceFormat=i.TraceFormat.Text,this._diagnosticQueue=new Map,this._diagnosticQueueState={state:\"idle\"},this._features=[],this._dynamicFeatures=new Map,this.workspaceEditLock=new c.Semaphore(1),this._id=e,this._name=t;const r={isTrusted:!1,supportHtml:!1};void 0!==(n=n||{}).markdown&&(r.isTrusted=!0===n.markdown.isTrusted,r.supportHtml=!0===n.markdown.supportHtml),this._clientOptions={documentSelector:n.documentSelector??[],synchronize:n.synchronize??{},diagnosticCollectionName:n.diagnosticCollectionName,outputChannelName:n.outputChannelName??this._name,revealOutputChannelOn:n.revealOutputChannelOn??B.Error,stdioEncoding:n.stdioEncoding??\"utf8\",initializationOptions:n.initializationOptions,initializationFailedHandler:n.initializationFailedHandler,progressOnInitialization:!!n.progressOnInitialization,errorHandler:n.errorHandler??this.createDefaultErrorHandler(n.connectionOptions?.maxRestartCount),middleware:n.middleware??{},uriConverters:n.uriConverters,workspaceFolder:n.workspaceFolder,connectionOptions:n.connectionOptions,markdown:r,diagnosticPullOptions:n.diagnosticPullOptions??{onChange:!0,onSave:!1},notebookDocumentOptions:n.notebookDocumentOptions??{}},this._clientOptions.synchronize=this._clientOptions.synchronize||{},this._state=Y.Initial,this._ignoredRegistrations=new Set,this._listeners=[],this._notificationHandlers=new Map,this._pendingNotificationHandlers=new Map,this._notificationDisposables=new Map,this._requestHandlers=new Map,this._pendingRequestHandlers=new Map,this._requestDisposables=new Map,this._progressHandlers=new Map,this._pendingProgressHandlers=new Map,this._progressDisposables=new Map,this._connection=void 0,this._initializeResult=void 0,n.outputChannel?(this._outputChannel=n.outputChannel,this._disposeOutputChannel=!1):(this._outputChannel=void 0,this._disposeOutputChannel=!0),this._traceOutputChannel=n.traceOutputChannel,this._diagnostics=void 0,this._fileEvents=[],this._fileEventDelayer=new c.Delayer(250),this._onStop=void 0,this._telemetryEmitter=new i.Emitter,this._stateChangeEmitter=new i.Emitter,this._trace=i.Trace.Off,this._tracer={log:(e,t)=>{a.string(e)?this.logTrace(e,t):this.logObjectTrace(e);}},this._c2p=o.createConverter(n.uriConverters?n.uriConverters.code2Protocol:void 0),this._p2c=s.createConverter(n.uriConverters?n.uriConverters.protocol2Code:void 0,this._clientOptions.markdown.isTrusted,this._clientOptions.markdown.supportHtml),this._syncedDocuments=new Map,this.registerBuiltinFeatures();}get name(){return this._name}get middleware(){return this._clientOptions.middleware??Object.create(null)}get clientOptions(){return this._clientOptions}get protocol2CodeConverter(){return this._p2c}get code2ProtocolConverter(){return this._c2p}get onTelemetry(){return this._telemetryEmitter.event}get onDidChangeState(){return this._stateChangeEmitter.event}get outputChannel(){return this._outputChannel||(this._outputChannel=r.window.createOutputChannel(this._clientOptions.outputChannelName?this._clientOptions.outputChannelName:this._name)),this._outputChannel}get traceOutputChannel(){return this._traceOutputChannel?this._traceOutputChannel:this.outputChannel}get diagnostics(){return this._diagnostics}get state(){return this.getPublicState()}get $state(){return this._state}set $state(e){let t=this.getPublicState();this._state=e;let n=this.getPublicState();n!==t&&this._stateChangeEmitter.fire({oldState:t,newState:n});}getPublicState(){switch(this.$state){case Y.Starting:return J.Starting;case Y.Running:return J.Running;default:return J.Stopped}}get initializeResult(){return this._initializeResult}async sendRequest(e,...t){if(this.$state===Y.StartFailed||this.$state===Y.Stopping||this.$state===Y.Stopped)return Promise.reject(new i.ResponseError(i.ErrorCodes.ConnectionInactive,\"Client is not running\"));try{const n=await this.$start();return await this.forceDocumentSync(),n.sendRequest(e,...t)}catch(t){throw this.error(`Sending request ${a.string(e)?e:e.method} failed.`,t),t}}onRequest(e,t){const n=\"string\"==typeof e?e:e.method;this._requestHandlers.set(n,t);const r=this.activeConnection();let i;return void 0!==r?(this._requestDisposables.set(n,r.onRequest(e,t)),i={dispose:()=>{const e=this._requestDisposables.get(n);void 0!==e&&(e.dispose(),this._requestDisposables.delete(n));}}):(this._pendingRequestHandlers.set(n,t),i={dispose:()=>{this._pendingRequestHandlers.delete(n);const e=this._requestDisposables.get(n);void 0!==e&&(e.dispose(),this._requestDisposables.delete(n));}}),{dispose:()=>{this._requestHandlers.delete(n),i.dispose();}}}async sendNotification(e,t){if(this.$state===Y.StartFailed||this.$state===Y.Stopping||this.$state===Y.Stopped)return Promise.reject(new i.ResponseError(i.ErrorCodes.ConnectionInactive,\"Client is not running\"));try{const n=await this.$start();return await this.forceDocumentSync(),n.sendNotification(e,t)}catch(t){throw this.error(`Sending notification ${a.string(e)?e:e.method} failed.`,t),t}}onNotification(e,t){const n=\"string\"==typeof e?e:e.method;this._notificationHandlers.set(n,t);const r=this.activeConnection();let i;return void 0!==r?(this._notificationDisposables.set(n,r.onNotification(e,t)),i={dispose:()=>{const e=this._notificationDisposables.get(n);void 0!==e&&(e.dispose(),this._notificationDisposables.delete(n));}}):(this._pendingNotificationHandlers.set(n,t),i={dispose:()=>{this._pendingNotificationHandlers.delete(n);const e=this._notificationDisposables.get(n);void 0!==e&&(e.dispose(),this._notificationDisposables.delete(n));}}),{dispose:()=>{this._notificationHandlers.delete(n),i.dispose();}}}async sendProgress(e,t,n){if(this.$state===Y.StartFailed||this.$state===Y.Stopping||this.$state===Y.Stopped)return Promise.reject(new i.ResponseError(i.ErrorCodes.ConnectionInactive,\"Client is not running\"));try{return (await this.$start()).sendProgress(e,t,n)}catch(e){throw this.error(`Sending progress for token ${t} failed.`,e),e}}onProgress(e,t,n){this._progressHandlers.set(t,{type:e,handler:n});const r=this.activeConnection();let o;const s=this._clientOptions.middleware?.handleWorkDoneProgress,a=i.WorkDoneProgress.is(e)&&void 0!==s?e=>{s(t,e,(()=>n(e)));}:n;return void 0!==r?(this._progressDisposables.set(t,r.onProgress(e,t,a)),o={dispose:()=>{const e=this._progressDisposables.get(t);void 0!==e&&(e.dispose(),this._progressDisposables.delete(t));}}):(this._pendingProgressHandlers.set(t,{type:e,handler:n}),o={dispose:()=>{this._pendingProgressHandlers.delete(t);const e=this._progressDisposables.get(t);void 0!==e&&(e.dispose(),this._progressDisposables.delete(t));}}),{dispose:()=>{this._progressHandlers.delete(t),o.dispose();}}}createDefaultErrorHandler(e){if(void 0!==e&&e<0)throw new Error(`Invalid maxRestartCount: ${e}`);return new Q(this,e??4)}async setTrace(e){this._trace=e;const t=this.activeConnection();void 0!==t&&await t.trace(this._trace,this._tracer,{sendNotification:!1,traceFormat:this._traceFormat});}data2String(e){if(e instanceof i.ResponseError){const t=e;return ` Message: ${t.message}\\n Code: ${t.code} ${t.data?\"\\n\"+t.data.toString():\"\"}`}return e instanceof Error?a.string(e.stack)?e.stack:e.message:a.string(e)?e:e.toString()}info(e,t,n=!0){this.outputChannel.appendLine(`[Info - ${(new Date).toLocaleTimeString()}] ${e}`),null!=t&&this.outputChannel.appendLine(this.data2String(t)),n&&this._clientOptions.revealOutputChannelOn<=B.Info&&this.showNotificationMessage(i.MessageType.Info,e);}warn(e,t,n=!0){this.outputChannel.appendLine(`[Warn - ${(new Date).toLocaleTimeString()}] ${e}`),null!=t&&this.outputChannel.appendLine(this.data2String(t)),n&&this._clientOptions.revealOutputChannelOn<=B.Warn&&this.showNotificationMessage(i.MessageType.Warning,e);}error(e,t,n=!0){this.outputChannel.appendLine(`[Error - ${(new Date).toLocaleTimeString()}] ${e}`),null!=t&&this.outputChannel.appendLine(this.data2String(t)),(\"force\"===n||n&&this._clientOptions.revealOutputChannelOn<=B.Error)&&this.showNotificationMessage(i.MessageType.Error,e);}showNotificationMessage(e,t){t=t??\"A request has failed. See the output for more information.\",(e===i.MessageType.Error?r.window.showErrorMessage:e===i.MessageType.Warning?r.window.showWarningMessage:r.window.showInformationMessage)(t,\"Go to output\").then((e=>{void 0!==e&&this.outputChannel.show(!0);}));}logTrace(e,t){this.traceOutputChannel.appendLine(`[Trace - ${(new Date).toLocaleTimeString()}] ${e}`),t&&this.traceOutputChannel.appendLine(this.data2String(t));}logObjectTrace(e){e.isLSPMessage&&e.type?this.traceOutputChannel.append(`[LSP - ${(new Date).toLocaleTimeString()}] `):this.traceOutputChannel.append(`[Trace - ${(new Date).toLocaleTimeString()}] `),e&&this.traceOutputChannel.appendLine(`${JSON.stringify(e)}`);}needsStart(){return this.$state===Y.Initial||this.$state===Y.Stopping||this.$state===Y.Stopped}needsStop(){return this.$state===Y.Starting||this.$state===Y.Running}activeConnection(){return this.$state===Y.Running&&void 0!==this._connection?this._connection:void 0}isRunning(){return this.$state===Y.Running}async start(){if(\"disposing\"===this._disposed||\"disposed\"===this._disposed)throw new Error(\"Client got disposed and can't be restarted.\");if(this.$state===Y.Stopping)throw new Error(\"Client is currently stopping. Can only restart a full stopped client\");if(void 0!==this._onStart)return this._onStart;const[e,t,n]=this.createOnStartPromise();this._onStart=e,void 0===this._diagnostics&&(this._diagnostics=this._clientOptions.diagnosticCollectionName?r.languages.createDiagnosticCollection(this._clientOptions.diagnosticCollectionName):r.languages.createDiagnosticCollection());for(const[e,t]of this._notificationHandlers)this._pendingNotificationHandlers.has(e)||this._pendingNotificationHandlers.set(e,t);for(const[e,t]of this._requestHandlers)this._pendingRequestHandlers.has(e)||this._pendingRequestHandlers.set(e,t);for(const[e,t]of this._progressHandlers)this._pendingProgressHandlers.has(e)||this._pendingProgressHandlers.set(e,t);this.$state=Y.Starting;try{const e=await this.createConnection();e.onNotification(i.LogMessageNotification.type,(e=>{switch(e.type){case i.MessageType.Error:this.error(e.message,void 0,!1);break;case i.MessageType.Warning:this.warn(e.message,void 0,!1);break;case i.MessageType.Info:this.info(e.message,void 0,!1);break;default:this.outputChannel.appendLine(e.message);}})),e.onNotification(i.ShowMessageNotification.type,(e=>{switch(e.type){case i.MessageType.Error:r.window.showErrorMessage(e.message);break;case i.MessageType.Warning:r.window.showWarningMessage(e.message);break;case i.MessageType.Info:default:r.window.showInformationMessage(e.message);}})),e.onRequest(i.ShowMessageRequest.type,(e=>{let t;switch(e.type){case i.MessageType.Error:t=r.window.showErrorMessage;break;case i.MessageType.Warning:t=r.window.showWarningMessage;break;case i.MessageType.Info:default:t=r.window.showInformationMessage;}let n=e.actions||[];return t(e.message,...n)})),e.onNotification(i.TelemetryEventNotification.type,(e=>{this._telemetryEmitter.fire(e);})),e.onRequest(i.ShowDocumentRequest.type,(async e=>{const t=async e=>{const t=this.protocol2CodeConverter.asUri(e.uri);try{if(!0===e.external)return {success:await r.env.openExternal(t)};{const n={};return void 0!==e.selection&&(n.selection=this.protocol2CodeConverter.asRange(e.selection)),void 0===e.takeFocus||!1===e.takeFocus?n.preserveFocus=!0:!0===e.takeFocus&&(n.preserveFocus=!1),await r.window.showTextDocument(t,n),{success:!0}}}catch(e){return {success:!1}}},n=this._clientOptions.middleware.window?.showDocument;return void 0!==n?n(e,t):t(e)})),e.listen(),await this.initialize(e),t();}catch(e){this.$state=Y.StartFailed,this.error(`${this._name} client: couldn't create connection to server.`,e,\"force\"),n(e);}return this._onStart}createOnStartPromise(){let e,t;return [new Promise(((n,r)=>{e=n,t=r;})),e,t]}async initialize(e){this.refreshTrace(e,!1);const t=this._clientOptions.initializationOptions,[n,o]=void 0!==this._clientOptions.workspaceFolder?[this._clientOptions.workspaceFolder.uri.fsPath,[{uri:this._c2p.asUri(this._clientOptions.workspaceFolder.uri),name:this._clientOptions.workspaceFolder.name}]]:[this._clientGetRootPath(),null],s={processId:null,clientInfo:{name:r.env.appName,version:r.version},locale:this.getLocale(),rootPath:n||null,rootUri:n?this._c2p.asUri(r.Uri.file(n)):null,capabilities:this.computeClientCapabilities(),initializationOptions:a.func(t)?t():t,trace:i.Trace.toString(this._trace),workspaceFolders:o};if(this.fillInitializeParams(s),!this._clientOptions.progressOnInitialization)return this.doInitialize(e,s);{const t=u.generateUuid(),n=new l.ProgressPart(e,t);s.workDoneToken=t;try{const t=await this.doInitialize(e,s);return n.done(),t}catch(e){throw n.cancel(),e}}}async doInitialize(e,t){try{const n=await e.initialize(t);if(void 0!==n.capabilities.positionEncoding&&n.capabilities.positionEncoding!==i.PositionEncodingKind.UTF16)throw new Error(`Unsupported position encoding (${n.capabilities.positionEncoding}) received from server ${this.name}`);let r;this._initializeResult=n,this.$state=Y.Running,a.number(n.capabilities.textDocumentSync)?r=n.capabilities.textDocumentSync===i.TextDocumentSyncKind.None?{openClose:!1,change:i.TextDocumentSyncKind.None,save:void 0}:{openClose:!0,change:n.capabilities.textDocumentSync,save:{includeText:!1}}:void 0!==n.capabilities.textDocumentSync&&null!==n.capabilities.textDocumentSync&&(r=n.capabilities.textDocumentSync),this._capabilities=Object.assign({},n.capabilities,{resolvedTextDocumentSync:r}),e.onNotification(i.PublishDiagnosticsNotification.type,(e=>this.handleDiagnostics(e))),e.onRequest(i.RegistrationRequest.type,(e=>this.handleRegistrationRequest(e))),e.onRequest(\"client/registerFeature\",(e=>this.handleRegistrationRequest(e))),e.onRequest(i.UnregistrationRequest.type,(e=>this.handleUnregistrationRequest(e))),e.onRequest(\"client/unregisterFeature\",(e=>this.handleUnregistrationRequest(e))),e.onRequest(i.ApplyWorkspaceEditRequest.type,(e=>this.handleApplyWorkspaceEdit(e)));for(const[t,n]of this._pendingNotificationHandlers)this._notificationDisposables.set(t,e.onNotification(t,n));this._pendingNotificationHandlers.clear();for(const[t,n]of this._pendingRequestHandlers)this._requestDisposables.set(t,e.onRequest(t,n));this._pendingRequestHandlers.clear();for(const[t,n]of this._pendingProgressHandlers)this._progressDisposables.set(t,e.onProgress(n.type,t,n.handler));return this._pendingProgressHandlers.clear(),await e.sendNotification(i.InitializedNotification.type,{}),this.hookFileEvents(e),this.hookConfigurationChanged(e),this.initializeFeatures(e),n}catch(t){throw this._clientOptions.initializationFailedHandler?this._clientOptions.initializationFailedHandler(t)?this.initialize(e):this.stop():t instanceof i.ResponseError&&t.data&&t.data.retry?r.window.showErrorMessage(t.message,{title:\"Retry\",id:\"retry\"}).then((t=>{t&&\"retry\"===t.id?this.initialize(e):this.stop();})):(t&&t.message&&r.window.showErrorMessage(t.message),this.error(\"Server initialization failed.\",t),this.stop()),t}}_clientGetRootPath(){let e=r.workspace.workspaceFolders;if(!e||0===e.length)return;let t=e[0];return \"file\"===t.uri.scheme?t.uri.fsPath:void 0}stop(e=2e3){return this.shutdown(\"stop\",e)}dispose(e=2e3){try{return this._disposed=\"disposing\",this.stop(e)}finally{this._disposed=\"disposed\";}}async shutdown(e,t){if(this.$state===Y.Stopped||this.$state===Y.Initial)return;if(this.$state===Y.Stopping){if(void 0!==this._onStop)return this._onStop;throw new Error(\"Client is stopping but no stop promise available.\")}const n=this.activeConnection();if(void 0===n||this.$state!==Y.Running)throw new Error(`Client is not running and can't be stopped. It's current state is: ${this.$state}`);this._initializeResult=void 0,this.$state=Y.Stopping,this.cleanUp(e);const r=new Promise((e=>{(0, i.RAL)().timer.setTimeout(e,t);})),o=(async e=>(await e.shutdown(),await e.exit(),e))(n);return this._onStop=Promise.race([r,o]).then((e=>{if(void 0===e)throw this.error(\"Stopping server timed out\",void 0,!1),new Error(\"Stopping the server timed out\");e.end(),e.dispose();}),(e=>{throw this.error(\"Stopping server failed\",e,!1),e})).finally((()=>{this.$state=Y.Stopped,\"stop\"===e&&this.cleanUpChannel(),this._onStart=void 0,this._onStop=void 0,this._connection=void 0,this._ignoredRegistrations.clear();}))}cleanUp(e){this._fileEvents=[],this._fileEventDelayer.cancel();const t=this._listeners.splice(0,this._listeners.length);for(const e of t)e.dispose();this._syncedDocuments&&this._syncedDocuments.clear();for(const e of Array.from(this._features.entries()).map((e=>e[1])).reverse())e.dispose();\"stop\"===e&&void 0!==this._diagnostics&&(this._diagnostics.dispose(),this._diagnostics=void 0),void 0!==this._idleInterval&&(this._idleInterval.dispose(),this._idleInterval=void 0);}cleanUpChannel(){void 0!==this._outputChannel&&this._disposeOutputChannel&&(this._outputChannel.dispose(),this._outputChannel=void 0);}notifyFileEvent(e){const t=this;async function n(e){return t._fileEvents.push(e),t._fileEventDelayer.trigger((async()=>{const e=await t.$start();await t.forceDocumentSync();const n=e.sendNotification(i.DidChangeWatchedFilesNotification.type,{changes:t._fileEvents});return t._fileEvents=[],n}))}const r=this.clientOptions.middleware?.workspace;(r?.didChangeWatchedFile?r.didChangeWatchedFile(e,n):n(e)).catch((e=>{t.error(\"Notify file events failed.\",e);}));}async forceDocumentSync(){return void 0===this._didChangeTextDocumentFeature&&(this._didChangeTextDocumentFeature=this._dynamicFeatures.get(i.DidChangeTextDocumentNotification.type.method)),this._didChangeTextDocumentFeature.forceDelivery()}handleDiagnostics(e){if(!this._diagnostics)return;const t=e.uri;\"busy\"===this._diagnosticQueueState.state&&this._diagnosticQueueState.document===t&&this._diagnosticQueueState.tokenSource.cancel(),this._diagnosticQueue.set(e.uri,e.diagnostics),this.triggerDiagnosticQueue();}triggerDiagnosticQueue(){(0, i.RAL)().timer.setImmediate((()=>{this.workDiagnosticQueue();}));}workDiagnosticQueue(){if(\"busy\"===this._diagnosticQueueState.state)return;const e=this._diagnosticQueue.entries().next();if(!0===e.done)return;const[t,n]=e.value;this._diagnosticQueue.delete(t);const i=new r.CancellationTokenSource;this._diagnosticQueueState={state:\"busy\",document:t,tokenSource:i},this._p2c.asDiagnostics(n,i.token).then((e=>{if(!i.token.isCancellationRequested){const n=this._p2c.asUri(t),r=this.clientOptions.middleware;r.handleDiagnostics?r.handleDiagnostics(n,e,((e,t)=>this.setDiagnostics(e,t))):this.setDiagnostics(n,e);}})).finally((()=>{this._diagnosticQueueState={state:\"idle\"},this.triggerDiagnosticQueue();}));}setDiagnostics(e,t){this._diagnostics&&this._diagnostics.set(e,t);}async $start(){if(this.$state===Y.StartFailed)throw new Error(\"Previous start failed. Can't restart server.\");await this.start();const e=this.activeConnection();if(void 0===e)throw new Error(\"Starting server failed\");return e}async createConnection(){const e=await this.createMessageTransports(this._clientOptions.stdioEncoding||\"utf8\");return this._connection=function(e,t,n,r,o){let s=-1;const c=new te,u=(0, i.createProtocolConnection)(e,t,c,o);return u.onError((e=>{n(e[0],e[1],e[2]);})),u.onClose(r),{get lastUsed(){return s},resetLastUsed:()=>{s=-1;},listen:()=>u.listen(),sendRequest:(e,...t)=>(s=Date.now(),u.sendRequest(e,...t)),onRequest:(e,t)=>u.onRequest(e,t),hasPendingResponse:()=>u.hasPendingResponse(),sendNotification:(e,t)=>(s=Date.now(),u.sendNotification(e,t)),onNotification:(e,t)=>u.onNotification(e,t),onProgress:u.onProgress,sendProgress:u.sendProgress,trace:(e,t,n)=>{const r={sendNotification:!1,traceFormat:i.TraceFormat.Text};return void 0===n?u.trace(e,t,r):(a.boolean(n),u.trace(e,t,n))},initialize:e=>(s=Date.now(),u.sendRequest(i.InitializeRequest.type,e)),shutdown:()=>(s=Date.now(),u.sendRequest(i.ShutdownRequest.type,void 0)),exit:()=>(s=Date.now(),u.sendNotification(i.ExitNotification.type)),end:()=>u.end(),dispose:()=>u.dispose()}}(e.reader,e.writer,((e,t,n)=>{this.handleConnectionError(e,t,n);}),(()=>{this.handleConnectionClosed();}),this._clientOptions.connectionOptions),this._connection}handleConnectionClosed(){if(this.$state===Y.Stopped)return;try{void 0!==this._connection&&this._connection.dispose();}catch(e){}let e={action:G.DoNotRestart};if(this.$state!==Y.Stopping)try{e=this._clientOptions.errorHandler.closed();}catch(e){}this._connection=void 0,e.action===G.DoNotRestart?(this.error(e.message??\"Connection to server got closed. Server will not be restarted.\",void 0,\"force\"),this.cleanUp(\"stop\"),this.$state===Y.Starting?this.$state=Y.StartFailed:this.$state=Y.Stopped,this._onStop=Promise.resolve(),this._onStart=void 0):e.action===G.Restart&&(this.info(e.message??\"Connection to server got closed. Server will restart.\"),this.cleanUp(\"restart\"),this.$state=Y.Initial,this._onStop=Promise.resolve(),this._onStart=void 0,this.start().catch((e=>this.error(\"Restarting server failed\",e,\"force\"))));}handleConnectionError(e,t,n){const r=this._clientOptions.errorHandler.error(e,t,n);r.action===$.Shutdown&&(this.error(r.message??`Client ${this._name}: connection to server is erroring. Shutting down server.`,void 0,\"force\"),this.stop().catch((e=>{this.error(\"Stopping server failed\",e,!1);})));}hookConfigurationChanged(e){this._listeners.push(r.workspace.onDidChangeConfiguration((()=>{this.refreshTrace(e,!0);})));}refreshTrace(e,t=!1){const n=r.workspace.getConfiguration(this._id);let o=i.Trace.Off,s=i.TraceFormat.Text;if(n){const e=n.get(\"trace.server\",\"off\");\"string\"==typeof e?o=i.Trace.fromString(e):(o=i.Trace.fromString(n.get(\"trace.server.verbosity\",\"off\")),s=i.TraceFormat.fromString(n.get(\"trace.server.format\",\"text\")));}this._trace=o,this._traceFormat=s,e.trace(this._trace,this._tracer,{sendNotification:t,traceFormat:this._traceFormat}).catch((e=>{this.error(\"Updating trace failed with error\",e,!1);}));}hookFileEvents(e){let t,n=this._clientOptions.synchronize.fileEvents;n&&(t=a.array(n)?n:[n],t&&this._dynamicFeatures.get(i.DidChangeWatchedFilesNotification.type.method).registerRaw(u.generateUuid(),t));}registerFeatures(e){for(let t of e)this.registerFeature(t);}registerFeature(e){if(this._features.push(e),d.DynamicFeature.is(e)){const t=e.registrationType;this._dynamicFeatures.set(t.method,e);}}getFeature(e){return this._dynamicFeatures.get(e)}hasDedicatedTextSynchronizationFeature(e){const t=this.getFeature(i.NotebookDocumentSyncRegistrationType.method);return void 0!==t&&t instanceof p.NotebookDocumentSyncFeature&&t.handles(e)}registerBuiltinFeatures(){this.registerFeature(new g.ConfigurationFeature(this)),this.registerFeature(new h.DidOpenTextDocumentFeature(this,this._syncedDocuments)),this.registerFeature(new h.DidChangeTextDocumentFeature(this)),this.registerFeature(new h.WillSaveFeature(this)),this.registerFeature(new h.WillSaveWaitUntilFeature(this)),this.registerFeature(new h.DidSaveTextDocumentFeature(this)),this.registerFeature(new h.DidCloseTextDocumentFeature(this,this._syncedDocuments)),this.registerFeature(new x.FileSystemWatcherFeature(this,(e=>this.notifyFileEvent(e)))),this.registerFeature(new m.CompletionItemFeature(this)),this.registerFeature(new v.HoverFeature(this)),this.registerFeature(new C.SignatureHelpFeature(this)),this.registerFeature(new y.DefinitionFeature(this)),this.registerFeature(new _.ReferencesFeature(this)),this.registerFeature(new S.DocumentHighlightFeature(this)),this.registerFeature(new T.DocumentSymbolFeature(this)),this.registerFeature(new b.WorkspaceSymbolFeature(this)),this.registerFeature(new R.CodeActionFeature(this)),this.registerFeature(new D.CodeLensFeature(this)),this.registerFeature(new w.DocumentFormattingFeature(this)),this.registerFeature(new w.DocumentRangeFormattingFeature(this)),this.registerFeature(new w.DocumentOnTypeFormattingFeature(this)),this.registerFeature(new E.RenameFeature(this)),this.registerFeature(new P.DocumentLinkFeature(this)),this.registerFeature(new k.ExecuteCommandFeature(this)),this.registerFeature(new g.SyncConfigurationFeature(this)),this.registerFeature(new I.TypeDefinitionFeature(this)),this.registerFeature(new O.ImplementationFeature(this)),this.registerFeature(new N.ColorProviderFeature(this)),void 0===this.clientOptions.workspaceFolder&&this.registerFeature(new A.WorkspaceFoldersFeature(this)),this.registerFeature(new F.FoldingRangeFeature(this)),this.registerFeature(new L.DeclarationFeature(this)),this.registerFeature(new q.SelectionRangeFeature(this)),this.registerFeature(new M.ProgressFeature(this)),this.registerFeature(new j.CallHierarchyFeature(this)),this.registerFeature(new U.SemanticTokensFeature(this)),this.registerFeature(new K.LinkedEditingFeature(this)),this.registerFeature(new H.DidCreateFilesFeature(this)),this.registerFeature(new H.DidRenameFilesFeature(this)),this.registerFeature(new H.DidDeleteFilesFeature(this)),this.registerFeature(new H.WillCreateFilesFeature(this)),this.registerFeature(new H.WillRenameFilesFeature(this)),this.registerFeature(new H.WillDeleteFilesFeature(this)),this.registerFeature(new W.TypeHierarchyFeature(this)),this.registerFeature(new z.InlineValueFeature(this)),this.registerFeature(new V.InlayHintsFeature(this)),this.registerFeature(new f.DiagnosticFeature(this)),this.registerFeature(new p.NotebookDocumentSyncFeature(this));}registerProposedFeatures(){this.registerFeatures(Z.createAll(this));}fillInitializeParams(e){for(let t of this._features)a.func(t.fillInitializeParams)&&t.fillInitializeParams(e);}computeClientCapabilities(){const e={};(0, d.ensure)(e,\"workspace\").applyEdit=!0;const t=(0, d.ensure)((0, d.ensure)(e,\"workspace\"),\"workspaceEdit\");t.documentChanges=!0,t.resourceOperations=[i.ResourceOperationKind.Create,i.ResourceOperationKind.Rename,i.ResourceOperationKind.Delete],t.failureHandling=i.FailureHandlingKind.TextOnlyTransactional,t.normalizesLineEndings=!0,t.changeAnnotationSupport={groupsOnLabel:!0};const n=(0, d.ensure)((0, d.ensure)(e,\"textDocument\"),\"publishDiagnostics\");n.relatedInformation=!0,n.versionSupport=!1,n.tagSupport={valueSet:[i.DiagnosticTag.Unnecessary,i.DiagnosticTag.Deprecated]},n.codeDescriptionSupport=!0,n.dataSupport=!0;const r=(0, d.ensure)(e,\"window\");(0, d.ensure)(r,\"showMessage\").messageActionItem={additionalPropertiesSupport:!0},(0, d.ensure)(r,\"showDocument\").support=!0;const o=(0, d.ensure)(e,\"general\");o.staleRequestSupport={cancel:!0,retryOnContentModified:Array.from(ee.RequestsToCancelOnContentModified)},o.regularExpressions={engine:\"ECMAScript\",version:\"ES2020\"},o.markdown={parser:\"marked\",version:\"1.1.0\"},o.positionEncodings=[\"utf-16\"],this._clientOptions.markdown.supportHtml&&(o.markdown.allowedTags=[\"ul\",\"li\",\"p\",\"code\",\"blockquote\",\"ol\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"hr\",\"em\",\"pre\",\"table\",\"thead\",\"tbody\",\"tr\",\"th\",\"td\",\"div\",\"del\",\"a\",\"strong\",\"br\",\"img\",\"span\"]);for(let t of this._features)t.fillClientCapabilities(e);return e}initializeFeatures(e){const t=this._clientOptions.documentSelector;for(const e of this._features)a.func(e.preInitialize)&&e.preInitialize(this._capabilities,t);for(const e of this._features)e.initialize(this._capabilities,t);}async handleRegistrationRequest(e){if(this.isRunning())for(const t of e.registrations){const e=this._dynamicFeatures.get(t.method);if(void 0===e)return Promise.reject(new Error(`No feature implementation for ${t.method} found. Registration failed.`));const n=t.registerOptions??{};n.documentSelector=n.documentSelector??this._clientOptions.documentSelector;const r={id:t.id,registerOptions:n};try{e.register(r);}catch(e){return Promise.reject(e)}}else for(const t of e.registrations)this._ignoredRegistrations.add(t.id);}async handleUnregistrationRequest(e){for(let t of e.unregisterations){if(this._ignoredRegistrations.has(t.id))continue;const e=this._dynamicFeatures.get(t.method);if(!e)return Promise.reject(new Error(`No feature implementation for ${t.method} found. Unregistration failed.`));e.unregister(t.id);}}async handleApplyWorkspaceEdit(e){const t=e.edit,n=await this.workspaceEditLock.lock((()=>this._p2c.asWorkspaceEdit(t))),o=new Map;r.workspace.textDocuments.forEach((e=>o.set(e.uri.toString(),e)));let s=!1;if(t.documentChanges)for(const e of t.documentChanges)if(i.TextDocumentEdit.is(e)&&e.textDocument.version&&e.textDocument.version>=0){const t=o.get(e.textDocument.uri);if(t&&t.version!==e.textDocument.version){s=!0;break}}return s?Promise.resolve({applied:!1}):a.asPromise(r.workspace.applyEdit(n).then((e=>({applied:e}))))}handleFailedRequest(e,t,n,o,s=!0){if(n instanceof i.ResponseError){if(n.code===i.ErrorCodes.PendingResponseRejected||n.code===i.ErrorCodes.ConnectionInactive)return o;if(n.code===i.LSPErrorCodes.RequestCancelled||n.code===i.LSPErrorCodes.ServerCancelled){if(void 0!==t&&t.isCancellationRequested)return o;throw void 0!==n.data?new d.LSPCancellationError(n.data):new r.CancellationError}if(n.code===i.LSPErrorCodes.ContentModified){if(ee.RequestsToCancelOnContentModified.has(e.method))throw new r.CancellationError;return o}}throw this.error(`Request ${e.method} failed.`,n,s),n}}t.BaseLanguageClient=ee,ee.RequestsToCancelOnContentModified=new Set([i.SemanticTokensRequest.method,i.SemanticTokensRangeRequest.method,i.SemanticTokensDeltaRequest.method]);class te{error(e){(0, i.RAL)().console.error(e);}warn(e){(0, i.RAL)().console.warn(e);}info(e){(0, i.RAL)().console.info(e);}log(e){(0, i.RAL)().console.log(e);}}!function(e){e.createAll=function(e){return []};}(Z=t.ProposedFeatures||(t.ProposedFeatures={}));},9474:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.CodeActionFeature=void 0;const r=n(9496),i=n(152),o=n(1980),s=n(8909);class a extends s.TextDocumentLanguageFeature{constructor(e){super(e,i.CodeActionRequest.type);}fillClientCapabilities(e){const t=(0, s.ensure)((0, s.ensure)(e,\"textDocument\"),\"codeAction\");t.dynamicRegistration=!0,t.isPreferredSupport=!0,t.disabledSupport=!0,t.dataSupport=!0,t.resolveSupport={properties:[\"edit\"]},t.codeActionLiteralSupport={codeActionKind:{valueSet:[i.CodeActionKind.Empty,i.CodeActionKind.QuickFix,i.CodeActionKind.Refactor,i.CodeActionKind.RefactorExtract,i.CodeActionKind.RefactorInline,i.CodeActionKind.RefactorRewrite,i.CodeActionKind.Source,i.CodeActionKind.SourceOrganizeImports]}},t.honorsChangeAnnotations=!1;}initialize(e,t){const n=this.getRegistrationOptions(t,e.codeActionProvider);n&&this.register({id:o.generateUuid(),registerOptions:n});}registerLanguageProvider(e){const t=e.documentSelector,n={provideCodeActions:(e,t,n,r)=>{const o=this._client,s=async(e,t,n,r)=>{const s={textDocument:o.code2ProtocolConverter.asTextDocumentIdentifier(e),range:o.code2ProtocolConverter.asRange(t),context:await o.code2ProtocolConverter.asCodeActionContext(n,r)};return o.sendRequest(i.CodeActionRequest.type,s,r).then((e=>r.isCancellationRequested||null==e?null:o.protocol2CodeConverter.asCodeActionResult(e,r)),(e=>o.handleFailedRequest(i.CodeActionRequest.type,r,e,null)))},a=o.middleware;return a.provideCodeActions?a.provideCodeActions(e,t,n,r,s):s(e,t,n,r)},resolveCodeAction:e.resolveProvider?(e,t)=>{const n=this._client,r=this._client.middleware,o=async(e,t)=>n.sendRequest(i.CodeActionResolveRequest.type,await n.code2ProtocolConverter.asCodeAction(e,t),t).then((r=>t.isCancellationRequested?e:n.protocol2CodeConverter.asCodeAction(r,t)),(r=>n.handleFailedRequest(i.CodeActionResolveRequest.type,t,r,e)));return r.resolveCodeAction?r.resolveCodeAction(e,t,o):o(e,t)}:void 0};return [r.languages.registerCodeActionsProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n,e.codeActionKinds?{providedCodeActionKinds:this._client.protocol2CodeConverter.asCodeActionKinds(e.codeActionKinds)}:void 0),n]}}t.CodeActionFeature=a;},71:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createConverter=void 0;const r=n(9496),i=n(152),o=n(9763),s=n(4904),a=n(1807),c=n(583),u=n(8705),l=n(6434),d=n(5316),f=n(8714),p=n(1365),g=n(3912),h=n(1065);var m;!function(e){e.is=function(e){const t=e;return t&&!!t.inserting&&!!t.replacing};}(m||(m={})),t.createConverter=function(e){const t=e||(e=>e.toString());function n(e){return t(e)}function v(e){return {uri:t(e.uri)}}function y(e){return {uri:t(e.uri),languageId:e.languageId,version:e.version,text:e.getText()}}function C(e){switch(e){case r.TextDocumentSaveReason.Manual:return i.TextDocumentSaveReason.Manual;case r.TextDocumentSaveReason.AfterDelay:return i.TextDocumentSaveReason.AfterDelay;case r.TextDocumentSaveReason.FocusOut:return i.TextDocumentSaveReason.FocusOut}return i.TextDocumentSaveReason.Manual}function S(e){switch(e){case r.CompletionTriggerKind.TriggerCharacter:return i.CompletionTriggerKind.TriggerCharacter;case r.CompletionTriggerKind.TriggerForIncompleteCompletions:return i.CompletionTriggerKind.TriggerForIncompleteCompletions;default:return i.CompletionTriggerKind.Invoked}}function T(e){switch(e){case r.SignatureHelpTriggerKind.Invoke:return i.SignatureHelpTriggerKind.Invoked;case r.SignatureHelpTriggerKind.TriggerCharacter:return i.SignatureHelpTriggerKind.TriggerCharacter;case r.SignatureHelpTriggerKind.ContentChange:return i.SignatureHelpTriggerKind.ContentChange}}function b(e){return {label:e.label}}function _(e){return {label:e.label,parameters:(t=e.parameters,t.map(b))};var t;}function R(e){return {line:e.line,character:e.character}}function D(e){return null==e?e:{line:e.line>i.uinteger.MAX_VALUE?i.uinteger.MAX_VALUE:e.line,character:e.character>i.uinteger.MAX_VALUE?i.uinteger.MAX_VALUE:e.character}}function w(e){return null==e?e:{start:D(e.start),end:D(e.end)}}function E(e){return null==e?e:i.Location.create(n(e.uri),w(e.range))}function P(e){switch(e){case r.DiagnosticSeverity.Error:return i.DiagnosticSeverity.Error;case r.DiagnosticSeverity.Warning:return i.DiagnosticSeverity.Warning;case r.DiagnosticSeverity.Information:return i.DiagnosticSeverity.Information;case r.DiagnosticSeverity.Hint:return i.DiagnosticSeverity.Hint}}function k(e){switch(e){case r.DiagnosticTag.Unnecessary:return i.DiagnosticTag.Unnecessary;case r.DiagnosticTag.Deprecated:return i.DiagnosticTag.Deprecated;default:return}}function x(e){return {message:e.message,location:E(e.location)}}function N(e){const t=i.Diagnostic.create(w(e.range),e.message),r=e instanceof d.ProtocolDiagnostic?e:void 0;void 0!==r&&void 0!==r.data&&(t.data=r.data);const s=function(e){if(null!=e)return o.number(e)||o.string(e)?e:{value:e.value,target:n(e.target)}}(e.code);return d.DiagnosticCode.is(s)?void 0!==r&&r.hasDiagnosticCode?t.code=s:(t.code=s.value,t.codeDescription={href:s.target}):t.code=s,o.number(e.severity)&&(t.severity=P(e.severity)),Array.isArray(e.tags)&&(t.tags=function(e){if(!e)return;let t=[];for(let n of e){let e=k(n);void 0!==e&&t.push(e);}return t.length>0?t:void 0}(e.tags)),e.relatedInformation&&(t.relatedInformation=e.relatedInformation.map(x)),e.source&&(t.source=e.source),t}function O(e,t){return null==e?e:s.map(e,N,t)}function I(e){if(e===r.CompletionItemTag.Deprecated)return i.CompletionItemTag.Deprecated}function A(e){return {range:w(e.range),newText:e.newText}}function F(e){return null==e?e:e.map(A)}function L(e){return e<=r.SymbolKind.TypeParameter?e+1:i.SymbolKind.Property}function q(e){return e}function M(e){return e.map(q)}function j(e){let t=i.Command.create(e.title,e.command);return e.arguments&&(t.arguments=e.arguments),t}function U(e){const t=i.InlayHintLabelPart.create(e.value);return void 0!==e.location&&(t.location=E(e.location)),void 0!==e.command&&(t.command=j(e.command)),void 0!==e.tooltip&&(t.tooltip=H(e.tooltip)),t}function H(e){return \"string\"==typeof e?e:{kind:i.MarkupKind.Markdown,value:e.value}}return {asUri:n,asTextDocumentIdentifier:v,asTextDocumentItem:y,asVersionedTextDocumentIdentifier:function(e){return {uri:t(e.uri),version:e.version}},asOpenTextDocumentParams:function(e){return {textDocument:y(e)}},asChangeTextDocumentParams:function(e){if(function(e){let t=e;return !!t.uri&&!!t.version}(e))return {textDocument:{uri:t(e.uri),version:e.version},contentChanges:[{text:e.getText()}]};if(function(e){let t=e;return !!t.document&&!!t.contentChanges}(e)){let n=e.document;return {textDocument:{uri:t(n.uri),version:n.version},contentChanges:e.contentChanges.map((e=>{let t=e.range;return {range:{start:{line:t.start.line,character:t.start.character},end:{line:t.end.line,character:t.end.character}},rangeLength:e.rangeLength,text:e.text}}))}}throw Error(\"Unsupported text document change parameter\")},asCloseTextDocumentParams:function(e){return {textDocument:v(e)}},asSaveTextDocumentParams:function(e,t=!1){let n={textDocument:v(e)};return t&&(n.text=e.getText()),n},asWillSaveTextDocumentParams:function(e){return {textDocument:v(e.document),reason:C(e.reason)}},asDidCreateFilesParams:function(e){return {files:e.files.map((e=>({uri:t(e)})))}},asDidRenameFilesParams:function(e){return {files:e.files.map((e=>({oldUri:t(e.oldUri),newUri:t(e.newUri)})))}},asDidDeleteFilesParams:function(e){return {files:e.files.map((e=>({uri:t(e)})))}},asWillCreateFilesParams:function(e){return {files:e.files.map((e=>({uri:t(e)})))}},asWillRenameFilesParams:function(e){return {files:e.files.map((e=>({oldUri:t(e.oldUri),newUri:t(e.newUri)})))}},asWillDeleteFilesParams:function(e){return {files:e.files.map((e=>({uri:t(e)})))}},asTextDocumentPositionParams:function(e,t){return {textDocument:v(e),position:R(t)}},asCompletionParams:function(e,t,n){return {textDocument:v(e),position:R(t),context:{triggerKind:S(n.triggerKind),triggerCharacter:n.triggerCharacter}}},asSignatureHelpParams:function(e,t,n){return {textDocument:v(e),position:R(t),context:{isRetrigger:n.isRetrigger,triggerCharacter:n.triggerCharacter,triggerKind:T(n.triggerKind),activeSignatureHelp:(r=n.activeSignatureHelp,void 0===r?r:{signatures:(i=r.signatures,i.map(_)),activeSignature:r.activeSignature,activeParameter:r.activeParameter})}};var r,i;},asWorkerPosition:R,asRange:w,asPosition:D,asPositions:function(e,t){return s.map(e,D,t)},asLocation:E,asDiagnosticSeverity:P,asDiagnosticTag:k,asDiagnostic:N,asDiagnostics:O,asCompletionItem:function(e,t=!1){let n,s;o.string(e.label)?n=e.label:(n=e.label.label,!t||void 0===e.label.detail&&void 0===e.label.description||(s={detail:e.label.detail,description:e.label.description}));let c={label:n};void 0!==s&&(c.labelDetails=s);let u=e instanceof a.default?e:void 0;var l,d;e.detail&&(c.detail=e.detail),e.documentation&&(u&&\"$string\"!==u.documentationFormat?c.documentation=function(e,t){switch(e){case\"$string\":return t;case i.MarkupKind.PlainText:return {kind:e,value:t};case i.MarkupKind.Markdown:return {kind:e,value:t.value};default:return `Unsupported Markup content received. Kind is: ${e}`}}(u.documentationFormat,e.documentation):c.documentation=e.documentation),e.filterText&&(c.filterText=e.filterText),function(e,t){let n,o,s=i.InsertTextFormat.PlainText;t.textEdit?(n=t.textEdit.newText,o=t.textEdit.range):t.insertText instanceof r.SnippetString?(s=i.InsertTextFormat.Snippet,n=t.insertText.value):n=t.insertText,t.range&&(o=t.range),e.insertTextFormat=s,t.fromEdit&&void 0!==n&&void 0!==o?e.textEdit=function(e,t){return m.is(t)?i.InsertReplaceEdit.create(e,w(t.inserting),w(t.replacing)):{newText:e,range:w(t)}}(n,o):e.insertText=n;}(c,e),o.number(e.kind)&&(c.kind=(l=e.kind,void 0!==(d=u&&u.originalItemKind)?d:l+1)),e.sortText&&(c.sortText=e.sortText),e.additionalTextEdits&&(c.additionalTextEdits=F(e.additionalTextEdits)),e.commitCharacters&&(c.commitCharacters=e.commitCharacters.slice()),e.command&&(c.command=j(e.command)),!0!==e.preselect&&!1!==e.preselect||(c.preselect=e.preselect);const f=function(e){if(void 0===e)return e;const t=[];for(let n of e){const e=I(n);void 0!==e&&t.push(e);}return t}(e.tags);if(u){if(void 0!==u.data&&(c.data=u.data),!0===u.deprecated||!1===u.deprecated){if(!0===u.deprecated&&void 0!==f&&f.length>0){const e=f.indexOf(r.CompletionItemTag.Deprecated);-1!==e&&f.splice(e,1);}c.deprecated=u.deprecated;}void 0!==u.insertTextMode&&(c.insertTextMode=u.insertTextMode);}return void 0!==f&&f.length>0&&(c.tags=f),void 0===c.insertTextMode&&!0===e.keepWhitespace&&(c.insertTextMode=i.InsertTextMode.adjustIndentation),c},asTextEdit:A,asSymbolKind:L,asSymbolTag:q,asSymbolTags:M,asReferenceParams:function(e,t,n){return {textDocument:v(e),position:R(t),context:{includeDeclaration:n.includeDeclaration}}},asCodeAction:async function(e,t){let n=i.CodeAction.create(e.title);if(e instanceof l.default&&void 0!==e.data&&(n.data=e.data),void 0!==e.kind&&(n.kind=function(e){if(null!=e)return e.value}(e.kind)),void 0!==e.diagnostics&&(n.diagnostics=await O(e.diagnostics,t)),void 0!==e.edit)throw new Error(\"VS Code code actions can only be converted to a protocol code action without an edit.\");return void 0!==e.command&&(n.command=j(e.command)),void 0!==e.isPreferred&&(n.isPreferred=e.isPreferred),void 0!==e.disabled&&(n.disabled={reason:e.disabled.reason}),n},asCodeActionContext:async function(e,t){if(null==e)return e;let n;return e.only&&o.string(e.only.value)&&(n=[e.only.value]),i.CodeActionContext.create(await O(e.diagnostics,t),n,function(e){switch(e){case r.CodeActionTriggerKind.Invoke:return i.CodeActionTriggerKind.Invoked;case r.CodeActionTriggerKind.Automatic:return i.CodeActionTriggerKind.Automatic;default:return}}(e.triggerKind))},asInlineValueContext:function(e){return null==e?e:i.InlineValueContext.create(e.frameId,w(e.stoppedLocation))},asCommand:j,asCodeLens:function(e){let t=i.CodeLens.create(w(e.range));return e.command&&(t.command=j(e.command)),e instanceof c.default&&e.data&&(t.data=e.data),t},asFormattingOptions:function(e,t){const n={tabSize:e.tabSize,insertSpaces:e.insertSpaces};return t.trimTrailingWhitespace&&(n.trimTrailingWhitespace=!0),t.trimFinalNewlines&&(n.trimFinalNewlines=!0),t.insertFinalNewline&&(n.insertFinalNewline=!0),n},asDocumentSymbolParams:function(e){return {textDocument:v(e)}},asCodeLensParams:function(e){return {textDocument:v(e)}},asDocumentLink:function(e){let t=i.DocumentLink.create(w(e.range));e.target&&(t.target=n(e.target)),void 0!==e.tooltip&&(t.tooltip=e.tooltip);let r=e instanceof u.default?e:void 0;return r&&r.data&&(t.data=r.data),t},asDocumentLinkParams:function(e){return {textDocument:v(e)}},asCallHierarchyItem:function(e){const t={name:e.name,kind:L(e.kind),uri:n(e.uri),range:w(e.range),selectionRange:w(e.selectionRange)};return void 0!==e.detail&&e.detail.length>0&&(t.detail=e.detail),void 0!==e.tags&&(t.tags=M(e.tags)),e instanceof f.default&&void 0!==e.data&&(t.data=e.data),t},asTypeHierarchyItem:function(e){const t={name:e.name,kind:L(e.kind),uri:n(e.uri),range:w(e.range),selectionRange:w(e.selectionRange)};return void 0!==e.detail&&e.detail.length>0&&(t.detail=e.detail),void 0!==e.tags&&(t.tags=M(e.tags)),e instanceof p.default&&void 0!==e.data&&(t.data=e.data),t},asInlayHint:function(e){const t=\"string\"==typeof e.label?e.label:e.label.map(U),n=i.InlayHint.create(D(e.position),t);return void 0!==e.kind&&(n.kind=e.kind),void 0!==e.textEdits&&(n.textEdits=F(e.textEdits)),void 0!==e.tooltip&&(n.tooltip=H(e.tooltip)),void 0!==e.paddingLeft&&(n.paddingLeft=e.paddingLeft),void 0!==e.paddingRight&&(n.paddingRight=e.paddingRight),e instanceof h.default&&void 0!==e.data&&(n.data=e.data),n},asWorkspaceSymbol:function(e){const n=e instanceof g.default?{name:e.name,kind:L(e.kind),location:e.hasRange?E(e.location):{uri:t(e.location.uri)},data:e.data}:{name:e.name,kind:L(e.kind),location:E(e.location)};return void 0!==e.tags&&(n.tags=M(e.tags)),\"\"!==e.containerName&&(n.containerName=e.containerName),n}}};},7711:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.CodeLensFeature=void 0;const r=n(9496),i=n(152),o=n(1980),s=n(8909);class a extends s.TextDocumentLanguageFeature{constructor(e){super(e,i.CodeLensRequest.type);}fillClientCapabilities(e){(0, s.ensure)((0, s.ensure)(e,\"textDocument\"),\"codeLens\").dynamicRegistration=!0,(0, s.ensure)((0, s.ensure)(e,\"workspace\"),\"codeLens\").refreshSupport=!0;}initialize(e,t){this._client.onRequest(i.CodeLensRefreshRequest.type,(async()=>{for(const e of this.getAllProviders())e.onDidChangeCodeLensEmitter.fire();}));const n=this.getRegistrationOptions(t,e.codeLensProvider);n&&this.register({id:o.generateUuid(),registerOptions:n});}registerLanguageProvider(e){const t=e.documentSelector,n=new r.EventEmitter,o={onDidChangeCodeLenses:n.event,provideCodeLenses:(e,t)=>{const n=this._client,r=(e,t)=>n.sendRequest(i.CodeLensRequest.type,n.code2ProtocolConverter.asCodeLensParams(e),t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asCodeLenses(e,t)),(e=>n.handleFailedRequest(i.CodeLensRequest.type,t,e,null))),o=n.middleware;return o.provideCodeLenses?o.provideCodeLenses(e,t,r):r(e,t)},resolveCodeLens:e.resolveProvider?(e,t)=>{const n=this._client,r=(e,t)=>n.sendRequest(i.CodeLensResolveRequest.type,n.code2ProtocolConverter.asCodeLens(e),t).then((r=>t.isCancellationRequested?e:n.protocol2CodeConverter.asCodeLens(r)),(r=>n.handleFailedRequest(i.CodeLensResolveRequest.type,t,r,e))),o=n.middleware;return o.resolveCodeLens?o.resolveCodeLens(e,t,r):r(e,t)}:void 0};return [r.languages.registerCodeLensProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),o),{provider:o,onDidChangeCodeLensEmitter:n}]}}t.CodeLensFeature=a;},8880:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.ColorProviderFeature=void 0;const r=n(9496),i=n(152),o=n(8909);class s extends o.TextDocumentLanguageFeature{constructor(e){super(e,i.DocumentColorRequest.type);}fillClientCapabilities(e){(0, o.ensure)((0, o.ensure)(e,\"textDocument\"),\"colorProvider\").dynamicRegistration=!0;}initialize(e,t){let[n,r]=this.getRegistration(t,e.colorProvider);n&&r&&this.register({id:n,registerOptions:r});}registerLanguageProvider(e){const t=e.documentSelector,n={provideColorPresentations:(e,t,n)=>{const r=this._client,o=(e,t,n)=>{const o={color:e,textDocument:r.code2ProtocolConverter.asTextDocumentIdentifier(t.document),range:r.code2ProtocolConverter.asRange(t.range)};return r.sendRequest(i.ColorPresentationRequest.type,o,n).then((e=>n.isCancellationRequested?null:this._client.protocol2CodeConverter.asColorPresentations(e,n)),(e=>r.handleFailedRequest(i.ColorPresentationRequest.type,n,e,null)))},s=r.middleware;return s.provideColorPresentations?s.provideColorPresentations(e,t,n,o):o(e,t,n)},provideDocumentColors:(e,t)=>{const n=this._client,r=(e,t)=>{const r={textDocument:n.code2ProtocolConverter.asTextDocumentIdentifier(e)};return n.sendRequest(i.DocumentColorRequest.type,r,t).then((e=>t.isCancellationRequested?null:this._client.protocol2CodeConverter.asColorInformations(e,t)),(e=>n.handleFailedRequest(i.DocumentColorRequest.type,t,e,null)))},o=n.middleware;return o.provideDocumentColors?o.provideDocumentColors(e,t,r):r(e,t)}};return [r.languages.registerColorProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n),n]}}t.ColorProviderFeature=s;},1435:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.CompletionItemFeature=void 0;const r=n(9496),i=n(152),o=n(8909),s=n(1980),a=[i.CompletionItemKind.Text,i.CompletionItemKind.Method,i.CompletionItemKind.Function,i.CompletionItemKind.Constructor,i.CompletionItemKind.Field,i.CompletionItemKind.Variable,i.CompletionItemKind.Class,i.CompletionItemKind.Interface,i.CompletionItemKind.Module,i.CompletionItemKind.Property,i.CompletionItemKind.Unit,i.CompletionItemKind.Value,i.CompletionItemKind.Enum,i.CompletionItemKind.Keyword,i.CompletionItemKind.Snippet,i.CompletionItemKind.Color,i.CompletionItemKind.File,i.CompletionItemKind.Reference,i.CompletionItemKind.Folder,i.CompletionItemKind.EnumMember,i.CompletionItemKind.Constant,i.CompletionItemKind.Struct,i.CompletionItemKind.Event,i.CompletionItemKind.Operator,i.CompletionItemKind.TypeParameter];class c extends o.TextDocumentLanguageFeature{constructor(e){super(e,i.CompletionRequest.type),this.labelDetailsSupport=new Map;}fillClientCapabilities(e){let t=(0, o.ensure)((0, o.ensure)(e,\"textDocument\"),\"completion\");t.dynamicRegistration=!0,t.contextSupport=!0,t.completionItem={snippetSupport:!0,commitCharactersSupport:!0,documentationFormat:[i.MarkupKind.Markdown,i.MarkupKind.PlainText],deprecatedSupport:!0,preselectSupport:!0,tagSupport:{valueSet:[i.CompletionItemTag.Deprecated]},insertReplaceSupport:!0,resolveSupport:{properties:[\"documentation\",\"detail\",\"additionalTextEdits\"]},insertTextModeSupport:{valueSet:[i.InsertTextMode.asIs,i.InsertTextMode.adjustIndentation]},labelDetailsSupport:!0},t.insertTextMode=i.InsertTextMode.adjustIndentation,t.completionItemKind={valueSet:a},t.completionList={itemDefaults:[\"commitCharacters\",\"editRange\",\"insertTextFormat\",\"insertTextMode\"]};}initialize(e,t){const n=this.getRegistrationOptions(t,e.completionProvider);n&&this.register({id:s.generateUuid(),registerOptions:n});}registerLanguageProvider(e,t){this.labelDetailsSupport.set(t,!!e.completionItem?.labelDetailsSupport);const n=e.triggerCharacters??[],o=e.allCommitCharacters,s=e.documentSelector,a={provideCompletionItems:(e,t,n,r)=>{const s=this._client,a=this._client.middleware,c=(e,t,n,r)=>s.sendRequest(i.CompletionRequest.type,s.code2ProtocolConverter.asCompletionParams(e,t,n),r).then((e=>r.isCancellationRequested?null:s.protocol2CodeConverter.asCompletionResult(e,o,r)),(e=>s.handleFailedRequest(i.CompletionRequest.type,r,e,null)));return a.provideCompletionItem?a.provideCompletionItem(e,t,r,n,c):c(e,t,r,n)},resolveCompletionItem:e.resolveProvider?(e,n)=>{const r=this._client,o=this._client.middleware,s=(e,n)=>r.sendRequest(i.CompletionResolveRequest.type,r.code2ProtocolConverter.asCompletionItem(e,!!this.labelDetailsSupport.get(t)),n).then((e=>n.isCancellationRequested?null:r.protocol2CodeConverter.asCompletionItem(e)),(t=>r.handleFailedRequest(i.CompletionResolveRequest.type,n,t,e)));return o.resolveCompletionItem?o.resolveCompletionItem(e,n,s):s(e,n)}:void 0};return [r.languages.registerCompletionItemProvider(this._client.protocol2CodeConverter.asDocumentSelector(s),a,...n),a]}}t.CompletionItemFeature=c;},6495:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.SyncConfigurationFeature=t.toJSONObject=t.ConfigurationFeature=void 0;const r=n(9496),i=n(152),o=n(9763),s=n(1980),a=n(8909);function c(e){if(e){if(Array.isArray(e))return e.map(c);if(\"object\"==typeof e){const t=Object.create(null);for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=c(e[n]));return t}}return e}t.ConfigurationFeature=class{constructor(e){this._client=e;}getState(){return {kind:\"static\"}}fillClientCapabilities(e){e.workspace=e.workspace||{},e.workspace.configuration=!0;}initialize(){let e=this._client;e.onRequest(i.ConfigurationRequest.type,((t,n)=>{let r=e=>{let t=[];for(let n of e.items){let e=void 0!==n.scopeUri&&null!==n.scopeUri?this._client.protocol2CodeConverter.asUri(n.scopeUri):void 0;t.push(this.getConfiguration(e,null!==n.section?n.section:void 0));}return t},i=e.middleware.workspace;return i&&i.configuration?i.configuration(t,n,r):r(t)}));}getConfiguration(e,t){let n=null;if(t){let i=t.lastIndexOf(\".\");if(-1===i)n=c(r.workspace.getConfiguration(void 0,e).get(t));else {let o=r.workspace.getConfiguration(t.substr(0,i),e);o&&(n=c(o.get(t.substr(i+1))));}}else {let t=r.workspace.getConfiguration(void 0,e);n={};for(let e of Object.keys(t))t.has(e)&&(n[e]=c(t.get(e)));}return void 0===n&&(n=null),n}dispose(){}},t.toJSONObject=c,t.SyncConfigurationFeature=class{constructor(e){this._client=e,this._listeners=new Map;}getState(){return {kind:\"workspace\",id:this.registrationType.method,registrations:this._listeners.size>0}}get registrationType(){return i.DidChangeConfigurationNotification.type}fillClientCapabilities(e){(0, a.ensure)((0, a.ensure)(e,\"workspace\"),\"didChangeConfiguration\").dynamicRegistration=!0;}initialize(){let e=this._client.clientOptions.synchronize?.configurationSection;void 0!==e&&this.register({id:s.generateUuid(),registerOptions:{section:e}});}register(e){let t=r.workspace.onDidChangeConfiguration((t=>{this.onDidChangeConfiguration(e.registerOptions.section,t);}));this._listeners.set(e.id,t),void 0!==e.registerOptions.section&&this.onDidChangeConfiguration(e.registerOptions.section,void 0);}unregister(e){let t=this._listeners.get(e);t&&(this._listeners.delete(e),t.dispose());}dispose(){for(const e of this._listeners.values())e.dispose();this._listeners.clear();}onDidChangeConfiguration(e,t){let n;if(n=o.string(e)?[e]:e,void 0!==n&&void 0!==t&&!n.some((e=>t.affectsConfiguration(e))))return;const r=async e=>void 0===e?this._client.sendNotification(i.DidChangeConfigurationNotification.type,{settings:null}):this._client.sendNotification(i.DidChangeConfigurationNotification.type,{settings:this.extractSettingsInformation(e)});let s=this._client.middleware.workspace?.didChangeConfiguration;(s?s(n,r):r(n)).catch((e=>{this._client.error(`Sending notification ${i.DidChangeConfigurationNotification.type.method} failed`,e);}));}extractSettingsInformation(e){function t(e,t){let n=e;for(let e=0;e<t.length-1;e++){let r=n[t[e]];r||(r=Object.create(null),n[t[e]]=r),n=r;}return n}let n=this._client.clientOptions.workspaceFolder?this._client.clientOptions.workspaceFolder.uri:void 0,i=Object.create(null);for(let o=0;o<e.length;o++){let s=e[o],a=s.indexOf(\".\"),u=null;if(u=a>=0?r.workspace.getConfiguration(s.substr(0,a),n).get(s.substr(a+1)):r.workspace.getConfiguration(void 0,n).get(s),u){let n=e[o].split(\".\");t(i,n)[n[n.length-1]]=c(u);}}return i}};},707:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.DeclarationFeature=void 0;const r=n(9496),i=n(152),o=n(8909);class s extends o.TextDocumentLanguageFeature{constructor(e){super(e,i.DeclarationRequest.type);}fillClientCapabilities(e){const t=(0, o.ensure)((0, o.ensure)(e,\"textDocument\"),\"declaration\");t.dynamicRegistration=!0,t.linkSupport=!0;}initialize(e,t){const[n,r]=this.getRegistration(t,e.declarationProvider);n&&r&&this.register({id:n,registerOptions:r});}registerLanguageProvider(e){const t=e.documentSelector,n={provideDeclaration:(e,t,n)=>{const r=this._client,o=(e,t,n)=>r.sendRequest(i.DeclarationRequest.type,r.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then((e=>n.isCancellationRequested?null:r.protocol2CodeConverter.asDeclarationResult(e,n)),(e=>r.handleFailedRequest(i.DeclarationRequest.type,n,e,null))),s=r.middleware;return s.provideDeclaration?s.provideDeclaration(e,t,n,o):o(e,t,n)}};return [this.registerProvider(t,n),n]}registerProvider(e,t){return r.languages.registerDeclarationProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.DeclarationFeature=s;},122:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.DefinitionFeature=void 0;const r=n(9496),i=n(152),o=n(8909),s=n(1980);class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,i.DefinitionRequest.type);}fillClientCapabilities(e){let t=(0, o.ensure)((0, o.ensure)(e,\"textDocument\"),\"definition\");t.dynamicRegistration=!0,t.linkSupport=!0;}initialize(e,t){const n=this.getRegistrationOptions(t,e.definitionProvider);n&&this.register({id:s.generateUuid(),registerOptions:n});}registerLanguageProvider(e){const t=e.documentSelector,n={provideDefinition:(e,t,n)=>{const r=this._client,o=(e,t,n)=>r.sendRequest(i.DefinitionRequest.type,r.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then((e=>n.isCancellationRequested?null:r.protocol2CodeConverter.asDefinitionResult(e,n)),(e=>r.handleFailedRequest(i.DefinitionRequest.type,n,e,null))),s=r.middleware;return s.provideDefinition?s.provideDefinition(e,t,n,o):o(e,t,n)}};return [this.registerProvider(t,n),n]}registerProvider(e,t){return r.languages.registerDefinitionProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.DefinitionFeature=a;},2570:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.DiagnosticFeature=t.DiagnosticPullMode=t.vsdiag=void 0;const r=n(3415),i=n(9496),o=n(152),s=n(1980),a=n(8909);function c(e,t){return void 0===e[t]&&(e[t]={}),e[t]}var u,l,d,f;!function(e){!function(e){e.full=\"full\",e.unChanged=\"unChanged\";}(e.DocumentDiagnosticReportKind||(e.DocumentDiagnosticReportKind={}));}(u=t.vsdiag||(t.vsdiag={})),function(e){e.onType=\"onType\",e.onSave=\"onSave\";}(l=t.DiagnosticPullMode||(t.DiagnosticPullMode={})),function(e){e.active=\"open\",e.reschedule=\"reschedule\",e.outDated=\"drop\";}(d||(d={}));class p{constructor(){this.open=new Set;const e=()=>{this.open.clear();for(const e of i.window.tabGroups.all)for(const t of e.tabs){const e=t.input;e instanceof i.TabInputText?this.open.add(e.uri.toString()):e instanceof i.TabInputTextDiff&&this.open.add(e.modified.toString());}};e(),void 0!==i.window.tabGroups.onDidChangeTabs?this.disposable=i.window.tabGroups.onDidChangeTabs(e):this.disposable={dispose:()=>{}};}dispose(){this.disposable.dispose();}isActive(e){return e instanceof i.Uri?i.window.activeTextEditor?.document.uri===e:i.window.activeTextEditor?.document===e}isVisible(e){const t=e instanceof i.Uri?e:e.uri;return this.open.has(t.toString())}getTabResources(){const e=[];for(const t of i.window.tabGroups.all)for(const n of t.tabs){const t=n.input;t instanceof i.TabInputText?e.push(t.uri):t instanceof i.TabInputTextDiff&&e.push(t.modified);}return e}}!function(e){e[e.document=1]=\"document\",e[e.workspace=2]=\"workspace\";}(f||(f={}));class g{constructor(){this.documentPullStates=new Map,this.workspacePullStates=new Map;}track(e,t,n){const r=e===f.document?this.documentPullStates:this.workspacePullStates,[o,s,a]=t instanceof i.Uri?[t.toString(),t,n]:[t.uri.toString(),t.uri,t.version];let c=r.get(o);return void 0===c&&(c={document:s,pulledVersion:a,resultId:void 0},r.set(o,c)),c}update(e,t,n,r){const o=e===f.document?this.documentPullStates:this.workspacePullStates,[s,a,c,u]=t instanceof i.Uri?[t.toString(),t,n,r]:[t.uri.toString(),t.uri,t.version,n];let l=o.get(s);void 0===l?(l={document:a,pulledVersion:c,resultId:u},o.set(s,l)):(l.pulledVersion=c,l.resultId=u);}unTrack(e,t){const n=t instanceof i.Uri?t.toString():t.uri.toString();(e===f.document?this.documentPullStates:this.workspacePullStates).delete(n);}tracks(e,t){const n=t instanceof i.Uri?t.toString():t.uri.toString();return (e===f.document?this.documentPullStates:this.workspacePullStates).has(n)}getResultId(e,t){const n=t instanceof i.Uri?t.toString():t.uri.toString();return (e===f.document?this.documentPullStates:this.workspacePullStates).get(n)?.resultId}getAllResultIds(){const e=[];for(let[t,n]of this.workspacePullStates)this.documentPullStates.has(t)&&(n=this.documentPullStates.get(t)),void 0!==n.resultId&&e.push({uri:t,value:n.resultId});return e}}class h{constructor(e,t,n){this.client=e,this.tabs=t,this.options=n,this.isDisposed=!1,this.onDidChangeDiagnosticsEmitter=new i.EventEmitter,this.provider=this.createProvider(),this.diagnostics=i.languages.createDiagnosticCollection(n.identifier),this.openRequests=new Map,this.documentStates=new g,this.workspaceErrorCounter=0;}knows(e,t){return this.documentStates.tracks(e,t)}pull(e,t){if(this.isDisposed)return;const n=e instanceof i.Uri?e:e.uri;this.pullAsync(e).then((()=>{t&&t();}),(e=>{this.client.error(`Document pull failed for text document ${n.toString()}`,e,!1);}));}async pullAsync(e,t){if(this.isDisposed)return;const n=e instanceof i.Uri,r=n?e:e.uri,s=r.toString();t=n?t:e.version;const c=this.openRequests.get(s),l=n?this.documentStates.track(f.document,e,t):this.documentStates.track(f.document,e);if(void 0===c){const n=new i.CancellationTokenSource;let c,p;this.openRequests.set(s,{state:d.active,document:e,version:t,tokenSource:n});try{c=await this.provider.provideDiagnostics(e,l.resultId,n.token)??{kind:u.DocumentDiagnosticReportKind.full,items:[]};}catch(t){if(t instanceof a.LSPCancellationError&&o.DiagnosticServerCancellationData.is(t.data)&&!1===t.data.retriggerRequest&&(p={state:d.outDated,document:e}),!(void 0===p&&t instanceof i.CancellationError))throw t;p={state:d.reschedule,document:e};}if(p=p??this.openRequests.get(s),void 0===p)return this.client.error(`Lost request state in diagnostic pull model. Clearing diagnostics for ${s}`),void this.diagnostics.delete(r);if(this.openRequests.delete(s),!this.tabs.isVisible(e))return void this.documentStates.unTrack(f.document,e);if(p.state===d.outDated)return;void 0!==c&&(c.kind===u.DocumentDiagnosticReportKind.full&&this.diagnostics.set(r,c.items),l.pulledVersion=t,l.resultId=c.resultId),p.state===d.reschedule&&this.pull(e);}else c.state===d.active?(c.tokenSource.cancel(),this.openRequests.set(s,{state:d.reschedule,document:c.document})):c.state===d.outDated&&this.openRequests.set(s,{state:d.reschedule,document:c.document});}cleanupPull(e){const t=e instanceof i.Uri?e:e.uri,n=t.toString(),r=this.openRequests.get(n);this.options.workspaceDiagnostics||this.options.interFileDependencies?void 0!==r?this.openRequests.set(n,{state:d.reschedule,document:e}):this.pull(e):(void 0!==r&&(r.state===d.active&&r.tokenSource.cancel(),this.openRequests.set(n,{state:d.outDated,document:e})),this.diagnostics.delete(t));}pullWorkspace(){this.isDisposed||this.pullWorkspaceAsync().then((()=>{this.workspaceTimeout=(0, o.RAL)().timer.setTimeout((()=>{this.pullWorkspace();}),2e3);}),(e=>{e instanceof a.LSPCancellationError||o.DiagnosticServerCancellationData.is(e.data)||(this.client.error(\"Workspace diagnostic pull failed.\",e,!1),this.workspaceErrorCounter++),this.workspaceErrorCounter<=5&&(this.workspaceTimeout=(0, o.RAL)().timer.setTimeout((()=>{this.pullWorkspace();}),2e3));}));}async pullWorkspaceAsync(){if(!this.provider.provideWorkspaceDiagnostics||this.isDisposed)return;void 0!==this.workspaceCancellation&&(this.workspaceCancellation.cancel(),this.workspaceCancellation=void 0),this.workspaceCancellation=new i.CancellationTokenSource;const e=this.documentStates.getAllResultIds().map((e=>({uri:this.client.protocol2CodeConverter.asUri(e.uri),value:e.value})));await this.provider.provideWorkspaceDiagnostics(e,this.workspaceCancellation.token,(e=>{if(e&&!this.isDisposed)for(const t of e.items)t.kind===u.DocumentDiagnosticReportKind.full&&(this.documentStates.tracks(f.document,t.uri)||this.diagnostics.set(t.uri,t.items)),this.documentStates.update(f.workspace,t.uri,t.version??void 0,t.resultId);}));}createProvider(){const e={onDidChangeDiagnostics:this.onDidChangeDiagnosticsEmitter.event,provideDiagnostics:(e,t,n)=>{const r=(e,t,n)=>{const r={identifier:this.options.identifier,textDocument:{uri:this.client.code2ProtocolConverter.asUri(e instanceof i.Uri?e:e.uri)},previousResultId:t};return !0!==this.isDisposed&&this.client.isRunning()?this.client.sendRequest(o.DocumentDiagnosticRequest.type,r,n).then((async e=>null==e||this.isDisposed||n.isCancellationRequested?{kind:u.DocumentDiagnosticReportKind.full,items:[]}:e.kind===o.DocumentDiagnosticReportKind.Full?{kind:u.DocumentDiagnosticReportKind.full,resultId:e.resultId,items:await this.client.protocol2CodeConverter.asDiagnostics(e.items,n)}:{kind:u.DocumentDiagnosticReportKind.unChanged,resultId:e.resultId}),(e=>this.client.handleFailedRequest(o.DocumentDiagnosticRequest.type,n,e,{kind:u.DocumentDiagnosticReportKind.full,items:[]}))):{kind:u.DocumentDiagnosticReportKind.full,items:[]}},s=this.client.middleware;return s.provideDiagnostics?s.provideDiagnostics(e,t,n,r):r(e,t,n)}};return this.options.workspaceDiagnostics&&(e.provideWorkspaceDiagnostics=(e,t,n)=>{const r=async e=>e.kind===o.DocumentDiagnosticReportKind.Full?{kind:u.DocumentDiagnosticReportKind.full,uri:this.client.protocol2CodeConverter.asUri(e.uri),resultId:e.resultId,version:e.version,items:await this.client.protocol2CodeConverter.asDiagnostics(e.items,t)}:{kind:u.DocumentDiagnosticReportKind.unChanged,uri:this.client.protocol2CodeConverter.asUri(e.uri),resultId:e.resultId,version:e.version},i=e=>{const t=[];for(const n of e)t.push({uri:this.client.code2ProtocolConverter.asUri(n.uri),value:n.value});return t},a=(e,t)=>{const a=(0, s.generateUuid)(),c=this.client.onProgress(o.WorkspaceDiagnosticRequest.partialResult,a,(async e=>{if(null==e)return void n(null);const t={items:[]};for(const n of e.items)try{t.items.push(await r(n));}catch(e){this.client.error(\"Converting workspace diagnostics failed.\",e);}n(t);})),u={identifier:this.options.identifier,previousResultIds:i(e),partialResultToken:a};return !0!==this.isDisposed&&this.client.isRunning()?this.client.sendRequest(o.WorkspaceDiagnosticRequest.type,u,t).then((async e=>{if(t.isCancellationRequested)return {items:[]};const i={items:[]};for(const t of e.items)i.items.push(await r(t));return c.dispose(),n(i),{items:[]}}),(e=>(c.dispose(),this.client.handleFailedRequest(o.DocumentDiagnosticRequest.type,t,e,{items:[]})))):{items:[]}},c=this.client.middleware;return c.provideWorkspaceDiagnostics?c.provideWorkspaceDiagnostics(e,t,n,a):a(e,t)}),e}dispose(){this.isDisposed=!0,this.workspaceCancellation?.cancel(),this.workspaceTimeout?.dispose();for(const[e,t]of this.openRequests)t.state===d.active&&t.tokenSource.cancel(),this.openRequests.set(e,{state:d.outDated,document:t.document});this.diagnostics.dispose();}}class m{constructor(e){this.diagnosticRequestor=e,this.documents=new o.LinkedMap,this.isDisposed=!1;}add(e){if(!0===this.isDisposed)return;const t=e instanceof i.Uri?e.toString():e.uri.toString();this.documents.has(t)||(this.documents.set(t,e,o.Touch.Last),this.trigger());}remove(e){const t=e instanceof i.Uri?e.toString():e.uri.toString();this.documents.has(t)&&(this.documents.delete(t),this.diagnosticRequestor.pull(e)),0===this.documents.size?this.stop():e===this.endDocument&&(this.endDocument=this.documents.last);}trigger(){!0!==this.isDisposed&&(void 0===this.intervalHandle?(this.endDocument=this.documents.last,this.intervalHandle=(0, o.RAL)().timer.setInterval((()=>{const e=this.documents.first;if(void 0!==e){const t=e instanceof i.Uri?e.toString():e.uri.toString();this.diagnosticRequestor.pull(e),this.documents.set(t,e,o.Touch.Last),e===this.endDocument&&this.stop();}}),200)):this.endDocument=this.documents.last);}dispose(){this.isDisposed=!0,this.stop(),this.documents.clear();}stop(){this.intervalHandle?.dispose(),this.intervalHandle=void 0,this.endDocument=void 0;}}class v{constructor(e,t,n){const s=e.clientOptions.diagnosticPullOptions??{onChange:!0,onSave:!1},a=e.protocol2CodeConverter.asDocumentSelector(n.documentSelector),c=[],u=e=>e instanceof i.Uri?(e=>{const t=n.documentSelector;if(void 0!==s.match)return s.match(t,e);for(const n of t)if(o.TextDocumentFilter.is(n)){if(\"string\"==typeof n)return !1;if(void 0!==n.language&&\"*\"!==n.language)return !1;if(void 0!==n.scheme&&\"*\"!==n.scheme&&n.scheme!==e.scheme)return !1;if(void 0!==n.pattern){const t=new r.Minimatch(n.pattern,{noext:!0});if(!t.makeRe())return !1;if(!t.match(e.fsPath))return !1}}return !0})(e):i.languages.match(a,e)>0&&t.isVisible(e),d=e=>e instanceof i.Uri?this.activeTextDocument?.uri.toString()===e.toString():this.activeTextDocument===e;this.diagnosticRequestor=new h(e,t,n),this.backgroundScheduler=new m(this.diagnosticRequestor);const p=e=>{u(e)&&n.interFileDependencies&&!d(e)&&this.backgroundScheduler.add(e);};this.activeTextDocument=i.window.activeTextEditor?.document,i.window.onDidChangeActiveTextEditor((e=>{const t=this.activeTextDocument;this.activeTextDocument=e?.document,void 0!==t&&p(t),void 0!==this.activeTextDocument&&this.backgroundScheduler.remove(this.activeTextDocument);}));const g=e.getFeature(o.DidOpenTextDocumentNotification.method);c.push(g.onNotificationSent((e=>{const t=e.original;u(t)&&this.diagnosticRequestor.pull(t,(()=>{p(t);}));})));const v=new Set;for(const e of i.workspace.textDocuments)u(e)&&(this.diagnosticRequestor.pull(e,(()=>{p(e);})),v.add(e.uri.toString()));if(!0===s.onTabs)for(const e of t.getTabResources())!v.has(e.toString())&&u(e)&&this.diagnosticRequestor.pull(e,(()=>{p(e);}));if(!0===s.onChange){const t=e.getFeature(o.DidChangeTextDocumentNotification.method);c.push(t.onNotificationSent((async e=>{const t=e.original.document;(void 0===s.filter||!s.filter(t,l.onType))&&this.diagnosticRequestor.knows(f.document,t)&&e.original.contentChanges.length>0&&this.diagnosticRequestor.pull(t,(()=>{this.backgroundScheduler.trigger();}));})));}if(!0===s.onSave){const t=e.getFeature(o.DidSaveTextDocumentNotification.method);c.push(t.onNotificationSent((e=>{const t=e.original;void 0!==s.filter&&s.filter(t,l.onSave)||!this.diagnosticRequestor.knows(f.document,t)||this.diagnosticRequestor.pull(e.original,(()=>{this.backgroundScheduler.trigger();}));})));}const y=e.getFeature(o.DidCloseTextDocumentNotification.method);c.push(y.onNotificationSent((e=>{const t=e.original;this.diagnosticRequestor.cleanupPull(t),this.backgroundScheduler.remove(t);}))),this.diagnosticRequestor.onDidChangeDiagnosticsEmitter.event((()=>{for(const e of i.workspace.textDocuments)u(e)&&this.diagnosticRequestor.pull(e);})),!0===n.workspaceDiagnostics&&\"da348dc5-c30a-4515-9d98-31ff3be38d14\"!==n.identifier&&this.diagnosticRequestor.pullWorkspace(),this.disposable=i.Disposable.from(...c,this.backgroundScheduler,this.diagnosticRequestor);}get onDidChangeDiagnosticsEmitter(){return this.diagnosticRequestor.onDidChangeDiagnosticsEmitter}get diagnostics(){return this.diagnosticRequestor.provider}}class y extends a.TextDocumentLanguageFeature{constructor(e){super(e,o.DocumentDiagnosticRequest.type);}fillClientCapabilities(e){let t=c(c(e,\"textDocument\"),\"diagnostic\");t.dynamicRegistration=!0,t.relatedDocumentSupport=!1,c(c(e,\"workspace\"),\"diagnostics\").refreshSupport=!0;}initialize(e,t){this._client.onRequest(o.DiagnosticRefreshRequest.type,(async()=>{for(const e of this.getAllProviders())e.onDidChangeDiagnosticsEmitter.fire();}));let[n,r]=this.getRegistration(t,e.diagnosticProvider);n&&r&&this.register({id:n,registerOptions:r});}dispose(){void 0!==this.tabs&&(this.tabs.dispose(),this.tabs=void 0),super.dispose();}registerLanguageProvider(e){void 0===this.tabs&&(this.tabs=new p);const t=new v(this._client,this.tabs,e);return [t.disposable,t]}}t.DiagnosticFeature=y;},9959:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.DocumentHighlightFeature=void 0;const r=n(9496),i=n(152),o=n(8909),s=n(1980);class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,i.DocumentHighlightRequest.type);}fillClientCapabilities(e){(0, o.ensure)((0, o.ensure)(e,\"textDocument\"),\"documentHighlight\").dynamicRegistration=!0;}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentHighlightProvider);n&&this.register({id:s.generateUuid(),registerOptions:n});}registerLanguageProvider(e){const t=e.documentSelector,n={provideDocumentHighlights:(e,t,n)=>{const r=this._client,o=(e,t,n)=>r.sendRequest(i.DocumentHighlightRequest.type,r.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then((e=>n.isCancellationRequested?null:r.protocol2CodeConverter.asDocumentHighlights(e,n)),(e=>r.handleFailedRequest(i.DocumentHighlightRequest.type,n,e,null))),s=r.middleware;return s.provideDocumentHighlights?s.provideDocumentHighlights(e,t,n,o):o(e,t,n)}};return [r.languages.registerDocumentHighlightProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n),n]}}t.DocumentHighlightFeature=a;},3471:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.DocumentLinkFeature=void 0;const r=n(9496),i=n(152),o=n(8909),s=n(1980);class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,i.DocumentLinkRequest.type);}fillClientCapabilities(e){const t=(0, o.ensure)((0, o.ensure)(e,\"textDocument\"),\"documentLink\");t.dynamicRegistration=!0,t.tooltipSupport=!0;}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentLinkProvider);n&&this.register({id:s.generateUuid(),registerOptions:n});}registerLanguageProvider(e){const t=e.documentSelector,n={provideDocumentLinks:(e,t)=>{const n=this._client,r=(e,t)=>n.sendRequest(i.DocumentLinkRequest.type,n.code2ProtocolConverter.asDocumentLinkParams(e),t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asDocumentLinks(e,t)),(e=>n.handleFailedRequest(i.DocumentLinkRequest.type,t,e,null))),o=n.middleware;return o.provideDocumentLinks?o.provideDocumentLinks(e,t,r):r(e,t)},resolveDocumentLink:e.resolveProvider?(e,t)=>{const n=this._client;let r=(e,t)=>n.sendRequest(i.DocumentLinkResolveRequest.type,n.code2ProtocolConverter.asDocumentLink(e),t).then((r=>t.isCancellationRequested?e:n.protocol2CodeConverter.asDocumentLink(r)),(r=>n.handleFailedRequest(i.DocumentLinkResolveRequest.type,t,r,e)));const o=n.middleware;return o.resolveDocumentLink?o.resolveDocumentLink(e,t,r):r(e,t)}:void 0};return [r.languages.registerDocumentLinkProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n),n]}}t.DocumentLinkFeature=a;},2483:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.DocumentSymbolFeature=t.SupportedSymbolTags=t.SupportedSymbolKinds=void 0;const r=n(9496),i=n(152),o=n(8909),s=n(1980);t.SupportedSymbolKinds=[i.SymbolKind.File,i.SymbolKind.Module,i.SymbolKind.Namespace,i.SymbolKind.Package,i.SymbolKind.Class,i.SymbolKind.Method,i.SymbolKind.Property,i.SymbolKind.Field,i.SymbolKind.Constructor,i.SymbolKind.Enum,i.SymbolKind.Interface,i.SymbolKind.Function,i.SymbolKind.Variable,i.SymbolKind.Constant,i.SymbolKind.String,i.SymbolKind.Number,i.SymbolKind.Boolean,i.SymbolKind.Array,i.SymbolKind.Object,i.SymbolKind.Key,i.SymbolKind.Null,i.SymbolKind.EnumMember,i.SymbolKind.Struct,i.SymbolKind.Event,i.SymbolKind.Operator,i.SymbolKind.TypeParameter],t.SupportedSymbolTags=[i.SymbolTag.Deprecated];class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,i.DocumentSymbolRequest.type);}fillClientCapabilities(e){let n=(0, o.ensure)((0, o.ensure)(e,\"textDocument\"),\"documentSymbol\");n.dynamicRegistration=!0,n.symbolKind={valueSet:t.SupportedSymbolKinds},n.hierarchicalDocumentSymbolSupport=!0,n.tagSupport={valueSet:t.SupportedSymbolTags},n.labelSupport=!0;}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentSymbolProvider);n&&this.register({id:s.generateUuid(),registerOptions:n});}registerLanguageProvider(e){const t=e.documentSelector,n={provideDocumentSymbols:(e,t)=>{const n=this._client,r=(e,t)=>n.sendRequest(i.DocumentSymbolRequest.type,n.code2ProtocolConverter.asDocumentSymbolParams(e),t).then((async e=>{if(t.isCancellationRequested||null==e)return null;if(0===e.length)return [];{const r=e[0];return i.DocumentSymbol.is(r)?await n.protocol2CodeConverter.asDocumentSymbols(e,t):await n.protocol2CodeConverter.asSymbolInformations(e,t)}}),(e=>n.handleFailedRequest(i.DocumentSymbolRequest.type,t,e,null))),o=n.middleware;return o.provideDocumentSymbols?o.provideDocumentSymbols(e,t,r):r(e,t)}},o=void 0!==e.label?{label:e.label}:void 0;return [r.languages.registerDocumentSymbolProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n,o),n]}}t.DocumentSymbolFeature=a;},4849:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.ExecuteCommandFeature=void 0;const r=n(9496),i=n(152),o=n(1980),s=n(8909);t.ExecuteCommandFeature=class{constructor(e){this._client=e,this._commands=new Map;}getState(){return {kind:\"workspace\",id:this.registrationType.method,registrations:this._commands.size>0}}get registrationType(){return i.ExecuteCommandRequest.type}fillClientCapabilities(e){(0, s.ensure)((0, s.ensure)(e,\"workspace\"),\"executeCommand\").dynamicRegistration=!0;}initialize(e){e.executeCommandProvider&&this.register({id:o.generateUuid(),registerOptions:Object.assign({},e.executeCommandProvider)});}register(e){const t=this._client,n=t.middleware,o=(e,n)=>{let r={command:e,arguments:n};return t.sendRequest(i.ExecuteCommandRequest.type,r).then(void 0,(e=>t.handleFailedRequest(i.ExecuteCommandRequest.type,void 0,e,void 0)))};if(e.registerOptions.commands){const t=[];for(const i of e.registerOptions.commands)t.push(r.commands.registerCommand(i,((...e)=>n.executeCommand?n.executeCommand(i,e,o):o(i,e))));this._commands.set(e.id,t);}}unregister(e){let t=this._commands.get(e);t&&t.forEach((e=>e.dispose()));}dispose(){this._commands.forEach((e=>{e.forEach((e=>e.dispose()));})),this._commands.clear();}};},8909:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.WorkspaceFeature=t.TextDocumentLanguageFeature=t.TextDocumentEventFeature=t.DynamicDocumentFeature=t.DynamicFeature=t.StaticFeature=t.ensure=t.LSPCancellationError=void 0;const r=n(9496),i=n(152),o=n(9763),s=n(1980);class a extends r.CancellationError{constructor(e){super(),this.data=e;}}t.LSPCancellationError=a,t.ensure=function(e,t){return void 0===e[t]&&(e[t]={}),e[t]},(t.StaticFeature||(t.StaticFeature={})).is=function(e){const t=e;return null!=t&&o.func(t.fillClientCapabilities)&&o.func(t.initialize)&&o.func(t.getState)&&o.func(t.dispose)&&(void 0===t.fillInitializeParams||o.func(t.fillInitializeParams))},(t.DynamicFeature||(t.DynamicFeature={})).is=function(e){const t=e;return null!=t&&o.func(t.fillClientCapabilities)&&o.func(t.initialize)&&o.func(t.getState)&&o.func(t.dispose)&&(void 0===t.fillInitializeParams||o.func(t.fillInitializeParams))&&o.func(t.register)&&o.func(t.unregister)&&void 0!==t.registrationType};class c{constructor(e){this._client=e;}getState(){const e=this.getDocumentSelectors();let t=0;for(const n of e){t++;for(const e of r.workspace.textDocuments)if(r.languages.match(n,e)>0)return {kind:\"document\",id:this.registrationType.method,registrations:!0,matches:!0}}const n=t>0;return {kind:\"document\",id:this.registrationType.method,registrations:n,matches:!1}}}t.DynamicDocumentFeature=c,t.TextDocumentEventFeature=class extends c{constructor(e,t,n,i,o,s,a){super(e),this._event=t,this._type=n,this._middleware=i,this._createParams=o,this._textDocument=s,this._selectorFilter=a,this._selectors=new Map,this._onNotificationSent=new r.EventEmitter;}static textDocumentFilter(e,t){for(const n of e)if(r.languages.match(n,t)>0)return !0;return !1}getStateInfo(){return [this._selectors.values(),!1]}getDocumentSelectors(){return this._selectors.values()}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=this._event((e=>{this.callback(e).catch((e=>{this._client.error(`Sending document notification ${this._type.method} failed.`,e);}));}))),this._selectors.set(e.id,this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector)));}async callback(e){const t=async e=>{const t=this._createParams(e);await this._client.sendNotification(this._type,t).catch(),this.notificationSent(e,this._type,t);};if(this.matches(e)){const n=this._middleware();return n?n(e,(e=>t(e))):t(e)}}matches(e){return !this._client.hasDedicatedTextSynchronizationFeature(this._textDocument(e))&&(!this._selectorFilter||this._selectorFilter(this._selectors.values(),e))}get onNotificationSent(){return this._onNotificationSent.event}notificationSent(e,t,n){this._onNotificationSent.fire({original:e,type:t,params:n});}unregister(e){this._selectors.delete(e),0===this._selectors.size&&this._listener&&(this._listener.dispose(),this._listener=void 0);}dispose(){this._selectors.clear(),this._onNotificationSent.dispose(),this._listener&&(this._listener.dispose(),this._listener=void 0);}getProvider(e){for(const t of this._selectors.values())if(r.languages.match(t,e)>0)return {send:e=>this.callback(e)}}},t.TextDocumentLanguageFeature=class extends c{constructor(e,t){super(e),this._registrationType=t,this._registrations=new Map;}*getDocumentSelectors(){for(const e of this._registrations.values()){const t=e.data.registerOptions.documentSelector;null!==t&&(yield this._client.protocol2CodeConverter.asDocumentSelector(t));}}get registrationType(){return this._registrationType}register(e){if(!e.registerOptions.documentSelector)return;let t=this.registerLanguageProvider(e.registerOptions,e.id);this._registrations.set(e.id,{disposable:t[0],data:e,provider:t[1]});}unregister(e){let t=this._registrations.get(e);void 0!==t&&t.disposable.dispose();}dispose(){this._registrations.forEach((e=>{e.disposable.dispose();})),this._registrations.clear();}getRegistration(e,t){if(!t)return [void 0,void 0];if(i.TextDocumentRegistrationOptions.is(t)){const n=i.StaticRegistrationOptions.hasId(t)?t.id:s.generateUuid(),r=t.documentSelector||e;if(r)return [n,Object.assign({},t,{documentSelector:r})]}else if(o.boolean(t)&&!0===t||i.WorkDoneProgressOptions.is(t)){if(!e)return [void 0,void 0];let n=o.boolean(t)&&!0===t?{documentSelector:e}:Object.assign({},t,{documentSelector:e});return [s.generateUuid(),n]}return [void 0,void 0]}getRegistrationOptions(e,t){if(e&&t)return o.boolean(t)&&!0===t?{documentSelector:e}:Object.assign({},t,{documentSelector:e})}getProvider(e){for(const t of this._registrations.values()){let n=t.data.registerOptions.documentSelector;if(null!==n&&r.languages.match(this._client.protocol2CodeConverter.asDocumentSelector(n),e)>0)return t.provider}}getAllProviders(){const e=[];for(const t of this._registrations.values())e.push(t.provider);return e}},t.WorkspaceFeature=class{constructor(e,t){this._client=e,this._registrationType=t,this._registrations=new Map;}getState(){const e=this._registrations.size>0;return {kind:\"workspace\",id:this._registrationType.method,registrations:e}}get registrationType(){return this._registrationType}register(e){const t=this.registerLanguageProvider(e.registerOptions);this._registrations.set(e.id,{disposable:t[0],provider:t[1]});}unregister(e){let t=this._registrations.get(e);void 0!==t&&t.disposable.dispose();}dispose(){this._registrations.forEach((e=>{e.disposable.dispose();})),this._registrations.clear();}getProviders(){const e=[];for(const t of this._registrations.values())e.push(t.provider);return e}};},7606:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.WillDeleteFilesFeature=t.WillRenameFilesFeature=t.WillCreateFilesFeature=t.DidDeleteFilesFeature=t.DidRenameFilesFeature=t.DidCreateFilesFeature=void 0;const r=n(9496),i=n(3415),o=n(152),s=n(1980);function a(e,t){return void 0===e[t]&&(e[t]={}),e[t]}function c(e,t,n){e[t]=n;}class u{constructor(e,t,n,r,i){this._client=e,this._event=t,this._registrationType=n,this._clientCapability=r,this._serverCapability=i,this._filters=new Map;}getState(){return {kind:\"workspace\",id:this._registrationType.method,registrations:this._filters.size>0}}filterSize(){return this._filters.size}get registrationType(){return this._registrationType}fillClientCapabilities(e){const t=a(a(e,\"workspace\"),\"fileOperations\");c(t,\"dynamicRegistration\",!0),c(t,this._clientCapability,!0);}initialize(e){const t=e.workspace?.fileOperations,n=void 0!==t?t[this._serverCapability]:void 0;if(void 0!==n?.filters)try{this.register({id:s.generateUuid(),registerOptions:{filters:n.filters}});}catch(e){this._client.warn(`Ignoring invalid glob pattern for ${this._serverCapability} registration: ${e}`);}}register(e){this._listener||(this._listener=this._event(this.send,this));const t=e.registerOptions.filters.map((e=>{const t=new i.Minimatch(e.pattern.glob,u.asMinimatchOptions(e.pattern.options));if(!t.makeRe())throw new Error(`Invalid pattern ${e.pattern.glob}!`);return {scheme:e.scheme,matcher:t,kind:e.pattern.matches}}));this._filters.set(e.id,t);}unregister(e){this._filters.delete(e),0===this._filters.size&&this._listener&&(this._listener.dispose(),this._listener=void 0);}dispose(){this._filters.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0);}getFileType(e){return u.getFileType(e)}async filter(e,t){const n=await Promise.all(e.files.map((async e=>{const n=t(e),i=n.fsPath.replace(/\\\\/g,\"/\");for(const e of this._filters.values())for(const t of e)if(void 0===t.scheme||t.scheme===n.scheme)if(t.matcher.match(i)){if(void 0===t.kind)return !0;const e=await this.getFileType(n);if(void 0===e)return this._client.error(`Failed to determine file type for ${n.toString()}.`),!0;if(e===r.FileType.File&&t.kind===o.FileOperationPatternKind.file||e===r.FileType.Directory&&t.kind===o.FileOperationPatternKind.folder)return !0}else if(t.kind===o.FileOperationPatternKind.folder&&await u.getFileType(n)===r.FileType.Directory&&t.matcher.match(`${i}/`))return !0;return !1}))),i=e.files.filter(((e,t)=>n[t]));return {...e,files:i}}static async getFileType(e){try{return (await r.workspace.fs.stat(e)).type}catch(e){return}}static asMinimatchOptions(e){if(void 0!==e)return !0===e.ignoreCase?{nocase:!0}:void 0}}class l extends u{constructor(e,t,n,r,i,o,s){super(e,t,n,r,i),this._notificationType=n,this._accessUri=o,this._createParams=s;}async send(e){const t=await this.filter(e,this._accessUri);if(t.files.length){const e=async e=>this._client.sendNotification(this._notificationType,this._createParams(e));return this.doSend(t,e)}}}class d extends l{constructor(){super(...arguments),this._fsPathFileTypes=new Map;}async getFileType(e){const t=e.fsPath;if(this._fsPathFileTypes.has(t))return this._fsPathFileTypes.get(t);const n=await u.getFileType(e);return n&&this._fsPathFileTypes.set(t,n),n}async cacheFileTypes(e,t){await this.filter(e,t);}clearFileTypeCache(){this._fsPathFileTypes.clear();}unregister(e){super.unregister(e),0===this.filterSize()&&this._willListener&&(this._willListener.dispose(),this._willListener=void 0);}dispose(){super.dispose(),this._willListener&&(this._willListener.dispose(),this._willListener=void 0);}}t.DidCreateFilesFeature=class extends l{constructor(e){super(e,r.workspace.onDidCreateFiles,o.DidCreateFilesNotification.type,\"didCreate\",\"didCreate\",(e=>e),e.code2ProtocolConverter.asDidCreateFilesParams);}doSend(e,t){const n=this._client.middleware.workspace;return n?.didCreateFiles?n.didCreateFiles(e,t):t(e)}},t.DidRenameFilesFeature=class extends d{constructor(e){super(e,r.workspace.onDidRenameFiles,o.DidRenameFilesNotification.type,\"didRename\",\"didRename\",(e=>e.oldUri),e.code2ProtocolConverter.asDidRenameFilesParams);}register(e){this._willListener||(this._willListener=r.workspace.onWillRenameFiles(this.willRename,this)),super.register(e);}willRename(e){e.waitUntil(this.cacheFileTypes(e,(e=>e.oldUri)));}doSend(e,t){this.clearFileTypeCache();const n=this._client.middleware.workspace;return n?.didRenameFiles?n.didRenameFiles(e,t):t(e)}},t.DidDeleteFilesFeature=class extends d{constructor(e){super(e,r.workspace.onDidDeleteFiles,o.DidDeleteFilesNotification.type,\"didDelete\",\"didDelete\",(e=>e),e.code2ProtocolConverter.asDidDeleteFilesParams);}register(e){this._willListener||(this._willListener=r.workspace.onWillDeleteFiles(this.willDelete,this)),super.register(e);}willDelete(e){e.waitUntil(this.cacheFileTypes(e,(e=>e)));}doSend(e,t){this.clearFileTypeCache();const n=this._client.middleware.workspace;return n?.didDeleteFiles?n.didDeleteFiles(e,t):t(e)}};class f extends u{constructor(e,t,n,r,i,o,s){super(e,t,n,r,i),this._requestType=n,this._accessUri=o,this._createParams=s;}async send(e){const t=this.waitUntil(e);e.waitUntil(t);}async waitUntil(e){const t=await this.filter(e,this._accessUri);if(t.files.length){const e=e=>this._client.sendRequest(this._requestType,this._createParams(e),e.token).then(this._client.protocol2CodeConverter.asWorkspaceEdit);return this.doSend(t,e)}}}t.WillCreateFilesFeature=class extends f{constructor(e){super(e,r.workspace.onWillCreateFiles,o.WillCreateFilesRequest.type,\"willCreate\",\"willCreate\",(e=>e),e.code2ProtocolConverter.asWillCreateFilesParams);}doSend(e,t){const n=this._client.middleware.workspace;return n?.willCreateFiles?n.willCreateFiles(e,t):t(e)}},t.WillRenameFilesFeature=class extends f{constructor(e){super(e,r.workspace.onWillRenameFiles,o.WillRenameFilesRequest.type,\"willRename\",\"willRename\",(e=>e.oldUri),e.code2ProtocolConverter.asWillRenameFilesParams);}doSend(e,t){const n=this._client.middleware.workspace;return n?.willRenameFiles?n.willRenameFiles(e,t):t(e)}},t.WillDeleteFilesFeature=class extends f{constructor(e){super(e,r.workspace.onWillDeleteFiles,o.WillDeleteFilesRequest.type,\"willDelete\",\"willDelete\",(e=>e),e.code2ProtocolConverter.asWillDeleteFilesParams);}doSend(e,t){const n=this._client.middleware.workspace;return n?.willDeleteFiles?n.willDeleteFiles(e,t):t(e)}};},5338:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.FileSystemWatcherFeature=void 0;const r=n(9496),i=n(152),o=n(8909);t.FileSystemWatcherFeature=class{constructor(e,t){this._client=e,this._notifyFileEvent=t,this._watchers=new Map;}getState(){return {kind:\"workspace\",id:this.registrationType.method,registrations:this._watchers.size>0}}get registrationType(){return i.DidChangeWatchedFilesNotification.type}fillClientCapabilities(e){(0, o.ensure)((0, o.ensure)(e,\"workspace\"),\"didChangeWatchedFiles\").dynamicRegistration=!0,(0, o.ensure)((0, o.ensure)(e,\"workspace\"),\"didChangeWatchedFiles\").relativePatternSupport=!0;}initialize(e,t){}register(e){if(!Array.isArray(e.registerOptions.watchers))return;const t=[];for(const n of e.registerOptions.watchers){const e=this._client.protocol2CodeConverter.asGlobPattern(n.globPattern);if(void 0===e)continue;let o=!0,s=!0,a=!0;void 0!==n.kind&&null!==n.kind&&(o=0!=(n.kind&i.WatchKind.Create),s=0!=(n.kind&i.WatchKind.Change),a=0!=(n.kind&i.WatchKind.Delete));const c=r.workspace.createFileSystemWatcher(e,!o,!s,!a);this.hookListeners(c,o,s,a,t),t.push(c);}this._watchers.set(e.id,t);}registerRaw(e,t){let n=[];for(let e of t)this.hookListeners(e,!0,!0,!0,n);this._watchers.set(e,n);}hookListeners(e,t,n,r,o){t&&e.onDidCreate((e=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(e),type:i.FileChangeType.Created})),null,o),n&&e.onDidChange((e=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(e),type:i.FileChangeType.Changed})),null,o),r&&e.onDidDelete((e=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(e),type:i.FileChangeType.Deleted})),null,o);}unregister(e){let t=this._watchers.get(e);if(t)for(let e of t)e.dispose();}dispose(){this._watchers.forEach((e=>{for(let t of e)t.dispose();})),this._watchers.clear();}};},6454:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.FoldingRangeFeature=void 0;const r=n(9496),i=n(152),o=n(8909);class s extends o.TextDocumentLanguageFeature{constructor(e){super(e,i.FoldingRangeRequest.type);}fillClientCapabilities(e){let t=(0, o.ensure)((0, o.ensure)(e,\"textDocument\"),\"foldingRange\");t.dynamicRegistration=!0,t.rangeLimit=5e3,t.lineFoldingOnly=!0,t.foldingRangeKind={valueSet:[i.FoldingRangeKind.Comment,i.FoldingRangeKind.Imports,i.FoldingRangeKind.Region]},t.foldingRange={collapsedText:!1};}initialize(e,t){let[n,r]=this.getRegistration(t,e.foldingRangeProvider);n&&r&&this.register({id:n,registerOptions:r});}registerLanguageProvider(e){const t=e.documentSelector,n={provideFoldingRanges:(e,t,n)=>{const r=this._client,o=(e,t,n)=>{const o={textDocument:r.code2ProtocolConverter.asTextDocumentIdentifier(e)};return r.sendRequest(i.FoldingRangeRequest.type,o,n).then((e=>n.isCancellationRequested?null:r.protocol2CodeConverter.asFoldingRanges(e,n)),(e=>r.handleFailedRequest(i.FoldingRangeRequest.type,n,e,null)))},s=r.middleware;return s.provideFoldingRanges?s.provideFoldingRanges(e,t,n,o):o(e,0,n)}};return [r.languages.registerFoldingRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n),n]}}t.FoldingRangeFeature=s;},6426:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.DocumentOnTypeFormattingFeature=t.DocumentRangeFormattingFeature=t.DocumentFormattingFeature=void 0;const r=n(9496),i=n(152),o=n(1980),s=n(8909);var a;!function(e){e.fromConfiguration=function(e){const t=r.workspace.getConfiguration(\"files\",e);return {trimTrailingWhitespace:t.get(\"trimTrailingWhitespace\"),trimFinalNewlines:t.get(\"trimFinalNewlines\"),insertFinalNewline:t.get(\"insertFinalNewline\")}};}(a||(a={}));class c extends s.TextDocumentLanguageFeature{constructor(e){super(e,i.DocumentFormattingRequest.type);}fillClientCapabilities(e){(0, s.ensure)((0, s.ensure)(e,\"textDocument\"),\"formatting\").dynamicRegistration=!0;}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentFormattingProvider);n&&this.register({id:o.generateUuid(),registerOptions:n});}registerLanguageProvider(e){const t=e.documentSelector,n={provideDocumentFormattingEdits:(e,t,n)=>{const r=this._client,o=(e,t,n)=>{const o={textDocument:r.code2ProtocolConverter.asTextDocumentIdentifier(e),options:r.code2ProtocolConverter.asFormattingOptions(t,a.fromConfiguration(e))};return r.sendRequest(i.DocumentFormattingRequest.type,o,n).then((e=>n.isCancellationRequested?null:r.protocol2CodeConverter.asTextEdits(e,n)),(e=>r.handleFailedRequest(i.DocumentFormattingRequest.type,n,e,null)))},s=r.middleware;return s.provideDocumentFormattingEdits?s.provideDocumentFormattingEdits(e,t,n,o):o(e,t,n)}};return [r.languages.registerDocumentFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n),n]}}t.DocumentFormattingFeature=c;class u extends s.TextDocumentLanguageFeature{constructor(e){super(e,i.DocumentRangeFormattingRequest.type);}fillClientCapabilities(e){(0, s.ensure)((0, s.ensure)(e,\"textDocument\"),\"rangeFormatting\").dynamicRegistration=!0;}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentRangeFormattingProvider);n&&this.register({id:o.generateUuid(),registerOptions:n});}registerLanguageProvider(e){const t=e.documentSelector,n={provideDocumentRangeFormattingEdits:(e,t,n,r)=>{const o=this._client,s=(e,t,n,r)=>{const s={textDocument:o.code2ProtocolConverter.asTextDocumentIdentifier(e),range:o.code2ProtocolConverter.asRange(t),options:o.code2ProtocolConverter.asFormattingOptions(n,a.fromConfiguration(e))};return o.sendRequest(i.DocumentRangeFormattingRequest.type,s,r).then((e=>r.isCancellationRequested?null:o.protocol2CodeConverter.asTextEdits(e,r)),(e=>o.handleFailedRequest(i.DocumentRangeFormattingRequest.type,r,e,null)))},c=o.middleware;return c.provideDocumentRangeFormattingEdits?c.provideDocumentRangeFormattingEdits(e,t,n,r,s):s(e,t,n,r)}};return [r.languages.registerDocumentRangeFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n),n]}}t.DocumentRangeFormattingFeature=u;class l extends s.TextDocumentLanguageFeature{constructor(e){super(e,i.DocumentOnTypeFormattingRequest.type);}fillClientCapabilities(e){(0, s.ensure)((0, s.ensure)(e,\"textDocument\"),\"onTypeFormatting\").dynamicRegistration=!0;}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentOnTypeFormattingProvider);n&&this.register({id:o.generateUuid(),registerOptions:n});}registerLanguageProvider(e){const t=e.documentSelector,n={provideOnTypeFormattingEdits:(e,t,n,r,o)=>{const s=this._client,c=(e,t,n,r,o)=>{let c={textDocument:s.code2ProtocolConverter.asTextDocumentIdentifier(e),position:s.code2ProtocolConverter.asPosition(t),ch:n,options:s.code2ProtocolConverter.asFormattingOptions(r,a.fromConfiguration(e))};return s.sendRequest(i.DocumentOnTypeFormattingRequest.type,c,o).then((e=>o.isCancellationRequested?null:s.protocol2CodeConverter.asTextEdits(e,o)),(e=>s.handleFailedRequest(i.DocumentOnTypeFormattingRequest.type,o,e,null)))},u=s.middleware;return u.provideOnTypeFormattingEdits?u.provideOnTypeFormattingEdits(e,t,n,r,o,c):c(e,t,n,r,o)}},o=e.moreTriggerCharacter||[];return [r.languages.registerOnTypeFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n,e.firstTriggerCharacter,...o),n]}}t.DocumentOnTypeFormattingFeature=l;},6782:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.HoverFeature=void 0;const r=n(9496),i=n(152),o=n(8909),s=n(1980);class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,i.HoverRequest.type);}fillClientCapabilities(e){const t=(0, o.ensure)((0, o.ensure)(e,\"textDocument\"),\"hover\");t.dynamicRegistration=!0,t.contentFormat=[i.MarkupKind.Markdown,i.MarkupKind.PlainText];}initialize(e,t){const n=this.getRegistrationOptions(t,e.hoverProvider);n&&this.register({id:s.generateUuid(),registerOptions:n});}registerLanguageProvider(e){const t=e.documentSelector,n={provideHover:(e,t,n)=>{const r=this._client,o=(e,t,n)=>r.sendRequest(i.HoverRequest.type,r.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then((e=>n.isCancellationRequested?null:r.protocol2CodeConverter.asHover(e)),(e=>r.handleFailedRequest(i.HoverRequest.type,n,e,null))),s=r.middleware;return s.provideHover?s.provideHover(e,t,n,o):o(e,t,n)}};return [this.registerProvider(t,n),n]}registerProvider(e,t){return r.languages.registerHoverProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.HoverFeature=a;},9889:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.ImplementationFeature=void 0;const r=n(9496),i=n(152),o=n(8909);class s extends o.TextDocumentLanguageFeature{constructor(e){super(e,i.ImplementationRequest.type);}fillClientCapabilities(e){let t=(0, o.ensure)((0, o.ensure)(e,\"textDocument\"),\"implementation\");t.dynamicRegistration=!0,t.linkSupport=!0;}initialize(e,t){let[n,r]=this.getRegistration(t,e.implementationProvider);n&&r&&this.register({id:n,registerOptions:r});}registerLanguageProvider(e){const t=e.documentSelector,n={provideImplementation:(e,t,n)=>{const r=this._client,o=(e,t,n)=>r.sendRequest(i.ImplementationRequest.type,r.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then((e=>n.isCancellationRequested?null:r.protocol2CodeConverter.asDefinitionResult(e,n)),(e=>r.handleFailedRequest(i.ImplementationRequest.type,n,e,null))),s=r.middleware;return s.provideImplementation?s.provideImplementation(e,t,n,o):o(e,t,n)}};return [this.registerProvider(t,n),n]}registerProvider(e,t){return r.languages.registerImplementationProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.ImplementationFeature=s;},6190:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.InlayHintsFeature=void 0;const r=n(9496),i=n(152),o=n(8909);class s extends o.TextDocumentLanguageFeature{constructor(e){super(e,i.InlayHintRequest.type);}fillClientCapabilities(e){const t=(0, o.ensure)((0, o.ensure)(e,\"textDocument\"),\"inlayHint\");t.dynamicRegistration=!0,t.resolveSupport={properties:[\"tooltip\",\"textEdits\",\"label.tooltip\",\"label.location\",\"label.command\"]},(0, o.ensure)((0, o.ensure)(e,\"workspace\"),\"inlayHint\").refreshSupport=!0;}initialize(e,t){this._client.onRequest(i.InlayHintRefreshRequest.type,(async()=>{for(const e of this.getAllProviders())e.onDidChangeInlayHints.fire();}));const[n,r]=this.getRegistration(t,e.inlayHintProvider);n&&r&&this.register({id:n,registerOptions:r});}registerLanguageProvider(e){const t=e.documentSelector,n=new r.EventEmitter,o={onDidChangeInlayHints:n.event,provideInlayHints:(e,t,n)=>{const r=this._client,o=async(e,t,n)=>{const o={textDocument:r.code2ProtocolConverter.asTextDocumentIdentifier(e),range:r.code2ProtocolConverter.asRange(t)};try{const e=await r.sendRequest(i.InlayHintRequest.type,o,n);return n.isCancellationRequested?null:r.protocol2CodeConverter.asInlayHints(e,n)}catch(e){return r.handleFailedRequest(i.InlayHintRequest.type,n,e,null)}},s=r.middleware;return s.provideInlayHints?s.provideInlayHints(e,t,n,o):o(e,t,n)}};return o.resolveInlayHint=!0===e.resolveProvider?(e,t)=>{const n=this._client,r=async(e,t)=>{try{const r=await n.sendRequest(i.InlayHintResolveRequest.type,n.code2ProtocolConverter.asInlayHint(e),t);if(t.isCancellationRequested)return null;const o=n.protocol2CodeConverter.asInlayHint(r,t);return t.isCancellationRequested?null:o}catch(e){return n.handleFailedRequest(i.InlayHintResolveRequest.type,t,e,null)}},o=n.middleware;return o.resolveInlayHint?o.resolveInlayHint(e,t,r):r(e,t)}:void 0,[this.registerProvider(t,o),{provider:o,onDidChangeInlayHints:n}]}registerProvider(e,t){return r.languages.registerInlayHintsProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.InlayHintsFeature=s;},5098:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.InlineValueFeature=void 0;const r=n(9496),i=n(152),o=n(8909);class s extends o.TextDocumentLanguageFeature{constructor(e){super(e,i.InlineValueRequest.type);}fillClientCapabilities(e){(0, o.ensure)((0, o.ensure)(e,\"textDocument\"),\"inlineValue\").dynamicRegistration=!0,(0, o.ensure)((0, o.ensure)(e,\"workspace\"),\"inlineValue\").refreshSupport=!0;}initialize(e,t){this._client.onRequest(i.InlineValueRefreshRequest.type,(async()=>{for(const e of this.getAllProviders())e.onDidChangeInlineValues.fire();}));const[n,r]=this.getRegistration(t,e.inlineValueProvider);n&&r&&this.register({id:n,registerOptions:r});}registerLanguageProvider(e){const t=e.documentSelector,n=new r.EventEmitter,o={onDidChangeInlineValues:n.event,provideInlineValues:(e,t,n,r)=>{const o=this._client,s=(e,t,n,r)=>{const s={textDocument:o.code2ProtocolConverter.asTextDocumentIdentifier(e),range:o.code2ProtocolConverter.asRange(t),context:o.code2ProtocolConverter.asInlineValueContext(n)};return o.sendRequest(i.InlineValueRequest.type,s,r).then((e=>r.isCancellationRequested?null:o.protocol2CodeConverter.asInlineValues(e,r)),(e=>o.handleFailedRequest(i.InlineValueRequest.type,r,e,null)))},a=o.middleware;return a.provideInlineValues?a.provideInlineValues(e,t,n,r,s):s(e,t,n,r)}};return [this.registerProvider(t,o),{provider:o,onDidChangeInlineValues:n}]}registerProvider(e,t){return r.languages.registerInlineValuesProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.InlineValueFeature=s;},3483:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.LinkedEditingFeature=void 0;const r=n(9496),i=n(152),o=n(8909);class s extends o.TextDocumentLanguageFeature{constructor(e){super(e,i.LinkedEditingRangeRequest.type);}fillClientCapabilities(e){(0, o.ensure)((0, o.ensure)(e,\"textDocument\"),\"linkedEditingRange\").dynamicRegistration=!0;}initialize(e,t){let[n,r]=this.getRegistration(t,e.linkedEditingRangeProvider);n&&r&&this.register({id:n,registerOptions:r});}registerLanguageProvider(e){const t=e.documentSelector,n={provideLinkedEditingRanges:(e,t,n)=>{const r=this._client,o=(e,t,n)=>r.sendRequest(i.LinkedEditingRangeRequest.type,r.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then((e=>n.isCancellationRequested?null:r.protocol2CodeConverter.asLinkedEditingRanges(e,n)),(e=>r.handleFailedRequest(i.LinkedEditingRangeRequest.type,n,e,null))),s=r.middleware;return s.provideLinkedEditingRange?s.provideLinkedEditingRange(e,t,n,o):o(e,t,n)}};return [this.registerProvider(t,n),n]}registerProvider(e,t){return r.languages.registerLinkedEditingRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.LinkedEditingFeature=s;},203:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.NotebookDocumentSyncFeature=void 0;const r=n(9496),i=n(3415),o=n(152),s=n(1980),a=n(9763);function c(e,t){return void 0===e[t]&&(e[t]={}),e[t]}var u,l,d,f,p;!function(e){!function(t){function n(e,t){return e.map((e=>s(e,t)))}function i(e){return c(new Set,e)}function s(e,t){const n=o.NotebookCell.create(function(e){switch(e){case r.NotebookCellKind.Markup:return o.NotebookCellKind.Markup;case r.NotebookCellKind.Code:return o.NotebookCellKind.Code}}(e.kind),t.asUri(e.document.uri));return Object.keys(e.metadata).length>0&&(n.metadata=i(e.metadata)),void 0!==e.executionSummary&&a.number(e.executionSummary.executionOrder)&&a.boolean(e.executionSummary.success)&&(n.executionSummary={executionOrder:e.executionSummary.executionOrder,success:e.executionSummary.success}),n}function c(e,t){if(e.has(t))throw new Error(\"Can't deep copy cyclic structures.\");if(Array.isArray(t)){const n=[];for(const r of t)if(null!==r&&\"object\"==typeof r||Array.isArray(r))n.push(c(e,r));else {if(r instanceof RegExp)throw new Error(\"Can't transfer regular expressions to the server\");n.push(r);}return n}{const n=Object.keys(t),r=Object.create(null);for(const i of n){const n=t[i];if(null!==n&&\"object\"==typeof n||Array.isArray(n))r[i]=c(e,n);else {if(n instanceof RegExp)throw new Error(\"Can't transfer regular expressions to the server\");r[i]=n;}}return r}}t.asVersionedNotebookDocumentIdentifier=function(e,t){return {version:e.version,uri:t.asUri(e.uri)}},t.asNotebookDocument=function(e,t,r){const s=o.NotebookDocument.create(r.asUri(e.uri),e.notebookType,e.version,n(t,r));return Object.keys(e.metadata).length>0&&(s.metadata=i(e.metadata)),s},t.asNotebookCells=n,t.asMetadata=i,t.asNotebookCell=s,t.asTextContentChange=function(e,t){const n=t.asChangeTextDocumentParams(e);return {document:n.textDocument,changes:n.contentChanges}},t.asNotebookDocumentChangeEvent=function(t,n){const r=Object.create(null);if(t.metadata&&(r.metadata=e.c2p.asMetadata(t.metadata)),void 0!==t.cells){const i=Object.create(null),o=t.cells;o.structure&&(i.structure={array:{start:o.structure.array.start,deleteCount:o.structure.array.deleteCount,cells:void 0!==o.structure.array.cells?o.structure.array.cells.map((t=>e.c2p.asNotebookCell(t,n))):void 0},didOpen:void 0!==o.structure.didOpen?o.structure.didOpen.map((e=>n.asOpenTextDocumentParams(e.document).textDocument)):void 0,didClose:void 0!==o.structure.didClose?o.structure.didClose.map((e=>n.asCloseTextDocumentParams(e.document).textDocument)):void 0}),void 0!==o.data&&(i.data=o.data.map((t=>e.c2p.asNotebookCell(t,n)))),void 0!==o.textContent&&(i.textContent=o.textContent.map((t=>e.c2p.asTextContentChange(t,n)))),Object.keys(i).length>0&&(r.cells=i);}return r};}(e.c2p||(e.c2p={}));}(u||(u={})),function(e){function t(e,t,r=!0){return !(e.kind!==t.kind||e.document.uri.toString()!==t.document.uri.toString()||e.document.languageId!==t.document.languageId||!function(e,t){return e===t||void 0!==e&&void 0!==t&&(e.executionOrder===t.executionOrder&&e.success===t.success&&function(e,t){return e===t||void 0!==e&&void 0!==t&&(e.startTime===t.startTime&&e.endTime===t.endTime)}(e.timing,t.timing))}(e.executionSummary,t.executionSummary))&&(!r||r&&n(e.metadata,t.metadata))}function n(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;const i=Array.isArray(e),o=Array.isArray(t);if(i!==o)return !1;if(i&&o){if(e.length!==t.length)return !1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return !1}if(r(e)&&r(t)){const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return !1;if(r.sort(),i.sort(),!n(r,i))return !1;for(let i=0;i<r.length;i++){const o=r[i];if(!n(e[o],t[o]))return !1}return !0}return !1}function r(e){return null!==e&&\"object\"==typeof e}e.computeDiff=function(e,n,r){const i=e.length,o=n.length;let s=0;for(;s<o&&s<i&&t(e[s],n[s],r);)s++;if(s<o&&s<i){let a=i-1,c=o-1;for(;a>=0&&c>=0&&t(e[a],n[c],r);)a--,c--;const u=a+1-s,l=s===c+1?void 0:n.slice(s,c+1);return void 0!==l?{start:s,deleteCount:u,cells:l}:{start:s,deleteCount:u}}return s<o?{start:s,deleteCount:0,cells:n.slice(s)}:s<i?{start:s,deleteCount:i-s}:void 0},e.isObjectLiteral=r;}(l||(l={})),function(e){e.matchNotebook=function(e,t){if(\"string\"==typeof e)return \"*\"===e||t.notebookType===e;if(void 0!==e.notebookType&&\"*\"!==e.notebookType&&t.notebookType!==e.notebookType)return !1;const n=t.uri;if(void 0!==e.scheme&&\"*\"!==e.scheme&&n.scheme!==e.scheme)return !1;if(void 0!==e.pattern){const t=new i.Minimatch(e.pattern,{noext:!0});if(!t.makeRe())return !1;if(!t.match(n.fsPath))return !1}return !0};}(d||(d={})),function(e){function t(e,t,n,r){return void 0===t&&void 0===n?{notebook:e,language:r}:{notebook:{notebookType:e,scheme:t,pattern:n},language:r}}e.asDocumentSelector=function(e){const n=e.notebookSelector,r=[];for(const e of n){const n=(\"string\"==typeof e.notebook?e.notebook:e.notebook?.notebookType)??\"*\",i=\"string\"==typeof e.notebook?void 0:e.notebook?.scheme,o=\"string\"==typeof e.notebook?void 0:e.notebook?.pattern;if(void 0!==e.cells)for(const s of e.cells)r.push(t(n,i,o,s.language));else r.push(t(n,i,o,void 0));}return r};}(f||(f={})),function(e){e.create=function(e){return {cells:e,uris:new Set(e.map((e=>e.document.uri.toString())))}};}(p||(p={}));class g{constructor(e,t){this.client=e,this.options=t,this.notebookSyncInfo=new Map,this.notebookDidOpen=new Set,this.disposables=[],this.selector=e.protocol2CodeConverter.asDocumentSelector(f.asDocumentSelector(t)),r.workspace.onDidOpenNotebookDocument((e=>{this.notebookDidOpen.add(e.uri.toString()),this.didOpen(e);}),void 0,this.disposables);for(const e of r.workspace.notebookDocuments)this.notebookDidOpen.add(e.uri.toString()),this.didOpen(e);r.workspace.onDidChangeNotebookDocument((e=>this.didChangeNotebookDocument(e)),void 0,this.disposables),!0===this.options.save&&r.workspace.onDidSaveNotebookDocument((e=>this.didSave(e)),void 0,this.disposables),r.workspace.onDidCloseNotebookDocument((e=>{this.didClose(e),this.notebookDidOpen.delete(e.uri.toString());}),void 0,this.disposables);}getState(){for(const e of r.workspace.notebookDocuments)if(void 0!==this.getMatchingCells(e))return {kind:\"document\",id:\"$internal\",registrations:!0,matches:!0};return {kind:\"document\",id:\"$internal\",registrations:!0,matches:!1}}get mode(){return \"notebook\"}handles(e){return r.languages.match(this.selector,e)>0}didOpenNotebookCellTextDocument(e,t){if(0===r.languages.match(this.selector,t.document))return;if(!this.notebookDidOpen.has(e.uri.toString()))return;const n=this.notebookSyncInfo.get(e.uri.toString()),i=this.cellMatches(e,t);if(void 0!==n){const r=n.uris.has(t.document.uri.toString());if(i&&r||!i&&!r)return;if(i){const t=this.getMatchingCells(e);if(void 0!==t){const r=this.asNotebookDocumentChangeEvent(e,void 0,n,t);void 0!==r&&this.doSendChange(r,t).catch((()=>{}));}}}else i&&this.doSendOpen(e,[t]).catch((()=>{}));}didChangeNotebookCellTextDocument(e,t){0!==r.languages.match(this.selector,t.document)&&this.doSendChange({notebook:e,cells:{textContent:[t]}},void 0).catch((()=>{}));}didCloseNotebookCellTextDocument(e,t){const n=this.notebookSyncInfo.get(e.uri.toString());if(void 0===n)return;const r=t.document.uri,i=n.cells.findIndex((e=>e.document.uri.toString()===r.toString()));if(-1!==i)if(0===i&&1===n.cells.length)this.doSendClose(e,n.cells).catch((()=>{}));else {const t=n.cells.slice(),r=t.splice(i,1);this.doSendChange({notebook:e,cells:{structure:{array:{start:i,deleteCount:1},didClose:r}}},t).catch((()=>{}));}}dispose(){for(const e of this.disposables)e.dispose();}didOpen(e,t=this.getMatchingCells(e),n=this.notebookSyncInfo.get(e.uri.toString())){if(void 0!==n)if(void 0!==t){const r=this.asNotebookDocumentChangeEvent(e,void 0,n,t);void 0!==r&&this.doSendChange(r,t).catch((()=>{}));}else this.doSendClose(e,[]).catch((()=>{}));else {if(void 0===t)return;this.doSendOpen(e,t).catch((()=>{}));}}didChangeNotebookDocument(e){const t=e.notebook,n=this.notebookSyncInfo.get(t.uri.toString());if(void 0===n){if(0===e.contentChanges.length)return;const r=this.getMatchingCells(t);if(void 0===r)return;this.didOpen(t,r,n);}else {const r=this.getMatchingCells(t);if(void 0===r)return void this.didClose(t,n);const i=this.asNotebookDocumentChangeEvent(e.notebook,e,n,r);void 0!==i&&this.doSendChange(i,r).catch((()=>{}));}}didSave(e){void 0!==this.notebookSyncInfo.get(e.uri.toString())&&this.doSendSave(e).catch((()=>{}));}didClose(e,t=this.notebookSyncInfo.get(e.uri.toString())){if(void 0===t)return;const n=e.getCells().filter((e=>t.uris.has(e.document.uri.toString())));this.doSendClose(e,n).catch((()=>{}));}async sendDidOpenNotebookDocument(e){const t=this.getMatchingCells(e);if(void 0!==t)return this.doSendOpen(e,t)}async doSendOpen(e,t){const n=async(e,t)=>{const n=u.c2p.asNotebookDocument(e,t,this.client.code2ProtocolConverter),r=t.map((e=>this.client.code2ProtocolConverter.asTextDocumentItem(e.document)));try{await this.client.sendNotification(o.DidOpenNotebookDocumentNotification.type,{notebookDocument:n,cellTextDocuments:r});}catch(e){throw this.client.error(\"Sending DidOpenNotebookDocumentNotification failed\",e),e}},r=this.client.middleware?.notebooks;return this.notebookSyncInfo.set(e.uri.toString(),p.create(t)),void 0!==r?.didOpen?r.didOpen(e,t,n):n(e,t)}async sendDidChangeNotebookDocument(e){return this.doSendChange(e,void 0)}async doSendChange(e,t=this.getMatchingCells(e.notebook)){const n=async e=>{try{await this.client.sendNotification(o.DidChangeNotebookDocumentNotification.type,{notebookDocument:u.c2p.asVersionedNotebookDocumentIdentifier(e.notebook,this.client.code2ProtocolConverter),change:u.c2p.asNotebookDocumentChangeEvent(e,this.client.code2ProtocolConverter)});}catch(e){throw this.client.error(\"Sending DidChangeNotebookDocumentNotification failed\",e),e}},r=this.client.middleware?.notebooks;return void 0!==e.cells?.structure&&this.notebookSyncInfo.set(e.notebook.uri.toString(),p.create(t??[])),void 0!==r?.didChange?r?.didChange(e,n):n(e)}async sendDidSaveNotebookDocument(e){return this.doSendSave(e)}async doSendSave(e){const t=async e=>{try{await this.client.sendNotification(o.DidSaveNotebookDocumentNotification.type,{notebookDocument:{uri:this.client.code2ProtocolConverter.asUri(e.uri)}});}catch(e){throw this.client.error(\"Sending DidSaveNotebookDocumentNotification failed\",e),e}},n=this.client.middleware?.notebooks;return void 0!==n?.didSave?n.didSave(e,t):t(e)}async sendDidCloseNotebookDocument(e){return this.doSendClose(e,this.getMatchingCells(e)??[])}async doSendClose(e,t){const n=async(e,t)=>{try{await this.client.sendNotification(o.DidCloseNotebookDocumentNotification.type,{notebookDocument:{uri:this.client.code2ProtocolConverter.asUri(e.uri)},cellTextDocuments:t.map((e=>this.client.code2ProtocolConverter.asTextDocumentIdentifier(e.document)))});}catch(e){throw this.client.error(\"Sending DidCloseNotebookDocumentNotification failed\",e),e}},r=this.client.middleware?.notebooks;return this.notebookSyncInfo.delete(e.uri.toString()),void 0!==r?.didClose?r.didClose(e,t,n):n(e,t)}asNotebookDocumentChangeEvent(e,t,n,r){if(void 0!==t&&t.notebook!==e)throw new Error(\"Notebook must be identical\");const i={notebook:e};let o;if(void 0!==t?.metadata&&(i.metadata=u.c2p.asMetadata(t.metadata)),void 0!==t?.cellChanges&&t.cellChanges.length>0){const e=[];o=new Set(r.map((e=>e.document.uri.toString())));for(const n of t.cellChanges)!o.has(n.cell.document.uri.toString())||void 0===n.executionSummary&&void 0===n.metadata||e.push(n.cell);e.length>0&&(i.cells=i.cells??{},i.cells.data=e);}if((void 0!==t?.contentChanges&&t.contentChanges.length>0||void 0===t)&&void 0!==n&&void 0!==r){const e=n.cells,t=r,o=l.computeDiff(e,t,!1);let s,a;if(void 0!==o){s=void 0===o.cells?new Map:new Map(o.cells.map((e=>[e.document.uri.toString(),e]))),a=0===o.deleteCount?new Map:new Map(e.slice(o.start,o.start+o.deleteCount).map((e=>[e.document.uri.toString(),e])));for(const e of Array.from(a.keys()))s.has(e)&&(a.delete(e),s.delete(e));i.cells=i.cells??{};const t=[],n=[];if(s.size>0||a.size>0){for(const e of s.values())t.push(e);for(const e of a.values())n.push(e);}i.cells.structure={array:o,didOpen:t,didClose:n};}}return Object.keys(i).length>1?i:void 0}getMatchingCells(e,t=e.getCells()){if(void 0!==this.options.notebookSelector)for(const n of this.options.notebookSelector){if(void 0===n.notebook){if(void 0===n.cells)return;const r=this.filterCells(e,t,n.cells);return 0===r.length?void 0:r}if(d.matchNotebook(n.notebook,e))return void 0===n.cells?t:this.filterCells(e,t,n.cells)}}cellMatches(e,t){const n=this.getMatchingCells(e,[t]);return void 0!==n&&n[0]===t}filterCells(e,t,n){const r=t.filter((e=>{const t=e.document.languageId;return n.some((e=>\"*\"===e.language||t===e.language))}));return \"function\"==typeof this.client.clientOptions.notebookDocumentOptions?.filterCells?this.client.clientOptions.notebookDocumentOptions.filterCells(e,t):r}}class h{constructor(e){this.client=e,this.registrations=new Map,this.registrationType=o.NotebookDocumentSyncRegistrationType.type,r.workspace.onDidOpenTextDocument((e=>{if(e.uri.scheme!==h.CellScheme)return;const[t,n]=this.findNotebookDocumentAndCell(e);if(void 0!==t&&void 0!==n)for(const e of this.registrations.values())e instanceof g&&e.didOpenNotebookCellTextDocument(t,n);})),r.workspace.onDidChangeTextDocument((e=>{if(0===e.contentChanges.length)return;const t=e.document;if(t.uri.scheme!==h.CellScheme)return;const[n]=this.findNotebookDocumentAndCell(t);if(void 0!==n)for(const t of this.registrations.values())t instanceof g&&t.didChangeNotebookCellTextDocument(n,e);})),r.workspace.onDidCloseTextDocument((e=>{if(e.uri.scheme!==h.CellScheme)return;const[t,n]=this.findNotebookDocumentAndCell(e);if(void 0!==t&&void 0!==n)for(const e of this.registrations.values())e instanceof g&&e.didCloseNotebookCellTextDocument(t,n);}));}getState(){if(0===this.registrations.size)return {kind:\"document\",id:this.registrationType.method,registrations:!1,matches:!1};for(const e of this.registrations.values()){const t=e.getState();if(\"document\"===t.kind&&!0===t.registrations&&!0===t.matches)return {kind:\"document\",id:this.registrationType.method,registrations:!0,matches:!0}}return {kind:\"document\",id:this.registrationType.method,registrations:!0,matches:!1}}fillClientCapabilities(e){const t=c(c(e,\"notebookDocument\"),\"synchronization\");t.dynamicRegistration=!0,t.executionSummarySupport=!0;}preInitialize(e){const t=e.notebookDocumentSync;void 0!==t&&(this.dedicatedChannel=this.client.protocol2CodeConverter.asDocumentSelector(f.asDocumentSelector(t)));}initialize(e){const t=e.notebookDocumentSync;if(void 0===t)return;const n=t.id??s.generateUuid();this.register({id:n,registerOptions:t});}register(e){const t=new g(this.client,e.registerOptions);this.registrations.set(e.id,t);}unregister(e){const t=this.registrations.get(e);t&&t.dispose();}dispose(){for(const e of this.registrations.values())e.dispose();this.registrations.clear();}handles(e){if(e.uri.scheme!==h.CellScheme)return !1;if(void 0!==this.dedicatedChannel&&r.languages.match(this.dedicatedChannel,e)>0)return !0;for(const t of this.registrations.values())if(t.handles(e))return !0;return !1}getProvider(e){for(const t of this.registrations.values())if(t.handles(e.document))return t}findNotebookDocumentAndCell(e){const t=e.uri.toString();for(const e of r.workspace.notebookDocuments)for(const n of e.getCells())if(n.document.uri.toString()===t)return [e,n];return [void 0,void 0]}}t.NotebookDocumentSyncFeature=h,h.CellScheme=\"vscode-notebook-cell\";},3603:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.ProgressFeature=void 0;const r=n(152),i=n(8071);t.ProgressFeature=class{constructor(e){this._client=e,this.activeParts=new Set;}getState(){return {kind:\"window\",id:r.WorkDoneProgressCreateRequest.method,registrations:this.activeParts.size>0}}fillClientCapabilities(e){var t,n;(t=e,n=\"window\",void 0===t[n]&&(t[n]=Object.create(null)),t[n]).workDoneProgress=!0;}initialize(){const e=this._client,t=e=>{this.activeParts.delete(e);};e.onRequest(r.WorkDoneProgressCreateRequest.type,(e=>{this.activeParts.add(new i.ProgressPart(this._client,e.token,t));}));}dispose(){for(const e of this.activeParts)e.done();this.activeParts.clear();}};},8071:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.ProgressPart=void 0;const r=n(9496),i=n(152),o=n(9763);t.ProgressPart=class{constructor(e,t,n){this._client=e,this._token=t,this._reported=0,this._infinite=!1,this._lspProgressDisposable=this._client.onProgress(i.WorkDoneProgress.type,this._token,(e=>{switch(e.kind){case\"begin\":this.begin(e);break;case\"report\":this.report(e);break;case\"end\":this.done(),n&&n(this);}}));}begin(e){this._infinite=void 0===e.percentage,void 0!==this._lspProgressDisposable&&r.window.withProgress({location:r.ProgressLocation.Window,cancellable:e.cancellable,title:e.title},(async(t,n)=>{if(void 0!==this._lspProgressDisposable)return this._progress=t,this._cancellationToken=n,this._tokenDisposable=this._cancellationToken.onCancellationRequested((()=>{this._client.sendNotification(i.WorkDoneProgressCancelNotification.type,{token:this._token});})),this.report(e),new Promise(((e,t)=>{this._resolve=e,this._reject=t;}))}));}report(e){if(this._infinite&&o.string(e.message))void 0!==this._progress&&this._progress.report({message:e.message});else if(o.number(e.percentage)){const t=Math.max(0,Math.min(e.percentage,100)),n=Math.max(0,t-this._reported);this._reported+=n,void 0!==this._progress&&this._progress.report({message:e.message,increment:n});}}cancel(){this.cleanup(),void 0!==this._reject&&(this._reject(),this._resolve=void 0,this._reject=void 0);}done(){this.cleanup(),void 0!==this._resolve&&(this._resolve(),this._resolve=void 0,this._reject=void 0);}cleanup(){void 0!==this._lspProgressDisposable&&(this._lspProgressDisposable.dispose(),this._lspProgressDisposable=void 0),void 0!==this._tokenDisposable&&(this._tokenDisposable.dispose(),this._tokenDisposable=void 0),this._progress=void 0,this._cancellationToken=void 0;}};},8714:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0});const r=n(9496);class i extends r.CallHierarchyItem{constructor(e,t,n,r,i,o,s){super(e,t,n,r,i,o),void 0!==s&&(this.data=s);}}t.default=i;},6434:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0});const r=n(9496);class i extends r.CodeAction{constructor(e,t){super(e),this.data=t;}}t.default=i;},583:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0});const r=n(9496);class i extends r.CodeLens{constructor(e){super(e);}}t.default=i;},1807:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0});const r=n(9496);class i extends r.CompletionItem{constructor(e){super(e);}}t.default=i;},8785:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createConverter=void 0;const r=n(9496),i=n(152),o=n(9763),s=n(4904),a=n(1807),c=n(583),u=n(8705),l=n(6434),d=n(5316),f=n(8714),p=n(1365),g=n(3912),h=n(1065),m=n(152);var v;!function(e){e.is=function(e){let t=e;return t&&o.string(t.language)&&o.string(t.value)};}(v||(v={})),t.createConverter=function(e,t,n){const y=e||(e=>r.Uri.parse(e));function C(e){return y(e)}function S(e){let t=new d.ProtocolDiagnostic(_(e.range),e.message,D(e.severity),e.data);if(void 0!==e.code)if(\"string\"==typeof e.code||\"number\"==typeof e.code)i.CodeDescription.is(e.codeDescription)?t.code={value:e.code,target:C(e.codeDescription.href)}:t.code=e.code;else if(d.DiagnosticCode.is(e.code)){t.hasDiagnosticCode=!0;const n=e.code;t.code={value:n.value,target:C(n.target)};}return e.source&&(t.source=e.source),e.relatedInformation&&(t.relatedInformation=function(e){const t=new Array(e.length);for(let n=0;n<e.length;n++){const i=e[n];t[n]=new r.DiagnosticRelatedInformation(q(i.location),i.message);}return t}(e.relatedInformation)),Array.isArray(e.tags)&&(t.tags=function(e){if(!e)return;let t=[];for(let n of e){let e=T(n);void 0!==e&&t.push(e);}return t.length>0?t:void 0}(e.tags)),t}function T(e){switch(e){case i.DiagnosticTag.Unnecessary:return r.DiagnosticTag.Unnecessary;case i.DiagnosticTag.Deprecated:return r.DiagnosticTag.Deprecated;default:return}}function b(e){return e?new r.Position(e.line,e.character):void 0}function _(e){return e?new r.Range(e.start.line,e.start.character,e.end.line,e.end.character):void 0}async function R(e,t){return s.map(e,(e=>new r.Range(e.start.line,e.start.character,e.end.line,e.end.character)),t)}function D(e){if(null==e)return r.DiagnosticSeverity.Error;switch(e){case i.DiagnosticSeverity.Error:return r.DiagnosticSeverity.Error;case i.DiagnosticSeverity.Warning:return r.DiagnosticSeverity.Warning;case i.DiagnosticSeverity.Information:return r.DiagnosticSeverity.Information;case i.DiagnosticSeverity.Hint:return r.DiagnosticSeverity.Hint}return r.DiagnosticSeverity.Error}function w(e){if(o.string(e))return e;switch(e.kind){case i.MarkupKind.Markdown:return E(e.value);case i.MarkupKind.PlainText:return e.value;default:return `Unsupported Markup content received. Kind is: ${e.kind}`}}function E(e){let o;if(void 0===e||\"string\"==typeof e)o=new r.MarkdownString(e);else switch(e.kind){case i.MarkupKind.Markdown:o=new r.MarkdownString(e.value);break;case i.MarkupKind.PlainText:o=new r.MarkdownString,o.appendText(e.value);break;default:o=new r.MarkdownString,o.appendText(`Unsupported Markup content received. Kind is: ${e.kind}`);}return o.isTrusted=t,o.supportHtml=n,o}function P(e){if(e===i.CompletionItemTag.Deprecated)return r.CompletionItemTag.Deprecated}function k(e,t,n,s,c,u){const l=function(e){if(null==e)return [];const t=[];for(const n of e){const e=P(n);void 0!==e&&t.push(e);}return t}(e.tags),d=function(e){return i.CompletionItemLabelDetails.is(e.labelDetails)?{label:e.label,detail:e.labelDetails.detail,description:e.labelDetails.description}:e.label}(e),f=new a.default(d);e.detail&&(f.detail=e.detail),e.documentation&&(f.documentation=w(e.documentation),f.documentationFormat=o.string(e.documentation)?\"$string\":e.documentation.kind),e.filterText&&(f.filterText=e.filterText);const p=function(e,t,n){const o=e.insertTextFormat??n;if(void 0!==e.textEdit||void 0!==t){const[n,a]=void 0!==e.textEdit?(s=e.textEdit,i.InsertReplaceEdit.is(s)?[{inserting:_(s.insert),replacing:_(s.replace)},s.newText]:[_(s.range),s.newText]):[t,e.textEditText??e.label];return o===i.InsertTextFormat.Snippet?{text:new r.SnippetString(a),range:n,fromEdit:!0}:{text:a,range:n,fromEdit:!0}}return e.insertText?o===i.InsertTextFormat.Snippet?{text:new r.SnippetString(e.insertText),fromEdit:!1}:{text:e.insertText,fromEdit:!1}:void 0;var s;}(e,n,c);if(p&&(f.insertText=p.text,f.range=p.range,f.fromEdit=p.fromEdit),o.number(e.kind)){let[t,n]=(g=e.kind,i.CompletionItemKind.Text<=g&&g<=i.CompletionItemKind.TypeParameter?[g-1,void 0]:[r.CompletionItemKind.Text,g]);f.kind=t,n&&(f.originalItemKind=n);}var g;e.sortText&&(f.sortText=e.sortText),e.additionalTextEdits&&(f.additionalTextEdits=O(e.additionalTextEdits));const h=void 0!==e.commitCharacters?o.stringArray(e.commitCharacters)?e.commitCharacters:void 0:t;h&&(f.commitCharacters=h.slice()),e.command&&(f.command=G(e.command)),!0!==e.deprecated&&!1!==e.deprecated||(f.deprecated=e.deprecated,!0===e.deprecated&&l.push(r.CompletionItemTag.Deprecated)),!0!==e.preselect&&!1!==e.preselect||(f.preselect=e.preselect);const m=e.data??u;void 0!==m&&(f.data=m),l.length>0&&(f.tags=l);const v=e.insertTextMode??s;return void 0!==v&&(f.insertTextMode=v,v===i.InsertTextMode.asIs&&(f.keepWhitespace=!0)),f}function x(e){if(e)return new r.TextEdit(_(e.range),e.newText)}async function N(e,t){if(e)return s.map(e,x,t)}function O(e){if(!e)return;const t=new Array(e.length);for(let n=0;n<e.length;n++)t[n]=x(e[n]);return t}async function I(e,t){return s.mapAsync(e,A,t)}async function A(e,t){let n=new r.SignatureInformation(e.label);return void 0!==e.documentation&&(n.documentation=w(e.documentation)),void 0!==e.parameters&&(n.parameters=await F(e.parameters,t)),void 0!==e.activeParameter&&(n.activeParameter=e.activeParameter),n}function F(e,t){return s.map(e,L,t)}function L(e){let t=new r.ParameterInformation(e.label);return e.documentation&&(t.documentation=w(e.documentation)),t}function q(e){return e?new r.Location(y(e.uri),_(e.range)):void 0}function M(e){if(!e)return;let t={targetUri:y(e.targetUri),targetRange:_(e.targetRange),originSelectionRange:_(e.originSelectionRange),targetSelectionRange:_(e.targetSelectionRange)};if(!t.targetSelectionRange)throw new Error(\"targetSelectionRange must not be undefined or null\");return t}async function j(e,t){if(e){if(o.array(e)){if(0===e.length)return [];if(i.LocationLink.is(e[0])){const n=e;return s.map(n,M,t)}{const n=e;return s.map(n,q,t)}}return i.LocationLink.is(e)?[M(e)]:q(e)}}function U(e){let t=new r.DocumentHighlight(_(e.range));return o.number(e.kind)&&(t.kind=H(e.kind)),t}function H(e){switch(e){case i.DocumentHighlightKind.Text:return r.DocumentHighlightKind.Text;case i.DocumentHighlightKind.Read:return r.DocumentHighlightKind.Read;case i.DocumentHighlightKind.Write:return r.DocumentHighlightKind.Write}return r.DocumentHighlightKind.Text}function K(e){return e<=i.SymbolKind.TypeParameter?e-1:r.SymbolKind.Property}function W(e){if(e===i.SymbolTag.Deprecated)return r.SymbolTag.Deprecated}function z(e){if(null==e)return;const t=[];for(const n of e){const e=W(n);void 0!==e&&t.push(e);}return 0===t.length?void 0:t}function V(e){const t=e.data,n=e.location,i=void 0===n.range||void 0!==t?new g.default(e.name,K(e.kind),e.containerName??\"\",void 0===n.range?y(n.uri):new r.Location(y(e.location.uri),_(n.range)),t):new r.SymbolInformation(e.name,K(e.kind),e.containerName??\"\",new r.Location(y(e.location.uri),_(n.range)));return $(i,e),i}function B(e){let t=new r.DocumentSymbol(e.name,e.detail||\"\",K(e.kind),_(e.range),_(e.selectionRange));if($(t,e),void 0!==e.children&&e.children.length>0){let n=[];for(let t of e.children)n.push(B(t));t.children=n;}return t}function $(e,t){e.tags=z(t.tags),t.deprecated&&(e.tags?e.tags.includes(r.SymbolTag.Deprecated)||(e.tags=e.tags.concat(r.SymbolTag.Deprecated)):e.tags=[r.SymbolTag.Deprecated]);}function G(e){let t={title:e.title,command:e.command};return e.arguments&&(t.arguments=e.arguments),t}const J=new Map;function Y(e){if(null==e)return;let t=J.get(e);if(t)return t;let n=e.split(\".\");t=r.CodeActionKind.Empty;for(let e of n)t=t.append(e);return t}async function Z(e,t){if(null==e)return;let n=new l.default(e.title,e.data);return void 0!==e.kind&&(n.kind=Y(e.kind)),void 0!==e.diagnostics&&(n.diagnostics=function(e){const t=new Array(e.length);for(let n=0;n<e.length;n++)t[n]=S(e[n]);return t}(e.diagnostics)),void 0!==e.edit&&(n.edit=await Q(e.edit,t)),void 0!==e.command&&(n.command=G(e.command)),void 0!==e.isPreferred&&(n.isPreferred=e.isPreferred),void 0!==e.disabled&&(n.disabled={reason:e.disabled.reason}),n}function X(e){if(!e)return;let t=new c.default(_(e.range));return e.command&&(t.command=G(e.command)),void 0!==e.data&&null!==e.data&&(t.data=e.data),t}async function Q(e,t){if(!e)return;const n=new Map;if(void 0!==e.changeAnnotations){const r=e.changeAnnotations;await s.forEach(Object.keys(r),(e=>{const t=function(e){if(void 0!==e)return {label:e.label,needsConfirmation:!!e.needsConfirmation,description:e.description}}(r[e]);n.set(e,t);}),t);}const o=e=>void 0===e?void 0:n.get(e),a=new r.WorkspaceEdit;if(e.documentChanges){const n=e.documentChanges;await s.forEach(n,(e=>{if(i.CreateFile.is(e))a.createFile(y(e.uri),e.options,o(e.annotationId));else if(i.RenameFile.is(e))a.renameFile(y(e.oldUri),y(e.newUri),e.options,o(e.annotationId));else if(i.DeleteFile.is(e))a.deleteFile(y(e.uri),e.options,o(e.annotationId));else {if(!i.TextDocumentEdit.is(e))throw new Error(`Unknown workspace edit change received:\\n${JSON.stringify(e,void 0,4)}`);{const t=y(e.textDocument.uri);for(const n of e.edits)i.AnnotatedTextEdit.is(n)?a.replace(t,_(n.range),n.newText,o(n.annotationId)):a.replace(t,_(n.range),n.newText);}}}),t);}else if(e.changes){const n=e.changes;await s.forEach(Object.keys(n),(e=>{a.set(y(e),O(n[e]));}),t);}return a}function ee(e){let t=_(e.range),n=e.target?C(e.target):void 0,r=new u.default(t,n);return void 0!==e.tooltip&&(r.tooltip=e.tooltip),void 0!==e.data&&null!==e.data&&(r.data=e.data),r}function te(e){return new r.Color(e.red,e.green,e.blue,e.alpha)}function ne(e){return new r.ColorInformation(_(e.range),te(e.color))}function re(e){let t=new r.ColorPresentation(e.label);return t.additionalTextEdits=O(e.additionalTextEdits),e.textEdit&&(t.textEdit=x(e.textEdit)),t}function ie(e){if(e)switch(e){case i.FoldingRangeKind.Comment:return r.FoldingRangeKind.Comment;case i.FoldingRangeKind.Imports:return r.FoldingRangeKind.Imports;case i.FoldingRangeKind.Region:return r.FoldingRangeKind.Region}}function oe(e){return new r.FoldingRange(e.startLine,e.endLine,ie(e.kind))}function se(e){return new r.SelectionRange(_(e.range),e.parent?se(e.parent):void 0)}function ae(e){return i.InlineValueText.is(e)?new r.InlineValueText(_(e.range),e.text):i.InlineValueVariableLookup.is(e)?new r.InlineValueVariableLookup(_(e.range),e.variableName,e.caseSensitiveLookup):new r.InlineValueEvaluatableExpression(_(e.range),e.expression)}async function ce(e,t){const n=\"string\"==typeof e.label?e.label:await s.map(e.label,ue,t),r=new h.default(b(e.position),n);return void 0!==e.kind&&(r.kind=e.kind),void 0!==e.textEdits&&(r.textEdits=await N(e.textEdits,t)),void 0!==e.tooltip&&(r.tooltip=le(e.tooltip)),void 0!==e.paddingLeft&&(r.paddingLeft=e.paddingLeft),void 0!==e.paddingRight&&(r.paddingRight=e.paddingRight),void 0!==e.data&&(r.data=e.data),r}function ue(e){const t=new r.InlayHintLabelPart(e.value);return void 0!==e.location&&(t.location=q(e.location)),void 0!==e.tooltip&&(t.tooltip=le(e.tooltip)),void 0!==e.command&&(t.command=G(e.command)),t}function le(e){return \"string\"==typeof e?e:E(e)}function de(e){if(null===e)return;const t=new f.default(K(e.kind),e.name,e.detail||\"\",C(e.uri),_(e.range),_(e.selectionRange),e.data);return void 0!==e.tags&&(t.tags=z(e.tags)),t}async function fe(e,t){return new r.CallHierarchyIncomingCall(de(e.from),await R(e.fromRanges,t))}async function pe(e,t){return new r.CallHierarchyOutgoingCall(de(e.to),await R(e.fromRanges,t))}function ge(e){return new r.SemanticTokensEdit(e.start,e.deleteCount,void 0!==e.data?new Uint32Array(e.data):void 0)}function he(e){if(null===e)return;let t=new p.default(K(e.kind),e.name,e.detail||\"\",C(e.uri),_(e.range),_(e.selectionRange),e.data);return void 0!==e.tags&&(t.tags=z(e.tags)),t}return J.set(i.CodeActionKind.Empty,r.CodeActionKind.Empty),J.set(i.CodeActionKind.QuickFix,r.CodeActionKind.QuickFix),J.set(i.CodeActionKind.Refactor,r.CodeActionKind.Refactor),J.set(i.CodeActionKind.RefactorExtract,r.CodeActionKind.RefactorExtract),J.set(i.CodeActionKind.RefactorInline,r.CodeActionKind.RefactorInline),J.set(i.CodeActionKind.RefactorRewrite,r.CodeActionKind.RefactorRewrite),J.set(i.CodeActionKind.Source,r.CodeActionKind.Source),J.set(i.CodeActionKind.SourceOrganizeImports,r.CodeActionKind.SourceOrganizeImports),{asUri:C,asDocumentSelector:function(e){const t=[];for(const n of e)if(\"string\"==typeof n)t.push(n);else if(m.NotebookCellTextDocumentFilter.is(n))if(\"string\"==typeof n.notebook)t.push({notebookType:n.notebook,language:n.language});else {const e=n.notebook.notebookType??\"*\";t.push({notebookType:e,scheme:n.notebook.scheme,pattern:n.notebook.pattern,language:n.language});}else m.TextDocumentFilter.is(n)&&t.push({language:n.language,scheme:n.scheme,pattern:n.pattern});return t},asDiagnostics:async function(e,t){return s.map(e,S,t)},asDiagnostic:S,asRange:_,asRanges:R,asPosition:b,asDiagnosticSeverity:D,asDiagnosticTag:T,asHover:function(e){if(e)return new r.Hover(function(e){if(o.string(e))return E(e);if(v.is(e))return E().appendCodeblock(e.value,e.language);if(Array.isArray(e)){let t=[];for(let n of e){let e=E();v.is(n)?e.appendCodeblock(n.value,n.language):e.appendMarkdown(n),t.push(e);}return t}return E(e)}(e.contents),_(e.range))},asCompletionResult:async function(e,t,n){if(!e)return;if(Array.isArray(e))return s.map(e,(e=>k(e,t)),n);const o=e,{defaultRange:a,commitCharacters:c}=function(e,t){const n=e.itemDefaults?.editRange,r=e.itemDefaults?.commitCharacters??t;return i.Range.is(n)?{defaultRange:_(n),commitCharacters:r}:void 0!==n?{defaultRange:{inserting:_(n.insert),replacing:_(n.replace)},commitCharacters:r}:{defaultRange:void 0,commitCharacters:r}}(o,t),u=await s.map(o.items,(e=>k(e,c,a,o.itemDefaults?.insertTextMode,o.itemDefaults?.insertTextFormat,o.itemDefaults?.data)),n);return new r.CompletionList(u,o.isIncomplete)},asCompletionItem:k,asTextEdit:x,asTextEdits:N,asSignatureHelp:async function(e,t){if(!e)return;let n=new r.SignatureHelp;return o.number(e.activeSignature)?n.activeSignature=e.activeSignature:n.activeSignature=0,o.number(e.activeParameter)?n.activeParameter=e.activeParameter:n.activeParameter=0,e.signatures&&(n.signatures=await I(e.signatures,t)),n},asSignatureInformations:I,asSignatureInformation:A,asParameterInformations:F,asParameterInformation:L,asDeclarationResult:async function(e,t){if(e)return j(e,t)},asDefinitionResult:async function(e,t){if(e)return j(e,t)},asLocation:q,asReferences:async function(e,t){if(e)return s.map(e,q,t)},asDocumentHighlights:async function(e,t){if(e)return s.map(e,U,t)},asDocumentHighlight:U,asDocumentHighlightKind:H,asSymbolKind:K,asSymbolTag:W,asSymbolTags:z,asSymbolInformations:async function(e,t){if(e)return s.map(e,V,t)},asSymbolInformation:V,asDocumentSymbols:async function(e,t){if(null!=e)return s.map(e,B,t)},asDocumentSymbol:B,asCommand:G,asCommands:async function(e,t){if(e)return s.map(e,G,t)},asCodeAction:Z,asCodeActionKind:Y,asCodeActionKinds:function(e){if(null!=e)return e.map((e=>Y(e)))},asCodeActionResult:function(e,t){return s.mapAsync(e,(async e=>i.Command.is(e)?G(e):Z(e,t)),t)},asCodeLens:X,asCodeLenses:async function(e,t){if(e)return s.map(e,X,t)},asWorkspaceEdit:Q,asDocumentLink:ee,asDocumentLinks:async function(e,t){if(e)return s.map(e,ee,t)},asFoldingRangeKind:ie,asFoldingRange:oe,asFoldingRanges:async function(e,t){if(e)return s.map(e,oe,t)},asColor:te,asColorInformation:ne,asColorInformations:async function(e,t){if(e)return s.map(e,ne,t)},asColorPresentation:re,asColorPresentations:async function(e,t){if(e)return s.map(e,re,t)},asSelectionRange:se,asSelectionRanges:async function(e,t){return Array.isArray(e)?s.map(e,se,t):[]},asInlineValue:ae,asInlineValues:async function(e,t){return Array.isArray(e)?s.map(e,ae,t):[]},asInlayHint:ce,asInlayHints:async function(e,t){if(Array.isArray(e))return s.mapAsync(e,ce,t)},asSemanticTokensLegend:function(e){return e},asSemanticTokens:async function(e,t){if(null!=e)return new r.SemanticTokens(new Uint32Array(e.data),e.resultId)},asSemanticTokensEdit:ge,asSemanticTokensEdits:async function(e,t){if(null!=e)return new r.SemanticTokensEdits(e.edits.map(ge),e.resultId)},asCallHierarchyItem:de,asCallHierarchyItems:async function(e,t){if(null!==e)return s.map(e,de,t)},asCallHierarchyIncomingCall:fe,asCallHierarchyIncomingCalls:async function(e,t){if(null!==e)return s.mapAsync(e,fe,t)},asCallHierarchyOutgoingCall:pe,asCallHierarchyOutgoingCalls:async function(e,t){if(null!==e)return s.mapAsync(e,pe,t)},asLinkedEditingRanges:async function(e,t){if(null!=e)return new r.LinkedEditingRanges(await R(e.ranges,t),function(e){if(null!=e)return new RegExp(e)}(e.wordPattern))},asTypeHierarchyItem:he,asTypeHierarchyItems:async function(e,t){if(null!==e)return s.map(e,he,t)},asGlobPattern:function(e){if(o.string(e))return e;if(i.RelativePattern.is(e)){if(i.URI.is(e.baseUri))return new r.RelativePattern(C(e.baseUri),e.pattern);if(i.WorkspaceFolder.is(e.baseUri)){const t=r.workspace.getWorkspaceFolder(C(e.baseUri.uri));return void 0!==t?new r.RelativePattern(t,e.pattern):void 0}}}}};},5316:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.ProtocolDiagnostic=t.DiagnosticCode=void 0;const r=n(9496),i=n(9763);(t.DiagnosticCode||(t.DiagnosticCode={})).is=function(e){const t=e;return null!=t&&(i.number(t.value)||i.string(t.value))&&i.string(t.target)};class o extends r.Diagnostic{constructor(e,t,n,r){super(e,t,n),this.data=r,this.hasDiagnosticCode=!1;}}t.ProtocolDiagnostic=o;},8705:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0});const r=n(9496);class i extends r.DocumentLink{constructor(e,t){super(e,t);}}t.default=i;},1065:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0});const r=n(9496);class i extends r.InlayHint{constructor(e,t,n){super(e,t,n);}}t.default=i;},1365:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0});const r=n(9496);class i extends r.TypeHierarchyItem{constructor(e,t,n,r,i,o,s){super(e,t,n,r,i,o),void 0!==s&&(this.data=s);}}t.default=i;},3912:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0});const r=n(9496);class i extends r.SymbolInformation{constructor(e,t,n,i,o){const s=!(i instanceof r.Uri);super(e,t,n,s?i:new r.Location(i,new r.Range(0,0,0,0))),this.hasRange=s,void 0!==o&&(this.data=o);}}t.default=i;},8480:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.ReferencesFeature=void 0;const r=n(9496),i=n(152),o=n(8909),s=n(1980);class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,i.ReferencesRequest.type);}fillClientCapabilities(e){(0, o.ensure)((0, o.ensure)(e,\"textDocument\"),\"references\").dynamicRegistration=!0;}initialize(e,t){const n=this.getRegistrationOptions(t,e.referencesProvider);n&&this.register({id:s.generateUuid(),registerOptions:n});}registerLanguageProvider(e){const t=e.documentSelector,n={provideReferences:(e,t,n,r)=>{const o=this._client,s=(e,t,n,r)=>o.sendRequest(i.ReferencesRequest.type,o.code2ProtocolConverter.asReferenceParams(e,t,n),r).then((e=>r.isCancellationRequested?null:o.protocol2CodeConverter.asReferences(e,r)),(e=>o.handleFailedRequest(i.ReferencesRequest.type,r,e,null))),a=o.middleware;return a.provideReferences?a.provideReferences(e,t,n,r,s):s(e,t,n,r)}};return [this.registerProvider(t,n),n]}registerProvider(e,t){return r.languages.registerReferenceProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.ReferencesFeature=a;},6458:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.RenameFeature=void 0;const r=n(9496),i=n(152),o=n(1980),s=n(9763),a=n(8909);class c extends a.TextDocumentLanguageFeature{constructor(e){super(e,i.RenameRequest.type);}fillClientCapabilities(e){let t=(0, a.ensure)((0, a.ensure)(e,\"textDocument\"),\"rename\");t.dynamicRegistration=!0,t.prepareSupport=!0,t.prepareSupportDefaultBehavior=i.PrepareSupportDefaultBehavior.Identifier,t.honorsChangeAnnotations=!0;}initialize(e,t){const n=this.getRegistrationOptions(t,e.renameProvider);n&&(s.boolean(e.renameProvider)&&(n.prepareProvider=!1),this.register({id:o.generateUuid(),registerOptions:n}));}registerLanguageProvider(e){const t=e.documentSelector,n={provideRenameEdits:(e,t,n,r)=>{const o=this._client,s=(e,t,n,r)=>{let s={textDocument:o.code2ProtocolConverter.asTextDocumentIdentifier(e),position:o.code2ProtocolConverter.asPosition(t),newName:n};return o.sendRequest(i.RenameRequest.type,s,r).then((e=>r.isCancellationRequested?null:o.protocol2CodeConverter.asWorkspaceEdit(e,r)),(e=>o.handleFailedRequest(i.RenameRequest.type,r,e,null,!1)))},a=o.middleware;return a.provideRenameEdits?a.provideRenameEdits(e,t,n,r,s):s(e,t,n,r)},prepareRename:e.prepareProvider?(e,t,n)=>{const r=this._client,o=(e,t,n)=>{let o={textDocument:r.code2ProtocolConverter.asTextDocumentIdentifier(e),position:r.code2ProtocolConverter.asPosition(t)};return r.sendRequest(i.PrepareRenameRequest.type,o,n).then((e=>n.isCancellationRequested?null:i.Range.is(e)?r.protocol2CodeConverter.asRange(e):this.isDefaultBehavior(e)?!0===e.defaultBehavior?null:Promise.reject(new Error(\"The element can't be renamed.\")):e&&i.Range.is(e.range)?{range:r.protocol2CodeConverter.asRange(e.range),placeholder:e.placeholder}:Promise.reject(new Error(\"The element can't be renamed.\"))),(e=>{throw \"string\"==typeof e.message?new Error(e.message):new Error(\"The element can't be renamed.\")}))},s=r.middleware;return s.prepareRename?s.prepareRename(e,t,n,o):o(e,t,n)}:void 0};return [this.registerProvider(t,n),n]}registerProvider(e,t){return r.languages.registerRenameProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}isDefaultBehavior(e){const t=e;return t&&s.boolean(t.defaultBehavior)}}t.RenameFeature=c;},750:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.SelectionRangeFeature=void 0;const r=n(9496),i=n(152),o=n(8909);class s extends o.TextDocumentLanguageFeature{constructor(e){super(e,i.SelectionRangeRequest.type);}fillClientCapabilities(e){(0, o.ensure)((0, o.ensure)(e,\"textDocument\"),\"selectionRange\").dynamicRegistration=!0;}initialize(e,t){const[n,r]=this.getRegistration(t,e.selectionRangeProvider);n&&r&&this.register({id:n,registerOptions:r});}registerLanguageProvider(e){const t=e.documentSelector,n={provideSelectionRanges:(e,t,n)=>{const r=this._client,o=async(e,t,n)=>{const o={textDocument:r.code2ProtocolConverter.asTextDocumentIdentifier(e),positions:await r.code2ProtocolConverter.asPositions(t,n)};return r.sendRequest(i.SelectionRangeRequest.type,o,n).then((e=>n.isCancellationRequested?null:r.protocol2CodeConverter.asSelectionRanges(e,n)),(e=>r.handleFailedRequest(i.SelectionRangeRequest.type,n,e,null)))},s=r.middleware;return s.provideSelectionRanges?s.provideSelectionRanges(e,t,n,o):o(e,t,n)}};return [this.registerProvider(t,n),n]}registerProvider(e,t){return r.languages.registerSelectionRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.SelectionRangeFeature=s;},9957:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.SemanticTokensFeature=void 0;const r=n(9496),i=n(152),o=n(8909),s=n(9763);class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,i.SemanticTokensRegistrationType.type);}fillClientCapabilities(e){const t=(0, o.ensure)((0, o.ensure)(e,\"textDocument\"),\"semanticTokens\");t.dynamicRegistration=!0,t.tokenTypes=[i.SemanticTokenTypes.namespace,i.SemanticTokenTypes.type,i.SemanticTokenTypes.class,i.SemanticTokenTypes.enum,i.SemanticTokenTypes.interface,i.SemanticTokenTypes.struct,i.SemanticTokenTypes.typeParameter,i.SemanticTokenTypes.parameter,i.SemanticTokenTypes.variable,i.SemanticTokenTypes.property,i.SemanticTokenTypes.enumMember,i.SemanticTokenTypes.event,i.SemanticTokenTypes.function,i.SemanticTokenTypes.method,i.SemanticTokenTypes.macro,i.SemanticTokenTypes.keyword,i.SemanticTokenTypes.modifier,i.SemanticTokenTypes.comment,i.SemanticTokenTypes.string,i.SemanticTokenTypes.number,i.SemanticTokenTypes.regexp,i.SemanticTokenTypes.operator,i.SemanticTokenTypes.decorator],t.tokenModifiers=[i.SemanticTokenModifiers.declaration,i.SemanticTokenModifiers.definition,i.SemanticTokenModifiers.readonly,i.SemanticTokenModifiers.static,i.SemanticTokenModifiers.deprecated,i.SemanticTokenModifiers.abstract,i.SemanticTokenModifiers.async,i.SemanticTokenModifiers.modification,i.SemanticTokenModifiers.documentation,i.SemanticTokenModifiers.defaultLibrary],t.formats=[i.TokenFormat.Relative],t.requests={range:!0,full:{delta:!0}},t.multilineTokenSupport=!1,t.overlappingTokenSupport=!1,t.serverCancelSupport=!0,t.augmentsSyntaxTokens=!0,(0, o.ensure)((0, o.ensure)(e,\"workspace\"),\"semanticTokens\").refreshSupport=!0;}initialize(e,t){this._client.onRequest(i.SemanticTokensRefreshRequest.type,(async()=>{for(const e of this.getAllProviders())e.onDidChangeSemanticTokensEmitter.fire();}));const[n,r]=this.getRegistration(t,e.semanticTokensProvider);n&&r&&this.register({id:n,registerOptions:r});}registerLanguageProvider(e){const t=e.documentSelector,n=s.boolean(e.full)?e.full:void 0!==e.full,o=void 0!==e.full&&\"boolean\"!=typeof e.full&&!0===e.full.delta,a=new r.EventEmitter,c=n?{onDidChangeSemanticTokens:a.event,provideDocumentSemanticTokens:(e,t)=>{const n=this._client,r=n.middleware,o=(e,t)=>{const r={textDocument:n.code2ProtocolConverter.asTextDocumentIdentifier(e)};return n.sendRequest(i.SemanticTokensRequest.type,r,t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asSemanticTokens(e,t)),(e=>n.handleFailedRequest(i.SemanticTokensRequest.type,t,e,null)))};return r.provideDocumentSemanticTokens?r.provideDocumentSemanticTokens(e,t,o):o(e,t)},provideDocumentSemanticTokensEdits:o?(e,t,n)=>{const r=this._client,o=r.middleware,s=(e,t,n)=>{const o={textDocument:r.code2ProtocolConverter.asTextDocumentIdentifier(e),previousResultId:t};return r.sendRequest(i.SemanticTokensDeltaRequest.type,o,n).then((async e=>n.isCancellationRequested?null:i.SemanticTokens.is(e)?await r.protocol2CodeConverter.asSemanticTokens(e,n):await r.protocol2CodeConverter.asSemanticTokensEdits(e,n)),(e=>r.handleFailedRequest(i.SemanticTokensDeltaRequest.type,n,e,null)))};return o.provideDocumentSemanticTokensEdits?o.provideDocumentSemanticTokensEdits(e,t,n,s):s(e,t,n)}:void 0}:void 0,u=!0===e.range?{provideDocumentRangeSemanticTokens:(e,t,n)=>{const r=this._client,o=r.middleware,s=(e,t,n)=>{const o={textDocument:r.code2ProtocolConverter.asTextDocumentIdentifier(e),range:r.code2ProtocolConverter.asRange(t)};return r.sendRequest(i.SemanticTokensRangeRequest.type,o,n).then((e=>n.isCancellationRequested?null:r.protocol2CodeConverter.asSemanticTokens(e,n)),(e=>r.handleFailedRequest(i.SemanticTokensRangeRequest.type,n,e,null)))};return o.provideDocumentRangeSemanticTokens?o.provideDocumentRangeSemanticTokens(e,t,n,s):s(e,t,n)}}:void 0,l=[],d=this._client,f=d.protocol2CodeConverter.asSemanticTokensLegend(e.legend),p=d.protocol2CodeConverter.asDocumentSelector(t);return void 0!==c&&l.push(r.languages.registerDocumentSemanticTokensProvider(p,c,f)),void 0!==u&&l.push(r.languages.registerDocumentRangeSemanticTokensProvider(p,u,f)),[new r.Disposable((()=>l.forEach((e=>e.dispose())))),{range:u,full:c,onDidChangeSemanticTokensEmitter:a}]}}t.SemanticTokensFeature=a;},2908:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.SignatureHelpFeature=void 0;const r=n(9496),i=n(152),o=n(8909),s=n(1980);class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,i.SignatureHelpRequest.type);}fillClientCapabilities(e){let t=(0, o.ensure)((0, o.ensure)(e,\"textDocument\"),\"signatureHelp\");t.dynamicRegistration=!0,t.signatureInformation={documentationFormat:[i.MarkupKind.Markdown,i.MarkupKind.PlainText]},t.signatureInformation.parameterInformation={labelOffsetSupport:!0},t.signatureInformation.activeParameterSupport=!0,t.contextSupport=!0;}initialize(e,t){const n=this.getRegistrationOptions(t,e.signatureHelpProvider);n&&this.register({id:s.generateUuid(),registerOptions:n});}registerLanguageProvider(e){const t={provideSignatureHelp:(e,t,n,r)=>{const o=this._client,s=(e,t,n,r)=>o.sendRequest(i.SignatureHelpRequest.type,o.code2ProtocolConverter.asSignatureHelpParams(e,t,n),r).then((e=>r.isCancellationRequested?null:o.protocol2CodeConverter.asSignatureHelp(e,r)),(e=>o.handleFailedRequest(i.SignatureHelpRequest.type,r,e,null))),a=o.middleware;return a.provideSignatureHelp?a.provideSignatureHelp(e,t,r,n,s):s(e,t,r,n)}};return [this.registerProvider(e,t),t]}registerProvider(e,t){const n=this._client.protocol2CodeConverter.asDocumentSelector(e.documentSelector);if(void 0===e.retriggerCharacters){const i=e.triggerCharacters||[];return r.languages.registerSignatureHelpProvider(n,t,...i)}{const i={triggerCharacters:e.triggerCharacters||[],retriggerCharacters:e.retriggerCharacters||[]};return r.languages.registerSignatureHelpProvider(n,t,i)}}}t.SignatureHelpFeature=a;},743:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.DidSaveTextDocumentFeature=t.WillSaveWaitUntilFeature=t.WillSaveFeature=t.DidChangeTextDocumentFeature=t.DidCloseTextDocumentFeature=t.DidOpenTextDocumentFeature=void 0;const r=n(9496),i=n(152),o=n(8909),s=n(4904),a=n(1980);class c extends o.TextDocumentEventFeature{constructor(e,t){super(e,r.workspace.onDidOpenTextDocument,i.DidOpenTextDocumentNotification.type,(()=>e.middleware.didOpen),(t=>e.code2ProtocolConverter.asOpenTextDocumentParams(t)),(e=>e),o.TextDocumentEventFeature.textDocumentFilter),this._syncedDocuments=t;}get openDocuments(){return this._syncedDocuments.values()}fillClientCapabilities(e){(0, o.ensure)((0, o.ensure)(e,\"textDocument\"),\"synchronization\").dynamicRegistration=!0;}initialize(e,t){const n=e.resolvedTextDocumentSync;t&&n&&n.openClose&&this.register({id:a.generateUuid(),registerOptions:{documentSelector:t}});}get registrationType(){return i.DidOpenTextDocumentNotification.type}register(e){if(super.register(e),!e.registerOptions.documentSelector)return;const t=this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector);r.workspace.textDocuments.forEach((e=>{const n=e.uri.toString();if(!this._syncedDocuments.has(n)&&r.languages.match(t,e)>0&&!this._client.hasDedicatedTextSynchronizationFeature(e)){const t=this._client.middleware,r=e=>this._client.sendNotification(this._type,this._createParams(e));(t.didOpen?t.didOpen(e,r):r(e)).catch((e=>{this._client.error(`Sending document notification ${this._type.method} failed`,e);})),this._syncedDocuments.set(n,e);}}));}notificationSent(e,t,n){super.notificationSent(e,t,n),this._syncedDocuments.set(e.uri.toString(),e);}}t.DidOpenTextDocumentFeature=c;class u extends o.TextDocumentEventFeature{constructor(e,t){super(e,r.workspace.onDidCloseTextDocument,i.DidCloseTextDocumentNotification.type,(()=>e.middleware.didClose),(t=>e.code2ProtocolConverter.asCloseTextDocumentParams(t)),(e=>e),o.TextDocumentEventFeature.textDocumentFilter),this._syncedDocuments=t;}get registrationType(){return i.DidCloseTextDocumentNotification.type}fillClientCapabilities(e){(0, o.ensure)((0, o.ensure)(e,\"textDocument\"),\"synchronization\").dynamicRegistration=!0;}initialize(e,t){let n=e.resolvedTextDocumentSync;t&&n&&n.openClose&&this.register({id:a.generateUuid(),registerOptions:{documentSelector:t}});}notificationSent(e,t,n){super.notificationSent(e,t,n),this._syncedDocuments.delete(e.uri.toString());}unregister(e){const t=this._selectors.get(e);super.unregister(e);const n=this._selectors.values();this._syncedDocuments.forEach((e=>{if(r.languages.match(t,e)>0&&!this._selectorFilter(n,e)&&!this._client.hasDedicatedTextSynchronizationFeature(e)){let t=this._client.middleware,n=e=>this._client.sendNotification(this._type,this._createParams(e));this._syncedDocuments.delete(e.uri.toString()),(t.didClose?t.didClose(e,n):n(e)).catch((e=>{this._client.error(`Sending document notification ${this._type.method} failed`,e);}));}}));}}t.DidCloseTextDocumentFeature=u;class l extends o.DynamicDocumentFeature{constructor(e){super(e),this._forcingDelivery=!1,this._changeData=new Map,this._onNotificationSent=new r.EventEmitter;}get registrationType(){return i.DidChangeTextDocumentNotification.type}fillClientCapabilities(e){(0, o.ensure)((0, o.ensure)(e,\"textDocument\"),\"synchronization\").dynamicRegistration=!0;}initialize(e,t){let n=e.resolvedTextDocumentSync;t&&n&&void 0!==n.change&&n.change!==i.TextDocumentSyncKind.None&&this.register({id:a.generateUuid(),registerOptions:Object.assign({},{documentSelector:t},{syncKind:n.change})});}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=r.workspace.onDidChangeTextDocument(this.callback,this)),this._changeData.set(e.id,{syncKind:e.registerOptions.syncKind,documentSelector:this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector)}));}*getDocumentSelectors(){for(const e of this._changeData.values())yield e.documentSelector;}async callback(e){if(0===e.contentChanges.length)return;const t=[];for(const n of this._changeData.values())if(r.languages.match(n.documentSelector,e.document)>0&&!this._client.hasDedicatedTextSynchronizationFeature(e.document)){const r=this._client.middleware;if(n.syncKind===i.TextDocumentSyncKind.Incremental){const n=async e=>{const t=this._client.code2ProtocolConverter.asChangeTextDocumentParams(e);await this._client.sendNotification(i.DidChangeTextDocumentNotification.type,t),this.notificationSent(e,i.DidChangeTextDocumentNotification.type,t);};t.push(r.didChange?r.didChange(e,(e=>n(e))):n(e));}else if(n.syncKind===i.TextDocumentSyncKind.Full){const n=async e=>{const t=async e=>{const t=this._client.code2ProtocolConverter.asChangeTextDocumentParams(e.document);await this._client.sendNotification(i.DidChangeTextDocumentNotification.type,t),this.notificationSent(e,i.DidChangeTextDocumentNotification.type,t);};return this._changeDelayer?(this._changeDelayer.uri!==e.document.uri.toString()&&(await this.forceDelivery(),this._changeDelayer.uri=e.document.uri.toString()),this._changeDelayer.delayer.trigger((()=>t(e)))):(this._changeDelayer={uri:e.document.uri.toString(),delayer:new s.Delayer(200)},this._changeDelayer.delayer.trigger((()=>t(e)),-1))};t.push(r.didChange?r.didChange(e,(e=>n(e))):n(e));}}return Promise.all(t).then(void 0,(e=>{throw this._client.error(`Sending document notification ${i.DidChangeTextDocumentNotification.type.method} failed`,e),e}))}get onNotificationSent(){return this._onNotificationSent.event}notificationSent(e,t,n){this._onNotificationSent.fire({original:e,type:t,params:n});}unregister(e){this._changeData.delete(e),0===this._changeData.size&&this._listener&&(this._listener.dispose(),this._listener=void 0);}dispose(){void 0!==this._changeDelayer&&this._changeDelayer.delayer.cancel(),this._changeDelayer=void 0,this._forcingDelivery=!1,this._changeData.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0);}async forceDelivery(){if(!this._forcingDelivery&&this._changeDelayer)try{return this._forcingDelivery=!0,this._changeDelayer.delayer.forceDelivery()}finally{this._forcingDelivery=!1;}}getProvider(e){for(const t of this._changeData.values())if(r.languages.match(t.documentSelector,e)>0)return {send:e=>this.callback(e)}}}t.DidChangeTextDocumentFeature=l;class d extends o.TextDocumentEventFeature{constructor(e){super(e,r.workspace.onWillSaveTextDocument,i.WillSaveTextDocumentNotification.type,(()=>e.middleware.willSave),(t=>e.code2ProtocolConverter.asWillSaveTextDocumentParams(t)),(e=>e.document),((e,t)=>o.TextDocumentEventFeature.textDocumentFilter(e,t.document)));}get registrationType(){return i.WillSaveTextDocumentNotification.type}fillClientCapabilities(e){(0, o.ensure)((0, o.ensure)(e,\"textDocument\"),\"synchronization\").willSave=!0;}initialize(e,t){let n=e.resolvedTextDocumentSync;t&&n&&n.willSave&&this.register({id:a.generateUuid(),registerOptions:{documentSelector:t}});}}t.WillSaveFeature=d;class f extends o.DynamicDocumentFeature{constructor(e){super(e),this._selectors=new Map;}getDocumentSelectors(){return this._selectors.values()}get registrationType(){return i.WillSaveTextDocumentWaitUntilRequest.type}fillClientCapabilities(e){(0, o.ensure)((0, o.ensure)(e,\"textDocument\"),\"synchronization\").willSaveWaitUntil=!0;}initialize(e,t){let n=e.resolvedTextDocumentSync;t&&n&&n.willSaveWaitUntil&&this.register({id:a.generateUuid(),registerOptions:{documentSelector:t}});}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=r.workspace.onWillSaveTextDocument(this.callback,this)),this._selectors.set(e.id,this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector)));}callback(e){if(o.TextDocumentEventFeature.textDocumentFilter(this._selectors.values(),e.document)&&!this._client.hasDedicatedTextSynchronizationFeature(e.document)){let t=this._client.middleware,n=e=>this._client.sendRequest(i.WillSaveTextDocumentWaitUntilRequest.type,this._client.code2ProtocolConverter.asWillSaveTextDocumentParams(e)).then((async e=>{let t=await this._client.protocol2CodeConverter.asTextEdits(e);return void 0===t?[]:t}));e.waitUntil(t.willSaveWaitUntil?t.willSaveWaitUntil(e,n):n(e));}}unregister(e){this._selectors.delete(e),0===this._selectors.size&&this._listener&&(this._listener.dispose(),this._listener=void 0);}dispose(){this._selectors.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0);}}t.WillSaveWaitUntilFeature=f;class p extends o.TextDocumentEventFeature{constructor(e){super(e,r.workspace.onDidSaveTextDocument,i.DidSaveTextDocumentNotification.type,(()=>e.middleware.didSave),(t=>e.code2ProtocolConverter.asSaveTextDocumentParams(t,this._includeText)),(e=>e),o.TextDocumentEventFeature.textDocumentFilter),this._includeText=!1;}get registrationType(){return i.DidSaveTextDocumentNotification.type}fillClientCapabilities(e){(0, o.ensure)((0, o.ensure)(e,\"textDocument\"),\"synchronization\").didSave=!0;}initialize(e,t){const n=e.resolvedTextDocumentSync;if(t&&n&&n.save){const e=\"boolean\"==typeof n.save?{includeText:!1}:{includeText:!!n.save.includeText};this.register({id:a.generateUuid(),registerOptions:Object.assign({},{documentSelector:t},e)});}}register(e){this._includeText=!!e.registerOptions.includeText,super.register(e);}}t.DidSaveTextDocumentFeature=p;},328:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.TypeDefinitionFeature=void 0;const r=n(9496),i=n(152),o=n(8909);class s extends o.TextDocumentLanguageFeature{constructor(e){super(e,i.TypeDefinitionRequest.type);}fillClientCapabilities(e){(0, o.ensure)((0, o.ensure)(e,\"textDocument\"),\"typeDefinition\").dynamicRegistration=!0;let t=(0, o.ensure)((0, o.ensure)(e,\"textDocument\"),\"typeDefinition\");t.dynamicRegistration=!0,t.linkSupport=!0;}initialize(e,t){let[n,r]=this.getRegistration(t,e.typeDefinitionProvider);n&&r&&this.register({id:n,registerOptions:r});}registerLanguageProvider(e){const t=e.documentSelector,n={provideTypeDefinition:(e,t,n)=>{const r=this._client,o=(e,t,n)=>r.sendRequest(i.TypeDefinitionRequest.type,r.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then((e=>n.isCancellationRequested?null:r.protocol2CodeConverter.asDefinitionResult(e,n)),(e=>r.handleFailedRequest(i.TypeDefinitionRequest.type,n,e,null))),s=r.middleware;return s.provideTypeDefinition?s.provideTypeDefinition(e,t,n,o):o(e,t,n)}};return [this.registerProvider(t,n),n]}registerProvider(e,t){return r.languages.registerTypeDefinitionProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.TypeDefinitionFeature=s;},4175:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.TypeHierarchyFeature=void 0;const r=n(9496),i=n(152),o=n(8909);class s{constructor(e){this.client=e,this.middleware=e.middleware;}prepareTypeHierarchy(e,t,n){const r=this.client,o=this.middleware,s=(e,t,n)=>{const o=r.code2ProtocolConverter.asTextDocumentPositionParams(e,t);return r.sendRequest(i.TypeHierarchyPrepareRequest.type,o,n).then((e=>n.isCancellationRequested?null:r.protocol2CodeConverter.asTypeHierarchyItems(e,n)),(e=>r.handleFailedRequest(i.TypeHierarchyPrepareRequest.type,n,e,null)))};return o.prepareTypeHierarchy?o.prepareTypeHierarchy(e,t,n,s):s(e,t,n)}provideTypeHierarchySupertypes(e,t){const n=this.client,r=this.middleware,o=(e,t)=>{const r={item:n.code2ProtocolConverter.asTypeHierarchyItem(e)};return n.sendRequest(i.TypeHierarchySupertypesRequest.type,r,t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asTypeHierarchyItems(e,t)),(e=>n.handleFailedRequest(i.TypeHierarchySupertypesRequest.type,t,e,null)))};return r.provideTypeHierarchySupertypes?r.provideTypeHierarchySupertypes(e,t,o):o(e,t)}provideTypeHierarchySubtypes(e,t){const n=this.client,r=this.middleware,o=(e,t)=>{const r={item:n.code2ProtocolConverter.asTypeHierarchyItem(e)};return n.sendRequest(i.TypeHierarchySubtypesRequest.type,r,t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asTypeHierarchyItems(e,t)),(e=>n.handleFailedRequest(i.TypeHierarchySubtypesRequest.type,t,e,null)))};return r.provideTypeHierarchySubtypes?r.provideTypeHierarchySubtypes(e,t,o):o(e,t)}}class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,i.TypeHierarchyPrepareRequest.type);}fillClientCapabilities(e){(0, o.ensure)((0, o.ensure)(e,\"textDocument\"),\"typeHierarchy\").dynamicRegistration=!0;}initialize(e,t){const[n,r]=this.getRegistration(t,e.typeHierarchyProvider);n&&r&&this.register({id:n,registerOptions:r});}registerLanguageProvider(e){const t=this._client,n=new s(t);return [r.languages.registerTypeHierarchyProvider(t.protocol2CodeConverter.asDocumentSelector(e.documentSelector),n),n]}}t.TypeHierarchyFeature=a;},4904:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.forEach=t.mapAsync=t.map=t.Semaphore=t.Delayer=void 0;const r=n(152);t.Delayer=class{constructor(e){this.defaultDelay=e,this.timeout=void 0,this.completionPromise=void 0,this.onSuccess=void 0,this.task=void 0;}trigger(e,t=this.defaultDelay){return this.task=e,t>=0&&this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((e=>{this.onSuccess=e;})).then((()=>{this.completionPromise=void 0,this.onSuccess=void 0;var e=this.task();return this.task=void 0,e}))),(t>=0||void 0===this.timeout)&&(this.timeout=(0, r.RAL)().timer.setTimeout((()=>{this.timeout=void 0,this.onSuccess(void 0);}),t>=0?t:this.defaultDelay)),this.completionPromise}forceDelivery(){if(!this.completionPromise)return;this.cancelTimeout();let e=this.task();return this.completionPromise=void 0,this.onSuccess=void 0,this.task=void 0,e}isTriggered(){return void 0!==this.timeout}cancel(){this.cancelTimeout(),this.completionPromise=void 0;}cancelTimeout(){void 0!==this.timeout&&(this.timeout.dispose(),this.timeout=void 0);}},t.Semaphore=class{constructor(e=1){if(e<=0)throw new Error(\"Capacity must be greater than 0\");this._capacity=e,this._active=0,this._waiting=[];}lock(e){return new Promise(((t,n)=>{this._waiting.push({thunk:e,resolve:t,reject:n}),this.runNext();}))}get active(){return this._active}runNext(){0!==this._waiting.length&&this._active!==this._capacity&&(0, r.RAL)().timer.setImmediate((()=>this.doRunNext()));}doRunNext(){if(0===this._waiting.length||this._active===this._capacity)return;const e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error(\"To many thunks active\");try{const t=e.thunk();t instanceof Promise?t.then((t=>{this._active--,e.resolve(t),this.runNext();}),(t=>{this._active--,e.reject(t),this.runNext();})):(this._active--,e.resolve(t),this.runNext());}catch(t){this._active--,e.reject(t),this.runNext();}}};class i{constructor(e=15){this.yieldAfter=Math.max(e,15),this.startTime=Date.now(),this.counter=0,this.total=0,this.counterInterval=1;}start(){this.startTime=Date.now();}shouldYield(){if(++this.counter>=this.counterInterval){const e=Date.now()-this.startTime,t=Math.max(0,this.yieldAfter-e);if(this.total+=this.counter,this.counter=0,e>=this.yieldAfter||t<=1)return this.counterInterval=1,this.total=0,!0;switch(e){case 0:case 1:this.counterInterval=2*this.total;}}return !1}}t.map=async function(e,t,n,o){if(0===e.length)return [];const s=new Array(e.length),a=new i(o?.yieldAfter);function c(n){a.start();for(let r=n;r<e.length;r++)if(s[r]=t(e[r]),a.shouldYield())return o?.yieldCallback&&o.yieldCallback(),r+1;return -1}let u=c(0);for(;-1!==u&&(void 0===n||!n.isCancellationRequested);)u=await new Promise((e=>{(0, r.RAL)().timer.setImmediate((()=>{e(c(u));}));}));return s},t.mapAsync=async function(e,t,n,o){if(0===e.length)return [];const s=new Array(e.length),a=new i(o?.yieldAfter);async function c(r){a.start();for(let i=r;i<e.length;i++)if(s[i]=await t(e[i],n),a.shouldYield())return o?.yieldCallback&&o.yieldCallback(),i+1;return -1}let u=await c(0);for(;-1!==u&&(void 0===n||!n.isCancellationRequested);)u=await new Promise((e=>{(0, r.RAL)().timer.setImmediate((()=>{e(c(u));}));}));return s},t.forEach=async function(e,t,n,o){if(0===e.length)return;const s=new i(o?.yieldAfter);function a(n){s.start();for(let r=n;r<e.length;r++)if(t(e[r]),s.shouldYield())return o?.yieldCallback&&o.yieldCallback(),r+1;return -1}let c=a(0);for(;-1!==c&&(void 0===n||!n.isCancellationRequested);)c=await new Promise((e=>{(0, r.RAL)().timer.setImmediate((()=>{e(a(c));}));}));};},9763:(e,t)=>{function n(e){return \"string\"==typeof e||e instanceof String}function r(e){return \"function\"==typeof e}function i(e){return Array.isArray(e)}function o(e){return e&&r(e.then)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.asPromise=t.thenable=t.typedArray=t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return !0===e||!1===e},t.string=n,t.number=function(e){return \"number\"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=r,t.array=i,t.stringArray=function(e){return i(e)&&e.every((e=>n(e)))},t.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},t.thenable=o,t.asPromise=function(e){return e instanceof Promise?e:o(e)?new Promise(((t,n)=>{e.then((e=>t(e)),(e=>n(e)));})):Promise.resolve(e)};},1980:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.generateUuid=t.parse=t.isUUID=t.v4=t.empty=void 0;class n{constructor(e){this._value=e;}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}}class r extends n{constructor(){super([r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),\"-\",r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),\"-\",\"4\",r._randomHex(),r._randomHex(),r._randomHex(),\"-\",r._oneOf(r._timeHighBits),r._randomHex(),r._randomHex(),r._randomHex(),\"-\",r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex(),r._randomHex()].join(\"\"));}static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return r._oneOf(r._chars)}}function i(){return new r}r._chars=[\"0\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"6\",\"7\",\"8\",\"9\",\"a\",\"b\",\"c\",\"d\",\"e\",\"f\"],r._timeHighBits=[\"8\",\"9\",\"a\",\"b\"],t.empty=new n(\"00000000-0000-0000-0000-000000000000\"),t.v4=i;const o=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function s(e){return o.test(e)}t.isUUID=s,t.parse=function(e){if(!s(e))throw new Error(\"invalid uuid\");return new n(e)},t.generateUuid=function(){return i().asHex()};},5941:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.WorkspaceFoldersFeature=t.arrayDiff=void 0;const r=n(1980),i=n(9496),o=n(152);function s(e,t){if(void 0!==e)return e[t]}function a(e,t){return e.filter((e=>t.indexOf(e)<0))}t.arrayDiff=a,t.WorkspaceFoldersFeature=class{constructor(e){this._client=e,this._listeners=new Map;}getState(){return {kind:\"workspace\",id:this.registrationType.method,registrations:this._listeners.size>0}}get registrationType(){return o.DidChangeWorkspaceFoldersNotification.type}fillInitializeParams(e){const t=i.workspace.workspaceFolders;this.initializeWithFolders(t),e.workspaceFolders=void 0===t?null:t.map((e=>this.asProtocol(e)));}initializeWithFolders(e){this._initialFolders=e;}fillClientCapabilities(e){e.workspace=e.workspace||{},e.workspace.workspaceFolders=!0;}initialize(e){const t=this._client;t.onRequest(o.WorkspaceFoldersRequest.type,(e=>{const n=()=>{const e=i.workspace.workspaceFolders;return void 0===e?null:e.map((e=>this.asProtocol(e)))},r=t.middleware.workspace;return r&&r.workspaceFolders?r.workspaceFolders(e,n):n()}));const n=s(s(s(e,\"workspace\"),\"workspaceFolders\"),\"changeNotifications\");let a;\"string\"==typeof n?a=n:!0===n&&(a=r.generateUuid()),a&&this.register({id:a,registerOptions:void 0});}sendInitialEvent(e){let t;if(this._initialFolders&&e){const n=a(this._initialFolders,e),r=a(e,this._initialFolders);(r.length>0||n.length>0)&&(t=this.doSendEvent(r,n));}else this._initialFolders?t=this.doSendEvent([],this._initialFolders):e&&(t=this.doSendEvent(e,[]));void 0!==t&&t.catch((e=>{this._client.error(`Sending notification ${o.DidChangeWorkspaceFoldersNotification.type.method} failed`,e);}));}doSendEvent(e,t){let n={event:{added:e.map((e=>this.asProtocol(e))),removed:t.map((e=>this.asProtocol(e)))}};return this._client.sendNotification(o.DidChangeWorkspaceFoldersNotification.type,n)}register(e){let t=e.id,n=this._client,r=i.workspace.onDidChangeWorkspaceFolders((e=>{let t=e=>this.doSendEvent(e.added,e.removed),r=n.middleware.workspace;(r&&r.didChangeWorkspaceFolders?r.didChangeWorkspaceFolders(e,t):t(e)).catch((e=>{this._client.error(`Sending notification ${o.DidChangeWorkspaceFoldersNotification.type.method} failed`,e);}));}));this._listeners.set(t,r),this.sendInitialEvent(i.workspace.workspaceFolders);}unregister(e){let t=this._listeners.get(e);void 0!==t&&(this._listeners.delete(e),t.dispose());}dispose(){for(let e of this._listeners.values())e.dispose();this._listeners.clear();}asProtocol(e){return void 0===e?null:{uri:this._client.code2ProtocolConverter.asUri(e.uri),name:e.name}}};},3051:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.WorkspaceSymbolFeature=void 0;const r=n(9496),i=n(152),o=n(8909),s=n(2483),a=n(1980);class c extends o.WorkspaceFeature{constructor(e){super(e,i.WorkspaceSymbolRequest.type);}fillClientCapabilities(e){let t=(0, o.ensure)((0, o.ensure)(e,\"workspace\"),\"symbol\");t.dynamicRegistration=!0,t.symbolKind={valueSet:s.SupportedSymbolKinds},t.tagSupport={valueSet:s.SupportedSymbolTags},t.resolveSupport={properties:[\"location.range\"]};}initialize(e){e.workspaceSymbolProvider&&this.register({id:a.generateUuid(),registerOptions:!0===e.workspaceSymbolProvider?{workDoneProgress:!1}:e.workspaceSymbolProvider});}registerLanguageProvider(e){const t={provideWorkspaceSymbols:(e,t)=>{const n=this._client,r=(e,t)=>n.sendRequest(i.WorkspaceSymbolRequest.type,{query:e},t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asSymbolInformations(e,t)),(e=>n.handleFailedRequest(i.WorkspaceSymbolRequest.type,t,e,null))),o=n.middleware;return o.provideWorkspaceSymbols?o.provideWorkspaceSymbols(e,t,r):r(e,t)},resolveWorkspaceSymbol:!0===e.resolveProvider?(e,t)=>{const n=this._client,r=(e,t)=>n.sendRequest(i.WorkspaceSymbolResolveRequest.type,n.code2ProtocolConverter.asWorkspaceSymbol(e),t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asSymbolInformation(e)),(e=>n.handleFailedRequest(i.WorkspaceSymbolResolveRequest.type,t,e,null))),o=n.middleware;return o.resolveWorkspaceSymbol?o.resolveWorkspaceSymbol(e,t,r):r(e,t)}:void 0};return [r.languages.registerWorkspaceSymbolProvider(t),t]}}t.WorkspaceSymbolFeature=c;},3415:(e,t,n)=>{var r=n(5108);e.exports=p,p.Minimatch=g;var i=function(){try{return n(6470)}catch(e){}}()||{sep:\"/\"};p.sep=i.sep;var o=p.GLOBSTAR=g.GLOBSTAR={},s=n(3644),a={\"!\":{open:\"(?:(?!(?:\",close:\"))[^/]*?)\"},\"?\":{open:\"(?:\",close:\")?\"},\"+\":{open:\"(?:\",close:\")+\"},\"*\":{open:\"(?:\",close:\")*\"},\"@\":{open:\"(?:\",close:\")\"}},c=\"[^/]\",u=\"[^/]*?\",l=\"().*{}+?[]^$\\\\!\".split(\"\").reduce((function(e,t){return e[t]=!0,e}),{}),d=/\\/+/;function f(e,t){t=t||{};var n={};return Object.keys(e).forEach((function(t){n[t]=e[t];})),Object.keys(t).forEach((function(e){n[e]=t[e];})),n}function p(e,t,n){return m(t),n||(n={}),!(!n.nocomment&&\"#\"===t.charAt(0))&&new g(t,n).match(e)}function g(e,t){if(!(this instanceof g))return new g(e,t);m(e),t||(t={}),e=e.trim(),t.allowWindowsEscape||\"/\"===i.sep||(e=e.split(i.sep).join(\"/\")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make();}function h(e,t){return t||(t=this instanceof g?this.options:{}),e=void 0===e?this.pattern:e,m(e),t.nobrace||!/\\{(?:(?!\\{).)*\\}/.test(e)?[e]:s(e)}p.filter=function(e,t){return t=t||{},function(n,r,i){return p(n,e,t)}},p.defaults=function(e){if(!e||\"object\"!=typeof e||!Object.keys(e).length)return p;var t=p,n=function(n,r,i){return t(n,r,f(e,i))};return (n.Minimatch=function(n,r){return new t.Minimatch(n,f(e,r))}).defaults=function(n){return t.defaults(f(e,n)).Minimatch},n.filter=function(n,r){return t.filter(n,f(e,r))},n.defaults=function(n){return t.defaults(f(e,n))},n.makeRe=function(n,r){return t.makeRe(n,f(e,r))},n.braceExpand=function(n,r){return t.braceExpand(n,f(e,r))},n.match=function(n,r,i){return t.match(n,r,f(e,i))},n},g.defaults=function(e){return p.defaults(e).Minimatch},g.prototype.debug=function(){},g.prototype.make=function(){var e=this.pattern,t=this.options;if(t.nocomment||\"#\"!==e.charAt(0))if(e){this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){r.error.apply(r,arguments);}),this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(d)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return -1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n;}else this.empty=!0;else this.comment=!0;},g.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=0;if(!this.options.nonegate){for(var r=0,i=e.length;r<i&&\"!\"===e.charAt(r);r++)t=!t,n++;n&&(this.pattern=e.substr(n)),this.negate=t;}},p.braceExpand=function(e,t){return h(e,t)},g.prototype.braceExpand=h;var m=function(e){if(\"string\"!=typeof e)throw new TypeError(\"invalid pattern\");if(e.length>65536)throw new TypeError(\"pattern is too long\")};g.prototype.parse=function(e,t){m(e);var n=this.options;if(\"**\"===e){if(!n.noglobstar)return o;e=\"*\";}if(\"\"===e)return \"\";var r,i=\"\",s=!!n.nocase,d=!1,f=[],p=[],g=!1,h=-1,y=-1,C=\".\"===e.charAt(0)?\"\":n.dot?\"(?!(?:^|\\\\/)\\\\.{1,2}(?:$|\\\\/))\":\"(?!\\\\.)\",S=this;function T(){if(r){switch(r){case\"*\":i+=u,s=!0;break;case\"?\":i+=c,s=!0;break;default:i+=\"\\\\\"+r;}S.debug(\"clearStateChar %j %j\",r,i),r=!1;}}for(var b,_=0,R=e.length;_<R&&(b=e.charAt(_));_++)if(this.debug(\"%s\\t%s %s %j\",e,_,i,b),d&&l[b])i+=\"\\\\\"+b,d=!1;else switch(b){case\"/\":return !1;case\"\\\\\":T(),d=!0;continue;case\"?\":case\"*\":case\"+\":case\"@\":case\"!\":if(this.debug(\"%s\\t%s %s %j <-- stateChar\",e,_,i,b),g){this.debug(\" in class\"),\"!\"===b&&_===y+1&&(b=\"^\"),i+=b;continue}S.debug(\"call clearStateChar %j\",r),T(),r=b,n.noext&&T();continue;case\"(\":if(g){i+=\"(\";continue}if(!r){i+=\"\\\\(\";continue}f.push({type:r,start:_-1,reStart:i.length,open:a[r].open,close:a[r].close}),i+=\"!\"===r?\"(?:(?!(?:\":\"(?:\",this.debug(\"plType %j %j\",r,i),r=!1;continue;case\")\":if(g||!f.length){i+=\"\\\\)\";continue}T(),s=!0;var D=f.pop();i+=D.close,\"!\"===D.type&&p.push(D),D.reEnd=i.length;continue;case\"|\":if(g||!f.length||d){i+=\"\\\\|\",d=!1;continue}T(),i+=\"|\";continue;case\"[\":if(T(),g){i+=\"\\\\\"+b;continue}g=!0,y=_,h=i.length,i+=b;continue;case\"]\":if(_===y+1||!g){i+=\"\\\\\"+b,d=!1;continue}var w=e.substring(y+1,_);try{RegExp(\"[\"+w+\"]\");}catch(e){var E=this.parse(w,v);i=i.substr(0,h)+\"\\\\[\"+E[0]+\"\\\\]\",s=s||E[1],g=!1;continue}s=!0,g=!1,i+=b;continue;default:T(),d?d=!1:!l[b]||\"^\"===b&&g||(i+=\"\\\\\"),i+=b;}for(g&&(w=e.substr(y+1),E=this.parse(w,v),i=i.substr(0,h)+\"\\\\[\"+E[0],s=s||E[1]),D=f.pop();D;D=f.pop()){var P=i.slice(D.reStart+D.open.length);this.debug(\"setting tail\",i,D),P=P.replace(/((?:\\\\{2}){0,64})(\\\\?)\\|/g,(function(e,t,n){return n||(n=\"\\\\\"),t+t+n+\"|\"})),this.debug(\"tail=%j\\n %s\",P,P,D,i);var k=\"*\"===D.type?u:\"?\"===D.type?c:\"\\\\\"+D.type;s=!0,i=i.slice(0,D.reStart)+k+\"\\\\(\"+P;}T(),d&&(i+=\"\\\\\\\\\");var x=!1;switch(i.charAt(0)){case\"[\":case\".\":case\"(\":x=!0;}for(var N=p.length-1;N>-1;N--){var O=p[N],I=i.slice(0,O.reStart),A=i.slice(O.reStart,O.reEnd-8),F=i.slice(O.reEnd-8,O.reEnd),L=i.slice(O.reEnd);F+=L;var q=I.split(\"(\").length-1,M=L;for(_=0;_<q;_++)M=M.replace(/\\)[+*?]?/,\"\");var j=\"\";\"\"===(L=M)&&t!==v&&(j=\"$\"),i=I+A+L+j+F;}if(\"\"!==i&&s&&(i=\"(?=.)\"+i),x&&(i=C+i),t===v)return [i,s];if(!s)return e.replace(/\\\\(.)/g,\"$1\");var U=n.nocase?\"i\":\"\";try{var H=new RegExp(\"^\"+i+\"$\",U);}catch(e){return new RegExp(\"$.\")}return H._glob=e,H._src=i,H};var v={};p.makeRe=function(e,t){return new g(e,t||{}).makeRe()},g.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,n=t.noglobstar?u:t.dot?\"(?:(?!(?:\\\\/|^)(?:\\\\.{1,2})($|\\\\/)).)*?\":\"(?:(?!(?:\\\\/|^)\\\\.).)*?\",r=t.nocase?\"i\":\"\",i=e.map((function(e){return e.map((function(e){return e===o?n:\"string\"==typeof e?e.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g,\"\\\\$&\"):e._src})).join(\"\\\\/\")})).join(\"|\");i=\"^(?:\"+i+\")$\",this.negate&&(i=\"^(?!\"+i+\").*$\");try{this.regexp=new RegExp(i,r);}catch(e){this.regexp=!1;}return this.regexp},p.match=function(e,t,n){var r=new g(t,n=n||{});return e=e.filter((function(e){return r.match(e)})),r.options.nonull&&!e.length&&e.push(t),e},g.prototype.match=function(e,t){if(void 0===t&&(t=this.partial),this.debug(\"match\",e,this.pattern),this.comment)return !1;if(this.empty)return \"\"===e;if(\"/\"===e&&t)return !0;var n=this.options;\"/\"!==i.sep&&(e=e.split(i.sep).join(\"/\")),e=e.split(d),this.debug(this.pattern,\"split\",e);var r,o,s=this.set;for(this.debug(this.pattern,\"set\",s),o=e.length-1;o>=0&&!(r=e[o]);o--);for(o=0;o<s.length;o++){var a=s[o],c=e;if(n.matchBase&&1===a.length&&(c=[r]),this.matchOne(c,a,t))return !!n.flipNegate||!this.negate}return !n.flipNegate&&this.negate},g.prototype.matchOne=function(e,t,n){var r=this.options;this.debug(\"matchOne\",{this:this,file:e,pattern:t}),this.debug(\"matchOne\",e.length,t.length);for(var i=0,s=0,a=e.length,c=t.length;i<a&&s<c;i++,s++){this.debug(\"matchOne loop\");var u,l=t[s],d=e[i];if(this.debug(t,l,d),!1===l)return !1;if(l===o){this.debug(\"GLOBSTAR\",[t,l,d]);var f=i,p=s+1;if(p===c){for(this.debug(\"** at the end\");i<a;i++)if(\".\"===e[i]||\"..\"===e[i]||!r.dot&&\".\"===e[i].charAt(0))return !1;return !0}for(;f<a;){var g=e[f];if(this.debug(\"\\nglobstar while\",e,f,t,p,g),this.matchOne(e.slice(f),t.slice(p),n))return this.debug(\"globstar found match!\",f,a,g),!0;if(\".\"===g||\"..\"===g||!r.dot&&\".\"===g.charAt(0)){this.debug(\"dot detected!\",e,f,t,p);break}this.debug(\"globstar swallow a segment, and continue\"),f++;}return !(!n||(this.debug(\"\\n>>> no match, partial?\",e,f,t,p),f!==a))}if(\"string\"==typeof l?(u=d===l,this.debug(\"string match\",l,d,u)):(u=d.match(l),this.debug(\"pattern match\",l,d,u)),!u)return !1}if(i===a&&s===c)return !0;if(i===a)return n;if(s===c)return i===a-1&&\"\"===e[i];throw new Error(\"wtf?\")};},5224:(e,t,n)=>{e.exports=n(152);},152:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!(\"get\"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i);}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n];}),i=this&&this.__exportStar||function(e,t){for(var n in e)\"default\"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n);};Object.defineProperty(t,\"__esModule\",{value:!0}),t.createProtocolConnection=void 0;const o=n(1169);i(n(1169),t),i(n(1661),t),t.createProtocolConnection=function(e,t,n,r){return (0, o.createMessageConnection)(e,t,n,r)};},1661:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!(\"get\"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i);}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n];}),i=this&&this.__exportStar||function(e,t){for(var n in e)\"default\"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n);};Object.defineProperty(t,\"__esModule\",{value:!0}),t.LSPErrorCodes=t.createProtocolConnection=void 0,i(n(9054),t),i(n(5882),t),i(n(6140),t),i(n(542),t);var o,s=n(3767);Object.defineProperty(t,\"createProtocolConnection\",{enumerable:!0,get:function(){return s.createProtocolConnection}}),(o=t.LSPErrorCodes||(t.LSPErrorCodes={})).lspReservedErrorRangeStart=-32899,o.RequestFailed=-32803,o.ServerCancelled=-32802,o.ContentModified=-32801,o.RequestCancelled=-32800,o.lspReservedErrorRangeEnd=-32800;},3767:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createProtocolConnection=void 0;const r=n(9054);t.createProtocolConnection=function(e,t,n,i){return r.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0, r.createMessageConnection)(e,t,n,i)};},6140:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.ProtocolNotificationType=t.ProtocolNotificationType0=t.ProtocolRequestType=t.ProtocolRequestType0=t.RegistrationType=void 0;const r=n(9054);t.RegistrationType=class{constructor(e){this.method=e;}};class i extends r.RequestType0{constructor(e){super(e);}}t.ProtocolRequestType0=i;class o extends r.RequestType{constructor(e){super(e,r.ParameterStructures.byName);}}t.ProtocolRequestType=o;class s extends r.NotificationType0{constructor(e){super(e);}}t.ProtocolNotificationType0=s;class a extends r.NotificationType{constructor(e){super(e,r.ParameterStructures.byName);}}t.ProtocolNotificationType=a;},2918:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.CallHierarchyPrepareRequest=void 0;const r=n(6140);var i,o,s;(s=t.CallHierarchyPrepareRequest||(t.CallHierarchyPrepareRequest={})).method=\"textDocument/prepareCallHierarchy\",s.type=new r.ProtocolRequestType(s.method),(o=t.CallHierarchyIncomingCallsRequest||(t.CallHierarchyIncomingCallsRequest={})).method=\"callHierarchy/incomingCalls\",o.type=new r.ProtocolRequestType(o.method),(i=t.CallHierarchyOutgoingCallsRequest||(t.CallHierarchyOutgoingCallsRequest={})).method=\"callHierarchy/outgoingCalls\",i.type=new r.ProtocolRequestType(i.method);},9891:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.ColorPresentationRequest=t.DocumentColorRequest=void 0;const r=n(6140);var i;(i=t.DocumentColorRequest||(t.DocumentColorRequest={})).method=\"textDocument/documentColor\",i.type=new r.ProtocolRequestType(i.method),(t.ColorPresentationRequest||(t.ColorPresentationRequest={})).type=new r.ProtocolRequestType(\"textDocument/colorPresentation\");},5934:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.ConfigurationRequest=void 0;const r=n(6140);(t.ConfigurationRequest||(t.ConfigurationRequest={})).type=new r.ProtocolRequestType(\"workspace/configuration\");},764:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.DeclarationRequest=void 0;const r=n(6140);var i;(i=t.DeclarationRequest||(t.DeclarationRequest={})).method=\"textDocument/declaration\",i.type=new r.ProtocolRequestType(i.method);},9824:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=void 0;const r=n(9054),i=n(9533),o=n(6140);var s,a,c,u;(t.DiagnosticServerCancellationData||(t.DiagnosticServerCancellationData={})).is=function(e){const t=e;return t&&i.boolean(t.retriggerRequest)},(u=t.DocumentDiagnosticReportKind||(t.DocumentDiagnosticReportKind={})).Full=\"full\",u.Unchanged=\"unchanged\",(c=t.DocumentDiagnosticRequest||(t.DocumentDiagnosticRequest={})).method=\"textDocument/diagnostic\",c.type=new o.ProtocolRequestType(c.method),c.partialResult=new r.ProgressType,(a=t.WorkspaceDiagnosticRequest||(t.WorkspaceDiagnosticRequest={})).method=\"workspace/diagnostic\",a.type=new o.ProtocolRequestType(a.method),a.partialResult=new r.ProgressType,(s=t.DiagnosticRefreshRequest||(t.DiagnosticRefreshRequest={})).method=\"workspace/diagnostic/refresh\",s.type=new o.ProtocolRequestType0(s.method);},7846:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.DidRenameFilesNotification=t.WillRenameFilesRequest=t.DidCreateFilesNotification=t.WillCreateFilesRequest=t.FileOperationPatternKind=void 0;const r=n(6140);var i,o,s,a,c,u,l;(l=t.FileOperationPatternKind||(t.FileOperationPatternKind={})).file=\"file\",l.folder=\"folder\",(u=t.WillCreateFilesRequest||(t.WillCreateFilesRequest={})).method=\"workspace/willCreateFiles\",u.type=new r.ProtocolRequestType(u.method),(c=t.DidCreateFilesNotification||(t.DidCreateFilesNotification={})).method=\"workspace/didCreateFiles\",c.type=new r.ProtocolNotificationType(c.method),(a=t.WillRenameFilesRequest||(t.WillRenameFilesRequest={})).method=\"workspace/willRenameFiles\",a.type=new r.ProtocolRequestType(a.method),(s=t.DidRenameFilesNotification||(t.DidRenameFilesNotification={})).method=\"workspace/didRenameFiles\",s.type=new r.ProtocolNotificationType(s.method),(o=t.DidDeleteFilesNotification||(t.DidDeleteFilesNotification={})).method=\"workspace/didDeleteFiles\",o.type=new r.ProtocolNotificationType(o.method),(i=t.WillDeleteFilesRequest||(t.WillDeleteFilesRequest={})).method=\"workspace/willDeleteFiles\",i.type=new r.ProtocolRequestType(i.method);},3394:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.FoldingRangeRequest=void 0;const r=n(6140);var i;(i=t.FoldingRangeRequest||(t.FoldingRangeRequest={})).method=\"textDocument/foldingRange\",i.type=new r.ProtocolRequestType(i.method);},2122:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.ImplementationRequest=void 0;const r=n(6140);var i;(i=t.ImplementationRequest||(t.ImplementationRequest={})).method=\"textDocument/implementation\",i.type=new r.ProtocolRequestType(i.method);},9999:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=void 0;const r=n(6140);var i,o,s;(s=t.InlayHintRequest||(t.InlayHintRequest={})).method=\"textDocument/inlayHint\",s.type=new r.ProtocolRequestType(s.method),(o=t.InlayHintResolveRequest||(t.InlayHintResolveRequest={})).method=\"inlayHint/resolve\",o.type=new r.ProtocolRequestType(o.method),(i=t.InlayHintRefreshRequest||(t.InlayHintRefreshRequest={})).method=\"workspace/inlayHint/refresh\",i.type=new r.ProtocolRequestType0(i.method);},5246:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.InlineValueRefreshRequest=t.InlineValueRequest=void 0;const r=n(6140);var i,o;(o=t.InlineValueRequest||(t.InlineValueRequest={})).method=\"textDocument/inlineValue\",o.type=new r.ProtocolRequestType(o.method),(i=t.InlineValueRefreshRequest||(t.InlineValueRefreshRequest={})).method=\"workspace/inlineValue/refresh\",i.type=new r.ProtocolRequestType0(i.method);},542:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.WorkspaceSymbolRequest=t.CodeActionResolveRequest=t.CodeActionRequest=t.DocumentSymbolRequest=t.DocumentHighlightRequest=t.ReferencesRequest=t.DefinitionRequest=t.SignatureHelpRequest=t.SignatureHelpTriggerKind=t.HoverRequest=t.CompletionResolveRequest=t.CompletionRequest=t.CompletionTriggerKind=t.PublishDiagnosticsNotification=t.WatchKind=t.RelativePattern=t.FileChangeType=t.DidChangeWatchedFilesNotification=t.WillSaveTextDocumentWaitUntilRequest=t.WillSaveTextDocumentNotification=t.TextDocumentSaveReason=t.DidSaveTextDocumentNotification=t.DidCloseTextDocumentNotification=t.DidChangeTextDocumentNotification=t.TextDocumentContentChangeEvent=t.DidOpenTextDocumentNotification=t.TextDocumentSyncKind=t.TelemetryEventNotification=t.LogMessageNotification=t.ShowMessageRequest=t.ShowMessageNotification=t.MessageType=t.DidChangeConfigurationNotification=t.ExitNotification=t.ShutdownRequest=t.InitializedNotification=t.InitializeErrorCodes=t.InitializeRequest=t.WorkDoneProgressOptions=t.TextDocumentRegistrationOptions=t.StaticRegistrationOptions=t.PositionEncodingKind=t.FailureHandlingKind=t.ResourceOperationKind=t.UnregistrationRequest=t.RegistrationRequest=t.DocumentSelector=t.NotebookCellTextDocumentFilter=t.NotebookDocumentFilter=t.TextDocumentFilter=void 0,t.TypeHierarchySubtypesRequest=t.TypeHierarchyPrepareRequest=t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.WillRenameFilesRequest=t.DidRenameFilesNotification=t.WillCreateFilesRequest=t.DidCreateFilesNotification=t.FileOperationPatternKind=t.LinkedEditingRangeRequest=t.ShowDocumentRequest=t.SemanticTokensRegistrationType=t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.TokenFormat=t.CallHierarchyPrepareRequest=t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=t.SelectionRangeRequest=t.DeclarationRequest=t.FoldingRangeRequest=t.ColorPresentationRequest=t.DocumentColorRequest=t.ConfigurationRequest=t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=t.TypeDefinitionRequest=t.ImplementationRequest=t.ApplyWorkspaceEditRequest=t.ExecuteCommandRequest=t.PrepareRenameRequest=t.RenameRequest=t.PrepareSupportDefaultBehavior=t.DocumentOnTypeFormattingRequest=t.DocumentRangeFormattingRequest=t.DocumentFormattingRequest=t.DocumentLinkResolveRequest=t.DocumentLinkRequest=t.CodeLensRefreshRequest=t.CodeLensResolveRequest=t.CodeLensRequest=t.WorkspaceSymbolResolveRequest=void 0,t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=t.InlineValueRefreshRequest=t.InlineValueRequest=t.TypeHierarchySupertypesRequest=void 0;const r=n(6140),i=n(5882),o=n(9533),s=n(2122);Object.defineProperty(t,\"ImplementationRequest\",{enumerable:!0,get:function(){return s.ImplementationRequest}});const a=n(1589);Object.defineProperty(t,\"TypeDefinitionRequest\",{enumerable:!0,get:function(){return a.TypeDefinitionRequest}});const c=n(8744);Object.defineProperty(t,\"WorkspaceFoldersRequest\",{enumerable:!0,get:function(){return c.WorkspaceFoldersRequest}}),Object.defineProperty(t,\"DidChangeWorkspaceFoldersNotification\",{enumerable:!0,get:function(){return c.DidChangeWorkspaceFoldersNotification}});const u=n(5934);Object.defineProperty(t,\"ConfigurationRequest\",{enumerable:!0,get:function(){return u.ConfigurationRequest}});const l=n(9891);Object.defineProperty(t,\"DocumentColorRequest\",{enumerable:!0,get:function(){return l.DocumentColorRequest}}),Object.defineProperty(t,\"ColorPresentationRequest\",{enumerable:!0,get:function(){return l.ColorPresentationRequest}});const d=n(3394);Object.defineProperty(t,\"FoldingRangeRequest\",{enumerable:!0,get:function(){return d.FoldingRangeRequest}});const f=n(764);Object.defineProperty(t,\"DeclarationRequest\",{enumerable:!0,get:function(){return f.DeclarationRequest}});const p=n(5206);Object.defineProperty(t,\"SelectionRangeRequest\",{enumerable:!0,get:function(){return p.SelectionRangeRequest}});const g=n(1862);Object.defineProperty(t,\"WorkDoneProgress\",{enumerable:!0,get:function(){return g.WorkDoneProgress}}),Object.defineProperty(t,\"WorkDoneProgressCreateRequest\",{enumerable:!0,get:function(){return g.WorkDoneProgressCreateRequest}}),Object.defineProperty(t,\"WorkDoneProgressCancelNotification\",{enumerable:!0,get:function(){return g.WorkDoneProgressCancelNotification}});const h=n(2918);Object.defineProperty(t,\"CallHierarchyIncomingCallsRequest\",{enumerable:!0,get:function(){return h.CallHierarchyIncomingCallsRequest}}),Object.defineProperty(t,\"CallHierarchyOutgoingCallsRequest\",{enumerable:!0,get:function(){return h.CallHierarchyOutgoingCallsRequest}}),Object.defineProperty(t,\"CallHierarchyPrepareRequest\",{enumerable:!0,get:function(){return h.CallHierarchyPrepareRequest}});const m=n(9434);Object.defineProperty(t,\"TokenFormat\",{enumerable:!0,get:function(){return m.TokenFormat}}),Object.defineProperty(t,\"SemanticTokensRequest\",{enumerable:!0,get:function(){return m.SemanticTokensRequest}}),Object.defineProperty(t,\"SemanticTokensDeltaRequest\",{enumerable:!0,get:function(){return m.SemanticTokensDeltaRequest}}),Object.defineProperty(t,\"SemanticTokensRangeRequest\",{enumerable:!0,get:function(){return m.SemanticTokensRangeRequest}}),Object.defineProperty(t,\"SemanticTokensRefreshRequest\",{enumerable:!0,get:function(){return m.SemanticTokensRefreshRequest}}),Object.defineProperty(t,\"SemanticTokensRegistrationType\",{enumerable:!0,get:function(){return m.SemanticTokensRegistrationType}});const v=n(5726);Object.defineProperty(t,\"ShowDocumentRequest\",{enumerable:!0,get:function(){return v.ShowDocumentRequest}});const y=n(6305);Object.defineProperty(t,\"LinkedEditingRangeRequest\",{enumerable:!0,get:function(){return y.LinkedEditingRangeRequest}});const C=n(7846);Object.defineProperty(t,\"FileOperationPatternKind\",{enumerable:!0,get:function(){return C.FileOperationPatternKind}}),Object.defineProperty(t,\"DidCreateFilesNotification\",{enumerable:!0,get:function(){return C.DidCreateFilesNotification}}),Object.defineProperty(t,\"WillCreateFilesRequest\",{enumerable:!0,get:function(){return C.WillCreateFilesRequest}}),Object.defineProperty(t,\"DidRenameFilesNotification\",{enumerable:!0,get:function(){return C.DidRenameFilesNotification}}),Object.defineProperty(t,\"WillRenameFilesRequest\",{enumerable:!0,get:function(){return C.WillRenameFilesRequest}}),Object.defineProperty(t,\"DidDeleteFilesNotification\",{enumerable:!0,get:function(){return C.DidDeleteFilesNotification}}),Object.defineProperty(t,\"WillDeleteFilesRequest\",{enumerable:!0,get:function(){return C.WillDeleteFilesRequest}});const S=n(3443);Object.defineProperty(t,\"UniquenessLevel\",{enumerable:!0,get:function(){return S.UniquenessLevel}}),Object.defineProperty(t,\"MonikerKind\",{enumerable:!0,get:function(){return S.MonikerKind}}),Object.defineProperty(t,\"MonikerRequest\",{enumerable:!0,get:function(){return S.MonikerRequest}});const T=n(3693);Object.defineProperty(t,\"TypeHierarchyPrepareRequest\",{enumerable:!0,get:function(){return T.TypeHierarchyPrepareRequest}}),Object.defineProperty(t,\"TypeHierarchySubtypesRequest\",{enumerable:!0,get:function(){return T.TypeHierarchySubtypesRequest}}),Object.defineProperty(t,\"TypeHierarchySupertypesRequest\",{enumerable:!0,get:function(){return T.TypeHierarchySupertypesRequest}});const b=n(5246);Object.defineProperty(t,\"InlineValueRequest\",{enumerable:!0,get:function(){return b.InlineValueRequest}}),Object.defineProperty(t,\"InlineValueRefreshRequest\",{enumerable:!0,get:function(){return b.InlineValueRefreshRequest}});const _=n(9999);Object.defineProperty(t,\"InlayHintRequest\",{enumerable:!0,get:function(){return _.InlayHintRequest}}),Object.defineProperty(t,\"InlayHintResolveRequest\",{enumerable:!0,get:function(){return _.InlayHintResolveRequest}}),Object.defineProperty(t,\"InlayHintRefreshRequest\",{enumerable:!0,get:function(){return _.InlayHintRefreshRequest}});const R=n(9824);Object.defineProperty(t,\"DiagnosticServerCancellationData\",{enumerable:!0,get:function(){return R.DiagnosticServerCancellationData}}),Object.defineProperty(t,\"DocumentDiagnosticReportKind\",{enumerable:!0,get:function(){return R.DocumentDiagnosticReportKind}}),Object.defineProperty(t,\"DocumentDiagnosticRequest\",{enumerable:!0,get:function(){return R.DocumentDiagnosticRequest}}),Object.defineProperty(t,\"WorkspaceDiagnosticRequest\",{enumerable:!0,get:function(){return R.WorkspaceDiagnosticRequest}}),Object.defineProperty(t,\"DiagnosticRefreshRequest\",{enumerable:!0,get:function(){return R.DiagnosticRefreshRequest}});const D=n(7169);var w,E,P,k,x,N,O,I,A,F,L,q,M,j,U,H,K,W,z,V,B,$,G,J,Y,Z,X,Q,ee,te,ne,re,ie,oe,se,ae,ce,ue,le,de,fe,pe,ge,he;Object.defineProperty(t,\"NotebookCellKind\",{enumerable:!0,get:function(){return D.NotebookCellKind}}),Object.defineProperty(t,\"ExecutionSummary\",{enumerable:!0,get:function(){return D.ExecutionSummary}}),Object.defineProperty(t,\"NotebookCell\",{enumerable:!0,get:function(){return D.NotebookCell}}),Object.defineProperty(t,\"NotebookDocument\",{enumerable:!0,get:function(){return D.NotebookDocument}}),Object.defineProperty(t,\"NotebookDocumentSyncRegistrationType\",{enumerable:!0,get:function(){return D.NotebookDocumentSyncRegistrationType}}),Object.defineProperty(t,\"DidOpenNotebookDocumentNotification\",{enumerable:!0,get:function(){return D.DidOpenNotebookDocumentNotification}}),Object.defineProperty(t,\"NotebookCellArrayChange\",{enumerable:!0,get:function(){return D.NotebookCellArrayChange}}),Object.defineProperty(t,\"DidChangeNotebookDocumentNotification\",{enumerable:!0,get:function(){return D.DidChangeNotebookDocumentNotification}}),Object.defineProperty(t,\"DidSaveNotebookDocumentNotification\",{enumerable:!0,get:function(){return D.DidSaveNotebookDocumentNotification}}),Object.defineProperty(t,\"DidCloseNotebookDocumentNotification\",{enumerable:!0,get:function(){return D.DidCloseNotebookDocumentNotification}}),function(e){e.is=function(e){const t=e;return o.string(t.language)||o.string(t.scheme)||o.string(t.pattern)};}(w=t.TextDocumentFilter||(t.TextDocumentFilter={})),function(e){e.is=function(e){const t=e;return o.objectLiteral(t)&&(o.string(t.notebookType)||o.string(t.scheme)||o.string(t.pattern))};}(E=t.NotebookDocumentFilter||(t.NotebookDocumentFilter={})),function(e){e.is=function(e){const t=e;return o.objectLiteral(t)&&(o.string(t.notebook)||E.is(t.notebook))&&(void 0===t.language||o.string(t.language))};}(P=t.NotebookCellTextDocumentFilter||(t.NotebookCellTextDocumentFilter={})),function(e){e.is=function(e){if(!Array.isArray(e))return !1;for(let t of e)if(!o.string(t)&&!w.is(t)&&!P.is(t))return !1;return !0};}(k=t.DocumentSelector||(t.DocumentSelector={})),(t.RegistrationRequest||(t.RegistrationRequest={})).type=new r.ProtocolRequestType(\"client/registerCapability\"),(t.UnregistrationRequest||(t.UnregistrationRequest={})).type=new r.ProtocolRequestType(\"client/unregisterCapability\"),(he=t.ResourceOperationKind||(t.ResourceOperationKind={})).Create=\"create\",he.Rename=\"rename\",he.Delete=\"delete\",(ge=t.FailureHandlingKind||(t.FailureHandlingKind={})).Abort=\"abort\",ge.Transactional=\"transactional\",ge.TextOnlyTransactional=\"textOnlyTransactional\",ge.Undo=\"undo\",(pe=t.PositionEncodingKind||(t.PositionEncodingKind={})).UTF8=\"utf-8\",pe.UTF16=\"utf-16\",pe.UTF32=\"utf-32\",(t.StaticRegistrationOptions||(t.StaticRegistrationOptions={})).hasId=function(e){const t=e;return t&&o.string(t.id)&&t.id.length>0},(t.TextDocumentRegistrationOptions||(t.TextDocumentRegistrationOptions={})).is=function(e){const t=e;return t&&(null===t.documentSelector||k.is(t.documentSelector))},(fe=t.WorkDoneProgressOptions||(t.WorkDoneProgressOptions={})).is=function(e){const t=e;return o.objectLiteral(t)&&(void 0===t.workDoneProgress||o.boolean(t.workDoneProgress))},fe.hasWorkDoneProgress=function(e){const t=e;return t&&o.boolean(t.workDoneProgress)},(t.InitializeRequest||(t.InitializeRequest={})).type=new r.ProtocolRequestType(\"initialize\"),(t.InitializeErrorCodes||(t.InitializeErrorCodes={})).unknownProtocolVersion=1,(t.InitializedNotification||(t.InitializedNotification={})).type=new r.ProtocolNotificationType(\"initialized\"),(t.ShutdownRequest||(t.ShutdownRequest={})).type=new r.ProtocolRequestType0(\"shutdown\"),(t.ExitNotification||(t.ExitNotification={})).type=new r.ProtocolNotificationType0(\"exit\"),(t.DidChangeConfigurationNotification||(t.DidChangeConfigurationNotification={})).type=new r.ProtocolNotificationType(\"workspace/didChangeConfiguration\"),(de=t.MessageType||(t.MessageType={})).Error=1,de.Warning=2,de.Info=3,de.Log=4,(t.ShowMessageNotification||(t.ShowMessageNotification={})).type=new r.ProtocolNotificationType(\"window/showMessage\"),(t.ShowMessageRequest||(t.ShowMessageRequest={})).type=new r.ProtocolRequestType(\"window/showMessageRequest\"),(t.LogMessageNotification||(t.LogMessageNotification={})).type=new r.ProtocolNotificationType(\"window/logMessage\"),(t.TelemetryEventNotification||(t.TelemetryEventNotification={})).type=new r.ProtocolNotificationType(\"telemetry/event\"),(le=t.TextDocumentSyncKind||(t.TextDocumentSyncKind={})).None=0,le.Full=1,le.Incremental=2,(ue=t.DidOpenTextDocumentNotification||(t.DidOpenTextDocumentNotification={})).method=\"textDocument/didOpen\",ue.type=new r.ProtocolNotificationType(ue.method),(ce=t.TextDocumentContentChangeEvent||(t.TextDocumentContentChangeEvent={})).isIncremental=function(e){let t=e;return null!=t&&\"string\"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||\"number\"==typeof t.rangeLength)},ce.isFull=function(e){let t=e;return null!=t&&\"string\"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength},(ae=t.DidChangeTextDocumentNotification||(t.DidChangeTextDocumentNotification={})).method=\"textDocument/didChange\",ae.type=new r.ProtocolNotificationType(ae.method),(se=t.DidCloseTextDocumentNotification||(t.DidCloseTextDocumentNotification={})).method=\"textDocument/didClose\",se.type=new r.ProtocolNotificationType(se.method),(oe=t.DidSaveTextDocumentNotification||(t.DidSaveTextDocumentNotification={})).method=\"textDocument/didSave\",oe.type=new r.ProtocolNotificationType(oe.method),(ie=t.TextDocumentSaveReason||(t.TextDocumentSaveReason={})).Manual=1,ie.AfterDelay=2,ie.FocusOut=3,(re=t.WillSaveTextDocumentNotification||(t.WillSaveTextDocumentNotification={})).method=\"textDocument/willSave\",re.type=new r.ProtocolNotificationType(re.method),(ne=t.WillSaveTextDocumentWaitUntilRequest||(t.WillSaveTextDocumentWaitUntilRequest={})).method=\"textDocument/willSaveWaitUntil\",ne.type=new r.ProtocolRequestType(ne.method),(t.DidChangeWatchedFilesNotification||(t.DidChangeWatchedFilesNotification={})).type=new r.ProtocolNotificationType(\"workspace/didChangeWatchedFiles\"),(te=t.FileChangeType||(t.FileChangeType={})).Created=1,te.Changed=2,te.Deleted=3,(t.RelativePattern||(t.RelativePattern={})).is=function(e){const t=e;return o.objectLiteral(t)&&(i.URI.is(t.baseUri)||i.WorkspaceFolder.is(t.baseUri))&&o.string(t.pattern)},(ee=t.WatchKind||(t.WatchKind={})).Create=1,ee.Change=2,ee.Delete=4,(t.PublishDiagnosticsNotification||(t.PublishDiagnosticsNotification={})).type=new r.ProtocolNotificationType(\"textDocument/publishDiagnostics\"),(Q=t.CompletionTriggerKind||(t.CompletionTriggerKind={})).Invoked=1,Q.TriggerCharacter=2,Q.TriggerForIncompleteCompletions=3,(X=t.CompletionRequest||(t.CompletionRequest={})).method=\"textDocument/completion\",X.type=new r.ProtocolRequestType(X.method),(Z=t.CompletionResolveRequest||(t.CompletionResolveRequest={})).method=\"completionItem/resolve\",Z.type=new r.ProtocolRequestType(Z.method),(Y=t.HoverRequest||(t.HoverRequest={})).method=\"textDocument/hover\",Y.type=new r.ProtocolRequestType(Y.method),(J=t.SignatureHelpTriggerKind||(t.SignatureHelpTriggerKind={})).Invoked=1,J.TriggerCharacter=2,J.ContentChange=3,(G=t.SignatureHelpRequest||(t.SignatureHelpRequest={})).method=\"textDocument/signatureHelp\",G.type=new r.ProtocolRequestType(G.method),($=t.DefinitionRequest||(t.DefinitionRequest={})).method=\"textDocument/definition\",$.type=new r.ProtocolRequestType($.method),(B=t.ReferencesRequest||(t.ReferencesRequest={})).method=\"textDocument/references\",B.type=new r.ProtocolRequestType(B.method),(V=t.DocumentHighlightRequest||(t.DocumentHighlightRequest={})).method=\"textDocument/documentHighlight\",V.type=new r.ProtocolRequestType(V.method),(z=t.DocumentSymbolRequest||(t.DocumentSymbolRequest={})).method=\"textDocument/documentSymbol\",z.type=new r.ProtocolRequestType(z.method),(W=t.CodeActionRequest||(t.CodeActionRequest={})).method=\"textDocument/codeAction\",W.type=new r.ProtocolRequestType(W.method),(K=t.CodeActionResolveRequest||(t.CodeActionResolveRequest={})).method=\"codeAction/resolve\",K.type=new r.ProtocolRequestType(K.method),(H=t.WorkspaceSymbolRequest||(t.WorkspaceSymbolRequest={})).method=\"workspace/symbol\",H.type=new r.ProtocolRequestType(H.method),(U=t.WorkspaceSymbolResolveRequest||(t.WorkspaceSymbolResolveRequest={})).method=\"workspaceSymbol/resolve\",U.type=new r.ProtocolRequestType(U.method),(j=t.CodeLensRequest||(t.CodeLensRequest={})).method=\"textDocument/codeLens\",j.type=new r.ProtocolRequestType(j.method),(M=t.CodeLensResolveRequest||(t.CodeLensResolveRequest={})).method=\"codeLens/resolve\",M.type=new r.ProtocolRequestType(M.method),(q=t.CodeLensRefreshRequest||(t.CodeLensRefreshRequest={})).method=\"workspace/codeLens/refresh\",q.type=new r.ProtocolRequestType0(q.method),(L=t.DocumentLinkRequest||(t.DocumentLinkRequest={})).method=\"textDocument/documentLink\",L.type=new r.ProtocolRequestType(L.method),(F=t.DocumentLinkResolveRequest||(t.DocumentLinkResolveRequest={})).method=\"documentLink/resolve\",F.type=new r.ProtocolRequestType(F.method),(A=t.DocumentFormattingRequest||(t.DocumentFormattingRequest={})).method=\"textDocument/formatting\",A.type=new r.ProtocolRequestType(A.method),(I=t.DocumentRangeFormattingRequest||(t.DocumentRangeFormattingRequest={})).method=\"textDocument/rangeFormatting\",I.type=new r.ProtocolRequestType(I.method),(O=t.DocumentOnTypeFormattingRequest||(t.DocumentOnTypeFormattingRequest={})).method=\"textDocument/onTypeFormatting\",O.type=new r.ProtocolRequestType(O.method),(t.PrepareSupportDefaultBehavior||(t.PrepareSupportDefaultBehavior={})).Identifier=1,(N=t.RenameRequest||(t.RenameRequest={})).method=\"textDocument/rename\",N.type=new r.ProtocolRequestType(N.method),(x=t.PrepareRenameRequest||(t.PrepareRenameRequest={})).method=\"textDocument/prepareRename\",x.type=new r.ProtocolRequestType(x.method),(t.ExecuteCommandRequest||(t.ExecuteCommandRequest={})).type=new r.ProtocolRequestType(\"workspace/executeCommand\"),(t.ApplyWorkspaceEditRequest||(t.ApplyWorkspaceEditRequest={})).type=new r.ProtocolRequestType(\"workspace/applyEdit\");},6305:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.LinkedEditingRangeRequest=void 0;const r=n(6140);var i;(i=t.LinkedEditingRangeRequest||(t.LinkedEditingRangeRequest={})).method=\"textDocument/linkedEditingRange\",i.type=new r.ProtocolRequestType(i.method);},3443:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=void 0;const r=n(6140);var i,o,s;(s=t.UniquenessLevel||(t.UniquenessLevel={})).document=\"document\",s.project=\"project\",s.group=\"group\",s.scheme=\"scheme\",s.global=\"global\",(o=t.MonikerKind||(t.MonikerKind={})).$import=\"import\",o.$export=\"export\",o.local=\"local\",(i=t.MonikerRequest||(t.MonikerRequest={})).method=\"textDocument/moniker\",i.type=new r.ProtocolRequestType(i.method);},7169:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=void 0;const r=n(5882),i=n(9533),o=n(6140);var s,a,c,u,l,d,f,p,g,h;!function(e){e.Markup=1,e.Code=2,e.is=function(e){return 1===e||2===e};}(s=t.NotebookCellKind||(t.NotebookCellKind={})),function(e){e.create=function(e,t){const n={executionOrder:e};return !0!==t&&!1!==t||(n.success=t),n},e.is=function(e){const t=e;return i.objectLiteral(t)&&r.uinteger.is(t.executionOrder)&&(void 0===t.success||i.boolean(t.success))},e.equals=function(e,t){return e===t||null!=e&&null!=t&&e.executionOrder===t.executionOrder&&e.success===t.success};}(a=t.ExecutionSummary||(t.ExecutionSummary={})),function(e){function t(e,n){if(e===n)return !0;if(null==e||null==n)return !1;if(typeof e!=typeof n)return !1;if(\"object\"!=typeof e)return !1;const r=Array.isArray(e),o=Array.isArray(n);if(r!==o)return !1;if(r&&o){if(e.length!==n.length)return !1;for(let r=0;r<e.length;r++)if(!t(e[r],n[r]))return !1}if(i.objectLiteral(e)&&i.objectLiteral(n)){const r=Object.keys(e),i=Object.keys(n);if(r.length!==i.length)return !1;if(r.sort(),i.sort(),!t(r,i))return !1;for(let i=0;i<r.length;i++){const o=r[i];if(!t(e[o],n[o]))return !1}}return !0}e.create=function(e,t){return {kind:e,document:t}},e.is=function(e){const t=e;return i.objectLiteral(t)&&s.is(t.kind)&&r.DocumentUri.is(t.document)&&(void 0===t.metadata||i.objectLiteral(t.metadata))},e.diff=function(e,n){const r=new Set;return e.document!==n.document&&r.add(\"document\"),e.kind!==n.kind&&r.add(\"kind\"),e.executionSummary!==n.executionSummary&&r.add(\"executionSummary\"),void 0===e.metadata&&void 0===n.metadata||t(e.metadata,n.metadata)||r.add(\"metadata\"),void 0===e.executionSummary&&void 0===n.executionSummary||a.equals(e.executionSummary,n.executionSummary)||r.add(\"executionSummary\"),r};}(c=t.NotebookCell||(t.NotebookCell={})),(h=t.NotebookDocument||(t.NotebookDocument={})).create=function(e,t,n,r){return {uri:e,notebookType:t,version:n,cells:r}},h.is=function(e){const t=e;return i.objectLiteral(t)&&i.string(t.uri)&&r.integer.is(t.version)&&i.typedArray(t.cells,c.is)},(g=t.NotebookDocumentSyncRegistrationType||(t.NotebookDocumentSyncRegistrationType={})).method=\"notebookDocument/sync\",g.type=new o.RegistrationType(g.method),(p=t.DidOpenNotebookDocumentNotification||(t.DidOpenNotebookDocumentNotification={})).method=\"notebookDocument/didOpen\",p.type=new o.ProtocolNotificationType(p.method),(f=t.NotebookCellArrayChange||(t.NotebookCellArrayChange={})).is=function(e){const t=e;return i.objectLiteral(t)&&r.uinteger.is(t.start)&&r.uinteger.is(t.deleteCount)&&(void 0===t.cells||i.typedArray(t.cells,c.is))},f.create=function(e,t,n){const r={start:e,deleteCount:t};return void 0!==n&&(r.cells=n),r},(d=t.DidChangeNotebookDocumentNotification||(t.DidChangeNotebookDocumentNotification={})).method=\"notebookDocument/didChange\",d.type=new o.ProtocolNotificationType(d.method),(l=t.DidSaveNotebookDocumentNotification||(t.DidSaveNotebookDocumentNotification={})).method=\"notebookDocument/didSave\",l.type=new o.ProtocolNotificationType(l.method),(u=t.DidCloseNotebookDocumentNotification||(t.DidCloseNotebookDocumentNotification={})).method=\"notebookDocument/didClose\",u.type=new o.ProtocolNotificationType(u.method);},1862:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=void 0;const r=n(9054),i=n(6140);var o,s,a;(a=t.WorkDoneProgress||(t.WorkDoneProgress={})).type=new r.ProgressType,a.is=function(e){return e===a.type},(s=t.WorkDoneProgressCreateRequest||(t.WorkDoneProgressCreateRequest={})).method=\"window/workDoneProgress/create\",s.type=new i.ProtocolRequestType(s.method),(o=t.WorkDoneProgressCancelNotification||(t.WorkDoneProgressCancelNotification={})).method=\"window/workDoneProgress/cancel\",o.type=new i.ProtocolNotificationType(o.method);},5206:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.SelectionRangeRequest=void 0;const r=n(6140);var i;(i=t.SelectionRangeRequest||(t.SelectionRangeRequest={})).method=\"textDocument/selectionRange\",i.type=new r.ProtocolRequestType(i.method);},9434:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.SemanticTokensRegistrationType=t.TokenFormat=void 0;const r=n(6140);var i,o,s,a,c;(t.TokenFormat||(t.TokenFormat={})).Relative=\"relative\",(c=t.SemanticTokensRegistrationType||(t.SemanticTokensRegistrationType={})).method=\"textDocument/semanticTokens\",c.type=new r.RegistrationType(c.method),(a=t.SemanticTokensRequest||(t.SemanticTokensRequest={})).method=\"textDocument/semanticTokens/full\",a.type=new r.ProtocolRequestType(a.method),(s=t.SemanticTokensDeltaRequest||(t.SemanticTokensDeltaRequest={})).method=\"textDocument/semanticTokens/full/delta\",s.type=new r.ProtocolRequestType(s.method),(o=t.SemanticTokensRangeRequest||(t.SemanticTokensRangeRequest={})).method=\"textDocument/semanticTokens/range\",o.type=new r.ProtocolRequestType(o.method),(i=t.SemanticTokensRefreshRequest||(t.SemanticTokensRefreshRequest={})).method=\"workspace/semanticTokens/refresh\",i.type=new r.ProtocolRequestType0(i.method);},5726:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.ShowDocumentRequest=void 0;const r=n(6140);var i;(i=t.ShowDocumentRequest||(t.ShowDocumentRequest={})).method=\"window/showDocument\",i.type=new r.ProtocolRequestType(i.method);},1589:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.TypeDefinitionRequest=void 0;const r=n(6140);var i;(i=t.TypeDefinitionRequest||(t.TypeDefinitionRequest={})).method=\"textDocument/typeDefinition\",i.type=new r.ProtocolRequestType(i.method);},3693:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.TypeHierarchySubtypesRequest=t.TypeHierarchySupertypesRequest=t.TypeHierarchyPrepareRequest=void 0;const r=n(6140);var i,o,s;(s=t.TypeHierarchyPrepareRequest||(t.TypeHierarchyPrepareRequest={})).method=\"textDocument/prepareTypeHierarchy\",s.type=new r.ProtocolRequestType(s.method),(o=t.TypeHierarchySupertypesRequest||(t.TypeHierarchySupertypesRequest={})).method=\"typeHierarchy/supertypes\",o.type=new r.ProtocolRequestType(o.method),(i=t.TypeHierarchySubtypesRequest||(t.TypeHierarchySubtypesRequest={})).method=\"typeHierarchy/subtypes\",i.type=new r.ProtocolRequestType(i.method);},8744:(e,t,n)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=void 0;const r=n(6140);(t.WorkspaceFoldersRequest||(t.WorkspaceFoldersRequest={})).type=new r.ProtocolRequestType0(\"workspace/workspaceFolders\"),(t.DidChangeWorkspaceFoldersNotification||(t.DidChangeWorkspaceFoldersNotification={})).type=new r.ProtocolNotificationType(\"workspace/didChangeWorkspaceFolders\");},9533:(e,t)=>{function n(e){return \"string\"==typeof e||e instanceof String}function r(e){return Array.isArray(e)}Object.defineProperty(t,\"__esModule\",{value:!0}),t.objectLiteral=t.typedArray=t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return !0===e||!1===e},t.string=n,t.number=function(e){return \"number\"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return \"function\"==typeof e},t.array=r,t.stringArray=function(e){return r(e)&&e.every((e=>n(e)))},t.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},t.objectLiteral=function(e){return null!==e&&\"object\"==typeof e};},5882:(e,t,n)=>{var r,i,o,s,a,c,u,l,d,f,p,g,h,m,v,y,C,S,T,b,_,R,D,w,E,P,k,x;n.r(t),n.d(t,{AnnotatedTextEdit:()=>D,ChangeAnnotation:()=>_,ChangeAnnotationIdentifier:()=>R,CodeAction:()=>oe,CodeActionContext:()=>ie,CodeActionKind:()=>ne,CodeActionTriggerKind:()=>re,CodeDescription:()=>C,CodeLens:()=>se,Color:()=>d,ColorInformation:()=>f,ColorPresentation:()=>p,Command:()=>T,CompletionItem:()=>W,CompletionItemKind:()=>q,CompletionItemLabelDetails:()=>K,CompletionItemTag:()=>j,CompletionList:()=>z,CreateFile:()=>E,DeleteFile:()=>k,Diagnostic:()=>S,DiagnosticRelatedInformation:()=>m,DiagnosticSeverity:()=>v,DiagnosticTag:()=>y,DocumentHighlight:()=>Y,DocumentHighlightKind:()=>J,DocumentLink:()=>ce,DocumentSymbol:()=>te,DocumentUri:()=>r,EOL:()=>De,FoldingRange:()=>h,FoldingRangeKind:()=>g,FormattingOptions:()=>ae,Hover:()=>B,InlayHint:()=>Ce,InlayHintKind:()=>ve,InlayHintLabelPart:()=>ye,InlineValueContext:()=>me,InlineValueEvaluatableExpression:()=>he,InlineValueText:()=>pe,InlineValueVariableLookup:()=>ge,InsertReplaceEdit:()=>U,InsertTextFormat:()=>M,InsertTextMode:()=>H,Location:()=>u,LocationLink:()=>l,MarkedString:()=>V,MarkupContent:()=>L,MarkupKind:()=>F,OptionalVersionedTextDocumentIdentifier:()=>I,ParameterInformation:()=>$,Position:()=>a,Range:()=>c,RenameFile:()=>P,SelectionRange:()=>ue,SemanticTokenModifiers:()=>de,SemanticTokenTypes:()=>le,SemanticTokens:()=>fe,SignatureInformation:()=>G,SymbolInformation:()=>Q,SymbolKind:()=>Z,SymbolTag:()=>X,TextDocument:()=>Re,TextDocumentEdit:()=>w,TextDocumentIdentifier:()=>N,TextDocumentItem:()=>A,TextEdit:()=>b,URI:()=>i,VersionedTextDocumentIdentifier:()=>O,WorkspaceChange:()=>_e,WorkspaceEdit:()=>x,WorkspaceFolder:()=>Se,WorkspaceSymbol:()=>ee,integer:()=>o,uinteger:()=>s}),function(e){e.is=function(e){return \"string\"==typeof e};}(r||(r={})),function(e){e.is=function(e){return \"string\"==typeof e};}(i||(i={})),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,e.is=function(t){return \"number\"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE};}(o||(o={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647,e.is=function(t){return \"number\"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE};}(s||(s={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=s.MAX_VALUE),t===Number.MAX_VALUE&&(t=s.MAX_VALUE),{line:e,character:t}},e.is=function(e){var t=e;return we.objectLiteral(t)&&we.uinteger(t.line)&&we.uinteger(t.character)};}(a||(a={})),function(e){e.create=function(e,t,n,r){if(we.uinteger(e)&&we.uinteger(t)&&we.uinteger(n)&&we.uinteger(r))return {start:a.create(e,t),end:a.create(n,r)};if(a.is(e)&&a.is(t))return {start:e,end:t};throw new Error(\"Range#create called with invalid arguments[\".concat(e,\", \").concat(t,\", \").concat(n,\", \").concat(r,\"]\"))},e.is=function(e){var t=e;return we.objectLiteral(t)&&a.is(t.start)&&a.is(t.end)};}(c||(c={})),function(e){e.create=function(e,t){return {uri:e,range:t}},e.is=function(e){var t=e;return we.defined(t)&&c.is(t.range)&&(we.string(t.uri)||we.undefined(t.uri))};}(u||(u={})),function(e){e.create=function(e,t,n,r){return {targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){var t=e;return we.defined(t)&&c.is(t.targetRange)&&we.string(t.targetUri)&&c.is(t.targetSelectionRange)&&(c.is(t.originSelectionRange)||we.undefined(t.originSelectionRange))};}(l||(l={})),function(e){e.create=function(e,t,n,r){return {red:e,green:t,blue:n,alpha:r}},e.is=function(e){var t=e;return we.objectLiteral(t)&&we.numberRange(t.red,0,1)&&we.numberRange(t.green,0,1)&&we.numberRange(t.blue,0,1)&&we.numberRange(t.alpha,0,1)};}(d||(d={})),function(e){e.create=function(e,t){return {range:e,color:t}},e.is=function(e){var t=e;return we.objectLiteral(t)&&c.is(t.range)&&d.is(t.color)};}(f||(f={})),function(e){e.create=function(e,t,n){return {label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){var t=e;return we.objectLiteral(t)&&we.string(t.label)&&(we.undefined(t.textEdit)||b.is(t))&&(we.undefined(t.additionalTextEdits)||we.typedArray(t.additionalTextEdits,b.is))};}(p||(p={})),function(e){e.Comment=\"comment\",e.Imports=\"imports\",e.Region=\"region\";}(g||(g={})),function(e){e.create=function(e,t,n,r,i,o){var s={startLine:e,endLine:t};return we.defined(n)&&(s.startCharacter=n),we.defined(r)&&(s.endCharacter=r),we.defined(i)&&(s.kind=i),we.defined(o)&&(s.collapsedText=o),s},e.is=function(e){var t=e;return we.objectLiteral(t)&&we.uinteger(t.startLine)&&we.uinteger(t.startLine)&&(we.undefined(t.startCharacter)||we.uinteger(t.startCharacter))&&(we.undefined(t.endCharacter)||we.uinteger(t.endCharacter))&&(we.undefined(t.kind)||we.string(t.kind))};}(h||(h={})),function(e){e.create=function(e,t){return {location:e,message:t}},e.is=function(e){var t=e;return we.defined(t)&&u.is(t.location)&&we.string(t.message)};}(m||(m={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4;}(v||(v={})),function(e){e.Unnecessary=1,e.Deprecated=2;}(y||(y={})),function(e){e.is=function(e){var t=e;return we.objectLiteral(t)&&we.string(t.href)};}(C||(C={})),function(e){e.create=function(e,t,n,r,i,o){var s={range:e,message:t};return we.defined(n)&&(s.severity=n),we.defined(r)&&(s.code=r),we.defined(i)&&(s.source=i),we.defined(o)&&(s.relatedInformation=o),s},e.is=function(e){var t,n=e;return we.defined(n)&&c.is(n.range)&&we.string(n.message)&&(we.number(n.severity)||we.undefined(n.severity))&&(we.integer(n.code)||we.string(n.code)||we.undefined(n.code))&&(we.undefined(n.codeDescription)||we.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(we.string(n.source)||we.undefined(n.source))&&(we.undefined(n.relatedInformation)||we.typedArray(n.relatedInformation,m.is))};}(S||(S={})),function(e){e.create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={title:e,command:t};return we.defined(n)&&n.length>0&&(i.arguments=n),i},e.is=function(e){var t=e;return we.defined(t)&&we.string(t.title)&&we.string(t.command)};}(T||(T={})),function(e){e.replace=function(e,t){return {range:e,newText:t}},e.insert=function(e,t){return {range:{start:e,end:e},newText:t}},e.del=function(e){return {range:e,newText:\"\"}},e.is=function(e){var t=e;return we.objectLiteral(t)&&we.string(t.newText)&&c.is(t.range)};}(b||(b={})),function(e){e.create=function(e,t,n){var r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},e.is=function(e){var t=e;return we.objectLiteral(t)&&we.string(t.label)&&(we.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(we.string(t.description)||void 0===t.description)};}(_||(_={})),function(e){e.is=function(e){var t=e;return we.string(t)};}(R||(R={})),function(e){e.replace=function(e,t,n){return {range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return {range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return {range:e,newText:\"\",annotationId:t}},e.is=function(e){var t=e;return b.is(t)&&(_.is(t.annotationId)||R.is(t.annotationId))};}(D||(D={})),function(e){e.create=function(e,t){return {textDocument:e,edits:t}},e.is=function(e){var t=e;return we.defined(t)&&I.is(t.textDocument)&&Array.isArray(t.edits)};}(w||(w={})),function(e){e.create=function(e,t,n){var 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},e.is=function(e){var t=e;return t&&\"create\"===t.kind&&we.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||we.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||we.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||R.is(t.annotationId))};}(E||(E={})),function(e){e.create=function(e,t,n,r){var 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},e.is=function(e){var t=e;return t&&\"rename\"===t.kind&&we.string(t.oldUri)&&we.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||we.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||we.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||R.is(t.annotationId))};}(P||(P={})),function(e){e.create=function(e,t,n){var 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},e.is=function(e){var t=e;return t&&\"delete\"===t.kind&&we.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||we.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||we.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||R.is(t.annotationId))};}(k||(k={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return we.string(e.kind)?E.is(e)||P.is(e)||k.is(e):w.is(e)})))};}(x||(x={}));var N,O,I,A,F,L,q,M,j,U,H,K,W,z,V,B,$,G,J,Y,Z,X,Q,ee,te,ne,re,ie,oe,se,ae,ce,ue,le,de,fe,pe,ge,he,me,ve,ye,Ce,Se,Te=function(){function e(e,t){this.edits=e,this.changeAnnotations=t;}return e.prototype.insert=function(e,t,n){var r,i;if(void 0===n?r=b.insert(e,t):R.is(n)?(i=n,r=D.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=D.insert(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,t,n){var r,i;if(void 0===n?r=b.replace(e,t):R.is(n)?(i=n,r=D.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=D.replace(e,t,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,t){var n,r;if(void 0===t?n=b.del(e):R.is(t)?(r=t,n=D.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(t),n=D.del(e,r)),this.edits.push(n),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e);},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length);},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error(\"Text edit change is not configured to manage change annotations.\")},e}(),be=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0;}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,\"size\",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(R.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error(\"Id \".concat(n,\" is already in use.\"));if(void 0===t)throw new Error(\"No annotation provided for id \".concat(n));return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}(),_e=function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new be(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(w.is(e)){var n=new Te(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n;}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var r=new Te(e.changes[n]);t._textEditChanges[n]=r;}))):this._workspaceEdit={};}return Object.defineProperty(e.prototype,\"edit\",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(I.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error(\"Workspace edit is not configured for document changes.\");var t={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[t.uri])){var n={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(n),r=new Te(i,this._changeAnnotations),this._textEditChanges[t.uri]=r;}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error(\"Workspace edit is not configured for normal text edit changes.\");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new Te(i),this._textEditChanges[e]=r;}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new be,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all());},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null));},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error(\"Workspace edit is not configured for document changes.\");var r,i,o;if(_.is(t)||R.is(t)?r=t:n=t,void 0===r?i=E.create(e,n):(o=R.is(r)?r:this._changeAnnotations.manage(r),i=E.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,t,n,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error(\"Workspace edit is not configured for document changes.\");var i,o,s;if(_.is(n)||R.is(n)?i=n:r=n,void 0===i?o=P.create(e,t,r):(s=R.is(i)?i:this._changeAnnotations.manage(i),o=P.create(e,t,r,s)),this._workspaceEdit.documentChanges.push(o),void 0!==s)return s},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error(\"Workspace edit is not configured for document changes.\");var r,i,o;if(_.is(t)||R.is(t)?r=t:n=t,void 0===r?i=k.create(e,n):(o=R.is(r)?r:this._changeAnnotations.manage(r),i=k.create(e,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e}();!function(e){e.create=function(e){return {uri:e}},e.is=function(e){var t=e;return we.defined(t)&&we.string(t.uri)};}(N||(N={})),function(e){e.create=function(e,t){return {uri:e,version:t}},e.is=function(e){var t=e;return we.defined(t)&&we.string(t.uri)&&we.integer(t.version)};}(O||(O={})),function(e){e.create=function(e,t){return {uri:e,version:t}},e.is=function(e){var t=e;return we.defined(t)&&we.string(t.uri)&&(null===t.version||we.integer(t.version))};}(I||(I={})),function(e){e.create=function(e,t,n,r){return {uri:e,languageId:t,version:n,text:r}},e.is=function(e){var t=e;return we.defined(t)&&we.string(t.uri)&&we.string(t.languageId)&&we.integer(t.version)&&we.string(t.text)};}(A||(A={})),function(e){e.PlainText=\"plaintext\",e.Markdown=\"markdown\",e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown};}(F||(F={})),function(e){e.is=function(e){var t=e;return we.objectLiteral(e)&&F.is(t.kind)&&we.string(t.value)};}(L||(L={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25;}(q||(q={})),function(e){e.PlainText=1,e.Snippet=2;}(M||(M={})),function(e){e.Deprecated=1;}(j||(j={})),function(e){e.create=function(e,t,n){return {newText:e,insert:t,replace:n}},e.is=function(e){var t=e;return t&&we.string(t.newText)&&c.is(t.insert)&&c.is(t.replace)};}(U||(U={})),function(e){e.asIs=1,e.adjustIndentation=2;}(H||(H={})),function(e){e.is=function(e){var t=e;return t&&(we.string(t.detail)||void 0===t.detail)&&(we.string(t.description)||void 0===t.description)};}(K||(K={})),function(e){e.create=function(e){return {label:e}};}(W||(W={})),function(e){e.create=function(e,t){return {items:e||[],isIncomplete:!!t}};}(z||(z={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\\\`*_{}[\\]()#+\\-.!]/g,\"\\\\$&\")},e.is=function(e){var t=e;return we.string(t)||we.objectLiteral(t)&&we.string(t.language)&&we.string(t.value)};}(V||(V={})),function(e){e.is=function(e){var t=e;return !!t&&we.objectLiteral(t)&&(L.is(t.contents)||V.is(t.contents)||we.typedArray(t.contents,V.is))&&(void 0===e.range||c.is(e.range))};}(B||(B={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}};}($||($={})),function(e){e.create=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={label:e};return we.defined(t)&&(i.documentation=t),we.defined(n)?i.parameters=n:i.parameters=[],i};}(G||(G={})),function(e){e.Text=1,e.Read=2,e.Write=3;}(J||(J={})),function(e){e.create=function(e,t){var n={range:e};return we.number(t)&&(n.kind=t),n};}(Y||(Y={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26;}(Z||(Z={})),function(e){e.Deprecated=1;}(X||(X={})),function(e){e.create=function(e,t,n,r,i){var o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o};}(Q||(Q={})),function(e){e.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}}};}(ee||(ee={})),function(e){e.create=function(e,t,n,r,i,o){var s={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(s.children=o),s},e.is=function(e){var t=e;return t&&we.string(t.name)&&we.number(t.kind)&&c.is(t.range)&&c.is(t.selectionRange)&&(void 0===t.detail||we.string(t.detail))&&(void 0===t.deprecated||we.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))};}(te||(te={})),function(e){e.Empty=\"\",e.QuickFix=\"quickfix\",e.Refactor=\"refactor\",e.RefactorExtract=\"refactor.extract\",e.RefactorInline=\"refactor.inline\",e.RefactorRewrite=\"refactor.rewrite\",e.Source=\"source\",e.SourceOrganizeImports=\"source.organizeImports\",e.SourceFixAll=\"source.fixAll\";}(ne||(ne={})),function(e){e.Invoked=1,e.Automatic=2;}(re||(re={})),function(e){e.create=function(e,t,n){var r={diagnostics:e};return null!=t&&(r.only=t),null!=n&&(r.triggerKind=n),r},e.is=function(e){var t=e;return we.defined(t)&&we.typedArray(t.diagnostics,S.is)&&(void 0===t.only||we.typedArray(t.only,we.string))&&(void 0===t.triggerKind||t.triggerKind===re.Invoked||t.triggerKind===re.Automatic)};}(ie||(ie={})),function(e){e.create=function(e,t,n){var r={title:e},i=!0;return \"string\"==typeof t?(i=!1,r.kind=t):T.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},e.is=function(e){var t=e;return t&&we.string(t.title)&&(void 0===t.diagnostics||we.typedArray(t.diagnostics,S.is))&&(void 0===t.kind||we.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||T.is(t.command))&&(void 0===t.isPreferred||we.boolean(t.isPreferred))&&(void 0===t.edit||x.is(t.edit))};}(oe||(oe={})),function(e){e.create=function(e,t){var n={range:e};return we.defined(t)&&(n.data=t),n},e.is=function(e){var t=e;return we.defined(t)&&c.is(t.range)&&(we.undefined(t.command)||T.is(t.command))};}(se||(se={})),function(e){e.create=function(e,t){return {tabSize:e,insertSpaces:t}},e.is=function(e){var t=e;return we.defined(t)&&we.uinteger(t.tabSize)&&we.boolean(t.insertSpaces)};}(ae||(ae={})),function(e){e.create=function(e,t,n){return {range:e,target:t,data:n}},e.is=function(e){var t=e;return we.defined(t)&&c.is(t.range)&&(we.undefined(t.target)||we.string(t.target))};}(ce||(ce={})),function(e){e.create=function(e,t){return {range:e,parent:t}},e.is=function(t){var n=t;return we.objectLiteral(n)&&c.is(n.range)&&(void 0===n.parent||e.is(n.parent))};}(ue||(ue={})),function(e){e.namespace=\"namespace\",e.type=\"type\",e.class=\"class\",e.enum=\"enum\",e.interface=\"interface\",e.struct=\"struct\",e.typeParameter=\"typeParameter\",e.parameter=\"parameter\",e.variable=\"variable\",e.property=\"property\",e.enumMember=\"enumMember\",e.event=\"event\",e.function=\"function\",e.method=\"method\",e.macro=\"macro\",e.keyword=\"keyword\",e.modifier=\"modifier\",e.comment=\"comment\",e.string=\"string\",e.number=\"number\",e.regexp=\"regexp\",e.operator=\"operator\",e.decorator=\"decorator\";}(le||(le={})),function(e){e.declaration=\"declaration\",e.definition=\"definition\",e.readonly=\"readonly\",e.static=\"static\",e.deprecated=\"deprecated\",e.abstract=\"abstract\",e.async=\"async\",e.modification=\"modification\",e.documentation=\"documentation\",e.defaultLibrary=\"defaultLibrary\";}(de||(de={})),function(e){e.is=function(e){var t=e;return we.objectLiteral(t)&&(void 0===t.resultId||\"string\"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||\"number\"==typeof t.data[0])};}(fe||(fe={})),function(e){e.create=function(e,t){return {range:e,text:t}},e.is=function(e){var t=e;return null!=t&&c.is(t.range)&&we.string(t.text)};}(pe||(pe={})),function(e){e.create=function(e,t,n){return {range:e,variableName:t,caseSensitiveLookup:n}},e.is=function(e){var t=e;return null!=t&&c.is(t.range)&&we.boolean(t.caseSensitiveLookup)&&(we.string(t.variableName)||void 0===t.variableName)};}(ge||(ge={})),function(e){e.create=function(e,t){return {range:e,expression:t}},e.is=function(e){var t=e;return null!=t&&c.is(t.range)&&(we.string(t.expression)||void 0===t.expression)};}(he||(he={})),function(e){e.create=function(e,t){return {frameId:e,stoppedLocation:t}},e.is=function(e){var t=e;return we.defined(t)&&c.is(e.stoppedLocation)};}(me||(me={})),function(e){e.Type=1,e.Parameter=2,e.is=function(e){return 1===e||2===e};}(ve||(ve={})),function(e){e.create=function(e){return {value:e}},e.is=function(e){var t=e;return we.objectLiteral(t)&&(void 0===t.tooltip||we.string(t.tooltip)||L.is(t.tooltip))&&(void 0===t.location||u.is(t.location))&&(void 0===t.command||T.is(t.command))};}(ye||(ye={})),function(e){e.create=function(e,t,n){var r={position:e,label:t};return void 0!==n&&(r.kind=n),r},e.is=function(e){var t=e;return we.objectLiteral(t)&&a.is(t.position)&&(we.string(t.label)||we.typedArray(t.label,ye.is))&&(void 0===t.kind||ve.is(t.kind))&&void 0===t.textEdits||we.typedArray(t.textEdits,b.is)&&(void 0===t.tooltip||we.string(t.tooltip)||L.is(t.tooltip))&&(void 0===t.paddingLeft||we.boolean(t.paddingLeft))&&(void 0===t.paddingRight||we.boolean(t.paddingRight))};}(Ce||(Ce={})),function(e){e.is=function(e){var t=e;return we.objectLiteral(t)&&i.is(t.uri)&&we.string(t.name)};}(Se||(Se={}));var Re,De=[\"\\n\",\"\\r\\n\",\"\\r\"];!function(e){function t(e,n){if(e.length<=1)return e;var r=e.length/2|0,i=e.slice(0,r),o=e.slice(r);t(i,n),t(o,n);for(var s=0,a=0,c=0;s<i.length&&a<o.length;){var u=n(i[s],o[a]);e[c++]=u<=0?i[s++]:o[a++];}for(;s<i.length;)e[c++]=i[s++];for(;a<o.length;)e[c++]=o[a++];return e}e.create=function(e,t,n,r){return new Ee(e,t,n,r)},e.is=function(e){var t=e;return !!(we.defined(t)&&we.string(t.uri)&&(we.undefined(t.languageId)||we.string(t.languageId))&&we.uinteger(t.lineCount)&&we.func(t.getText)&&we.func(t.positionAt)&&we.func(t.offsetAt))},e.applyEdits=function(e,n){for(var r=e.getText(),i=t(n,(function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),o=r.length,s=i.length-1;s>=0;s--){var a=i[s],c=e.offsetAt(a.range.start),u=e.offsetAt(a.range.end);if(!(u<=o))throw new Error(\"Overlapping edit\");r=r.substring(0,c)+a.newText+r.substring(u,r.length),o=c;}return r};}(Re||(Re={}));var we,Ee=function(){function e(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0;}return Object.defineProperty(e.prototype,\"uri\",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"languageId\",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"version\",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0;},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,r=0;r<t.length;r++){n&&(e.push(r),n=!1);var i=t.charAt(r);n=\"\\r\"===i||\"\\n\"===i,\"\\r\"===i&&r+1<t.length&&\"\\n\"===t.charAt(r+1)&&r++;}n&&t.length>0&&e.push(t.length),this._lineOffsets=e;}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return a.create(0,e);for(;n<r;){var i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1;}var o=n-1;return a.create(o,e-t[o])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)},Object.defineProperty(e.prototype,\"lineCount\",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();!function(e){var t=Object.prototype.toString;e.defined=function(e){return void 0!==e},e.undefined=function(e){return void 0===e},e.boolean=function(e){return !0===e||!1===e},e.string=function(e){return \"[object String]\"===t.call(e)},e.number=function(e){return \"[object Number]\"===t.call(e)},e.numberRange=function(e,n,r){return \"[object Number]\"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return \"[object Number]\"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return \"[object Number]\"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return \"[object Function]\"===t.call(e)},e.objectLiteral=function(e){return null!==e&&\"object\"==typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)};}(we||(we={}));},9496:e=>{e.exports=require(\"vscode\");}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]});},n.g=function(){if(\"object\"==typeof globalThis)return globalThis;try{return this||new Function(\"return this\")()}catch(e){if(\"object\"==typeof window)return window}}(),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 r={};(()=>{var e=r,t=n(5108);Object.defineProperty(e,\"__esModule\",{value:!0}),e.deactivate=e.activate=void 0;const i=n(9496),o=n(8595),s=n(8460),a=n(3699),c=n(6298),u=n(24),l=n(774),d=n(9497);let f,p,g;async function h(e,n){e.subscriptions.push((0, l.createStatusItem)());const r=(n=await async function(e){return e.isActive||await e.activate(),e}(n)).exports;if(r.client&&r.client.isEnabled())return p=r,void await r.client.start();const{extensionUri:c,packageJSON:d}=n,g=i.Uri.joinPath(c,\"dist\");try{const t=new Worker(i.Uri.joinPath(g,\"browser.server.bundle.js\").toString()),n={distUrl:g.toString()};t.postMessage(n);const r=new s.LanguageClientMiddlewareBase(void 0,a.LanguageServerType.Node,v,d.version);r.connect();const c={documentSelector:[{language:\"python\"}],synchronize:{configurationSection:[\"python\",\"jupyter.runStartupCommands\"]},middleware:r},l=new o.LanguageClient(\"python\",\"Python Language Server\",c,t);f=l,e.subscriptions.push(i.commands.registerCommand(\"python.viewLanguageServerOutput\",(()=>l.outputChannel.show()))),l.onTelemetry((e=>{var t;const n=e.EventName||u.EventName.LANGUAGE_SERVER_TELEMETRY,r={...e.Properties,method:null===(t=e.Properties.method)||void 0===t?void 0:t.replace(/\\//g,\".\")};v(n,e.Measurements,r,e.Exception);})),await l.start();}catch(e){t.log(e);}}function m(){if(g)return g;const e=n(217).Z;return g=new e(c.AppinsightsKey,[{lookup:/(errorName|errorMessage|errorStack)/g}]),g}function v(e,n,r,i){var o;const s=m(),a=\"number\"==typeof n?{duration:n}:n||void 0,c={},u=e;if(r){const n=r;Object.getOwnPropertyNames(n).forEach((r=>{if(void 0!==n[r]&&null!==n[r])try{switch(typeof n[r]){case\"string\":c[r]=n[r];break;case\"object\":c[r]=\"object\";break;default:c[r]=n[r].toString();}}catch(n){t.error(`Failed to serialize ${r} for ${e}`,n);}}));}if(i){const e={errorName:i.name,errorStack:null!==(o=i.stack)&&void 0!==o?o:\"\"};Object.assign(c,e),s.sendTelemetryErrorEvent(u,c,a);}else s.sendTelemetryEvent(u,c,a);}e.activate=function(e){const t=m(),n=Promise.resolve((0, d.buildApi)(t)),r=i.extensions.getExtension(c.PYLANCE_EXTENSION_ID);if(r)return n.then((()=>h(e,r))),n;const o=i.extensions.onDidChange((async()=>{const t=i.extensions.getExtension(c.PYLANCE_EXTENSION_ID);t&&(o.dispose(),await h(e,t));}));return n},e.deactivate=async function(){if(p){const e=p;p=void 0,await e.client.stop();}if(f){const e=f;f=void 0,await e.stop(),await e.dispose();}};})(),module.exports=r;})();\n";
|
|
2
|
-
|
|
3
|
-
export { extension_browser_js as default };
|